/* 934 Keyring — Aurora Light. Tokens and patterns from design/handoff-2026-10-04/README.md. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --orange: #FF6A00; --orange-ink: #C2560A; --orange-bg: #FFF2E8;
    --ink: #18171C; --black: #0C0B0A;
    --page: #FBFBFD; --surface: rgba(255, 255, 255, 0.88); --border: #EAEAF0; --hairline: #F1F1F6;
    --sub: #6B6A72; --label: #8A8993; --faint: #B0AFA9; --stone: #F0EFEC; --strong-border: #A9A8B4; --disabled: #E2E2E6;
    --success: #2D7A4F; --success-bg: #E6F5EC; --warning: #B07300; --warning-bg: #FEF3E0;
    --error: #C03B3B; --error-bg: #FDECEC; --info: #2256A6; --info-bg: #EBF1FB; --neutral: #6B6B67;
    --cat-purple: #7A5AF8; --cat-teal: #12B5A6;
    --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
    --card-shadow: 0 1px 2px rgba(24, 23, 28, .05), 0 10px 30px -14px rgba(24, 23, 28, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: 13px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background:
    radial-gradient(760px 520px at 8% 2%, rgba(255, 106, 0, 0.13), transparent 62%),
    radial-gradient(700px 560px at 96% 12%, rgba(122, 90, 248, 0.10), transparent 60%),
    radial-gradient(900px 620px at 62% 100%, rgba(18, 181, 166, 0.11), transparent 58%),
    radial-gradient(620px 480px at 22% 88%, rgba(46, 144, 250, 0.09), transparent 62%); }
.app { position: relative; z-index: 1; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* After navigation the page heading is focused so screen readers announce it; it is not a control, so it shows no ring. */
h1:focus, h1:focus-visible { outline: none; }
.mono { font-family: var(--mono); }
.break { word-break: break-all; }
.t-sub { color: var(--sub); } .t-error { color: var(--error); } .t-warning { color: var(--warning); } .t-success { color: var(--success); }
.caption { font-size: 11px; color: var(--sub); }

/* ---------- Shell ---------- */
.header { position: sticky; top: 0; z-index: 5; height: 62px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 3px rgba(24, 23, 28, .06); border-bottom: 3px solid; border-image: linear-gradient(90deg, #FF6A00, #FF3D77 42%, #7A5AF8 72%, #12B5A6) 1; }
.header-left, .header-right { display: flex; align-items: center; gap: 14px; }
.header-left img { width: 30px; height: 30px; display: block; }
.header-divider { width: 1px; height: 22px; background: var(--border); }
.header-product { font-size: 11px; font-weight: 600; letter-spacing: 1.9px; text-transform: uppercase; color: var(--sub); }
.person-chip { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 9px; }
.person-role { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--orange-ink); }
.person-name { font-size: 12px; font-weight: 500; white-space: nowrap; }
.text-button { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 12px; color: var(--sub); cursor: pointer; }
.text-button:hover { color: var(--ink); }

.body { padding: 26px; display: flex; gap: 28px; flex-wrap: nowrap; }
.rail { flex: 0 0 208px; position: sticky; top: 91px; align-self: flex-start; }
.rail-group { margin-bottom: 22px; }
.rail-label { display: flex; align-items: center; gap: 8px; margin: 0 10px 8px; font-size: 9.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--label); }
.rail-dot { width: 5px; height: 5px; border-radius: 50%; }
.rail-item { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 9px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 500; text-decoration: none; color: var(--ink); }
.rail-item:hover { background: rgba(255, 255, 255, 0.7); }
.rail-item.active { background: var(--orange-bg); color: var(--orange-ink); font-weight: 600; }
.main { flex: 1 1 0; min-width: 0; animation: rise 400ms cubic-bezier(0, 0, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .main { animation: none; } .progress-fill { transition: none !important; } }

.last-recorded { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 11.5px; color: var(--sub); }
.last-recorded .lead { font-size: 9.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--label); }

/* The release number, bottom right on every page. */
.release-badge { position: fixed; right: 14px; bottom: 10px; z-index: 4; font-family: var(--mono); font-size: 10.5px; color: var(--label); }

/* ---------- Page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.category { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--orange-ink); }
.category::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 6px; background: var(--orange); }
.page-title { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.page-sub { margin-top: 4px; font-size: 11px; color: var(--sub); }
.page-actions { flex: 0 1 300px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.page-actions .buttons { display: flex; gap: 8px; }
.back-link { display: block; margin-bottom: 14px; font-size: 12.5px; color: var(--sub); text-decoration: none; }
.back-link:hover { color: var(--ink); }

/* ---------- Building blocks ---------- */
.card { background: var(--surface); border-radius: 12px; box-shadow: var(--card-shadow); }
.card-pad { padding: 26px; }
.section { padding: 20px 22px; border-top: 1px solid var(--hairline); }
.section:first-child { border-top: 0; }
.section-title { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.field-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--label); }
.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 18px 0; }
.stone { background: var(--stone); border-radius: 10px; padding: 14px 16px; line-height: 1.55; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--black); color: #fff; }
/* On the near-white page a transparent button with a hairline border reads as plain text, so the secondary button
   gets a white fill and the stronger neutral border. */
.btn-secondary { background: #fff; border-color: var(--strong-border); color: var(--ink); }
.btn-secondary:hover { background: var(--page); border-color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--disabled); color: var(--label); border-color: transparent; cursor: not-allowed; }
.btn-block { width: 100%; }

.pill { display: inline-block; padding: 3px 8px; border-radius: 100px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.pill.success { background: var(--success-bg); color: var(--success); }
.pill.warning { background: var(--warning-bg); color: var(--warning); }
.pill.error { background: var(--error-bg); color: var(--error); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.neutral { background: var(--stone); color: var(--neutral); }
.chip { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--stone); font-size: 11px; font-weight: 600; }

.input, .select, .textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.textarea { width: 100%; min-height: 0; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--orange); outline-offset: 2px; }

.notice { max-width: 640px; padding: 32px; border-top: 2px solid var(--neutral); }
.notice.warning { border-top-color: var(--warning); }
.notice.error { border-top-color: var(--error); }
.notice h2 { margin: 14px 0 8px; font-size: 20px; font-weight: 600; }
.notice .notice-body { max-width: 56ch; color: var(--sub); }
.notice .btn { margin-top: 20px; }

/* ---------- Tables (CSS grid inside a card) ---------- */
.table-wrap { overflow-x: auto; }
.table { min-width: 920px; }
.table-head, .table-row { display: grid; align-items: center; gap: 0 14px; padding: 0 20px; }
.table-head { min-height: 40px; background: var(--page); border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--label); }
.table-row { min-height: 56px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; }
.table-row:last-child { border-bottom: 0; }
.table-row.clickable { cursor: pointer; }
.table-row.clickable:hover { background: var(--page); }
.table-row.fresh { background: var(--info-bg); }
.table-row > div { min-width: 0; overflow-wrap: anywhere; }
.name-button { display: block; padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; }
.under { display: block; font-size: 11px; color: var(--sub); }
.table-empty { padding: 32px 20px; text-align: center; color: var(--sub); }
.table-empty .btn { margin-top: 12px; }

.cols-inventory { grid-template-columns: minmax(0, 2.4fr) 100px minmax(0, 1.4fr) minmax(0, 1.2fr) 92px 118px 136px; }
.cols-expiry { grid-template-columns: 120px 72px minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1.8fr) 136px; }
.cols-trail { grid-template-columns: 150px 150px minmax(0, 1.1fr) minmax(0, 2fr) 110px; }
.cols-history { grid-template-columns: 150px 130px 120px 1fr; }
.cols-sql-servers { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr) 120px 80px 100px 80px; }
.sql-login { display: grid; grid-template-columns: minmax(0, 2.6fr) 60px 130px auto; align-items: center; gap: 0 14px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.sql-login:last-child { border-bottom: 0; }
.sql-login-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sql-login-actions .btn { min-height: 36px; padding: 7px 14px; }
.cols-people { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.4fr) 150px; }
.cols-requests { grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 2fr) 110px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .input { flex: 1 1 240px; }
.filters + .caption { margin: 8px 0 16px; }

/* ---------- Detail ---------- */
.id-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--sub); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 20px; }
.fact-value { margin-top: 4px; }
.kv-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 6px 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.headline { font-size: 14px; font-weight: 600; }
.list-row { padding: 9px 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 12px; }
.list-row:last-child { border-bottom: 0; }

/* ---------- Flows ---------- */
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; max-width: 720px; margin-bottom: 18px; }
.step { padding-top: 8px; border-top: 2px solid var(--border); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--label); }
.step.done { border-top-color: var(--ink); color: var(--ink); }
.step.current { border-top-color: var(--orange); color: var(--orange-ink); }
.flow-card { max-width: 720px; }
.flow-label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.flow-help { margin-bottom: 12px; color: var(--sub); }
.validator { margin-top: 8px; font-size: 11px; color: var(--sub); }
.flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.flow-foot .buttons { display: flex; gap: 8px; }
.challenge { margin: 18px 0 6px; font-family: var(--mono); font-size: 36px; letter-spacing: 4px; }
.value-box { margin: 14px 0; padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--page); font-family: var(--mono); font-size: 15px; word-break: break-all; }
.value-box.shown { border-color: var(--ink); background: #fff; }
.progress { height: 6px; margin-top: 8px; border-radius: 100px; background: var(--hairline); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; background: var(--ink); transition: width 1s linear; }

/* ---------- Expiry board ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 20px 22px; }
.kpi-figure { margin: 6px 0 2px; font-size: 28px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; line-height: 1.2; }

/* ---------- Sign in ---------- */
.signin { max-width: 520px; margin: 0 auto; padding: 72px 26px; }
.lockup { margin-bottom: 26px; }
.lockup img { width: 44px; height: 44px; display: block; margin-bottom: 14px; }
.lockup-name { font-size: 22px; font-weight: 600; }
.lockup-name span { color: var(--orange); }
.lockup::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--orange); }
.signin h1 { margin-bottom: 10px; font-size: 17px; font-weight: 600; }
.signin p { margin-bottom: 12px; color: var(--sub); }
.signin p.strong { color: var(--ink); font-weight: 500; }
.inline-notice { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: var(--stone); }
.inline-notice.warning { background: var(--warning-bg); color: var(--warning); }
.inline-notice.error { background: var(--error-bg); color: var(--error); }
.local-sign-in { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.local-sign-in form { margin-top: 8px; }

/* ---------- Option cards (export format) ---------- */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.option { display: flex; flex-direction: column; justify-content: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.option.selected { background: var(--orange-bg); border-color: var(--orange); }
.option-title { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.option-body { display: block; font-size: 12px; color: var(--sub); line-height: 1.5; }

/* ---------- Forms (import) ---------- */
.tabs { display: flex; gap: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; height: 44px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; font-weight: 500; color: var(--sub); text-decoration: none; }
.tab.active { border-bottom-color: var(--orange); color: var(--ink); font-weight: 600; }
.dropzone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border: 1px dashed var(--strong-border); border-radius: 9px; background: var(--page); cursor: pointer; }
.dropzone.invalid, .input.invalid, .select.invalid, .textarea.invalid { border-color: var(--error); }
.dropzone-text { color: var(--sub); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-error { margin-top: 4px; font-size: 11px; color: var(--error); }
