:root {
    --ink: #0c1d2c;
    --ink-soft: #365064;
    --paper: #f4f2ea;
    --paper-deep: #e9e7dd;
    --white: #fffdf8;
    --line: #dfe1d8;
    --lime: #c8f169;
    --lime-deep: #98bd3f;
    --coral: #ff7d68;
    --teal: #86d4c2;
    --yellow: #f4c95d;
    --muted: #788795;
    --shadow: 0 18px 50px rgba(12, 29, 44, .08);
    --radius: 20px;
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(134, 212, 194, .7); outline-offset: 2px; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .98; }
h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1; }
h3 { font-size: 1.45rem; }
code, pre, .eyebrow, .nav-label, .metric-label, .tiny-tag { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.eyebrow { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .16em; }
.accent-eyebrow { color: var(--coral); }
.muted { color: var(--muted); line-height: 1.55; }
.small-copy { font-size: .88rem; }

[hidden] { display: none !important; }
.full-width { width: 100%; }
.primary-button, .soft-button, .text-button, .logout-button, .demo-users button, .endpoint-card button, .subnav-item {
    border: 0; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 700; box-shadow: 0 10px 22px rgba(12, 29, 44, .14); }
.primary-button:hover { transform: translateY(-2px); background: #17364d; box-shadow: 0 14px 26px rgba(12, 29, 44, .18); }
.button-arrow { color: var(--lime); font-size: 1.3rem; line-height: 1; }
.soft-button { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 253, 248, .7); color: var(--ink); font-size: .82rem; font-weight: 700; }
.soft-button:hover { background: var(--white); border-color: #c8cdc2; transform: translateY(-1px); }
.text-button { padding: 0; background: transparent; color: var(--coral); font-size: .78rem; font-weight: 700; }
.text-button:hover { color: var(--ink); }
.icon-button { border: 0; background: transparent; color: inherit; }

/* Login */
.login-view { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); min-height: 100vh; background: var(--paper); }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(2rem, 6vw, 5.5rem); background: var(--ink); color: var(--white); }
.login-story::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .13; background-image: radial-gradient(rgba(255,255,255,.6) .7px, transparent .7px); background-size: 11px 11px; mask-image: linear-gradient(135deg, black, transparent 70%); }
.login-story::after { position: absolute; right: -20%; bottom: -32%; width: 80%; height: 70%; content: ""; border-radius: 50%; border: 1px solid rgba(200, 241, 105, .22); box-shadow: 0 0 0 48px rgba(200, 241, 105, .04), 0 0 0 96px rgba(200, 241, 105, .03); }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: var(--lime); color: var(--ink); font-size: 1.75rem; font-weight: 300; transform: rotate(45deg); }
.brand-mark span { transform: rotate(-45deg); }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 1.3rem; }
.login-story > * { position: relative; z-index: 1; }
.login-story .eyebrow { margin-top: 1.8rem; color: var(--lime); }
.login-story h1 { max-width: 690px; margin: 1.25rem 0; color: var(--white); font-size: clamp(3.2rem, 6vw, 6.9rem); }
.story-copy { max-width: 480px; color: #a9bac4; font-size: 1.03rem; line-height: 1.7; }
.story-foot { display: flex; align-items: center; gap: .6rem; color: #a9bac4; font-size: .75rem; letter-spacing: .04em; }
.pulse-dot, .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(200, 241, 105, .13); }
.pulse-dot { animation: pulse 2s infinite; }
.story-orbit { position: absolute; right: 10%; bottom: 20%; width: min(38vw, 390px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(134, 212, 194, .26); }
.story-orbit::before, .story-orbit::after { position: absolute; inset: 14%; content: ""; border: 1px solid rgba(255, 125, 104, .3); border-radius: 50%; transform: rotate(45deg) scaleX(.7); }
.story-orbit::after { inset: 28%; border-color: rgba(200, 241, 105, .28); transform: rotate(-40deg) scaleY(.65); }
.orbit-line { position: absolute; top: 50%; left: -5%; width: 110%; border-top: 1px dashed rgba(255,255,255,.25); transform: rotate(25deg); }
.orbit-line-two { transform: rotate(-46deg); }
.orbit-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 8px rgba(255,125,104,.1); }
.dot-one { top: 7%; left: 62%; background: var(--lime); }
.dot-two { right: 7%; bottom: 28%; background: var(--teal); }
.dot-three { bottom: 3%; left: 23%; }
.orbit-core { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--lime); color: var(--ink); font-family: Georgia, serif; font-size: 2.1rem; transform: translate(-50%, -50%); }
.login-panel { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; background: var(--white); }
.login-panel-inner { width: min(430px, 100%); margin: auto; padding: 3rem 2rem; animation: reveal .5s ease both; }
.login-panel .eyebrow { margin-bottom: 1.25rem; color: var(--coral); }
.login-panel h2 { margin-bottom: .75rem; }
.stack-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.stack-form label { display: flex; flex-direction: column; gap: .42rem; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.stack-form input, .stack-form select { width: 100%; min-height: 46px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf5; color: var(--ink); font-size: .92rem; }
.stack-form input::placeholder { color: #aeb8bd; }
.stack-form input:focus, .stack-form select:focus { border-color: var(--teal); background: var(--white); outline: 0; box-shadow: 0 0 0 4px rgba(134, 212, 194, .16); }
.password-field { position: relative; }
.password-field input { padding-right: 3.1rem; }
.password-field .icon-button { position: absolute; right: .3rem; top: 50%; width: 38px; height: 38px; color: var(--muted); transform: translateY(-50%); }
.demo-users { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1.6rem; color: var(--muted); font-size: .72rem; }
.demo-users span { width: 100%; color: var(--ink-soft); font-weight: 700; }
.demo-users button { padding: .42rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink-soft); font-size: .72rem; }
.demo-users button:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-1px); }
.form-error { margin-top: 1rem; padding: .7rem .8rem; border-radius: 9px; background: #fff0ed; color: #b44031; font-size: .8rem; line-height: 1.45; }
.login-footer { display: flex; justify-content: space-between; padding: 1.3rem 2rem; border-top: 1px solid var(--line); color: #a3adb0; font-size: .68rem; }
.mobile-brand { display: none; align-items: center; gap: .8rem; margin-bottom: 3rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }

/* App shell */
.app-view { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 1.6rem 1.1rem 1.2rem; background: var(--ink); color: var(--white); }
.sidebar-top, .sidebar-brand, .topbar, .topbar-actions, .user-chip, .tenant-switcher, .mini-health, .section-intro, .hero-row, .date-card, .panel-heading, .audit-callout, .identity-hero, .admin-summary > div { display: flex; align-items: center; }
.sidebar-top { justify-content: space-between; }
.sidebar-brand { gap: .7rem; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: .73rem; letter-spacing: .09em; }
.sidebar-brand small { margin-top: .2rem; color: #8ea5b2; font-family: "SFMono-Regular", Consolas, monospace; font-size: .56rem; letter-spacing: .1em; }
.nav-close, .nav-open { display: none; }
.tenant-switcher { position: relative; gap: .6rem; margin: 2.2rem .3rem 1.7rem; padding: .8rem .75rem; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.045); }
.tenant-switcher strong { overflow: hidden; max-width: 135px; color: var(--lime); font-size: .86rem; text-overflow: ellipsis; }
.switcher-label { position: absolute; top: -7px; left: 10px; padding: 0 .3rem; background: var(--ink); color: #86a0ad; font-family: monospace; font-size: .54rem; letter-spacing: .11em; }
.status-dot { width: 7px; height: 7px; margin-left: auto; box-shadow: none; }
.main-nav { display: flex; flex-direction: column; gap: .25rem; }
.nav-label { margin: 1.3rem .85rem .45rem; color: #68818e; font-size: .59rem; letter-spacing: .13em; }
.nav-item { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 42px; padding: 0 .85rem; border: 0; border-radius: 10px; background: transparent; color: #9db0ba; text-align: left; font-size: .8rem; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--white); }
.nav-item.active { background: var(--lime); color: var(--ink); font-weight: 800; }
.nav-icon { display: grid; place-items: center; width: 20px; font-size: 1rem; }
.nav-badge { margin-left: auto; padding: .2rem .34rem; border-radius: 5px; background: rgba(12,29,44,.12); color: inherit; font-family: monospace; font-size: .5rem; }
.sidebar-bottom { margin-top: auto; }
.mini-health { gap: .65rem; padding: .9rem .65rem 1.1rem; border-top: 1px solid rgba(255,255,255,.1); }
.mini-health strong, .mini-health small { display: block; }
.mini-health strong { font-size: .72rem; }
.mini-health small { margin-top: .22rem; color: #8298a4; font-size: .65rem; }
.logout-button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem; background: transparent; color: #8da2ac; font-size: .76rem; text-align: left; }
.logout-button:hover { color: var(--coral); }
.workspace { min-width: 0; background: var(--paper); }
.topbar { justify-content: space-between; min-height: 92px; padding: 1.4rem clamp(1.5rem, 4vw, 4.5rem); border-bottom: 1px solid var(--line); }
.topbar-kicker { margin-bottom: .45rem; color: var(--muted); font-family: monospace; font-size: .62rem; letter-spacing: .13em; }
.topbar h2 { font-size: 1.65rem; }
.topbar-actions { gap: 1rem; }
.user-chip { gap: .65rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: .8rem; }
.user-chip small { margin-top: .2rem; color: var(--muted); font-family: monospace; font-size: .55rem; letter-spacing: .06em; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--coral); color: var(--white); font-size: .7rem; font-weight: 800; }
.content-scroll { padding: clamp(1.5rem, 4vw, 4.5rem); }
.view-section { animation: reveal .32s ease both; }
.hero-row { justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.4rem; }
.hero-row h1 { margin: .8rem 0 .8rem; font-size: clamp(2.8rem, 5vw, 5rem); }
.wave { display: inline-block; margin-left: .35rem; color: var(--coral); font-family: sans-serif; font-size: .8em; transform: rotate(-12deg); }
.hero-subtitle, .section-intro > div > p:last-child { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.date-card { flex-direction: column; align-items: flex-end; gap: .32rem; min-width: 155px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.65); }
.date-card > span { color: var(--muted); font-family: monospace; font-size: .55rem; letter-spacing: .12em; }
.date-card strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.date-card small { display: flex; align-items: center; gap: .4rem; color: var(--ink-soft); font-size: .65rem; }
.date-card .pulse-dot { width: 6px; height: 6px; box-shadow: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.metric-card { position: relative; min-height: 176px; overflow: hidden; padding: 1.2rem; border-radius: var(--radius); animation: reveal .45s ease both; }
.metric-card:nth-child(2) { animation-delay: .05s; }
.metric-card:nth-child(3) { animation-delay: .1s; }
.metric-card:nth-child(4) { animation-delay: .15s; }
.metric-navy { background: var(--ink); color: var(--white); }
.metric-lime { background: var(--lime); color: var(--ink); }
.metric-coral { background: var(--coral); color: var(--ink); }
.metric-cream { border: 1px solid var(--line); background: var(--white); }
.metric-label { display: flex; justify-content: space-between; color: inherit; font-size: .59rem; font-weight: 700; letter-spacing: .1em; opacity: .78; }
.metric-card > strong { display: block; margin-top: 1.1rem; font-family: Georgia, serif; font-size: 2.65rem; font-weight: 400; letter-spacing: -.07em; }
.metric-card > p { margin-top: .12rem; color: inherit; font-size: .7rem; opacity: .7; }
.metric-spark { font-family: sans-serif; font-size: 1rem; }
.sparkline { position: absolute; right: 1rem; bottom: 1rem; display: flex; align-items: flex-end; gap: 3px; height: 34px; opacity: .7; }
.sparkline i { display: block; width: 4px; border-radius: 8px; background: var(--lime); }
.sparkline i:nth-child(1) { height: 10px; }.sparkline i:nth-child(2) { height: 19px; }.sparkline i:nth-child(3) { height: 14px; }.sparkline i:nth-child(4) { height: 27px; }.sparkline i:nth-child(5) { height: 20px; }.sparkline i:nth-child(6) { height: 32px; }.sparkline i:nth-child(7) { height: 25px; }
.metric-progress { position: absolute; right: 1.2rem; bottom: 1.25rem; left: 1.2rem; height: 5px; overflow: hidden; border-radius: 5px; background: rgba(12,29,44,.15); }
.metric-progress span { display: block; width: 70%; height: 100%; border-radius: inherit; background: var(--ink); }
.audit-bars { position: absolute; right: 1.1rem; bottom: 1.1rem; display: flex; align-items: flex-end; gap: 3px; height: 35px; }
.audit-bars i { width: 5px; border-radius: 4px 4px 0 0; background: rgba(12,29,44,.55); }
.audit-bars i:nth-child(1) { height: 16px; }.audit-bars i:nth-child(2) { height: 25px; }.audit-bars i:nth-child(3) { height: 19px; }.audit-bars i:nth-child(4) { height: 31px; }.audit-bars i:nth-child(5) { height: 22px; }.audit-bars i:nth-child(6) { height: 27px; }.audit-bars i:nth-child(7) { height: 15px; }.audit-bars i:nth-child(8) { height: 34px; }
.report-orbit { position: absolute; right: .85rem; bottom: .7rem; width: 42px; height: 42px; border: 1px solid #cfd7ce; border-radius: 50%; }
.report-orbit span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }.report-orbit span:first-child { top: 3px; left: 19px; }.report-orbit span:nth-child(2) { right: 4px; bottom: 8px; background: var(--teal); }.report-orbit span:last-child { bottom: 1px; left: 7px; background: var(--yellow); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 1rem; margin-top: 1rem; }
.panel { min-width: 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.7); }
.panel-heading { justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.panel-heading .eyebrow { margin-bottom: .45rem; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .8rem 0; border-top: 1px solid #e8e9e3; }
.activity-item:first-child { border-top: 0; }
.activity-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eef2dc; color: var(--lime-deep); font-size: .75rem; }
.activity-item.failure .activity-icon { background: #fff0ed; color: var(--coral); }
.activity-item strong, .activity-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item strong { font-size: .78rem; }.activity-item small { margin-top: .2rem; color: var(--muted); font-size: .66rem; }.activity-time { color: var(--muted); font-family: monospace; font-size: .58rem; }
.permission-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.permission-chip { padding: .45rem .6rem; border-radius: 8px; background: #edf1eb; color: var(--ink-soft); font-family: monospace; font-size: .63rem; }
.tiny-tag { display: inline-flex; align-items: center; padding: .3rem .48rem; border-radius: 5px; background: #e9eee8; color: var(--ink-soft); font-size: .57rem; letter-spacing: .05em; white-space: nowrap; }.success-tag { background: #e8f4d2; color: #51731d; }
.skeleton-line { width: 80%; height: 13px; margin: .8rem 0; border-radius: 6px; background: linear-gradient(90deg, #ecede6, #f8f8f3, #ecede6); background-size: 200% 100%; animation: loading 1.4s infinite; }.skeleton-line.short { width: 55%; }

/* Sections / tables */
.section-intro { align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }.section-intro h1 { margin: .65rem 0 .65rem; font-size: clamp(2.6rem, 5vw, 4.5rem); }.section-intro .primary-button { flex-shrink: 0; }
.subnav { display: flex; gap: .3rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }.subnav-item { padding: .55rem .75rem; border-radius: 8px; background: transparent; color: var(--muted); font-size: .77rem; font-weight: 700; }.subnav-item span { display: inline-block; min-width: 18px; margin-left: .3rem; padding: .16rem .27rem; border-radius: 5px; background: var(--paper-deep); font-family: monospace; font-size: .58rem; text-align: center; }.subnav-item.active { background: var(--ink); color: var(--white); }.subnav-item.active span { background: var(--lime); color: var(--ink); }
.data-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.72); }.data-table { width: 100%; border-collapse: collapse; min-width: 650px; }.data-table th { padding: .9rem 1rem; background: #eeeee7; color: var(--muted); font-family: monospace; font-size: .59rem; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }.data-table td { padding: 1rem; border-top: 1px solid #e8e9e3; color: var(--ink-soft); font-size: .75rem; vertical-align: middle; }.data-table td strong { color: var(--ink); font-size: .79rem; }.table-meta { display: block; margin-top: .25rem; color: var(--muted); font-size: .65rem; }.status-pill { display: inline-flex; padding: .28rem .46rem; border-radius: 5px; background: #edf1eb; color: #557060; font-family: monospace; font-size: .57rem; font-weight: 700; }.status-pill.off, .status-pill.failure { background: #fff0ed; color: #b44031; }.status-pill.running { background: #fff6d8; color: #886a13; }.table-empty { padding: 2.5rem 1rem; color: var(--muted); font-size: .85rem; text-align: center; }.access-lock { display: grid; place-items: center; min-height: 180px; padding: 2rem; border: 1px dashed #cbd2c8; border-radius: var(--radius); color: var(--muted); text-align: center; }.access-lock strong { display: block; margin-bottom: .45rem; color: var(--ink); font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }.access-lock span { font-family: monospace; font-size: .65rem; }
.role-grid, .permission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }.role-card, .permission-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.72); }.role-card h3 { margin-bottom: .35rem; font-size: 1.15rem; }.role-card p, .permission-card p { min-height: 2.5em; color: var(--muted); font-size: .72rem; line-height: 1.45; }.role-card .permission-list { margin-top: .9rem; }.permission-card code { display: block; margin-bottom: .65rem; color: var(--coral); font-size: .7rem; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }.admin-summary > div { gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }.admin-summary strong, .admin-summary small { display: block; }.admin-summary strong { font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }.admin-summary small { margin-top: .2rem; color: var(--muted); font-size: .67rem; }.summary-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #edf1eb; color: var(--ink); }.summary-symbol.green { background: #e8f4d2; color: #51731d; }.summary-symbol.coral { background: #fff0ed; color: var(--coral); }
.audit-legend { display: flex; gap: 1rem; color: var(--muted); font-size: .7rem; }.audit-legend span { display: flex; align-items: center; gap: .35rem; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); }.legend-dot.failure { background: var(--coral); }.audit-callout { gap: .85rem; margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid #d8e8bb; border-radius: 14px; background: #f2f8e9; }.callout-icon { color: var(--lime-deep); font-size: 1.25rem; }.audit-callout strong { font-size: .8rem; }.audit-callout p { margin-top: .2rem; color: #6b795d; font-size: .7rem; }.audit-callout .tiny-tag { margin-left: auto; }

/* Reports / identity */
.storage-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border: 1px solid #d9e8cf; border-radius: 9px; background: #f4faed; color: #5a7825; font-family: monospace; font-size: .62rem; }.storage-badge .pulse-dot { width: 6px; height: 6px; box-shadow: none; }.report-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1rem; align-items: start; }.report-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1rem; }.report-card { position: relative; padding: 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }.report-card::after { position: absolute; right: -16px; bottom: -22px; width: 75px; height: 75px; content: ""; border: 1px solid #dfe7d7; border-radius: 50%; }.report-card:nth-child(3n+2) { background: #f5f9e8; }.report-card:nth-child(3n+3) { background: #fff0ed; }.report-card .report-index { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 1.5rem; border-radius: 9px; background: var(--ink); color: var(--lime); font-family: monospace; font-size: .63rem; }.report-card h3 { margin-bottom: .5rem; font-size: 1.35rem; }.report-card p { min-height: 3.2em; color: var(--muted); font-size: .74rem; line-height: 1.5; }.field-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }.field-tag { padding: .32rem .42rem; border-radius: 5px; background: rgba(255,255,255,.65); color: var(--ink-soft); font-family: monospace; font-size: .55rem; }.report-runner { position: sticky; top: 1rem; }.report-runner h3 { margin-top: .45rem; }.report-runner .stack-form { margin-top: 1.25rem; }.job-box { margin-top: 1.2rem; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; background: #f8f8f2; }.job-box strong, .job-box small { display: block; }.job-box strong { font-size: .78rem; }.job-box small { margin-top: .35rem; color: var(--muted); font-size: .67rem; line-height: 1.45; }.job-box .soft-button { width: 100%; margin-top: .75rem; justify-content: center; }.job-status { margin-top: .7rem; height: 5px; overflow: hidden; border-radius: 5px; background: #e2e5dc; }.job-status span { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--coral); animation: job-progress 1.2s ease-in-out infinite alternate; }
.identity-hero { gap: 1.2rem; margin-bottom: 1rem; padding: 1.3rem; border-radius: var(--radius); background: var(--ink); color: var(--white); }.identity-seal { display: grid; place-items: center; width: 74px; height: 74px; flex: 0 0 auto; border: 1px solid rgba(200,241,105,.5); border-radius: 50%; color: var(--lime); font-family: monospace; font-size: .75rem; letter-spacing: .1em; }.identity-hero h2 { margin: .55rem 0 .35rem; font-size: 1.9rem; }.identity-hero p { max-width: 620px; color: #a9bac4; font-size: .78rem; line-height: 1.55; }.endpoint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }.endpoint-card { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }.endpoint-card span { display: block; margin-bottom: .55rem; color: var(--muted); font-family: monospace; font-size: .57rem; letter-spacing: .08em; }.endpoint-card code { display: block; min-height: 2.6em; color: var(--ink); font-size: .68rem; line-height: 1.3; word-break: break-word; }.endpoint-card button { margin-top: .8rem; padding: .35rem .5rem; border-radius: 6px; background: var(--paper); color: var(--coral); font-size: .62rem; font-weight: 700; }.endpoint-card button:hover { background: var(--coral); color: var(--white); }.oidc-response pre { min-height: 180px; max-height: 420px; overflow: auto; margin: 0; padding: 1rem; border-radius: 11px; background: var(--ink); color: #bfe1bf; font-family: monospace; font-size: .68rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

/* Modals and notices */
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(12,29,44,.55); backdrop-filter: blur(5px); }.modal-card { position: relative; width: min(420px, 100%); padding: 1.6rem; border-radius: 20px; background: var(--white); box-shadow: 0 30px 80px rgba(12,29,44,.22); animation: reveal .25s ease both; }.modal-card h2 { margin: .5rem 0 .5rem; font-size: 2rem; }.modal-card .stack-form { margin-top: 1.2rem; }.modal-close { position: absolute; top: .9rem; right: .9rem; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 1.2rem; }.checkbox-label { flex-direction: row !important; align-items: center; gap: .6rem !important; }.checkbox-label input { width: 16px; min-height: 16px; accent-color: var(--coral); }.toast-region { position: fixed; z-index: 30; top: 1.2rem; right: 1.2rem; display: flex; flex-direction: column; gap: .6rem; width: min(360px, calc(100vw - 2.4rem)); }.toast { padding: .85rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--lime-deep); border-radius: 11px; background: var(--white); box-shadow: var(--shadow); color: var(--ink); font-size: .76rem; animation: reveal .25s ease both; }.toast.error { border-left-color: var(--coral); }.toast.info { border-left-color: var(--teal); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading { to { background-position: -200% 0; } }
@keyframes job-progress { from { transform: translateX(-60%); } to { transform: translateX(120%); } }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .endpoint-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .login-view { grid-template-columns: 1fr; }.login-story { min-height: 360px; }.story-orbit { right: 8%; bottom: 7%; width: 230px; }.login-story h1 { max-width: 560px; font-size: clamp(3rem, 9vw, 5rem); }.login-panel { min-height: 540px; }.app-view { display: block; }.sidebar { position: fixed; z-index: 15; top: 0; bottom: 0; left: 0; width: 270px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 15px 0 40px rgba(12,29,44,.18); }.app-view.nav-open .sidebar { transform: translateX(0); }.nav-close, .nav-open { display: block; }.nav-close { color: #9db0ba; font-size: 1.5rem; }.nav-open { margin-right: .7rem; color: var(--ink); font-size: 1.25rem; }.topbar { justify-content: flex-start; }.topbar-actions { margin-left: auto; }.dashboard-grid, .report-layout { grid-template-columns: 1fr; }.report-runner { position: static; }.endpoint-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .login-story { min-height: 430px; padding: 2rem 1.5rem; }.story-orbit { right: -20px; bottom: 18px; width: 190px; opacity: .8; }.login-story h1 { max-width: 460px; font-size: 3.15rem; }.story-copy { max-width: 300px; font-size: .88rem; }.login-panel-inner { padding: 2.4rem 1.4rem; }.mobile-brand { display: flex; }.login-footer { padding: 1rem 1.4rem; font-size: .6rem; }.topbar { align-items: flex-start; min-height: auto; padding: 1.15rem 1rem; }.topbar h2 { font-size: 1.3rem; }.topbar-actions { gap: .5rem; }.topbar-actions .soft-button { min-width: 40px; padding: 0 9px; font-size: 0; }.topbar-actions .soft-button span { font-size: 1rem; }.user-chip { padding-left: .5rem; }.user-chip > div { display: none; }.content-scroll { padding: 1.15rem 1rem 2.5rem; }.hero-row, .section-intro { display: block; }.hero-row h1 { font-size: 3rem; }.date-card { align-items: flex-start; width: fit-content; margin-top: 1.4rem; }.section-intro .primary-button { margin-top: 1.2rem; }.metric-grid, .admin-summary { grid-template-columns: 1fr; }.metric-card { min-height: 145px; }.dashboard-grid { gap: .8rem; }.panel { padding: 1rem; }.activity-item { grid-template-columns: 30px minmax(0, 1fr); }.activity-time { display: none; }.audit-callout { align-items: flex-start; }.audit-callout .tiny-tag { display: none; }.audit-legend { margin-top: 1.2rem; }.endpoint-grid { grid-template-columns: 1fr; }.identity-hero { align-items: flex-start; }.identity-seal { width: 58px; height: 58px; }.subnav { overflow: auto; }.subnav-item { white-space: nowrap; }.report-catalog { grid-template-columns: 1fr; }
}
