@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================================================
   RQ — RAPOR AL-QUR'AN
   UI SYSTEM v5
   Clean Admin Interface
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    /* Brand */
    --primary: #026000;
    --primary-hover: #014a00;
    --primary-dark: #003d00;
    --primary-soft: #eaf4e9;
    --primary-subtle: #f4f8f3;

    --gold: #b09123;
    --gold-dark: #8f751c;
    --gold-soft: #f5efd9;

    /* Neutral */
    --canvas: #f6f7f4;
    --surface: #ffffff;
    --surface-muted: #f8faf7;

    --border: #e1e6df;
    --border-strong: #cfd6cd;

    --text: #1d251e;
    --text-soft: #667066;
    --text-muted: #8b948b;

    /* Feedback */
    --danger: #a83b3b;
    --danger-bg: #fff3f3;
    --danger-border: #f0cccc;

    --success: #026000;
    --success-bg: #eef7ed;
    --success-border: #cee4cc;

    /* Layout */
    --sidebar-width: 248px;
    --sidebar-mini: 72px;
    --topbar-height: 64px;

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 18px;

    /* Motion */
    --transition-fast: 140ms ease;
    --transition-base: 180ms ease;

    /* Elevation — only floating UI */
    --shadow-dropdown:
        0 8px 24px rgba(20, 32, 20, 0.08),
        0 2px 6px rgba(20, 32, 20, 0.05);

    --shadow-drawer:
        18px 0 42px rgba(19, 38, 19, 0.12);
}


/* =========================================================
   2. RESET & BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: var(--canvas);
}

body {
    min-width: 320px;

    font-family:
        'Poppins',
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;

    color: var(--text);
    background: var(--canvas);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

[hidden] {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

code {
    padding: 2px 5px;

    border-radius: var(--radius-xs);

    background: #f0f3ef;
}


/* =========================================================
   3. BRAND
   ========================================================= */

.rq-brand {
    min-width: 0;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: inherit;
    text-decoration: none;
}

.rq-brand-mark {
    position: relative;

    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--primary);
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.04em;

    box-shadow: none;
}

.rq-brand-mark::after {
    content: '';

    position: absolute;
    right: 5px;
    bottom: 5px;

    width: 5px;
    height: 5px;

    border-radius: 999px;

    background: var(--gold);
}

.rq-brand-copy {
    min-width: 0;

    display: grid;
    gap: 1px;
}

.rq-brand-copy strong {
    overflow: hidden;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.015em;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.rq-brand-copy small {
    overflow: hidden;

    color: var(--text-soft);

    font-size: 10.5px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   4. AUTH / LOGIN
   ========================================================= */

.auth-page {
    min-height: 100vh;
    min-height: 100svh;

    background: var(--canvas);
}

.auth-wrap {
    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    place-items: center;

    padding: 12px 24px;
}

.auth-panel {
    width: min(980px, 100%);
    height: min(590px, calc(100svh - 24px));
    min-height: 520px;

    display: grid;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(420px, 1.08fr);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: none;
}

.auth-form-pane {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 44px 52px 40px;
}

.rq-brand--auth {
    align-self: flex-start;
}

.auth-copy {
    margin: 58px 0 22px;
}

.eyebrow {
    margin: 0 0 7px;

    color: var(--primary);

    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-copy h1 {
    margin: 0;

    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.14;
    font-weight: 700;

    letter-spacing: -0.045em;
}

.auth-copy > p:last-child {
    max-width: 42ch;

    margin: 9px 0 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span {
    color: #3d473d;

    font-size: 12px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);

    outline: none;

    background: #ffffff;
    color: var(--text);

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.field input::placeholder {
    color: #a0a8a0;
}

.field input:hover {
    border-color: #bbc4b9;
}

.field input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(2, 96, 0, 0.08);
}


/* Password */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: var(--radius-sm);

    background: transparent;
    color: var(--text-muted);

    cursor: pointer;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.password-toggle:hover {
    background: var(--surface-muted);
    color: var(--primary);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}


/* Buttons */

.auth-form .button {
    margin-top: 4px;
}

.button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border: 0;
    border-radius: var(--radius-sm);

    cursor: pointer;

    font-weight: 600;
    text-decoration: none;

    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.button-primary {
    background: var(--primary);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--primary-hover);
}

.button-primary:active {
    transform: translateY(1px);
}

.button-block {
    width: 100%;
}

.auth-note {
    margin-top: auto;

    padding-top: 14px;

    color: var(--text-muted);

    font-size: 10px;
}


/* Auth Illustration */

.auth-visual-pane {
    position: relative;

    min-width: 0;
    min-height: 100%;

    overflow: hidden;

    background: #e5efe3;
}

.auth-visual-pane img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 35, 0, 0.08) 48%,
            rgba(0, 45, 0, 0.62) 100%
        );
}

.auth-visual-copy {
    position: absolute;
    z-index: 2;

    right: 34px;
    bottom: 30px;
    left: 34px;

    color: #ffffff;
}

.visual-kicker {
    display: block;

    margin-bottom: 8px;

    color: #ead78d;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.auth-visual-copy strong {
    display: block;

    max-width: 24ch;

    font-size: 20px;
    line-height: 1.48;

    letter-spacing: -0.025em;
}


/* =========================================================
   5. FEEDBACK / SETUP
   ========================================================= */

.alert {
    margin: 0 0 15px;

    padding: 10px 12px;

    border: 1px solid;
    border-radius: var(--radius-sm);

    font-size: 12px;
    line-height: 1.5;
}

.alert-error {
    border-color: var(--danger-border);

    background: var(--danger-bg);
    color: var(--danger);
}

.alert-success {
    border-color: var(--success-border);

    background: var(--success-bg);
    color: var(--success);
}

.setup-card {
    width: min(500px, 100%);

    padding: 38px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    box-shadow: none;
}

.setup-card .auth-copy {
    margin: 30px 0 22px;
}


/* =========================================================
   6. APP SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
}


/* =========================================================
   7. SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    z-index: 50;

    inset: 0 auto 0 0;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);

    background: var(--surface);

    transition:
        width var(--transition-base),
        transform var(--transition-base);
}

.sidebar-brand {
    height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    overflow: hidden;

    border-bottom: 1px solid var(--border);
}

.sidebar-close {
    display: none !important;
}

.sidebar-nav {
    flex: 1;

    min-height: 0;

    padding: 26px 10px 18px;

    overflow-y: auto;
}

.sidebar-bottom {
    padding: 12px;

    border-top: 1px solid var(--border);
}


/* Navigation */

.nav-link {
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 11px;

    margin: 3px 0;
    padding: 0 12px;

    overflow: hidden;

    border-radius: var(--radius-sm);

    background: transparent;
    color: #4f584f;;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.nav-link svg {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    color: #6e786e;

    transition:
        color var(--transition-fast);
}


/* Hover */

.nav-link:hover:not(.is-disabled):not(.is-active) {
    background: #f3f6f2;
    color: #1f2a1f;
}

.nav-link:hover:not(.is-disabled):not(.is-active) svg {
    color: var(--primary);
}


/* Active */

.nav-link.is-active {
    background: var(--primary);
    color: #ffffff;

    font-weight: 600;

    box-shadow: none;
}

.nav-link.is-active svg {
    color: #ffffff;
}

.nav-link.is-active::before {
    display: none;
}


/* Disabled */

.nav-link.is-disabled {
    color: #a8afa8;

    cursor: default;
}

.nav-link.is-disabled svg {
    color: #b6bcb6;
}

.sidebar-label {
    opacity: 1;

    transition:
        opacity var(--transition-fast);
}


/* =========================================================
   8. MAIN COLUMN / COLLAPSED SIDEBAR
   ========================================================= */

.main-column {
    min-width: 0;
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    transition:
        margin-left var(--transition-base);
}

html[data-sidebar-mini='1'] .sidebar {
    width: var(--sidebar-mini);
}

html[data-sidebar-mini='1'] .main-column {
    margin-left: var(--sidebar-mini);
}

html[data-sidebar-mini='1'] .sidebar-brand {
    justify-content: center;

    padding: 0;
}

html[data-sidebar-mini='1'] .sidebar .sidebar-label {
    position: absolute;

    width: 0;

    opacity: 0;
    pointer-events: none;
}

html[data-sidebar-mini='1'] .nav-link {
    justify-content: center;

    padding-right: 0;
    padding-left: 0;
}

html[data-sidebar-mini='1'] .sidebar .rq-brand {
    gap: 0;
}


/* =========================================================
   9. TOPBAR
   ========================================================= */

.topbar {
    position: sticky;
    z-index: 40;
    top: 0;

    height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 0 18px;

    border-bottom: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(8px);
}

.topbar-left,
.topbar-right {
    min-width: 0;

    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 12px;
}

.topbar-right {
    gap: 12px;

    margin-left: auto;
}


/* Icon Button */

.icon-button {
    width: 40px;
    height: 40px;

    display: inline-grid;
    place-items: center;

    border: 1px solid transparent;
    border-radius: 10px;

    background: transparent;
    color: #5d665e;

    cursor: pointer;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.icon-button:hover {
    background: #f3f6f2;
    color: var(--primary);
}

.icon-button:active {
    background: #edf2ec;
}


/* Sidebar Collapse Icon */

.desktop-collapse .icon-collapsed {
    display: none;
}

html[data-sidebar-mini='1']
.desktop-collapse
.icon-expanded {
    display: none;
}

html[data-sidebar-mini='1']
.desktop-collapse
.icon-collapsed {
    display: block;
}

.mobile-menu {
    display: none;
}


/* Page Title */

.page-title-wrap {
    min-width: 0;

    display: grid;
    gap: 2px;
}

.page-title-wrap h1 {
    margin: 0;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.page-title-wrap span {
    color: var(--text-muted);

    font-size: 12px;
}


/* Context */

.context-selects {
    display: flex;
    gap: 8px;
}

.context-pill {
    min-width: 118px;
    min-height: 40px;

    display: grid;
    align-content: center;

    padding: 6px 10px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--surface);
}

.context-pill span {
    color: var(--text-muted);

    font-size: 10px;
    line-height: 1.2;
}

.context-pill strong {
    margin-top: 1px;

    overflow: hidden;

    color: #394339;

    font-size: 13px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   10. PROFILE
   ========================================================= */

.profile {
    position: relative;
}

.profile-trigger {
    height: 40px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 3px 5px 3px 11px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    cursor: pointer;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.profile-trigger:hover {
    background: var(--surface-muted);
    border-color: var(--border-strong);
}

.profile-trigger > svg {
    width: 14px;
    height: 14px;

    margin-right: 3px;

    color: var(--text-soft);

    transition:
        transform var(--transition-fast);
}

.profile.is-open .profile-trigger > svg {
    transform: rotate(180deg);
}

.profile-name {
    max-width: 140px;

    overflow: hidden;

    font-size: 13px;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 999px;

    background: var(--primary);
    color: #ffffff;

    font-size: 11px;
    font-weight: 600;
}


/* Dropdown */

.profile-menu {
    position: absolute;
    z-index: 70;

    top: calc(100% + 8px);
    right: 0;

    width: 245px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: var(--shadow-dropdown);
}

.profile-summary {
    display: grid;
    gap: 3px;

    padding: 15px 16px 13px;
}

.profile-summary strong {
    font-size: 13px;
    font-weight: 600;
}

.profile-summary span {
    color: var(--text-soft);

    font-size: 11px;
    line-height: 1.5;
}

.menu-separator {
    border-top: 1px solid var(--border);
}

.profile-menu form {
    margin: 0;
}

.profile-action {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 16px;

    border: 0;

    background: transparent;
    color: #505a50;

    cursor: pointer;

    font-size: 12px;

    text-align: left;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.profile-action:hover {
    background: #f3f6f2;
    color: var(--primary);
}

.profile-action svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   11. OVERVIEW
   ========================================================= */

.workspace {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;
    padding: 30px;
}

.overview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;

    margin-bottom: 24px;
}

.overview-heading h2 {
    margin: 0;

    font-size: 26px;
    line-height: 1.3;

    letter-spacing: -0.035em;
}

.overview-heading > div > p:last-child {
    max-width: 760px;

    margin: 8px 0 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.75;
}


/* Status */

.status-chip {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    border: 1px solid #d0e3cf;
    border-radius: 999px;

    background: #f2f7f1;
    color: var(--primary);

    font-size: 10.5px;
    font-weight: 600;
}

.status-chip i {
    width: 7px;
    height: 7px;

    border-radius: 999px;

    background: var(--gold);
}


/* Summary Cards */

.overview-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 13px;
}

.summary-card {
    min-width: 0;
    min-height: 136px;

    display: flex;
    flex-direction: column;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: none;
}

.summary-label {
    color: var(--text-soft);

    font-size: 12px;
    font-weight: 500;
}

.summary-card strong {
    margin-top: 20px;

    font-size: 36px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: -0.04em;
}

.summary-card small {
    margin-top: auto;
    padding-top: 13px;

    overflow: hidden;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.55;

    text-overflow: ellipsis;
}


/* Content Card */

.content-card {
    margin-top: 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.content-card-header {
    padding: 17px 19px;

    border-bottom: 1px solid var(--border);
}

.content-card-header h3 {
    margin: 0;

    font-size: 16px;
    font-weight: 600;
}

.content-card-header p {
    margin: 4px 0 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.6;
}


/* Foundation */

.foundation-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.foundation-list > div {
    min-height: 102px;

    display: flex;
    gap: 11px;

    padding: 17px 19px;

    border-right: 1px solid var(--border);
}

.foundation-list > div:last-child {
    border-right: 0;
}

.foundation-list .check {
    flex: 0 0 auto;

    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 11px;
    font-weight: 700;
}

.foundation-list strong {
    display: block;

    margin-top: 1px;

    font-size: 14px;
    font-weight: 600;
}

.foundation-list small {
    display: block;

    margin-top: 4px;

    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   12. SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
    position: fixed;
    z-index: 45;

    inset: 0;

    background: rgba(20, 28, 20, 0.34);

    opacity: 0;

    transition:
        opacity var(--transition-base);
}

.sidebar-overlay.is-visible {
    opacity: 1;
}


/* =========================================================
   13. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .context-pill--period {
        display: none;
    }

    .overview-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   14. RESPONSIVE — SHORT LAPTOP
   ========================================================= */

@media (min-width: 768px) and (max-height: 690px) {

    .auth-wrap {
        padding: 10px 20px;
    }

    .auth-panel {
        height: calc(100svh - 20px);
        min-height: 500px;
    }

    .auth-form-pane {
        padding-top: 38px;
        padding-bottom: 32px;
    }

    .auth-copy {
        margin-top: 54px;
        margin-bottom: 16px;
    }

    .auth-form {
        gap: 16px;
    }

    .field input {
        height: 41px;
    }

    .button {
        min-height: 41px;
    }

    .auth-note {
        padding-top: 10px;
    }
}


/* =========================================================
   15. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    :root {
        --topbar-height: 60px;
    }


    /* Sidebar */

    .sidebar {
        width: min(84vw, 288px) !important;

        transform: translateX(-100%);

        box-shadow: var(--shadow-drawer);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-brand {
        justify-content: space-between !important;

        padding: 0 15px !important;
    }

    .sidebar-close {
        display: inline-grid !important;
    }

    .sidebar .sidebar-label {
        position: static !important;

        width: auto !important;

        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sidebar .nav-link {
        justify-content: flex-start !important;

        padding: 0 12px !important;
    }

    .main-column {
        margin-left: 0 !important;
    }

    .desktop-collapse {
        color: #5a635a;
    }
    
    .desktop-collapse:hover {
        background: #f3f6f2;
        color: var(--primary);
    }

    .mobile-menu {
        display: inline-grid;
    }


    /* Topbar */

    .topbar {
        gap: 10px;

        padding: 0 12px;
    }

    .topbar-right {
        gap: 8px;
    }

    .context-selects,
    .profile-name,
    .profile-trigger > svg,
    .page-title-wrap span {
        display: none;
    }

    .profile-trigger {
        gap: 4px;

        padding-left: 4px;
    }


    /* Workspace */

    .workspace {
        padding: 20px 14px 30px;
    }

    .overview-heading {
        display: block;

        margin-bottom: 17px;
    }

    .overview-heading h2 {
        font-size: 20px;
    }

    .overview-heading > div > p:last-child {
        font-size: 11.5px;
    }

    .status-chip {
        margin-top: 13px;
    }

    .overview-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .summary-card {
        min-height: 122px;

        padding: 14px;
    }

    .summary-card strong {
        font-size: 24px;
    }

    .foundation-list {
        grid-template-columns: 1fr;
    }

    .foundation-list > div {
        min-height: auto;

        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .foundation-list > div:last-child {
        border-bottom: 0;
    }


    /* Auth */

    .auth-wrap {
        padding: 12px;
    }

    .auth-panel {
        height: auto;
        min-height: calc(100svh - 24px);

        display: block;

        border-radius: 16px;
    }

    .auth-form-pane {
        min-height: calc(100svh - 24px);

        padding: 40px 24px 34px;
    }

    .auth-visual-pane {
        display: none;
    }

    .auth-copy {
        margin: 42px 0 23px;
    }

    .auth-copy h1 {
        font-size: 27px;
    }

    .setup-card {
        padding: 28px 22px;
    }
}


/* =========================================================
   16. ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }
}
