:root {
    --etu-midnight: #0b1426;
    --etu-midnight-soft: #111e35;
    --etu-cobalt: #2563eb;
    --etu-cobalt-dark: #1d4ed8;
    --etu-cyan: #38bdf8;
    --etu-ink: #172033;
    --etu-slate: #64748b;
    --etu-line: #e2e8f0;
    --etu-canvas: #f5f7fb;
    --etu-surface: #ffffff;
    --etu-success: #087f5b;
    --etu-warning: #a15c00;
    --etu-danger: #b42318;
    --etu-shadow: 0 18px 46px rgba(15, 23, 42, .07);
    --etu-shadow-soft: 0 8px 24px rgba(15, 23, 42, .05);
    --etu-space-page: clamp(22px, 2.2vw, 40px);
    --etu-space-section: 20px;
    --etu-control-height: 42px;
    --etu-control-height-compact: 36px;
}

html { scroll-behavior: smooth; }
body { color: var(--etu-ink); background: var(--etu-canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Authenticated application shell */
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); background: var(--etu-canvas); }
.app-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color: #dbe7f7;
    background:
        radial-gradient(circle at 12% 0%, rgba(56, 189, 248, .13), transparent 28%),
        linear-gradient(180deg, #0c1729 0%, #091221 100%);
    border-right: 1px solid rgba(148, 163, 184, .12);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .28) transparent;
}
.sidebar-brand-row { min-height: 86px; padding: 22px 22px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.sidebar-brand { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; color: #fff; }
.sidebar-brand > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #3b82f6, #1d4ed8); box-shadow: 0 8px 24px rgba(37, 99, 235, .3); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.sidebar-brand strong { align-self: end; font-size: 17px; letter-spacing: -.02em; }
.sidebar-brand small { align-self: start; color: #8fa6c2; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.sidebar-close { display: none; }
.sidebar-nav { padding: 17px 13px 22px; }
.sidebar-nav-group + .sidebar-nav-group { margin-top: 21px; padding-top: 18px; border-top: 1px solid rgba(148, 163, 184, .1); }
.sidebar-nav-label { display: block; padding: 0 12px 8px; color: #70849e; font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.side-nav-link { position: relative; min-height: 42px; margin: 2px 0; padding: 0 12px; display: flex; align-items: center; gap: 11px; border-radius: 11px; color: #aebdd0; font-size: 12px; font-weight: 680; transition: color .18s ease, background .18s ease, transform .18s ease; }
.side-nav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.side-nav-link:hover { color: #f8fbff; background: rgba(148, 163, 184, .1); transform: translateX(2px); }
.side-nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(37, 99, 235, .9), rgba(37, 99, 235, .48)); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .16), 0 8px 24px rgba(0, 0, 0, .13); }
.side-nav-link.active::before { content: ""; position: absolute; left: -13px; width: 3px; height: 23px; border-radius: 0 4px 4px 0; background: var(--etu-cyan); }
.sidebar-foot { margin-top: auto; padding: 18px 23px 22px; border-top: 1px solid rgba(148, 163, 184, .12); display: grid; gap: 5px; color: #70849e; }
.sidebar-foot small { font-size: 10px; }
.system-state { display: flex; align-items: center; gap: 8px; color: #b8c7d9; font-size: 11px; font-weight: 720; }
.system-state i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }

.app-stage { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 35; min-height: 74px; padding: 0 var(--etu-space-page); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(226, 232, 240, .9); backdrop-filter: blur(18px); }
.topbar-context { display: flex; align-items: center; gap: 13px; min-width: 0; }
.topbar-context > div { display: grid; gap: 2px; min-width: 0; }
.topbar-context span { color: var(--etu-slate); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.topbar-context strong { max-width: min(56vw, 760px); overflow: hidden; color: #152037; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--etu-line); border-radius: 11px; background: #fff; color: var(--etu-ink); cursor: pointer; }
.mobile-menu svg, .sidebar-close svg, .logout-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-account { display: flex; align-items: center; gap: 11px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip > i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #16223a; font-size: 12px; font-style: normal; font-weight: 850; }
.user-chip > span { display: grid; gap: 1px; }
.user-chip small { color: var(--etu-slate); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.user-chip strong { max-width: 210px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-account form { margin: 0; }
.logout-button { height: 37px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--etu-line); border-radius: 10px; color: #475569; background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.logout-button:hover { color: var(--etu-danger); border-color: #fecaca; }

.app-main { flex: 1; min-width: 0; padding-bottom: 50px; }
.app-main > .shell { width: 100%; max-width: none; margin: 0; padding: clamp(28px, 2.6vw, 44px) var(--etu-space-page) 62px; }
.app-footer { position: fixed; left: 272px; right: 0; bottom: 0; z-index: 30; min-height: 50px; padding: 0 var(--etu-space-page); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--etu-line); color: var(--etu-slate); background: rgba(255, 255, 255, .94); box-shadow: 0 -8px 24px rgba(15, 23, 42, .04); backdrop-filter: blur(16px); font-size: 10px; }
.app-footer span { color: #334155; font-weight: 800; }
.sidebar-backdrop { display: none; }

/* Corporate content language */
.app-main h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.app-main h2 { font-size: clamp(19px, 2vw, 24px); line-height: 1.18; letter-spacing: -.025em; }
.app-main h3 { color: #22314a; line-height: 1.3; letter-spacing: -.015em; }
.app-main p { color: var(--etu-slate); }
.app-main .eyebrow { color: var(--etu-cobalt); font-size: 9px; letter-spacing: .14em; }
.app-main .page-heading,
.app-main .page-head { margin-bottom: 24px; padding: 0 0 22px; border-bottom: 1px solid var(--etu-line); align-items: flex-end; }
.app-main .page-heading h1,
.app-main .page-head h1 { margin: 7px 0 7px; font-size: clamp(28px, 3vw, 37px); }
.app-main .page-heading p,
.app-main .page-head p { max-width: 880px; margin: 0; font-size: 13px; line-height: 1.65; }
.app-main .form-card { max-width: none; }
.app-main .report-selector form { width: 100%; max-width: none; }
.app-main .management-card,
.app-main .card,
.app-main .verification-card { border: 1px solid var(--etu-line); border-radius: 18px; background: var(--etu-surface); box-shadow: var(--etu-shadow-soft); }
.app-main .management-card,
.app-main .verification-card { padding: clamp(20px, 2.4vw, 30px); }
.app-main .card { padding: clamp(20px, 2.4vw, 28px); }
.app-main .section-title,
.app-main .section-head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; }
.app-main .section-title h2,
.app-main .section-head h2 { margin: 5px 0 7px; }
.app-main .section-title p,
.app-main .section-head p { margin: 0; font-size: 12px; line-height: 1.6; }
.app-main .status-pill { border: 1px solid #dbe5f1; background: #f5f8fc; color: #52647c; font-size: 9px; letter-spacing: .02em; }
.app-main .status-pill.ok { border-color: #bfe8d7; background: #eefbf6; color: var(--etu-success); }
.app-main .status-pill.warn { border-color: #f5d9a9; background: #fffbeb; color: var(--etu-warning); }
.app-main .status-pill.off { border-color: #f2c7c2; background: #fff4f2; color: var(--etu-danger); }

.app-main .stats,
.app-main .trade-kpis,
.app-main .san-kpis { gap: 12px; margin-bottom: 22px; }
.app-main .stats article,
.app-main .trade-kpis article,
.app-main .san-kpis article { border: 1px solid var(--etu-line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .035); }
.app-main .stats article { min-height: 92px; padding: 17px 18px; }
.app-main .stats strong { color: #17243e; font-size: 27px; }

.app-main .trade-hero,
.app-main .san-hero,
.app-main .verification-hero { position: relative; overflow: hidden; border: 1px solid rgba(148, 163, 184, .14); border-radius: 21px; background: linear-gradient(118deg, #0c172a 0%, #142647 70%, #15335e 100%); box-shadow: 0 22px 55px rgba(15, 23, 42, .13); }
.app-main .trade-hero::after,
.app-main .san-hero::after,
.app-main .verification-hero::after { content: ""; position: absolute; right: -90px; top: -130px; width: 310px; height: 310px; border: 1px solid rgba(96, 165, 250, .18); border-radius: 50%; box-shadow: 0 0 0 48px rgba(59, 130, 246, .035), 0 0 0 96px rgba(59, 130, 246, .025); pointer-events: none; }
.app-main .trade-hero h1,
.app-main .san-hero h1,
.app-main .verification-hero h1 { font-size: clamp(25px, 2.7vw, 36px); }
.app-main .trade-hero p,
.app-main .san-hero p,
.app-main .verification-hero p { color: #b8c6d9; font-size: 12px; line-height: 1.7; }
.app-main .trade-hero .eyebrow,
.app-main .san-hero .eyebrow,
.app-main .verification-hero .eyebrow { color: #7dd3fc; }

.app-main input:not([type=checkbox]):not([type=radio]),
.app-main select,
.app-main textarea { min-height: 42px; border: 1px solid #cfd9e6; border-radius: 10px; background: #fff; color: #182238; font-size: 12px; transition: border-color .16s ease, box-shadow .16s ease; }
.app-main textarea { min-height: 92px; resize: vertical; }
.app-main input:focus,
.app-main select:focus,
.app-main textarea:focus { border-color: #6d9bf5; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); outline: none; }
.app-main label { color: #344258; font-size: 11px; font-weight: 750; }
.app-main button.primary,
.app-main .button.primary,
.app-main a.button:not(.secondary):not(.danger),
.app-main button.button:not(.secondary):not(.danger),
.app-main button[type="submit"]:not([class]) { height: var(--etu-control-height); min-height: var(--etu-control-height); padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; align-self: end; border: 1px solid var(--etu-cobalt); border-radius: 10px; background: var(--etu-cobalt); color: #fff; box-shadow: 0 7px 16px rgba(37, 99, 235, .18); font-size: 11px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.app-main button.primary:hover,
.app-main .button.primary:hover,
.app-main a.button:not(.secondary):not(.danger):hover,
.app-main button.button:not(.secondary):not(.danger):hover,
.app-main button[type="submit"]:not([class]):hover { border-color: var(--etu-cobalt-dark); background: var(--etu-cobalt-dark); }
.app-main button.secondary,
.app-main .button.secondary { height: var(--etu-control-height); min-height: var(--etu-control-height); padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; align-self: end; border: 1px solid #d8e1ec; border-radius: 10px; background: #fff; color: #334155; box-shadow: none; font-size: 11px; font-weight: 780; line-height: 1.15; white-space: nowrap; }
.app-main .table-action { height: var(--etu-control-height-compact); min-height: var(--etu-control-height-compact); padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d8e1ec; border-radius: 9px; background: #fff; color: #334155; box-shadow: none; font-size: 10px; font-weight: 780; line-height: 1.15; white-space: nowrap; }
.app-main button.secondary:hover,
.app-main .button.secondary:hover,
.app-main .table-action:hover { border-color: #9db8ed; background: #f8fbff; color: var(--etu-cobalt-dark); }
.app-main button.danger,
.app-main .button.danger,
.app-main .danger-action,
.app-main button.success { height: var(--etu-control-height); min-height: var(--etu-control-height); padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; align-self: end; border-radius: 10px; font-size: 11px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.app-main button.danger,
.app-main .button.danger,
.app-main .danger-action { border: 1px solid #f2c7c2; background: #fff4f2; color: var(--etu-danger); box-shadow: none; }
.app-main button.success { border: 1px solid #bfe8d7; background: #eefbf6; color: var(--etu-success); box-shadow: none; }
.app-main .form-grid > button { width: auto; justify-self: start; }
.app-main .action-row { gap: 10px; }
.app-main [data-secret-toggle] { width: auto; height: 32px; min-height: 32px; padding: 0 11px; border: 1px solid #d8e2ef; border-radius: 8px; line-height: 1; }
.app-main .user-create-card { padding: clamp(22px, 2.4vw, 32px); }
.app-main .user-create-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.app-main .user-form-summary,
.app-main .user-form-actions { grid-column: 1 / -1; }
.app-main .user-form-summary:empty { display: none; }
.app-main .user-field { display: grid; align-content: start; gap: 7px; }
.app-main .user-field > span:first-child { color: #344258; font-size: 11px; font-weight: 800; }
.app-main .user-field small { color: var(--etu-slate); font-size: 10px; font-weight: 550; line-height: 1.5; }
.app-main .user-form-actions { display: flex; align-items: center; gap: 15px; padding-top: 18px; border-top: 1px solid var(--etu-line); }
.app-main .user-form-actions > span { color: var(--etu-slate); font-size: 10px; line-height: 1.5; }
.app-main button:disabled,
.app-main .button:disabled { opacity: .48; box-shadow: none; cursor: not-allowed; }

.app-main .table-wrap { border: 1px solid var(--etu-line); border-radius: 13px; background: #fff; }
.app-main table { font-size: 11px; }
.app-main th { padding: 11px 13px; color: #66758b; background: #f8fafc; border-bottom-color: var(--etu-line); font-size: 9px; letter-spacing: .08em; }
.app-main td { padding: 12px 13px; border-bottom-color: #edf1f6; }
.app-main tbody tr:last-child td { border-bottom: 0; }
.app-main tbody tr:hover { background: #fbfdff; }
.app-main .empty,
.app-main .empty-state,
.app-main .empty-evidence { border: 1px dashed #cbd7e6; border-radius: 13px; background: #f9fbfd; color: var(--etu-slate); }
.app-main details { border-color: var(--etu-line); }
.app-main details > summary { color: #27364d; }

/* Route-aware page guidance */
.page-guidance {
    position: relative;
    display: grid;
    grid-template-columns: minmax(170px, .6fr) minmax(0, 3.4fr) auto;
    align-items: stretch;
    gap: 16px;
    margin: 0 0 var(--etu-space-section);
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid #d6e2f1;
    border-radius: 16px;
    background: linear-gradient(110deg, #f8fbff 0%, #fff 56%, #f7faff 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}
.page-guidance::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--etu-cobalt), var(--etu-cyan)); }
.page-guidance-heading { min-width: 0; display: flex; align-items: center; gap: 11px; padding-left: 3px; }
.page-guidance-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #173a78; box-shadow: 0 7px 18px rgba(23, 58, 120, .18); font-size: 14px; font-weight: 900; font-family: Georgia, serif; }
.page-guidance-heading > div { min-width: 0; display: grid; gap: 3px; }
.page-guidance-heading span:not(.page-guidance-icon) { color: var(--etu-cobalt); font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.page-guidance-heading strong { overflow: hidden; color: #1c2b43; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.page-guidance-summary { min-width: 0; display: grid; grid-template-columns: minmax(220px, 1.45fr) minmax(130px, .52fr) minmax(220px, 1.25fr); gap: 8px; margin: 0; }
.page-guidance-summary > div { min-width: 0; display: grid; align-content: center; gap: 3px; padding: 7px 10px; border-left: 1px solid #e4ebf4; }
.page-guidance-summary dt { color: #718096; font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.page-guidance-summary dd { margin: 0; overflow: hidden; color: #314057; font-size: 9px; font-weight: 620; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.page-guidance-open { min-width: 126px; min-height: 42px; align-self: center; padding: 0 14px; border: 1px solid #c8d8ee; border-radius: 10px; color: #174b9e; background: #edf4ff; font-size: 10px; font-weight: 820; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.page-guidance-open:hover { border-color: #8eafe3; color: #113b82; background: #e4efff; }
.page-guidance-dialog { width: min(900px, calc(100vw - 34px)); max-height: min(820px, calc(100vh - 34px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #ccd8e8; border-radius: 20px; color: var(--etu-ink); background: #f7f9fc; box-shadow: 0 30px 90px rgba(3, 10, 24, .32); }
.page-guidance-dialog::backdrop { background: rgba(5, 13, 29, .58); backdrop-filter: blur(5px); }
.page-guidance-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.page-guidance-dialog > header { min-height: 86px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: linear-gradient(120deg, #0d1b31, #173a68); }
.page-guidance-dialog > header > div { display: grid; gap: 5px; }
.page-guidance-dialog > header span { color: #8fc8f3; font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.page-guidance-dialog > header h2 { margin: 0; color: #fff; font-size: 22px; }
.page-guidance-dialog > header button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; color: #d8e7f7; background: rgba(255, 255, 255, .06); font-size: 22px; line-height: 1; cursor: pointer; }
.page-guidance-dialog-body { padding: 22px 24px; overflow-y: auto; }
.page-guidance-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.page-guidance-facts article { min-width: 0; padding: 15px; border: 1px solid #dbe5f0; border-radius: 13px; background: #fff; }
.page-guidance-facts span,
.page-guidance-prerequisite span,
.page-guidance-actions-title > span { color: var(--etu-cobalt); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.page-guidance-facts p { margin: 8px 0 0; color: #405169; font-size: 11px; line-height: 1.58; }
.page-guidance-prerequisite { margin-top: 13px; padding: 14px 16px; border: 1px solid #d7e5f7; border-left: 4px solid var(--etu-cobalt); border-radius: 12px; background: #eef5ff; }
.page-guidance-prerequisite p { margin: 5px 0 0; color: #3e536f; font-size: 11px; line-height: 1.55; }
.page-guidance-actions { margin-top: 20px; }
.page-guidance-actions-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--etu-line); }
.page-guidance-actions-title small { color: var(--etu-slate); font-size: 9px; font-weight: 750; }
.page-guidance-actions ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.page-guidance-actions li { min-width: 0; display: grid; grid-template-columns: 29px 1fr; gap: 11px; padding: 13px; border: 1px solid #dfe7f0; border-radius: 12px; background: #fff; }
.page-guidance-actions li > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #174b9e; background: #eaf2ff; font-size: 10px; font-weight: 900; }
.page-guidance-actions li > div { min-width: 0; display: grid; align-content: start; gap: 4px; }
.page-guidance-actions li strong { color: #273850; font-size: 11px; }
.page-guidance-actions li p { margin: 0; color: #66768b; font-size: 10px; line-height: 1.5; }
.page-guidance-dialog > footer { min-height: 65px; padding: 11px 24px; display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--etu-line); background: #fff; }
.page-guidance-dialog > footer .button { height: var(--etu-control-height); min-height: var(--etu-control-height); padding: 0 15px; align-items: center; border: 1px solid #d8e1ec; color: #334155; background: #fff; font-size: 11px; }
.public-main > .page-guidance { margin-bottom: 24px; }

/* Accessible, persistent page tabs */
.workspace-tabs-shell { margin-top: 22px; }
.workspace-tabbar { position: sticky; top: 86px; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 7px; margin: 0 0 18px; padding: 7px; overflow-x: auto; border: 1px solid var(--etu-line); border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); backdrop-filter: blur(14px); scrollbar-width: thin; }
.workspace-tab { position: relative; min-width: 0; min-height: 58px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 11px; color: #65758b; background: transparent; text-align: left; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.workspace-tab > i { width: 8px; height: 8px; flex: 0 0 auto; border: 2px solid #9eb0c5; border-radius: 50%; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.workspace-tab > span { min-width: 0; display: grid; gap: 2px; }
.workspace-tab strong { overflow: hidden; color: inherit; font-size: 11px; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab small { overflow: hidden; color: #8a98ab; font-size: 9px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab:hover { color: #253750; background: #f5f8fc; }
.workspace-tab[aria-selected="true"] { color: #173a78; background: #edf4ff; box-shadow: inset 0 0 0 1px #d4e4ff; }
.workspace-tab[aria-selected="true"] > i { border-color: var(--etu-cobalt); background: var(--etu-cobalt); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.workspace-tab[aria-selected="true"] small { color: #57729c; }
.workspace-tab-panel { display: grid; gap: 18px; outline: none; }
.workspace-tab-panel[hidden] { display: none !important; }
.workspace-tab-panel:focus-visible { border-radius: 18px; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.compact-tabs { margin-top: 4px; }
.compact-tabs > .workspace-tabbar { position: relative; top: auto; grid-auto-columns: minmax(180px, 1fr); box-shadow: none; }

.alert { border-radius: 12px; padding: 13px 16px; box-shadow: var(--etu-shadow-soft); font-size: 12px; }
.alert.error { border: 1px solid #fecaca; background: #fff4f2; color: var(--etu-danger); }

/* Public/authentication shell */
.public-topbar { height: 72px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--etu-line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.public-login-link { padding: 10px 15px; border: 1px solid var(--etu-line); border-radius: 10px; color: #344258; font-size: 11px; font-weight: 800; }
.public-main { min-height: calc(100vh - 72px); padding-bottom: 72px; }
.public-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; min-height: 52px; padding: 0 22px; display: grid; place-items: center; border-top: 1px solid var(--etu-line); color: var(--etu-slate); background: rgba(255, 255, 255, .96); box-shadow: 0 -8px 24px rgba(15, 23, 42, .04); backdrop-filter: blur(16px); text-align: center; font-size: 10px; }

:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }

@media (max-width: 1100px) {
    .app-frame { grid-template-columns: minmax(0, 1fr); }
    .app-sidebar { position: fixed; left: 0; top: 0; width: min(292px, 88vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 24px 0 60px rgba(2, 8, 23, .25); }
    .sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; display: block; border: 0; background: rgba(3, 10, 24, .48); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
    .sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
    .sidebar-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(148, 163, 184, .18); border-radius: 10px; color: #aebdd0; background: rgba(255, 255, 255, .04); cursor: pointer; }
    .mobile-menu { display: grid; }
    .workspace-tabbar { top: 84px; }
    .app-footer { left: 0; }
    .page-guidance { grid-template-columns: minmax(170px, .7fr) minmax(0, 2.3fr) auto; }
    .page-guidance-summary { grid-template-columns: minmax(210px, 1.4fr) minmax(120px, .6fr); }
    .page-guidance-summary > div:last-child { display: none; }
}

@media (max-width: 760px) {
    .app-topbar { min-height: 66px; padding: 0 15px; }
    .topbar-context > div > span { display: none; }
    .topbar-context strong { max-width: 42vw; font-size: 12px; }
    .user-chip > span, .logout-button span { display: none; }
    .user-chip > i { width: 34px; height: 34px; }
    .logout-button { width: 37px; padding: 0; justify-content: center; }
    .app-main > .shell { padding: 23px 15px 45px; }
    .app-main .page-heading, .app-main .page-head { align-items: flex-start; }
    .app-main .section-title, .app-main .section-head { flex-direction: column; }
    .app-main .trade-hero, .app-main .san-hero, .app-main .verification-hero { border-radius: 17px; }
    .workspace-tabs-shell { margin-top: 17px; }
    .workspace-tabbar { top: 75px; grid-auto-columns: minmax(165px, 72vw); border-radius: 14px; }
    .workspace-tab { min-height: 54px; }
    .app-main .user-create-form { grid-template-columns: 1fr; }
    .app-main .user-form-actions { flex-direction: column; align-items: stretch; }
    .app-footer { display: grid; gap: 4px; }
    .page-guidance { grid-template-columns: 1fr auto; gap: 11px; padding: 12px; }
    .page-guidance-heading { min-height: 42px; }
    .page-guidance-summary { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; }
    .page-guidance-summary > div { padding: 7px 8px; border-left: 0; border-top: 1px solid #e4ebf4; }
    .page-guidance-summary > div:last-child { display: grid; }
    .page-guidance-open { min-width: 112px; }
    .page-guidance-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); border-radius: 16px; }
    .page-guidance-dialog > header { min-height: 74px; padding: 16px 17px; }
    .page-guidance-dialog > header h2 { font-size: 18px; }
    .page-guidance-dialog-body { padding: 16px; }
    .page-guidance-facts,
    .page-guidance-actions ol { grid-template-columns: 1fr; }
    .page-guidance-dialog > footer { padding: 10px 16px; }
}

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

@media print {
    .app-frame { display: block; }
    .app-sidebar, .app-topbar, .app-footer, .workspace-tabbar, .page-guidance { display: none !important; }
    .workspace-tab-panel[hidden] { display: grid !important; }
    .app-main > .shell { max-width: none; padding: 0; }
    .app-main { padding-bottom: 0; }
    .public-footer { position: static; }
    .app-main .card, .app-main .management-card, .app-main .verification-card { box-shadow: none; break-inside: avoid; }
}
