/* Self-hosted fonts (no third-party requests) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); 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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); 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: "Noto Sans Devanagari"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/noto-devanagari.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
html[data-admin] body { font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss03", "tnum" 0; letter-spacing: -0.005em; }
.a-body h1, .a-body h2, .a-body h3 { letter-spacing: -0.02em; }
.a-mono, .a-q b, .a-table .a-mono { font-variant-numeric: tabular-nums; }

/* Rangasetu admin prototype — compact app UI on the approved brand tokens (tokens.css + base.css load first). */
html[data-admin] { scroll-padding-top: 5rem; }
[hidden] { display: none !important; }
body.a-body { font-size: 15px; line-height: 1.5; background: #F7F4EE; color: var(--ink); }
.a-body h1, .a-body h2, .a-body h3, .a-body h4 { font-family: var(--font-display); text-wrap: balance; }
.a-body h1 { font-size: 1.7rem; margin: 0 0 .25rem; }
.a-body h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.a-body h3 { font-size: 1rem; margin: 0 0 .4rem; }
.a-muted { color: var(--c-text-muted); }
.a-small { font-size: .8125rem; }
.a-mono { font-variant-numeric: tabular-nums; }

/* ---- shell ------------------------------------------------------------ */
.a-app { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.a-side { background: var(--ink); color: #fff; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.1rem .8rem; gap: 1rem; overflow-y: auto; z-index: 60; }
.a-side__brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .5rem; text-decoration: none; }
.a-side__brand img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.a-side__brand small { display: block; font-size: .72rem; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.a-nav { display: grid; gap: .15rem; }
.a-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 10px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; }
.a-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.a-nav a[aria-current="page"] { background: var(--rang-saffron); color: var(--ink); font-weight: 700; }
.a-nav svg { width: 1.2rem; height: 1.2rem; flex: none; }
.a-nav .a-count { margin-left: auto; background: var(--festival-coral); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 700; min-width: 1.4rem; text-align: center; }
.a-side__foot { margin-top: auto; font-size: .78rem; color: rgba(255,255,255,.6); display: grid; gap: .5rem; padding: .4rem .5rem; }
.a-side__foot button { background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 8px; padding: .4rem .6rem; font-size: .78rem; }
.a-side__foot button:hover { background: rgba(255,255,255,.2); }
.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); display: flex; align-items: center; gap: 1rem; padding: .65rem 1.5rem; }
.a-menu-btn { display: none; border: 1px solid var(--c-line-strong); background: #fff; border-radius: 10px; width: 2.5rem; height: 2.5rem; place-items: center; }
.a-menu-btn svg { width: 1.3rem; height: 1.3rem; }
.a-search { position: relative; flex: 1; max-width: 32rem; }
.a-search input { width: 100%; padding: .55rem .9rem .55rem 2.4rem; border-radius: 999px; border: 1px solid var(--c-line-strong); background: #fff; font-size: .9375rem; }
.a-search input:focus { outline: none; border-color: var(--deep-violet); box-shadow: 0 0 0 3px rgba(129,117,171,.3); }
.a-search > svg { position: absolute; left: .8rem; top: 50%; translate: 0 -50%; width: 1.1rem; height: 1.1rem; color: var(--slate); pointer-events: none; }
.a-results { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid var(--c-line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 70vh; overflow: auto; z-index: 70; padding: .3rem; }
.a-results a { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; text-decoration: none; align-items: center; }
.a-results a:hover, .a-results a.is-active { background: #f4f0fa; }
.a-results small { color: var(--c-text-muted); }
.a-results .a-empty { padding: .8rem; }
.a-clock { margin-left: auto; font-size: .8125rem; color: var(--c-text-muted); white-space: nowrap; }
.a-acct { position: relative; }
.a-acct > button { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--c-line-strong); background: #fff; border-radius: 999px; padding: .2rem .8rem .2rem .25rem; font-weight: 600; }
.a-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--setu-violet); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.a-menu { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 13rem; background: #fff; border: 1px solid var(--c-line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .3rem; z-index: 70; }
.a-menu a, .a-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; font-size: .9375rem; }
.a-menu a:hover, .a-menu button:hover { background: #f4f0fa; }
.a-content { padding: 1.5rem; max-width: 92rem; width: 100%; }
.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.2rem; }
.a-head p { margin: 0; color: var(--c-text-muted); }
.a-crumb { font-size: .8125rem; color: var(--c-text-muted); margin-bottom: .3rem; }
.a-crumb a { text-decoration: none; }
.a-crumb a:hover { text-decoration: underline; }

/* ---- buttons / chips / inputs ----------------------------------------- */
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.35rem; padding: .35rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--rang-saffron); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; line-height: 1.2; transition: background .15s, transform .1s; white-space: nowrap; }
.a-btn:hover { background: var(--sun-marigold); }
.a-btn:active { transform: translateY(1px); }
.a-btn svg { width: 1.05rem; height: 1.05rem; }
.a-btn--dark { background: var(--ink); color: #fff; }
.a-btn--dark:hover { background: #26222b; }
.a-btn--ghost { background: #fff; border-color: var(--c-line-strong); font-weight: 600; }
.a-btn--ghost:hover { background: #f4f0fa; border-color: var(--deep-violet); }
.a-btn--danger { background: #fff; color: #a3231c; border-color: #e3a29d; }
.a-btn--danger:hover { background: #FDE6E4; }
.a-btn--sm { min-height: 2rem; padding: .2rem .75rem; font-size: .8125rem; }
.a-btn[disabled] { opacity: .45; pointer-events: none; }
.a-chip { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; font-weight: 700; background: var(--mist); color: var(--slate); white-space: nowrap; line-height: 1.5; }
.a-chip--ok { background: #d8f3e2; color: #0d5a2e; }
.a-chip--warn { background: #FFEFC2; color: #6a4700; }
.a-chip--bad { background: #FDE6E4; color: #9a1f19; }
.a-chip--info { background: #EAE3F7; color: #4a3f6c; }
.a-chip--dark { background: var(--ink); color: #fff; }
.a-chip i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; display: inline-block; }
.a-input, .a-select, .a-textarea { width: 100%; border: 1.5px solid var(--c-line-strong); border-radius: 10px; padding: .5rem .75rem; background: #fff; font-size: .9375rem; min-height: 2.35rem; }
.a-textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.a-input:focus, .a-select:focus, .a-textarea:focus { outline: none; border-color: var(--deep-violet); box-shadow: 0 0 0 3px rgba(129,117,171,.3); }
.a-label { display: block; font-weight: 600; font-size: .8125rem; margin-bottom: .25rem; }
.a-field { display: grid; gap: .1rem; }
.a-form-grid { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.a-form-grid .full { grid-column: 1 / -1; }
.a-check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.a-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--deep-violet); }
.a-switch { position: relative; width: 2.8rem; height: 1.5rem; flex: none; }
.a-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.a-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--c-line-strong); transition: background .15s; }
.a-switch span::after { content: ""; position: absolute; left: .2rem; top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; transition: translate .15s; }
.a-switch input:checked + span { background: #1a9b50; }
.a-switch input:checked + span::after { translate: 1.3rem 0; }
.a-switch input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* ---- cards / grids ----------------------------------------------------- */
.a-card { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); min-width: 0; }
.a-card > h2:first-child, .a-card > .a-card__head h2 { margin-bottom: .2rem; }
.a-card__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; flex-wrap: wrap; }
.a-grid { display: grid; gap: 1rem; }
.a-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.a-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.a-split { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.a-stack { display: grid; gap: 1rem; }
.a-queue { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.a-q { display: grid; gap: .1rem; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: .9rem 1rem; text-decoration: none; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.a-q:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.a-q b { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.a-q span { font-size: .875rem; color: var(--c-text-muted); font-weight: 600; }
.a-q::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .35rem; background: var(--c-line-strong); }
.a-q--hot::before { background: var(--festival-coral); }
.a-q--go::before { background: var(--rang-saffron); }
.a-q--zero b { color: #b7b2bd; }

/* ---- tables ------------------------------------------------------------ */
.a-tablewrap { overflow: auto; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; }
.a-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.a-table th { position: sticky; top: 0; background: #FBF9F5; text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-muted); padding: .6rem .8rem; border-bottom: 1px solid var(--c-line-strong); white-space: nowrap; user-select: none; }
.a-table th[data-sort] { cursor: pointer; }
.a-table th[data-sort]:hover { color: var(--ink); }
.a-table th .a-arrow { opacity: .7; margin-left: .2rem; }
.a-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.a-table tbody tr:last-child td { border-bottom: 0; }
.a-table tbody tr:hover { background: #FBF8FF; }
.a-table tr.is-selected { background: #F4F0FA; }
.a-table td.a-chk, .a-table th.a-chk { width: 2rem; padding-right: 0; }
.a-table a { color: var(--deep-violet); font-weight: 600; text-decoration: none; }
.a-table a:hover { text-decoration: underline; }
.a-table .a-id { font-weight: 700; font-variant-numeric: tabular-nums; }
.a-nowrap { white-space: nowrap; }
.a-flags { display: flex; flex-wrap: wrap; gap: .25rem; }
.a-tag { display: inline-flex; align-items: center; gap: .3rem; background: #EAF4FB; color: #1d4e6b; border-radius: 6px; padding: .05rem .45rem; font-size: .75rem; font-weight: 600; }
.a-tag button { border: 0; background: none; padding: 0; line-height: 1; font-size: .9rem; color: inherit; opacity: .7; }
.a-tag button:hover { opacity: 1; }
.a-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.a-toolbar .a-select, .a-toolbar .a-input { width: auto; min-width: 9rem; }
.a-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: .7rem; margin-bottom: .8rem; }
.a-filters .a-select, .a-filters .a-input { width: auto; min-width: 8.5rem; max-width: 12rem; }
.a-bulk { position: sticky; bottom: 1rem; z-index: 30; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--ink); color: #fff; padding: .6rem .9rem; border-radius: 14px; box-shadow: var(--shadow-lg); margin-top: .8rem; }
.a-bulk .a-btn { border-color: #fff; }
.a-bulk .a-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.a-bulk .a-btn--ghost:hover { background: rgba(255,255,255,.15); }
.a-pager { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; color: var(--c-text-muted); font-size: .875rem; }
.a-empty { color: var(--c-text-muted); text-align: center; padding: 1.4rem; }

/* ---- tabs / key-values / timeline ------------------------------------ */
.a-tabs { display: flex; gap: .2rem; border-bottom: 2px solid var(--c-line); margin-bottom: 1rem; overflow-x: auto; }
.a-tabs button { border: 0; background: none; padding: .65rem 1rem; font-weight: 600; color: var(--c-text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.a-tabs button:hover { color: var(--ink); }
.a-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--rang-saffron); }
.a-tabs .a-chip { margin-left: .3rem; }
.a-kv { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .45rem 1rem; margin: 0; }
.a-kv dt { color: var(--c-text-muted); font-size: .8125rem; font-weight: 600; padding-top: .1rem; }
.a-kv dd { margin: 0; word-break: break-word; }
.a-timeline { list-style: none; display: grid; gap: .1rem; margin: 0; padding: 0; }
.a-timeline li { position: relative; padding: .35rem 0 .35rem 1.3rem; border-left: 2px solid var(--c-line-strong); margin-left: .4rem; }
.a-timeline li::before { content: ""; position: absolute; left: -.42rem; top: .75rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--rang-saffron); border: 2px solid var(--ink); }
.a-timeline time { display: block; font-size: .75rem; color: var(--c-text-muted); }
.a-feed { list-style: none; display: grid; gap: .1rem; margin: 0; padding: 0; }
.a-feed li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--c-line); }
.a-feed li:last-child { border-bottom: 0; }
.a-feed .a-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--mist); }
.a-feed .a-dot svg { width: .9rem; height: .9rem; }
.a-feed a { font-weight: 600; color: var(--deep-violet); text-decoration: none; }
.a-feed time { display: block; font-size: .75rem; color: var(--c-text-muted); }

/* ---- charts ------------------------------------------------------------ */
.a-bars { display: grid; gap: .5rem; }
.a-bar { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3rem; gap: .6rem; align-items: center; font-size: .875rem; }
.a-bar__track { height: .9rem; background: var(--mist); border-radius: 999px; overflow: hidden; }
.a-bar__fill { height: 100%; background: var(--setu-violet); border-radius: 999px; }
.a-bar__fill--saffron { background: var(--rang-saffron); }
.a-bar__fill--green { background: #2fa866; }
.a-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.a-chart { width: 100%; height: 12rem; }
.a-chart text { font-size: 10px; fill: var(--slate); }
.a-seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 3px; }
.a-seg button { border: 0; background: none; padding: .2rem .8rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--slate); }
.a-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a-deadlines { display: grid; gap: .5rem; margin-top: .9rem; }
.a-deadlines div { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem .7rem; background: #FBF9F5; border-radius: 10px; font-size: .875rem; flex-wrap: wrap; }

/* ---- dialogs / toast --------------------------------------------------- */
dialog.a-dialog { border: 0; padding: 0; background: transparent; max-width: min(94vw, 46rem); width: 100%; max-height: 94vh; overflow: visible; color: var(--ink); }
dialog.a-dialog::backdrop { background: rgba(11,10,12,.6); backdrop-filter: blur(3px); }
dialog.a-dialog--wide { max-width: min(96vw, 60rem); }
.a-dialog__box { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.3rem 1.4rem; max-height: 92vh; overflow: auto; display: grid; gap: .9rem; }
.a-dialog__box h2 { margin: 0; }
.a-dialog__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; align-items: center; position: sticky; bottom: -1.3rem; z-index: 2; background: #fff; margin: 0 -1.4rem -1.3rem; padding: .8rem 1.4rem 1.1rem; border-top: 1px solid var(--c-line); }
.a-dialog__x { position: absolute; right: .8rem; top: .8rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--mist); font-size: 1.2rem; line-height: 1; }
.a-mailframe { width: 100%; border: 1px solid var(--c-line-strong); border-radius: 12px; background: #FFF9F0; height: 20rem; transition: max-width .2s; margin: 1.1rem auto 0; display: block; }
.a-mailframe.is-phone { max-width: 375px; }
.a-mailmeta { display: grid; gap: .3rem; background: #FBF9F5; border-radius: 12px; padding: .7rem .9rem; font-size: .875rem; }
.a-mailmeta b { display: inline-block; min-width: 4.2rem; color: var(--c-text-muted); font-weight: 600; }
.a-must { display: flex; gap: .6rem; align-items: center; background: #FFF3CF; border: 1px solid #f1d27a; border-radius: 12px; padding: .55rem .8rem; font-size: .875rem; }
#a-toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 200; }
.a-toast { background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .9rem; max-width: 24rem; animation: a-in .2s ease-out; }
.a-toast--ok { border-left: 5px solid #2fa866; }
.a-toast--err { border-left: 5px solid var(--festival-coral); }
@keyframes a-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- entry detail specifics ------------------------------------------- */
.a-shot { border: 1px solid var(--c-line-strong); border-radius: 12px; background: #fff; overflow: hidden; cursor: zoom-in; display: block; }
.a-shot img { width: 100%; max-width: 20rem; height: auto; margin: 0 auto; display: block; }
.a-file { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--c-line-strong); border-radius: 12px; background: #fff; }
.a-file svg { width: 1.6rem; height: 1.6rem; color: var(--deep-violet); flex: none; }
.a-file > div { flex: 1; min-width: 0; }
.a-file b { display: block; overflow-wrap: anywhere; }
.a-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; }
.a-meta > div { background: #FBF9F5; border-radius: 12px; padding: .6rem .8rem; border-left: 4px solid var(--c-line-strong); }
.a-meta small { display: block; color: var(--c-text-muted); font-weight: 600; font-size: .75rem; }
.a-meta b { font-size: 1rem; }
.a-meta .ok { border-left-color: #2fa866; }
.a-meta .warn { border-left-color: var(--rang-saffron); }
.a-meta .bad { border-left-color: var(--festival-coral); }
.a-meta .flag { display: block; font-size: .78rem; font-weight: 600; }
.a-meta .ok .flag { color: #0d5a2e; } .a-meta .warn .flag { color: #6a4700; } .a-meta .bad .flag { color: #9a1f19; }
.a-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.a-decision { border: 1.5px dashed var(--c-line-strong); border-radius: 14px; padding: .9rem 1rem; background: #FFFCF6; display: grid; gap: .7rem; }
.a-banner { border-radius: 12px; padding: .7rem 1rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 1rem; }
.a-banner--warn { background: #FFF3CF; border: 1px solid #f1d27a; }
.a-banner--bad { background: #FDE6E4; border: 1px solid #f4b8b3; }
.a-banner--info { background: #EFEBF8; border: 1px solid #d5cce9; }
.a-merge { display: flex; flex-wrap: wrap; gap: .35rem; }
.a-merge button { border: 1px dashed var(--deep-violet); background: #fff; color: var(--deep-violet); border-radius: 8px; padding: .1rem .5rem; font-size: .75rem; font-family: ui-monospace, Menlo, monospace; }
.a-merge button:hover { background: #f4f0fa; }
.a-pill-radio { display: flex; flex-wrap: wrap; gap: .5rem; }
.a-pill-radio label { cursor: pointer; }
.a-pill-radio input { position: absolute; opacity: 0; }
.a-pill-radio span { display: inline-block; border: 1.5px solid var(--c-line-strong); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .875rem; background: #fff; }
.a-pill-radio input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.a-pill-radio input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* ---- sign-in ----------------------------------------------------------- */
.a-login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(60rem 30rem at 85% 0%, rgba(129,117,171,.35), transparent 60%), radial-gradient(40rem 24rem at 0% 100%, rgba(255,185,0,.3), transparent 60%), var(--paper); }
.a-login__card { width: min(100%, 26rem); background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 2rem 1.8rem; display: grid; gap: 1rem; text-align: center; }
.a-login__card img { height: 84px; width: auto; margin: 0 auto; }
.a-login__card h1 { font-size: 1.5rem; margin: 0; }
.a-login .a-btn { width: 100%; min-height: 2.9rem; font-size: 1rem; }
.a-or { display: flex; align-items: center; gap: .8rem; color: var(--c-text-muted); font-size: .8125rem; }
.a-or::before, .a-or::after { content: ""; flex: 1; height: 1px; background: var(--c-line-strong); }
.a-otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1000px) { .a-split { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .a-app { grid-template-columns: 1fr; }
  .a-side { position: fixed; inset: 0 auto 0 0; width: 16rem; translate: -100% 0; transition: translate .2s; box-shadow: var(--shadow-lg); }
  .a-side.is-open { translate: 0 0; }
  .a-scrim { position: fixed; inset: 0; background: rgba(11,10,12,.5); z-index: 55; }
  .a-menu-btn { display: grid; }
  .a-top { padding: .6rem 1rem; gap: .6rem; }
  .a-clock { display: none; }
  .a-content { padding: 1rem; }
  .a-kv { grid-template-columns: 1fr; gap: .1rem; }
  .a-kv dd { margin-bottom: .5rem; }
  .a-bar { grid-template-columns: 6.5rem minmax(0, 1fr) 2.4rem; }
}
@media (max-width: 560px) {
  .a-acct > button span.a-acct__name { display: none; }
  .a-acct > button { padding: .2rem; }
  .a-head h1 { font-size: 1.4rem; }
}

.a-table--dense { font-size: .8125rem; }
.a-table--dense th, .a-table--dense td { padding: .5rem .55rem; }
.a-table--dense .a-email { max-width: 12.5rem; overflow-wrap: anywhere; }
.a-table--dense .a-flags { max-width: 15rem; }

.a-stack > *, .a-split > *, .a-grid > * { min-width: 0; }
.a-content { overflow-x: clip; }
.a-file { flex-wrap: wrap; }
