/* =====================================================================
   AccessHub — feuille de style
   ===================================================================== */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e3e8ef;
  --border-strong: #cdd5df;
  --text: #0f1b2d;
  --text-2: #475467;
  --text-3: #8592a6;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #eaf0ff;
  --success: #0e7a4f;
  --success-soft: #e5f6ee;
  --warning: #a35f00;
  --warning-soft: #fff4dc;
  --danger: #c02a2a;
  --danger-soft: #fdecec;
  --info: #0b6aa8;
  --info-soft: #e4f3fc;
  --muted-soft: #eef1f5;
  --sidebar: #0b1424;
  --sidebar-2: #131f35;
  --sidebar-text: #a9b6cc;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .04);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
code, .mono { font-family: var(--mono); font-size: .86em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; flex-shrink: 0; }
.icon-lg { width: 22px; height: 22px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------- Shell --------------------------------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--sidebar) 256px, var(--bg) 256px); }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .7rem; padding: 1.25rem 1.25rem 1rem; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.brand-mark .icon { width: 20px; height: 20px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-org { font-size: .74rem; color: var(--sidebar-text); display: block; font-weight: 400; }
.nav { padding: .5rem .75rem 1rem; flex: 1; }
.nav-section { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #64748b; padding: 1.1rem .6rem .45rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .52rem .65rem; border-radius: 7px; color: var(--sidebar-text); font-weight: 500; transition: background .12s, color .12s; }
.nav a:hover { background: var(--sidebar-2); color: #fff; }
.nav a.is-active { background: #1b2a47; color: #fff; box-shadow: inset 3px 0 0 #3b82f6; }
.nav a .count { margin-left: auto; background: #2563eb; color: #fff; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; min-width: 1.4rem; text-align: center; }
.nav a .count.warn { background: #d97706; }
.sidebar-foot { padding: .9rem 1.25rem; border-top: 1px solid #1a2741; font-size: .72rem; color: #5b6b84; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 1rem; padding: 0 2rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar .crumb { color: var(--text-3); font-size: .85rem; }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--text-2); cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
.user-chip .who { line-height: 1.2; text-align: right; }
.user-chip .who strong { display: block; font-size: .85rem; }
.user-chip .who span { font-size: .74rem; color: var(--text-3); }
.content { padding: 1.75rem 2rem 3rem; max-width: 1320px; width: 100%; }

/* ------------------------------ Page header ------------------------------ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.5rem; font-weight: 700; }
.page-head .sub { color: var(--text-2); margin-top: .3rem; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); font-size: .85rem; margin-bottom: .6rem; }

/* --------------------------------- Cards --------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 1.25rem; }
.grid > .card + .card, .res-grid > * + * { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 1rem; font-weight: 650; display: flex; align-items: center; gap: .5rem; }
.card-head .hint { color: var(--text-3); font-size: .82rem; font-weight: 400; }
.card-body { padding: 1.25rem; }
.card-foot { padding: .85rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.stack > * + * { margin-top: 1.25rem; }

/* --------------------------------- Stats --------------------------------- */
.stat { padding: 1.1rem 1.25rem; display: flex; gap: 1rem; align-items: center; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.stat-icon.success { background: var(--success-soft); color: var(--success); }
.stat-icon.warning { background: var(--warning-soft); color: var(--warning); }
.stat-icon.info { background: var(--info-soft); color: var(--info); }
.stat-icon.danger { background: var(--danger-soft); color: var(--danger); }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--text-2); font-size: .83rem; }
a.card.stat { color: inherit; transition: border-color .12s, box-shadow .12s; }
a.card.stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

/* --------------------------------- Tables -------------------------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: .7rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .8rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .check { width: 36px; padding-right: 0; }
.cell-title { font-weight: 600; color: var(--text); display: block; }
.cell-sub { color: var(--text-3); font-size: .8rem; display: block; }
.who-cell { display: flex; align-items: center; gap: .65rem; }

/* --------------------------------- Badges -------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 999px; font-size: .73rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: var(--muted-soft); color: var(--text-2); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge.plain::before { display: none; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 500; background: var(--muted-soft); color: var(--text-2); }
.type-chip { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; }
.type-chip.sm { width: 30px; height: 30px; border-radius: 7px; }
.type-chip.sm .icon { width: 16px; height: 16px; }
.t-url { background: #e8f0ff; color: #2456d6; }
.t-smb { background: #fff3dd; color: #b26a00; }
.t-rdp { background: #e9f7f1; color: #12795a; }
.t-software { background: #f2ecff; color: #6941c6; }
.t-vpn { background: #e6f5fb; color: #08739f; }
.t-database { background: #fdeeee; color: #b42318; }
.t-mailbox { background: #fdf0f8; color: #b3287a; }
.t-other { background: var(--muted-soft); color: var(--text-2); }

/* -------------------------------- Buttons -------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem; border-radius: var(--radius-sm); font: inherit; font-weight: 600; font-size: .86rem; line-height: 1.2; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--text); border-color: #b9c3d1; }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 1px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .25); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #0a6440; border-color: #0a6440; color: #fff; }
.btn-danger { background: var(--surface); border-color: #f1b8b8; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #e99c9c; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #a32020; color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--muted-soft); border-color: transparent; }
.btn-sm { padding: .36rem .7rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.3rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.inline-form { display: inline; }

/* --------------------------------- Forms --------------------------------- */
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; color: var(--text); }
.label .opt { color: var(--text-3); font-weight: 400; }
.help { color: var(--text-3); font-size: .79rem; margin-top: .35rem; }
.input, .select, .textarea { width: 100%; padding: .58rem .75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.textarea.mono { font-family: var(--mono); font-size: .84rem; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: #6b93f0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.2rem; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 2.35rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-section { padding: 1.25rem; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { font-size: .92rem; margin-bottom: .2rem; }
.form-section > .help:first-of-type { margin: 0 0 1rem; }

.check-line { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; padding: .2rem 0; }
.check-line input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--primary); }
.check-line strong { display: block; font-size: .87rem; }
.check-line span { color: var(--text-3); font-size: .8rem; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; }
.segmented label { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .8rem 1rem; cursor: pointer; display: flex; gap: .7rem; align-items: flex-start; transition: border-color .12s, background .12s, box-shadow .12s; }
.segmented label:hover { border-color: #9fb3d8; }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.segmented label.is-disabled { opacity: .5; pointer-events: none; }
.segmented .seg-title { font-weight: 600; display: block; }
.segmented .seg-sub { color: var(--text-3); font-size: .78rem; display: block; }
.decision-approve:has(input:checked) { border-color: var(--success) !important; background: var(--success-soft) !important; box-shadow: 0 0 0 1px var(--success) !important; color: var(--success); }
.decision-reject:has(input:checked) { border-color: var(--danger) !important; background: var(--danger-soft) !important; box-shadow: 0 0 0 1px var(--danger) !important; color: var(--danger); }
[data-show-when] { display: none; }
[data-show-when].is-visible { display: revert; }

/* ------------------------------ Toolbar / filters ------------------------------ */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.toolbar .input-icon { flex: 1; min-width: 240px; }
.toolbar .select { width: auto; min-width: 180px; }
.pills { display: flex; gap: .35rem; flex-wrap: wrap; }
.pill { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 500; font-size: .82rem; }
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* -------------------------------- Catalog -------------------------------- */
.catalog-group { margin-bottom: 2rem; }
.catalog-group-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .8rem; }
.catalog-group-head h2 { font-size: 1rem; }
.catalog-group-head span { color: var(--text-3); font-size: .82rem; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.res-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.res-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.res-card-top { display: flex; gap: .8rem; align-items: flex-start; }
.res-card h3 { font-size: .95rem; font-weight: 650; }
.res-card .res-type { color: var(--text-3); font-size: .78rem; }
.res-card .res-desc { color: var(--text-2); font-size: .84rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.res-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px dashed var(--border); }

/* ------------------------------ Access cards ------------------------------ */
.access-list { display: grid; gap: .85rem; }
.access-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.access-item h3 { font-size: .95rem; }
.access-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--text-3); font-size: .8rem; margin-top: .25rem; align-items: center; }
.access-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.access-target { display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .3rem .35rem .3rem .6rem; font-family: var(--mono); font-size: .8rem; color: var(--text); max-width: 100%; }
.access-target span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: .15rem .25rem; border-radius: 4px; display: inline-flex; }
.copy-btn:hover { background: var(--muted-soft); color: var(--text); }
.copy-btn.copied { color: var(--success); }
.access-instructions { grid-column: 1 / -1; background: var(--surface-2); border-radius: var(--radius-sm); padding: .75rem .9rem; font-size: .84rem; color: var(--text-2); white-space: pre-line; }
.access-instructions summary { cursor: pointer; font-weight: 600; color: var(--text); }
.expiry { font-weight: 600; }
.expiry.soon { color: var(--warning); }
.expiry.urgent { color: var(--danger); }

/* -------------------------------- Details -------------------------------- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: .65rem 1rem; margin: 0; }
.dl dt { color: var(--text-3); font-size: .83rem; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.quote { background: var(--surface-2); border-left: 3px solid var(--border-strong); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .8rem 1rem; color: var(--text); white-space: pre-line; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.4rem; font-size: .84rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: .45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 1rem; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--text-3); font-size: .76rem; display: block; }

/* --------------------------------- Alerts -------------------------------- */
.flashes { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: .87rem; }
.alert .icon { margin-top: .05rem; }
.alert-success { background: var(--success-soft); border-color: #b6e3cc; color: #0b5e3d; }
.alert-danger { background: var(--danger-soft); border-color: #f4c2c2; color: #9b1c1c; }
.alert-warning { background: var(--warning-soft); border-color: #f3d79a; color: #7a4700; }
.alert-info { background: var(--info-soft); border-color: #b9dcf2; color: #0a527f; }
.alert .close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0; }
.alert .close:hover { opacity: 1; }

/* ------------------------------- Empty state ------------------------------ */
.empty { text-align: center; padding: 2.75rem 1.5rem; color: var(--text-2); }
.empty .empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--muted-soft); color: var(--text-3); display: grid; place-items: center; margin: 0 auto .9rem; }
.empty .empty-icon .icon { width: 24px; height: 24px; }
.empty h3 { font-size: 1rem; color: var(--text); margin-bottom: .3rem; }
.empty p { max-width: 420px; margin: 0 auto 1rem; font-size: .87rem; }

/* ------------------------------- Progress ------------------------------- */
.progress { height: 8px; border-radius: 999px; background: var(--muted-soft); overflow: hidden; display: flex; }
.progress span { display: block; height: 100%; }
.p-success { background: #16a36a; }
.p-warning { background: #f0a630; }
.p-danger { background: #e05353; }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); margin-top: .6rem; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .35rem; vertical-align: middle; }

/* ------------------------------ Pagination ------------------------------ */
.pagination { display: flex; gap: .35rem; justify-content: center; padding: 1rem; }
.pagination a, .pagination span { padding: .35rem .7rem; border-radius: 6px; border: 1px solid var(--border); font-size: .82rem; color: var(--text-2); }
.pagination .is-active { background: var(--text); color: #fff; border-color: var(--text); }

/* ------------------------------ Auth (public) ------------------------------ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside { background: radial-gradient(120% 90% at 0% 0%, #1d3a7a 0%, #0b1424 55%), #0b1424; color: #c9d5ea; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(147, 180, 255, .14); box-shadow: 0 0 0 60px rgba(147, 180, 255, .04), 0 0 0 130px rgba(147, 180, 255, .03); }
.auth-aside .brand { padding: 0; }
.auth-pitch h2 { font-size: 2rem; color: #fff; line-height: 1.2; max-width: 460px; letter-spacing: -.02em; }
.auth-pitch p { margin-top: 1rem; max-width: 440px; color: #9fb0cc; font-size: .95rem; }
.auth-features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .85rem; max-width: 440px; }
.auth-features li { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; }
.auth-features .icon { color: #7ea6ff; margin-top: .1rem; }
.auth-aside small { color: #5f7090; position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 1.55rem; margin-bottom: .4rem; }
.auth-box .sub { color: var(--text-2); margin-bottom: 1.75rem; }
.auth-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 1.25rem; }
.auth-icon .icon { width: 26px; height: 26px; }
.auth-note { margin-top: 1.5rem; font-size: .8rem; color: var(--text-3); display: flex; gap: .5rem; }

.public-wrap { min-height: 100vh; background: var(--bg); }
.public-top { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 2rem; }
.public-top .brand { color: var(--text); padding: 0; }
.public-top .brand-org { color: var(--text-3); }
.public-content { max-width: 920px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

/* --------------------------------- Utils -------------------------------- */
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; gap: .5rem; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--text-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 1.25rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
details.inline-confirm summary { list-style: none; cursor: pointer; }
details.inline-confirm summary::-webkit-details-marker { display: none; }
details.inline-confirm[open] .confirm-pop { display: flex; }
.confirm-pop { display: none; gap: .4rem; align-items: center; margin-top: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.confirm-pop .input { width: 220px; padding: .35rem .6rem; font-size: .8rem; }
.kbd-list { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--text-2); font-size: .82rem; }
.kbd-list code { background: var(--muted-soft); padding: .05rem .35rem; border-radius: 4px; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 600; margin-bottom: .75rem; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(11, 20, 36, .45); }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 1rem; }
  .content { padding: 1.25rem 1rem 2.5rem; }
  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .user-chip .who { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .dl { grid-template-columns: 1fr; gap: .15rem; }
  .dl dd { margin-bottom: .6rem; }
  .access-item { grid-template-columns: auto 1fr; }
  .access-item > .access-actions { grid-column: 1 / -1; }
  .segmented { grid-auto-flow: row; }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
