:root {
    --app-bg: #f6f8fb;
    --app-ink: #101b33;
    --app-muted: #7a8497;
    --app-primary: #12b8a6;
    --app-primary-dark: #0b9486;
    --app-line: #e5eaf2;
    --app-panel: #ffffff;
    --app-sidebar: #ffffff;
    --app-soft: #eef6ff;
    --app-field-bg: #f8fbff;
    --app-field-bg-hover: #fbfdff;
    --app-field-bg-focus: #ffffff;
    --app-field-border: #d9e2ef;
    --app-field-border-hover: #c5d1e3;
    --app-field-border-focus: rgba(15, 111, 232, 0.78);
    --app-field-focus-shadow: 0 0 0 0.22rem rgba(15, 111, 232, 0.14);
    --app-control-height: 48px;
    --app-shadow: 0 16px 42px rgba(16, 27, 51, 0.08);
}

body {
    background: var(--app-bg);
    color: var(--app-ink);
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(15, 111, 232, 0.14), transparent 32%),
        rgba(246, 248, 251, 0.58);
    backdrop-filter: blur(0);
    transition: opacity 0.24s ease, visibility 0.24s ease, backdrop-filter 0.24s ease;
}

.page-transition__bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--app-action-blue, #0f6fe8), #60a5fa, transparent);
    transform: translateX(-100%);
}

.page-transition__mark {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 48%, transparent 49%),
        conic-gradient(from 0deg, var(--app-action-blue, #0f6fe8), #60a5fa, transparent 78%);
    box-shadow:
        0 22px 52px rgba(15, 111, 232, 0.18),
        inset 0 0 0 1px rgba(207, 224, 248, 0.86);
    transform: translateY(0) scale(0.94);
}

.page-transition__mark::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--app-action-blue, #0f6fe8), #60a5fa);
    box-shadow: 0 0 0 8px rgba(15, 111, 232, 0.08);
}

body.page-transition-leaving .page-transition {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(8px);
}

body.page-transition-leaving .page-transition__bar {
    animation: pageProgress 0.92s ease-in-out infinite;
}

body.page-transition-leaving .page-transition__mark {
    animation: pageSpin 0.82s linear infinite;
}

body.page-transition-leaving main,
body.page-transition-leaving .app-topbar,
body.page-transition-leaving .app-sidebar,
body.page-transition-leaving .auth-card {
    opacity: 0.64;
    filter: blur(2px);
    transform: translateY(4px);
    transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

body.page-transition-enter main {
    animation: pageContentIn 0.34s ease both;
}

@keyframes pageProgress {
    0% {
        transform: translateX(-100%);
    }

    55% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pageSpin {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.94);
    }

    100% {
        transform: translateY(0) scale(0.94) rotate(360deg);
    }
}

@keyframes pageContentIn {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        filter: none;
        transform: translateY(0);
    }
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 0.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--app-action-blue, #0f6fe8), #60a5fa);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid var(--app-line);
    background: var(--app-sidebar);
    box-shadow: 8px 0 28px rgba(16, 27, 51, 0.04);
    z-index: 30;
}

.app-brand {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--app-ink);
    text-decoration: none;
}

.app-side-nav {
    display: grid;
    gap: 0.45rem;
}

.app-side-nav a,
.app-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 52px;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    color: #32405a;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-side-nav a span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    line-height: 0;
    border-radius: 9px;
    color: #64748b;
    background: #f3f6fb;
    font-size: 0.72rem;
    font-weight: 900;
}

.nav-icon {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-mobile-nav a span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    line-height: 0;
}

.app-side-nav a:hover,
.app-mobile-nav a:hover,
.app-side-nav a.active,
.app-mobile-nav a.active {
    background: #edf5ff;
    color: #0567d8;
    transform: translateX(2px);
}

.app-side-nav a.active span {
    color: #0567d8;
    background: #dbeafe;
}

.app-workspace {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 520px) auto;
    gap: 1rem;
    align-items: center;
    min-height: 94px;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--app-line);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-title h1 {
    margin: 0;
    color: var(--app-ink);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 850;
}

.topbar-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 1rem;
    border: 1px solid var(--app-field-border);
    border-radius: 12px;
    background: var(--app-field-bg);
    color: var(--app-ink);
    box-shadow: 0 8px 24px rgba(16, 27, 51, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.topbar-search input:hover {
    border-color: var(--app-field-border-hover);
    background: var(--app-field-bg-hover);
}

.topbar-search input:focus {
    border-color: var(--app-field-border-focus);
    background: var(--app-field-bg-focus);
    box-shadow: 0 8px 24px rgba(16, 27, 51, 0.04), var(--app-field-focus-shadow);
    outline: 0;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-user-button {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-height: 54px;
    padding: 0.28rem 0.42rem 0.28rem 0.3rem;
    border: 1px solid transparent;
    border-radius: 18px;
    color: var(--app-ink);
    background: transparent;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.topbar-user-button:hover,
.topbar-user-button:focus-visible,
.topbar-user.show .topbar-user-button {
    border-color: var(--app-action-blue-line);
    background: var(--app-action-blue-soft);
    box-shadow: 0 14px 28px rgba(15, 111, 232, 0.12);
    outline: 0;
}

.topbar-user-avatar {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--app-action-blue-soft);
    color: var(--app-action-blue-dark);
    font-weight: 900;
}

.topbar-user-copy strong,
.topbar-user-copy small {
    display: block;
    white-space: nowrap;
}

.topbar-user-copy small {
    color: var(--app-muted);
}

.topbar-user-caret {
    width: 0.55rem;
    height: 0.55rem;
    margin-left: 0.1rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
}

.topbar-user-menu {
    min-width: 220px;
    padding: 0.45rem;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 22px 52px rgba(15, 111, 232, 0.16);
}

.topbar-user-menu .dropdown-item {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch !important;
    justify-items: start;
    gap: 0.62rem;
    width: 100%;
    min-height: 42px;
    padding: 0.5rem 0.72rem !important;
    border-radius: 12px;
    color: var(--app-ink);
    font-weight: 800;
    text-align: left !important;
}

.topbar-user-menu form {
    width: 100%;
    margin: 0;
}

.topbar-user-menu .dropdown-item:hover,
.topbar-user-menu .dropdown-item:focus {
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.topbar-user-menu .nav-icon {
    width: 18px;
    height: 18px;
    color: var(--app-action-blue-dark);
}

.topbar-user-menu-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    justify-self: start;
    line-height: 0;
}

.topbar-user-menu-label {
    min-width: 0;
    justify-self: start;
    text-align: left;
}

.app-mobile-nav {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--app-line);
    background: #fff;
}

.app-mobile-nav a {
    min-height: 44px;
}

.btn {
    --bs-btn-padding-y: 0.66rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-weight: 850;
    --bs-btn-border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border-width: 1px;
    letter-spacing: 0;
    box-shadow: 0 1px 0 rgba(16, 27, 51, 0.03);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
          color 0.18s ease;
}

.btn .results-metric-svg,
.btn .report-metric-svg,
.btn .assignment-action-icon,
.btn .template-action-icon,
.btn .question-action-icon,
.btn .builder-action-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16, 27, 51, 0.11);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(16, 27, 51, 0.08);
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.22rem rgba(18, 184, 166, 0.16), 0 10px 24px rgba(16, 27, 51, 0.1);
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    transform: none;
    box-shadow: none;
    opacity: 0.62;
}

.btn-primary {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary-dark);
    --bs-btn-hover-border-color: var(--app-primary-dark);
    --bs-btn-active-bg: #08766c;
    --bs-btn-active-border-color: #08766c;
    background-image: linear-gradient(135deg, #12b8a6, #0b9486);
    box-shadow: 0 12px 24px rgba(18, 184, 166, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-image: linear-gradient(135deg, #13c8b4, #08766c);
    box-shadow: 0 16px 30px rgba(18, 184, 166, 0.25);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-hover-color: #fff;
    background-color: rgba(255, 255, 255, 0.82);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background-image: linear-gradient(135deg, #12b8a6, #0b9486);
}

.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-hover-color: var(--app-ink);
    --bs-btn-hover-bg: #f8fafc;
    --bs-btn-hover-border-color: #94a3b8;
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    --bs-btn-bg: #64748b;
    --bs-btn-border-color: #64748b;
    --bs-btn-hover-bg: #475569;
    --bs-btn-hover-border-color: #475569;
    background-image: linear-gradient(135deg, #64748b, #475569);
}

.btn-danger {
    --bs-btn-bg: #e2384a;
    --bs-btn-border-color: #e2384a;
    --bs-btn-hover-bg: #be123c;
    --bs-btn-hover-border-color: #be123c;
    background-image: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.17);
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background-image: linear-gradient(135deg, #fb7185, #be123c);
    box-shadow: 0 16px 30px rgba(225, 29, 72, 0.23);
}

.btn-outline-danger {
    --bs-btn-color: #e11d48;
    --bs-btn-border-color: #fecdd3;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e11d48;
    --bs-btn-hover-border-color: #e11d48;
    background-color: #fff7f8;
}

.btn-light {
    --bs-btn-color: var(--app-ink);
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #e2e8f0;
    --bs-btn-hover-bg: #f8fafc;
    --bs-btn-hover-border-color: #cbd5e1;
}

.btn-sm {
    --bs-btn-padding-y: 0.46rem;
    --bs-btn-padding-x: 0.76rem;
    --bs-btn-border-radius: 10px;
    min-height: 36px;
}

.btn-lg {
    --bs-btn-padding-y: 0.82rem;
    --bs-btn-padding-x: 1.22rem;
    --bs-btn-border-radius: 14px;
    min-height: 50px;
}

.app-flash-stack {
    display: grid;
    gap: 0.72rem;
    margin-bottom: 1rem;
}

.alert:not(.app-alert) {
    border-radius: 16px;
    border-color: var(--app-line);
    box-shadow: 0 14px 34px rgba(16, 27, 51, 0.08);
    font-size: 0.95rem;
    font-weight: 760;
}

.alert-success:not(.app-alert) {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ffffff, #effdf4);
    color: #166534;
}

.alert-danger:not(.app-alert) {
    border-color: #fecdd3;
    background: linear-gradient(135deg, #ffffff, #fff1f2);
    color: #9f1239;
}

.alert-warning:not(.app-alert) {
    border-color: #fde68a;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    color: #92400e;
}

.alert-info:not(.app-alert) {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    color: #1e3a8a;
}

.app-alert {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.72rem;
    align-items: center;
    min-height: 54px;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--app-ink);
    box-shadow: 0 14px 34px rgba(16, 27, 51, 0.08);
    font-size: 0.95rem;
    font-weight: 760;
    line-height: 1.35;
}

.app-alert.alert {
    margin-bottom: 0;
}

.app-alert-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #0b9486;
    background: #e8fbf8;
}

.app-alert-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-alert-message {
    min-width: 0;
}

.app-alert-close {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
}

.app-alert-close::before,
.app-alert-close::after {
    content: "";
    grid-area: 1 / 1;
    width: 13px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.app-alert-close::before {
    transform: rotate(45deg);
}

.app-alert-close::after {
    transform: rotate(-45deg);
}

.app-alert-close:hover {
    color: var(--app-ink);
    background: #f1f5f9;
}

.app-alert-success {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ffffff, #effdf4);
}

.app-alert-success .app-alert-icon {
    color: #15803d;
    background: #dcfce7;
}

.app-alert-danger,
.app-alert-error {
    border-color: #fecdd3;
    background: linear-gradient(135deg, #ffffff, #fff1f2);
}

.app-alert-danger .app-alert-icon,
.app-alert-error .app-alert-icon {
    color: #be123c;
    background: #ffe4e6;
}

.app-alert-warning {
    border-color: #fde68a;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.app-alert-warning .app-alert-icon {
    color: #b45309;
    background: #fef3c7;
}

.app-alert-info {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.app-alert-info .app-alert-icon {
    color: #1d4ed8;
    background: #dbeafe;
}

.app-action-tooltip {
    position: fixed;
    z-index: 1095;
    width: max-content;
    max-width: min(260px, calc(100vw - 20px));
    padding: 0.42rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(30, 35, 45, 0.98);
    color: #ffffff;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 18px rgba(0, 0, 0, 0.22);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.app-action-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-action-tooltip::after {
    content: "";
    position: absolute;
    left: var(--tooltip-arrow-left, 50%);
    bottom: -6px;
    width: 11px;
    height: 11px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}

.app-action-tooltip.is-below::after {
    top: -6px;
    bottom: auto;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-only-btn,
.client-action-btn,
.assignment-action-btn,
.template-action-btn {
    padding: 0;
    gap: 0;
}

.icon-only-btn {
    min-height: 38px;
}

.client-action-btn {
    min-height: 42px;
}

.assignment-action-btn,
.template-action-btn {
    min-height: 38px;
}

.form-label,
.clients-sort-form label {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin-bottom: 0.42rem;
    color: #475569;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.form-label::before,
.clients-sort-form label::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(18, 184, 166, 0.95), rgba(37, 99, 235, 0.72));
    box-shadow: 0 0 0 3px rgba(18, 184, 166, 0.1);
}

.form-label strong {
    color: var(--app-ink);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.form-check-label {
    color: #334155;
    font-weight: 750;
}

.form-text {
    margin-top: 0.42rem;
    color: #768399;
    font-size: 0.84rem;
    line-height: 1.45;
}

.form-control,
.form-select {
    min-height: var(--app-control-height);
    border-color: var(--app-field-border);
    border-radius: 12px;
    background-color: var(--app-field-bg);
    color: var(--app-ink);
    font-size: 0.96rem;
    font-weight: 560;
    box-shadow: 0 1px 0 rgba(16, 27, 51, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

input.form-control:not([type="file"]),
select.form-select {
    height: var(--app-control-height);
    line-height: 1.2;
}

select.form-select[multiple],
select.form-select[size] {
    height: auto;
}

.form-control::placeholder {
    color: #9aa6ba;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--app-field-border-hover);
    background-color: var(--app-field-bg-hover);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--app-field-border-focus);
    background-color: var(--app-field-bg-focus);
    box-shadow: var(--app-field-focus-shadow);
}

textarea.form-control {
    height: auto;
    min-height: auto;
}

.date-field-with-icon {
    position: relative;
}

.date-field-with-icon .form-control {
    height: var(--app-control-height);
    min-height: var(--app-control-height);
    padding-left: 3.12rem;
}

.date-field-icon {
    position: absolute;
    top: 50%;
    left: 0.64rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 10px;
    color: var(--app-action-blue-dark, #0759b9);
    background: var(--app-action-blue-soft, #eff6ff);
    pointer-events: none;
    transform: translateY(-50%);
}

.date-field-svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.date-field-svg text {
    fill: currentColor;
    stroke: none;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 7px;
    font-weight: 950;
}

.modal-content {
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.modal-header {
    border-bottom-color: #edf2f8;
}

.modal-title {
    color: var(--app-ink);
    font-weight: 950;
}

.modal-body {
    color: #475569;
    line-height: 1.55;
}

.modal-footer {
    border-top-color: #edf2f8;
}

.app-modal-content {
    overflow: hidden;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 0%, rgba(15, 111, 232, 0.08), transparent 38%),
        #fff;
    box-shadow: 0 34px 90px rgba(16, 27, 51, 0.22);
}

.app-modal-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem 0.95rem;
    border-bottom: 1px solid #edf2f8;
}

.app-modal-title-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
}

.app-modal-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 15px;
    color: var(--app-action-blue-dark, #0567d8);
    background: var(--app-action-blue-soft, #eff7ff);
}

.app-modal-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-modal-icon-danger {
    border-color: #fecdd3;
    color: #e11d48;
    background: #fff1f2;
}

.app-modal-icon-warning {
    border-color: #fde68a;
    color: #d97706;
    background: #fffbeb;
}

.app-modal-icon-success {
    border-color: #bbf7d0;
    color: #16a34a;
    background: #f0fdf4;
}

.app-modal-icon-info {
    border-color: var(--app-action-blue-line, #cfe0f8);
    color: var(--app-action-blue-dark, #0567d8);
    background: var(--app-action-blue-soft, #eff7ff);
}

.app-modal-icon-duplicate {
    border-color: #dbeafe;
    color: var(--app-action-blue-dark, #0567d8);
    background: linear-gradient(180deg, #fff, var(--app-action-blue-soft, #eff7ff));
}

.app-modal-kicker {
    display: block;
    margin-bottom: 0.16rem;
    color: var(--app-action-blue-dark, #0567d8);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-modal-title-row .modal-title {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.22rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.14;
}

.app-modal-body {
    padding: 1.15rem 1.25rem;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.55;
}

.app-modal-body p {
    margin-bottom: 0.65rem;
}

.app-modal-body p:last-child {
    margin-bottom: 0;
}

.app-modal-body strong {
    color: var(--app-ink);
    font-weight: 900;
}

.app-modal-copy {
    color: #64748b;
}

.app-modal-note {
    display: grid;
    gap: 0.2rem;
    margin: 0.85rem 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 14px;
    color: #475569;
    background: var(--app-action-blue-soft, #eff7ff);
    font-weight: 700;
}

.app-modal-note-warning {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.app-modal-confirm-label {
    margin-top: 0.85rem;
}

.app-modal-footer {
    gap: 0.65rem;
    padding: 0.95rem 1.25rem 1.2rem;
    border-top: 1px solid #edf2f8;
    background: rgba(248, 251, 255, 0.72);
}

.app-modal-footer .btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 850;
}

@media (max-width: 575.98px) {
    .app-modal-title-row {
        gap: 0.7rem;
    }

    .app-modal-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .app-modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .app-modal-footer .btn {
        width: 100%;
    }
}

.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 13% 16%, rgba(18, 184, 166, 0.22), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.16), transparent 28%),
        radial-gradient(circle at 70% 88%, rgba(245, 158, 11, 0.14), transparent 24%),
        linear-gradient(135deg, #f8fbff 0%, #eef6f8 44%, #f7fbff 100%),
        var(--app-bg);
}

.auth-shell {
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 2rem 0;
}

.auth-dashboard-bg {
    position: fixed;
    inset: 1.25rem;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(213, 226, 238, 0.72);
    border-radius: 32px;
    opacity: 0.48;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0 17%, rgba(246, 249, 253, 0.9) 17% 100%),
        #f8fbff;
    box-shadow: 0 34px 90px rgba(16, 27, 51, 0.12);
    filter: blur(18px) saturate(0.94);
    transform: scale(1.035);
    transform-origin: center;
    transition: filter 0.7s ease, opacity 0.7s ease, transform 0.7s ease;
}

.auth-dashboard-bg span {
    position: absolute;
    display: block;
    border-radius: 18px;
}

.auth-bg-sidebar {
    inset: 0 auto 0 0;
    width: 17%;
    border-right: 1px solid rgba(213, 226, 238, 0.8);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(18, 184, 166, 0.12), transparent 16%),
        rgba(255, 255, 255, 0.82);
}

.auth-bg-topbar {
    top: 0;
    right: 0;
    left: 17%;
    height: 86px;
    border-radius: 0;
    border-bottom: 1px solid rgba(213, 226, 238, 0.75);
    background: rgba(255, 255, 255, 0.86);
}

.auth-bg-hero {
    top: 118px;
    left: 20%;
    width: 56%;
    height: 180px;
    background:
        linear-gradient(135deg, rgba(16, 27, 51, 0.92), rgba(18, 184, 166, 0.82)),
        #101b33;
    box-shadow: 0 24px 70px rgba(16, 27, 51, 0.16);
}

.auth-bg-card {
    top: 330px;
    width: 18%;
    height: 118px;
    border: 1px solid rgba(213, 226, 238, 0.86);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px rgba(16, 27, 51, 0.08);
}

.auth-bg-card-one {
    left: 20%;
}

.auth-bg-card-two {
    left: 40%;
}

.auth-bg-card-three {
    left: 60%;
}

.auth-bg-chart {
    top: 118px;
    right: 4%;
    width: 17%;
    aspect-ratio: 1;
    border: 1px solid rgba(213, 226, 238, 0.86);
    background:
        radial-gradient(circle, #fff 0 48%, transparent 49%),
        conic-gradient(#12b8a6 0 58%, #2563eb 58% 84%, #f59e0b 84% 100%);
    box-shadow: 0 24px 62px rgba(16, 27, 51, 0.12);
}

.auth-bg-table {
    left: 20%;
    right: 4%;
    bottom: 7%;
    height: 220px;
    border: 1px solid rgba(213, 226, 238, 0.86);
    background:
        repeating-linear-gradient(180deg, transparent 0 52px, rgba(213, 226, 238, 0.72) 53px 54px),
        linear-gradient(90deg, rgba(232, 251, 248, 0.75), transparent 34%),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(16, 27, 51, 0.08);
}

.auth-body.auth-signing-in .auth-dashboard-bg {
    opacity: 0.7;
    filter: blur(5px) saturate(1.06);
    transform: scale(1.005);
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.8;
}

.auth-shell::before {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: 6vh;
    background: radial-gradient(circle, rgba(18, 184, 166, 0.16), transparent 68%);
    animation: authFloat 8s ease-in-out infinite;
}

.auth-shell::after {
    width: 220px;
    height: 220px;
    right: -70px;
    top: 8vh;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 66%);
    animation: authFloat 10s ease-in-out infinite reverse;
}

.auth-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 1.25rem;
    align-items: center;
    min-height: 660px;
    padding: 1rem;
    border: 1px solid rgba(213, 226, 238, 0.86);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 30px 80px rgba(16, 27, 51, 0.12);
    backdrop-filter: blur(18px);
}

.auth-card-compact {
    width: min(480px, 100%);
    min-height: auto;
    margin: 0 auto;
    padding: 0;
    display: block;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 34px 90px rgba(16, 27, 51, 0.18);
    backdrop-filter: blur(26px);
    animation: authReveal 0.65s ease both;
}

.auth-copy {
    position: relative;
    min-height: 620px;
    padding: clamp(1.25rem, 4vw, 3rem);
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(16, 27, 51, 0.96), rgba(11, 148, 134, 0.92)),
        #101b33;
    color: #fff;
}

.auth-copy::before {
    content: "";
    position: absolute;
    inset: -30% -18% auto auto;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 231, 216, 0.34), transparent 62%);
}

.auth-copy::after {
    content: "";
    position: absolute;
    inset: auto auto -22% -12%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle, transparent 0 52%, rgba(255, 255, 255, 0.1) 53% 54%, transparent 55%),
        radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 64%);
}

.auth-brand,
.auth-copy .eyebrow,
.auth-copy h1,
.auth-copy p,
.auth-safe-visual {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.auth-brand .brand-mark {
    width: 48px;
    height: 48px;
    margin-right: 0;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(15, 111, 232, 0.28);
}

.auth-brand strong {
    max-width: 260px;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.05;
}

.auth-copy .eyebrow {
    color: #8af4e9;
}

.auth-copy h1 {
    max-width: 640px;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 0.96;
    margin: 0.75rem 0 1rem;
    font-weight: 900;
}

.auth-copy p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    line-height: 1.6;
}

.auth-safe-visual {
    display: grid;
    place-items: center;
    width: min(360px, 100%);
    aspect-ratio: 1;
    margin-top: 3rem;
}

.auth-orbit,
.auth-core-lock {
    grid-area: 1 / 1;
    border-radius: 50%;
}

.auth-orbit {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle, transparent 0 56%, rgba(255, 255, 255, 0.08) 57% 58%, transparent 59%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    animation: authFloat 7s ease-in-out infinite;
}

.auth-orbit-one {
    width: 100%;
    height: 100%;
}

.auth-orbit-two {
    width: 72%;
    height: 72%;
    animation-delay: -1.2s;
}

.auth-orbit-three {
    width: 46%;
    height: 46%;
    animation-delay: -2.4s;
}

.auth-core-lock {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    color: #083b39;
    background: #9bf3e9;
    box-shadow: 0 28px 60px rgba(4, 15, 28, 0.26);
}

.auth-core-lock svg {
    display: block;
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 590px;
    margin-top: 2rem;
}

.auth-feature-grid div {
    min-height: 122px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-feature-grid span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    color: #083b39;
    background: #9bf3e9;
    font-weight: 950;
}

.auth-feature-grid strong,
.auth-feature-grid small {
    display: block;
}

.auth-feature-grid strong {
    color: #fff;
    font-size: 1rem;
}

.auth-feature-grid small {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
}

.auth-visual {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1rem, 4vw, 2.4rem);
    width: min(300px, 48%);
    min-height: 240px;
}

.auth-donut {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 184px;
    height: 184px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 54%, transparent 55%),
        conic-gradient(#6ee7d8 0 72%, #60a5fa 72% 90%, #f59e0b 90% 100%);
    box-shadow: 0 26px 55px rgba(4, 15, 28, 0.26);
    animation: authPulse 4s ease-in-out infinite;
}

.auth-donut span,
.auth-donut small {
    grid-area: 1 / 1;
}

.auth-donut span {
    margin-top: -0.65rem;
    color: var(--app-ink);
    font-size: 2.25rem;
    font-weight: 950;
}

.auth-donut small {
    margin-top: 2.15rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 850;
}

.auth-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 190px;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 45px rgba(4, 15, 28, 0.18);
    backdrop-filter: blur(14px);
    animation: authFloat 6s ease-in-out infinite;
}

.auth-floating-card span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.auth-floating-card strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.auth-floating-card-one {
    left: 0;
    top: 12px;
}

.auth-floating-card-two {
    left: 42px;
    top: 92px;
    animation-delay: -1.4s;
}

.auth-floating-card-two span {
    background: #60a5fa;
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.18);
}

.auth-login-panel {
    position: relative;
    min-width: 0;
    padding: clamp(0.2rem, 1vw, 1rem);
}

.auth-card-compact .auth-login-panel {
    padding: 0;
}

.auth-login-glow {
    position: absolute;
    inset: 9% 5%;
    border-radius: 36px;
    background:
        radial-gradient(circle at 50% 0, rgba(18, 184, 166, 0.22), transparent 52%),
        radial-gradient(circle at 95% 86%, rgba(37, 99, 235, 0.12), transparent 42%);
    filter: blur(18px);
}

.auth-card-compact .auth-login-glow {
    inset: -16% -12%;
    border-radius: 32px;
    opacity: 0.94;
    background:
        radial-gradient(circle at 18% 12%, rgba(18, 184, 166, 0.28), transparent 42%),
        radial-gradient(circle at 96% 82%, rgba(37, 99, 235, 0.16), transparent 42%),
        radial-gradient(circle at 50% 105%, rgba(245, 158, 11, 0.12), transparent 36%);
    filter: blur(24px);
}

.auth-login-card {
    position: relative;
    padding: clamp(1.25rem, 4vw, 2.4rem);
    border: 1px solid rgba(213, 226, 238, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 58px rgba(16, 27, 51, 0.13);
}

.auth-card-compact .auth-login-card {
    padding: clamp(1.35rem, 4vw, 2.6rem);
    border-color: rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
        rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 28px 70px rgba(16, 27, 51, 0.15);
    transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
}

.auth-body.auth-signing-in .auth-login-card {
    opacity: 0.2;
    filter: blur(7px);
    transform: translateY(-10px) scale(0.985);
}

.auth-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.35rem;
}

.auth-login-brand .brand-mark {
    width: 46px;
    height: 46px;
    margin-right: 0;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(15, 111, 232, 0.24);
}

.auth-login-brand strong {
    max-width: 260px;
    color: var(--app-ink);
    font-size: 1.08rem;
    line-height: 1.08;
    font-weight: 950;
}

.auth-login-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.auth-login-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: var(--app-primary-dark);
    background: #e8fbf8;
}

.auth-login-icon svg,
.auth-input-wrap svg,
.auth-submit svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-login-header h2 {
    margin: 0;
    color: var(--app-ink);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-login-header p {
    margin: 0.18rem 0 0;
    color: var(--app-muted);
    font-weight: 650;
}

.auth-card-compact .auth-login-header p {
    max-width: 320px;
}

.auth-login-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.4rem;
}

.auth-remember-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #f8fbff;
    cursor: pointer;
}

.auth-remember-option .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.15rem 0 0;
}

.auth-remember-option span,
.auth-remember-option small {
    display: block;
}

.auth-remember-option strong {
    color: var(--app-ink);
    font-size: 0.9rem;
}

.auth-remember-option small {
    margin-top: 0.12rem;
    color: var(--app-muted);
    font-size: 0.78rem;
}

.auth-remember-option:has(.form-check-input:checked) {
    border-color: rgba(15, 111, 232, 0.42);
    background: rgba(15, 111, 232, 0.06);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > span {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #64748b;
    transform: translateY(-50%);
}

.auth-input-wrap .form-control {
    min-height: 56px;
    padding-left: 3.1rem;
    border-radius: 16px;
    background: #f8fbff;
}

.auth-input-wrap .form-control:focus {
    background: #fff;
    transform: translateY(-1px);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 56px;
    margin-top: 0.35rem;
    border-radius: 16px;
    font-weight: 900;
}

.auth-submit svg {
    width: 19px;
    height: 19px;
    transition: transform 0.18s ease;
}

.auth-submit:hover svg,
.auth-submit:focus-visible svg {
    transform: translateX(3px);
}

.auth-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.15rem;
    color: var(--app-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.auth-login-footer span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

@keyframes authFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes authPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.035);
    }
}

@keyframes authReveal {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        filter: none;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition,
    .page-transition__bar,
    .page-transition__mark,
    body.page-transition-enter main,
    body.page-transition-leaving main,
    body.page-transition-leaving .app-topbar,
    body.page-transition-leaving .app-sidebar,
    body.page-transition-leaving .auth-card {
        animation: none;
        transition: none;
        filter: none;
        transform: none;
    }

    .auth-shell::before,
    .auth-shell::after,
    .auth-orbit,
    .auth-donut,
    .auth-floating-card,
    .auth-card-compact {
        animation: none;
    }

    .auth-dashboard-bg,
    .auth-login-card {
        transition: none;
    }
}

.eyebrow {
    display: inline-block;
    color: var(--app-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    text-align: left;
}

.page-heading > div {
    text-align: left;
}

.page-heading h1 {
    margin: 0.2rem 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    font-weight: 850;
}

.content-panel,
.metric-card {
    background: var(--app-panel);
    border: 1px solid var(--app-line);
    border-radius: 14px;
    box-shadow: var(--app-shadow);
}

.content-panel {
    padding: 1.35rem;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-with-icon .client-metric-svg,
.icon-only-btn .client-metric-svg {
    width: 18px;
    height: 18px;
}

.icon-only-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
}

.metric-card {
    padding: 1.25rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(16, 27, 51, 0.1);
}

.metric-card > span:not(.results-metric-icon) {
    display: block;
    color: var(--app-muted);
    font-size: 0.9rem;
}

.metric-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--app-ink);
    font-size: 2.25rem;
    line-height: 1;
}

.results-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
    align-items: stretch;
    gap: 1rem;
}

.results-metric-card {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    align-content: center;
    gap: 0.82rem;
    min-height: 150px;
    text-align: center;
}

.results-metric-card > div {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
}

.results-metric-card > div > span {
    display: block;
    color: var(--app-muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.results-metric-card > div > strong {
    display: block;
    margin: 0;
    color: var(--app-ink);
    font-size: 2.25rem;
    line-height: 1;
}

.results-metric-card > div > strong .score-pill {
    min-width: auto;
    min-height: auto;
    padding: 0.26rem 0.72rem 0.34rem;
    border-radius: 12px;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.results-metric-card > div > strong .score-pill.is-low {
    color: #b91c1c;
}

.results-metric-card > div > strong .score-pill.is-mid {
    color: #a16207;
}

.results-metric-card > div > strong .score-pill.is-high {
    color: #15803d;
}

.results-metric-card > div > strong .score-pill.is-na {
    color: #64748b;
}

.results-metric-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    color: #2563eb;
    background: #eef6ff;
    line-height: 0;
    overflow: hidden;
}

.results-metric-green {
    color: var(--app-action-blue-dark, #0567d8);
    background: #e6f7f4;
}

.results-metric-teal {
    color: #0891b2;
    background: #e6fbff;
}

.results-metric-amber {
    color: #b7791f;
    background: #fff7df;
}

.results-metric-svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-card strong .score-with-star {
    font-size: inherit;
}

.metric-card strong .score-star,
.metric-card strong .score-star svg {
    width: 28px;
    height: 28px;
}

.table thead th {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.table a:not(.btn),
.detail-list a:not(.btn),
.content-panel a.fw-semibold {
    color: var(--app-ink);
    text-decoration: none;
    font-weight: 800;
}

.table a:not(.btn):hover,
.detail-list a:not(.btn):hover,
.content-panel a.fw-semibold:hover {
    color: #0f6fe8;
}

.table > :not(caption) > * > * {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    border-bottom-color: var(--app-line);
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--app-line);
    border-radius: 14px;
    color: var(--app-muted);
    text-align: center;
    background: #f9fbff;
}

.action-cluster {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.action-cluster .btn {
    --bs-btn-padding-y: 0.34rem;
    --bs-btn-padding-x: 0.58rem;
    --bs-btn-font-size: 0.84rem;
    border-radius: 10px;
    font-weight: 750;
}

.action-cluster.template-action-cluster {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.42rem;
    width: auto;
}

.template-actions-column {
    width: 250px;
    min-width: 250px;
}

.template-disabled-action-tooltip {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
}

.template-disabled-action-tooltip:focus-visible {
    outline: 3px solid rgba(15, 111, 232, 0.25);
    outline-offset: 2px;
}

.template-disabled-action-tooltip > button {
    pointer-events: none;
}

.results-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: end;
}

.results-filter-field {
    min-width: 0;
}

.results-filter-field .form-select,
.results-filter-field .form-control {
    width: 100%;
}

.results-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.65rem;
}

.results-filter-actions .btn {
    min-width: 118px;
}

@media (min-width: 992px) {
    .results-filter-form {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.action-cluster.template-action-cluster form {
    display: inline-flex;
    width: auto;
    margin: 0;
}

.action-cluster.template-action-cluster .template-action-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0 !important;
    border-radius: 10px;
    line-height: 1;
}

@media (max-width: 768px) {
    .table td.template-actions-column {
        width: 100%;
        min-width: 0;
    }

    .action-cluster.template-action-cluster {
        flex-wrap: wrap;
    }

    .results-filter-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .results-filter-actions .btn {
        width: auto;
        flex: 1 1 118px;
    }
}

.template-action-icon,
.question-action-icon,
.builder-action-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.template-assignment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    padding: 0.25rem 0.55rem;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
    color: var(--app-primary-dark);
    background: #ecfdf5;
    font-weight: 850;
    cursor: inherit;
}

.template-assignment-popover {
    display: inline-flex;
    position: relative;
    cursor: inherit;
}

.template-assignment-tooltip {
    min-width: 260px;
    max-width: min(360px, calc(100vw - 24px));
}

.template-identity {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.template-identity-main {
    min-width: 0;
}

.templates-table .template-assignment-tooltip:not(.is-floating) {
    display: none;
}

.templates-table .template-assignment-popover {
    max-width: 100%;
}

@media (max-width: 1072px) {
    .templates-table-responsive {
        overflow: visible;
    }

    .templates-table {
        display: block;
        margin-bottom: 0;
    }

    .templates-table thead {
        display: none;
    }

    .templates-table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .templates-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 1rem;
        border: 1px solid var(--app-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(16, 27, 51, 0.06);
    }

    .templates-table tbody td {
        display: grid;
        grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: center;
        width: 100%;
        padding: 0.62rem 0.7rem;
        border-bottom: 1px solid #eef2f7;
        text-align: left !important;
    }

    .templates-table tbody td::before {
        content: attr(data-label);
        color: var(--app-muted);
        font-size: 0.75rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .templates-table tbody td:first-child,
    .templates-table tbody td.template-actions-column {
        grid-column: 1 / -1;
    }

    .templates-table tbody td:first-child {
        display: block;
        padding-top: 0;
    }

    .templates-table tbody td:first-child::before {
        display: none;
    }

    .templates-table tbody td.template-actions-column {
        width: 100%;
        min-width: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .templates-table .template-identity {
        display: grid;
        width: 100%;
    }

    .templates-table .template-identity-main {
        overflow-wrap: anywhere;
    }

    .templates-table .action-cluster.template-action-cluster {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .templates-table tbody tr {
        grid-template-columns: 1fr;
    }

    .templates-table tbody td,
    .templates-table tbody td:first-child,
    .templates-table tbody td.template-actions-column {
        grid-column: 1;
    }

    .templates-table .action-cluster.template-action-cluster {
        flex-wrap: wrap;
    }
}

.builder-add-question-btn {
    box-shadow: 0 8px 18px rgba(15, 111, 232, 0.18);
}

.builder-add-question-btn:hover,
.builder-add-question-btn:focus-visible,
.builder-add-question-btn:active {
    box-shadow: 0 10px 24px rgba(15, 111, 232, 0.3);
}

.system-users-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto auto;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.system-user-identity {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 220px;
}

.system-user-identity > span:last-child,
.system-subscription-cell {
    display: grid;
    gap: 0.1rem;
}

.system-user-identity small,
.system-subscription-cell small {
    color: var(--app-muted);
    font-size: 0.78rem;
}

.system-user-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.account-billing-section {
    margin-bottom: 1rem;
}

.account-billing-section-after-admin {
    margin-top: 1.6rem;
}

#usuarios {
    margin-bottom: 1.15rem;
}

#planes {
    margin-top: 1.15rem;
}

.account-billing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.account-billing-grid > div {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
}

.account-billing-grid span,
.account-billing-grid small {
    display: block;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.account-billing-grid strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--app-ink);
    overflow-wrap: anywhere;
}

.subscription-required-summary {
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.subscription-required-summary > div {
    width: 100%;
    padding: 0.85rem 1rem;
}

.subscription-required-summary strong {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-transform: capitalize;
}


.plan-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.plan-admin-card {
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 27, 51, 0.06);
}

.plan-admin-card-new {
    border-style: dashed;
    background: #f8fbff;
}

.plan-admin-form .form-label {
    font-size: 0.74rem;
}

.plan-workbench {
    display: grid;
    grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.plan-list-panel,
.plan-editor-panel {
    min-width: 0;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 27, 51, 0.06);
}

.plan-list-panel {
    padding: 0.85rem;
    position: sticky;
    top: 1rem;
}

.plan-list-title,
.plan-editor-heading,
.plan-provider-heading,
.plan-provider-row-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.plan-list-title {
    margin-bottom: 0.75rem;
}

.plan-list-title strong,
.plan-editor-heading h3,
.plan-wizard-step h4,
.plan-provider-heading h4 {
    color: var(--app-ink);
}

.plan-list-title small,
.plan-selector-item small,
.plan-selector-meta,
.plan-editor-heading p,
.plan-provider-heading p,
.plan-provider-row-header small,
.plan-wizard-step p {
    color: var(--app-muted);
    font-weight: 750;
}

.plan-selector-list {
    display: grid;
    gap: 0.55rem;
}

.plan-selector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.72rem 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--app-ink);
    text-decoration: none;
}

.plan-selector-item:hover,
.plan-selector-item:focus-visible,
.plan-selector-item.is-selected {
    border-color: rgba(15, 111, 232, 0.32);
    background: #eef6ff;
    color: var(--app-action-blue-dark);
}

.plan-selector-item strong,
.plan-selector-item small,
.plan-selector-meta span {
    display: block;
}

.plan-selector-item > span:first-child {
    min-width: 0;
}

.plan-selector-item strong,
.plan-selector-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-selector-meta {
    flex: 0 0 auto;
    text-align: right;
    font-size: 0.72rem;
}

.plan-selector-add {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--app-action-blue);
    color: #fff;
    font-weight: 900;
}

.plan-editor-panel {
    padding: 1rem;
}

.plan-editor-heading {
    margin-bottom: 0.9rem;
}

.plan-editor-heading h3,
.plan-editor-heading p,
.plan-wizard-step h4,
.plan-wizard-step p,
.plan-provider-heading h4,
.plan-provider-heading p {
    margin: 0;
}

.plan-editor-heading h3 {
    font-size: 1.35rem;
    line-height: 1.15;
}

.plan-wizard {
    display: grid;
    gap: 0.85rem;
}

.plan-wizard-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
}

.plan-wizard-step-muted {
    background: #f8fbff;
}

.plan-step-number {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eaf4ff;
    color: var(--app-action-blue);
    font-weight: 900;
}

.plan-mercadopago-step {
    margin-top: 0.85rem;
}

.mp-plan-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.mp-plan-guide span {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.7rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--app-muted);
    font-weight: 750;
}

.mp-plan-guide b {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--app-action-blue);
    color: #fff;
    font-size: 0.78rem;
}

.mp-flow-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.85rem 0;
}

.mp-flow-board > div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
}

.mp-flow-board strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--app-ink);
    font-weight: 900;
}

.mp-flow-board ol {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.mp-flow-board li + li {
    margin-top: 0.28rem;
}

.plan-provider-row {
    padding: 0.9rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.75rem;
}

.plan-provider-row-header {
    margin-bottom: 0.7rem;
}

.mp-provider-state-grid {
    display: grid;
    grid-template-columns: minmax(210px, 0.9fr) minmax(250px, 1fr) minmax(180px, auto);
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
}

.mp-status-readout,
.mp-environment-readout {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.mp-status-readout strong,
.mp-status-readout small,
.mp-environment-readout strong,
.mp-environment-readout small {
    display: block;
}

.mp-status-readout strong,
.mp-environment-readout strong {
    color: var(--app-ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.mp-status-readout small,
.mp-environment-readout small {
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.mp-toggle-indicator {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.mp-toggle-indicator span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.mp-toggle-indicator.is-on {
    background: #22c55e;
}

.mp-toggle-indicator.is-on span {
    left: 19px;
}

.mp-environment-readout.is-test .settings-status-led {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.mp-environment-readout.is-production .settings-status-led {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.mp-environment-readout.is-disabled .settings-status-led {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.plan-provider-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.mp-plan-amount {
    color: var(--app-ink);
    white-space: nowrap;
}

.plan-provider-search-results {
    background: #f8fbff;
}

.mp-plan-diagnostics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.mp-plan-diagnostic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--app-muted);
    font-size: 0.82rem;
}

.mp-plan-diagnostic.is-current {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.mp-plan-diagnostic span {
    min-width: 0;
}

@media (max-width: 900px) {
    .mp-plan-diagnostics {
        grid-template-columns: 1fr;
    }
}


.plan-settings-fieldset,
.plan-workbench,
.plan-list-panel,
.plan-editor-panel,
.plan-provider-row,
.mp-flow-board,
.mp-provider-state-grid,
.plan-provider-search-results {
    max-width: 100%;
    min-width: 0;
}

#planes.is-locked .plan-admin-form,
#planes.is-locked .plan-provider-form {
    opacity: 0.72;
}

#planes.is-locked .plan-wizard-step,
#planes.is-locked .plan-provider-row {
    background: #f8fafc;
}

#planes.is-locked .plan-selector-new,
#planes .btn.disabled {
    pointer-events: none;
    opacity: 0.55;
}

.plan-provider-actions .btn {
    min-width: 0;
}

#usuarios {
    margin-bottom: 1.5rem;
}

#mercadopago {
    margin-bottom: 0.75rem;
}

@media (max-width: 1490px) {
    #planes .settings-section-header,
    #planes .settings-section-tools {
        min-width: 0;
    }

    #planes .settings-section-tools {
        flex-wrap: wrap;
    }

    .mp-flow-board,
    .mp-provider-state-grid,
    .plan-workbench,
    .mp-plan-guide {
        grid-template-columns: 1fr;
    }

    .plan-list-panel {
        position: static;
    }

    .plan-provider-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-provider-actions .btn {
        width: 100%;
        white-space: normal;
    }

    .plan-editor-heading,
    .plan-provider-heading,
    .plan-provider-row-header {
        flex-wrap: wrap;
    }

    .plan-selector-item {
        align-items: flex-start;
    }

    .plan-selector-item strong,
    .plan-selector-item small,
    .plan-selector-meta span,
    .mp-flow-board li,
    .mp-provider-state-grid,
    .plan-provider-row-header small {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {
    .plan-provider-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .plan-wizard-step {
        grid-template-columns: 1fr;
    }

    .plan-step-number {
        width: 28px;
        height: 28px;
    }

    .plan-list-title,
    .plan-editor-heading,
    .plan-provider-heading,
    .plan-provider-row-header {
        display: grid;
    }

    .plan-selector-item {
        align-items: flex-start;
    }
}

.plan-usage-panel,
.account-plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.plan-usage-panel > div,
.account-plan-option {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
}

.plan-usage-panel span,
.account-plan-option small {
    display: block;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.plan-usage-panel strong,
.account-plan-option strong {
    color: var(--app-ink);
}

.account-plan-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.account-plan-option.is-current {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eef6ff;
}

.system-plan-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.settings-status-icons {
    display: inline-flex;
    flex-wrap: nowrap;
    min-width: 0;
}

.settings-status-icons > .status-led,
.settings-status-icons > .email-status-badge {
    flex: 0 0 auto;
}
.system-plan-form .form-select {
    min-width: 118px;
}

@media (max-width: 640px) {
    .account-plan-option,
    .system-plan-form {
        align-items: stretch;
        flex-direction: column;
    }
}
.payment-result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-result-summary strong {
    white-space: nowrap;
    overflow-wrap: normal;
}

@media (max-width: 900px) {
    .account-billing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .account-billing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1072px) {
    .system-users-table-responsive {
        overflow: visible;
    }

    .system-users-table {
        display: block;
        margin-bottom: 0;
    }

    .system-users-table thead {
        display: none;
    }

    .system-users-table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .system-users-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem;
        border: 1px solid var(--app-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(16, 27, 51, 0.06);
    }

    .system-users-table tbody td {
        display: grid;
        grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
        gap: 0.7rem;
        align-items: center;
        width: 100%;
        padding: 0.62rem 0.7rem;
        border-bottom: 1px solid #eef2f7;
        text-align: left !important;
    }

    .system-users-table tbody td::before {
        content: attr(data-label);
        color: var(--app-muted);
        font-size: 0.75rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .system-users-table tbody td:first-child,
    .system-users-table tbody td:last-child {
        grid-column: 1 / -1;
    }

    .system-users-table tbody td:last-child {
        border-bottom: 0;
    }

    .system-user-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .system-users-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .system-users-filters,
    .system-users-table tbody tr {
        grid-template-columns: 1fr;
    }

    .system-users-table tbody td,
    .system-users-table tbody td:first-child,
    .system-users-table tbody td:last-child {
        grid-column: 1;
    }
}

.template-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    color: #7c3aed;
    background: #faf5ff;
    font-weight: 950;
    letter-spacing: 0.03em;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.03);
}

.template-avatar--xs {
    width: 28px;
    height: 28px;
    font-size: 0.74rem;
}

.template-avatar--sm {
    width: 38px;
    height: 38px;
    font-size: 0.86rem;
}

.template-avatar--md {
    width: 44px;
    height: 44px;
    font-size: 0.98rem;
}

.site-autocomplete-menu {
    position: fixed;
    z-index: 2147482000;
    display: grid;
    gap: 0.25rem;
    max-height: min(300px, 48vh);
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.site-autocomplete-menu[hidden] {
    display: none;
}

.site-autocomplete-option {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-radius: 10px;
    color: var(--app-ink);
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
}

.site-autocomplete-option:hover,
.site-autocomplete-option:focus {
    color: var(--app-primary-dark);
    background: #ecfeff;
    outline: 0;
}

.assignment-ref-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-ink);
    font-weight: 850;
    text-decoration: none;
}

.assignment-ref-link:hover,
.assignment-ref-link:focus {
    color: var(--app-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.assignment-id-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.18rem 0.5rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
}

.assignment-ref-inline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.assignment-ref-inline .assignment-id-pill {
    flex: 0 0 auto;
}

.assignment-ref-inline strong {
    min-width: 0;
    color: var(--app-ink);
}

.assignment-status-preview {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #f8fafc;
}

.assignment-status-preview strong {
    color: var(--app-ink);
    font-weight: 850;
}

.assignment-status-inline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 44px;
    padding: 0;
    color: var(--app-ink);
}

.assignment-status-inline .status-led {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: none;
}

.assignment-status-inline .status-led__dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.13);
}

.assignment-status-inline strong {
    color: var(--app-ink);
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.2;
}

.assignment-status-inline small {
    margin-top: 0.1rem;
    color: var(--app-muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

.settings-backup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.settings-backup-card {
    display: grid;
    gap: 1rem;
    align-content: space-between;
    min-height: 190px;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #f8fafc;
}

.settings-backup-card strong {
    color: var(--app-ink);
    font-weight: 900;
}

.settings-backup-card p {
    margin: 0.35rem 0 0;
    color: var(--app-muted);
}

.settings-backup-card-danger {
    background: #fff7f7;
    border-color: #fecaca;
}

.settings-import-form {
    display: grid;
    gap: 0.25rem;
}

.settings-file-control {
    min-height: 46px;
    padding: 0;
    overflow: hidden;
    line-height: 46px;
}

.settings-file-control::file-selector-button {
    height: 46px;
    margin: 0 0.9rem 0 0;
    padding: 0 1rem;
    border: 0;
    border-right: 1px solid #d9e2ef;
    background: #f8fafc;
    color: var(--app-ink);
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease;
}

.settings-file-control:hover::file-selector-button {
    background: #eef6ff;
    color: var(--app-action-blue-dark, #0567d8);
}

.settings-import-modes {
    display: grid;
    gap: 0.65rem;
}

.settings-import-mode {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    align-items: start;
    padding: 0.78rem 0.86rem;
    border: 1px solid #d9e2ef;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.settings-import-mode:hover,
.settings-import-mode:has(input:checked) {
    border-color: rgba(18, 184, 166, 0.58);
    box-shadow: 0 10px 24px rgba(16, 27, 51, 0.07);
}

.settings-import-mode:has(input:checked) {
    background: linear-gradient(180deg, #ffffff, #f1fcfa);
}

.settings-import-mode input {
    margin-top: 0.18rem;
    accent-color: var(--app-primary);
}

.settings-import-mode strong,
.settings-import-mode small {
    display: block;
}

.settings-import-mode strong {
    color: var(--app-ink);
    font-size: 0.94rem;
    font-weight: 900;
}

.settings-import-mode small {
    margin-top: 0.18rem;
    color: var(--app-muted);
    line-height: 1.35;
}

.results-breakdown-panel {
    overflow: visible;
}

.results-breakdown-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
}

.results-breakdown-summary > div:first-child {
    display: grid;
    gap: 0.15rem;
}

.results-breakdown-summary strong {
    color: var(--app-ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.results-breakdown-summary small {
    color: var(--app-muted);
    font-weight: 700;
}

.results-breakdown-body {
    border-top: 1px solid var(--app-line);
    padding-top: 1rem;
}

.weighted-assignment-list {
    display: grid;
    gap: 0.75rem;
}

.weighted-assignment-item {
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.weighted-assignment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
}

.weighted-assignment-summary::-webkit-details-marker {
    display: none;
}

.weighted-assignment-title {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.weighted-assignment-title > span:last-child {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.weighted-assignment-title strong {
    color: var(--app-ink);
    font-weight: 900;
}

.weighted-assignment-title small {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.weighted-assignment-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--app-muted);
    font-size: 0.86rem;
    font-weight: 850;
    white-space: nowrap;
}

.weighted-assignment-body {
    padding: 1rem;
    border-top: 1px solid var(--app-line);
    background: #f8fbff;
}

@media (max-width: 767.98px) {
    .weighted-assignment-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .weighted-assignment-stats {
        width: 100%;
        justify-content: space-between;
    }
}

.detail-list dt {
    color: var(--app-muted);
}

.question-list {
    display: grid;
    gap: 0.9rem;
}

.question-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
}

.question-main {
    min-width: 0;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--app-action-blue-soft);
    color: var(--app-action-blue-dark);
    font-weight: 700;
}

.question-actions {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.builder-layout,
.editor-preview-layout {
    display: grid;
    align-items: start;
    gap: 1rem;
}

.builder-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.editor-preview-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
}

.preview-panel,
.live-preview-panel {
    position: sticky;
    top: 5.25rem;
}

.survey-preview-device {
    overflow: hidden;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 10%, rgba(15, 111, 232, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(15, 111, 232, 0.09), rgba(96, 165, 250, 0.06)),
        #f8fbff;
}

.survey-preview-device-compact {
    max-width: 100%;
}

.survey-preview-hero,
.survey-preview-card {
    margin: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--app-action-blue-line);
    border-radius: 8px;
}

.survey-preview-hero {
    padding: 1rem;
}

.survey-preview-hero h3 {
    margin: 0.25rem 0 0.5rem;
    color: var(--app-ink);
    font-size: 1.15rem;
    font-weight: 850;
}

.survey-preview-hero p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.92rem;
}

.survey-preview-card {
    padding: 0.9rem;
}

.survey-preview-form {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.template-status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.template-status-overview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.template-status-label {
    display: inline-block;
    margin: 0;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.template-status-current,
.template-status-legend,
.template-status-legend > span {
    display: flex;
    align-items: center;
}

.template-status-current {
    gap: 0;
    border-radius: 999px;
}

.template-status-current:focus-visible,
.template-status-legend > span:focus-visible {
    outline: 3px solid rgba(15, 111, 232, 0.18);
    outline-offset: 2px;
}

.template-status-legend {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.28rem 0.65rem;
}

.template-status-legend > span {
    gap: 0.3rem;
    min-height: 26px;
    padding: 0.08rem;
    border-radius: 6px;
}

.template-status-legend .status-led {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.template-status-legend .status-led__dot {
    width: 8px;
    height: 8px;
    box-shadow: none !important;
}

.template-status-legend small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.survey-preview-question {
    background: #fff;
}

.empty-state.compact {
    padding: 0.85rem;
    font-size: 0.9rem;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    gap: 0.4rem;
    width: 180px;
    height: 180px;
    border: 2px dashed var(--app-line);
    border-radius: 8px;
    color: var(--app-muted);
    text-align: center;
    font-weight: 700;
    background: #f9fcfb;
}

.qr-placeholder span {
    max-width: 140px;
    font-size: 0.78rem;
    font-weight: 400;
}

.qr-tools {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.qr-preview-panel {
    display: flex;
    justify-content: center;
}

.qr-preview {
    width: 210px;
    max-width: 100%;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    padding: 0.5rem;
}

.qr-actions {
    display: grid;
    gap: 0.6rem;
}

.survey-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.08)),
        var(--app-bg);
}

.survey-shell {
    width: min(920px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 2rem 0;
}

.survey-container {
    display: grid;
    gap: 1rem;
}

.survey-hero,
.survey-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--app-line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 32, 29, 0.06);
}

.survey-hero {
    padding: 1.5rem;
}

.survey-hero h1 {
    margin: 0.3rem 0 0.6rem;
    font-weight: 750;
}

.survey-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--app-muted);
}

.survey-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.survey-meta span {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 999px;
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
    font-size: 0.9rem;
}

.survey-card {
    padding: 1.25rem;
}

.survey-form {
    display: grid;
    gap: 1rem;
}

.survey-draft-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--app-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.survey-draft-status::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.survey-draft-status[data-state="saving"]::before {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.survey-draft-status[data-state="error"]::before {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.survey-question {
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
}

.survey-question legend {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
}

.survey-question legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--app-action-blue-soft);
    color: var(--app-action-blue-dark);
    font-size: 0.88rem;
}

.survey-question legend small {
    color: #dc3545;
    font-size: 1rem;
}

.survey-options,
.number-scale,
.star-scale {
    display: grid;
    gap: 0.55rem;
}

.survey-options-inline,
.number-scale,
.star-scale {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
}

.survey-option,
.number-scale label,
.star-scale label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    cursor: pointer;
}

.survey-option:hover,
.number-scale label:hover,
.star-scale label:hover {
    border-color: var(--app-action-blue-line);
    background: var(--app-action-blue-soft);
}

.survey-option input,
.number-scale input,
.star-scale input {
    accent-color: var(--app-action-blue);
}

.number-scale label,
.star-scale label {
    justify-content: center;
}

.star-scale span {
    color: #2563eb;
    letter-spacing: 0.05em;
}

.survey-success {
    padding: 2rem 1rem;
    text-align: center;
}

.survey-success h2 {
    font-weight: 750;
}

.result-list,
.comment-list,
.answer-list {
    display: grid;
    gap: 0.75rem;
}

.result-list-item,
.comment-item,
.answer-item {
    display: block;
    padding: 0.9rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.result-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.result-list-item > span,
.comment-item > span {
    display: grid;
    gap: 0.15rem;
}

.result-list-item strong,
.comment-item strong {
    color: var(--app-ink);
}

.result-list-item em {
    font-style: normal;
    font-weight: 800;
}

.comment-item p,
.answer-item p {
    margin: 0.5rem 0 0;
    color: var(--app-muted);
}

.answer-item h3 {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    font-weight: 700;
}

.installer-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.32), transparent 28rem),
        radial-gradient(circle at 85% 15%, rgba(244, 63, 94, 0.22), transparent 24rem),
        linear-gradient(145deg, #07111f, #123047 55%, #0b1726);
    color: #f8fbff;
}

.installer-shell {
    width: min(1180px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.installer-hero,
.installer-progress-panel,
.installer-card,
.installer-submit-card,
.installer-complete {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.installer-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.installer-hero h1 {
    max-width: 780px;
    margin: 0.45rem 0 0.7rem;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 0.98;
    font-weight: 800;
}

.installer-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(248, 251, 255, 0.78);
    font-size: 1.05rem;
}

.installer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.installer-orb {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 34%, transparent 35%),
        conic-gradient(from 220deg, #38bdf8, #22c55e, #f59e0b, #fb7185, #38bdf8);
    color: #07111f;
    animation: installerFloat 5s ease-in-out infinite;
}

.installer-orb span {
    font-size: 2rem;
    font-weight: 900;
}

.installer-orb small {
    margin-top: -2rem;
    color: rgba(7, 17, 31, 0.72);
    font-weight: 800;
}

.installer-progress-panel {
    padding: 1rem;
    margin-bottom: 1rem;
}

.installer-progress-track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.installer-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #22c55e, #f59e0b);
    transition: width 0.5s ease;
}

.installer-progress-bar-animated {
    width: 15%;
}

.installer-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.installer-step {
    min-height: 116px;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.installer-step span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
}

.installer-step strong,
.installer-step small {
    display: block;
}

.installer-step strong {
    margin: 0.55rem 0 0.25rem;
}

.installer-step small {
    color: rgba(248, 251, 255, 0.72);
}

.installer-step-success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.14);
}

.installer-step-error {
    border-color: rgba(251, 113, 133, 0.72);
    background: rgba(251, 113, 133, 0.16);
}

.installer-alert {
    border: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.installer-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.installer-card {
    padding: 1.2rem;
}

.installer-card-heading {
    margin-bottom: 1rem;
}

.installer-card-heading h2 {
    margin: 0.35rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.installer-form {
    display: grid;
    gap: 1rem;
}

.installer-form .form-label,
.installer-form .form-text {
    color: rgba(248, 251, 255, 0.8);
}

.installer-form .form-control,
.installer-form .form-select {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}

.installer-muted-fields {
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.installer-flow-layout {
    align-items: start;
}

.installer-requirements-card {
    position: sticky;
    top: 1rem;
}

.installer-flow-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.installer-flow-tabs button {
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 251, 255, 0.68);
    font-weight: 850;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.installer-flow-tabs button.active,
.installer-flow-tabs button.completed {
    background: rgba(255, 255, 255, 0.18);
    color: #f8fbff;
}

.installer-flow-tabs button.active {
    transform: translateY(-2px);
}

.installer-flow-tabs button:disabled {
    cursor: not-allowed;
    filter: blur(0.4px);
    opacity: 0.48;
}

.installer-flow-card {
    position: relative;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.installer-flow-card.locked {
    pointer-events: none;
    user-select: none;
    opacity: 0.42;
    filter: blur(2.5px);
    transform: scale(0.99);
}

.installer-flow-card.completed {
    opacity: 0.86;
    filter: blur(0.7px);
}

.installer-flow-card.active {
    opacity: 1;
    filter: none;
    border-color: rgba(125, 211, 252, 0.5);
    transform: none;
}

.installer-flow-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.installer-test-panel {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.95rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.installer-test-panel p {
    margin: 0.15rem 0 0;
    color: rgba(248, 251, 255, 0.72);
}

.installer-test-panel .settings-led {
    background: #94a3b8;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.14);
}

.installer-test-success .settings-led {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.installer-test-warning .settings-led {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.2);
}

.installer-test-error .settings-led {
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18);
}

.installer-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.installer-choice {
    display: grid;
    gap: 0.55rem;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.installer-choice:hover {
    border-color: rgba(125, 211, 252, 0.45);
    transform: translateY(-2px);
}

.installer-choice input {
    width: 18px;
    height: 18px;
}

.installer-choice strong,
.installer-choice span {
    display: block;
}

.installer-choice span {
    color: rgba(248, 251, 255, 0.72);
}

.installer-security-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 760px;
    margin: 0 auto 1.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.12));
    color: rgba(248, 251, 255, 0.9);
    box-shadow: 0 16px 34px rgba(7, 17, 63, 0.22);
    text-align: left;
}

.installer-security-alert::before {
    content: '!';
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.24);
    color: #7dd3fc;
    font-weight: 900;
}

.installer-security-alert strong {
    color: #ffffff;
}

.requirement-list {
    display: grid;
    gap: 0.65rem;
}

.requirement-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.requirement-item span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 8px;
    font-weight: 900;
}

.requirement-item.ok span {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.requirement-item.fail span {
    background: rgba(251, 113, 133, 0.2);
    color: #fda4af;
}

.requirement-item strong,
.requirement-item small {
    display: block;
}

.requirement-item small {
    color: rgba(248, 251, 255, 0.68);
}

.installer-submit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.installer-submit-card strong,
.installer-submit-card span {
    display: block;
}

.installer-submit-card span {
    color: rgba(248, 251, 255, 0.72);
}

.installer-complete {
    padding: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    background: rgba(34, 197, 94, 0.18);
}

.installer-complete-muted {
    background: rgba(56, 189, 248, 0.14);
}

.installer-complete-mark {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #f8fbff;
    color: var(--app-action-blue-dark, #0567d8);
    font-weight: 900;
}

.installer-complete h2 {
    margin: 1rem 0 0.5rem;
    font-weight: 850;
}

.installer-complete p {
    max-width: 640px;
    margin: 0 auto 1.25rem;
    color: rgba(248, 251, 255, 0.78);
}

.installer-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 17, 31, 0.72);
    backdrop-filter: blur(10px);
}

.installer-overlay.show {
    display: grid;
}

.installer-overlay-card {
    width: min(460px, 100%);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #10243a;
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.installer-spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    border: 5px solid rgba(255, 255, 255, 0.18);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.dashboard-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.22), transparent 24rem),
        radial-gradient(circle at 90% 8%, rgba(251, 113, 133, 0.16), transparent 22rem),
        #f6fbff;
}

.dashboard-main {
    display: grid;
    gap: 1.2rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.2rem;
    align-items: stretch;
    min-height: 320px;
    padding: 1.25rem;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(14, 116, 144, 0.96), rgba(37, 99, 235, 0.92)),
        #0e7490;
    box-shadow: 0 24px 70px rgba(14, 116, 144, 0.24);
    overflow: hidden;
}

.dashboard-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.dashboard-hero-copy h1 {
    max-width: 780px;
    margin: 0.75rem 0 0.85rem;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.95;
    font-weight: 850;
}

.dashboard-hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.dashboard-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-pill-soft {
    border-color: rgba(14, 116, 144, 0.2);
    background: rgba(14, 116, 144, 0.08);
    color: #0e7490;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.dashboard-score-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    text-align: center;
    backdrop-filter: blur(14px);
}

.dashboard-score-card strong {
    display: block;
    font-size: 1.05rem;
}

.dashboard-score-card p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-active-card {
    grid-template-columns: auto minmax(160px, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 1rem;
    text-align: left;
}

.dashboard-active-donut {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    justify-items: center;
    width: 198px;
    height: 198px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 54%, transparent 55%),
        conic-gradient(
            #12b8a6 0 var(--answered),
            #f59e0b var(--answered) 100%
        );
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
    color: var(--app-ink);
}

.dashboard-active-donut::after {
    display: none;
}

.dashboard-active-donut.is-empty {
    background:
        radial-gradient(circle, #fff 0 54%, transparent 55%),
        conic-gradient(#e7edf6 0 360deg);
}

.dashboard-active-donut strong,
.dashboard-active-donut span {
    position: relative;
    z-index: 2;
}

.dashboard-active-donut strong {
    margin: 0;
    font-size: 3rem;
    font-weight: 950;
    line-height: 1;
}

.dashboard-active-donut span {
    max-width: 118px;
    margin-top: 0.2rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.12;
    text-align: center;
}

.dashboard-active-breakdown {
    display: grid;
    gap: 0.58rem;
}

.dashboard-active-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.68rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--app-ink);
}

.dashboard-active-chip > span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.dashboard-active-chip strong {
    font-size: 0.88rem;
    font-weight: 850;
}

.dashboard-active-chip em {
    color: var(--app-ink);
    font-size: 1.05rem;
    font-style: normal;
    font-weight: 950;
}

.dashboard-active-public > span {
    background: #12b8a6;
    box-shadow: 0 0 0 4px rgba(18, 184, 166, 0.16);
}

.dashboard-active-public em {
    color: var(--app-action-blue-dark, #0567d8);
}

.dashboard-active-directed > span {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.dashboard-active-directed em {
    color: #1d4ed8;
}

.dashboard-active-responses > span {
    background: #12b8a6;
    box-shadow: 0 0 0 4px rgba(18, 184, 166, 0.16);
}

.dashboard-active-responses em {
    color: var(--app-action-blue-dark, #0567d8);
}

.dashboard-active-pending > span {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.dashboard-active-pending em {
    color: #b45309;
}

.dashboard-active-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 330px;
}

.dashboard-active-visual .dashboard-active-donut {
    z-index: 2;
    width: 184px;
    height: 184px;
    animation: authPulse 4s ease-in-out infinite;
}

.dashboard-active-visual .dashboard-active-breakdown {
    position: absolute;
    top: 0.1rem;
    left: 0;
    right: 0;
    display: block;
    width: 100%;
}

.dashboard-active-visual .dashboard-active-chip {
    position: absolute;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    min-width: 142px;
    padding: 0.68rem 0.78rem;
    border-color: rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
}

.dashboard-active-visual .dashboard-active-chip strong {
    font-size: 0.8rem;
}

.dashboard-active-visual .dashboard-active-chip em {
    font-size: 1rem;
}

.dashboard-active-visual .dashboard-active-public {
    top: 0.15rem;
    left: 0;
}

.dashboard-active-visual .dashboard-active-directed {
    top: 0.15rem;
    right: 0;
}

.dashboard-active-visual .dashboard-active-responses {
    top: 0;
    left: 0;
}

.dashboard-active-visual .dashboard-active-pending {
    top: 0;
    right: 0;
}

.dashboard-active-secondary {
    position: absolute;
    right: 0.35rem;
    bottom: 0.2rem;
    left: 0.35rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.dashboard-active-secondary span {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0.52rem 0.65rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
}

.dashboard-active-secondary strong {
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 950;
}

@media (max-width: 576px) {
    .dashboard-active-visual {
        min-height: auto;
    }

    .dashboard-active-visual .dashboard-active-donut {
        margin-bottom: 0.85rem;
    }

    .dashboard-active-visual .dashboard-active-breakdown {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.48rem;
        width: 100%;
    }

    .dashboard-active-visual .dashboard-active-chip {
        position: static;
        min-width: 0;
    }

    .dashboard-active-secondary {
        position: static;
        width: 100%;
        margin-top: 0.48rem;
    }

    .dashboard-distribution-chart .dashboard-donut-card {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.dashboard-score-ring {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 57%, transparent 58%),
        conic-gradient(#fbbf24 var(--score), rgba(255, 255, 255, 0.22) 0);
    color: #0f172a;
}

.dashboard-score-gauge,
.client-score-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-score-ring span,
.dashboard-score-ring small {
    grid-area: 1 / 1;
}

.dashboard-score-ring span {
    margin-top: -0.8rem;
    font-size: 2.2rem;
    font-weight: 900;
}

.dashboard-score-ring small {
    margin-top: 2.5rem;
    color: #64748b;
    font-weight: 800;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-metric-card,
.dashboard-module-card,
.dashboard-panel {
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-metric-card:hover,
.dashboard-module-card:hover,
.dashboard-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 116, 144, 0.26);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.dashboard-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    padding: 1rem;
}

.dashboard-metric-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -35px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.16;
    background: currentColor;
}

.dashboard-metric-card span,
.dashboard-metric-card small {
    display: block;
    color: #64748b;
}

.dashboard-metric-card strong {
    display: block;
    margin: 0.45rem 0 0.25rem;
    color: #0f172a;
    font-size: 2.45rem;
    line-height: 1;
}

.dashboard-metric-blue {
    color: #0284c7;
}

.dashboard-metric-green {
    color: #16a34a;
}

.dashboard-metric-pink {
    color: #e11d48;
}

.dashboard-metric-amber {
    color: #d97706;
}

.dashboard-metric-red {
    color: #dc2626;
}

.dashboard-section,
.dashboard-insights-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-board-grid,
.dashboard-actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
    gap: 1rem;
}

.dashboard-section-heading,
.dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-section-heading h2,
.dashboard-panel-heading h2 {
    margin: 0.45rem 0 0;
    color: #0f172a;
    font-weight: 820;
}

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-module-card {
    display: grid;
    gap: 0.55rem;
    min-height: 190px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.dashboard-module-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    color: #fff;
    font-weight: 900;
}

.dashboard-module-card strong {
    color: #0f172a;
    font-size: 1.1rem;
}

.dashboard-module-card p {
    margin: 0;
    color: #64748b;
}

.dashboard-module-card em {
    align-self: end;
    color: #0e7490;
    font-style: normal;
    font-weight: 800;
}

.dashboard-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-panel {
    padding: 1rem;
}

.dashboard-panel-heading {
    margin-bottom: 1rem;
}

.dashboard-panel-heading a {
    color: #0e7490;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-panel-alert {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.92));
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table tbody tr {
    transition: background 0.18s ease;
}

.dashboard-table tbody tr:hover {
    background: #f7fbff;
}

.dashboard-distribution-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-distribution-chart {
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: #fff;
}

.dashboard-distribution-chart h3 {
    margin: 0 0 0.75rem;
    color: var(--app-ink);
    font-size: 0.95rem;
    font-weight: 900;
}

.dashboard-distribution-chart .dashboard-donut-card {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0.85rem;
}

.dashboard-distribution-chart .dashboard-donut {
    width: 150px;
    height: 150px;
}

.dashboard-distribution-chart .dashboard-donut strong {
    font-size: 1.7rem;
}

.dashboard-distribution-chart .dashboard-donut span {
    margin-top: 1.7rem;
    font-size: 0.82rem;
}

.dashboard-distribution-chart .dashboard-donut-legend {
    gap: 0.48rem;
}

.dashboard-distribution-chart .dashboard-donut-legend div {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 0.45rem;
}

.dashboard-distribution-chart .dashboard-donut-legend small {
    grid-column: 2;
}

.dashboard-donut-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.dashboard-donut {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 48%, transparent 49%),
        conic-gradient(
            #12b8a6 0 var(--satisfied),
            #fbbf24 var(--satisfied) calc(var(--satisfied) + var(--neutral)),
            #ef4444 calc(var(--satisfied) + var(--neutral)) 100%
        );
}

.dashboard-channel-donut {
    background:
        radial-gradient(circle, #fff 0 54%, transparent 55%),
        conic-gradient(
            #12b8a6 0 var(--public),
            #2563eb var(--public) 100%
        );
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.11);
}

.dashboard-donut strong,
.dashboard-donut span {
    grid-area: 1 / 1;
}

.dashboard-donut strong {
    margin-top: -0.6rem;
    color: var(--app-ink);
    font-size: 2rem;
    font-weight: 900;
}

.dashboard-donut span {
    margin-top: 2rem;
    color: var(--app-muted);
    font-weight: 700;
}

.dashboard-donut-legend {
    display: grid;
    gap: 0.75rem;
}

.dashboard-donut-legend div {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.dashboard-donut-legend span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-satisfied span {
    background: #12b8a6;
}

.legend-neutral span {
    background: #fbbf24;
}

.legend-low span {
    background: #ef4444;
}

.legend-public span {
    background: #12b8a6;
}

.legend-directed span {
    background: #2563eb;
}

.dashboard-donut-legend strong {
    color: var(--app-ink);
}

.dashboard-donut-legend small {
    color: var(--app-muted);
    font-weight: 700;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quick-action {
    display: grid;
    place-items: center;
    gap: 0.65rem;
    min-height: 132px;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    color: var(--app-ink);
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--app-shadow);
}

.quick-action span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.quick-action-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-action-blue {
    background: #f2f7ff;
}

.quick-action-blue span {
    background: #bfdbfe;
    color: #2563eb;
}

.quick-action-green {
    background: #effdf9;
}

.quick-action-green span {
    background: #99f6e4;
    color: var(--app-action-blue-dark, #0567d8);
}

.quick-action-purple {
    background: #f6f3ff;
}

.quick-action-purple span {
    background: #ddd6fe;
    color: #7c3aed;
}

.quick-action-amber {
    background: #fff8e8;
}

.quick-action-amber span {
    background: #fde68a;
    color: #b45309;
}

.quick-action-cyan {
    background: #eefcff;
}

.quick-action-cyan span {
    background: #cffafe;
    color: #0891b2;
}

.quick-action-slate {
    background: #f8fafc;
}

.quick-action-slate span {
    background: #e2e8f0;
    color: #475569;
}

.pending-list {
    display: grid;
    gap: 0.7rem;
}

.pending-list a {
    display: block;
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.pending-list a:hover {
    background: #f7fbff;
    transform: translateX(3px);
}

.pending-list span,
.pending-list small {
    display: block;
}

.pending-list span {
    color: var(--app-ink);
    font-weight: 850;
}

.pending-list .assignment-id-pill {
    display: inline-flex;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.pending-list .dashboard-pending-title {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    color: var(--app-ink);
    font-weight: 850;
}

.pending-list .dashboard-pending-title strong {
    font-weight: 850;
}

.pending-list .dashboard-pending-title .assignment-id-pill {
    margin-right: 0;
}

.pending-list .dashboard-pending-title .email-status-badge,
.pending-list .dashboard-pending-title .type-icon-badge {
    flex: 0 0 auto;
}

.pending-list .dashboard-pending-title .type-icon-badge,
.pending-list .dashboard-pending-title .email-status-badge.is-icon-only {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 12px;
    line-height: 0;
}

.pending-list .dashboard-pending-title .type-icon-symbol,
.pending-list .dashboard-pending-title .type-icon-symbol svg,
.pending-list .dashboard-pending-title .email-status-badge svg {
    margin: 0;
    transform: none;
}

.pending-list .dashboard-pending-title .type-icon-symbol {
    width: 20px;
    height: 20px;
}

.pending-list .dashboard-pending-title .type-icon-symbol svg,
.pending-list .dashboard-pending-title .email-status-badge svg {
    width: 18px;
    height: 18px;
}

.pending-list small {
    color: var(--app-muted);
}

.dashboard-result-list .result-list-item {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dashboard-result-list .result-list-item:hover {
    transform: translateX(4px);
    border-color: rgba(14, 116, 144, 0.24);
    background: #f8fdff;
}

.dashboard-response-main {
    min-width: 0;
}

.dashboard-response-survey {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.dashboard-response-survey .assignment-id-pill {
    flex: 0 0 auto;
}

.dashboard-response-survey strong {
    min-width: 0;
    color: var(--app-ink);
    font-weight: 850;
}

.results-report-btn .results-metric-svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.15;
}

.dashboard-body {
    background: #f6f8fb;
}

.dashboard-main {
    max-width: 1440px;
}

.dashboard-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    padding: 1.5rem;
    color: var(--app-ink);
    background: #ffffff;
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow);
}

.dashboard-hero-copy {
    padding: 0.25rem;
}

.dashboard-hero-copy h1 {
    max-width: 760px;
    color: var(--app-ink);
    font-size: clamp(2.2rem, 4.2vw, 4.3rem);
    letter-spacing: 0;
}

.dashboard-hero-copy p {
    max-width: 700px;
    color: var(--app-muted);
    font-size: 1.08rem;
}

.dashboard-pill {
    border-color: #cfe8ff;
    background: #eff7ff;
    color: #0567d8;
}

.dashboard-pill-soft {
    border-color: #cfe8ff;
    background: #f5fbff;
    color: #0567d8;
}

.dashboard-hero-actions .btn-light {
    background: #0f6fe8;
    border-color: #0f6fe8;
    color: #fff;
}

.dashboard-hero-actions .btn-outline-light {
    border-color: #d5deeb;
    color: var(--app-ink);
}

.dashboard-score-card {
    border-color: var(--app-line);
    background: #f8fbff;
    color: var(--app-ink);
    box-shadow: none;
}

.dashboard-score-card p {
    color: var(--app-muted);
}

.dashboard-active-card {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.05rem;
    overflow: visible;
    text-align: center;
}

.dashboard-active-donut {
    width: 198px;
    height: 198px;
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
}

.dashboard-active-donut strong {
    font-size: 3rem;
}

.dashboard-active-donut span {
    max-width: 124px;
    margin-top: 0.22rem;
}

.dashboard-active-breakdown {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
}

.dashboard-active-chip {
    min-width: 0;
    padding: 0.52rem 0.56rem;
}

.dashboard-active-chip strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-active-chip em {
    font-size: 0.98rem;
}

.dashboard-score-ring {
    background:
        radial-gradient(circle, #fff 0 57%, transparent 58%),
        conic-gradient(#12b8a6 var(--score), #e7edf6 0);
}

.dashboard-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metric-card,
.dashboard-module-card,
.dashboard-panel {
    border-color: var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.dashboard-metric-card {
    min-height: 160px;
    padding: 1.35rem;
}

.dashboard-metric-card strong {
    font-size: 2.55rem;
}

.dashboard-module-card {
    min-height: 178px;
}

.dashboard-module-card span {
    background: #eff7ff;
    color: #0567d8;
}

.dashboard-module-card em,
.dashboard-panel-heading a {
    color: #0567d8;
}

.history-list {
    display: grid;
    gap: 0.85rem;
}

.history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-left-width: 5px;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow);
}

.history-card-mail {
    border-left-color: #0f6fe8;
}

.history-card-public {
    border-left-color: #12b8a6;
}

.history-main {
    min-width: 0;
}

.history-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.history-title-row strong {
    color: var(--app-ink);
    font-size: 1.05rem;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
    color: var(--app-muted);
}

.history-meta > span:not(.channel-badge):not(.type-icon-badge) {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #f5f7fb;
    font-size: 0.85rem;
}

.history-side {
    min-width: 160px;
    text-align: right;
}

.history-side span,
.history-side small {
    display: block;
}

.history-side span {
    color: var(--app-ink);
    font-weight: 850;
}

.history-side small {
    color: var(--app-muted);
}

.history-status,
.channel-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
}

.history-status-done {
    background: #dcfce7;
    color: #15803d;
}

.history-status-pending {
    background: #fff7dd;
    color: #b45309;
}

.history-status-muted {
    background: #edf1f7;
    color: #64748b;
}

.history-status-incomplete {
    background: #fee2e2;
    color: #b91c1c;
}

.channel-badge-mail {
    background: #e9f2ff;
    color: #0567d8;
}

.channel-badge-public {
    background: #defaf5;
    color: var(--app-action-blue-dark, #0567d8);
}

.status-led {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    vertical-align: middle;
}

.status-led__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.14);
}

.status-led.is-on .status-led__dot {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16), 0 0 18px rgba(34, 197, 94, 0.7);
}

.status-led.is-pending .status-led__dot {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18), 0 0 18px rgba(245, 158, 11, 0.52);
}

.status-led.is-paused .status-led__dot {
    background: #38bdf8;
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.17), 0 0 18px rgba(56, 189, 248, 0.48);
}

.status-led.is-danger .status-led__dot {
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.16), 0 0 18px rgba(239, 68, 68, 0.5);
}

.status-led.is-off .status-led__dot {
    background: #94a3b8;
}

.type-icon-badge {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 14px;
    line-height: 1;
    overflow: hidden;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.type-icon-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.type-icon-mail {
    background: #edf6ff;
    color: #0567d8;
}

.type-icon-qr {
    background: #e9fbf7;
    color: var(--app-action-blue-dark, #0567d8);
}

.type-icon-symbol {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    line-height: 0;
    margin: 0;
}

.type-icon-symbol svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
    transform-origin: center;
}

.type-icon-mail .type-icon-symbol svg {
    width: 21px;
    height: 21px;
}

.type-icon-qr .type-icon-symbol svg {
    transform: translate(0.2px, 0.2px);
}

.type-icon-label {
    margin-left: 0.45rem;
    font-size: 0.86rem;
    font-weight: 850;
}

.report-table .type-icon-badge {
    display: inline-grid;
    place-items: center;
    margin-inline: auto;
}

.client-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.client-identity-text {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.client-identity-text a,
.client-identity-text span {
    color: var(--app-ink);
    line-height: 1.18;
    text-decoration: none;
}

.client-identity-text a:hover,
.client-identity-text a:focus-visible {
    color: var(--app-ink);
    text-decoration: underline;
    text-decoration-color: var(--app-action-blue);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.client-identity-text small {
    color: var(--app-muted);
}

.client-avatar {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: linear-gradient(135deg, #eef7ff, #e7fbf7);
    color: #0567d8;
    font-weight: 900;
    letter-spacing: 0;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-avatar-xs {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.72rem;
}

.client-avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
}

.client-avatar-md {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 1rem;
}

.client-avatar-lg {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    font-size: 1.25rem;
}

.client-logo-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #f8fbff;
}

.client-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-avatar-live-preview {
    border-color: rgba(18, 184, 166, 0.42);
    box-shadow: 0 0 0 4px rgba(18, 184, 166, 0.1), 0 14px 30px rgba(16, 27, 51, 0.1);
}

.client-logo-field .form-control {
    background: var(--app-field-bg);
}

.client-logo-field input[type="file"].form-control {
    min-height: 46px;
    padding: 0.56rem 0.85rem;
    line-height: 1.45;
}

.client-logo-field input[type="file"].form-control::file-selector-button {
    min-height: 46px;
    margin: -0.56rem 0.85rem -0.56rem -0.85rem;
    padding: 0.56rem 0.95rem;
    border: 0;
    border-right: 1px solid #d9e2ef;
    background: #f3f7fb;
    color: var(--app-ink);
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.client-logo-field input[type="file"].form-control:hover::file-selector-button,
input[type="file"].form-control:hover::file-selector-button {
    border-right-color: var(--app-action-blue-line, #cfe0f8);
    background: var(--app-action-blue-soft, #eff7ff);
    color: var(--app-action-blue-dark, #0567d8);
}

.client-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.client-card {
    display: grid;
    gap: 1rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.86), rgba(255, 255, 255, 0.96)),
        #fff;
    box-shadow: 0 14px 34px rgba(16, 27, 51, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.client-card:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 184, 166, 0.36);
    box-shadow: 0 22px 46px rgba(16, 27, 51, 0.1);
}

.client-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
}

.client-card-title {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.client-card-title a {
    color: var(--app-ink);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
}

.client-card-title a:hover,
.client-card-title a:focus-visible {
    color: var(--app-ink);
    text-decoration: underline;
    text-decoration-color: var(--app-action-blue);
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: auto;
    text-underline-offset: 0.08em;
}

.client-card-title span,
.client-card-meta span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.client-card-status {
    white-space: nowrap;
}

.client-card-meta {
    display: grid;
    gap: 0.35rem;
    min-height: 48px;
}

.client-card-meta span {
    overflow-wrap: anywhere;
}

.client-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.client-card-stats a {
    display: grid;
    gap: 0.1rem;
    min-height: 72px;
    padding: 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.client-card-stats a:hover {
    border-color: rgba(18, 184, 166, 0.42);
    background: #f7fffd;
}

.client-card-stats strong {
    color: var(--app-ink);
    font-size: 1.55rem;
    line-height: 1;
}

.client-card-stats span {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.client-card-actions,
.client-card-secondary-actions,
.client-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.client-card-actions .btn,
.client-card-secondary-actions .btn,
.client-card-secondary-actions form {
    flex: 1 1 auto;
}

.client-card-secondary-actions .btn {
    --bs-btn-padding-y: 0.34rem;
    --bs-btn-padding-x: 0.58rem;
    --bs-btn-font-size: 0.84rem;
    border-radius: 10px;
    font-weight: 800;
}

.client-card-secondary-actions form .btn {
    width: 100%;
}

.locked-client-card {
    display: grid;
    gap: 0.55rem;
    min-height: 82px;
    padding: 0.85rem;
    border: 1px solid rgba(18, 184, 166, 0.24);
    border-radius: 12px;
    background: linear-gradient(135deg, #f2fffc, #f8fbff);
}

.locked-client-card > span {
    color: var(--app-primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fixed-client-value {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.1rem 0;
}

.fixed-client-value .client-identity-text span {
    font-size: 1rem;
}

.clients-page {
    display: grid;
    gap: 1rem;
}

.clients-heading {
    margin-bottom: 0.2rem;
}

.clients-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 54px;
    padding-inline: 1.25rem;
    border-radius: 12px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(18, 184, 166, 0.22);
}

.clients-create-btn span {
    font-size: 1.5rem;
    line-height: 1;
}

.report-download-btn .report-metric-svg {
    width: 21px;
    height: 21px;
    stroke-width: 2.1;
}

.clients-search-card,
.clients-board {
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.clients-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1.25rem;
}

.clients-search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 58px;
    padding: 0 1rem;
    border: 1px solid var(--app-field-border);
    border-radius: 12px;
    background: var(--app-field-bg);
    color: #5e6b83;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.clients-search-field:focus-within {
    border-color: var(--app-field-border-focus);
    background: var(--app-field-bg-focus);
    box-shadow: var(--app-field-focus-shadow);
}

.clients-search-field input {
    width: 100%;
    min-height: 54px;
    border: 0;
    outline: 0;
    color: var(--app-ink);
    background: transparent;
    font-size: 1rem;
}

.clients-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 132px;
    min-height: 58px;
    border-radius: 12px;
    color: #455672;
    font-weight: 850;
}

.clients-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.clients-board {
    padding: 1.5rem;
    overflow: visible;
}

.clients-summary-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    color: var(--app-ink);
}

.clients-summary-row > strong {
    font-size: 1.03rem;
}

.clients-summary-row > span {
    color: var(--app-muted);
}

.clients-sort-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.clients-sort-form label {
    color: #475569;
    font-weight: 850;
    white-space: nowrap;
}

.clients-sort-form .form-select {
    min-width: 190px;
    min-height: var(--app-control-height);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
}

.clients-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.2rem;
    min-height: 230px;
    padding: 1.25rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 27, 51, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clients-card:hover {
    z-index: 15;
    transform: translateY(-2px);
    border-color: var(--app-action-blue-line);
    box-shadow: 0 18px 40px rgba(16, 27, 51, 0.1);
}

.clients-card .client-avatar-lg {
    width: 78px;
    height: 78px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f5ff, #ecfbf4);
    color: var(--app-primary-dark);
    font-size: 1.15rem;
}

.client-avatar-link {
    display: inline-flex;
    width: fit-content;
    height: fit-content;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

.client-avatar-link:focus-visible {
    outline: 3px solid rgba(15, 111, 232, 0.32);
    outline-offset: 3px;
}

.client-status-dot {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.14);
}

.client-status-active {
    background: #12b86f;
}

.client-status-inactive {
    background: #f59e0b;
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.15);
}

.clients-card-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.2rem;
    padding-right: 2rem;
}

.clients-card-main h2 {
    margin: 0 0 0.45rem;
    font-size: 1.38rem;
    font-weight: 900;
    line-height: 1.12;
}

.clients-card-main h2 a {
    display: inline;
    color: var(--app-ink);
    text-decoration: none;
}

.clients-card-main h2 a:hover,
.clients-card-main h2 a:focus-visible {
    color: var(--app-ink);
    text-decoration: underline;
    text-decoration-color: var(--app-action-blue);
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: auto;
    text-underline-offset: 0.08em;
}

.client-info-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #61708a;
}

.client-info-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.client-info-list span {
    overflow-wrap: anywhere;
}

.client-info-list .clients-icon {
    width: 18px;
    height: 18px;
    color: #6d7c96;
}

.clients-card-footer {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--app-line);
}

.clients-card-metrics,
.clients-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.clients-card-metrics a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #61708a;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.clients-card-metrics a:hover {
    color: var(--app-action-blue-dark);
}

.clients-card-metrics .clients-icon {
    width: 18px;
    height: 18px;
}

.client-metric-link {
    isolation: isolate;
}

.client-metric-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.7rem);
    z-index: 1200;
    display: grid;
    gap: 0.45rem;
    width: min(300px, 72vw);
    padding: 0.75rem;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 12px;
    color: var(--app-ink);
    background: #fff;
    box-shadow: 0 18px 38px rgba(16, 27, 51, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.client-metric-tooltip.is-floating {
    position: fixed;
    right: auto;
    bottom: auto;
    z-index: 2147482000;
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: none;
    overflow: visible;
}

.client-metric-tooltip::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-right: 1px solid var(--app-action-blue-line);
    border-bottom: 1px solid var(--app-action-blue-line);
    background: #fff;
    transform: rotate(45deg);
}

.client-metric-tooltip.is-floating::after {
    left: var(--tooltip-arrow-left, 1.2rem);
    right: auto;
}

.client-metric-tooltip.is-floating.is-below::after {
    top: -7px;
    bottom: auto;
    border-top: 1px solid var(--app-action-blue-line);
    border-left: 1px solid var(--app-action-blue-line);
    border-right: 0;
    border-bottom: 0;
}

.clients-card-metrics a:nth-child(2) .client-metric-tooltip {
    right: 0;
    left: auto;
}

.clients-card-metrics a:nth-child(2) .client-metric-tooltip::after {
    right: 1.2rem;
    left: auto;
}

.client-metric-tooltip strong {
    color: var(--app-action-blue-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-metric-tooltip small {
    color: var(--app-muted);
    font-weight: 750;
}

.client-tooltip-list {
    display: grid;
    gap: 0.4rem;
}

.client-tooltip-list > span {
    display: grid;
    gap: 0.12rem;
    padding-left: 0.65rem;
    border-left: 2px solid var(--app-action-blue-line);
}

.client-tooltip-list b {
    color: var(--app-ink);
    font-size: 0.9rem;
}

.client-tooltip-list em {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-style: normal;
}

.client-metric-link:hover .client-metric-tooltip,
.client-metric-link:focus-visible .client-metric-tooltip,
.client-metric-link.is-open .client-metric-tooltip,
.client-metric-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateY(0);
}

.clients-card-actions {
    display: grid;
    grid-template-columns: repeat(4, 42px);
    align-items: stretch;
    gap: 0.55rem;
    justify-content: flex-end;
    min-width: auto;
}

.clients-card-actions .btn,
.clients-card-actions form,
.clients-card-actions .dropdown {
    width: 100%;
}

.clients-card-actions form .btn,
.clients-card-actions .dropdown .btn {
    width: 100%;
}

.clients-card-actions .dropdown {
    position: relative;
}

.clients-card-actions .dropdown-menu {
    z-index: 2147482000;
}

.client-more-dropdown-menu {
    min-width: 190px;
    padding: 0.45rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(16, 27, 51, 0.14);
}

.client-more-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 38px;
    padding: 0.45rem 0.62rem;
    border-radius: 10px;
    color: var(--app-ink);
    font-weight: 850;
}

.client-more-dropdown-menu .dropdown-item:hover,
.client-more-dropdown-menu .dropdown-item:focus {
    color: var(--app-primary-dark);
    background: #edf9f7;
}

.client-more-dropdown-menu .dropdown-item .clients-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--app-primary);
}

.client-more-dropdown-menu-floating {
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2147482500 !important;
    min-width: 210px;
    max-width: min(280px, calc(100vw - 20px));
    box-shadow: 0 18px 40px rgba(16, 27, 51, 0.14);
    transform: none !important;
    will-change: top, left;
}

.client-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 850;
}

.client-action-btn .clients-icon {
    width: 18px;
    height: 18px;
}

.client-action-more .clients-icon-more {
    fill: currentColor;
    stroke: none;
}

.client-action-edit {
    border-color: rgba(18, 184, 166, 0.55);
    color: var(--app-primary-dark);
}

.client-action-edit:hover {
    background: #e9fbf7;
    border-color: var(--app-primary);
    color: var(--app-primary-dark);
}

.client-action-pause {
    border-color: rgba(245, 158, 11, 0.56);
    color: #d97706;
}

.client-action-pause:hover {
    background: #fff7ed;
    border-color: #f59e0b;
    color: #b45309;
}

.client-action-activate {
    border-color: rgba(34, 197, 94, 0.56);
    color: #16a34a;
}

.client-action-activate:hover {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.client-action-delete {
    border-color: rgba(244, 63, 94, 0.58);
    color: #f43f5e;
}

.client-action-delete:hover {
    background: #fff1f2;
    border-color: #f43f5e;
    color: #e11d48;
}

.client-action-more {
    border-color: #d9e2ef;
    color: #455672;
}

.client-action-more:hover {
    background: #f8fbff;
    border-color: #c9d5e7;
    color: var(--app-ink);
}

.client-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    color: #61708a;
}

.client-pagination nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.catalog-pagination .client-page-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-page-ellipsis {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 42px;
    color: #64748b;
    font-weight: 800;
}

.client-page-btn,
.client-page-current {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    color: #455672;
    background: #fff;
    text-decoration: none;
    font-weight: 900;
}

.client-page-btn:hover {
    border-color: var(--app-primary);
    color: var(--app-primary-dark);
}

.client-page-btn.disabled {
    pointer-events: none;
    opacity: 0.45;
}

.client-page-current {
    border-color: var(--app-primary);
    background: var(--app-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(18, 184, 166, 0.22);
}

.client-quick-actions {
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 27, 51, 0.06);
}

.client-quick-actions .btn {
    font-weight: 850;
}

.client-overview {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: stretch;
    padding: 2.8rem 1.25rem 1.25rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
    overflow: visible;
}

.client-overview-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.client-overview-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0;
}

.client-overview-main h2 {
    max-width: 760px;
    margin: 0 0 0.25rem;
    color: var(--app-ink);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
    font-weight: 850;
}

.client-overview-title strong {
    color: var(--app-muted);
    font-size: 1.05rem;
}

.client-overview-main p {
    max-width: 720px;
    color: var(--app-muted);
    font-size: 1.05rem;
}

.client-overview-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.client-overview-kpis span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    color: var(--app-primary-dark);
    background: #e8fbf8;
    font-size: 0.86rem;
    font-weight: 850;
}

.client-overview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.client-overview-meta > span:not(.badge):not(.status-led) {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    color: var(--app-muted);
    background: #f8fbff;
    font-size: 0.9rem;
    font-weight: 750;
}

.client-overview-meta .client-metric-svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #64748b;
}

.client-overview-meta > .client-overview-status {
    width: 30px;
    min-width: 30px;
    height: 30px;
    justify-content: center;
    padding: 0;
    color: var(--app-ink) !important;
}

.client-overview-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.client-overview-status-dot-activo,
.client-overview-status-dot-activa {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.client-overview-status-dot-inactivo,
.client-overview-status-dot-archivada {
    background: #94a3b8;
}

.client-overview-created {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    bottom: auto;
    color: #8a94a8;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.2;
}

.client-overview-side {
    display: grid;
    grid-template-columns: minmax(280px, 320px);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0.75rem;
    min-width: 0;
}

.client-overview-actions {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    padding-top: 0.15rem;
}

.client-overview-action-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
}

.client-overview-action-btn .client-metric-svg {
    width: 18px;
    height: 18px;
}

.client-overview-actions .dropdown-toggle::after {
    display: none;
}

.client-overview-actions .dropdown-menu {
    min-width: 190px;
    padding: 0.45rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(16, 27, 51, 0.14);
}

.client-overview-actions .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 38px;
    border-radius: 10px;
    color: var(--app-ink);
    font-weight: 850;
}

.client-overview-actions .dropdown-item:hover,
.client-overview-actions .dropdown-item:focus {
    color: var(--app-primary-dark);
    background: #edf9f7;
}

.client-overview-actions .dropdown-item .client-metric-svg {
    width: 16px;
    height: 16px;
    color: var(--app-primary);
}

.client-health-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    color: var(--app-ink);
    text-align: center;
}

.client-health-good {
    background: #e9fbf7;
}

.client-health-warning {
    background: #fff8e8;
}

.client-health-danger {
    background: #fff1f2;
}

.client-health-muted {
    background: #f4f7fb;
}

.client-health-card > span,
.client-health-card p {
    color: var(--app-muted);
    font-weight: 750;
}

.client-health-card p {
    margin: 0;
}

@media (min-width: 1200px) {
    .client-overview-side {
        grid-template-columns: minmax(280px, 320px) auto;
        grid-template-rows: minmax(0, 1fr);
    }

    .client-overview-actions {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        justify-self: start;
        width: max-content;
        max-width: 150px;
    }

    .client-health-card {
        grid-column: 1;
        grid-row: 1;
    }
}

.client-score-ring {
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 58%, transparent 59%),
        conic-gradient(#12b8a6 var(--score), #e7edf6 0);
}

.client-health-warning .client-score-ring {
    background:
        radial-gradient(circle, #fff 0 58%, transparent 59%),
        conic-gradient(#f59e0b var(--score), #f3e8cc 0);
}

.client-health-danger .client-score-ring {
    background:
        radial-gradient(circle, #fff 0 58%, transparent 59%),
        conic-gradient(#ef4444 var(--score), #f7d8dd 0);
}

.client-score-ring strong,
.client-score-ring small {
    grid-area: 1 / 1;
}

.client-score-ring strong {
    margin-top: -0.65rem;
    font-size: 2rem;
    font-weight: 900;
}

.client-score-ring small {
    margin-top: 2.1rem;
    color: var(--app-muted);
    font-weight: 800;
}

.score-ring {
    --ring-main: #22c55e;
    --ring-track: #e7edf6;
    --ring-soft: #ecfdf5;
    --ring-border: #bbf7d0;
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 58%, transparent 59%),
        conic-gradient(var(--ring-main) var(--score), var(--ring-track) 0);
    color: var(--ring-main);
}

.score-ring strong,
.score-ring small {
    grid-area: 1 / 1;
}

.score-ring strong {
    margin-top: -0.58rem;
    color: var(--app-ink);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
}

.score-ring small {
    margin-top: 2rem;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.score-ring--sm {
    width: 132px;
    height: 132px;
}

.score-ring--sm strong {
    font-size: 1.58rem;
}

.score-ring--sm small {
    margin-top: 1.75rem;
}

.score-ring--lg {
    width: 172px;
    height: 172px;
}

.score-ring--lg strong {
    font-size: 2rem;
}

.score-ring.is-low {
    --ring-main: #ef4444;
    --ring-track: #f7d8dd;
    --ring-soft: #fff1f2;
    --ring-border: #fecaca;
}

.score-ring.is-mid {
    --ring-main: #f59e0b;
    --ring-track: #f3e8cc;
    --ring-soft: #fff8e8;
    --ring-border: #fde68a;
}

.score-ring.is-high {
    --ring-main: #12b8a6;
    --ring-track: #d5f3ee;
    --ring-soft: #e9fbf7;
    --ring-border: #99f6e4;
}

.score-ring.is-na {
    --ring-main: #94a3b8;
    --ring-track: #e2e8f0;
    --ring-soft: #f4f7fb;
    --ring-border: #e2e8f0;
}

.client-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.client-metric-card {
    min-height: 142px;
    padding: 1.1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.client-metric-card span,
.client-metric-card small {
    display: block;
    color: var(--app-muted);
}

.client-metric-card .client-metric-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    color: #2563eb;
    background: #eef6ff;
}

.client-metric-card .client-metric-green {
    color: var(--app-action-blue-dark, #0567d8);
    background: #e6f7f4;
}

.client-metric-card .client-metric-teal {
    color: #0891b2;
    background: #e6fbff;
}

.client-metric-svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-metric-card strong {
    display: block;
    margin: 0.4rem 0 0.25rem;
    color: var(--app-ink);
    font-size: 2.4rem;
    line-height: 1;
}

.client-insights-grid,
.client-relationship-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.client-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.client-panel-heading h2 {
    margin: 0.25rem 0 0;
    color: var(--app-ink);
    font-size: 1.35rem;
    font-weight: 850;
}

.client-panel-heading a:not(.btn) {
    color: var(--app-ink);
    font-weight: 850;
    text-decoration: none;
}

.client-panel-heading a:not(.btn):hover {
    color: var(--app-primary-dark);
}

.client-channel-list,
.client-comment-list {
    display: grid;
    gap: 0.75rem;
}

.client-channel-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #f8fbff;
}

.client-channel-row > div > strong,
.client-channel-row > div > span,
.client-channel-row > em {
    display: block;
}

.client-channel-row > div > span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.client-channel-row em {
    color: var(--app-ink);
    font-style: normal;
    font-weight: 850;
    text-align: right;
}

.score-gauge {
    --size: 46px;
    --arc-width: 5px;
    --main: #22c55e;
    --main-dark: #16a34a;
    --main-soft: #dcfce7;
    --main-shadow: rgba(34, 197, 94, 0.28);
    --needle-angle: 0deg;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    width: auto;
    color: var(--main);
    vertical-align: middle;
    white-space: nowrap;
}

.score-gauge__dial {
    position: relative;
    order: 2;
    width: var(--size);
    height: var(--size);
    flex: 0 0 auto;
}

.score-gauge__arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 225deg,
            var(--main) 0deg 270deg,
            transparent 270deg 360deg
        );
    -webkit-mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - var(--arc-width)),
            #000 calc(100% - var(--arc-width) + 1px)
        );
    mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - var(--arc-width)),
            #000 calc(100% - var(--arc-width) + 1px)
        );
    filter: drop-shadow(0 5px 9px var(--main-shadow));
}

.score-gauge__needle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: max(4px, calc(var(--size) * 0.07));
    height: calc(var(--size) * 0.34);
    border-radius: 999px;
    background: linear-gradient(to top, var(--main-dark), var(--main));
    box-shadow: 0 5px 9px var(--main-shadow);
    transform: translate(-50%, -100%) rotate(var(--needle-angle));
    transform-origin: 50% 100%;
}

.score-gauge__needle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(var(--size) * -0.07);
    width: calc(var(--size) * 0.16);
    height: calc(var(--size) * 0.16);
    border-radius: 3px;
    background: var(--main);
    transform: translateX(-50%) rotate(45deg);
}

.score-gauge__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: calc(var(--size) * 0.26);
    height: calc(var(--size) * 0.26);
    border-radius: 50%;
    background: var(--main);
    box-shadow: 0 5px 10px var(--main-shadow);
    transform: translate(-50%, -50%);
}

.score-gauge__hub::after {
    content: "";
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
}

.score-gauge__value {
    position: relative;
    order: 1;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: calc(var(--size) * 1.75);
    min-height: calc(var(--size) * 0.96);
    padding: 0.06rem 0.58rem;
    margin-top: 0;
    border-radius: 999px;
    background: var(--main-soft);
    color: var(--main-dark);
    font-size: calc(var(--size) * 0.72);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    box-shadow:
        0 6px 13px var(--main-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.score-gauge.is-na .score-gauge__value {
    font-size: calc(var(--size) * 0.42);
}

.score-gauge.is-low {
    --main: #ef4444;
    --main-dark: #dc2626;
    --main-soft: #fee2e2;
    --main-shadow: rgba(239, 68, 68, 0.26);
}

.score-gauge.is-mid {
    --main: #facc15;
    --main-dark: #ca8a04;
    --main-soft: #fef3c7;
    --main-shadow: rgba(250, 204, 21, 0.32);
}

.score-gauge.is-high {
    --main: #22c55e;
    --main-dark: #16a34a;
    --main-soft: #dcfce7;
    --main-shadow: rgba(34, 197, 94, 0.28);
}

.score-gauge.is-na {
    --main: #94a3b8;
    --main-dark: #64748b;
    --main-soft: #f1f5f9;
    --main-shadow: rgba(100, 116, 139, 0.2);
}

.metric-card .score-gauge,
.response-score-card .score-gauge {
    --size: 60px;
    --arc-width: 6px;
}

.result-list-item .score-gauge,
.client-channel-row .score-gauge,
.client-survey-table .score-gauge,
.table .score-gauge {
    --size: 42px;
    --arc-width: 5px;
}

.score-gauge.score-gauge--sm {
    --size: 30px;
    --arc-width: 4px;
    gap: 0.3rem;
}

.score-gauge.score-gauge--sm .score-gauge__value {
    min-width: calc(var(--size) * 1.82);
    min-height: calc(var(--size) * 0.92);
    padding-inline: 0.36rem;
    font-size: calc(var(--size) * 0.58);
}

.score-gauge.score-gauge--lg,
.score-gauge.score-gauge--stacked {
    --size: 68px;
    --arc-width: 7px;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.score-gauge.score-gauge--lg .score-gauge__dial,
.score-gauge.score-gauge--stacked .score-gauge__dial {
    order: 1;
}

.score-gauge.score-gauge--lg .score-gauge__value,
.score-gauge.score-gauge--stacked .score-gauge__value {
    order: 2;
    min-width: auto;
    min-height: auto;
    padding: 0.24rem 0.62rem;
    font-size: calc(var(--size) * 0.42);
}

.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 50px;
    min-height: 28px;
    padding: 0.2rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.score-pill.is-low {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fee2e2;
}

.score-pill.is-mid {
    border-color: #fde68a;
    color: #a16207;
    background: #fef3c7;
}

.score-pill.is-high {
    border-color: #bbf7d0;
    color: #15803d;
    background: #dcfce7;
}

.score-pill.is-na {
    border-color: #e2e8f0;
    color: #64748b;
    background: #f1f5f9;
}

.score-with-star {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    color: #64748b;
    font-weight: 900;
    white-space: nowrap;
}

.score-with-star-low {
    color: #ef4444;
}

.score-with-star-mid {
    color: #f59e0b;
}

.score-with-star-high {
    color: #12b8a6;
}

.score-with-star-muted {
    color: var(--app-muted);
    font-weight: 800;
}

.score-star {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
    line-height: 0;
}

.score-star svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.score-star-base {
    color: #d6deea;
}

.score-star-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--score-fill, 0%);
    overflow: hidden;
    color: currentColor;
}

.client-distribution {
    display: grid;
    gap: 0.65rem;
}

.client-distribution-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    overflow: hidden;
    min-height: 46px;
    padding: 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

.client-distribution-item > span {
    position: absolute;
    inset: 0 auto 0 0;
    opacity: 0.16;
}

.client-distribution-item strong,
.client-distribution-item small {
    position: relative;
    z-index: 1;
}

.client-distribution-item strong {
    font-size: 1.35rem;
    line-height: 1;
}

.client-distribution-item small {
    color: var(--app-muted);
    font-weight: 800;
}

.client-distribution-satisfied > span {
    background: #12b8a6;
}

.client-distribution-neutral > span {
    background: #f59e0b;
}

.client-distribution-low > span {
    background: #ef4444;
}

.client-comment-list a {
    display: block;
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.client-comment-list a:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow);
}

.client-comment-list strong,
.client-comment-list small {
    display: block;
}

.client-comment-list p {
    margin: 0.35rem 0;
    color: var(--app-muted);
}

.report-cover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.report-cover h2 {
    margin: 0.2rem 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 900;
}

.report-cover p {
    margin: 0;
    color: var(--app-muted);
}

.report-executive-summary {
    max-width: 760px;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(18, 184, 166, 0.22);
    border-radius: 12px;
    color: #365066;
    background: #f6fffd;
    font-weight: 650;
}

.report-cover-side {
    display: grid;
    gap: 0.75rem;
    min-width: 240px;
}

.report-cover-score,
.report-cover-period {
    padding: 1rem;
    border: 1px solid rgba(18, 184, 166, 0.22);
    border-radius: 14px;
    background: #f2fffc;
    text-align: right;
}

.report-cover-score {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    text-align: center;
    background: var(--score-cover-bg, #f4f7fb);
    border-color: var(--score-cover-border, #e2e8f0);
}

.report-cover-score-high {
    --score-cover-bg: #e9fbf7;
    --score-cover-border: #99f6e4;
}

.report-cover-score-mid {
    --score-cover-bg: #fff8e8;
    --score-cover-border: #fde68a;
}

.report-cover-score-low {
    --score-cover-bg: #fff1f2;
    --score-cover-border: #fecaca;
}

.report-cover-score-muted {
    --score-cover-bg: #f4f7fb;
    --score-cover-border: #e2e8f0;
}

.report-cover-period span,
.report-cover-period strong,
.report-cover-score > span {
    display: block;
}

.report-cover-period span,
.report-cover-score > span {
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.report-cover-period strong {
    color: var(--app-ink);
    font-size: 1.05rem;
}

.report-metric-grid,
.report-grid,
.report-channel-list {
    display: grid;
    gap: 1rem;
}

.report-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.report-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.report-metric-card,
.report-channel-item {
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.report-metric-card {
    display: grid;
    align-content: start;
    justify-items: start;
    min-height: 148px;
    text-align: left;
}

.report-metric-card.has-icon {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.72rem;
}

.report-metric-card:not(.has-icon) {
    align-content: center;
    justify-items: center;
    text-align: center;
}

.report-metric-icon {
    display: inline-grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #0567d8;
    background: #eef6ff;
}

.report-metric-icon-clients,
.report-metric-icon-qr,
.report-metric-icon-completed {
    color: var(--app-action-blue-dark, #0567d8);
    background: #e6f7f4;
}

.report-metric-icon-channels,
.report-metric-icon-mail {
    color: #0891b2;
    background: #e6fbff;
}

.report-metric-icon-comments,
.report-metric-icon-incomplete {
    color: #b7791f;
    background: #fff7df;
}

.report-metric-svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-metric-copy {
    display: grid;
    justify-items: start;
    gap: 0.22rem;
    min-width: 0;
    text-align: left;
}

.report-metric-card > span:not(.report-metric-icon),
.report-metric-copy > span,
.report-metric-card small,
.report-channel-label {
    display: block;
    color: var(--app-muted);
    font-weight: 750;
}

.report-metric-card > strong,
.report-metric-copy > strong {
    display: block;
    margin: 0.35rem 0 0.2rem;
    color: var(--app-ink);
    font-size: 2.3rem;
    line-height: 1;
}

.report-metric-card:not(.has-icon) > strong {
    display: flex;
    justify-content: center;
    width: 100%;
}

.report-channel-list {
    gap: 0.65rem;
}

.report-channel-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    box-shadow: none;
}

.report-channel-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.report-channel-count {
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
}

.report-channel-label {
    font-size: 0.84rem;
    line-height: 1.25;
}

.report-channel-score {
    justify-self: end;
}

.report-trend-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.report-trend-card > div {
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

.report-trend-card span,
.report-trend-card strong {
    display: block;
}

.report-trend-card span {
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.report-trend-card strong {
    margin-top: 0.35rem;
    color: var(--app-ink);
    font-size: 1.1rem;
    font-weight: 900;
}

.report-trend-score strong {
    display: inline-flex;
    width: auto;
}

.report-trend-score .score-pill {
    width: fit-content;
    max-width: max-content;
}

.client-survey-table .score-pill,
.assignment-response-block .score-pill {
    min-width: 44px;
    min-height: 24px;
    padding: 0.14rem 0.38rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.report-trend-good > div:last-child {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.report-trend-bad > div:last-child {
    border-color: #fecaca;
    background: #fff1f2;
}

.report-trend-neutral > div:last-child {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.report-table td > strong,
.report-table td > span:not(.type-icon-badge):not(.score-pill):not(.status-led) {
    display: block;
}

.report-table td > span:not(.type-icon-badge):not(.score-pill):not(.status-led) {
    color: var(--app-muted);
    font-size: 0.86rem;
}

.report-clickable-row {
    cursor: pointer;
}

.report-clickable-row:hover {
    background: #f8fbff;
}

.report-row-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-ink);
    font-weight: 850;
    text-decoration: none;
}

.report-row-link:hover {
    color: var(--app-primary-dark);
}

.report-client-table [hidden] {
    display: none !important;
}

.report-client-table .client-identity {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
}

.report-client-table .client-identity-text {
    display: flex;
    min-width: 0;
    align-items: center;
}

.report-client-table .client-identity a.fw-semibold {
    display: inline;
    padding: 0;
    border-radius: 0;
    color: #0f172a;
    background: transparent;
    font: inherit;
    font-weight: 850;
    line-height: inherit;
    text-decoration: none;
}

.report-client-table .client-identity a.fw-semibold:hover,
.report-client-table .client-identity a.fw-semibold:focus-visible,
.report-client-table .client-identity a.fw-semibold:active {
    color: #0f172a;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--app-action-blue);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.report-table-pager {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.report-page-btn {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #d8e2f0;
    border-radius: 10px;
    color: var(--app-action-blue-dark);
    background: #fff;
    font-weight: 850;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.report-page-btn:not(.is-active):hover,
.report-page-btn:not(.is-active):focus-visible {
    border-color: var(--app-action-blue-line);
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.report-page-btn.is-active {
    border-color: var(--app-action-blue);
    color: #fff;
    background: linear-gradient(135deg, var(--app-action-blue), var(--app-action-blue-dark));
    box-shadow: 0 10px 22px rgba(15, 111, 232, 0.18);
}

.client-picker {
    position: relative;
    z-index: 1;
}

.client-picker.is-open {
    z-index: 1100;
}

.client-picker-select {
    position: absolute !important;
    inset: auto auto 0 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.client-picker-button {
    display: flex;
    width: 100%;
    height: var(--app-control-height);
    min-height: var(--app-control-height);
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.85rem;
    border: 1px solid var(--app-field-border);
    border-radius: 12px;
    color: var(--app-ink);
    background: var(--app-field-bg);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.client-picker-button:hover,
.client-picker.is-open .client-picker-button {
    border-color: var(--app-field-border-focus);
    background: var(--app-field-bg-focus);
    box-shadow: var(--app-field-focus-shadow);
}

.client-picker-button:disabled {
    color: var(--app-muted);
    background: #f8fafc;
    cursor: not-allowed;
}

.client-picker-select:invalid + .client-picker-button {
    border-color: #fca5a5;
}

.client-picker-current,
.client-picker-option {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.62rem;
}

.select-picker-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    color: #0567d8;
    background: #eff7ff;
}

.select-picker-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.select-picker-icon-location {
    border-color: #dbeafe;
    color: #2563eb;
    background: #eff6ff;
}

.select-picker-icon-contact {
    border-color: #dbeafe;
    color: #2563eb;
    background: #eff6ff;
}

.select-picker-icon-template {
    border-color: #e9d5ff;
    color: #7c3aed;
    background: #faf5ff;
}

.select-picker-icon-template-initials {
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    line-height: 1;
}

.select-picker-icon-type {
    border-color: #dbeafe;
    color: #2563eb;
    background: #eff6ff;
}

.select-picker-icon-mail {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.select-picker-icon-qr {
    border-color: #99f6e4;
    color: var(--app-action-blue-dark, #0567d8);
    background: #ecfdf5;
}

.select-picker-icon-status {
    border-color: #fde68a;
    color: #a16207;
    background: #fffbeb;
}

.client-picker-status-led {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: none;
}

.client-picker-status-led .status-led__dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.13);
}

.client-picker-status-led.is-on .status-led__dot {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15), 0 0 12px rgba(34, 197, 94, 0.48);
}

.client-picker-status-led.is-pending .status-led__dot {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.17), 0 0 12px rgba(245, 158, 11, 0.38);
}

.client-picker-status-led.is-paused .status-led__dot {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), 0 0 12px rgba(56, 189, 248, 0.35);
}

.client-picker-status-led.is-danger .status-led__dot {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 0 12px rgba(239, 68, 68, 0.35);
}

.select-picker-icon.is-muted {
    border-color: #e2e8f0;
    color: #94a3b8;
    background: #f8fafc;
}

.client-picker-option-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-picker-caret {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
}

.client-picker-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    display: none;
    max-height: min(320px, 52vh);
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.client-picker.is-open .client-picker-menu {
    display: grid;
    gap: 0.15rem;
}

.client-picker-option {
    width: 100%;
    padding: 0.5rem;
    border: 0;
    border-radius: 10px;
    color: var(--app-ink);
    background: transparent;
    font-weight: 750;
}

.client-picker-option:hover,
.client-picker-option.is-selected {
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.client-picker-option:disabled {
    color: var(--app-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.question-breakdown-list {
    display: grid;
    gap: 0.9rem;
}

.question-breakdown-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
}

.question-breakdown-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.question-breakdown-head strong,
.question-breakdown-head span {
    display: block;
}

.question-breakdown-head strong {
    color: var(--app-ink);
    font-weight: 900;
}

.question-breakdown-head span {
    margin-top: 0.18rem;
    color: var(--app-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.question-choice-bars {
    display: grid;
    gap: 0.55rem;
}

.question-choice-row {
    display: grid;
    gap: 0.28rem;
}

.question-choice-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--app-ink);
    font-size: 0.9rem;
}

.question-choice-row span {
    color: var(--app-muted);
    font-weight: 800;
}

.question-choice-track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #eef3f8;
}

.question-choice-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #2563eb);
}

.question-open-answers {
    display: grid;
    gap: 0.5rem;
}

.question-open-answers p {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    color: var(--app-ink);
    background: #f8fbff;
}

.report-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.report-highlight-card {
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.report-highlight-card h3 {
    margin: 0.25rem 0 0.9rem;
    font-size: 1.05rem;
    font-weight: 900;
}

.section-title-link {
    color: inherit;
    text-decoration: none;
}

.section-title-link:hover {
    color: var(--app-primary-dark);
}

.section-action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.report-highlight-list {
    display: grid;
    gap: 0.55rem;
}

.report-highlight-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #f8fbff;
}

.report-highlight-item > span:not(.client-identity),
.report-highlight-item > strong,
.report-highlight-item > small {
    display: block;
}

.report-highlight-item > strong,
.report-highlight-item .client-identity-text a,
.report-highlight-item .client-identity-text span {
    color: var(--app-ink);
    font-weight: 900;
}

.report-highlight-item > small,
.report-highlight-item .client-identity-text small {
    color: var(--app-muted);
    font-weight: 750;
}

.report-comment-list {
    display: grid;
    gap: 0.65rem;
}

.report-comment-list a {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    align-items: start;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.report-comment-list a:hover {
    border-color: var(--app-action-blue-line);
}

.report-comment-copy {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.report-comment-copy strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--app-ink);
    font-weight: 900;
    line-height: 1.25;
}

.report-comment-copy small {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 850;
}

.report-comment-copy > span {
    color: var(--app-muted);
    line-height: 1.45;
}

@media (max-width: 576px) {
    .report-comment-list a {
        grid-template-columns: 1fr;
    }
}

.report-print-body {
    background: #eef3f8;
}

.report-print-actions {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 1rem;
    background: rgba(246, 248, 251, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--app-line);
}

.report-print-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 1rem auto 2rem;
    padding: 2rem;
    border: 1px solid var(--app-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.report-print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--app-line);
}

.report-print-header span,
.report-print-header small {
    color: var(--app-muted);
    font-weight: 800;
}

.report-print-header h1 {
    margin: 0.2rem 0;
    font-size: 2.4rem;
    font-weight: 900;
}

.report-print-header p {
    margin: 0;
    color: var(--app-muted);
}

.report-print-header > div:last-child {
    text-align: right;
}

.report-print-side {
    display: grid;
    justify-items: end;
    gap: 0.72rem;
    min-width: 240px;
}

.report-print-header strong,
.report-print-header small {
    display: block;
}

.report-print-section {
    margin-top: 1.5rem;
}

.report-print-section h2 {
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    font-weight: 900;
}

.client-survey-table .type-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.client-survey-table .type-icon-symbol {
    transform: scale(0.86);
}

.assignment-response-block {
    display: grid;
    gap: 0.34rem;
}

.assignment-score-only {
    display: inline-flex !important;
    width: fit-content;
    max-width: max-content;
}

.assignment-score-only .score-pill {
    width: fit-content;
    max-width: max-content;
}

.builder-summary-card {
    display: grid;
    align-content: start;
    gap: 0.78rem;
    min-height: 136px;
}

.builder-summary-head {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    color: var(--app-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.builder-summary-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    line-height: 0;
}

.builder-summary-icon-state {
    color: var(--app-action-blue-dark, #0567d8);
    background: #e6f7f4;
}

.builder-summary-icon-questions {
    color: #2563eb;
    background: #eef6ff;
}

.builder-summary-icon-actions {
    color: #a16207;
    background: #fff7df;
}

.builder-summary-svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.builder-summary-body {
    display: flex;
    min-height: 42px;
    align-items: center;
}

.builder-summary-body strong {
    color: var(--app-ink);
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
}

.builder-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.assignment-summary-card {
    display: grid;
    align-content: start;
    gap: 0.72rem;
    min-height: 118px;
}

.assignment-summary-value {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.assignment-summary-text {
    display: flex !important;
    align-items: center;
    min-height: 42px;
    margin-top: 0 !important;
    color: var(--app-ink);
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
}

.response-summary-grid {
    align-items: stretch;
}

.response-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    min-height: 92px;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.response-summary-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    padding: 0.22rem 1.35rem;
}

.response-summary-item + .response-summary-item {
    border-left: 1px solid var(--app-line);
}

.response-summary-icon {
    flex: 0 0 auto;
}

.response-summary-icon.results-metric-icon,
.response-summary-type-icon .type-icon-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
}

.response-summary-type-icon {
    display: inline-grid;
    place-items: center;
    line-height: 0;
}

.response-summary-type-icon .type-icon-symbol {
    width: 26px;
    height: 26px;
}

.response-summary-type-icon .type-icon-symbol svg {
    width: 23px;
    height: 23px;
}

.response-summary-copy {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.response-summary-copy > span {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.response-summary-copy > strong {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    color: var(--app-ink);
    font-size: 1.38rem;
    font-weight: 950;
    line-height: 1.1;
}

.response-summary-score .score-pill {
    min-width: 78px;
    min-height: 42px;
    padding: 0.24rem 0.78rem 0.3rem;
    border-radius: 14px;
    font-size: 1.55rem;
    font-weight: 950;
}

.response-summary-card {
    display: grid;
    align-content: center;
    gap: 0.72rem;
    min-height: 152px;
    padding: 1.15rem 1.25rem;
}

.response-summary-card > span {
    margin: 0;
}

.response-summary-card > strong,
.response-summary-card > div {
    display: flex;
    align-items: center;
    min-height: 64px;
    margin: 0 !important;
}

.response-summary-card > strong {
    color: var(--app-ink);
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
}

.response-summary-card .score-gauge {
    margin: 0;
}

@media (max-width: 768px) {
    .response-summary-strip {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .response-summary-item {
        padding: 0.72rem 0.85rem;
    }

    .response-summary-item + .response-summary-item {
        border-top: 1px solid var(--app-line);
        border-left: 0;
    }
}

.assignment-response-block strong,
.assignment-response-block span,
.assignment-response-block small {
    display: block;
}

.assignment-response-block small {
    color: var(--app-muted);
    font-size: 0.82rem;
}

.assignment-flow-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.assignment-flow-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.18rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
}

.assignment-flow-badge.is-sent {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.assignment-flow-badge.is-muted {
    border-color: #e2e8f0;
    color: #64748b;
    background: #f8fafc;
}

.assignment-flow-badge.is-pending {
    border-color: #fde68a;
    color: #a16207;
    background: #fef3c7;
}

.assignment-flow-badge.is-answered {
    border-color: #bbf7d0;
    color: #15803d;
    background: #dcfce7;
}

.assignment-flow-badge.is-incomplete,
.assignment-flow-badge.is-failed {
    border-color: #fed7aa;
    color: #c2410c;
    background: #fff7ed;
}

.email-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    width: fit-content;
    min-height: 28px;
    padding: 0.25rem 0.52rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #64748b;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.email-status-badge.is-icon-only {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 12px;
}

.email-status-badge svg {
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.email-status-badge.is-icon-only svg {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
}

.email-status-badge.is-sent {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.email-status-badge.is-pending {
    border-color: #fde68a;
    color: #a16207;
    background: #fffbeb;
}

.email-status-badge.is-failed {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff1f2;
}

.assignment-client-cell {
    width: 280px;
    vertical-align: top;
}

.assignment-group-list {
    display: grid;
    gap: 0.75rem;
}

.assignment-mini-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #f8fbff;
}

.assignment-mini-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.assignment-mini-title a {
    color: var(--app-ink);
    text-decoration: none;
}

.assignment-mini-title small {
    display: block;
    color: var(--app-muted);
}

.assignment-mini-title .type-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.assignment-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
    color: var(--app-muted);
}

.assignment-mini-meta > span:not(.status-led):not(.email-status-badge) {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 750;
}

.assignment-mini-meta > .badge,
.assignment-mini-meta > .email-status-badge,
.assignment-mini-meta > .status-led {
    align-self: center;
}

.assignment-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    justify-content: end;
    align-items: center;
    max-width: 430px;
}

.assignment-inline-action-form {
    margin: 0;
}

.assignment-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
}

.assignment-action-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-modal-icon .assignment-action-icon {
    width: 22px;
    height: 22px;
}

.assignment-action-label {
    white-space: nowrap;
}

.assignment-action-icon-settings {
    width: 19px;
    height: 19px;
    stroke-width: 2.15;
}

.settings-layout {
    display: grid;
    width: 100%;
    max-width: 1320px;
    min-width: 0;
    gap: 1rem;
    margin: 0 auto 1.15rem;
    box-sizing: border-box;
}

.settings-config-section {
    width: 100%;
    max-width: 1320px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.settings-layout > .settings-config-section {
    max-width: 100%;
}

.settings-config-section .row,
.settings-config-section .table-responsive,
.settings-config-section fieldset,
.settings-config-section form,
.settings-config-section .settings-section-header,
.settings-config-section .settings-section-heading,
.settings-config-section .settings-section-tools {
    min-width: 0;
}

.settings-section-heading {
    margin-bottom: 1rem;
}

.settings-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-section-heading h2 {
    margin: 0.25rem 0 0;
    color: var(--app-ink);
    font-size: 1.45rem;
    font-weight: 850;
}

.settings-section-tools {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.settings-lock-status,
.settings-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 34px;
    padding: 0.42rem 0.7rem;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.settings-status-pill {
    background: #fff;
    color: var(--app-ink);
}

.settings-status-led {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.settings-status-success .settings-status-led {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.settings-status-warning .settings-status-led {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.settings-status-error .settings-status-led {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.settings-fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.settings-config-section.is-locked .form-control,
.settings-config-section.is-locked .form-select,
.settings-config-section.is-locked .client-picker-button {
    background-color: #f8fafc;
    color: #475569;
    opacity: 1;
}

.settings-config-section.is-editing {
    border-color: var(--app-action-blue-line);
    box-shadow: 0 18px 40px rgba(15, 111, 232, 0.1);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1rem;
}

.settings-muted-fields {
    opacity: 0.48;
}

.settings-test-result {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.settings-test-result p {
    margin: 0.15rem 0 0;
    color: var(--app-muted);
}

.settings-led {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.14);
}

.settings-test-success .settings-led {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.settings-test-warning .settings-led {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18);
}

.settings-test-error .settings-led {
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.16);
}

.trace-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.trace-grid div {
    padding: 0.95rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #f8fbff;
}

.trace-grid span,
.trace-grid strong {
    display: block;
}

.trace-grid span {
    margin-bottom: 0.35rem;
    color: var(--app-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.trace-grid strong {
    color: var(--app-ink);
    font-size: 0.98rem;
}

@keyframes installerFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(4deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .installer-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }

    .app-topbar {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1rem;
    }

    .app-mobile-nav {
        position: fixed;
        top: var(--mobile-nav-top, 72px);
        right: 0;
        left: 0;
        z-index: 19;
        max-height: calc(100vh - var(--mobile-nav-top, 72px) - 0.75rem);
        overflow-y: auto;
        border-top: 0;
        border-right: 1px solid var(--app-line);
        border-left: 1px solid var(--app-line);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 22px 52px rgba(15, 111, 232, 0.14);
    }

    .topbar-search {
        order: 3;
    }

    .topbar-user {
        justify-content: flex-start;
        width: fit-content;
        max-width: 100%;
    }

    .topbar-user-menu.dropdown-menu-end {
        right: auto;
        left: 0;
        inset-inline: 0 auto;
    }

    .dashboard-hero,
    .dashboard-insights-grid,
    .dashboard-board-grid,
    .dashboard-actions-grid,
    .client-overview,
    .client-insights-grid,
    .client-relationship-grid,
    .installer-flow-tabs,
    .installer-choice-grid,
    .installer-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-score-card {
        grid-template-columns: 180px minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }

    .dashboard-active-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .dashboard-active-breakdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .installer-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .installer-orb {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .auth-dashboard-bg {
        inset: 0.65rem;
        border-radius: 24px;
        filter: blur(16px) saturate(0.96);
        transform: scale(1.08);
    }

    .auth-bg-sidebar {
        width: 22%;
    }

    .auth-bg-topbar {
        left: 22%;
        height: 70px;
    }

    .auth-bg-hero {
        left: 27%;
        top: 100px;
        width: 64%;
        height: 150px;
    }

    .auth-bg-card {
        top: 280px;
        height: 100px;
    }

    .auth-bg-card-one {
        left: 27%;
        width: 28%;
    }

    .auth-bg-card-two {
        left: 60%;
        width: 31%;
    }

    .auth-bg-card-three,
    .auth-bg-chart {
        display: none;
    }

    .auth-bg-table {
        left: 27%;
        right: 9%;
        bottom: 8%;
        height: 180px;
    }

    .auth-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        min-height: auto;
        padding: 0.75rem;
    }

    .auth-card-compact {
        width: min(440px, 100%);
        padding: 0;
        border-radius: 24px;
    }

    .auth-card-compact .auth-login-card {
        border-radius: 24px;
    }

    .auth-copy {
        min-height: auto;
        padding: 1.25rem;
    }

    .auth-copy h1 {
        font-size: 2.35rem;
    }

    .auth-safe-visual {
        width: min(260px, 100%);
        margin-top: 1.6rem;
    }

    .auth-core-lock {
        width: 82px;
        height: 82px;
    }

    .auth-core-lock svg {
        width: 32px;
        height: 32px;
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
        margin-top: 1.25rem;
    }

    .auth-feature-grid div {
        min-height: auto;
    }

    .auth-visual {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        min-height: 190px;
        margin-top: 1rem;
    }

    .auth-donut {
        width: 150px;
        height: 150px;
    }

    .auth-floating-card {
        min-width: 175px;
    }

    .auth-login-panel {
        padding: 0;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading .btn,
    .page-heading .d-flex {
        width: 100%;
    }

    .page-heading .d-flex .btn {
        flex: 1;
    }

    .question-item {
        flex-direction: column;
    }

    .question-actions {
        justify-content: flex-start;
    }

    .builder-layout,
    .editor-preview-layout {
        grid-template-columns: 1fr;
    }

    .preview-panel,
    .live-preview-panel {
        position: static;
    }

    .survey-preview-form {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .qr-tools {
        grid-template-columns: 1fr;
    }

    .qr-preview-panel {
        justify-content: flex-start;
    }

    .dashboard-metric-grid,
    .client-metric-grid,
    .dashboard-module-grid,
    .installer-steps {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        min-height: auto;
        padding: 1rem;
    }

    .dashboard-hero-copy {
        padding: 0.4rem;
    }

    .dashboard-score-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .dashboard-active-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-donut-card {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .trace-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-heading,
    .dashboard-panel-heading,
    .client-panel-heading,
    .settings-section-header,
    .clients-card-footer,
    .installer-submit-card,
    .history-card,
    .settings-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-section-tools {
        justify-content: flex-start;
    }

    .history-side {
        min-width: 0;
        text-align: left;
    }

    .client-overview {
        padding: 2.55rem 1rem 1rem;
    }

    .client-overview-created {
        left: 1rem;
        top: 0.85rem;
        bottom: auto;
    }

    .client-overview-main {
        min-height: auto;
    }

    .client-overview-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-overview-side {
        grid-template-columns: 1fr;
    }

    .client-overview-actions {
        flex-direction: row;
        justify-content: flex-start;
        padding-top: 0;
    }

    .client-overview-main h2 {
        font-size: 2.2rem;
    }

    .client-channel-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .client-channel-row em {
        grid-column: 1 / -1;
        text-align: left;
    }

    .assignment-client-cell {
        width: auto;
    }

    .assignment-mini-card {
        grid-template-columns: 1fr;
    }

    .assignment-mini-actions {
        justify-content: flex-start;
    }

    .clients-search-card,
    .clients-summary-row,
    .clients-sort-form,
    .client-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .clients-search-card {
        display: flex;
    }

    .clients-filter-btn,
    .clients-sort-form .form-select {
        width: 100%;
    }

    .clients-sort-form {
        margin-left: 0;
        width: 100%;
    }

    .clients-card-body {
        padding-right: 0;
    }

    .clients-card-actions {
        justify-content: flex-start;
    }

    .topbar-user {
        flex-wrap: wrap;
    }

    .installer-shell {
        width: min(100% - 1rem, 1180px);
        padding-top: 1rem;
    }

    .installer-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .container.py-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .content-panel {
        padding: 0.85rem;
        border-radius: 12px;
    }

    .client-card-grid {
        grid-template-columns: 1fr;
    }

    .clients-board,
    .clients-search-card {
        padding: 0.85rem;
    }

    .clients-card {
        min-height: auto;
        padding: 1rem;
    }

    .clients-card-body {
        grid-template-columns: 1fr;
    }

    .clients-card .client-avatar-lg {
        width: 64px;
        height: 64px;
    }

    .client-status-dot {
        top: 1rem;
        right: 1rem;
    }

    .clients-card-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .clients-card-actions {
        display: grid;
        grid-template-columns: repeat(4, 42px);
        justify-content: flex-start;
        width: 100%;
    }

    .clients-card-actions .btn,
    .clients-card-actions form,
    .clients-card-actions .dropdown {
        width: 100%;
    }

    .clients-card-actions form .btn,
    .clients-card-actions .dropdown .btn {
        width: 100%;
    }

    .client-card {
        padding: 0.85rem;
    }

    .client-card-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .client-card-status {
        grid-column: 1 / -1;
    }

    .client-card-actions,
    .client-card-secondary-actions,
    .client-quick-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .client-card-actions .btn,
    .client-card-secondary-actions .btn,
    .client-card-secondary-actions form,
    .client-quick-actions .btn {
        width: 100%;
    }

    .client-logo-field {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .metric-card {
        min-height: auto;
        padding: 1rem;
    }

    .metric-card strong {
        font-size: 2rem;
    }

    .table-responsive {
        overflow: visible;
    }

    .table {
        display: block;
        margin-bottom: 0;
    }

    .table thead {
        display: none;
    }

    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tbody tr {
        margin-bottom: 0.85rem;
        padding: 0.85rem;
        border: 1px solid var(--app-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(16, 27, 51, 0.06);
    }

    .table > :not(caption) > * > * {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eef2f7;
    }

    .table tbody tr > td:last-child {
        border-bottom: 0;
    }

    .table td[data-label] {
        display: grid;
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
        text-align: left !important;
    }

    .table td[data-label]::before {
        content: attr(data-label);
        color: var(--app-muted);
        font-size: 0.78rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .action-cluster {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        justify-content: stretch;
    }

    .action-cluster .btn,
    .action-cluster form {
        width: 100%;
    }

    .action-cluster form .btn {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .results-metric-grid,
    .report-metric-grid,
    .report-grid,
    .report-trend-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-active-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .dashboard-active-breakdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .report-cover,
    .report-print-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-cover-side,
    .report-print-header > div:last-child {
        width: 100%;
        text-align: left;
    }

    .report-cover-score,
    .report-cover-period {
        text-align: left;
        justify-items: start;
    }

    .report-print-side {
        width: 100%;
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .results-metric-grid,
    .report-metric-grid,
    .report-grid,
    .report-trend-card,
    .report-highlight-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-active-breakdown {
        grid-template-columns: 1fr;
    }

    .report-channel-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .report-channel-score {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .report-print-shell {
        width: 100%;
        margin: 0;
        padding: 1rem;
        border-radius: 0;
    }

    .report-metric-card > strong,
    .report-metric-copy > strong {
        font-size: 1.8rem;
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    *,
    *::before,
    *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.report-print-body {
        background: #fff !important;
        color: #0f172a !important;
        font-size: 10.2pt !important;
    }

    .report-print-actions,
    .app-sidebar,
    .app-topbar,
    .app-mobile-nav {
        display: none !important;
    }

    .report-print-shell {
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #fff !important;
        box-shadow: none !important;
    }

    .report-print-header {
        gap: 1rem;
        margin-bottom: 0.9rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #dbe3ee;
    }

    .report-print-header h1 {
        font-size: 1.95rem;
        line-height: 1.08;
    }

    .report-print-header p {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .report-print-side {
        gap: 0.5rem;
        min-width: 190px;
    }

    .report-print-section {
        margin-top: 0.95rem;
    }

    .report-print-section h2 {
        margin-bottom: 0.48rem;
        font-size: 1rem;
    }

    .report-cover,
    .report-print-header {
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .report-cover-side,
    .report-print-side,
    .report-print-header > div:last-child {
        width: auto !important;
        min-width: 220px;
        justify-items: end !important;
        text-align: right !important;
    }

    .report-cover-score {
        justify-items: center !important;
        text-align: center !important;
    }

    .report-cover-score,
    .report-cover-period,
    .content-panel,
    .report-metric-card,
    .report-channel-item,
    .report-trend-card > div,
    .report-comment-list a,
    .empty-state {
        border-color: #dbe3ee !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .report-cover-score,
    .report-cover-period,
    .report-metric-card,
    .report-channel-item,
    .report-trend-card > div {
        padding: 0.62rem !important;
        border-radius: 10px !important;
    }

    .report-metric-grid,
    .report-grid,
    .report-channel-list,
    .report-trend-card,
    .report-comment-list {
        gap: 0.5rem !important;
    }

    .report-metric-grid {
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
    }

    .report-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
    }

    .report-trend-card {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .report-metric-card.has-icon {
        gap: 0.55rem !important;
    }

    .report-metric-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
    }

    .report-metric-svg {
        width: 18px !important;
        height: 18px !important;
    }

    .report-metric-card > strong,
    .report-metric-copy > strong {
        margin-top: 0.18rem !important;
        font-size: 1.5rem !important;
    }

    .report-metric-card > span:not(.report-metric-icon),
    .report-metric-copy > span,
    .report-metric-card small,
    .report-channel-label,
    .report-trend-card span {
        font-size: 0.72rem !important;
    }

    .report-channel-item {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
    }

    .score-ring--sm {
        width: 96px !important;
        height: 96px !important;
    }

    .score-ring--sm strong {
        font-size: 1.18rem !important;
    }

    .score-ring--sm small {
        margin-top: 1.32rem !important;
        font-size: 0.7rem !important;
    }

    .score-pill {
        min-height: 22px !important;
        padding: 0.12rem 0.42rem 0.16rem !important;
        border-radius: 8px !important;
    }

    .report-client-table [hidden] {
        display: table-row !important;
    }

    .report-table-pager {
        display: none !important;
    }

    .report-print-section,
    .report-print-break,
    .content-panel,
    .report-metric-card,
    .report-channel-item,
    .report-trend-card > div,
    .report-comment-list a,
    .table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .table {
        display: table !important;
        width: 100% !important;
        font-size: 0.8rem;
    }

    .table thead {
        display: table-header-group !important;
    }

    .table tbody {
        display: table-row-group !important;
    }

    .table tr {
        display: table-row !important;
        box-shadow: none !important;
    }

    .table td,
    .table th {
        display: table-cell !important;
        padding: 0.28rem 0.32rem !important;
        border-color: #dbe3ee !important;
    }

    .table td::before {
        content: none !important;
    }
}

/* Client view header layout */
.client-overview {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 412px);
    gap: 1.2rem;
    padding-top: 1.25rem;
}

.client-overview-created {
    position: static;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 0.72rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.client-overview-main {
    justify-content: center;
    min-height: auto;
}

.client-overview-title {
    margin-top: 0;
}

.client-overview-side {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "health";
    gap: 1rem;
    align-items: start;
    justify-items: end;
    justify-content: end;
}

.client-overview-actions {
    grid-area: actions;
    order: 1;
    position: absolute;
    top: 0;
    right: calc(100% + 1rem);
    z-index: 2;
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    padding-top: 0;
}

.client-health-card {
    grid-area: health;
    order: 2;
    width: min(100%, 412px);
    min-width: 0;
}

@media (max-width: 1200px) {
    .client-overview {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    }

    .client-overview-side {
        position: static;
        grid-template-columns: 1fr;
        grid-template-areas:
            "actions"
            "health";
        align-content: center;
        justify-items: start;
    }

    .client-overview-actions {
        position: static;
    }
}

@media (max-width: 992px) {
    .client-overview {
        grid-template-columns: 1fr;
    }

    .client-overview-side {
        grid-template-columns: auto minmax(240px, 1fr);
        grid-template-areas: "actions health";
        justify-items: start;
    }

    .client-overview-actions {
        position: static;
    }
}

@media (max-width: 768px) {
    .client-overview {
        padding: 1rem;
    }

    .client-overview-side {
        grid-template-columns: 1fr;
        grid-template-areas:
            "actions"
            "health";
    }
}

.auth-login-actions {
    justify-content: center;
}

.auth-login-actions a,
.auth-forgot-link {
    color: var(--app-primary-dark);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

.auth-login-actions a:hover,
.auth-forgot-link:hover {
    color: #08766c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-forgot-link {
    display: inline-flex;
    margin-top: 0.55rem;
}

.copy-feedback {
    min-height: 1.2rem;
    margin-top: 0.45rem;
    color: var(--app-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.copy-feedback.is-error {
    color: var(--app-danger);
}

.copyable-link-field {
    display: grid;
    gap: 0.15rem;
}

.copyable-link-control {
    min-width: 0;
}

.copyable-link-control .form-control {
    min-width: 0;
}

.app-alert p {
    margin: 0.2rem 0 0;
}

.app-alert strong {
    display: block;
    margin-bottom: 0.1rem;
}

/* Dashboard-aligned action palette */
:root {
    --app-action-blue: #0f6fe8;
    --app-action-blue-dark: #0567d8;
    --app-action-blue-soft: #eff7ff;
    --app-action-blue-line: #cfe0f8;
}

.btn-primary {
    --bs-btn-bg: var(--app-action-blue);
    --bs-btn-border-color: var(--app-action-blue);
    --bs-btn-hover-bg: var(--app-action-blue-dark);
    --bs-btn-hover-border-color: var(--app-action-blue-dark);
    --bs-btn-active-bg: #0759b9;
    --bs-btn-active-border-color: #0759b9;
    background-image: linear-gradient(135deg, var(--app-action-blue), var(--app-action-blue-dark));
    box-shadow: 0 14px 28px rgba(15, 111, 232, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-image: linear-gradient(135deg, #227df0, #0759b9);
    box-shadow: 0 18px 34px rgba(15, 111, 232, 0.24);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-action-blue-dark);
    --bs-btn-border-color: var(--app-action-blue-line);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-action-blue);
    --bs-btn-hover-border-color: var(--app-action-blue);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--app-action-blue-dark);
    --bs-btn-active-border-color: var(--app-action-blue-dark);
    background-color: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background-image: linear-gradient(135deg, var(--app-action-blue), var(--app-action-blue-dark));
    box-shadow: 0 14px 28px rgba(15, 111, 232, 0.16);
}

.btn-outline-secondary,
.btn-light,
.page-heading > .btn-outline-secondary,
.page-heading .btn-light {
    --bs-btn-color: #34425a;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #d8e2f0;
    --bs-btn-hover-color: var(--app-action-blue-dark);
    --bs-btn-hover-bg: #f7fbff;
    --bs-btn-hover-border-color: var(--app-action-blue-line);
    background-color: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible,
.btn-light:hover,
.btn-light:focus-visible {
    box-shadow: 0 14px 28px rgba(15, 111, 232, 0.1);
}

.page-heading .btn,
.clients-create-btn,
.results-report-btn,
.report-download-btn {
    border-radius: 12px;
    font-weight: 850;
}

.page-heading > .btn,
.page-heading > div:last-child > .btn {
    min-height: 46px;
    padding-inline: 1rem;
}

.clients-create-btn,
.results-report-btn,
.report-download-btn {
    border-color: transparent;
}

.dashboard-panel-heading a:not(.btn),
.client-panel-heading a:not(.btn),
.section-title-link,
.content-panel a.fw-semibold,
.assignment-ref-link,
.report-row-link,
.dashboard-module-card em {
    color: var(--app-action-blue-dark);
}

.dashboard-panel-heading a:not(.btn),
.client-panel-heading a:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.26rem 0.55rem;
    border-radius: 10px;
    font-weight: 850;
    text-decoration: none;
}

.dashboard-panel-heading a:not(.btn):hover,
.dashboard-panel-heading a:not(.btn):focus-visible,
.client-panel-heading a:not(.btn):hover,
.client-panel-heading a:not(.btn):focus-visible,
.section-title-link:hover,
.section-title-link:focus-visible,
.content-panel a.fw-semibold:hover,
.content-panel a.fw-semibold:focus-visible,
.assignment-ref-link:hover,
.assignment-ref-link:focus-visible,
.report-row-link:hover,
.report-row-link:focus-visible {
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
    text-decoration: none;
}

.clients-filter-btn,
.content-panel form .btn-outline-primary,
.content-panel form .btn-outline-secondary {
    border-color: #d8e2f0;
}

.pagination .page-link,
.client-page-btn,
.client-page-current {
    color: var(--app-action-blue-dark);
    border-color: #d8e2f0;
    background: #fff;
}

.pagination .page-link:hover,
.client-page-btn:not(.disabled):hover,
.client-page-btn:not(.disabled):focus-visible {
    color: var(--app-action-blue-dark);
    border-color: var(--app-action-blue-line);
    background: var(--app-action-blue-soft);
}

.pagination .active .page-link,
.page-item.active .page-link,
.client-page-current,
.client-pagination [aria-current="page"] {
    color: #fff;
    border-color: var(--app-action-blue);
    background: linear-gradient(135deg, var(--app-action-blue), var(--app-action-blue-dark));
    box-shadow: 0 10px 22px rgba(15, 111, 232, 0.18);
}

/* Blue-harmonized client actions and badges */
.clients-card-actions .client-action-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 27, 51, 0.04);
}

.clients-card-actions .client-action-btn .clients-icon {
    width: 17px;
    height: 17px;
}

.client-action-edit,
.client-action-more {
    border-color: var(--app-action-blue-line);
    color: var(--app-action-blue-dark);
}

.client-action-edit:hover,
.client-action-edit:focus-visible,
.client-action-more:hover,
.client-action-more:focus-visible {
    border-color: var(--app-action-blue);
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
    box-shadow: 0 12px 24px rgba(15, 111, 232, 0.12);
}

.client-more-dropdown-menu,
.client-overview-actions .dropdown-menu {
    border-color: var(--app-action-blue-line);
    box-shadow: 0 20px 46px rgba(15, 111, 232, 0.14);
}

.client-more-dropdown-menu .dropdown-item,
.client-overview-actions .dropdown-item {
    color: #34425a;
}

.client-more-dropdown-menu .dropdown-item:hover,
.client-more-dropdown-menu .dropdown-item:focus,
.client-overview-actions .dropdown-item:hover,
.client-overview-actions .dropdown-item:focus {
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.client-more-dropdown-menu .dropdown-item .clients-icon,
.client-overview-actions .dropdown-item .client-metric-svg {
    color: var(--app-action-blue-dark);
}

.client-overview-action-btn.btn-outline-secondary {
    border-color: var(--app-action-blue-line);
    color: var(--app-action-blue-dark);
    background: #fff;
}

.client-overview-action-btn.btn-outline-secondary:hover,
.client-overview-action-btn.btn-outline-secondary:focus-visible {
    border-color: var(--app-action-blue);
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.client-overview-kpis span,
.dashboard-pill,
.dashboard-pill-soft,
.assignment-id-pill,
.channel-badge-mail,
.channel-badge-public,
.history-meta > span:not(.channel-badge):not(.type-icon-badge),
.assignment-mini-meta > span:not(.status-led):not(.email-status-badge),
.client-overview-meta > span:not(.badge):not(.status-led) {
    border-color: var(--app-action-blue-line);
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.type-icon-mail,
.type-icon-qr {
    border-color: var(--app-action-blue-line);
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.client-overview-meta .client-metric-svg {
    color: var(--app-action-blue-dark);
}

.badge.text-bg-light.border,
.badge.bg-light.border {
    border-color: var(--app-action-blue-line) !important;
    color: var(--app-action-blue-dark) !important;
    background: var(--app-action-blue-soft) !important;
}

/* Dashboard section-heading language across modules */
.eyebrow,
.dashboard-pill,
.dashboard-pill-soft {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.34rem 0.64rem;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 999px;
    background: var(--app-action-blue-soft);
    color: var(--app-action-blue-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.page-heading h1,
.dashboard-section-heading h2,
.dashboard-panel-heading h2,
.client-panel-heading h2,
.settings-section-heading h2,
.content-panel > h2,
.content-panel .h5 {
    color: #0f172a;
    font-weight: 850;
    letter-spacing: 0;
}

.page-heading p,
.dashboard-hero-copy p,
.settings-section-heading p,
.client-panel-heading p,
.content-panel > p {
    color: #66758f !important;
    font-weight: 560;
}

.dashboard-panel-heading,
.client-panel-heading,
.settings-section-header,
.content-panel > .d-flex.justify-content-between {
    align-items: flex-start;
}

.client-panel-heading h2,
.settings-section-heading h2 {
    margin-top: 0.42rem;
}

.content-panel > h2.h5,
.content-panel > .h5 {
    margin-bottom: 1rem !important;
}

/* Assignment contrast and field focus refinements */
.type-icon-mail,
.channel-badge-mail {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.type-icon-qr,
.channel-badge-public {
    border-color: #99f6e4;
    color: var(--app-action-blue-dark, #0567d8);
    background: #ecfdf5;
}

.assignment-mini-card {
    border-color: #dbe7f5;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.assignment-mini-title a.fw-semibold {
    display: inline-flex;
    color: #0f172a;
    font-weight: 900;
}

.assignment-mini-title a.fw-semibold:hover,
.assignment-mini-title a.fw-semibold:focus-visible {
    color: #0f172a;
    background: transparent;
}

.assignment-mini-title .assignment-ref-inline strong {
    color: #0f172a;
}

.assignment-mini-meta > span:not(.status-led):not(.email-status-badge) {
    border: 1px solid #dbe4f0;
    color: #64748b;
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 111, 232, 0.78);
    background-color: var(--app-field-bg-focus);
    box-shadow: 0 0 0 0.22rem rgba(15, 111, 232, 0.14);
}

.form-check-input:focus,
.btn:focus-visible,
.icon-only-btn:focus-visible,
.client-avatar-link:focus-visible {
    box-shadow: 0 0 0 0.22rem rgba(15, 111, 232, 0.16), 0 10px 24px rgba(16, 27, 51, 0.1);
    outline-color: rgba(15, 111, 232, 0.32);
}

.clients-search-field:focus-within {
    border-color: rgba(15, 111, 232, 0.78);
    background: var(--app-field-bg-focus);
    box-shadow: 0 0 0 0.22rem rgba(15, 111, 232, 0.12);
}

.site-autocomplete-option:hover,
.site-autocomplete-option:focus {
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.answer-item {
    padding: 1rem;
}

.answer-item-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
}

.answer-item-header h3 {
    margin: 0.42rem 0 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 850;
}

.answer-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.36rem 0.68rem;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 999px;
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.answer-response {
    margin-top: 0.85rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    background: #f8fbff;
}

.answer-response > span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.answer-response p {
    margin: 0.25rem 0 0;
    color: #0f172a;
    font-weight: 750;
}

.client-panel-heading h2 .section-title-link {
    display: inline;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    color: #0f172a;
    background: transparent;
    font: inherit;
    line-height: inherit;
}

.client-panel-heading h2 .section-title-link:hover,
.client-panel-heading h2 .section-title-link:focus-visible {
    color: #0f172a;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: var(--app-action-blue);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.result-list-item strong .assignment-id-pill {
    margin-right: 0.35rem;
    vertical-align: middle;
}

.client-overview-meta > span:not(.badge):not(.status-led):not(.client-overview-status) {
    border-color: #dbe4f0;
    color: #64748b;
    background: #fff;
}

.client-overview-meta > span:not(.badge):not(.status-led):not(.client-overview-status) .client-metric-svg {
    color: #64748b;
}

.client-overview-kpis span {
    border-color: var(--app-action-blue-line);
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.assignment-flow-badges {
    align-items: center;
}

.assignment-response-block .email-status-badge,
.assignment-response-block .email-status-badge.is-icon-only {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
}

.assignment-response-block .email-status-badge svg,
.assignment-response-block .email-status-badge.is-icon-only svg {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
    transform: none;
}

.site-autocomplete-menu.site-global-search-menu {
    gap: 0.35rem;
    max-height: min(430px, 64vh);
    padding: 0.52rem;
    border-color: var(--app-action-blue-line);
    box-shadow: 0 22px 52px rgba(15, 111, 232, 0.16);
}

.site-global-search-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    min-height: 64px;
    padding: 0.68rem;
    text-align: left;
}

.site-global-search-option:hover,
.site-global-search-option:focus {
    color: var(--app-ink);
    background: var(--app-action-blue-soft);
}

.form-check-input,
.settings-import-mode input {
    accent-color: var(--app-action-blue);
}

.form-check-input:checked {
    border-color: var(--app-action-blue);
    background-color: var(--app-action-blue);
}

.auth-login-actions a,
.auth-forgot-link {
    color: var(--app-action-blue-dark);
}

.auth-login-actions a:hover,
.auth-login-actions a:focus-visible,
.auth-forgot-link:hover,
.auth-forgot-link:focus-visible {
    color: var(--app-action-blue-dark);
    text-decoration-color: var(--app-action-blue);
}

.settings-import-mode:hover,
.settings-import-mode:has(input:checked) {
    border-color: var(--app-action-blue-line);
    box-shadow: 0 10px 24px rgba(15, 111, 232, 0.1);
}

.settings-import-mode:has(input:checked) {
    background: linear-gradient(180deg, #ffffff, var(--app-action-blue-soft));
}

.global-search-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #dbe7f5;
    border-radius: 13px;
    color: var(--app-action-blue-dark);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1;
}

.global-search-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.global-search-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.select-picker-icon-mail svg,
.select-picker-icon-qr svg {
    stroke-width: 1.55;
}

.select-picker-icon-mail svg {
    width: 17px;
    height: 17px;
}

.select-picker-icon-qr svg {
    width: 15px;
    height: 15px;
}

.select-picker-icon-number {
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
}

.global-search-icon-client,
.global-search-icon-location,
.global-search-icon-contact {
    color: var(--app-action-blue-dark);
    background: #eff6ff;
}

.global-search-icon-template,
.global-search-icon-initials.global-search-icon-template {
    border-color: #e9d5ff;
    color: #7c3aed;
    background: #faf5ff;
}

.global-search-icon-qr {
    border-color: #99f6e4;
    color: var(--app-action-blue-dark, #0567d8);
    background: #ecfdf5;
}

.global-search-icon-mail {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.global-search-content {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.global-search-title,
.global-search-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-title {
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 900;
}

.global-search-subtitle {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.global-search-label {
    align-self: start;
    padding: 0.22rem 0.48rem;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 999px;
    color: var(--app-action-blue-dark);
    background: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .site-global-search-option {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .global-search-icon {
        width: 38px;
        height: 38px;
    }

    .global-search-label {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 576px) {
    .answer-item-header {
        grid-template-columns: 1fr;
    }

    .answer-type-badge {
        justify-self: start;
    }
}

.builder-editor-heading,
.builder-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.builder-editor-heading {
    margin-bottom: 1rem;
}

.builder-editor-heading p {
    margin-top: 0.25rem;
}

.builder-editor-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.builder-heading-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.page-heading .builder-heading-actions .btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.builder-dirty-indicator,
.builder-summary-note {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.28rem 0.58rem;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    color: #64748b;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.builder-dirty-indicator.is-dirty,
.builder-summary-note {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.builder-dirty-indicator.is-saved {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.builder-save-bar .btn.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

[data-builder-activate-button].is-template-activation-disabled,
[data-builder-activate-button]:disabled {
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    opacity: 1;
    cursor: not-allowed;
}

[data-builder-activate-button].is-template-activation-disabled .builder-action-icon,
[data-builder-activate-button]:disabled .builder-action-icon {
    color: #94a3b8;
}

.builder-error-block,
.builder-client-error {
    margin-bottom: 1rem;
}

.builder-editor-list {
    gap: 0.85rem;
}

.builder-question-editor {
    align-items: stretch;
    border-color: #dbe7f5;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.builder-question-main {
    min-width: 0;
}

.builder-question-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.builder-question-text-wrap {
    min-width: 0;
}

.builder-question-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.82fr) minmax(150px, auto);
    gap: 0.9rem;
    margin-top: 0.85rem;
}

.builder-options-group {
    grid-column: 1 / -1;
}

.builder-type-picker {
    width: 100%;
    min-width: 0;
}

.builder-type-picker .client-picker-button {
    height: var(--app-control-height);
    min-height: var(--app-control-height);
}

.builder-type-picker .client-picker-menu {
    width: 100%;
    min-width: min(100%, 260px);
}

.builder-type-picker .client-picker-option {
    min-height: 44px;
}

.builder-type-picker .select-picker-icon-builder {
    color: var(--app-action-blue-dark);
    background: var(--app-action-blue-soft);
}

.builder-type-picker .select-picker-icon-builder svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.builder-type-picker .client-picker-button.is-invalid {
    border-color: #e11d48;
    background-color: #fff7f8;
    box-shadow: 0 0 0 0.18rem rgba(225, 29, 72, 0.12);
}

.builder-required-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    align-self: end;
    min-height: 44px;
    padding: 0.45rem 0.68rem;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
}

.builder-question-actions {
    align-self: start;
}

.builder-save-bar {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5eaf2;
}

.builder-save-bar strong,
.builder-save-bar span {
    display: block;
}

.builder-save-bar span {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
}

.builder-action-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.builder-question-editor .is-invalid {
    border-color: #e11d48;
    background-color: #fff7f8;
    box-shadow: 0 0 0 0.18rem rgba(225, 29, 72, 0.12);
}

.survey-progress {
    display: grid;
    gap: 0.5rem;
    padding: 0.78rem 0.88rem;
    border: 1px solid var(--app-action-blue-line);
    border-radius: 14px;
    background: var(--app-action-blue-soft);
}

.survey-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--app-action-blue-dark);
    font-size: 0.82rem;
    font-weight: 850;
}

.survey-progress-copy span {
    white-space: nowrap;
}

.survey-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.survey-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--app-action-blue), #60a5fa);
    transition: width 0.18s ease;
}

@media (max-width: 768px) {
    .builder-editor-heading,
    .builder-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .builder-editor-actions {
        justify-content: flex-start;
    }

    .builder-question-editor {
        grid-template-columns: 1fr;
    }

    .builder-question-grid {
        grid-template-columns: 1fr;
    }

    .builder-question-actions {
        justify-content: flex-start;
    }
}

/* Settings refinements */
.settings-config-section + .settings-config-section {
    margin-top: 1.25rem;
}

.settings-admin-break {
    margin-top: 2rem;
}

#usuarios + #planes,
#planes + #facturacion {
    margin-top: 1.5rem;
}

.plan-delete-form {
    margin: 0;
}

.plan-provider-search-results .mp-plan-amount {
    font-variant-numeric: tabular-nums;
}
/* System activity log */
.settings-activity-tools {
    align-items: center;
}

.settings-activity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.settings-activity-controls .form-select {
    width: auto;
    min-width: 142px;
    border-radius: 999px;
    font-weight: 800;
}

.settings-activity-pagination {
    margin-top: 1rem;
}
.settings-activity-list {
    display: grid;
    max-height: 560px;
    gap: 0.75rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.settings-activity-item {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 12px 28px rgba(16, 27, 51, 0.06);
}

.settings-activity-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.settings-activity-source {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.24rem 0.55rem;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 999px;
    background: var(--app-action-blue-soft, #eff7ff);
    color: var(--app-action-blue-dark, #0567d8);
}

.settings-activity-title {
    color: var(--app-ink);
    font-weight: 900;
}

.settings-activity-item p {
    margin: 0;
    color: #526178;
}

.settings-activity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem;
    margin: 0.25rem 0 0;
}

.settings-activity-details div {
    min-width: 0;
    padding: 0.58rem 0.68rem;
    border: 1px solid #dce7f5;
    border-radius: 12px;
    background: #fff;
}

.settings-activity-details dt {
    margin: 0 0 0.22rem;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.settings-activity-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--app-ink);
    font-size: 0.88rem;
    font-weight: 750;
}

/* Installer aligned with the main platform UI */
.installer-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.12), transparent 24rem),
        linear-gradient(180deg, #f4f8fd 0%, #eef4fb 100%);
    color: var(--app-ink, #101b33);
}

.installer-shell {
    width: min(1240px, calc(100% - 2rem));
    padding: 1.35rem 0 3rem;
}

.installer-hero,
.installer-progress-panel,
.installer-card,
.installer-submit-card,
.installer-complete {
    border: 1px solid var(--app-line, #dbe7f5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(16, 27, 51, 0.08);
    color: var(--app-ink, #101b33);
    backdrop-filter: none;
}

.installer-hero {
    position: relative;
    padding: clamp(1.15rem, 2vw, 1.65rem);
    border-color: #cfe0f8;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,251,255,0.98)),
        radial-gradient(circle at 88% 15%, rgba(37,99,235,0.12), transparent 22rem);
}

.installer-hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--app-action-blue, #1677ee), #14b8a6);
}

.installer-hero h1 {
    color: var(--app-ink, #101b33);
    font-size: clamp(2rem, 4vw, 3.85rem);
    letter-spacing: 0;
}

.installer-hero p,
.installer-complete p,
.installer-submit-card span,
.installer-step small,
.requirement-item small,
.installer-choice span,
.installer-test-panel p {
    color: var(--app-muted, #6b7a90);
}

.installer-kicker {
    min-height: 26px;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 999px;
    background: var(--app-action-blue-soft, #eff7ff);
    color: var(--app-action-blue-dark, #0567d8);
    font-weight: 900;
}

.installer-orb {
    width: 128px;
    height: 128px;
    border: 1px solid #cfe0f8;
    border-radius: 24px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,0.96), transparent 2.2rem),
        linear-gradient(135deg, #e9f3ff, #dffbf6);
    color: var(--app-action-blue-dark, #0567d8);
    box-shadow: 0 18px 38px rgba(5, 103, 216, 0.14);
}

.installer-orb small {
    color: var(--app-muted, #6b7a90);
}

.installer-grid {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1rem;
}

.installer-card {
    padding: clamp(1rem, 1.6vw, 1.35rem);
}

.installer-card-heading h2,
.installer-step strong,
.installer-choice strong,
.requirement-item strong,
.installer-test-panel strong,
.installer-submit-card strong {
    color: var(--app-ink, #101b33);
}

.installer-form .form-label {
    color: #35445c;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.installer-form .form-text {
    color: var(--app-muted, #6b7a90);
}

.installer-form .form-control,
.installer-form .form-select {
    min-height: 48px;
    border-color: #d7e2f3;
    border-radius: 12px;
    background-color: #f8fbff;
    color: var(--app-ink, #101b33);
    box-shadow: none;
}

.installer-form .form-control:focus,
.installer-form .form-select:focus {
    border-color: var(--app-action-blue, #1677ee);
    box-shadow: 0 0 0 4px rgba(22, 119, 238, 0.12);
}

.installer-flow-tabs {
    padding: 0.35rem;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: #fff;
}

.installer-flow-tabs button {
    border-color: transparent;
    background: transparent;
    color: #6b7a90;
}

.installer-flow-tabs button.active,
.installer-flow-tabs button.completed {
    background: var(--app-action-blue-soft, #eff7ff);
    color: var(--app-action-blue-dark, #0567d8);
}

.installer-flow-tabs button.active {
    box-shadow: inset 0 0 0 1px #cfe0f8;
}

.installer-flow-card.active {
    border-color: #cfe0f8;
    box-shadow: 0 20px 52px rgba(16, 27, 51, 0.1);
}

.installer-flow-card:not(.active) {
    pointer-events: none;
    user-select: none;
}

.installer-flow-card.locked {
    opacity: 0.45;
    filter: grayscale(0.1) blur(1.4px);
}

.installer-choice,
.installer-step,
.requirement-item,
.installer-test-panel {
    border-color: #dbe7f5;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.installer-choice:hover {
    border-color: #9fc6fb;
    background: #fff;
    box-shadow: 0 14px 30px rgba(16, 27, 51, 0.08);
}

.installer-choice input {
    accent-color: var(--app-action-blue, #1677ee);
}

.requirement-item.ok span {
    background: #e8fbf3;
    color: #0f9f6e;
}

.requirement-item.fail span {
    background: #fff1f2;
    color: #e11d48;
}

.installer-security-alert {
    border-color: #cfe0f8;
    background: linear-gradient(135deg, #eff7ff, #effdfa);
    color: #35445c;
    box-shadow: 0 14px 32px rgba(16, 27, 51, 0.08);
}

.installer-security-alert strong {
    color: var(--app-ink, #101b33);
}

.installer-body .btn-light,
.installer-body .btn-outline-light,
.installer-body .btn-warning {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 900;
}

.installer-body .btn-light,
.installer-body .btn-warning {
    border-color: var(--app-action-blue, #1677ee);
    background: var(--app-action-blue, #1677ee);
    color: #fff;
    box-shadow: 0 14px 30px rgba(22, 119, 238, 0.18);
}

.installer-body .btn-light:hover,
.installer-body .btn-warning:hover {
    border-color: var(--app-action-blue-dark, #0567d8);
    background: var(--app-action-blue-dark, #0567d8);
    color: #fff;
}

.installer-body .btn-outline-light {
    border-color: #cfe0f8;
    background: #fff;
    color: #35445c;
}

.installer-body .btn-outline-light:hover {
    border-color: #9fc6fb;
    background: var(--app-action-blue-soft, #eff7ff);
    color: var(--app-action-blue-dark, #0567d8);
}

.installer-submit-card {
    background: linear-gradient(135deg, #fff, #f4f9ff);
}

.installer-complete {
    background: linear-gradient(135deg, #f0fdf4, #eff7ff);
}

.installer-complete-mark {
    background: var(--app-action-blue, #1677ee);
    color: #fff;
}

.installer-overlay {
    background: rgba(244, 248, 253, 0.82);
}

.installer-overlay-card {
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #fff;
    color: var(--app-ink, #101b33);
    box-shadow: 0 28px 80px rgba(16, 27, 51, 0.16);
}

.installer-overlay-card p {
    color: var(--app-muted, #6b7a90);
}

@media (max-width: 980px) {
    .installer-grid {
        grid-template-columns: 1fr;
    }

    .installer-requirements-card {
        position: static;
    }

    .installer-flow-tabs,
    .installer-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .installer-shell {
        width: min(100% - 1rem, 1240px);
        padding-top: 0.75rem;
    }

    .installer-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .installer-orb {
        width: 100%;
        height: auto;
        min-height: 92px;
        border-radius: 16px;
    }
}

.mp-card-checkout-card {
    max-width: 520px;
}

.mp-card-frame {
    position: relative;
    display: block;
    width: 100%;
    height: var(--app-control-height, 48px);
    min-height: var(--app-control-height, 48px);
    max-height: var(--app-control-height, 48px);
    padding: 0;
    overflow: hidden;
    cursor: text;
}

.mp-card-frame iframe,
.mp-card-frame > iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    pointer-events: auto;
}

/* Mercado Pago card token checkout stability */
.mp-card-checkout-card,
.mp-card-checkout-card form,
.mp-card-checkout-card .form-field {
    pointer-events: auto;
}

.mp-card-checkout-card .mp-card-frame {
    height: var(--app-control-height, 48px) !important;
    min-height: var(--app-control-height, 48px) !important;
    max-height: var(--app-control-height, 48px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff;
    pointer-events: auto;
}

.mp-card-checkout-card .mp-card-frame iframe {
    pointer-events: auto !important;
}

/* Mercado Pago card-token checkout */
.mp-card-page .mp-card-panel {
    width: min(100%, 820px);
}

.mp-card-checkout-card {
    max-width: 820px;
    overflow: hidden;
}

.mp-card-brand {
    align-items: center;
}

.mp-card-brand > div {
    display: grid;
    gap: 0.08rem;
}

.mp-card-brand small,
.mp-card-guide small,
.mp-card-form-title small {
    color: var(--app-muted, #6b7a90);
    font-size: 0.76rem;
    font-weight: 800;
}

.mp-card-header-icon {
    background: #e8fbf3;
    color: #0f9f6e;
}

.mp-card-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.mp-card-summary > div {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--app-line, #e1e8f2);
    border-radius: 12px;
    background: #f8fbff;
}

.mp-card-summary span,
.mp-card-guide li span {
    color: #7b8798;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mp-card-summary strong {
    min-width: 0;
    color: var(--app-ink, #101b33);
    font-weight: 950;
    overflow-wrap: anywhere;
}

.mp-card-secure-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #fde7a8;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.45;
}

.mp-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.mp-card-form {
    gap: 0.88rem;
    min-width: 0;
}

.mp-card-form-title,
.mp-card-guide-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    align-items: center;
}

.mp-card-form-title {
    padding: 0.8rem 0.9rem;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mp-card-form-title > span,
.mp-card-guide-header > span,
.mp-control-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 11px;
    background: var(--app-action-blue-soft, #eff7ff);
    color: var(--app-action-blue-dark, #0567d8);
}

.mp-card-form-title strong,
.mp-card-guide-header strong {
    display: block;
    color: var(--app-ink, #101b33);
    font-weight: 950;
}

.mp-card-field {
    min-width: 0;
}

.mp-control-shell {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: var(--app-control-height, 48px);
    border: 1px solid var(--app-field-border, #d7e2f3);
    border-radius: 12px;
    background: var(--app-field-bg, #f8fbff);
    box-shadow: 0 1px 0 rgba(16, 27, 51, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.mp-control-shell:hover {
    border-color: var(--app-field-border-hover, #b9cce6);
    background: var(--app-field-bg-hover, #fff);
}

.mp-control-shell:focus-within {
    border-color: var(--app-field-border-focus, #1677ee);
    background: var(--app-field-bg-focus, #fff);
    box-shadow: var(--app-field-focus-shadow, 0 0 0 4px rgba(22, 119, 238, 0.12));
    transform: translateY(-1px);
}

.mp-control-icon {
    width: 30px;
    height: 30px;
    margin-left: 0.6rem;
    border-radius: 10px;
    pointer-events: none;
}

.mp-control-shell .mp-control-input,
.mp-control-shell .form-control,
.mp-control-shell .form-select {
    width: 100%;
    height: 100%;
    min-height: var(--app-control-height, 48px);
    padding: 0.68rem 0.78rem 0.68rem 0.25rem;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: transparent;
    box-shadow: none;
}

.mp-control-shell .form-control:focus,
.mp-control-shell .form-select:focus {
    background: transparent;
    box-shadow: none;
}

.mp-control-shell-iframe .mp-card-frame {
    height: var(--app-control-height, 48px) !important;
    min-height: var(--app-control-height, 48px) !important;
    max-height: var(--app-control-height, 48px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 12px 12px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mp-control-shell-iframe .mp-card-frame iframe,
.mp-control-shell-iframe .mp-card-frame > iframe {
    width: 100% !important;
    height: var(--app-control-height, 48px) !important;
}

.mp-card-form.is-ready .mp-card-form-title > span {
    border-color: rgba(18, 184, 166, 0.28);
    background: #e8fbf3;
    color: #0f9f6e;
    box-shadow: 0 0 0 4px rgba(18, 184, 166, 0.08);
}

.mp-card-guide {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--app-line, #e1e8f2);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 18px 48px rgba(16, 27, 51, 0.08);
}

.mp-card-guide ul {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-card-guide li {
    display: grid;
    gap: 0.2rem;
    padding: 0.72rem 0;
    border-top: 1px solid #e8eef7;
}

.mp-card-guide li:first-child {
    border-top: 0;
    padding-top: 0;
}

.mp-card-guide p {
    margin: 0;
    color: #59677c;
    font-size: 0.84rem;
    line-height: 1.45;
}

.mp-card-checkout-card .auth-submit {
    width: 100%;
}

.mp-card-checkout-card .auth-submit span {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 820px) {
    .mp-card-layout,
    .mp-card-summary {
        grid-template-columns: 1fr;
    }

    .mp-card-guide {
        order: -1;
    }
}

@media (max-width: 560px) {
    .mp-card-page .mp-card-panel {
        width: 100%;
    }

    .mp-card-summary > div,
    .mp-card-secure-note,
    .mp-card-guide,
    .mp-card-form-title {
        border-radius: 12px;
    }
}

.account-plan-option-body {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.account-plan-option-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.account-plan-current-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 999px;
    background: var(--app-action-blue-soft, #eff7ff);
    color: var(--app-action-blue-dark, #0567d8);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.billing-plan-modal-summary,
.billing-plan-limit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.billing-plan-modal-summary > div,
.billing-plan-limit-list > div {
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
}

.billing-plan-modal-summary span,
.billing-plan-limit-list span {
    display: block;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.billing-plan-modal-summary strong,
.billing-plan-limit-list strong {
    display: block;
    margin-top: 0.28rem;
    color: var(--app-ink);
    font-weight: 950;
    overflow-wrap: anywhere;
}

.billing-plan-limit-list {
    margin-top: 0.9rem;
}

@media (max-width: 575.98px) {
    .billing-plan-modal-summary,
    .billing-plan-limit-list {
        grid-template-columns: 1fr;
    }
}

.account-billing-notice .billing-alert-content {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
}

.billing-trial-help {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 750;
}

.billing-info-dot {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: 0.25rem;
    border: 1px solid var(--app-action-blue-line, #cfe0f8);
    border-radius: 50%;
    color: var(--app-action-blue, #0f6fe8);
    background: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    cursor: help;
}

.billing-inline-action {
    width: fit-content;
    margin-top: 0.35rem;
}

.billing-plan-comparison {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.billing-plan-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.billing-plan-compare-grid > div {
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #f8fbff;
}

.billing-plan-compare-grid span,
.billing-plan-compare-grid small {
    display: block;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 850;
}

.billing-plan-compare-grid strong {
    display: block;
    margin-top: 0.2rem;
    color: var(--app-ink);
    font-weight: 950;
}

.billing-plan-compare-grid ul,
.billing-cancel-impact-list {
    display: grid;
    gap: 0.38rem;
    margin: 0.7rem 0 0;
    padding-left: 1rem;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 750;
}

.billing-plan-compare-grid b {
    color: var(--app-ink);
}

.billing-cancel-impact-list {
    margin-bottom: 0.9rem;
}

@media (max-width: 575.98px) {
    .billing-plan-compare-grid {
        grid-template-columns: 1fr;
    }

    .billing-inline-action {
        width: 100%;
    }
}

/* OPRI.ME identity, reproduced from the approved CSS brand construction. */
.oprime-brand {
    --oprime-logo-gap: 12px;
    --oprime-logo-icon: 54px;
    --oprime-logo-scale: 0.24545455;
    --oprime-logo-font: 36px;
    --oprime-logo-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: var(--oprime-logo-gap);
    width: fit-content;
    max-width: 100%;
    color: inherit;
}

.oprime-brand-icon {
    position: relative;
    display: inline-block;
    width: var(--oprime-logo-icon);
    height: var(--oprime-logo-icon);
    flex: 0 0 var(--oprime-logo-icon);
    overflow: hidden;
}

.oprime-brand-art {
    position: absolute;
    inset: 0 auto auto 0;
    width: 220px;
    height: 220px;
    transform: scale(var(--oprime-logo-scale));
    transform-origin: top left;
}

.oprime-mark-outline,
.oprime-mark-check,
.oprime-mark-ray {
    position: absolute;
    display: block;
    border-radius: 999px;
}

.oprime-mark-outline--top {
    left: 74px;
    top: 34px;
    width: 83px;
    height: 18px;
    background: linear-gradient(90deg, #2f80ff, #2979fc);
}

.oprime-mark-outline--arc-top-left {
    left: 21px;
    top: 34px;
    width: 71px;
    height: 71px;
    border-top: 18px solid #2f80ff;
    border-left: 18px solid #2f80ff;
    border-radius: 62px 0 0;
}

.oprime-mark-outline--left {
    left: 21px;
    top: 87px;
    width: 18px;
    height: 60px;
    background: linear-gradient(#2c7cfe, #2473fa);
}

.oprime-mark-outline--arc-bottom-left {
    left: 21px;
    top: 129px;
    width: 71px;
    height: 71px;
    border-bottom: 18px solid #2170f8;
    border-left: 18px solid #2473fa;
    border-radius: 0 0 0 62px;
}

.oprime-mark-outline--base {
    left: 74px;
    top: 182px;
    width: 57px;
    height: 18px;
    background: linear-gradient(90deg, #2070f8, #1b6bf6);
}

.oprime-mark-outline--tail-diagonal {
    left: 113px;
    top: 182px;
    width: 53.36px;
    height: 18px;
    background: #1968f5;
    transform: rotate(45deg);
    transform-origin: 9px 9px;
}

.oprime-mark-outline--tail-upright {
    left: 138px;
    top: 207px;
    width: 49px;
    height: 18px;
    background: #1766f4;
    transform: rotate(-90deg);
    transform-origin: 9px 9px;
}

.oprime-mark-outline--arc-bottom-right {
    left: 138px;
    top: 118px;
    width: 58px;
    height: 76px;
    border-right: 18px solid #1362f3;
    border-bottom: 18px solid #1766f4;
    border-radius: 0 0 58px;
}

.oprime-mark-outline--right {
    left: 178px;
    top: 81px;
    width: 18px;
    height: 55px;
    background: #1261f3;
}

.oprime-mark-check {
    z-index: 2;
    height: 17px;
    background: #07163f;
    transform-origin: 8.5px 8.5px;
}

.oprime-mark-check--short {
    left: 70.5px;
    top: 107.5px;
    width: 56.6px;
    transform: rotate(45deg);
}

.oprime-mark-check--long {
    left: 98.5px;
    top: 135.5px;
    width: 99.07px;
    transform: rotate(-46.975deg);
}

.oprime-mark-ray {
    z-index: 3;
    height: 11px;
    transform-origin: 5.5px 5.5px;
}

.oprime-mark-ray--amber {
    left: 159.5px;
    top: 39.5px;
    width: 40.12px;
    background: #f5a800;
    transform: rotate(-74.055deg);
}

.oprime-mark-ray--blue {
    left: 186.5px;
    top: 50.5px;
    width: 38.66px;
    background: #1769ff;
    transform: rotate(-40.601deg);
}

.oprime-mark-ray--pale {
    left: 194.5px;
    top: 71.5px;
    width: 29px;
    background: #cfe5ff;
}

.oprime-brand-word {
    display: inline-flex;
    align-items: baseline;
    font-family: "Sora", "Manrope", "Inter", system-ui, sans-serif;
    font-size: inherit;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.oprime-brand .oprime-brand-word {
    font-size: var(--oprime-logo-font);
    letter-spacing: var(--oprime-logo-spacing);
}

.oprime-brand-opri {
    color: #07163f;
}

.oprime-brand-dot {
    margin: 0 0.06em;
    color: #f5a800;
}

.oprime-brand-me {
    color: #1769ff;
}

.oprime-brand--navigation {
    --oprime-logo-gap: 8px;
    --oprime-logo-icon: 46px;
    --oprime-logo-scale: 0.20909091;
    --oprime-logo-font: 20px;
    --oprime-logo-spacing: 0.08em;
}

.oprime-brand--login,
.oprime-brand--installer {
    --oprime-logo-gap: 10px;
    --oprime-logo-icon: 54px;
    --oprime-logo-scale: 0.24545455;
    --oprime-logo-font: 27px;
    --oprime-logo-spacing: 0.1em;
}

.oprime-brand--404 {
    --oprime-logo-gap: 9px;
    --oprime-logo-icon: 48px;
    --oprime-logo-scale: 0.21818182;
    --oprime-logo-font: 24px;
    --oprime-logo-spacing: 0.09em;
}

.auth-login-brand {
    color: inherit;
    text-decoration: none;
}

.auth-login-brand:hover,
.auth-login-brand:focus-visible {
    color: inherit;
}

.auth-login-header--plain {
    display: block;
}

.installer-brand {
    width: fit-content;
    margin-bottom: 1.05rem;
}

/* Random, animated 404 scenes. */
.lost-page-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #07163f;
    background:
        radial-gradient(circle at 10% 12%, rgba(47, 128, 255, 0.14), transparent 28rem),
        radial-gradient(circle at 88% 80%, rgba(245, 168, 0, 0.12), transparent 24rem),
        linear-gradient(135deg, #f9fbff 0%, #edf5ff 52%, #f8fbff 100%);
}

.lost-page-body::before,
.lost-page-body::after {
    content: "";
    position: fixed;
    z-index: 0;
    border: 1px solid rgba(23, 105, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.lost-page-body::before {
    width: 320px;
    height: 320px;
    top: -170px;
    right: 14%;
}

.lost-page-body::after {
    width: 210px;
    height: 210px;
    left: -95px;
    bottom: -85px;
}

.lost-page-skip {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    color: #fff;
    background: #07163f;
    font-weight: 850;
    text-decoration: none;
    transform: translateY(-150%);
}

.lost-page-skip:focus {
    transform: none;
}

.lost-page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.4rem 0 1.25rem;
}

.lost-page-topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lost-page-brand {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
}

.lost-page-topbar > span {
    padding: 0.45rem 0.7rem;
    border: 1px solid #cfe0f8;
    border-radius: 999px;
    color: #1769ff;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lost-page-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    min-height: min(690px, calc(100vh - 145px));
    overflow: hidden;
    border: 1px solid rgba(200, 218, 242, 0.92);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 34px 90px rgba(7, 22, 63, 0.13);
    backdrop-filter: blur(18px);
}

.lost-page-card,
.lost-page-copy,
.lost-page-visual {
    min-width: 0;
    max-width: 100%;
}

.lost-page-card::before {
    content: "";
    position: absolute;
    inset: 0 44% 0 auto;
    width: 1px;
    background: linear-gradient(transparent, #d9e5f5 18%, #d9e5f5 82%, transparent);
}

.lost-page-copy {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 6vw, 5rem);
}

.lost-page-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.15rem;
    color: #1769ff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lost-page-kicker span {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: #f5a800;
}

.lost-page-copy h1 {
    max-width: 660px;
    margin: 0;
    color: #07163f;
    font-size: clamp(2.65rem, 5.9vw, 5.5rem);
    font-weight: 950;
    line-height: 0.96;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.lost-page-copy h1 > span {
    display: block;
    margin-bottom: 0.7rem;
    color: #1769ff;
    font-size: 0.3em;
    line-height: 1;
    letter-spacing: 0.16em;
}

.lost-page-copy > p:not(.lost-page-kicker) {
    max-width: 610px;
    margin: 1.35rem 0 0;
    color: #60708a;
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.7;
}

.lost-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.lost-page-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lost-page-button:hover {
    transform: translateY(-2px);
}

.lost-page-button--primary {
    color: #fff;
    background: #07163f;
    box-shadow: 0 16px 30px rgba(7, 22, 63, 0.18);
}

.lost-page-button--primary:hover {
    color: #fff;
    background: #1769ff;
}

.lost-page-button--secondary {
    border-color: #b9ceed;
    color: #1769ff;
    background: #fff;
}

.lost-page-button--secondary:hover {
    color: #07163f;
    box-shadow: 0 14px 28px rgba(23, 105, 255, 0.11);
}

.lost-page-visual {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(rgba(23, 105, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 105, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at center, #f7fbff, #eaf3ff);
    background-size: 24px 24px, 24px 24px, auto;
}

.lost-page-orbit {
    position: absolute;
    z-index: -1;
    border: 1px dashed rgba(23, 105, 255, 0.18);
    border-radius: 50%;
    animation: lostOrbit 22s linear infinite;
}

.lost-page-orbit--one {
    width: 390px;
    height: 390px;
}

.lost-page-orbit--two {
    width: 275px;
    height: 275px;
    border-style: solid;
    animation-direction: reverse;
    animation-duration: 15s;
}

.lost-page-bubble {
    position: absolute;
    z-index: 5;
    top: 17%;
    right: 12%;
    min-width: 58px;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid #c4d8f5;
    border-radius: 18px 18px 18px 4px;
    color: #1769ff;
    background: #fff;
    box-shadow: 0 14px 30px rgba(7, 22, 63, 0.12);
    font-size: 0.78rem;
    font-weight: 950;
    animation: lostBubble 3.8s ease-in-out infinite;
}

.lost-qr-card {
    position: relative;
    width: 220px;
    height: 250px;
    display: grid;
    place-items: center;
    border: 1px solid #c5d8f2;
    border-radius: 22px;
    color: #07163f;
    background: #fff;
    box-shadow: 0 28px 60px rgba(7, 22, 63, 0.17);
    transform: rotate(-5deg);
    animation: lostQr 4.7s ease-in-out infinite;
}

.lost-qr-card::before {
    content: "ESCANÉAME";
    position: absolute;
    bottom: 18px;
    color: #7a89a1;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.lost-qr-code {
    width: 154px;
    height: 154px;
    margin-top: -22px;
}

.lost-qr-crack {
    fill: none;
    stroke: #f5a800;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: lostCrack 1.8s ease-in-out infinite alternate;
}

.lost-magnifier {
    position: absolute;
    right: 12%;
    bottom: 15%;
    width: 72px;
    height: 72px;
    border: 10px solid #1769ff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.6);
    animation: lostSearch 4.2s ease-in-out infinite;
}

.lost-magnifier::after {
    content: "";
    position: absolute;
    width: 58px;
    height: 12px;
    right: -48px;
    bottom: -25px;
    border-radius: 999px;
    background: #07163f;
    transform: rotate(48deg);
    transform-origin: left center;
}

.lost-dotted-path {
    position: absolute;
    left: 8%;
    bottom: 22%;
    width: 96px;
    height: 45px;
    border-bottom: 4px dotted #f5a800;
    border-radius: 50%;
    transform: rotate(18deg);
}

.lost-survey-sheet {
    position: relative;
    width: 250px;
    height: 320px;
    padding: 44px 28px;
    border: 1px solid #c5d8f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 62px rgba(7, 22, 63, 0.17);
    transform: rotate(3deg);
    animation: lostSurvey 5s ease-in-out infinite;
}

.lost-survey-pin {
    position: absolute;
    top: -13px;
    left: 50%;
    width: 70px;
    height: 28px;
    border-radius: 8px;
    background: #1769ff;
    transform: translateX(-50%);
    box-shadow: 0 8px 18px rgba(23, 105, 255, 0.22);
}

.lost-survey-title,
.lost-survey-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #dce9fa;
}

.lost-survey-title {
    width: 75%;
    height: 14px;
    background: #07163f;
}

.lost-survey-line--short {
    width: 48%;
    margin-top: 14px;
}

.lost-survey-field {
    position: relative;
    height: 56px;
    margin-top: 30px;
}

.lost-survey-field-half {
    position: absolute;
    top: 0;
    width: 51%;
    height: 52px;
    border: 2px solid #94b8ec;
    background: #f8fbff;
}

.lost-survey-field-half--left {
    left: 0;
    border-radius: 10px 0 0 10px;
    clip-path: polygon(0 0, 100% 0, 83% 48%, 100% 100%, 0 100%);
    animation: lostFieldLeft 2.9s ease-in-out infinite;
}

.lost-survey-field-half--right {
    right: 0;
    border-radius: 0 10px 10px 0;
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%, 17% 52%, 0 0);
    animation: lostFieldRight 2.9s ease-in-out infinite;
}

.lost-survey-field i {
    position: absolute;
    z-index: 3;
    top: -7px;
    left: calc(50% - 3px);
    width: 6px;
    height: 66px;
    border-radius: 999px;
    background: #f5a800;
    transform: rotate(12deg);
    opacity: 0.9;
}

.lost-survey-option,
.lost-survey-option--two {
    position: relative;
    display: block;
    width: 68%;
    height: 9px;
    margin: 22px 0 0 28px;
    border-radius: 999px;
    background: #dce9fa;
}

.lost-survey-option::before {
    content: "";
    position: absolute;
    left: -28px;
    top: -5px;
    width: 18px;
    height: 18px;
    border: 2px solid #1769ff;
    border-radius: 50%;
}

.lost-survey-option--two {
    width: 54%;
}

.lost-survey-button {
    display: block;
    width: 74px;
    height: 28px;
    margin-top: 26px;
    border-radius: 7px;
    background: #1769ff;
}

.lost-pencil {
    position: absolute;
    right: 11%;
    bottom: 17%;
    width: 118px;
    height: 18px;
    border-radius: 999px 4px 4px 999px;
    background: linear-gradient(90deg, #f5a800 0 76%, #f2c4a8 76% 88%, #07163f 88%);
    box-shadow: 0 13px 24px rgba(7, 22, 63, 0.14);
    transform: rotate(-42deg);
    animation: lostPencil 3.5s ease-in-out infinite;
}

.lost-rating-card {
    position: relative;
    width: 285px;
    height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #c5d8f2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 62px rgba(7, 22, 63, 0.17);
    animation: lostRating 5.4s ease-in-out infinite;
}

.lost-rating-label {
    margin-bottom: 16px;
    color: #5d6d87;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lost-broken-star {
    position: relative;
    width: 155px;
    height: 150px;
    color: #f5a800;
    font-family: Georgia, serif;
    font-size: 150px;
    line-height: 1;
    filter: drop-shadow(0 14px 16px rgba(245, 168, 0, 0.24));
}

.lost-star-half {
    position: absolute;
    inset: 0;
    display: block;
}

.lost-star-half--left {
    clip-path: polygon(0 0, 52% 0, 43% 36%, 53% 54%, 45% 100%, 0 100%);
    animation: lostStarLeft 3.1s ease-in-out infinite;
}

.lost-star-half--right {
    clip-path: polygon(52% 0, 100% 0, 100% 100%, 45% 100%, 53% 54%, 43% 36%);
    animation: lostStarRight 3.1s ease-in-out infinite;
}

.lost-rating-row {
    display: flex;
    gap: 7px;
    margin-top: 7px;
    color: #f5a800;
    font-size: 1.3rem;
    font-weight: 900;
}

.lost-rating-row span:nth-child(3) {
    color: #1769ff;
}

.lost-star-spark {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1769ff;
    box-shadow: 0 0 0 8px rgba(23, 105, 255, 0.1);
    animation: lostSpark 2.4s ease-in-out infinite;
}

.lost-star-spark--one {
    top: 24%;
    left: 16%;
}

.lost-star-spark--two {
    right: 13%;
    bottom: 25%;
    width: 9px;
    height: 9px;
    background: #f5a800;
    animation-delay: -0.8s;
}

.lost-star-spark--three {
    left: 22%;
    bottom: 17%;
    width: 7px;
    height: 7px;
    animation-delay: -1.4s;
}

.lost-page-footnote {
    margin: 1rem 0 0;
    color: #72809a;
    font-size: 0.78rem;
    font-weight: 750;
    text-align: center;
}

@keyframes lostOrbit {
    to { transform: rotate(360deg); }
}

@keyframes lostBubble {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes lostQr {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}

@keyframes lostCrack {
    from { opacity: 0.55; stroke-dasharray: 7 9; }
    to { opacity: 1; stroke-dasharray: 18 3; }
}

@keyframes lostSearch {
    0%, 100% { transform: translate(0, 0) rotate(-4deg); }
    45% { transform: translate(-82px, -74px) rotate(4deg); }
    70% { transform: translate(-32px, -110px) rotate(-2deg); }
}

@keyframes lostSurvey {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes lostFieldLeft {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(-9px, 5px) rotate(-4deg); }
}

@keyframes lostFieldRight {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(9px, -4px) rotate(4deg); }
}

@keyframes lostPencil {
    0%, 100% { transform: translate(0, 0) rotate(-42deg); }
    50% { transform: translate(-18px, -18px) rotate(-37deg); }
}

@keyframes lostRating {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-13px) rotate(2deg); }
}

@keyframes lostStarLeft {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(-13px, 8px) rotate(-8deg); }
}

@keyframes lostStarRight {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(13px, -7px) rotate(8deg); }
}

@keyframes lostSpark {
    0%, 100% { opacity: 0.45; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 900px) {
    .lost-page-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .lost-page-card::before {
        inset: auto 10% 47% 10%;
        width: auto;
        height: 1px;
    }

    .lost-page-copy {
        padding-bottom: 2.25rem;
    }

    .lost-page-visual {
        min-height: 430px;
    }
}

@media (max-width: 575.98px) {
    .oprime-brand--login,
    .oprime-brand--installer,
    .oprime-brand--404 {
        --oprime-logo-gap: 8px;
        --oprime-logo-icon: 46px;
        --oprime-logo-scale: 0.20909091;
        --oprime-logo-font: 22px;
        --oprime-logo-spacing: 0.075em;
    }

    .lost-page {
        width: min(calc(100% - 1rem), 1180px);
        padding-top: 0.75rem;
    }

    .lost-page-topbar {
        flex-wrap: wrap;
        margin: 0 0 0.75rem;
    }

    .lost-page-topbar > span {
        font-size: 0.62rem;
    }

    .lost-page-card {
        border-radius: 20px;
    }

    .lost-page-copy {
        padding: 1.6rem 1.25rem 2rem;
    }

    .lost-page-copy h1 {
        font-size: clamp(2.45rem, 13vw, 4rem);
    }

    .lost-page-actions {
        display: grid;
    }

    .lost-page-visual {
        min-height: 360px;
    }

    .lost-page-orbit--one {
        width: 320px;
        height: 320px;
    }

    .lost-page-orbit--two {
        width: 230px;
        height: 230px;
    }

    .lost-qr-card {
        width: 190px;
        height: 220px;
    }

    .lost-qr-code {
        width: 132px;
        height: 132px;
    }

    .lost-magnifier {
        right: 8%;
        width: 58px;
        height: 58px;
        border-width: 8px;
    }

    .lost-survey-sheet {
        width: 220px;
        height: 286px;
        padding: 42px 24px;
    }

    .lost-rating-card {
        width: 240px;
        height: 285px;
    }

    .lost-broken-star {
        width: 130px;
        height: 126px;
        font-size: 126px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lost-page-body *,
    .lost-page-body *::before,
    .lost-page-body *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
