.dash-ribbons { position: absolute; left: 0; top: 0; width: 100%; height: 640px; pointer-events: none; opacity: .8; }
.dash-glow { position: absolute; left: 50%; top: -260px; width: 1300px; height: 820px; transform: translateX(-30%); background: radial-gradient(closest-side, rgba(22,48,249,.28), rgba(22,48,249,0) 72%); pointer-events: none; }
.dnav { padding: 6px; gap: 8px; }
.dnav .brand { padding: 0 10px 0 12px; margin-right: 0; }
.tabs { display: flex; gap: 2px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; transition: background .3s, color .3s; }
.tab[aria-selected=true] { background: var(--fg); color: var(--bg); }
.tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.picker { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); transition: border-color .2s; }
.picker:hover { border-color: rgba(255,255,255,.2); }
.picker-icon { width: 32px; height: 32px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; font-weight: 900; font-size: 12px; overflow: hidden; background-size: cover; }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none; } }

.dmain { position: relative; max-width: 1280px; margin: 0 auto; padding: 72px 32px 96px; display: flex; flex-direction: column; gap: 20px; min-height: 70vh; }
.view { display: flex; flex-direction: column; gap: 20px; }
.dhead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; padding-bottom: 28px; }
.dh1 { font-weight: 900; font-size: clamp(52px, 7.4vw, 104px); line-height: .92; letter-spacing: -0.055em; }
.chip-live { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(61,220,151,.10); color: var(--success); font-size: 12px; font-weight: 700; margin-bottom: 20px; }
.chip-live i { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.chip-live.warn { background: rgba(255,176,32,.10); color: var(--warning); }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 32px; background: var(--surface-1); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.panel h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.panel .hint { color: var(--muted); font-size: 14px; }
.row-flex { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.grow3 { flex: 3 1 520px; } .grow2 { flex: 2 1 320px; }
.hero-panel { position: relative; overflow: hidden; background: var(--brand-soft); border: 0; gap: 24px; }
.hero-panel .g { position: absolute; right: -160px; top: -200px; width: 620px; height: 520px; background: radial-gradient(closest-side, rgba(22,48,249,.55), rgba(22,48,249,0) 72%); pointer-events: none; }
.hero-panel > * { position: relative; }
.big { font-weight: 900; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.05em; line-height: .95; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 24px; background: var(--surface-1); border: 1px solid rgba(255,255,255,.08); }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { font-weight: 900; font-size: 32px; letter-spacing: -0.04em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi b em { color: var(--brand-ink); font-style: normal; }
.cmds { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); }
.cmd-row { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.cmd-row code { flex: none; min-width: 150px; color: var(--brand-ink); font-family: var(--font-mono); font-size: 13px; }
.cmd-row span { color: var(--muted); }

.pill-group { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); flex-wrap: wrap; }
.pill { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 13px; transition: background .3s, color .3s; }
.pill[aria-pressed=true] { background: var(--brand); color: #fff; }
.pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.vhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 20px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; flex: 3 1 520px; min-width: 0; }
.vc { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 22px; padding: 20px; border-radius: 24px; background: var(--surface-1); border: 1px solid rgba(255,255,255,.08); transition: transform .25s var(--ease), background .3s, border-color .3s; }
.vc:active { transform: scale(.98); }
.vc:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.vc[aria-pressed=true] { background: var(--brand-soft); border-color: var(--brand-ink); }
.vc .t { display: flex; justify-content: space-between; align-items: center; }
.vc .init { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.vc[aria-pressed=true] .init { background: var(--brand); color: #fff; }
.vc .tag { padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.vc .w { display: flex; align-items: center; gap: 3px; height: 32px; }
.vc .w span { width: 3px; border-radius: 999px; background: var(--brand-ink); opacity: .3; }
.vc[aria-pressed=true] .w span { opacity: 1; animation: si-wave 820ms var(--ease) infinite alternate; }
.vc b { font-size: 18px; } .vc small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 500; }
.side { flex: 1 1 300px; min-width: 0; gap: 22px; }
.side .lbl { color: var(--muted); font-size: 13px; }

.toggles { padding: 8px 28px; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.trow:last-child { border-bottom: 0; }
.trow .l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.trow .l b { font-size: 16px; } .trow .l span { color: var(--muted); font-size: 14px; }
.sw { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 52px; height: 32px; padding: 3px; border-radius: 999px; background: var(--surface-3); display: flex; transition: background .3s; }
.sw i { width: 26px; height: 26px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sw[aria-checked=true] { background: var(--brand); justify-content: flex-end; }
.sw:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sel { height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: var(--surface-2); color: var(--fg); font-size: 14px; font-weight: 700; min-width: 200px; max-width: 100%; }
.range { width: 100%; height: 28px; accent-color: var(--brand); }
.words { display: flex; flex-wrap: wrap; gap: 8px; }
.word { display: inline-flex; gap: 8px; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.word span { color: var(--muted); }

.gate { display: grid; place-items: center; text-align: center; min-height: 60vh; gap: 28px; align-content: center; }
.gate .logo-tile { width: 104px; height: 104px; border-radius: 34px; background: var(--brand); display: grid; place-items: center; box-shadow: 0 18px 50px rgba(22,48,249,.55), inset 0 1px 0 rgba(255,255,255,.35); margin: 0 auto 8px; }
.gate .logo-tile img { width: 74px; }
.gate p { color: var(--muted); max-width: 460px; font-size: 18px; line-height: 1.5; }
.gate .btn-brand { text-decoration: none; }
.notice { padding: 14px 18px; border-radius: 16px; background: rgba(255,176,32,.10); color: var(--warning); font-size: 14px; font-weight: 700; }
.dfoot { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 24px 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.dfoot a { color: var(--muted); font-weight: 700; }
.hatch { height: 56px; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px); border-top: 1px solid rgba(255,255,255,.08); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--surface-3); border: 1px solid rgba(255,255,255,.10); font-weight: 700; font-size: 14px; transition: opacity .3s, transform .3s var(--ease); z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { color: #ff8a8a; border-color: var(--error); }
@media (max-width: 560px) { .dmain { padding: 56px 16px 72px; } .cmd-row { flex-direction: column; gap: 4px; } }

/* Polish pass */
.stack { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.small { font-size: 14px !important; }
.skel { border-radius: 24px; background: linear-gradient(100deg, var(--surface-1) 30%, var(--surface-2) 50%, var(--surface-1) 70%); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.try { display: flex; gap: 10px; flex-wrap: wrap; }
.try input { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.25); color: var(--fg); font-size: 16px; font-weight: 500; outline: none; }
.try input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.try .btn { min-height: 52px; padding: 0 26px; font-size: 15px; }
.trow.col { flex-direction: column; align-items: stretch; gap: 10px; }
.dict-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.dict-form .sel { min-width: 0; }
.word .x { all: unset; cursor: pointer; width: 26px; height: 26px; margin-right: -8px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); font-size: 18px; line-height: 1; }
.word .x:hover { background: rgba(255,255,255,.08); color: var(--fg); }
.word .x:focus-visible { outline: 2px solid var(--focus); }
.danger-row { display: flex; justify-content: flex-end; padding-top: 8px; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.side .btn { width: 100%; }
input.sel:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kpi b { max-width: 100%; }
@media (max-width: 560px) { .dnav { width: 100%; border-radius: 28px; } .tabs { order: 3; width: 100%; justify-content: center; } .picker .dd-label { max-width: 90px; } #user .dd-label { max-width: 70px; } }

#user-dd .dd-list { min-width: 140px; }
@media (max-width: 760px) { #user .dd-label, #user .dd-chev { display: none; } #user .dd-btn { padding: 0 4px; } #user { padding-right: 4px; } }
