:root {
    color-scheme: light;
    --primary: #405fea;
    --primary-hover: #304dce;
    --primary-soft: #eef1ff;
    --page: #f5f7fb;
    --surface: #fff;
    --text: #17233b;
    --muted: #64748b;
    --faint: #94a3b8;
    --border: #e5eaf2;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 14px;
    --shadow: 0 8px 28px rgb(23 35 59 / 5%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--page);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { color: inherit; font: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, summary, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgb(64 95 234 / 38%); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; border-radius: 9px; background: var(--text); color: #fff; }
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Authenticated application shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; z-index: 30; top: 0; display: flex; width: 264px; height: 100vh; flex: 0 0 264px; flex-direction: column; padding: 22px 15px 16px; border-right: 1px solid var(--border); background: var(--surface); }
.brand { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 0 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #5878f2, #354fcd); color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 5px 13px rgb(64 95 234 / 23%); }
.brand-copy, .workspace-copy, .account-copy { display: flex; min-width: 0; flex-direction: column; }
.brand-name { color: var(--text); font-size: 16px; font-weight: 760; letter-spacing: -.035em; white-space: nowrap; }
.brand-caption { margin-top: 1px; color: var(--faint); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.sidebar-workspace { position: relative; display: flex; min-width: 0; align-items: center; gap: 10px; margin: 26px 0 15px; padding: 12px 10px; border: 1px solid var(--border); border-radius: 12px; background: #fafbfe; }
.workspace-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: #e6ebff; color: var(--primary); font-size: 14px; font-weight: 760; }
.workspace-copy { flex: 1; }
.workspace-copy strong, .account-copy strong { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy small, .account-copy small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-menu, .account-menu { position: relative; }
.workspace-menu summary, .workspace-open { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid transparent; border-radius: 7px; color: var(--muted); cursor: pointer; list-style: none; }
.workspace-menu summary::-webkit-details-marker, .account-menu summary::-webkit-details-marker { display: none; }
.workspace-menu summary:hover, .workspace-open:hover { border-color: var(--border); background: #fff; color: var(--text); }
.workspace-switch-form { position: absolute; z-index: 55; top: 37px; left: -215px; display: grid; width: 250px; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgb(23 35 59 / 14%); }
.workspace-switch-form label { margin: 0; }
.side-nav { min-height: 0; flex: 1; overflow-y: auto; padding: 2px 0 14px; }
.nav-section-label { margin: 19px 11px 8px; color: #9aa6b8; font-size: 10px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.side-link, .platform-shortcut { display: flex; min-height: 42px; align-items: center; gap: 12px; margin: 2px 0; padding: 0 11px; border-radius: 9px; color: #58677d; font-size: 13px; font-weight: 550; transition: background .15s ease, color .15s ease; }
.side-link:hover, .platform-shortcut:hover { background: #f4f6fc; color: var(--text); }
.side-link.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.nav-icon { display: inline-grid; width: 20px; flex: 0 0 20px; place-items: center; color: #8190a5; font-size: 17px; line-height: 1; }
.side-link.is-active .nav-icon { color: var(--primary); }
.sidebar-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid #f0f2f6; }
.sidebar-bottom .platform-shortcut { margin-bottom: 8px; color: #58677d; }
.sidebar-footnote { display: block; padding: 9px 11px 0; color: #a0aabd; font-size: 10px; }
.sidebar-footnote span { padding: 0 3px; }
.workspace-shell { display: flex; min-width: 0; min-height: 100vh; flex: 1; flex-direction: column; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--border); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); }
.topbar-context { display: flex; min-width: 0; flex-direction: column; }
.topbar-kicker { color: #95a1b2; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.topbar-context strong { overflow: hidden; margin-top: 2px; color: #34445e; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-workspaces { color: var(--muted); font-size: 12px; font-weight: 600; }
.account-menu summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.user-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #dfe5ff; border-radius: 50%; background: #eff2ff; color: var(--primary); font-size: 13px; font-weight: 750; }
.menu-chevron { margin-left: 1px; color: var(--muted); }
.account-dropdown { position: absolute; z-index: 60; top: 48px; right: 0; display: grid; width: 210px; gap: 2px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgb(23 35 59 / 14%); }
.account-dropdown a, .account-dropdown button { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #40516a; text-align: left; cursor: pointer; font-size: 13px; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #f4f6fc; color: var(--text); }
.account-dropdown form { margin: 0; }
.dropdown-identity { overflow: hidden; padding: 7px 10px 9px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; text-overflow: ellipsis; }
.mobile-nav-toggle, .drawer-backdrop { display: none; }
.main { width: 100%; max-width: 1536px; flex: 1; margin: 0 auto; padding: 34px clamp(22px, 4vw, 48px) 56px; }
.footer { padding: 17px 28px 22px; color: #a0aabd; text-align: center; font-size: 11px; }

/* Page building blocks and legacy card markup */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 0 0 24px; }
.page-heading-copy { min-width: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: #98a4b5; font-size: 11px; }
.breadcrumbs a { color: #718096; }
.breadcrumbs span[aria-hidden="true"] { color: #c2cad5; }
.eyebrow { margin: 0 0 7px; color: #6e80ce; font-size: 10px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; color: var(--text); font-size: clamp(25px, 3vw, 32px); font-weight: 730; letter-spacing: -.045em; line-height: 1.2; }
h2 { margin: 28px 0 13px; color: #273650; font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
h3 { margin: 21px 0 11px; color: #34445e; font-size: 14px; font-weight: 700; }
p { color: #52627a; }
.intro { max-width: 680px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.dashboard-card, .panel, .auth-card { width: 100%; margin: 0 0 20px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dashboard-card { max-width: none; }
.auth-card { width: min(100%, 460px); margin: 32px auto; padding: clamp(26px, 5vw, 40px); border-radius: 18px; }
.auth-card.wide { width: min(100%, 610px); }
.auth-card .intro { margin: 10px 0 25px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.card-title { margin: 0; color: #25344e; font-size: 15px; font-weight: 700; }
.card-description { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.page-actions, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.button, .button-link { display: inline-flex; min-height: 40px; width: auto; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 3px 9px rgb(64 95 234 / 15%); transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover, .button-link:hover { transform: translateY(-1px); background: var(--primary-hover); color: #fff; text-decoration: none; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.button-primary { background: var(--primary); color: #fff; }
.button-secondary { border-color: var(--border); background: #fff; color: #45556d; box-shadow: none; }
.button-secondary:hover { border-color: #cbd5e1; background: #f8faff; color: #263650; }
.button-danger { background: var(--danger); }
.button-quiet { min-height: 35px; border-color: var(--border); background: #fff; color: #42526a; box-shadow: none; }
.nav-link-button { padding: 0; border: 0; background: transparent; color: var(--primary); font: inherit; cursor: pointer; }
.nav-link-button:hover { color: var(--primary-hover); }
.notice { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; background: #f9faff; color: #465770; font-size: 13px; line-height: 1.55; }
.notice.success, .alert-success { border-color: #c8efd7; background: #f0fbf4; color: #17663c; }
.notice.error, .alert-error { border-color: #f3cfcc; background: #fff6f5; color: #a3342b; }
.alert-warning { border-color: #f3dfb6; background: #fff9ec; color: #875a10; }
.alert { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 18px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px; font-size: 12px; line-height: 1.55; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-indicator { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; background: rgb(22 163 74 / 11%); font-weight: 800; }
.alert-error .alert-indicator { background: rgb(220 38 38 / 10%); }
.empty-state { padding: 40px 20px; border: 1px dashed #d9e0eb; border-radius: 12px; background: #fbfcff; text-align: center; }
.empty-icon { display: grid; width: 44px; height: 44px; margin: 0 auto 12px; place-items: center; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 20px; }
.empty-state h2, .empty-state h3 { margin: 0 0 7px; font-size: 15px; }
.empty-state p { max-width: 430px; margin: 0 auto 15px; color: var(--muted); font-size: 12px; }
.loading-state { display: flex; min-height: 90px; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.spinner { width: 18px; height: 18px; border: 2px solid #dfe5f4; border-top-color: var(--primary); border-radius: 50%; animation: pulse-spin .75s linear infinite; }
@keyframes pulse-spin { to { transform: rotate(360deg); } }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(17 27 45 / 48%); }
.modal { width: min(100%, 560px); max-height: min(90vh, 760px); overflow: auto; padding: 22px; border: 1px solid var(--border); border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgb(17 27 45 / 24%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; }
.modal-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.metric-card { min-width: 0; padding: 19px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.metric-value { margin: 11px 0 0; color: var(--text); font-size: 27px; font-weight: 730; letter-spacing: -.04em; line-height: 1; }
.metric-note { margin: 8px 0 0; color: #94a1b3; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr); gap: 18px; }
.quick-links { display: grid; gap: 9px; }
.quick-link { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; color: #34445e; font-size: 12px; font-weight: 650; }
.quick-link:hover { border-color: #cbd5ff; background: #fafbff; }
.quick-link span:last-child { color: #9aa6b8; }

/* Forms */
form { min-width: 0; }
.field { min-width: 0; margin: 0 0 16px; }
label { display: inline-flex; min-width: 0; flex-direction: column; gap: 6px; margin: 0 12px 14px 0; color: #34445e; font-size: 11px; font-weight: 650; vertical-align: top; }
.field label { display: block; margin: 0 0 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid #d8e0eb; border-radius: 8px; outline: none; background: #fff; color: #23324a; font-size: 12px; font-weight: 450; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover, select:hover, textarea:hover { border-color: #bdc8d8; }
input:focus, select:focus, textarea:focus { border-color: #8094f1; box-shadow: 0 0 0 3px rgb(64 95 234 / 12%); }
input::placeholder, textarea::placeholder { color: #9ba7b8; }
textarea { min-height: 88px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 15px; height: 15px; accent-color: var(--primary); }
input[type="file"] { display: block; max-width: 100%; color: var(--muted); font-size: 11px; }
.checkbox { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0 14px 10px 0; font-weight: 500; }
.field-error { display: block; margin-top: 5px; color: var(--danger); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-two { grid-column: 1 / -1; }
fieldset { min-width: 0; margin: 19px 0; padding: 18px; border: 1px solid var(--border); border-radius: 11px; }
legend { padding: 0 7px; color: #33445f; font-size: 12px; font-weight: 720; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 5px; }
.filter-form { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(5, minmax(120px, 1fr)) auto; align-items: end; gap: 7px 10px; margin: 19px 0; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #f9faff; }
.filter-form label { min-width: 0; margin: 0; }
.filter-form input, .filter-form select { min-height: 37px; }
.filter-actions { display: flex; align-items: center; gap: 9px; }
.filter-actions a { color: var(--muted); font-size: 11px; }

/* Tables, badges and pagination */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf0f5; color: #43536b; font-size: 12px; vertical-align: middle; }
th { background: #f8f9fc; color: #748197; font-size: 9px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
td a { color: #344fc4; font-weight: 650; }
.table-primary { color: var(--text); font-weight: 650; }
.table-secondary { display: block; margin-top: 2px; color: #8996a9; font-size: 10px; }
.badge { display: inline-flex; min-height: 23px; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; background: #f0f3f8; color: #59677b; font-size: 10px; font-weight: 680; line-height: 1.1; white-space: nowrap; }
.badge-success { border-color: #cdebd7; background: #eefaf2; color: #16803f; }
.badge-warning { border-color: #f3dfb6; background: #fff8e9; color: #a76808; }
.badge-danger { border-color: #f1d1ce; background: #fff3f2; color: #c23b32; }
.badge-primary { border-color: #dce2ff; background: #f0f2ff; color: #4055c5; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.pagination a, .pagination span { display: inline-grid; min-width: 32px; height: 32px; place-items: center; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #65738a; font-size: 11px; }
.pagination [aria-current="page"] span { border-color: var(--primary); background: var(--primary); color: #fff; }
.table-wrap + nav[role="navigation"] { margin-top: 15px; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
dt { color: #8693a5; font-size: 10px; font-weight: 650; }
dd { margin: 3px 0 0; color: #34445e; font-size: 12px; }
details > summary { color: #34445e; font-size: 12px; font-weight: 650; cursor: pointer; }
hr { height: 1px; margin: 19px 0; border: 0; background: var(--border); }

/* Public and authentication pages */
.auth-body { background: radial-gradient(ellipse at 50% -8%, #e9edff 0, #f5f7fb 43%, #f5f7fb 100%); }
.public-topbar { display: flex; min-height: 70px; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 6vw, 82px); border-bottom: 1px solid var(--border); background: rgb(255 255 255 / 90%); }
.public-topbar .brand { padding: 0; }
.public-actions { display: flex; align-items: center; gap: 18px; }
.public-actions form { margin: 0; }
.public-actions > a:not(.button) { color: #58677d; font-size: 12px; font-weight: 600; }
.public-main { width: min(1240px, calc(100% - 40px)); min-height: calc(100vh - 133px); margin: 0 auto; padding: 36px 0 64px; }
.public-main .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 52px; align-items: center; padding: 42px 0 60px; }
.public-main .hero h1 { max-width: 670px; font-size: clamp(42px, 7vw, 68px); }
.hero-copy { max-width: 620px; margin: 22px 0 28px; color: #667085; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-panel { padding: 25px; border: 1px solid #e0e7f3; border-radius: 17px; background: linear-gradient(145deg, #fff, #f5f7ff); box-shadow: var(--shadow); }
.hero-panel h2 { margin: 0 0 14px; font-size: 15px; }
.feature { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #e9edf4; color: #667085; font-size: 12px; line-height: 1.5; }
.feature strong { display: block; margin-bottom: 2px; color: #344054; font-size: 13px; }
.feature-mark { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; background: #e9efff; color: var(--primary); font-size: 12px; font-weight: 800; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: -2px 0 19px; color: #667085; font-size: 11px; }
.form-footer { margin: 21px 0 0; color: #667085; text-align: center; font-size: 12px; }

/* Platform admin uses a distinct global-operations identity */
.platform-body { background: #f3f5fa; }
.platform-sidebar { border-right-color: #e1e6ef; }
.admin-label { display: flex; align-items: center; gap: 10px; margin: 26px 5px 11px; padding: 13px 11px; border: 1px solid #e3e8f1; border-radius: 11px; background: #f8f9fc; }
.admin-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #e9ecff; color: #5361bd; }
.admin-label span:last-child { display: flex; flex-direction: column; }
.admin-label strong { color: #35445d; font-size: 11px; }
.admin-label small { margin-top: 2px; color: #8d99aa; font-size: 10px; }
.platform-shortcut { color: #58677d; }
.platform-topbar { background: rgb(255 255 255 / 96%); }
.admin-avatar { border-color: #e6e2f4; background: #f4efff; color: #7858a8; }

@media (max-width: 1200px) {
    .sidebar { width: 246px; flex-basis: 246px; }
    .filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-form > label:first-child { grid-column: span 2; }
}
@media (max-width: 900px) {
    .sidebar { position: fixed; top: 0; bottom: 0; left: 0; height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 36px rgb(23 35 59 / 12%); }
    .nav-open .sidebar { transform: translateX(0); }
    .drawer-backdrop { position: fixed; z-index: 25; inset: 0; display: block; visibility: hidden; border: 0; background: rgb(17 27 45 / 42%); opacity: 0; transition: opacity .2s, visibility .2s; }
    .nav-open .drawer-backdrop { visibility: visible; opacity: 1; }
    .topbar { min-height: 64px; padding: 0 22px; }
    .mobile-nav-toggle { display: flex; width: 36px; height: 36px; flex: 0 0 36px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; }
    .mobile-nav-toggle span { width: 15px; height: 2px; border-radius: 1px; background: #53627a; }
    .topbar-context { margin-right: auto; }
    .main { padding: 27px 24px 45px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .topbar { gap: 12px; padding: 0 14px; }
    .topbar-context { display: none; }
    .topbar-actions { margin-left: auto; }
    .account-copy { display: none; }
    .topbar-workspaces { display: none; }
    .main { padding: 22px 14px 38px; }
    .dashboard-card, .panel { padding: 17px; border-radius: 12px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .metric-grid { gap: 9px; }
    .metric-card { padding: 14px; }
    .metric-value { font-size: 23px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px; }
    .filter-form > label:first-child { grid-column: 1 / -1; }
    .filter-actions { grid-column: 1 / -1; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-two { grid-column: auto; }
    fieldset { padding: 14px 12px; }
    dl { grid-template-columns: 1fr 1fr; gap: 12px; }
    .public-topbar { min-height: 62px; padding: 0 15px; }
    .public-topbar .brand-name { font-size: 14px; }
    .public-main { width: calc(100% - 28px); padding-top: 18px; }
    .public-main .hero { grid-template-columns: 1fr; gap: 25px; padding: 20px 0 38px; }
    .public-main .hero h1 { font-size: clamp(37px, 12vw, 52px); }
    .hero-copy { margin: 15px 0 21px; font-size: 14px; }
    .public-actions { gap: 11px; }
    .public-actions > a:not(.button) { font-size: 11px; }
    .auth-card { margin: 15px auto; padding: 24px 19px; }
    .table-wrap { overflow-x: auto; }
    .table-wrap table { min-width: 680px; }
    .table-wrap.mobile-cards { overflow: visible; border: 0; background: transparent; }
    .table-wrap.mobile-cards table, .table-wrap.mobile-cards tbody, .table-wrap.mobile-cards tr, .table-wrap.mobile-cards td { display: block; width: 100%; min-width: 0; }
    .table-wrap.mobile-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .table-wrap.mobile-cards tr { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
    .table-wrap.mobile-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; white-space: normal; }
    .table-wrap.mobile-cards td::before { content: attr(data-label); flex: 0 0 36%; color: #8793a5; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .spinner { animation: none; border-top-color: #dfe5f4; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.workspace-card { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.workspace-card:last-of-type { border-bottom: 0; }
.workspace-card-copy { min-width: 0; flex: 1; }
.workspace-card-copy h2 { margin: 0; font-size: 14px; }
.workspace-card-copy p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); }
.workspace-footer form { margin: 0; }
.workspace-footer a { font-size: 11px; }
.row-actions { position: relative; display: inline-block; }
.row-actions > summary { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: #76849a; list-style: none; cursor: pointer; letter-spacing: 1px; }
.row-actions > summary::-webkit-details-marker { display: none; }
.row-action-menu { position: absolute; z-index: 8; top: 34px; right: 0; display: grid; min-width: 140px; gap: 2px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgb(23 35 59 / 12%); }
.row-action-menu a { padding: 7px 9px; border-radius: 6px; color: #45556d; font-size: 11px; }
.row-action-menu a:hover { background: #f4f6fc; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; color: #8996a9; font-size: 10px; }
.table-footer nav { margin: 0 !important; }
.profile-tabs { display: flex; gap: 20px; margin: 0 0 17px; padding: 0 3px 10px; overflow-x: auto; border-bottom: 1px solid var(--border); white-space: nowrap; }
.profile-tabs a { color: #68778c; font-size: 11px; font-weight: 650; }
.profile-tabs a:hover { color: var(--primary); }
.profile-status { margin-left: 8px; vertical-align: middle; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; }
.profile-grid .dashboard-card { min-width: 0; margin: 0; }
.profile-grid dl { display: grid; }
.profile-grid dl .span-two { grid-column: 1 / -1; }
.subsection-divider { margin: 22px 0 13px; padding-top: 17px; border-top: 1px solid var(--border); }
.subsection-divider h3 { margin: 0 0 3px; }
.history-item { position: relative; display: flex; gap: 13px; padding: 3px 0 17px; }
.history-dot { position: relative; z-index: 1; width: 9px; height: 9px; flex: 0 0 9px; margin: 6px 0 0 3px; border: 2px solid #cbd5ff; border-radius: 50%; background: #fff; }
.history-item:not(:last-child)::before { position: absolute; top: 15px; bottom: -2px; left: 7px; width: 1px; background: #e6eaf3; content: ""; }
.history-item strong { color: #35445d; font-size: 11px; }
.history-item p { margin: 3px 0; color: #53637a; font-size: 11px; }
.history-item small { color: #99a4b4; font-size: 10px; }
.document-list { display: grid; gap: 7px; }
.document-item { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; }
.document-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 8px; background: #f0f2ff; color: var(--primary); }
.document-item > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.document-item strong { color: #35445d; font-size: 11px; }
.document-item small { overflow: hidden; margin-top: 2px; color: #8d99aa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload-panel { margin-top: 16px; padding: 14px; border: 1px dashed #d5ddeb; border-radius: 10px; background: #fafbfe; }
.upload-panel h3 { margin: 0 0 12px; }
.fieldset-hint { margin: -2px 0 13px; color: #8996a9; font-size: 10px; }
.directory-layout { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); align-items: start; gap: 16px; }
.directory-layout > section { min-width: 0; }
.organization-card { padding: 14px 0; border-top: 1px solid var(--border); }
.organization-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.organization-heading h3 { margin: 0; }
.organization-card form { margin: 0; }
.organization-card .form-grid { gap: 0 12px; }
.organization-card .form-actions { margin-bottom: 3px; }
.subscription-hero { display: flex; align-items: center; gap: 17px; margin: 0 0 17px; padding: 23px; border: 1px solid #dfe5f6; border-radius: 15px; background: linear-gradient(120deg, #fff, #f7f8ff); box-shadow: var(--shadow); }
.subscription-plan-mark { display: grid; width: 53px; height: 53px; flex: 0 0 53px; place-items: center; border-radius: 15px; background: #e9edff; color: var(--primary); font-size: 25px; }
.subscription-plan-copy { min-width: 0; flex: 1; }
.subscription-plan-copy .eyebrow { margin-bottom: 3px; }
.subscription-plan-copy h2 { margin: 0; font-size: 19px; }
.subscription-plan-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.subscription-plan-meta { display: grid; justify-items: end; gap: 5px; color: #7b899e; font-size: 10px; }
.subscription-plan-meta strong { color: var(--text); font-size: 13px; }
.subscription-plan-meta strong small { color: var(--muted); font-size: 10px; font-weight: 450; }
.subscription-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.subscription-grid .dashboard-card { min-width: 0; }
.usage-row { margin: 0 0 18px; }
.usage-row:last-child { margin-bottom: 0; }
.usage-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.usage-label strong { color: #3d4d65; font-size: 11px; }
.usage-label span { color: #8a97a9; font-size: 10px; }
.usage-track { height: 7px; overflow: hidden; border-radius: 99px; background: #edf0f6; }
.usage-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6d86f1, #405fea); }
.usage-unlimited { color: #8a97a9; font-size: 10px; }
.feature-list { display: grid; gap: 2px; }
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f2f6; color: #53637a; font-size: 11px; }
.feature-row:last-child { border-bottom: 0; }
.plan-request-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr) auto; align-items: end; gap: 10px; }
.platform-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.platform-tool { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; color: #3f5069; }
.platform-tool:hover { border-color: #cbd5ff; background: #fafbff; }
.platform-tool > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.platform-tool strong { color: #34445e; font-size: 11px; }
.platform-tool small { margin-top: 3px; color: #8794a7; font-size: 10px; }
.tool-arrow { color: #9aa6b8; }

/* Tailwind pagination markup is not compiled in this standalone asset build. */
nav[role="navigation"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
nav[role="navigation"] p { margin: 0; color: #8996a9; font-size: 10px; }
nav[role="navigation"] a, nav[role="navigation"] span { display: inline-flex; min-width: 30px; min-height: 30px; align-items: center; justify-content: center; padding: 4px 8px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #62718a; font-size: 10px; }
nav[role="navigation"] a:hover { border-color: #cad3f9; color: var(--primary); }
nav[role="navigation"] [aria-current="page"] span { border-color: var(--primary); background: var(--primary); color: #fff; }

@media (max-width: 1000px) {
    .profile-grid { grid-template-columns: 1fr; }
    .directory-layout { grid-template-columns: 1fr; }
    .plan-request-form { grid-template-columns: 1fr 1fr; }
    .plan-request-form button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
    .workspace-card { align-items: flex-start; flex-wrap: wrap; }
    .workspace-card-copy { flex-basis: calc(100% - 60px); }
    .workspace-card > .page-actions { flex-basis: 100%; }
    .workspace-footer, .table-footer { align-items: flex-start; flex-direction: column; }
    .profile-grid dl { grid-template-columns: 1fr 1fr; }
    .subscription-hero { align-items: flex-start; flex-wrap: wrap; padding: 17px; }
    .subscription-plan-copy { flex-basis: calc(100% - 75px); }
    .subscription-plan-meta { width: 100%; justify-items: start; padding-left: 70px; }
    .subscription-grid, .platform-tools { grid-template-columns: 1fr; }
    .plan-request-form { grid-template-columns: 1fr; }
    .plan-request-form button { grid-column: auto; }
    .profile-tabs { gap: 16px; }
    .document-item { flex-wrap: wrap; }
}
