:root {
    color-scheme: dark;
    --bg: #060b0b;
    --bg-soft: #091211;
    --surface: #0d1716;
    --surface-2: #101f1d;
    --surface-3: #152a27;
    --surface-strong: #192f2b;
    --line: rgba(197, 255, 220, 0.11);
    --line-strong: rgba(197, 255, 220, 0.22);
    --text: #eef8f4;
    --muted: #9cafaa;
    --muted-2: #6e8580;
    --green: #43e38d;
    --green-2: #18aa64;
    --mint: #bdfbd7;
    --cyan: #6fd8ff;
    --amber: #f1c86d;
    --red: #ff6f7f;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
    --shadow-soft: 0 16px 46px rgba(0, 0, 0, 0.25);
    --radius: 8px;
    --sidebar: 292px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #eef4f2;
    --bg-soft: #e8efed;
    --surface: #ffffff;
    --surface-2: #f6fbf8;
    --surface-3: #edf5f1;
    --surface-strong: #e2eeea;
    --line: rgba(17, 42, 35, 0.1);
    --line-strong: rgba(17, 42, 35, 0.18);
    --text: #11211d;
    --muted: #5a7169;
    --muted-2: #7a8f89;
    --shadow: 0 24px 70px rgba(18, 34, 30, 0.08);
    --shadow-soft: 0 16px 36px rgba(18, 34, 30, 0.06);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(10, 20, 19, 0.98), rgba(4, 8, 8, 1)),
        var(--bg);
    font-size: 15px;
    line-height: 1.5;
    text-rendering: geometricPrecision;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(197, 255, 220, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 255, 220, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 78%);
}
html[data-theme="light"] body {
    background:
        linear-gradient(180deg, rgba(238, 245, 243, 0.96), rgba(228, 238, 234, 0.98)),
        var(--bg);
}
html[data-theme="light"] body::before {
    background:
        linear-gradient(rgba(17, 42, 35, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 42, 35, 0.03) 1px, transparent 1px);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: #03100b; background: var(--green); }

/* Auth */
.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 34% 30%, rgba(67, 227, 141, 0.12), transparent 30%),
        radial-gradient(circle at 78% 70%, rgba(189, 251, 215, 0.08), transparent 32%),
        linear-gradient(180deg, #07100f 0%, #020605 100%);
}
.auth-shell {
    width: min(980px, 100%);
    min-height: min(640px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(8, 16, 15, 0.92);
}
.auth-brand-panel {
    position: relative;
    isolation: isolate;
    padding: clamp(34px, 5vw, 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 55% 42%, rgba(67, 227, 141, 0.2), transparent 34%),
        linear-gradient(140deg, rgba(16, 31, 29, 0.88), rgba(5, 12, 11, 0.98)),
        #081110;
}
.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(197,255,220,0.032) 1px, transparent 1px),
        linear-gradient(rgba(197,255,220,0.032) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(135deg, rgba(0,0,0,0.74), transparent 72%);
}
.auth-card {
    padding: clamp(34px, 5vw, 62px);
    background:
        linear-gradient(180deg, rgba(21, 42, 39, 0.34), rgba(9, 18, 17, 0.98)),
        rgba(10, 19, 18, 0.98);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.auth-shell-clean .auth-card-clean {
    order: 1;
    border-left: 0;
    border-right: 1px solid var(--line);
}
.auth-shell-clean .auth-logo-panel {
    order: 2;
}
.auth-logo-link {
    display: inline-flex;
    align-self: flex-start;
    width: min(260px, 78vw);
    margin-bottom: 26px;
    filter: drop-shadow(0 18px 38px rgba(67, 227, 141, 0.18));
}
.auth-logo-link img {
    display: block;
    width: 100%;
    height: auto;
}
.auth-logo-halo {
    position: relative;
    width: min(410px, 74%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(189, 251, 215, 0.14);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 44% 38%, rgba(189, 251, 215, 0.12), transparent 36%),
        linear-gradient(160deg, rgba(67, 227, 141, 0.14), rgba(5, 14, 13, 0.72));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.055),
        0 28px 80px rgba(0, 0, 0, 0.34);
}
.auth-logo-halo::after {
    content: "";
    position: absolute;
    inset: 11%;
    border: 1px solid rgba(189, 251, 215, 0.1);
    border-radius: var(--radius);
}
.auth-logo-halo img {
    position: relative;
    z-index: 1;
    width: 72%;
    height: auto;
    filter: drop-shadow(0 24px 55px rgba(67, 227, 141, 0.22));
}
.clean-login-head {
    margin-bottom: 6px;
}
.clean-login-head h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 38px);
}
.auth-card-clean .stack-form {
    gap: 18px;
}
.auth-card-clean input {
    min-height: 56px;
    background: rgba(2, 8, 8, 0.9);
}
.auth-card-clean .button.full {
    min-height: 56px;
    margin-top: 2px;
    font-size: 16px;
}
.auth-card-clean .form-links {
    justify-content: center;
    gap: 16px;
}
.auth-signal, .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 800;
}
.signal-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(67, 227, 141, 0.7);
}
.choice-card, .metric-card, .panel, .credential-card {
    border: 1px solid var(--line);
    background: rgba(13, 23, 22, 0.86);
    border-radius: var(--radius);
}

/* Identity */
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 900;
}
.brand-mark span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    color: #03100b;
    background: linear-gradient(135deg, var(--green), var(--mint));
    box-shadow: 0 12px 34px rgba(67, 227, 141, 0.24);
}
.brand-mark-large span { width: 46px; height: 46px; }
.brand-mark strong { letter-spacing: 0; }

/* Forms */
.form-head h2, .panel-head h2 {
    margin: 8px 0 6px;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
}
.form-head p, .panel-head p {
    margin: 0;
    color: var(--muted);
}
.stack-form {
    display: grid;
    gap: 16px;
}
label {
    display: grid;
    gap: 8px;
    color: #d5e5df;
    font-weight: 700;
}
html[data-theme="light"] label,
html[data-theme="light"] .filter-bar label {
    color: #2c433d;
}
input, textarea, select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(3, 10, 10, 0.76);
    padding: 12px 13px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input[type="file"] {
    padding: 11px;
    color: var(--muted);
}
input:hover, textarea:hover, select:hover {
    border-color: rgba(197, 255, 220, 0.22);
    background: rgba(5, 15, 14, 0.9);
}
input:focus, textarea:focus, select:focus {
    border-color: rgba(67, 227, 141, 0.72);
    box-shadow: 0 0 0 4px rgba(67, 227, 141, 0.1);
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: rgba(247, 251, 249, 0.96);
    color: #1d312b;
    border-color: rgba(17, 42, 35, 0.1);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.span-2 { grid-column: span 2; }
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.form-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.check-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.035);
}
.check-grid input { width: 16px; min-height: 16px; accent-color: var(--green); }
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.035);
}
.check-row input { width: 16px; min-height: 16px; accent-color: var(--green); }

/* Buttons */
.button, .ghost-button, .icon-button {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-weight: 850;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button {
    color: #03100b;
    background: linear-gradient(135deg, var(--green), var(--mint));
    box-shadow: 0 16px 38px rgba(67, 227, 141, 0.18);
}
.button:hover, .ghost-button:hover, .icon-button:hover {
    transform: translateY(-1px);
}
button:disabled,
.button:disabled,
.ghost-button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}
.button-soft {
    color: var(--green);
    background: rgba(67, 227, 141, 0.12);
    border: 1px solid rgba(67, 227, 141, 0.2);
    box-shadow: none;
}
.ghost-button, .icon-button {
    color: var(--text);
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--line);
}
.ghost-button.danger { color: var(--red); }
.ghost-button.is-copied {
    color: #03100b;
    background: var(--green);
    border-color: var(--green);
}
.full { width: 100%; }
.form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}
.form-links a, .panel-head a {
    transition: color 160ms ease;
}
.form-links a:hover, .panel-head a:hover { color: var(--green); }

/* Choice cards */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.choice-card {
    position: relative;
    padding: 20px;
    display: grid;
    gap: 10px;
    min-height: 180px;
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.choice-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), transparent);
    opacity: 0;
    transition: opacity 160ms ease;
}
.choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(67, 227, 141, 0.44);
    background: rgba(17, 35, 32, 0.94);
}
.choice-card:hover::after { opacity: 1; }
.choice-card span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(67, 227, 141, 0.12);
    border: 1px solid rgba(67, 227, 141, 0.2);
    color: var(--green);
    font-weight: 900;
}
.choice-card strong { font-size: 20px; }
.choice-card small { color: var(--muted); }

/* App shell */
.app-body { overflow-x: hidden; }
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(16, 32, 29, 0.96), rgba(6, 13, 12, 0.98)),
        var(--bg-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 18px 0 50px rgba(0,0,0,0.18);
}
.master-sidebar {
    background:
        linear-gradient(180deg, rgba(17, 29, 28, 0.98), rgba(5, 11, 11, 0.99)),
        var(--bg);
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .master-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 240, 0.98)),
        var(--bg-soft);
    box-shadow: 18px 0 40px rgba(17, 42, 35, 0.06);
}
html[data-theme="light"] .account-chip {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 42, 35, 0.08);
}
.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}
.side-nav {
    display: grid;
    gap: 5px;
    overflow: auto;
    padding-right: 4px;
}
.side-nav::-webkit-scrollbar { width: 8px; }
.side-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(197,255,220,0.14);
}
.side-nav a {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 10px;
    border-radius: var(--radius);
    color: #bacbc6;
    font-weight: 750;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
html[data-theme="light"] .side-nav a {
    color: #566b64;
}
.side-nav a[data-icon]::before {
    content: attr(data-icon);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    color: #9fb8b1;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(197,255,220,0.08);
    font-size: 10px;
    font-weight: 900;
}
html[data-theme="light"] .side-nav a[data-icon]::before {
    color: #4e645d;
    background: rgba(17, 42, 35, 0.04);
    border-color: rgba(17, 42, 35, 0.08);
}
.side-nav a:hover, .side-nav a.is-active {
    color: var(--text);
    background: rgba(67, 227, 141, 0.1);
}
html[data-theme="light"] .side-nav a:hover,
html[data-theme="light"] .side-nav a.is-active {
    color: #13251f;
    background: rgba(67, 227, 141, 0.12);
}
.side-nav a:hover { transform: translateX(2px); }
.side-nav a.is-active {
    box-shadow: inset 3px 0 0 var(--green);
}
.side-nav a.is-active::before {
    color: #03100b;
    background: var(--green);
    border-color: var(--green);
}
.sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: 12px;
}
.account-chip {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
}
.account-chip > span {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    color: #06120f;
    background: linear-gradient(135deg, var(--green), var(--mint));
    font-weight: 900;
}
.account-chip strong, .account-chip small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-chip small { color: var(--muted); }

.app-main {
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(19, 37, 34, 0.58), rgba(5, 10, 10, 0.94) 390px),
        var(--bg);
}
html[data-theme="light"] .app-main {
    background:
        linear-gradient(180deg, rgba(241, 246, 243, 0.98), rgba(232, 239, 235, 0.98) 390px),
        var(--bg);
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 88px;
    padding: 18px clamp(18px, 4vw, 38px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 12, 12, 0.72);
    backdrop-filter: blur(18px);
}
html[data-theme="light"] .topbar {
    background: rgba(248, 251, 250, 0.88);
}
.topbar h1 {
    margin: 2px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
}
.topbar-actions, .actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.theme-toggle {
    min-height: 42px;
    min-width: 108px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text);
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.theme-toggle:hover {
    border-color: rgba(67, 227, 141, 0.26);
    background: rgba(67, 227, 141, 0.08);
}
.theme-toggle__icon {
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--muted);
}
.theme-toggle__track {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--line);
}
.theme-toggle__thumb {
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--mint));
    box-shadow: 0 8px 18px rgba(67, 227, 141, 0.2);
    transition: transform 180ms ease;
}
html[data-theme="light"] .theme-toggle__thumb {
    transform: translateX(20px);
}
html[data-theme="light"] .theme-toggle__icon--sun,
html[data-theme="dark"] .theme-toggle__icon--moon {
    color: var(--green);
}
.live-indicator {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.live-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.live-indicator.is-refreshing .live-indicator__dot {
    background: var(--amber);
    box-shadow: 0 0 0 6px rgba(241, 200, 109, 0.12);
    animation: live-pulse 900ms ease-in-out infinite;
}
.live-indicator.is-synced .live-indicator__dot {
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(67, 227, 141, 0.12);
}
.live-indicator.is-error .live-indicator__dot {
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(255, 111, 127, 0.1);
}
.kapay-toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 130;
    display: grid;
    gap: 10px;
}
.kapay-toast {
    min-width: min(360px, calc(100vw - 32px));
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(7, 18, 16, 0.92);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}
html[data-theme="light"] .kapay-toast {
    background: rgba(255, 255, 255, 0.94);
}
.kapay-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.kapay-toast__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.kapay-toast--success .kapay-toast__dot {
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(67, 227, 141, 0.1);
}
.kapay-toast--info .kapay-toast__dot {
    background: var(--cyan);
    box-shadow: 0 0 0 8px rgba(111, 216, 255, 0.1);
}
.kapay-toast--warning .kapay-toast__dot {
    background: var(--amber);
    box-shadow: 0 0 0 8px rgba(241, 200, 109, 0.1);
}
.kapay-toast--error .kapay-toast__dot {
    background: var(--red);
    box-shadow: 0 0 0 8px rgba(255, 111, 127, 0.08);
}
.kapay-toast__message {
    font-weight: 700;
    letter-spacing: 0;
}
.content-wrap {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: clamp(18px, 4vw, 38px);
    display: grid;
    gap: 20px;
}

/* Metrics and panels */
.metric-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(160px, 1fr));
    gap: 16px;
}
.finance-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    display: grid;
    align-content: space-between;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.metric-card::before {
    content: attr(data-metric);
    position: absolute;
    right: 16px;
    top: 14px;
    color: rgba(238, 248, 244, 0.08);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
}
.metric-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(67,227,141,0.9), rgba(111,216,255,0.4), transparent);
}
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong {
    display: block;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1;
    letter-spacing: 0;
}
.hero-metric {
    background:
        linear-gradient(135deg, rgba(67, 227, 141, 0.18), rgba(111, 216, 255, 0.08)),
        rgba(15, 32, 29, 0.95);
    border-color: rgba(67, 227, 141, 0.28);
}
.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.65fr); }
.onboarding-grid { align-items: stretch; }
.panel {
    position: relative;
    min-width: 0;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .panel,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .choice-card,
html[data-theme="light"] .credential-card,
html[data-theme="light"] .field-card,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .docs-info-card,
html[data-theme="light"] .docs-callout,
html[data-theme="light"] .docs-env-card,
html[data-theme="light"] .docs-step-card,
html[data-theme="light"] .docs-table-card,
html[data-theme="light"] .ops-log-code-card {
    background: rgba(255, 255, 255, 0.86);
}
html[data-theme="light"] .panel,
html[data-theme="light"] .metric-card,
html[data-theme="light"] .choice-card,
html[data-theme="light"] .credential-card,
html[data-theme="light"] .field-card,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .docs-info-card,
html[data-theme="light"] .docs-callout,
html[data-theme="light"] .docs-env-card,
html[data-theme="light"] .docs-step-card,
html[data-theme="light"] .docs-table-card,
html[data-theme="light"] .ops-log-code-card {
    border-color: rgba(17, 42, 35, 0.08);
    box-shadow: 0 20px 46px rgba(18, 36, 30, 0.08);
}
.clean-panel {
    padding: 18px;
}
.compact-fields .field-card {
    min-height: 86px;
}
.wide-panel { min-height: 380px; }
.accent-panel {
    background:
        linear-gradient(135deg, rgba(67, 227, 141, 0.12), rgba(241, 200, 109, 0.06)),
        rgba(13, 23, 22, 0.92);
}
.panel-head { margin-bottom: 18px; }
.panel-head.inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.panel h3 { margin: 8px 0; font-size: 22px; }
.panel p { color: var(--muted); }
html[data-theme="light"] .panel p,
html[data-theme="light"] .panel-head p,
html[data-theme="light"] .form-head p,
html[data-theme="light"] .table-subtext,
html[data-theme="light"] .table-empty p {
    color: #637872;
}
.kapay-chart {
    width: 100%;
    height: 270px;
    display: block;
    border-radius: var(--radius);
}
.health-list, .detail-list, .settings-grid, .mini-list {
    display: grid;
    gap: 12px;
}
.health-list div {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 12px;
    padding: 13px;
    border: 1px solid rgba(197,255,220,0.075);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.036);
}
.health-list div span {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px rgba(67, 227, 141, 0.65);
}
.health-list strong, .health-list small { grid-column: 2; }
.health-list small, .detail-list span { color: var(--muted); }
.detail-list div, .settings-grid div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.detail-list strong, .settings-grid span {
    text-align: right;
    overflow-wrap: anywhere;
}
.mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mini-list span {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #d8ebe5;
    background: rgba(255,255,255,0.04);
}

/* Tables */
.table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 9, 9, 0.36);
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
th, td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(197, 255, 220, 0.075);
    text-align: left;
    vertical-align: middle;
}
th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #b8cbc5;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0;
    background: rgba(16, 31, 29, 0.98);
}
html[data-theme="light"] th {
    background: rgba(242, 247, 245, 0.98);
    color: #60766f;
}
td { color: #e7f2ee; }
html[data-theme="light"] td {
    color: #20352e;
}
tbody tr {
    transition: background 140ms ease;
}
tbody tr:hover { background: rgba(67, 227, 141, 0.045); }
html[data-theme="light"] tbody tr:hover {
    background: rgba(67, 227, 141, 0.08);
}
tbody tr.is-live-updated {
    animation: live-row-updated 2200ms ease;
}
tbody tr.is-live-approved {
    animation: live-row-approved 2600ms ease;
}
tbody tr.is-live-attention {
    animation: live-row-attention 2200ms ease;
}
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 230px;
}
.row-actions .ghost-button,
.row-actions .button {
    min-height: 36px;
    padding: 0 12px;
}
.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(140px, 0.75fr)) auto auto;
    align-items: end;
    gap: 10px;
    margin: 0 0 16px;
}
.finance-filter-bar {
    grid-template-columns: repeat(4, minmax(160px, 1fr)) auto auto;
}
.filter-bar label {
    gap: 6px;
}
.filter-bar input,
.filter-bar select {
    min-height: 42px;
}
.pagination-bar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pagination-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--muted);
}
.pagination-meta strong {
    color: var(--text);
    font-size: 1rem;
}
.pagination-meta small {
    color: var(--muted);
}
.pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination-links .ghost-button,
.pagination-links .button {
    min-width: 42px;
    justify-content: center;
}
.pagination-links .ghost-button.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}
.pagination-ellipsis {
    color: var(--muted);
    font-weight: 700;
    padding: 0 2px;
}
.action-drawer {
    position: relative;
}
.action-drawer summary,
.row-details summary {
    list-style: none;
}
.action-drawer summary::-webkit-details-marker,
.row-details summary::-webkit-details-marker {
    display: none;
}
.action-drawer[open] summary {
    margin-bottom: 12px;
}
.action-drawer .compact-form {
    position: absolute;
    right: 0;
    z-index: 8;
    width: min(560px, calc(100vw - 46px));
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(8, 18, 17, 0.98);
    box-shadow: var(--shadow);
}
.compact-form {
    gap: 12px;
}
.pix-payment-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
    gap: 16px;
    align-items: start;
}
.dense-table th,
.dense-table td {
    padding: 11px 12px;
}
.row-details {
    position: relative;
}
.row-details-popover {
    width: min(360px, 80vw);
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(7, 15, 14, 0.98);
    box-shadow: var(--shadow);
}
.row-details-popover img {
    display: block;
    width: min(240px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
    background: #fff;
    padding: 10px;
}
.credential-list {
    display: grid;
    gap: 12px;
}
.compact-credential {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}
.credential-main {
    display: grid;
    gap: 12px;
}
.credential-main .status-pill {
    justify-self: start;
}
.security-form {
    max-width: 520px;
}
.payload-preview {
    max-width: 520px;
}
.payload-preview summary {
    cursor: pointer;
    color: var(--green);
    font-weight: 850;
}
.payload-preview code,
.payload-inline {
    display: block;
    max-width: 520px;
    max-height: 220px;
    overflow: auto;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: #d7eee4;
    background: rgba(0, 0, 0, 0.28);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Status and alerts */
.status-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border-radius: 999px;
    color: #d8ebe5;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.status-pill::before {
    content: "";
    display: none;
    flex: 0 0 auto;
}
.status-approved, .status-active, .status-pix_paid, .status-payout_paid, .status-received, .status-success, .status-credit, .status-release {
    color: #07110e;
    background: var(--green);
    border-color: var(--green);
}
.status-approved::before,
.status-active::before,
.status-pix_paid::before,
.status-payout_paid::before,
.status-received::before,
.status-success::before,
.status-credit::before,
.status-release::before {
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}
.status-pix_in {
    color: #07110e;
    background: #bdfbd7;
    border-color: #bdfbd7;
}
.status-pix_out {
    color: #041116;
    background: var(--cyan);
    border-color: var(--cyan);
}
.status-production {
    color: #07110e;
    background: linear-gradient(135deg, var(--green), #baf7cf);
    border-color: rgba(150, 239, 176, 0.9);
}
.status-sandbox {
    color: #07110e;
    background: var(--cyan);
    border-color: var(--cyan);
}
.status-pending, .status-under_review, .status-pix_pending, .status-payout_pending, .status-payout_under_review {
    color: #1c1302;
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 0 0 rgba(241, 200, 109, 0.18);
    animation: status-pending-breathe 1800ms ease-in-out infinite;
}
.status-pending::before,
.status-under_review::before,
.status-pix_pending::before,
.status-payout_pending::before,
.status-payout_under_review::before,
.status-payout_processing::before {
    display: inline-flex;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-top-color: transparent;
    background: transparent;
    animation: status-spin 900ms linear infinite;
}
.status-failed, .status-rejected, .status-blocked, .status-inactive, .status-pix_canceled, .status-payout_rejected, .status-debit {
    color: #20080b;
    background: var(--red);
    border-color: var(--red);
}
.status-fee { color: #1c1302; background: var(--amber); border-color: var(--amber); }
.status-payout_processing {
    color: #041116;
    background: rgba(111, 216, 255, 0.88);
    border-color: rgba(111, 216, 255, 0.92);
    animation: status-pending-breathe 1800ms ease-in-out infinite;
}
.status-pix_expired {
    color: #d7e0dc;
    background: rgba(176, 188, 184, 0.16);
    border-color: rgba(176, 188, 184, 0.22);
}
.status-pix_expired::before {
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}
html[data-theme="light"] .status-pix_expired {
    color: #536962;
    background: rgba(83, 105, 98, 0.11);
    border-color: rgba(83, 105, 98, 0.18);
}

.alert {
    border-radius: var(--radius);
    padding: 13px 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.alert-success {
    color: #c9ffe0;
    background: rgba(67, 227, 141, 0.09);
    border-color: rgba(67, 227, 141, 0.24);
}
.alert-error {
    color: #ffd2d7;
    background: rgba(255, 111, 127, 0.09);
    border-color: rgba(255, 111, 127, 0.22);
}
.notice-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid rgba(241, 200, 109, 0.26);
    border-radius: var(--radius);
    background: rgba(241, 200, 109, 0.08);
}
.notice-band span { color: var(--muted); }
.notice-band a { color: var(--amber); font-weight: 900; }

/* Empty and workflow states */
.empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px;
}
.empty-state.compact {
    min-height: 150px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
}
.empty-state span {
    width: 54px;
    height: 54px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: rgba(67, 227, 141, 0.12);
    color: var(--green);
    font-weight: 900;
}
.empty-state h2, .empty-state p { margin: 0; }
.empty-state p { color: var(--muted); }
.timeline {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 25px;
    bottom: -11px;
    width: 1px;
    background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-item > span {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    background: var(--surface);
}
.timeline-item.is-done > span, .timeline-item.is-active > span {
    background: var(--green);
    border-color: var(--green);
}
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small { color: var(--muted); }

/* Specialized cards */
.credential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}
.credential-card {
    padding: 18px;
    display: grid;
    gap: 18px;
    box-shadow: var(--shadow-soft);
}
.credential-card h3 {
    margin: 12px 0;
    overflow-wrap: anywhere;
}
code {
    display: inline-flex;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #c7ffe0;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 10px;
}
.provider-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
}
.kyc-status {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}
.view-intro {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.resource-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.resource-stat,
.field-card,
.operation-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.035);
    padding: 14px;
}
.resource-stat span,
.field-card span,
.operation-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.resource-stat strong,
.field-card strong,
.operation-card strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.field-grid + .detail-list,
.settings-grid + .operation-grid,
.operation-grid + .credential-grid {
    margin-top: 16px;
}
.operation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}
.master-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.master-kpi-grid--compact {
    margin-top: 16px;
}
.master-kpi-grid--executive {
    margin-top: 4px;
}
.master-summary-panel .metric-card {
    min-height: 136px;
}
.executive-summary-panel {
    overflow: hidden;
}
.executive-summary-head {
    margin-bottom: 20px;
}
.executive-kpi-card {
    min-height: 148px;
}
.operation-card {
    min-height: 112px;
    display: grid;
    align-content: space-between;
}
.operation-card p {
    margin: 8px 0 0;
    color: var(--muted);
}
.conversion-panel {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(67, 227, 141, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        rgba(13, 23, 22, 0.92);
}
.conversion-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}
.conversion-hero,
.conversion-side {
    display: grid;
    gap: 18px;
}
.conversion-rate-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.conversion-rate-line strong {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: 0;
}
.conversion-hero p {
    max-width: 720px;
    margin: 0;
}
.conversion-progress {
    display: grid;
    gap: 10px;
}
.conversion-progress small {
    color: var(--muted);
}
.conversion-progress-track {
    position: relative;
    display: block;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.conversion-progress-fill {
    position: relative;
    display: block;
    height: 100%;
    min-width: 12px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(67, 227, 141, 0.95), rgba(145, 255, 196, 0.92));
    box-shadow: 0 0 28px rgba(67, 227, 141, 0.22);
    overflow: hidden;
}
.conversion-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.34) 46%, transparent 100%);
    transform: translateX(-120%);
    animation: kapayShimmer 3.4s ease-in-out infinite;
}
.conversion-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.conversion-mini-card {
    min-height: 114px;
    display: grid;
    align-content: space-between;
}
.conversion-mini-card strong {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1;
}
.conversion-footbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.conversion-footbar span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--muted);
}
.conversion-footbar strong {
    margin-right: 6px;
    color: var(--text);
}
.conversion-panel--success .conversion-rate-line strong {
    color: #baf6cc;
}
.conversion-panel--pending .conversion-rate-line strong {
    color: #ffe29a;
}
.conversion-panel--failed .conversion-rate-line strong {
    color: #ffd4db;
}
@keyframes kapayShimmer {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(140%); }
    100% { transform: translateX(140%); }
}
.table-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 13px;
}
.table-subtext {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.master-transaction-table {
    min-width: 1320px;
}
.master-transaction-table .col-client { width: 16%; }
.master-transaction-table .col-reference { width: 18%; }
.master-transaction-table .col-money { width: 9%; }
.master-transaction-table .col-status { width: 10%; }
.master-transaction-table .col-date { width: 12%; }
.master-transaction-table .col-actions { width: 8%; }
.empty-state.rich {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(67, 227, 141, 0.07), transparent),
        rgba(255,255,255,0.025);
}
.empty-state.rich h3 {
    margin: 0;
    font-size: 18px;
}
.secret-preview {
    width: 100%;
    justify-content: space-between;
}
.qr-result {
    display: grid;
    gap: 14px;
}
.pix-live-status {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(239, 204, 111, 0.28);
    border-radius: var(--radius);
    background: rgba(239, 204, 111, 0.08);
}
.pix-live-status strong {
    color: #f8ebc7;
    font-size: 15px;
}
.pix-live-status small {
    grid-column: 2;
    color: var(--muted);
}
.pix-live-status.is-paid {
    border-color: rgba(67, 227, 141, 0.44);
    background:
        linear-gradient(135deg, rgba(67, 227, 141, 0.16), rgba(111, 216, 255, 0.06)),
        rgba(67, 227, 141, 0.05);
}
.pix-live-status.is-paid strong {
    color: #c9ffe0;
}
.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(239, 204, 111, 0.12);
}
.pix-live-status.is-paid .live-dot {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(67, 227, 141, 0.14);
}
.pix-approved-celebration {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(67, 227, 141, 0.38);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 20%, rgba(189, 251, 215, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(67, 227, 141, 0.17), rgba(111, 216, 255, 0.07)),
        rgba(7, 22, 18, 0.92);
    box-shadow: 0 24px 70px rgba(67, 227, 141, 0.14);
}
.pix-approved-celebration[hidden] {
    display: none;
}
.pix-approved-celebration::before,
.pix-approved-celebration::after {
    content: "";
    position: absolute;
    inset: auto 12% 12% auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    border: 1px solid rgba(189, 251, 215, 0.24);
    opacity: 0;
    transform: scale(0.52);
    pointer-events: none;
}
.pix-approved-celebration::after {
    inset: 10% auto auto 2%;
    width: 120px;
    height: 120px;
}
.pix-approved-celebration.is-visible::before,
.pix-approved-celebration.is-visible::after {
    animation: approval-ripple 1050ms ease-out forwards;
}
.approval-mark {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #07110e;
    background: linear-gradient(135deg, var(--green), #c9ffe0);
    box-shadow: 0 18px 44px rgba(67, 227, 141, 0.28);
}
.approval-mark::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 14px;
    border-left: 4px solid #07110e;
    border-bottom: 4px solid #07110e;
    right: -5px;
    bottom: 9px;
    transform: rotate(-45deg);
    border-radius: 2px;
    background: transparent;
}
.approval-mark span {
    font-weight: 950;
    font-size: 28px;
}
.pix-approved-celebration h3 {
    margin: 3px 0 4px;
    font-size: clamp(24px, 4vw, 36px);
    letter-spacing: 0;
}
.pix-approved-celebration p {
    margin: 0;
    color: #b8d5cc;
}
.pix-watch.is-approved .qr-box,
.pix-watch.is-approved label,
.pix-watch.is-approved .ghost-button[data-copy] {
    opacity: 0.5;
}
body.kapay-payment-approved::after {
    content: "KAPAY aprovado";
    position: fixed;
    left: 50%;
    top: 26px;
    z-index: 120;
    transform: translateX(-50%) translateY(-16px);
    padding: 13px 18px;
    border: 1px solid rgba(67, 227, 141, 0.42);
    border-radius: 999px;
    color: #07110e;
    background: linear-gradient(135deg, var(--green), #c9ffe0);
    box-shadow: 0 22px 70px rgba(67, 227, 141, 0.22);
    font-weight: 950;
    animation: approved-toast 2600ms ease both;
}
@keyframes live-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

@keyframes status-spin {
    to { transform: rotate(360deg); }
}

@keyframes status-pending-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(241, 200, 109, 0.14);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(241, 200, 109, 0.08);
        transform: translateY(-0.5px);
    }
}
@keyframes approval-ripple {
    0% { opacity: 0.65; transform: scale(0.52); }
    100% { opacity: 0; transform: scale(1.35); }
}
@keyframes approved-toast {
    0% { opacity: 0; transform: translateX(-50%) translateY(-16px); }
    14%, 82% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}
@keyframes live-row-approved {
    0% { background: rgba(67, 227, 141, 0.02); }
    18% { background: rgba(67, 227, 141, 0.22); }
    100% { background: transparent; }
}
@keyframes live-row-updated {
    0% { background: rgba(111, 216, 255, 0.02); }
    18% { background: rgba(111, 216, 255, 0.16); }
    100% { background: transparent; }
}
@keyframes live-row-attention {
    0% { background: rgba(241, 200, 109, 0.02); }
    18% { background: rgba(241, 200, 109, 0.16); }
    100% { background: transparent; }
}
.qr-box {
    display: grid;
    place-items: center;
    min-height: 240px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f5fff9;
    padding: 18px;
}
html[data-theme="light"] .qr-box {
    background: #ffffff;
}
.qr-box img {
    width: min(260px, 100%);
    height: auto;
    display: block;
}
.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.docs-hero {
    overflow: hidden;
}
.docs-public-body {
    min-height: 100vh;
}
.docs-public-shell {
    width: min(1560px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 40px;
}
.docs-public-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px 18px;
}
.docs-public-wrap {
    width: 100%;
}
.docs-hero-main {
    display: grid;
    gap: 20px;
}
.docs-brand-lockup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.docs-brand-lockup img {
    width: min(220px, 42vw);
    height: auto;
    display: block;
}
.docs-hero-copy {
    display: grid;
    gap: 10px;
    max-width: 920px;
}
.docs-hero-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 56px);
    line-height: 0.98;
}
.docs-hero-copy p,
.docs-sidebar-head p,
.docs-section > p,
.docs-callout p,
.docs-step-card p,
.docs-env-card p,
.docs-info-card span,
.docs-endpoint-head p,
.docs-notes,
.docs-list {
    color: var(--muted);
}
.docs-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.docs-info-card,
.docs-callout,
.docs-env-card,
.docs-step-card,
.docs-table-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 18px;
}
.docs-info-card {
    display: grid;
    gap: 8px;
}
.docs-info-card small {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}
.docs-info-card strong {
    font-size: 20px;
    font-weight: 900;
}
.docs-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.docs-sidebar-panel {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
}
.docs-sidebar-head {
    display: grid;
    gap: 6px;
}
.docs-sidebar-head h3,
.docs-section h2,
.docs-endpoint h3 {
    margin: 0;
}
.docs-nav {
    display: grid;
    gap: 8px;
}
.docs-nav a {
    display: block;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #dcebe7;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 800;
}
.docs-nav a:hover {
    color: var(--green);
    border-color: rgba(67, 227, 141, 0.24);
    background: rgba(67, 227, 141, 0.08);
}
.docs-content,
.docs-group,
.docs-section {
    display: grid;
    gap: 16px;
}
.docs-section,
.docs-endpoint {
    scroll-margin-top: 24px;
}
.docs-grid-2,
.docs-url-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.docs-callout {
    display: grid;
    gap: 8px;
}
.docs-callout strong,
.docs-env-head strong,
.docs-step-card strong,
.docs-table-card h4,
.docs-notes h4 {
    font-size: 16px;
    font-weight: 900;
}
.docs-callout-success {
    border-color: rgba(67, 227, 141, 0.3);
    background: rgba(67, 227, 141, 0.08);
}
.docs-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.docs-step-card {
    display: grid;
    gap: 8px;
}
.docs-env-card {
    display: grid;
    gap: 12px;
}
.docs-env-head,
.docs-code-head,
.docs-endpoint-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.docs-code-block {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #07100e;
}
.docs-code-head {
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}
.docs-code-head strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
}
.docs-code-language {
    display: inline-flex;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
}
.docs-code-block pre {
    margin: 0;
    padding: 16px 18px;
    overflow: auto;
    background: linear-gradient(180deg, rgba(5, 13, 10, 0.92), rgba(4, 9, 7, 0.98));
}
html[data-theme="light"] .docs-code-block pre,
html[data-theme="light"] .ops-log-code {
    background: linear-gradient(180deg, rgba(244, 249, 246, 0.98), rgba(238, 245, 241, 0.98));
    color: #17312b;
}
.docs-code-block code {
    color: #dff8e8;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre;
}
.docs-example-stack,
.docs-table-stack {
    display: grid;
    gap: 12px;
}
.docs-method {
    min-width: 72px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}
.docs-method--get {
    color: #dff8e8;
    background: rgba(67, 227, 141, 0.14);
    border: 1px solid rgba(67, 227, 141, 0.24);
}
.docs-method--post {
    color: #e3f2ff;
    background: rgba(111, 216, 255, 0.14);
    border: 1px solid rgba(111, 216, 255, 0.26);
}
.docs-method--delete {
    color: #ffe8ea;
    background: rgba(255, 111, 127, 0.14);
    border: 1px solid rgba(255, 111, 127, 0.26);
}
.docs-url-grid label {
    display: grid;
    gap: 8px;
}
.docs-url-grid label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.docs-param-table code,
.docs-list code,
.docs-callout code,
.docs-section code,
.docs-step-card code {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(67, 227, 141, 0.1);
    color: var(--green);
}
.docs-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}
.docs-notes {
    display: grid;
    gap: 10px;
}
.danger-zone {
    border-color: rgba(255, 111, 127, 0.22);
    background: rgba(255, 111, 127, 0.06);
}
.ops-log-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.ops-log-summary-card {
    min-height: 124px;
}
.ops-log-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ops-log-summary-card strong {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    line-height: 1;
}
.ops-log-summary-card small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.45;
}
.ops-log-table {
    min-width: 1180px;
}
.ops-log-stack {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.ops-log-stack strong,
.ops-log-stack span,
.ops-log-stack small {
    min-width: 0;
}
.ops-log-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ops-log-badge--request,
.ops-log-badge--inbound {
    background: rgba(67, 227, 141, 0.14);
    border-color: rgba(67, 227, 141, 0.24);
    color: #adf6c6;
}
.ops-log-badge--response,
.ops-log-badge--outbound {
    background: rgba(104, 194, 255, 0.14);
    border-color: rgba(104, 194, 255, 0.24);
    color: #bce5ff;
}
.ops-log-badge--internal {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--muted);
}
.ops-log-http {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ops-log-http.status-success {
    background: rgba(67, 227, 141, 0.12);
    color: #9defbc;
}
.ops-log-http.status-pending {
    background: rgba(253, 207, 103, 0.14);
    color: #ffe39b;
}
.ops-log-http.status-failed {
    background: rgba(255, 111, 127, 0.14);
    color: #ffbdc6;
}
.ops-log-http.status-inactive {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}
.ops-log-actions {
    min-width: 180px;
    justify-content: flex-start;
}
.ops-log-details {
    position: relative;
}
.ops-log-details > summary {
    width: fit-content;
}
.ops-log-details[open] > summary {
    margin-bottom: 10px;
}
.ops-log-popover {
    width: min(760px, 86vw);
    display: grid;
    gap: 14px;
}
.ops-log-meta-grid,
.ops-log-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ops-log-alert {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 111, 127, 0.2);
    background: rgba(255, 111, 127, 0.08);
}
.ops-log-alert strong {
    color: #ffd8de;
}
.ops-log-alert p {
    margin: 0;
    color: #ffd8de;
    line-height: 1.5;
}
.ops-log-code-card {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}
.ops-log-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.ops-log-code-head strong {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ops-log-code {
    margin: 0;
    padding: 14px;
    max-height: 320px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.22);
    color: #d7eee4;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.ops-log-error-text {
    color: #ffb1bd;
}
.ghost-button.is-active {
    color: #04110b;
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 14px 28px rgba(67, 227, 141, 0.18);
}
.master-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.stack-grid {
    display: grid;
    gap: 14px;
}
.client-config-card {
    display: grid;
    gap: 14px;
}
.client-config-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.client-config-card__head small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.field-card.compact {
    min-height: auto;
    padding: 14px 16px;
}
.compact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.client-limit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.admin-row-actions form {
    margin: 0;
}
.admin-row-actions .ghost-button,
.admin-row-actions .button,
.admin-row-actions button {
    min-height: 36px;
}
.muted-text {
    color: var(--muted);
}
.admin-user-note {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
}
.admin-user-note strong {
    display: block;
    margin-bottom: 6px;
}
.admin-user-note p {
    margin: 0;
    color: var(--muted);
}
.admin-editor-row {
    display: none;
}
.admin-editor-row.is-open {
    display: table-row;
}
.admin-editor-row td {
    padding: 0 0 14px;
    border-top: 0;
}
.admin-editor-form {
    margin-top: -6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(67, 227, 141, 0.08), transparent 34%),
        rgba(255,255,255,0.03);
}
.document-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.document-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(67, 227, 141, 0.08), transparent 34%),
        rgba(255,255,255,0.03);
    box-shadow: var(--shadow-soft);
}
.document-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.document-card__head h3 {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.document-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}
.document-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
}
.document-card__viewer {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
    background: rgba(255,255,255,0.025);
}
.document-card__viewer img,
.document-card__viewer iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    background: rgba(0, 0, 0, 0.14);
    object-fit: cover;
}
.document-card__viewer iframe {
    background: #fff;
}
.document-card__placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    gap: 8px;
}
.document-card__placeholder strong {
    font-size: 17px;
}
.document-card__placeholder p {
    margin: 0;
    max-width: 320px;
    color: var(--muted);
}
.document-card .row-actions {
    align-items: center;
}
.document-card .row-actions .ghost-button,
.document-card .row-actions .button {
    min-height: 38px;
}
.mobile-only { display: none; }

@media (prefers-reduced-motion: reduce) {
    .pix-approved-celebration.is-visible::before,
    .pix-approved-celebration.is-visible::after,
    body.kapay-payment-approved::after {
        animation: none;
    }
}

@media (max-width: 1120px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .master-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid, .two-columns { grid-template-columns: 1fr; }
    .conversion-layout { grid-template-columns: 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar-panel {
        position: static;
    }
    .docs-nav {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow: auto;
        padding-bottom: 4px;
    }
    .docs-overview-grid,
    .docs-step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 420px; }
    .auth-card { border-left: 0; border-top: 1px solid var(--line); }
    .auth-shell-clean {
        grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
    }
    .auth-shell-clean .auth-brand-panel {
        min-height: auto;
    }
    .auth-shell-clean .auth-card-clean {
        border-top: 0;
        border-right: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(0, 0, 0, 0.54);
    }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(88vw, 326px);
        z-index: 50;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: var(--shadow);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .mobile-only { display: inline-flex; }
    .topbar {
        position: sticky;
        align-items: flex-start;
        min-height: auto;
    }
    .docs-public-topbar {
        padding: 0 0 18px;
    }
    .topbar-actions { justify-content: flex-end; }
    .metric-grid, .form-grid, .choice-grid, .check-grid, .mini-list { grid-template-columns: 1fr; }
    .master-kpi-grid { grid-template-columns: 1fr; }
    .conversion-mini-grid { grid-template-columns: 1fr; }
    .docs-overview-grid,
    .docs-step-list,
    .docs-grid-2,
    .docs-url-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar,
    .finance-filter-bar,
    .pix-payment-grid,
    .compact-credential,
    .compact-form-grid,
    .client-limit-grid {
        grid-template-columns: 1fr;
    }
    .document-preview-grid {
        grid-template-columns: 1fr;
    }
    .document-card__head {
        flex-direction: column;
        align-items: flex-start;
    }
    .document-card__viewer img,
    .document-card__viewer iframe {
        height: 320px;
    }
    .action-drawer {
        width: 100%;
    }
    .action-drawer summary {
        width: 100%;
    }
    .action-drawer .compact-form {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }
    .row-details-popover {
        position: static;
        width: 100%;
    }
    .resource-toolbar { grid-template-columns: 1fr; }
    .ops-log-meta-grid,
    .ops-log-detail-grid {
        grid-template-columns: 1fr;
    }
    .ops-log-popover {
        width: 100%;
    }
    .span-2 { grid-column: span 1; }
    .auth-body { padding: 0; }
    .auth-shell {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }
    .auth-shell-clean {
        grid-template-columns: 1fr;
    }
    .auth-brand-panel {
        min-height: 360px;
        padding: 26px;
    }
    .auth-shell-clean .auth-logo-panel {
        display: none;
    }
    .auth-shell-clean .auth-card-clean {
        min-height: 100vh;
        border: 0;
        padding: 30px;
    }
    .auth-card { padding: 26px; }
    .auth-logo-link {
        align-self: center;
        width: min(230px, 78vw);
        margin-bottom: 20px;
    }
    .clean-login-head {
        text-align: center;
    }
    .auth-card-clean .form-links {
        justify-content: center;
    }
    .notice-band { grid-template-columns: 1fr; }
    .provider-strip { grid-template-columns: 1fr; }
    .panel-head.inline {
        flex-direction: column;
        align-items: flex-start;
    }
    .docs-brand-lockup,
    .docs-code-head,
    .docs-endpoint-head,
    .docs-env-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .content-wrap { padding: 18px; }
    table { min-width: 620px; }
}

@media (max-width: 520px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .docs-public-shell {
        width: min(100%, calc(100% - 24px));
        padding-top: 12px;
    }
    .docs-public-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .topbar-actions {
        justify-content: flex-start;
    }
    .actions-row {
        align-items: stretch;
        flex-direction: column;
    }
    .actions-row .button,
    .actions-row .ghost-button,
    .actions-row form,
    .actions-row button {
        width: 100%;
    }
    .admin-row-actions {
        align-items: stretch;
    }
    .admin-row-actions form,
    .admin-row-actions .ghost-button,
    .admin-row-actions .button,
    .admin-row-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
