:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17233b; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header { align-items: center; background: linear-gradient(115deg, #142c55, #1a4d85); box-shadow: 0 2px 14px #162b4c35; color: white; display: flex; gap: 1rem; justify-content: space-between; padding: .8rem clamp(1rem, 3vw, 2.5rem); position: sticky; top: 0; z-index: 10; }
header strong { letter-spacing: .01em; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
button { background: #1c6ed1; border: 1px solid transparent; border-radius: .45rem; color: white; cursor: pointer; font: inherit; font-weight: 650; padding: .55rem .8rem; transition: background .15s, border-color .15s, transform .15s; }
button:hover:not(:disabled) { background: #1259b1; transform: translateY(-1px); }
button:focus-visible, input:focus-visible { outline: 3px solid #8ec6ff; outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.nav-item { background: transparent; color: #dce9fb; font-size: .9rem; font-weight: 550; padding: .42rem .52rem; }
.nav-item span { font-size: 1.1rem; margin-right: .3rem; }
.nav-item:hover { background: #ffffff20; color: white; }
.button-secondary, .button-plain { background: #eef2f7; border-color: #d7dfeb; color: #34445c; }
.button-secondary:hover, .button-plain:hover { background: #e1e8f2; }
.button-plain { background: transparent; border: 0; padding: .25rem; text-decoration: underline; }
main { margin: 0 auto; max-width: 1260px; padding: 2.1rem clamp(1rem, 3vw, 2.5rem) 3rem; }
.page-title { align-items: end; display: flex; justify-content: space-between; margin: 0 0 1.25rem; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; margin-bottom: .2rem; }
h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.eyebrow { color: #3272bb; font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .35rem; text-transform: uppercase; }
.subtitle, .muted { color: #66758b; margin-bottom: 0; }
.card, .detail-head { background: white; border: 1px solid #e2e8f1; border-radius: .85rem; box-shadow: 0 6px 18px #1d35520d; margin: 1rem 0; padding: 1.2rem; }
.metric-grid { display: grid; gap: .9rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { border-radius: .85rem; min-height: 138px; overflow: hidden; padding: 1rem; position: relative; }
.metric > span { font-size: 1.45rem; opacity: .75; position: absolute; right: .9rem; top: .8rem; }
.metric strong { display: block; font-size: 2rem; letter-spacing: -.05em; margin-top: 1.35rem; }
.metric small { font-weight: 600; opacity: .8; }
.metric-blue { background: #e5f0ff; color: #164f94; }.metric-violet { background: #eee9ff; color: #5e43a2; }.metric-green { background: #def5e8; color: #176543; }.metric-teal { background: #ddf6f4; color: #087372; }.metric-orange { background: #fff0d9; color: #a45508; }
.quick-actions { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }.quick-actions p { color: #65748a; margin-bottom: 0; }
.hint { align-items: center; background: #edf6ff; border: 1px solid #cfe5fa; border-radius: .7rem; color: #315677; display: flex; gap: .75rem; margin-top: 1.1rem; padding: .8rem 1rem; }.hint span { font-size: 1.15rem; }.hint p { margin: 0; }
.search-bar { align-items: center; display: flex; gap: .55rem; }.search-bar > span { color: #60728a; font-size: 1.15rem; }.search-bar input { flex: 1; }
input { background: white; border: 1px solid #cbd6e3; border-radius: .45rem; color: #17233b; font: inherit; min-width: 12rem; padding: .62rem .7rem; }
.table-area { margin-top: 1.1rem; }.table-scroll { overflow-x: auto; }
.section-note { color: #68788c; font-size: .9rem; margin: -.4rem 0 1rem; }
table { border-collapse: collapse; min-width: 680px; width: 100%; }th { background: #f7f9fc; color: #53647c; font-size: .75rem; font-weight: 800; letter-spacing: .045em; text-align: left; text-transform: uppercase; }th, td { border-bottom: 1px solid #e5eaf1; padding: .75rem .7rem; vertical-align: middle; }td { font-size: .92rem; }tbody tr:hover { background: #f8fbff; }
.link-button { background: transparent; color: #1764be; font-weight: 700; padding: 0; text-align: left; }.link-button:hover { background: transparent; color: #0a4f9e; text-decoration: underline; transform: none; }
.count-link { background: #e7f1ff; border-color: #c8ddf8; color: #155ca9; min-width: 2.1rem; padding: .22rem .5rem; }.count-link:hover { background: #d8eaff; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }.empty { color: #68798e; padding: 2rem; text-align: center; }
.badge { border-radius: 2rem; display: inline-block; font-size: .76rem; font-weight: 750; line-height: 1.25; padding: .25rem .55rem; white-space: nowrap; }.badge-good { background: #daf3e3; color: #17683d; }.badge-bad { background: #fbe1e3; color: #a92e3a; }.badge-warn { background: #fff0ce; color: #986008; }.badge-violet { background: #ece5ff; color: #6545ac; }.badge-blue { background: #dcecff; color: #165eab; }.badge-neutral { background: #e9eef4; color: #4a5b70; }
.pager { align-items: center; color: #627187; display: flex; font-size: .9rem; justify-content: space-between; margin-top: 1rem; }.pager > div { display: flex; gap: .45rem; }.pager-summary { color: #68778d; display: block; font-size: .88rem; margin-top: .85rem; }
.loading { color: #5a6b80; padding: 2rem 0; text-align: center; }.loading::before { animation: spin 1s linear infinite; content: '◌'; display: inline-block; font-size: 1.2rem; margin-right: .45rem; }@keyframes spin { to { transform: rotate(360deg); } }
.alert { align-items: center; border-radius: .7rem; display: flex; gap: .6rem; padding: 1rem; }.alert-error { background: #fff0f1; border: 1px solid #facdd2; color: #8a2733; }.alert strong { white-space: nowrap; }
.modal-backdrop { align-items: center; background: #15243a80; display: flex; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 100; }.modal { background: white; border-radius: .9rem; box-shadow: 0 20px 60px #08152566; max-height: min(760px, calc(100vh - 2rem)); max-width: 960px; overflow: auto; padding: 1.2rem; width: 100%; }.modal-title { align-items: flex-start; display: flex; justify-content: space-between; }.modal-title h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.back { background: transparent; color: #37607f; margin-bottom: 1rem; padding-left: 0; }.back:hover { background: transparent; color: #164f85; transform: none; text-decoration: underline; }
.detail-head { align-items: center; display: flex; justify-content: space-between; }.detail-head > div { align-items: center; display: flex; gap: .8rem; }.detail-head p { color: #6b7a8d; margin: .1rem 0 0; }.avatar { align-items: center; background: linear-gradient(135deg, #2a75c9, #6da3e0); border-radius: 50%; color: white; display: flex; font-size: 1.2rem; font-weight: 800; height: 2.9rem; justify-content: center; width: 2.9rem; }
.settings-grid { display: grid; gap: .65rem 1.2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }.setting { border-bottom: 1px solid #e8edf3; min-height: 3.7rem; padding: .45rem 0; }.setting > span { color: #69798d; display: block; font-size: .73rem; font-weight: 800; letter-spacing: .045em; margin-bottom: .32rem; text-transform: uppercase; }.setting strong { font-size: .92rem; font-weight: 650; }.wrap { overflow-wrap: anywhere; }.secret-card { align-items: center; background: #fffaf0; border-color: #f2dfb8; display: flex; flex-wrap: wrap; justify-content: space-between; }.secret-card h2 { margin-bottom: .35rem; }.secret-card p { color: #71614a; margin-bottom: 0; }.secret-actions, .secret-value { display: flex; gap: .5rem; }.secret-output { flex-basis: 100%; }.secret-output:not(:empty) { border-top: 1px solid #f0dfbf; margin-top: .9rem; padding-top: .9rem; }.secret-value input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-width: 14rem; }.generated-note { color: #896019; font-size: .84rem; font-weight: 750; margin-bottom: .45rem; }
.welcome { max-width: 600px; padding: clamp(3.5rem, 12vh, 8rem) 0; }.welcome h1 { font-size: clamp(2.2rem, 6vw, 4rem); }.welcome > p:not(.eyebrow) { color: #64758b; font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; }
small { color: #64758b; }
@media (max-width: 980px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } header { align-items: flex-start; flex-direction: column; }nav { justify-content: flex-start; } }
@media (max-width: 640px) { main { padding-top: 1.35rem; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.metric { min-height: 116px; }.quick-actions, .pager, .detail-head, .secret-card, .modal-title { align-items: flex-start; flex-direction: column; }.settings-grid { grid-template-columns: 1fr; }.search-bar { flex-wrap: wrap; }.search-bar input { min-width: 0; width: calc(100% - 2rem); }.search-bar button { flex: 1; }.nav-item { font-size: .82rem; }.nav-item span { display: none; }.alert { align-items: flex-start; flex-direction: column; } }
