@charset "UTF-8";
:root {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #302f2a; background: #e8e3d9; font-synthesis: none;
  --ink: #302f2a; --muted: #756f65; --subtle: #8c8477; --line: #eae6dd;
  --amber: #ffbd60; --amber-dark: #82500c; --sage: #536c59;
  --card: rgba(255,255,255,.94); --shadow: 0 6px 22px rgba(76,63,36,.04);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; font-size: 13px; line-height: 1.5; background: radial-gradient(ellipse at 13% 12%, #fffaf0 0, transparent 43%), radial-gradient(ellipse at 96% 16%, #c8c9bc 0, transparent 42%), radial-gradient(ellipse at 60% 95%, #e7d1ac 0, transparent 55%), #e9e4da; background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(122deg, transparent 0 12%, #ffffff66 12.2% 18%, transparent 18.2% 77%, #ffffff44 77.2% 84%, transparent 84.2%); z-index: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary, [tabindex] { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
:focus-visible { outline: 2px solid #815b22; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px,2.25vw,34px); line-height: 1.18; letter-spacing: -1.1px; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.45px; font-weight: 620; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
p { line-height: 1.6; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; border: 1px solid #e5e0d7; border-radius: 12px; padding: 10px 15px; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.4; font-weight: 600; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:hover:not(:disabled), .button:hover { background: #f8f5ee; border-color: #d5cbbb; }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
.primary { color: #433016; background: var(--amber); border-color: transparent; box-shadow: 0 4px 10px #d8952920; }
.primary:hover:not(:disabled), .button.primary:hover { background: #ffb348; border-color: #edb25a; }
.full-width { width: 100%; }
.subtle-button { background: #f7f5ef; }
.icon-button { min-width: 42px; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #ffffff80; }
.text-link { display: inline-flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 12px; font-weight: 650; padding: 5px 0; }
.text-link:hover { color: #8c5812; }
.text-link span { font-size: 18px; }
.text-button { padding: 7px 0; min-height: 32px; border: 0; box-shadow: none; background: transparent; font-size: 12px; font-weight: 500; justify-content: flex-start; }
.text-button:hover:not(:disabled) { background: transparent; color: #82500c; }
.mini-label, .eyebrow { display: block; font-size: 9px; letter-spacing: 1.6px; line-height: 1.5; font-weight: 650; color: var(--muted); }
.eyebrow.compact { margin: 0 0 9px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #72957a; box-shadow: 0 0 0 3px #72957a12; }
[hidden] { display: none !important; }
.sr-only, .rail-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 100px; background: #fff; padding: 12px; border-radius: 10px; z-index: 20; }
.skip-link:focus { top: 12px; }

/* The workspace sits inside a single translucent surface. */
.app-page { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 22px; padding: 28px; align-items: start; max-width: 1920px; margin: 0 auto; }
.app-rail { position: sticky; top: 28px; height: calc(100dvh - 56px); min-height: 420px; display: flex; align-items: center; flex-direction: column; padding: 25px 10px 20px; border: 1px solid #ffffffd9; border-radius: 38px; background: #fffcf18f; box-shadow: inset 0 1px 0 #fff, 0 8px 28px #66523409; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 3; }
.rail-brand { position: relative; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -2px; padding: 7px 10px; color: #53462e; }
.rail-brand span, .brand-mark i { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); bottom: 7px; right: 7px; }
.rail-links { display: flex; flex-direction: column; gap: 15px; margin-top: 50px; }
.rail-link { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 17px; color: #797263; transition: background .18s, color .18s; }
.rail-link:hover { background: #ffffffa8; color: #544527; }
.rail-link.active, .rail-link[aria-current="page"] { background: linear-gradient(135deg,#ffd998,#ffb749); color: #634013; box-shadow: 0 5px 12px #e2a04430, inset 0 1px 2px #ffe5b3; }
.rail-footer { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rail-caption { color: #8b816c; font-size: 8px; letter-spacing: 1.9px; }
.app-shell { position: relative; min-width: 0; min-height: calc(100dvh - 56px); background: rgba(255,254,249,.53); border: 1px solid #ffffffe6; border-radius: 30px; box-shadow: 0 16px 60px #6652340b, inset 0 1px 0 #fff; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 28px 23px; border-bottom: 1px solid #ffffff85; min-height: 100px; }
.top-heading p { font-size: 18px; font-weight: 600; letter-spacing: -.45px; margin-top: 6px; }
.top-section { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.45px; margin-top: 6px; }
.heading-dot { color: #c79747; }
.rail-status { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #eee9dc; color: #8d805f; }
.greeting-dot { display: inline-block; background: var(--amber); width: 7px; height: 7px; border-radius: 50%; margin: 0 0 2px 9px; }
.account { display: flex; gap: 11px; align-items: center; min-width: 0; }
.profile-avatar, .person-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 39px; height: 39px; border-radius: 50%; background: #e8eadf; color: #596750; font-weight: 650; font-size: 12px; border: 1px solid #ffffffe0; }
.account-copy { display: grid; gap: 1px; margin-right: 10px; }
.account-copy > span, #account-name { font-size: 12px; font-weight: 650; max-width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-copy small { font-size: 10px; color: var(--muted); }
.admin-page .account-copy > span { font-size: 10px; color: var(--muted); font-weight: 400; }
.workspace { padding: 26px 28px 19px; min-width: 0; }
.page-heading, .intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading p, .intro p { color: var(--muted); font-size: 12px; margin-top: 9px; }
.date-label { padding: 8px 12px; border: 1px solid #ffffffa1; border-radius: 20px; font-size: 10px; color: #756e60; white-space: nowrap; text-transform: capitalize; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0 0 26px; }
.metric-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 148px; padding: 18px 20px 16px; background: var(--card); border-radius: 20px; border: 1px solid #fff; box-shadow: var(--shadow); --tone: #b48035; --tint: #fff4dc; }
.tone-amber { --tone: #ab721c; --tint: #fff2d8; }
.tone-sage { --tone: #668363; --tint: #edf4e7; }
.tone-blue { --tone: #5a87ae; --tint: #edf3fa; }
.tone-violet { --tone: #8c78a4; --tint: #f2edf7; }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; }
.metric-label { font-size: 11px; color: #5f5c54; font-weight: 500; }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; background: var(--tint); color: var(--tone); border-radius: 50%; }
.metric-icon svg { width: 15px; height: 15px; }
.metric-value { display: block; font-weight: 500; font-size: 34px; line-height: 1.15; letter-spacing: -1.2px; color: var(--tone); margin: 15px 0 7px; font-variant-numeric: tabular-nums; }
.metric-value.word-value { font-size: 25px; letter-spacing: -.7px; margin-top: 21px; }
.metric-note { display: flex; gap: 7px; align-items: center; margin-top: auto; font-size: 10px; color: var(--muted); }
.dashboard-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 22px; align-items: start; }
.main-column, .context-column { min-width: 0; }
.vehicle-launch { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 15px; background: linear-gradient(120deg,#fff9ee,#ffffffed); }
.vehicle-launch h2 { margin: 4px 0; }
.vehicle-launch p { color: var(--muted); font-size: 11px; }
.context-column { display: grid; gap: 16px; }
.section-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading h2, .panel-heading h2 { margin-top: 4px; }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid #ffffffd1; border-radius: 24px; background: #b6b0a515; padding: 0 13px; max-width: 220px; }
.search-field svg { width: 16px; height: 16px; color: #8b8376; }
.search-field input { border: 0; padding: 11px 0; min-height: 38px; background: transparent; min-width: 0; width: 100%; border-radius: 0; font-size: 11px; box-shadow: none; }
.search-field:focus-within { outline: 2px solid #bb9859; outline-offset: 2px; }
.search-field input:focus-visible { outline: none; }
.status { color: var(--muted); font-size: 11px; min-height: 17px; margin: 10px 0 14px; }
.status:empty { display: none; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 0 0 22px; }
.area-card { display: grid; grid-template-columns: 38px minmax(0,1fr) 20px; gap: 13px; align-items: center; justify-content: start; padding: 19px; min-height: 92px; border: 1px solid #ffffff; border-radius: 20px; box-shadow: var(--shadow); text-align: left; background: var(--card); }
.area-card:hover:not(:disabled) { background: #fffcf5; border-color: #dec9a2; transform: translateY(-2px); }
.area-card[aria-pressed="true"] { background: #fff1d8; border-color: #e8bd74; box-shadow: 0 0 0 2px #efc78220; }
.module-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tint,#f5f1e9); color: var(--tone,#948065); }
.module-icon svg { width: 20px; height: 20px; }
.module-copy { display: grid; gap: 4px; min-width: 0; }
.module-copy small { font-size: 9px; color: var(--muted); font-weight: 500; letter-spacing: .35px; }
.module-copy > span { font-size: 13px; line-height: 1.4; font-weight: 620; overflow-wrap: anywhere; }
.module-arrow { color: #b3a692; font-size: 18px; font-weight: 400; }
.context-card { padding: 23px; border: 1px solid #ffffffb3; border-radius: 22px; background: #ffffff7a; box-shadow: var(--shadow); }
.context-card h2 { font-size: 16px; }
.context-card p { font-size: 11px; color: #777063; margin-top: 9px; }
.workspace-card { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; column-gap: 12px; background: linear-gradient(150deg,#e9eaddbd,#dfe2d480 48%,#ffffffa6); }
.workspace-card > .mini-label, .workspace-card .context-divider, .workspace-card .permission-list, .workspace-card .button { grid-column: 1/-1; }
.workspace-card .workspace-emblem { grid-row: span 2; width: 44px; height: 44px; font-size: 28px; margin: 15px 0 0; border-radius: 14px; }
.workspace-card .workspace-emblem span { right: 7px; bottom: 10px; width: 5px; height: 5px; }
.workspace-card h2 { margin-top: 15px; }
.workspace-card > p { margin-top: 3px; font-size: 10px; line-height: 1.5; }
.workspace-card > p br { display: none; }
.workspace-card .context-divider { margin: 16px 0 13px; }
.workspace-emblem { position: relative; display: grid; place-items: center; margin: 23px 0 13px; width: 60px; height: 60px; font-size: 34px; font-weight: 750; color: #5f6a51; background: #f7f8edb3; border: 1px solid #fff; border-radius: 19px; letter-spacing: -2px; box-shadow: 0 5px 15px #585d4310; }
.workspace-emblem span { position: absolute; right: 12px; bottom: 15px; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.context-divider { height: 1px; background: #ffffffb3; margin: 21px 0 17px; }
.permission-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.permission-tag, .badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; background: #f3f1eb; padding: 4px 7px; font-size: 10px; line-height: 1.5; color: #70695b; font-weight: 500; white-space: nowrap; }
.permission-list .permission-tag { background: #ffffff80; color: #5e6854; }
.workspace-card .button { margin-top: 18px; font-size: 11px; justify-content: space-between; }
.admin-access, .accent-card, .access-guide { background: linear-gradient(135deg,#ffe0a5,#ffce85c9); border-color: #ffe5b6; }
.context-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #fff5df94; color: #97713b; margin-bottom: 13px; }
.context-icon svg { width: 19px; height: 19px; }
.admin-access h2, .admin-access p, .admin-access .text-link { color: #735127; }
.admin-access { display: grid; grid-template-columns: 35px minmax(0,1fr); column-gap: 10px; align-items: center; padding: 20px 22px; }
.admin-access .context-icon { margin: 0; }
.admin-access h2 { font-size: 15px; }
.admin-access > p, .admin-access .text-link { grid-column: 1/-1; }
.admin-access .text-link { margin-top: 12px; width: 100%; }
.session-card { padding: 19px 22px; }
.session-heading { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; }
.session-card .text-link { margin-top: 11px; font-size: 10px; }
.panel { min-width: 0; margin: 0 0 20px; padding: 24px; background: var(--card); border: 1px solid #fff; border-radius: 22px; box-shadow: var(--shadow); }
.explorer-panel { margin-top: 24px; }
.panel-heading .badge { flex-shrink: 0; }
input, select { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; color: var(--ink); border: 1px solid #e5e0d7; border-radius: 10px; background: #faf9f6; font-size: 12px; transition: border-color .18s, background .18s; }
input::placeholder { color: #948d81; opacity: 1; }
input:hover, select:hover { border-color: #c9bdab; }
input:focus, select:focus { background: #fff; border-color: #b69a6c; }
input[type="checkbox"] { min-height: 17px; width: 17px; height: 17px; accent-color: #aa7a32; flex-shrink: 0; }
.tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 18px 0; }
.tools label { display: grid; gap: 7px; min-width: 0; font-size: 10px; color: var(--muted); }
.explorer-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.explorer-tools label:first-child { grid-column: 1/-1; }
.explorer-tools > button { align-self: end; }
.table-wrap { min-width: 0; width: 100%; max-height: 560px; overflow: auto; border: 1px solid #eeeae2; border-radius: 13px; scrollbar-width: thin; scrollbar-color: #cfc5b4 transparent; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 14px 13px; border-bottom: 1px solid #efede7; vertical-align: middle; max-width: 320px; overflow-wrap: anywhere; }
.explorer-panel th, .explorer-panel td { min-width: 140px; overflow-wrap: break-word; }
.explorer-panel td:first-child { min-width: 125px; }
th { position: sticky; top: 0; z-index: 1; color: #857b6d; background: #faf8f3; font-size: 10px; font-weight: 550; white-space: nowrap; }
th button { min-height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; font-size: inherit; color: inherit; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fffcf6; }
td > button { min-height: 32px; padding: 6px 10px; border-radius: 8px; font-size: 10px; white-space: nowrap; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 13px; margin-top: 16px; font-size: 10px; color: var(--muted); }
.pagination button { font-size: 10px; min-height: 35px; padding: 7px 11px; }
.source { color: var(--muted); font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
caption.source { padding: 10px 13px; text-align: left; background: #fff; }
.metadata { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 11px; }
summary { cursor: pointer; font-weight: 550; }
details[open] > summary { margin-bottom: 16px; }
.metadata p { margin-bottom: 10px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.7 "Cascadia Code", Consolas, monospace; padding: 18px; border-radius: 11px; background: #f6f4ef; color: #706657; overflow: auto; max-height: 400px; }
.empty { padding: 32px 15px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-state { padding: 30px 24px; text-align: center; }
.archive-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 342px; margin-bottom: 22px; border: 1px solid #fff; border-radius: 24px; background: linear-gradient(135deg,#fff,#fffcf5ed); box-shadow: var(--shadow); }
.archive-empty h3 { margin-top: 10px; }
.archive-empty p { max-width: 325px; margin: 10px auto 17px; font-size: 12px; color: var(--muted); }
.empty-illustration { width: 138px; height: 105px; position: relative; margin: 0 0 23px; }
.empty-sheet { position: absolute; width: 77px; height: 89px; border-radius: 13px; top: 6px; left: 31px; border: 1px solid #ece4d5; background: #faf6ec; }
.sheet-back { transform: rotate(-15deg) translateX(-12px); background: #eee9d9; }
.sheet-front { transform: rotate(8deg); display: flex; flex-direction: column; gap: 9px; padding: 28px 14px; box-shadow: 0 8px 20px #79624610; background: #fffdf8; }
.sheet-front i { height: 4px; border-radius: 3px; background: #e9dfca; }
.sheet-front i:last-child { width: 55%; background: #f4c16e; }
.empty-plus { position: absolute; bottom: 0; right: 5px; border: 4px solid #fff; border-radius: 50%; background: #ffd184; color: #8d641f; width: 36px; height: 36px; font-size: 23px; line-height: 27px; }
.account-settings { margin: 22px 0 0; padding: 19px 23px; background: #ffffff66; border-color: #ffffffba; }
.account-settings > summary { font-size: 12px; }
.summary-note { margin-left: 13px; font-size: 10px; font-weight: 400; color: var(--muted); }
.account-settings .auth-form { max-width: 460px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 27px; color: #807866; font-size: 9px; letter-spacing: .6px; }
.footer-separator { margin: 0 7px; color: #b5aa98; }

/* People, permission dialogs and detail views. */
.people-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 145px auto; margin-top: 0; }
.people-toolbar .search-field { display: flex; align-items: center; max-width: none; width: 100%; min-height: 43px; background: #f8f6f0; border-color: #eae4d9; border-radius: 11px; }
.people-toolbar .search-field input { min-height: 40px; }
.result-count { font-size: 10px; color: var(--muted); border-radius: 20px; background: #f3f0e9; padding: 5px 10px; white-space: nowrap; }
.people-panel .pagination { justify-content: space-between; }
.pagination-actions { display: flex; gap: 7px; }
.pagination-actions button { min-width: 35px; }
.people-table { min-width: 680px; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 145px; }
.person-avatar { width: 32px; height: 32px; font-size: 10px; background: #f0ece2; color: #8c7957; }
.person-copy { display: grid; gap: 3px; }
.person-copy strong { font-size: 11px; font-weight: 600; }
.person-copy small { font-size: 9px; color: var(--muted); }
.person-copy > span { font-size: 10px; color: var(--muted); }
.security-items { display: grid; gap: 6px; font-size: 9px; min-width: 110px; }
.security-item { display: flex; align-items: center; gap: 5px; color: #9e865f; }
.security-item::before { content: ""; width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.security-item.is-verified { color: #6c8160; }
.row-actions { text-align: right; }
.muted, .context-note { color: var(--muted); font-size: 11px; line-height: 1.7; }
.context-note { padding: 0 7px; font-size: 10px; }
.access-guide h2 { margin-top: 11px; font-size: 21px; letter-spacing: -.7px; }
.audit-panel .panel-heading { margin-bottom: 7px; }
.audit-panel > button { width: 100%; margin-top: 15px; font-size: 10px; padding: 10px; min-height: 39px; justify-content: space-between; }
.activity-dot { width: 6px; height: 6px; background: #b1bb9b; border-radius: 50%; }
.empty-symbol { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 15px; background: #f5f1e7; color: #a89a7e; font-size: 17px; }
.empty-state > strong { display: block; font-size: 12px; font-weight: 600; }
.empty-state > p { font-size: 11px; color: var(--muted); margin-top: 7px; }
.badge.state-pending, .state-pending { background: #fff3d9; color: #92631d; }
.badge.state-active, .state-active { background: #edf3e8; color: #52754c; }
.badge.state-suspended, .state-suspended { background: #f7e9e3; color: #a4674c; }
.badge.state-rejected, .state-rejected { background: #f1ebea; color: #90706c; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 5px; }
td .permission-tag { font-size: 9px; margin: 2px 3px 2px 0; }
.context-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.context-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; color: #77654d; }
.context-list li > span:first-child { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #fff6e380; font-size: 10px; flex-shrink: 0; }
.context-list strong { display: block; color: #654f32; font-weight: 600; }
.audit-list { max-height: 400px; overflow: auto; scrollbar-width: thin; font-size: 11px; }
.audit-item { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.audit-dot { width: 7px; height: 7px; flex-shrink: 0; margin-top: 5px; background: #e2ba78; border-radius: 50%; }
.audit-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.audit-copy strong { font-size: 11px; font-weight: 550; }
.audit-time, .audit-copy small { font-size: 10px; color: var(--muted); }
.audit-detail { font-size: 9px; color: var(--muted); }
.audit-list > p { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
dialog { color: var(--ink); width: 620px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); padding: 30px; background: #fffdf8f5; border: 1px solid #fff; border-radius: 24px; box-shadow: 0 24px 90px #403c2e35; overflow: auto; }
dialog::backdrop { background: #514a3b55; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
dialog h2 { font-size: 23px; letter-spacing: -.7px; margin: 8px 44px 9px 0; }
dialog > p { font-size: 12px; color: var(--muted); }
.dialog-close { float: right; min-width: 35px; min-height: 35px; padding: 7px 10px; font-size: 11px; }
.dialog-close.icon-button { width: 33px; height: 33px; font-size: 23px; font-weight: 400; }
.detail-list { margin: 24px 0 0; display: grid; grid-template-columns: 160px minmax(0,1fr); }
.detail-list dt, .detail-list dd { padding: 13px 0; margin: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: 12px; }
.detail-list dt { color: var(--muted); font-size: 11px; padding-right: 20px; }
.detail-list dd { font-weight: 500; white-space: pre-wrap; }
fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin: 22px 0; }
fieldset legend { padding: 0 6px; color: var(--muted); font-size: 11px; }
fieldset label { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.form-label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; margin: 17px 0; }

/* Authentication shares the same glass, warm surfaces and compact scale. */
.login { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-shell { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); width: min(1060px,100%); border: 1px solid #fff; border-radius: 32px; background: #ffffffe0; box-shadow: 0 25px 90px #66583d15; overflow: hidden; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.login-card { padding: 40px clamp(28px,4vw,60px); align-self: center; min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 750; letter-spacing: 3px; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; font-size: 30px; letter-spacing: -2px; color: #66583f; }
.brand-mark i { right: 3px; bottom: 7px; }
.brand-subtitle { display: block; font-size: 7px; letter-spacing: 2.7px; font-weight: 500; color: #948975; margin-top: 3px; }
.login-card .eyebrow { margin: 42px 0 13px; font-size: 8px; }
.login-card h1 { max-width: 330px; font-size: 38px; line-height: 1.16; letter-spacing: -1.5px; }
.lead { max-width: 330px; color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.auth-form { display: grid; gap: 16px; margin-top: 25px; }
.auth-form label { display: grid; gap: 7px; color: #746a5c; font-size: 11px; font-weight: 500; }
.auth-form input { min-height: 45px; background: #f8f6f0; }
.auth-form button.primary { min-height: 45px; margin-top: 3px; }
.auth-form .text-button { margin-top: -9px; justify-content: center; }
.auth-form #new-password-fields { display: grid; gap: 16px; }
.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 13px; }
.auth-links .text-button { color: #746b5b; font-size: 11px; min-height: 30px; }
.auth-links [data-view="register"] { color: #6b5030; font-weight: 600; }
.footnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; font-size: 9px; color: #8a8275; line-height: 1.7; }
.footnote .status-dot { margin-top: 5px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.7; }
.notice { background: #fff2d9; border: 1px solid #efd8ac; color: #896426; border-radius: 11px; padding: 12px 14px; margin-top: 18px; font-size: 11px; overflow-wrap: anywhere; }
.login-aside { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 35px 25px; background: radial-gradient(ellipse at 16% 14%,#fff9edbd,transparent 70%), linear-gradient(145deg,#e4e6da,#e5dccbbb 65%,#d7c8a980); text-align: center; border-left: 1px solid #fff; }
.aside-label { align-self: flex-start; font-size: 8px; color: #817962; letter-spacing: 1.6px; display: flex; align-items: center; gap: 8px; }
.login-art { position: relative; width: 295px; height: 268px; margin: 31px 0 13px; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid #fff8; border-radius: 50%; width: 240px; height: 240px; }
.orbit-two { width: 290px; height: 290px; border-color: #fff5; }
.art-tile { position: absolute; width: 164px; height: 177px; background: #ffffffb8; border: 1px solid #fffffff0; border-radius: 23px; box-shadow: 0 12px 30px #62583e12; backdrop-filter: blur(12px); }
.tile-back { transform: rotate(-17deg) translate(-35px,-8px); background: #e3e8d9c9; padding: 26px; }
.tile-line { display: block; margin-bottom: 10px; background: #bbc6ac66; height: 6px; border-radius: 4px; }
.tile-line.short { width: 50%; }
.tile-front { transform: rotate(10deg) translate(15px,10px); padding: 24px; text-align: left; }
.tile-brand { display: block; position: relative; width: 56px; height: 64px; font-size: 61px; line-height: 1; color: #6b755a; font-weight: 750; letter-spacing: -4px; }
.tile-brand span { position: absolute; width: 10px; height: 10px; background: #ffc46b; right: 0; bottom: 9px; border-radius: 3px; }
.tile-caption { display: block; font-size: 7px; letter-spacing: 2px; color: #8a846e; margin: 12px 0; font-weight: 600; }
.tile-modules { display: flex; gap: 7px; }
.tile-modules i { width: 28px; height: 15px; border-radius: 5px; background: #f5e1b9; }
.tile-modules i:nth-child(2) { background: #e3e8d7; }
.tile-modules i:nth-child(3) { background: #e2e7eb; }
.art-floating-chip { position: absolute; width: 51px; height: 51px; bottom: 38px; right: 14px; display: grid; place-items: center; background: #ffcb79; color: #846025; border: 4px solid #f8f4e7; border-radius: 17px; transform: rotate(-9deg); box-shadow: 0 7px 20px #8d6b2a13; }
.aside-copy { margin-top: 8px; }
.aside-copy .mini-label { font-size: 7px; letter-spacing: 1.5px; color: #92846b; }
.login-aside h2 { margin-top: 13px; font-size: 28px; letter-spacing: -1px; line-height: 1.25; font-weight: 550; color: #5f5c4c; }
.login-aside p { margin-top: 17px; color: #8a806d; font-size: 11px; }
.login-steps { display: flex; justify-content: space-between; width: 100%; gap: 15px; margin-top: auto; padding-top: 33px; }
.login-steps div { display: grid; justify-items: center; gap: 8px; color: #867b68; font-size: 9px; }
.login-steps b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; background: #fff7; color: #ad9270; font-size: 9px; font-weight: 500; }
.security-label { margin-top: 31px; font-size: 7px; letter-spacing: 2px; color: #9b8e77; }
.setup-instructions { padding-left: 20px; font-size: 11px; line-height: 1.8; color: var(--muted); }
#totp-qr { display: block; width: 230px; max-width: 100%; height: auto; margin: 14px auto; border-radius: 12px; }
#enrollment details { font-size: 11px; color: var(--muted); }
#totp-secret { display: block; margin: 12px 0; padding: 13px; border-radius: 10px; background: #f2efe6; overflow-wrap: anywhere; user-select: all; }
#totp-form [name="code"] { text-align: center; font-size: 25px; letter-spacing: 9px; font-variant-numeric: tabular-nums; }
.login-card:has(#totp-form:not([hidden])) .eyebrow { margin-top: 28px; }
.login-card:has(#totp-form:not([hidden])) h1 { font-size: 29px; }

@media (min-width: 1650px) {
  .app-page { padding: 36px; gap: 26px; }
  .app-rail { top: 36px; height: calc(100dvh - 72px); }
  .app-shell { min-height: calc(100dvh - 72px); }
  .top { padding: 27px 34px; }
  .workspace { padding: 30px 34px 23px; }
  .dashboard-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 26px; }
  .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric-card { min-height: 160px; }
}
@media (max-width: 1199px) {
  .app-page { padding: 20px; grid-template-columns: 62px minmax(0,1fr); gap: 16px; }
  .app-rail { top: 20px; height: calc(100dvh - 40px); }
  .app-shell { min-height: calc(100dvh - 40px); }
  .top { padding: 22px; }
  .workspace { padding: 23px 22px 18px; }
  .metric-card { padding: 16px; min-height: 142px; }
  .metric-label { font-size: 10px; }
  .metric-icon { width: 23px; height: 23px; }
  .metric-grid { gap: 10px; }
  .dashboard-layout { grid-template-columns: minmax(0,1fr); }
  .context-column { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
  .context-card { padding: 20px; height: 100%; }
  .workspace-emblem { width: 43px; height: 43px; font-size: 27px; margin: 15px 0 11px; border-radius: 13px; }
  .workspace-emblem span { right: 6px; bottom: 9px; }
  .context-divider { margin: 14px 0; }
  .session-card { grid-column: auto; }
  .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .area-card { padding: 14px; gap: 9px; grid-template-columns: 32px minmax(0,1fr) 15px; }
  .module-icon { width: 32px; height: 32px; }
  .module-copy > span { font-size: 12px; }
  .explorer-tools { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .explorer-tools label:first-child { grid-column: span 2; }
  .people-table { min-width: 650px; }
}
@media (max-width: 850px) {
  .top-heading p { font-size: 16px; }
  .account-copy { display: none; }
  .date-label { display: none; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { min-height: 135px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .context-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .session-card { grid-column: 1/-1; }
  .section-heading { align-items: flex-start; }
  .search-field { max-width: 190px; }
  .explorer-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .explorer-tools label:first-child { grid-column: 1/-1; }
  .login { padding: 24px; }
  .login-shell { max-width: 520px; grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-card { padding: 36px 44px; }
  .login-card h1 { max-width: 360px; }
}
@media (max-width: 600px) {
  .vehicle-launch { grid-template-columns: 36px minmax(0,1fr); }
  .vehicle-launch .button { grid-column: 1/-1; }
  body { font-size: 12px; }
  .app-page { display: block; padding: 12px 12px 89px; }
  .app-rail { position: fixed; top: auto; bottom: 12px; left: 50%; transform: translateX(-50%); height: 60px; min-height: 0; width: min(330px,calc(100vw - 32px)); padding: 6px 13px; border-radius: 23px; flex-direction: row; justify-content: space-between; background: #fffdf2e8; box-shadow: 0 5px 30px #78644920; backdrop-filter: blur(24px); }
  .rail-brand { font-size: 22px; padding: 7px; }
  .rail-brand span { width: 4px; height: 4px; right: 3px; }
  .rail-links { flex-direction: row; gap: 7px; margin: 0; }
  .rail-link { width: 42px; height: 42px; border-radius: 14px; }
  .rail-link svg { width: 20px; height: 20px; }
  .rail-footer { margin: 0; }
  .rail-caption { display: none; }
  .app-shell { min-height: calc(100dvh - 112px); border-radius: 24px; }
  .top { min-height: 79px; padding: 18px 18px 16px; gap: 10px; }
  .top-heading .mini-label { font-size: 7px; letter-spacing: 1.3px; }
  .top-heading p { font-size: 14px; max-width: 205px; line-height: 1.4; }
  .profile-avatar { display: none; }
  .account { gap: 0; }
  .account .icon-button { min-width: 35px; width: 35px; height: 35px; min-height: 35px; }
  .workspace { padding: 22px 16px 18px; }
  .page-heading, .intro { margin-bottom: 20px; }
  h1 { font-size: 25px; letter-spacing: -.85px; }
  .page-heading p { font-size: 11px; max-width: 270px; }
  .eyebrow.compact { font-size: 8px; }
  .metric-grid { gap: 9px; margin-bottom: 25px; }
  .metric-card { border-radius: 16px; padding: 13px 12px; min-height: 128px; }
  .metric-label { font-size: 9px; }
  .metric-icon { width: 22px; height: 22px; }
  .metric-icon svg { width: 13px; height: 13px; }
  .metric-value { font-size: 30px; margin-top: 13px; }
  .metric-value.word-value { font-size: 23px; margin-top: 18px; }
  .metric-note { font-size: 9px; }
  .section-heading { flex-direction: column; gap: 13px; margin-bottom: 12px; }
  .section-heading h2 { font-size: 18px; }
  .search-field { max-width: none; width: 100%; background: #ffffff75; }
  .search-field input { min-height: 41px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .area-card { min-height: 77px; grid-template-columns: 36px minmax(0,1fr) 20px; padding: 15px; border-radius: 17px; gap: 12px; }
  .module-copy > span { font-size: 13px; }
  .context-column { grid-template-columns: 1fr; gap: 12px; }
  .context-card { padding: 21px; border-radius: 19px; }
  .workspace-card { display: grid; grid-template-columns: 49px minmax(0,1fr); align-items: center; column-gap: 14px; }
  .workspace-card > .mini-label:first-child, .workspace-card .context-divider, .workspace-card > .mini-label, .workspace-card .permission-list, .workspace-card .button { grid-column: 1/-1; }
  .workspace-card .workspace-emblem { grid-row: span 2; margin: 15px 0 4px; }
  .workspace-card h2 { margin-top: 14px; }
  .workspace-card > p { font-size: 10px; margin-top: 3px; }
  .workspace-card > p br { display: none; }
  .session-card { grid-column: auto; }
  .panel { padding: 17px; border-radius: 18px; }
  .panel-heading { gap: 10px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading .badge { font-size: 8px; }
  .tools { gap: 10px; }
  .explorer-tools { grid-template-columns: minmax(0,1fr); }
  .tools input, .tools select { font-size: 16px; min-height: 44px; }
  .tools label { font-size: 10px; }
  .explorer-tools label:first-child { grid-column: auto; }
  .people-toolbar { grid-template-columns: minmax(0,1fr) auto; }
  .people-toolbar label:first-child { grid-column: 1/-1; }
  .table-wrap { max-height: 440px; }
  th, td { padding: 12px; }
  .pagination { justify-content: space-between; gap: 5px; font-size: 9px; }
  .pagination button { min-height: 38px; padding: 6px 8px; font-size: 9px; }
  .archive-empty { padding: 30px 18px; min-height: 330px; }
  .archive-empty h3 { font-size: 17px; }
  .archive-empty p { font-size: 11px; }
  .account-settings { margin-top: 20px; padding: 18px; }
  .summary-note { display: none; }
  .workspace-footer { align-items: flex-start; flex-direction: column; gap: 5px; font-size: 8px; margin-top: 23px; }
  .login { min-height: 100dvh; padding: 16px; align-items: flex-start; }
  .login-shell { margin: 14px 0; border-radius: 24px; }
  .login-card { padding: 29px 25px; }
  .login-card .eyebrow { margin-top: 35px; }
  .login-card h1 { font-size: 33px; }
  .login-card .lead { font-size: 12px; }
  .auth-form input { font-size: 16px; min-height: 47px; }
  .auth-form label { font-size: 11px; }
  .auth-form button.primary { min-height: 47px; }
  .auth-form { gap: 15px; }
  dialog { padding: 24px 20px; border-radius: 20px; }
  dialog h2 { font-size: 22px; }
  fieldset { grid-template-columns: 1fr; padding: 15px; }
  .detail-list { grid-template-columns: 108px minmax(0,1fr); }
  .detail-list dt, .detail-list dd { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-contrast: more) { :root { --muted: #514b40; --line: #b2a694; } .app-shell, .app-rail, .context-card { background: #faf8f0; } input, select, button, .button, .panel, .metric-card, .area-card { border-color: #a99c86; } }
@media print { body::before, .app-rail, .account, .context-column, .tools, .pagination, .account-settings, .workspace-footer { display: none !important; } .app-page { display: block; padding: 0; background: #fff; } .app-shell, .panel { border: 0; box-shadow: none; background: #fff; } .dashboard-layout { display: block; } .table-wrap { max-height: none; overflow: visible; } }
