/* макетные keyframes */
@keyframes om-grain { 0%{transform:translate3d(0,0,0)} 20%{transform:translate3d(-6%,4%,0)} 40%{transform:translate3d(5%,-5%,0)} 60%{transform:translate3d(-4%,-3%,0)} 80%{transform:translate3d(6%,3%,0)} 100%{transform:translate3d(0,0,0)} }
  @keyframes om-scan { from{transform:translateY(-100%)} to{transform:translateY(100%)} }
  @keyframes om-flick { 0%,100%{opacity:.94} 12%{opacity:.99} 23%{opacity:.86} 37%{opacity:1} 58%{opacity:.9} 71%{opacity:.97} }
  @keyframes om-idle { 0%,100%{transform:translate3d(0,0,0) rotate(-.6deg)} 28%{transform:translate3d(-5px,-12px,0) rotate(.4deg)} 55%{transform:translate3d(3px,-6px,0) rotate(.9deg)} 78%{transform:translate3d(6px,-14px,0) rotate(.1deg)} }
  @keyframes om-breathe { 0%,100%{transform:scale(1,1)} 40%{transform:scale(.994,1.012)} 70%{transform:scale(1.006,.994)} }
  @keyframes om-shake { 0%{transform:translate(0,0)} 15%{transform:translate(-14px,10px)} 30%{transform:translate(11px,-8px)} 45%{transform:translate(-8px,-6px)} 60%{transform:translate(6px,7px)} 80%{transform:translate(-3px,2px)} 100%{transform:translate(0,0)} }
  @keyframes om-ring { 0%{transform:translate(-50%,0) scale(.2);opacity:.85} 100%{transform:translate(-50%,0) scale(2.6);opacity:0} }
  @keyframes om-dust { 0%{transform:translate(-50%,0) scale(.3);opacity:.9;filter:blur(2px)} 100%{transform:translate(-50%,-70px) scale(1.9);opacity:0;filter:blur(16px)} }
  @keyframes om-speed { 0%{opacity:0;transform:scaleY(1.4)} 15%{opacity:.85} 100%{opacity:0;transform:scaleY(.6)} }
  @keyframes om-blink { 0%,45%{opacity:1} 50%,100%{opacity:.15} }
  @keyframes om-crt { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,1%)} 50%{transform:translate(1%,-2%)} 75%{transform:translate(2%,2%)} 100%{transform:translate(0,0)} }
  @keyframes om-kata { 0%{opacity:0;transform:translate(-50%,-50%) scale(1.6) skewX(-10deg)} 12%{opacity:1;transform:translate(-50%,-50%) scale(1) skewX(-10deg)} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.04) skewX(-10deg)} }
  @keyframes om-sweep { 0%{transform:translateY(-120%)} 100%{transform:translateY(420%)} }
  
  
  @keyframes dz-blink { 0%,45%{opacity:1} 50%,100%{opacity:.15} }
  @keyframes dz-sweep { from{transform:translateY(-120%)} to{transform:translateY(520%)} }
  @keyframes dz-crt { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,1%)} 50%{transform:translate(1%,-2%)} 75%{transform:translate(2%,2%)} 100%{transform:translate(0,0)} }
  @keyframes dz-in { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
  @keyframes dz-toast { 0%{opacity:0;transform:translateY(16px)} 12%{opacity:1;transform:translateY(0)} 88%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(-8px)} }
  @keyframes signal-pulse { 0%,100%{box-shadow:inset 0 0 0 rgba(255,47,32,0),0 0 0 rgba(255,47,32,0)} 50%{box-shadow:inset 3px 0 0 #ff2f20,0 0 18px rgba(255,47,32,.18)} }

/* ============ ASKAA FILMING — дизайн-система (по макету) ============ */
:root {
  --sidebar-w:252px;
  --sidebar-w-compact:220px;
  --header-h:80px;
  --control-h:42px;
  --control-h-sm:36px;
  --control-h-touch:44px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:28px;
  --radius-sm:2px;
  --radius-md:4px;
  --surface:#0b0b0d;
  --surface-raised:#101113;
  --border:#1b1c1f;
  --text:#ece7e1;
  --muted:#7e7972;
  --green:#79ffb0;
  --red:#ff2f20;
}
*, *::before, *::after { box-sizing:border-box; }
html, body { margin:0; padding:0; background:#08080a; min-height:100%; max-width:100%; }
body { color:#ece7e1; font:15px 'Chakra Petch',sans-serif; }
a { color:#ff5a49; text-decoration:none; }
a:hover { color:#ff9186; }
::selection { background:rgba(255,47,32,.35); }
input, button, select, textarea { font-family:'Chakra Petch',sans-serif; }
* { scrollbar-width:thin; scrollbar-color:#26272b #0b0b0d; }

/* --- интерактив логин-сцены (hover/focus из макета) --- */
.cam-k:hover { background:linear-gradient(180deg,#3a3c40,#191a1c) !important; }
.cam-k:active { box-shadow:inset 0 3px 8px rgba(0,0,0,.8); }
.crt-in:focus { border-color:#8dffc0 !important; box-shadow:0 0 0 1px rgba(120,255,180,.5), 0 0 18px rgba(60,255,150,.25); }
.crt-go:hover { background:linear-gradient(180deg, rgba(60,255,155,.34), rgba(14,80,42,.95)) !important; }
.crt-go:active { transform:translateY(1px); }
.skip-b:hover { background:rgba(255,50,35,.22) !important; border-color:#ff3b2f !important; }

/* --- каркас дашборда --- */
.dz { display:grid; grid-template-columns:var(--sidebar-w) minmax(0,1fr); min-height:100vh; background:#08080a; color:#ece7e1; }
.dz-side { width:var(--sidebar-w); min-width:0; background:linear-gradient(180deg,#0c0c0e,#08080a); border-right:1px solid var(--border); display:flex; flex-direction:column; position:sticky; align-self:start; top:0; z-index:7; height:100dvh; overflow-y:auto; }
.dz-brand { width:100%; display:flex; align-items:center; gap:12px; padding:20px 18px 16px; border:0; border-bottom:1px solid #17181a; background:transparent; color:inherit; font:inherit; text-align:left; text-decoration:none; cursor:pointer; }
.dz-brand img { width:38px; height:38px; object-fit:contain; }
.dz-brand strong { font-size:15px; letter-spacing:.14em; display:block; }
.dz-brand span { font:400 10px 'Share Tech Mono',monospace; letter-spacing:.14em; color:#7e7972; }
.dz-brand:hover { background:#101113; }
.dz-brand:focus-visible { outline:2px solid #79ffb0; outline-offset:-3px; }
.dz-nav { flex:1; overflow-y:auto; padding:12px 10px; display:flex; flex-direction:column; gap:2px; }
.dz-nav button { display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:10px; text-align:left; cursor:pointer; background:transparent; border:none; border-left:2px solid transparent; border-radius:2px; padding:10px 12px; font:600 13px 'Chakra Petch',sans-serif; letter-spacing:.08em; color:#9a938c; }
.dz-nav button:hover { background:#151618; color:#f6f1eb; }
.dz-nav button.active { background:#141012; color:#ffd9d4; border-left-color:#ff2f20; }
.dz-nav button.has-unread { color:#ffd9d4; border-left-color:#ff2f20; background:rgba(255,47,32,.09); animation:signal-pulse 1.5s ease-in-out infinite; }
.dz-nav .ico { color:#ff5a49; font-size:14px; }
.dz-nav .bdg { font:700 10px 'Share Tech Mono',monospace; color:#79ffb0; border:1px solid rgba(90,255,160,.3); padding:1px 6px; border-radius:2px; }
.dz-nav button.has-unread .bdg { color:#ffd9d4; border-color:rgba(255,90,73,.7); background:rgba(255,47,32,.18); }
.dz-foot { padding:14px 18px 18px; border-top:1px solid #17181a; display:flex; flex-direction:column; gap:7px; font:400 11px 'Share Tech Mono',monospace; letter-spacing:.1em; color:#7e7972; }
.dz-live { display:flex; align-items:center; gap:8px; color:#79ffb0; }
.dot-g { width:7px; height:7px; border-radius:50%; background:#3fe488; box-shadow:0 0 10px #3fe488; animation:dz-blink 2.4s steps(1) infinite; }
.dot-r { width:7px; height:7px; border-radius:50%; background:#ff2f20; box-shadow:0 0 10px #ff2f20; animation:dz-blink 1.5s steps(1) infinite; }
.mobile-menu-toggle, .mobile-menu-backdrop { display:none; }
.mobile-menu-backdrop[hidden] { display:none !important; }

.dz-main { min-width:0; min-height:100vh; display:flex; flex-direction:column; }
.dz-top { position:sticky; top:0; z-index:8; display:flex; align-items:center; gap:var(--space-5); min-height:var(--header-h); padding:var(--space-4) var(--space-6); background:rgba(8,8,10,.95); backdrop-filter:blur(8px); border-bottom:1px solid var(--border); }
.dz-top .crumbs { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.dz-top .crumbs span { font:400 11px 'Share Tech Mono',monospace; letter-spacing:.28em; color:#ff5a49; text-transform:uppercase; }
.dz-top h1 { margin:0; font-size:25px; font-weight:700; letter-spacing:.02em; }
.dz-top h1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rec-pill { display:flex; align-items:center; gap:10px; padding:7px 13px; border:1px solid #223a2c; border-radius:2px; background:#06130c; font:400 12px 'Share Tech Mono',monospace; letter-spacing:.16em; color:#79ffb0; white-space:nowrap; }
.user-pill { display:flex; align-items:center; gap:10px; padding:6px 12px 6px 6px; border:1px solid #222327; border-radius:2px; background:#0e0f11; }
.user-pill .ava { width:34px; height:34px; border-radius:2px; display:grid; place-items:center; background:#141517; border:1px solid #26272b; font:700 12px 'Chakra Petch',sans-serif; color:#ff8378; }
.user-pill strong { font-size:13px; display:block; }
.user-pill small { font:400 11px 'Share Tech Mono',monospace; color:#7e7972; }
.btn-exit { cursor:pointer; background:transparent; border:1px solid #3a1a16; border-radius:var(--radius-sm); font:700 12px 'Chakra Petch',sans-serif; letter-spacing:.18em; color:#ff8378; white-space:nowrap; }
.btn-exit:hover { background:rgba(255,47,32,.16); border-color:#ff2f20; color:#ffd9d4; }
.dz-page { width:100%; min-width:0; padding:var(--space-6) var(--space-6) 60px; display:flex; flex-direction:column; gap:22px; animation:dz-in .35s ease-out; container-type:inline-size; }

/* --- панели, секции --- */
.panel { min-width:0; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); container-type:inline-size; }
.panel-h { display:flex; align-items:center; gap:14px; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #17181a; flex-wrap:wrap; }
.panel-h h3 { margin:0; font-size:17px; letter-spacing:.04em; flex:1; }
.panel-h .note { font:400 11px 'Share Tech Mono',monospace; letter-spacing:.18em; color:#7e7972; text-transform:uppercase; }
.panel-body { padding:16px 20px; }

/* --- hero (обзор) --- */
.hero-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:18px; }
.hero { position:relative; overflow:hidden; border:1px solid #1b1c1f; border-radius:3px; background:linear-gradient(120deg,#100b0b,#0b0b0d 55%); padding:26px 28px; }
.hero .kanji { position:absolute; right:-40px; top:-30px; font-family:'Zen Kaku Gothic New',sans-serif; font-weight:900; font-size:150px; line-height:1; color:rgba(255,47,32,.06); pointer-events:none; }
.hero .eyebrow { font:400 11px 'Share Tech Mono',monospace; letter-spacing:.28em; color:#ff5a49; }
.hero h2 { margin:10px 0 12px; font-size:30px; line-height:1.15; letter-spacing:.01em; max-width:22ch; }
.hero p { margin:0; max-width:60ch; color:#b3aca4; line-height:1.55; }
.hero .cta { display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.secure { position:relative; overflow:hidden; border:1px solid #223a2c; border-radius:3px; background:#07130c; padding:22px 24px; display:flex; flex-direction:column; gap:10px; }
.secure .sweep { position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,transparent,rgba(90,255,160,.06),transparent); animation:dz-sweep 5.5s linear infinite; }
.secure .tag { font:400 11px 'Share Tech Mono',monospace; letter-spacing:.26em; color:#4fd88c; }
.secure strong { font-size:19px; color:#c9ffe2; }
.secure p { margin:0; color:#8fbfa2; line-height:1.5; font-size:13px; }
.secure .cells { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:6px; font:700 12px 'Chakra Petch',sans-serif; color:#c9ffe2; }
.secure .cells > div { border:1px solid #1d3527; border-radius:2px; padding:10px 12px; background:rgba(10,40,24,.35); }
.secure .cells span { font:400 10px 'Share Tech Mono',monospace; letter-spacing:.12em; color:#4fd88c; }

/* --- статы --- */
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.stat-card { position:relative; overflow:hidden; border:1px solid #1b1c1f; border-radius:3px; background:#0b0b0d; padding:16px 18px; display:flex; flex-direction:column; gap:8px; font-family:'Share Tech Mono',monospace; color:#79ffb0; }
.stat-card .lbl { font-size:11px; letter-spacing:.22em; color:#4fd88c; text-transform:uppercase; }
.stat-card .val { font-family:'Chakra Petch',sans-serif; font-size:38px; line-height:1; color:#c9ffe2; text-shadow:0 0 14px rgba(60,255,150,.35); }
.stat-card .sub { font-size:11px; letter-spacing:.1em; color:#7e7972; }
.spark { display:flex; align-items:flex-end; gap:3px; height:26px; margin-top:4px; }
.spark i { flex:1; background:linear-gradient(180deg,rgba(90,255,160,.7),rgba(90,255,160,.12)); border-radius:1px; min-height:2px; }

/* --- бейджи --- */
.badge { justify-self:start; align-self:center; white-space:nowrap; display:inline-block; padding:5px 11px; border-radius:2px; font:700 11px 'Chakra Petch',sans-serif; letter-spacing:.18em; text-transform:uppercase; }
.badge.green { border:1px solid rgba(90,255,160,.45); background:rgba(40,200,120,.12); color:#79ffb0; }
.badge.red { border:1px solid #4a1c17; background:rgba(255,47,32,.14); color:#ff8d80; }
.badge.amber { border:1px solid #4a3a17; background:rgba(255,190,60,.12); color:#ffd27d; }
.badge.grey { border:1px solid #2a2b2f; background:#131416; color:#9a938c; }

/* --- строки-таблицы --- */
.thead, .trow { display:grid; gap:16px; padding:11px 20px; border-bottom:1px solid #17181a; align-items:center; }
.thead { font:400 11px 'Share Tech Mono',monospace; letter-spacing:.2em; color:#7e7972; text-transform:uppercase; }
.trow { padding:15px 20px; border-color:#131416; }
.trow:hover { background:#0f1012; }
.trow small { display:block; font:400 11px 'Share Tech Mono',monospace; color:#7e7972; margin-top:3px; letter-spacing:.06em; }
.trow .cellmuted { color:#9a938c; font-size:13px; }
.cell-id { display:flex; align-items:center; gap:11px; min-width:0; }
.cell-id > div { min-width:0; }
.cell-id .ava { width:34px; height:34px; flex:0 0 34px; border-radius:2px; display:grid; place-items:center; background:#141517; border:1px solid #26272b; font:700 12px 'Chakra Petch',sans-serif; color:#ff8378; }
.person-inline { display:inline-flex; align-items:center; gap:8px; min-width:0; }
.person-inline > span:last-child { min-width:0; }
.person-inline .person-name, .person-inline .person-username { display:block; }
.person-inline .person-username { font:400 10px 'Share Tech Mono',monospace; color:#7e7972; letter-spacing:.05em; }
.person-inline .ava { width:28px; height:28px; flex:0 0 28px; border-radius:2px; display:grid; place-items:center; background:#141517; border:1px solid #26272b; font:700 10px 'Chakra Petch',sans-serif; color:#ff8378; }
.progress { height:7px; border:1px solid #26272b; border-radius:2px; background:#101113; overflow:hidden; }
.progress i { display:block; height:100%; background:linear-gradient(90deg,#ff3b2f,#ff8378); }
.progress.ok i { background:linear-gradient(90deg,#2fbf71,#79ffb0); }
.model-row .cell-id > div { min-width:0; overflow:hidden; }
.model-row .cell-id strong, .model-row .cell-id small { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.model-row > :nth-child(2) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.model-row > :nth-child(3) small { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* --- кнопки --- */
.btn, .btn-primary, .btn-exit {
  min-height:var(--control-h);
  padding:0 var(--space-4);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-2);
  line-height:1.2;
  max-width:100%;
  overflow-wrap:anywhere;
}
.btn { cursor:pointer; background:transparent; border:1px solid #2c2d31; border-radius:var(--radius-sm); font:700 12px 'Chakra Petch',sans-serif; letter-spacing:.14em; color:#cfc8c1; text-transform:uppercase; }
.btn:hover { border-color:#ff2f20; color:#ffd9d4; }
.btn.ghost:hover { border-color:#4a4b50; color:#fff; }
.btn-primary { cursor:pointer; background:linear-gradient(180deg,#ff3b2f,#b8180e); border:none; border-radius:var(--radius-sm); font:700 13px 'Chakra Petch',sans-serif; letter-spacing:.16em; color:#fff; text-transform:uppercase; }
.btn-primary:hover { filter:brightness(1.12); }
.btn-primary:disabled { opacity:.6; cursor:default; }
.btn.danger { border-color:#4a1c17; color:#ff8d80; }
.btn.danger:hover { background:rgba(255,47,32,.16); border-color:#ff2f20; color:#ffd9d4; }
.btn--sm, .kcard .k-act .btn { min-height:var(--control-h-sm); padding:0 var(--space-3); font-size:11px; }
.actions { display:flex; align-items:center; gap:var(--space-2); flex-wrap:wrap; min-width:0; }
.actions--end { justify-content:flex-end; }
.actions--top { margin-top:var(--space-4); }

/* --- формы --- */
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; align-items:end; }
.field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.field label { font:400 11px 'Share Tech Mono',monospace; letter-spacing:.2em; color:#7e7972; text-transform:uppercase; }
.in, .field select, .field input, .field textarea { width:100%; box-sizing:border-box; background:#0e0f11; border:1px solid #26272b; border-radius:var(--radius-sm); padding:9px 12px; font:400 14px 'Chakra Petch',sans-serif; color:#ece7e1; outline:none; }
.in:not(textarea), .field select, .field input:not([type='checkbox']):not([type='radio']) { min-height:var(--control-h); }
.field input:focus, .field select:focus, .in:focus { border-color:#5fe89b; box-shadow:0 0 0 1px rgba(120,255,180,.35); }

/* --- канбан --- */
.kanban { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.kanban .col-h { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #17181a; }
.kanban .col-h strong { font-size:14px; letter-spacing:.16em; text-transform:uppercase; }
.kanban .col-h span { font:400 11px 'Share Tech Mono',monospace; color:#7e7972; }
.kanban .col-body { padding:12px; display:flex; flex-direction:column; gap:10px; min-height:60px; }
.kcard { border:1px solid #232428; border-radius:2px; background:#101113; padding:13px 14px; display:flex; flex-direction:column; gap:9px; }
.kcard:hover { border-color:#33353a; }
.kcard .k-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.kcard strong { font-size:14px; line-height:1.3; }
.kcard .meta { font:400 11px 'Share Tech Mono',monospace; letter-spacing:.08em; color:#7e7972; }
.kcard .k-act { display:flex; gap:8px; flex-wrap:wrap; }
.kcard .k-act .go { border-color:#3a1a16; color:#ff8378; }
.kcard .k-act .go:hover { background:rgba(255,47,32,.24); color:#fff; border-color:#ff2f20; }

/* --- верификации --- */
.verif-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:16px; }
.vcard { border:1px solid #1b1c1f; border-radius:3px; background:#0b0b0d; padding:16px 18px; display:flex; flex-direction:column; gap:11px; }
.vcard .v-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.vcard .chan { font:400 12px 'Share Tech Mono',monospace; letter-spacing:.08em; color:#7e7972; }
.vsteps { display:flex; flex-direction:column; gap:7px; font-size:13px; color:#b3aca4; }
.vsteps span { display:flex; gap:9px; align-items:center; }
.vdot { width:8px; height:8px; border-radius:50%; flex:0 0 8px; }
.vdot.ok { background:#3fe488; box-shadow:0 0 8px rgba(63,228,136,.7); }
.vdot.wait { background:#ffbe3c; box-shadow:0 0 8px rgba(255,190,60,.6); }
.vdot.bad { background:#ff2f20; box-shadow:0 0 8px rgba(255,47,32,.6); }

/* --- отчёт-бар --- */
.chart { display:flex; align-items:flex-end; gap:18px; height:200px; padding:20px; overflow-x:auto; }
.chart .cbar { display:flex; flex-direction:column; align-items:center; gap:8px; min-width:56px; }
.chart .bars { display:flex; align-items:flex-end; gap:5px; height:150px; }
.chart .bars i { width:14px; border-radius:1px 1px 0 0; display:block; }
.chart .plan { background:linear-gradient(180deg,#3a3b40,#232428); border:1px solid #34353a; }
.chart .fact { background:linear-gradient(180deg,#ff3b2f,#7d150c); box-shadow:0 0 12px rgba(255,47,32,.35); }
.chart .cl { font:400 10px 'Share Tech Mono',monospace; letter-spacing:.1em; color:#4fd88c; max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.legend { display:flex; gap:18px; padding:0 20px 16px; font:400 11px 'Share Tech Mono',monospace; letter-spacing:.14em; color:#9a938c; }
.legend span { display:flex; align-items:center; gap:7px; }
.legend i { width:12px; height:8px; display:inline-block; }
.legend .plan { background:#3a3b40; }
.legend .fact { background:#ff3b2f; }
/* Разведка использует зелёный акцент, чтобы найденные каналы не путались
   с красными фактами отчётов. */
.discovery-chart .fact { background:linear-gradient(180deg,#65f2a3,#16834b); box-shadow:0 0 12px rgba(63,228,136,.38); }
.discovery-chart .cl { color:#75eaa8; }
.discovery-chart .cbar[tabindex] { cursor:help; outline:none; }
.discovery-chart .cbar[tabindex]:focus-visible { filter:brightness(1.2); }
.chart-hover-tooltip { position:fixed; z-index:90; max-width:min(300px,calc(100vw - 24px)); padding:9px 12px; border:1px solid #3f8058; border-radius:var(--radius-sm); background:#07130c; color:#c9ffe2; box-shadow:0 10px 28px rgba(0,0,0,.65),0 0 14px rgba(63,228,136,.16); font:400 11px/1.35 'Share Tech Mono',monospace; letter-spacing:.05em; pointer-events:none; }
.chart-hover-tooltip[hidden] { display:none; }
.discovery-legend .fact { background:#45d889; }
.discovery-stats { margin:16px 20px 6px; }
.discovery-stats .stat-card { border-color:#214936; background:#0b1710; }
.discovery-stats .stat-card .val { color:#75eaa8; }
.discovery-filters { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.discovery-presets { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.discovery-presets > * { flex:0 0 auto; }
.discovery-export { white-space:nowrap; }
.discovery-calendar { flex:1 1 560px; max-width:720px; border:1px solid #26272b; background:#0e0f11; padding:14px; }
.calendar-head { display:grid; grid-template-columns:38px 1fr 38px; align-items:center; gap:8px; margin-bottom:12px; }
.calendar-head strong { text-align:center; color:#c9ffe2; font-size:15px; text-transform:capitalize; }
.calendar-nav { padding:7px 0; font-size:20px; line-height:1; letter-spacing:0; }
.calendar-weekdays, .calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.calendar-weekdays { margin-bottom:5px; }
.calendar-weekdays span { text-align:center; color:#7e7972; font:400 10px 'Share Tech Mono',monospace; letter-spacing:.12em; text-transform:uppercase; }
.calendar-empty { height:40px; }
.calendar-day { min-width:0; height:40px; padding:5px; border:1px solid #1b1c1f; border-radius:2px; background:#111214; color:#5f5a55; font:400 12px 'Share Tech Mono',monospace; cursor:not-allowed; }
.calendar-day.is-available { border-color:#31523d; color:#c9ffe2; background:#102117; cursor:pointer; }
.calendar-day.is-available:hover { border-color:#5fe89b; background:#173322; }
.calendar-day.in-range { background:#173322; border-color:#3f8058; color:#a8f6c3; }
.calendar-day.is-from, .calendar-day.is-to { background:#ff3b2f; border-color:#ff8378; color:#fff; box-shadow:0 0 12px rgba(255,47,32,.28); }
.calendar-selection { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:13px; }
.calendar-part { flex:1 1 150px; min-width:0; padding:9px 11px; text-align:left; border:1px solid #26272b; border-radius:2px; background:#101113; color:#9a938c; font:400 11px 'Share Tech Mono',monospace; letter-spacing:.06em; cursor:pointer; }
.calendar-part strong { color:#c9ffe2; font-weight:400; }
.calendar-part:hover { border-color:#5fe89b; }
.discovery-period { display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; border-left:1px solid #26272b; padding-left:14px; }
.discovery-period-label { align-self:center; color:#c9ffe2; font-size:12px; letter-spacing:.08em; }
.discovery-period label { display:flex; flex-direction:column; gap:5px; color:#7e7972; font:400 10px 'Share Tech Mono',monospace; letter-spacing:.14em; text-transform:uppercase; }
.discovery-period select { min-width:150px; }
.discovery-help { flex-basis:100%; color:#7e7972; font:400 11px 'Share Tech Mono',monospace; letter-spacing:.05em; }

/* --- прочее --- */
.toast { position:fixed; left:50%; bottom:34px; transform:translateX(-50%); z-index:20; padding:12px 22px; border:1px solid #223a2c; background:#04140b; color:#c9ffe2; font:400 13px 'Share Tech Mono',monospace; letter-spacing:.12em; box-shadow:0 20px 50px rgba(0,0,0,.6); animation:dz-toast 2.6s ease-out forwards; border-radius:2px; }
.empty { padding:26px 20px; color:#7e7972; font:400 13px 'Share Tech Mono',monospace; letter-spacing:.08em; }
.error-line { color:#ff8d80; font-size:13px; }
.people-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; }
.model-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.model-hero-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.model-hero-main { display:flex; flex-direction:column; align-items:flex-start; gap:18px; min-width:0; }
.model-identity { display:flex; align-items:center; gap:14px; }
.model-identity .ava { width:56px; height:56px; flex:0 0 56px; border-radius:3px; display:grid; place-items:center; background:#141517; border:1px solid #2a2b2f; font-weight:700; color:#ff8378; }
.model-identity h2 { margin:0 0 5px; font-size:26px; line-height:1.15; }
.week-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:16px 20px; }
.week-strip > div { border:1px solid #1b1c1f; background:#101113; padding:13px 14px; display:flex; flex-direction:column; gap:6px; }
.week-meta { padding:0 20px 16px; color:#7e7972; font:400 11px 'Share Tech Mono',monospace; letter-spacing:.06em; overflow-wrap:anywhere; }
.week-strip span { font:400 10px 'Share Tech Mono',monospace; letter-spacing:.16em; color:#7e7972; text-transform:uppercase; }
.week-strip strong { color:#c9ffe2; font-size:20px; }
.week-result.ok { border-color:#245339; background:#071b10; }
.week-result.warn { border-color:#4a3a17; background:#1b1608; }
.week-result.warn strong { color:#ffd27d; font-size:15px; }
.person-chip { display:flex; flex-direction:column; gap:8px; border:1px solid #1b1c1f; background:#101113; padding:12px; border-radius:2px; }
.person-chip > div, .person-chip { color:#cfc8c1; }
.person-chip .cell-id, .profile-head { display:flex; align-items:center; gap:10px; }
.person-chip small, .profile-head small, .vprofile small, .vitem small, .video-mini small { display:block; color:#7e7972; font:400 11px 'Share Tech Mono',monospace; margin-top:3px; }
.verif-profile-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(360px,1fr)); gap:14px; padding:16px 20px; }
.vprofile { border:1px solid #1b1c1f; background:#0b0b0d; padding:16px; border-radius:3px; }
.vprofile-meta { margin:12px 0; color:#9a938c; font:400 12px 'Share Tech Mono',monospace; }
.v-items { display:flex; flex-direction:column; gap:8px; }
.vitem, .list-line { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid #17181a; }
.vitem .k-act { justify-content:flex-end; }
.list-stack { padding:0 20px; }
.video-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; padding:16px 20px; }
.video-mini { border:1px solid #1b1c1f; background:#101113; padding:10px; display:flex; flex-direction:column; gap:9px; }
.video-mini img { width:100%; aspect-ratio:16/9; object-fit:cover; background:#08080a; }
.video-mini > div.no-thumb::before { content:'Обложка недоступна'; display:block; margin-bottom:7px; color:#7e7972; font:400 10px 'Share Tech Mono',monospace; letter-spacing:.08em; text-transform:uppercase; }
.video-mini .btn { margin-top:8px; display:inline-block; }
.video-title { display:-webkit-box; min-height:2.45em; overflow:hidden; color:#ece7e1; font-weight:700; line-height:1.22; text-decoration:none; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.video-title:hover { color:#ff9186; text-decoration:underline; }
.video-description { display:-webkit-box; min-height:5.8em; overflow:hidden; color:#9a938c; font-size:12px; line-height:1.45; margin:7px 0 0; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
.model-task-head, .model-task-row { grid-template-columns:minmax(150px,1.25fr) minmax(90px,.8fr) minmax(120px,1fr) minmax(180px,1.5fr) minmax(220px,1.7fr); }
.model-task-row .task-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.table-editor-verifications > .thead, .table-editor-verifications > .editor-verification-row { grid-template-columns:minmax(170px,1.2fr) minmax(210px,1.2fr) minmax(120px,.7fr) minmax(280px,1.5fr); }
.editor-verification-row { align-items:start; }
.verification-ready-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:var(--space-2); min-width:0; }
.verification-ready-form .task-ready-error { grid-column:1 / -1; }
.task-redo-summary { display:flex; width:max-content; max-width:100%; margin-top:8px; color:#ff9186; border-color:#57221d; }
.task-redo-summary:hover { border-color:var(--red); background:rgba(255,47,32,.1); }
.task-links, .task-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.task-actions .btn { flex:0 1 auto; }
[data-ready-task][hidden] { display:none; }
.task-ready-form { flex:1 1 100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:var(--space-2); min-width:0; margin-top:var(--space-2); }
.task-ready-form[hidden] { display:none; }
.task-ready-input { grid-column:1 / -1; min-width:0; }
.task-ready-error { grid-column:1 / -1; min-height:1.35em; color:#ff9186; font:400 11px/1.35 'Share Tech Mono',monospace; overflow-wrap:anywhere; }
.task-ready-error:empty { display:none; }
.task-content-request { flex:1 1 100%; min-width:0; padding:10px; border:1px solid #624d18; background:#171307; display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.task-content-request strong { color:#ffd979; font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.task-content-request span { line-height:1.4; overflow-wrap:anywhere; }
.task-content-request small { color:#a69b85; }
.task-content-request .btn { margin-top:4px; }
.task-content-complete { flex:1 1 100%; color:#75eaa8; line-height:1.35; }
.content-request-form { flex:1 1 100%; width:100%; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-2); }
.content-request-form[hidden] { display:none; }
.content-request-form textarea { grid-column:1 / -1; width:100%; min-height:92px; resize:vertical; line-height:1.4; }
.task-edit-open { overflow:hidden; }
.task-edit-backdrop { position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:var(--space-5); background:rgba(0,0,0,.78); backdrop-filter:blur(5px); }
.task-edit-backdrop[hidden] { display:none; }
.task-edit-dialog { width:min(620px,100%); max-height:calc(100dvh - (var(--space-5) * 2)); overflow:auto; border:1px solid #303238; border-top-color:#ff5a49; border-radius:var(--radius-md); background:var(--surface-raised); box-shadow:0 22px 70px rgba(0,0,0,.65),0 0 28px rgba(255,47,32,.08); }
.task-edit-head { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-4); padding:var(--space-5); border-bottom:1px solid var(--border); }
.task-edit-head > div { min-width:0; }
.task-edit-head span { color:#ff6b5e; font:400 10px 'Share Tech Mono',monospace; letter-spacing:.2em; }
.task-edit-head h2 { margin:5px 0 0; font-size:22px; }
.task-edit-head p { margin:5px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.task-edit-close { flex:0 0 var(--control-h); width:var(--control-h); min-height:var(--control-h); border:1px solid #3a1a16; border-radius:var(--radius-sm); background:transparent; color:#ff8378; cursor:pointer; font-size:24px; line-height:1; }
.task-edit-close:hover { border-color:var(--red); background:rgba(255,47,32,.12); }
.task-edit-form { display:grid; gap:var(--space-4); padding:var(--space-5); }
.task-edit-form .field { min-width:0; }
.task-edit-form .field small { display:block; margin-top:6px; color:var(--muted); font:400 10px/1.4 'Share Tech Mono',monospace; }
.task-edit-form textarea { min-height:120px; resize:vertical; line-height:1.45; }
.task-edit-error { min-height:1.35em; color:#ff9186; font:400 11px/1.35 'Share Tech Mono',monospace; overflow-wrap:anywhere; }
.task-edit-error:empty { display:none; }
.task-edit-actions { display:flex; justify-content:flex-end; gap:var(--space-2); flex-wrap:wrap; }
.task-edit-actions .btn, .task-edit-actions .btn-primary { flex:0 1 auto; }
.task-redo-note { padding:var(--space-4); border:1px solid #57221d; border-left:3px solid var(--red); border-radius:var(--radius-sm); background:rgba(255,47,32,.07); color:#f3e7e4; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-publish-dialog { width:min(720px,100%); }
.task-publish-form { gap:var(--space-2); }
.task-publish-result { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:var(--space-2); }
.task-publish-result .btn { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; }
.task-publish-result .btn[hidden] { display:none; }
.task-publish-meta { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:var(--space-3); }
.task-publish-form textarea { min-height:92px; resize:vertical; line-height:1.45; }
.task-publish-gemini-note { display:block; min-height:1.4em; color:var(--muted); font:400 10px/1.4 'Share Tech Mono',monospace; overflow-wrap:anywhere; }
.task-publish-actions { display:grid; grid-template-columns:minmax(220px,1fr) auto auto; align-items:center; gap:var(--space-2); }
.task-publish-actions .btn, .task-publish-actions .btn-primary { width:100%; white-space:nowrap; }
.verif-detail-line { align-items:flex-start; }
.audit-details { margin-top:14px; border-top:1px solid #17181a; padding-top:10px; font-size:12px; color:#9a938c; }
.audit-details div { padding:4px 0; }
.audit-details pre { margin:8px 0 0; padding:10px; max-height:320px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:#08090a; border:1px solid #1b1c1f; color:#b9f4cd; font:400 11px 'Share Tech Mono',monospace; }
.visit-summary { display:grid; grid-template-columns:repeat(3,minmax(150px,1fr)); gap:10px; border-bottom:1px solid #17181a; }
.visit-summary > div { display:flex; flex-direction:column; gap:5px; padding:10px 12px; border:1px solid #1b1c1f; background:#0b0c0e; }
.visit-summary strong { color:#b9f4cd; font-size:18px; }
.visit-ip { color:#b9f4cd; font:400 12px 'Share Tech Mono',monospace; overflow-wrap:anywhere; }
.visit-agent { min-width:0; color:#7e7972; font:400 10px 'Share Tech Mono',monospace; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.verif-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; border:1px solid #1b1c1f; background:#0b0b0d; }
.tg-login-block { display:flex !important; align-items:flex-start !important; justify-content:center; color:#4fd88c; }
.tg-login-heading { color:#79ffb0; font:700 11px 'Share Tech Mono',monospace; letter-spacing:.14em; }
.tg-widget-slot { display:flex; align-items:center; min-height:28px; }
.tg-login-status { color:#7e7972; font:400 10px 'Share Tech Mono',monospace; letter-spacing:.04em; }
.tg-login-retry { cursor:pointer; padding:3px 8px; border:1px solid #31523d; border-radius:2px; background:#0d2115; color:#a8f6c3; font:400 10px 'Share Tech Mono',monospace; }
.tg-login-retry:hover { border-color:#5fe89b; color:#fff; }
.mobile-login-panel { display:none; }
#login-host.login-mobile-layout .mobile-login-panel {
  display:block;
  box-sizing:border-box;
  position:absolute;
  z-index:12;
  top:clamp(330px,43dvh,430px);
  left:12px;
  right:12px;
  bottom:auto;
  max-height:calc(57dvh - max(12px,env(safe-area-inset-bottom)));
  width:auto;
  max-width:520px;
  margin-inline:auto;
  padding:16px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(90,255,160,.42);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(5,25,14,.97),rgba(3,12,8,.98));
  box-shadow:0 20px 70px rgba(0,0,0,.75),inset 0 0 45px rgba(60,255,150,.06);
  color:#79ffb0;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .35s ease-out,transform .35s ease-out;
}
#login-host.login-mobile-layout.login-ready .mobile-login-panel { opacity:1; transform:translateY(0); }
#login-host.login-mobile-layout .login-scene-footer { display:none; }
.mobile-login-panel-head { display:grid; gap:3px; margin-bottom:12px; padding-bottom:11px; border-bottom:1px solid rgba(90,255,160,.22); }
.mobile-login-panel-head span { color:#4fd88c; font:400 10px 'Share Tech Mono',monospace; letter-spacing:.22em; }
.mobile-login-panel-head strong { color:#c9ffe2; font:700 18px 'Chakra Petch',sans-serif; letter-spacing:.15em; }
.mobile-login-panel-head small { color:#8fbfa2; font:400 11px 'Share Tech Mono',monospace; letter-spacing:.06em; }
#login-host.login-mobile-layout #rForm { display:grid !important; gap:8px !important; }
#login-host.login-mobile-layout #rForm label { font-size:11px !important; line-height:1.2; }
#login-host.login-mobile-layout #rForm input { min-height:46px; padding:10px 12px !important; font-size:16px !important; }
#login-host.login-mobile-layout #loginError { min-height:18px !important; font-size:11px !important; line-height:1.35; }
#login-host.login-mobile-layout #loginGo { min-height:46px; padding:10px !important; font-size:15px !important; }
#login-host.login-mobile-layout #rMobileTgMount { margin-top:12px; padding-top:12px; border-top:1px solid rgba(90,255,160,.22); }
#login-host.login-mobile-layout #rTg { box-sizing:border-box; width:100%; min-height:96px !important; margin:0; padding:0 !important; gap:7px !important; overflow:visible; }
#login-host.login-mobile-layout .tg-login-heading { font-size:12px; }
#login-host.login-mobile-layout .tg-widget-slot { width:100%; min-height:42px; overflow:visible; }
#login-host.login-mobile-layout .tg-widget-slot iframe { max-width:100%; }
#login-host.login-mobile-layout .tg-login-status { max-width:100%; font-size:10px; line-height:1.35; overflow-wrap:anywhere; }
#login-host.login-mobile-layout .tg-login-retry { min-height:34px; padding:6px 10px; }
.pref-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 0; border-bottom:1px solid #131416; }
.pref-row input { width:18px; height:18px; accent-color:#ff2f20; }
.gate { width:min(100%,560px); max-width:560px; margin:60px auto; align-self:center; }

/* --- API status and administrator console --- */
.api-status-note { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; color:#9a938c; font:400 12px 'Share Tech Mono',monospace; }
.api-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:16px 20px 20px; }
.api-status-card { min-width:0; border:1px solid #1b1c1f; border-radius:3px; background:#101113; padding:16px; display:flex; flex-direction:column; gap:13px; }
.api-status-card strong { display:block; color:#c9ffe2; font-size:15px; line-height:1.3; }
.api-status-card small { display:block; margin-top:5px; color:#7e7972; font:400 11px 'Share Tech Mono',monospace; line-height:1.4; }
.api-status-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; min-width:0; }
.api-status-head > div { min-width:0; }
.api-status-head .badge { flex:0 0 auto; }
.api-status-meta { display:flex; flex-direction:column; gap:5px; color:#9a938c; font:400 11px 'Share Tech Mono',monospace; line-height:1.35; }
.api-status-message { margin:0; padding-top:10px; border-top:1px solid #1b1c1f; color:#b9f4cd; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.api-status-actions { display:flex; justify-content:flex-end; margin-top:auto; padding-top:2px; }
.api-status-actions .btn { width:100%; }
.api-keys-form { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.api-credentials-row { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(190px,.85fr) auto; align-items:start; gap:14px; }
.api-key-field, .api-model-field, .api-key-actions { min-width:0; }
.api-key-actions { display:flex; align-items:flex-start; gap:8px; flex-wrap:wrap; padding-top:24px; }
.api-key-actions .btn-primary, .api-key-actions .btn { white-space:nowrap; }
.api-prompt-field { grid-column:1 / -1; }
.api-prompt-field textarea { min-height:150px; resize:vertical; line-height:1.45; }
.secret-preview { display:flex; align-items:center; gap:8px; min-height:34px; margin-top:8px; padding:7px 10px; border:1px solid #1d5a3a; border-radius:3px; background:#07170f; color:#b9f4cd; font:600 13px 'Share Tech Mono',monospace; letter-spacing:.08em; user-select:none; cursor:default; overflow:hidden; }
.secret-preview[data-secret-protected="true"] { pointer-events:none; }
.secret-edge { flex:0 0 auto; color:#c9ffe2; }
.secret-blur { flex:1 1 auto; min-width:70px; color:#61e89d; filter:blur(4px); opacity:.9; animation:secret-pulse 2.2s ease-in-out infinite; text-align:center; user-select:none; }
.secret-preview-empty { color:#7eab8d; border-color:#21422f; font-weight:400; letter-spacing:.04em; }
@keyframes secret-pulse { 0%,100% { filter:blur(4px); opacity:.65; } 50% { filter:blur(7px); opacity:1; } }
.check-line { display:flex !important; flex-direction:row !important; align-items:center; gap:8px; margin-top:8px; color:#9a938c !important; font:400 11px 'Share Tech Mono',monospace !important; letter-spacing:.03em !important; text-transform:none !important; }
.check-line input { width:16px; height:16px; accent-color:#ff3b2f; }
.console-actions { display:block; }
.console-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-2); }
.console-action-grid .btn { width:100%; min-width:0; }
.console-actions .error-line { min-height:1.4em; margin:var(--space-3) 0 0; }
.console-runtime { display:flex; flex-wrap:wrap; gap:10px 18px; color:#9a938c; font:400 12px 'Share Tech Mono',monospace; }
.console-runtime code { color:#b9f4cd; overflow-wrap:anywhere; }
.console-terminal { min-width:0; background:#070809; }
.console-terminal-toolbar { min-height:var(--control-h); padding:8px 14px; display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); border-bottom:1px solid #1b1c1f; color:#79ffb0; font:700 11px 'Share Tech Mono',monospace; letter-spacing:.14em; }
.console-terminal-toolbar span { display:inline-flex; align-items:center; gap:8px; }
.console-terminal-toolbar i { width:7px; height:7px; border-radius:50%; background:#3fe488; box-shadow:0 0 9px rgba(63,228,136,.8); }
.console-log-output { box-sizing:border-box; width:100%; height:220px; margin:0; padding:16px 18px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:#060708; border:0; border-bottom:1px solid #1b1c1f; color:#b9f4cd; font:400 11px/1.55 'Share Tech Mono',monospace; scrollbar-color:#31523d #08090a; }
.console-command-form { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:var(--space-3); padding:12px 14px; }
.console-command-form label { color:#5fe89b; font:700 12px 'Share Tech Mono',monospace; white-space:nowrap; }
.console-command-input { box-sizing:border-box; width:100%; min-width:0; min-height:var(--control-h); padding:8px 12px; border:1px solid #254331; border-radius:var(--radius-sm); outline:none; background:#0a100c; color:#d7ffe6; font:400 13px 'Share Tech Mono',monospace; }
.console-command-input:focus { border-color:#5fe89b; box-shadow:0 0 0 1px rgba(120,255,180,.3); }
.console-command-help { margin:0; padding:0 14px 14px; color:#777169; font:400 10px/1.5 'Share Tech Mono',monospace; overflow-wrap:anywhere; }

/* --- login host --- */
#login-host { position:fixed; inset:0; }

/* --- reusable layout and responsive system --- */
button, input, select, textarea { max-width:100%; }
.dz-page, .dz-top, .panel-body, .trow, .thead { min-width:0; }
.dz-top h1, .panel-h h3, .panel-h .note { min-width:0; overflow-wrap:anywhere; }
.dz-top .crumbs, .user-pill, .user-pill > div { min-width:0; }
.user-pill strong, .user-pill small, .cell-id strong, .cell-id small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.trow > *, .thead > * { min-width:0; }
.badge, .trow a, .panel a, .cellmuted, .vprofile, .vitem, .list-line { overflow-wrap:anywhere; }
.k-act { min-width:0; }
.form-grid { grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); }
.model-settings-form { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.model-settings-form .btn-primary { width:100%; min-height:var(--control-h); padding-inline:16px; white-space:nowrap; font-size:13px; letter-spacing:.16em; }
.people-grid { grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); }
.verif-profile-grid { grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr)); }
.video-grid { grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); }
.vitem, .list-line { flex-wrap:wrap; align-items:flex-start; }
.vitem > :first-child, .list-line > :first-child { min-width:0; flex:1 1 180px; }
.vitem .k-act, .list-line > :last-child { display:flex; flex-wrap:wrap; gap:var(--space-2); }
.vitem .k-act .btn, .list-line .btn { flex:0 1 auto; }

.table-shell { min-width:0; container-type:inline-size; }
.table-overview > .thead, .table-overview > .trow { grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) 150px 130px; }
.table-models--manage .model-thead, .table-models--manage .model-row { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 220px 140px 150px; }
.table-models--readonly .model-thead, .table-models--readonly .model-row { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 220px 140px 90px; }
.table-verification-profiles > .thead, .table-verification-profiles > div > .verification-table-row { grid-template-columns:minmax(0,1.35fr) minmax(170px,1fr) 140px 190px 110px; }
.table-legacy-verifications > .thead, .table-legacy-verifications > div > .verification-legacy-row { grid-template-columns:minmax(0,1.25fr) minmax(0,1.4fr) 160px 170px 150px; }
.verification-table-row .cell-id > div, .verification-legacy-row .cell-id > div { min-width:0; overflow:hidden; }
.verification-table-row .cell-id strong, .verification-table-row .cell-id small,
.verification-legacy-row .cell-id strong, .verification-legacy-row .cell-id small { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.verification-table-row:focus-visible { outline:1px solid #79ffb0; outline-offset:-2px; background:#101813; }
.legacy-verification-toolbar { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); flex-wrap:wrap; }
.legacy-verification-toolbar .cellmuted { flex:1 1 360px; }
.table-scenarios > .thead, .table-scenarios > .trow { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 140px 120px; }
.table-vault > .thead, .table-vault > .trow { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 120px 140px; }
.table-reports > .thead, .table-reports > .trow { grid-template-columns:minmax(0,1.4fr) 90px 90px 160px; }
.table-discovery > .thead, .table-discovery > .trow { grid-template-columns:minmax(0,1.15fr) minmax(0,1.35fr) 130px 130px 170px; }
.table-users > .thead, .table-users > .trow { grid-template-columns:minmax(0,1.3fr) 190px 140px 120px minmax(130px,auto); }
.table-user-tasks > .thead, .table-user-tasks > .trow { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 120px 170px; }
.table-audit > .thead, .table-audit > .trow { grid-template-columns:170px 150px 170px minmax(0,1fr); }
.table-audit .audit-event { display:block; min-width:0; max-width:100%; }
.table-audit .audit-event .badge { display:inline-block; max-width:100%; padding:5px 8px; overflow:visible; white-space:normal; overflow-wrap:anywhere; word-break:normal; text-overflow:clip; font-size:9px; line-height:1.3; letter-spacing:.12em; }
.table-audit .person-inline, .table-audit .person-copy { min-width:0; max-width:100%; overflow:hidden; }
.table-audit .person-name, .table-audit .person-username { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.table-feed > .thead, .table-feed > .trow { grid-template-columns:110px 120px minmax(0,1fr) 110px; }
.table-feed--all > .thead, .table-feed--all > .trow { grid-template-columns:110px 120px 160px minmax(0,1fr) 110px; }
.table-feed > .trow.signal-unread { position:relative; border-left:2px solid #ff2f20; background:linear-gradient(90deg,rgba(255,47,32,.13),rgba(255,47,32,.025) 58%,transparent); animation:signal-pulse 1.5s ease-in-out 3; }
.table-visits > .thead, .table-visits > .trow { grid-template-columns:minmax(170px,1.6fr) 96px 140px 140px 94px minmax(76px,.8fr) 100px; column-gap:18px; }
.table-visits .cell-id { overflow:hidden; }
.table-visits .cell-id > div { min-width:0; overflow:hidden; }
.table-visits .cell-id strong, .table-visits .cell-id small { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.table-actions-cell { display:flex; justify-content:flex-end; gap:var(--space-2); flex-wrap:wrap; text-align:right; }
.table-heading-actions { text-align:right; }
.row-clickable { cursor:pointer; }
.pad-bottom-none { padding-bottom:0; }
.actions-bar { display:flex; gap:var(--space-2); flex-wrap:wrap; }
.copy-muted { margin-top:0; color:#b3aca4; line-height:1.55; }
.chart-section-title { margin:0 20px 10px; }
.chart--compact { height:150px; }
.chart-bars--compact { height:100px; }
.pre-line { white-space:pre-line; }
.user-created { margin-top:14px; }
.secure-credentials { padding:16px 18px; }
.credential-code { user-select:all; font-size:15px; color:#c9ffe2; }
.page-heading { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; min-width:0; }
.page-heading h2 { min-width:0; margin:0; overflow-wrap:anywhere; }
.profile-summary { display:flex; gap:var(--space-4); align-items:center; flex-wrap:wrap; }
.profile-summary .ava { width:64px; height:64px; flex:0 0 64px; font-size:20px; }
.profile-summary strong { font-size:18px; }
.status-message { margin-top:var(--space-2); }
.telegram-actions { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
.telegram-details { margin-top:14px; }
.button-row-top { margin-top:var(--space-4); }
.account-copy { margin-top:0; color:#b3aca4; }
.user-pill { cursor:pointer; text-align:left; }
.avatar-photo { padding:0; overflow:hidden; }
.avatar-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.model-row .progress > i, .spark > i, .chart .bars > i { block-size:var(--metric-size,0%); }
.model-row .progress > i { inline-size:var(--metric-size,0%); block-size:100%; }

.model-summary-stats { padding:16px 20px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.model-detail-stats { grid-template-columns:repeat(6,minmax(105px,1fr)); }
.model-detail-stats .stat-card { min-width:0; }
.model-detail-stats .stat-card .lbl { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:.1em; }
.model-summary-note { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color:#7e7972; font:400 11px 'Share Tech Mono',monospace; letter-spacing:.05em; }

.verification-profile-list { display:flex; flex-direction:column; gap:8px; padding:16px 20px; }
.verification-profile-row { display:block; min-width:0; padding:0; overflow:hidden; background:#0b0b0d; border:1px solid #1b1c1f; border-radius:3px; }
.verification-profile-row.is-open { border-color:#2b6b45; }
.verification-profile-summary { display:grid; grid-template-columns:minmax(150px,1.1fr) minmax(0,3fr) auto; align-items:center; gap:14px; min-width:0; padding:12px 14px; cursor:pointer; }
.verification-profile-summary:hover, .verification-profile-summary:focus-visible { background:#101813; outline:none; }
.verification-profile-identity, .verification-profile-meta { min-width:0; }
.verification-profile-identity strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#ece7e1; }
.verification-profile-identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#7e7972; font:400 11px 'Share Tech Mono',monospace; margin-top:3px; }
.verification-profile-meta { display:flex; align-items:center; flex-wrap:wrap; gap:7px 13px; color:#9a938c; font:400 11px 'Share Tech Mono',monospace; overflow-wrap:anywhere; }
.verification-profile-meta > span { min-width:0; }
.verification-profile-meta .cell-id { display:inline-flex; }
.verification-profile-open { justify-self:end; color:#79ffb0; font:700 10px 'Share Tech Mono',monospace; letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; }
.verification-profile-summary[aria-expanded="true"] .verification-profile-open::after { content:'  ↑'; }
.verification-profile-summary[aria-expanded="false"] .verification-profile-open::after { content:'  ↓'; }
.verification-profile-detail { min-width:0; padding:0 14px 14px; border-top:1px solid #17181a; }
.verification-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px 0 8px; }
.verification-detail-head > div:first-child { min-width:0; }
.verification-detail-head strong { display:block; overflow-wrap:anywhere; }
.verification-detail-head small { display:block; color:#7e7972; font:400 11px 'Share Tech Mono',monospace; margin-top:3px; }
.verification-section { min-width:0; margin-top:10px; padding-top:10px; border-top:1px solid #17181a; }
.verification-section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#c9ffe2; font:700 11px 'Share Tech Mono',monospace; letter-spacing:.1em; text-transform:uppercase; }
.verification-section-title span { color:#7e7972; }
.verification-archive-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:9px 20px 3px; color:#9a938c; font:400 11px 'Share Tech Mono',monospace; }
.verification-archive-actions label { display:flex; align-items:center; gap:7px; }
.verification-select { width:16px; height:16px; accent-color:#5fe89b; }
.verification-profile-detail .v-items { margin-top:7px; }
.verification-profile-detail .vprofile-meta { margin:8px 0; }
.verification-profile-detail .k-act { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:7px; min-width:0; }
.verification-profile-detail .vitem { align-items:flex-start; }
.verification-profile-detail .vitem-main { min-width:0; flex:1 1 240px; }
.verification-profile-detail .vitem-main .video-description { max-width:80ch; }
.verification-detail-hero { --verification-control-h:44px; display:flex; align-items:center; gap:18px; flex-wrap:nowrap; }
.verification-detail-hero .model-hero-main { flex:1 1 340px; width:auto; max-width:100%; min-width:0; padding-right:2px; overflow:hidden; display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:'back identity' 'checked checked'; align-items:center; gap:4px 10px; }
.verification-detail-hero .model-hero-main > .btn { grid-area:back; flex:0 0 auto; }
.verification-detail-hero .model-identity, .verification-detail-hero .model-identity > div { min-width:0; }
.verification-detail-hero .model-identity { grid-area:identity; flex:1 1 auto; max-width:100%; overflow:hidden; gap:9px; }
.verification-detail-hero .model-identity .ava { width:46px; height:46px; flex-basis:46px; }
.verification-detail-hero .model-identity h2 { font-size:21px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.verification-detail-hero .model-hero-actions { flex:0 1 auto; min-width:0; max-width:100%; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:7px; }
.verification-detail-hero .btn, .verification-detail-hero .btn-primary,
.verification-detail-hero .model-hero-actions > .badge {
  min-height:var(--verification-control-h);
  height:var(--verification-control-h);
  padding-inline:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  white-space:nowrap;
  font-size:12px;
  line-height:1;
  letter-spacing:.1em;
}
.verification-last-check { grid-area:checked; display:block; max-width:100%; margin-top:3px; overflow:hidden; text-overflow:clip; white-space:nowrap; color:#b7b0a8; font:500 12px/1.35 'Share Tech Mono',monospace; letter-spacing:.01em; }
.verification-form-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; grid-column:1 / -1; }
.verification-detail-items { padding:0 20px 10px; }
.verification-history { margin:0; padding:0 20px 14px; }
.verification-editor-assignment { display:grid; grid-template-columns:minmax(200px,.8fr) minmax(530px,2fr); align-items:end; gap:10px 14px; }
.verification-editor-assignment form { display:grid; grid-template-columns:minmax(300px,1fr) auto; align-items:end; gap:10px; min-width:0; }
.verification-editor-assignment .field { min-width:0; }
.verification-editor-assignment .field label { white-space:nowrap; }
.verification-editor-assignment .field select { width:100%; }
.verification-editor-assignment .btn-primary { min-height:var(--control-h); height:var(--control-h); padding-inline:16px; white-space:nowrap; font-size:12px; }
.verification-editor-current { min-width:0; min-height:var(--control-h); display:flex; align-items:center; }
.verification-editor-note { grid-column:1 / -1; min-width:0; justify-self:start; align-self:end; color:#706b65; font:400 10px/1.4 'Share Tech Mono',monospace; letter-spacing:.04em; white-space:normal; }

@container (max-width:940px) {
  .table-shell > .thead, .table-shell > * > .thead { display:none; }
  .table-shell > .trow, .table-shell > * > .trow { grid-template-columns:minmax(0,1fr); gap:9px; padding:14px 16px; }
  .table-shell.table-verification-profiles > div > .verification-table-row,
  .table-shell.table-legacy-verifications > div > .verification-legacy-row { grid-template-columns:minmax(0,1fr); }
  .table-shell > .trow > *, .table-shell > * > .trow > * { grid-column:auto; grid-row:auto; text-align:left; }
  .table-shell .trow .cell-id { align-items:flex-start; }
  .table-shell .trow .k-act, .table-shell .trow .table-actions-cell, .table-shell .trow .task-actions { justify-content:flex-start; }
  .table-shell .trow .k-act .btn, .table-shell .trow .table-actions-cell .btn, .table-shell .trow .task-actions .btn { flex:1 1 150px; }
  .model-row > :nth-child(1) strong, .model-row > :nth-child(1) small, .model-row > :nth-child(2) { white-space:normal; overflow-wrap:anywhere; }
  .verification-table-row .cell-id strong, .verification-table-row .cell-id small,
  .verification-legacy-row .cell-id strong, .verification-legacy-row .cell-id small { white-space:normal; overflow-wrap:anywhere; }
}
@container (max-width:900px) {
  .model-settings-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .model-settings-form .btn-primary { width:100%; }
  .verification-detail-hero { align-items:flex-start; flex-wrap:wrap; }
  .verification-detail-hero .model-hero-main, .verification-detail-hero .model-hero-actions { flex-basis:100%; }
  .verification-detail-hero .model-hero-actions { justify-content:flex-start; flex-wrap:wrap; }
  .verification-editor-assignment { grid-template-columns:minmax(160px,.8fr) minmax(0,2fr); }
  .verification-editor-note { grid-column:1 / -1; }
}

@container (max-width:800px) {
  .verification-editor-assignment, .verification-editor-assignment form { grid-template-columns:1fr; align-items:stretch; }
  .verification-editor-note { grid-column:auto; }
  .verification-editor-assignment .btn-primary { width:100%; }
}

@container (max-width:680px) {
  .model-settings-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .model-settings-form .btn-primary { grid-column:1 / -1; }
  .model-summary-stats { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px 14px; }
  .api-status-grid { grid-template-columns:1fr; padding:12px 14px 14px; }
  .api-status-head { flex-direction:column; }
  .api-credentials-row { grid-template-columns:1fr; gap:11px; }
  .api-key-actions { grid-column:auto; padding-top:0; }
  .api-key-actions .btn-primary { width:100%; }
  .verification-detail-hero .model-hero-actions > .btn,
  .verification-detail-hero .model-hero-actions > .btn-primary { flex:1 1 160px; }
  .task-ready-form { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .task-ready-input, .task-ready-error { grid-column:1 / -1; }
  .task-ready-form .btn, .task-ready-form .btn-primary { width:100%; }
}

@media (max-width:1199px) {
  .dz { grid-template-columns:var(--sidebar-w-compact) minmax(0,1fr); }
  .dz-side { width:var(--sidebar-w-compact); }
  .dz-top { gap:var(--space-3); padding-inline:var(--space-5); }
  .dz-page { padding-inline:var(--space-5); }
  .dz-top .crumbs span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; letter-spacing:.16em; }
  .dz-top h1 { font-size:22px; }
  .hero-grid { grid-template-columns:1fr; }
  .kanban { grid-template-columns:1fr; }
  .api-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .api-credentials-row { grid-template-columns:minmax(0,1.35fr) minmax(180px,.8fr); }
  .api-key-actions { grid-column:1 / -1; justify-content:flex-start; padding-top:0; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .model-summary-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .model-detail-stats { grid-template-columns:repeat(6,minmax(0,1fr)); }
}

@media (max-width:768px) {
  body.menu-open { overflow:hidden; }
  .dz { display:block; }
  .dz-main { width:100%; }
  .dz-side {
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:min(300px,86vw);
    height:100dvh;
    display:flex;
    flex-direction:column;
    overflow-y:auto;
    overflow-x:hidden;
    transform:translateX(-105%);
    visibility:hidden;
    pointer-events:none;
    transition:transform .22s ease-out, visibility 0s linear .22s;
    z-index:20;
    background:#0b0b0d;
    box-shadow:12px 0 35px rgba(0,0,0,.45);
  }
  .dz.menu-open .dz-side { transform:translateX(0); visibility:visible; pointer-events:auto; transition-delay:0s; }
  .dz-brand { flex:0 0 auto; border-bottom:1px solid #17181a; }
  .dz-brand span { display:block; }
  .dz-nav { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow-y:auto; overflow-x:hidden; padding:12px 10px; }
  .dz-nav button { width:100%; flex:0 0 auto; min-height:var(--control-h-touch); grid-template-columns:22px 1fr auto; white-space:normal; }
  .dz-foot { display:flex; flex:0 0 auto; }
  .dz-top { min-height:var(--header-h); padding:12px 16px; gap:10px; flex-wrap:nowrap; }
  .dz-top .crumbs { flex:1 1 180px; }
  .dz-top h1 { font-size:20px; }
  .rec-pill { flex:0 0 auto; }
  .user-pill { flex:0 1 160px; }
  .user-pill strong, .user-pill small { max-width:110px; }
  .btn-exit { flex:0 0 auto; }
  .mobile-menu-backdrop { display:block; position:fixed; inset:0; z-index:19; background:rgba(0,0,0,.68); }
  .mobile-menu-toggle { flex:0 0 auto; display:inline-flex; min-height:var(--control-h-touch); padding:0 13px; border:1px solid #3b5d49; border-radius:3px; background:#07170f; color:#c9ffe2; cursor:pointer; font:700 12px 'Chakra Petch',sans-serif; letter-spacing:.1em; text-transform:uppercase; }
  .mobile-menu-toggle span:first-child { color:#79ffb0; font-size:19px; line-height:1; }
  .mobile-menu-toggle:focus-visible { outline:2px solid #79ffb0; outline-offset:2px; }
  .task-edit-close { flex-basis:var(--control-h-touch); width:var(--control-h-touch); min-height:var(--control-h-touch); }
  .dz-page { padding:var(--space-5) var(--space-4) 44px; gap:var(--space-4); }
  .week-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .model-identity h2 { font-size:22px; }
  .discovery-filters { align-items:stretch; }
  .discovery-presets { width:100%; flex-wrap:wrap; }
  .discovery-presets > * { flex:1 1 120px; }
  .discovery-period { width:100%; border-left:none; border-top:1px solid #26272b; padding:12px 0 0; }
  .discovery-calendar { flex-basis:100%; max-width:none; }
  .api-keys-form { gap:11px; }
  .visit-summary { grid-template-columns:1fr; }
  .verification-profile-summary { grid-template-columns:minmax(0,1fr) auto; gap:8px 10px; }
  .verification-profile-meta { grid-column:1 / -1; gap:6px 10px; }
  .verification-profile-open { grid-column:2; grid-row:1; }
  .verification-detail-head { flex-direction:column; }
  .verification-detail-head .k-act { width:100%; justify-content:flex-start; }
  .btn, .btn-primary, .btn-exit, .in:not(textarea), .field select, .field input:not([type='checkbox']):not([type='radio']) { min-height:var(--control-h-touch); }
}

@media (max-width:600px) {
  .dz-top {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    min-height:0;
    padding:10px 12px;
    gap:8px;
  }
  .mobile-menu-toggle { grid-column:1; grid-row:1; }
  .dz-top .crumbs { grid-column:2; grid-row:1; }
  .dz-top .crumbs span { display:none; }
  .rec-pill { grid-column:3; grid-row:1; padding:7px 9px; font-size:11px; }
  .user-pill { grid-column:1 / 3; grid-row:2; width:100%; max-width:none; }
  .user-pill strong, .user-pill small { max-width:none; }
  .btn-exit { grid-column:3; grid-row:2; width:100%; }
  .dz-page { padding:14px 10px 36px; gap:14px; }
  .panel-h { padding:13px 14px; gap:8px; align-items:flex-start; }
  .panel-h h3, .panel-h .note { flex:1 1 100%; }
  .panel-body { padding:13px 14px; }
  .trow { padding:13px 14px; }
  .stats, .model-summary-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .model-detail-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat-card { padding:13px 14px; }
  .stat-card .val { font-size:clamp(28px,9vw,34px); }
  .api-status-grid { grid-template-columns:1fr; padding:12px 14px 14px; }
  .api-status-head { flex-direction:column; }
  .api-credentials-row { grid-template-columns:1fr; gap:11px; }
  .api-prompt-field, .api-key-actions { grid-column:auto; }
  .api-key-actions .btn-primary { width:100%; }
  .form-grid { grid-template-columns:1fr; gap:11px; }
  .console-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .console-command-form { grid-template-columns:minmax(0,1fr) auto; gap:var(--space-2); }
  .console-command-form label { grid-column:1 / -1; }
  .console-log-output { height:200px; padding:14px; }
  .week-strip { grid-template-columns:1fr; padding:12px 14px; }
  .discovery-period label, .discovery-period select { min-width:0; width:100%; }
  .discovery-calendar { padding:10px; }
  .calendar-weekdays, .calendar-grid { gap:3px; }
  .calendar-empty, .calendar-day { height:34px; }
  .calendar-day { font-size:11px; }
  .calendar-selection > * { flex:1 1 100%; }
  .chart { padding:14px 10px; gap:12px; }
  .chart .cbar { min-width:46px; }
  .list-stack { padding:0 14px; }
  .verification-profile-list { padding:12px 10px; }
  .verification-profile-summary { padding:11px 10px; }
  .verification-profile-detail { padding:0 10px 12px; }
  .verification-profile-meta { font-size:10px; }
  .verification-profile-detail .vitem { flex-direction:column; }
  .verification-profile-detail .vitem .k-act { width:100%; justify-content:flex-start; }
  .verification-profile-detail .vitem .btn { flex:1 1 120px; }
  .verification-editor-assignment form, .verification-editor-assignment .field { width:100%; }
  .task-edit-backdrop { padding:10px; }
  .task-edit-dialog { max-height:calc(100dvh - 20px); }
  .task-edit-head, .task-edit-form { padding:var(--space-4); }
  .task-edit-actions { display:grid; grid-template-columns:1fr; }
  .task-edit-actions .btn, .task-edit-actions .btn-primary { width:100%; }
  .task-publish-result, .task-publish-meta { grid-template-columns:1fr; }
  .task-publish-result .btn { width:100%; }
  .task-publish-actions { grid-template-columns:1fr; }
}

@media (max-width:390px) {
  #login-host.login-mobile-layout .mobile-login-panel { top:clamp(305px,41dvh,365px); max-height:calc(59dvh - max(10px,env(safe-area-inset-bottom))); padding:13px; }
  .mobile-login-panel-head { margin-bottom:9px; padding-bottom:8px; }
  .mobile-login-panel-head strong { font-size:16px; }
  #login-host.login-mobile-layout #rForm { gap:6px !important; }
  #login-host.login-mobile-layout #rForm input,
  #login-host.login-mobile-layout #loginGo { min-height:43px; }
  #login-host.login-mobile-layout #rMobileTgMount { margin-top:9px; padding-top:9px; }
  .mobile-menu-toggle span:last-child { display:none; }
  .mobile-menu-toggle { width:var(--control-h-touch); padding:0; }
  .rec-pill #rec-clock { display:none; }
  .stat-card .lbl { letter-spacing:.12em; }
}

@media (max-width:780px) and (max-height:700px) and (orientation:portrait) {
  #login-host.login-mobile-layout .mobile-login-panel { top:270px; max-height:calc(100dvh - 280px); }
  #login-host.login-mobile-layout .mobile-login-panel-head { margin-bottom:7px; padding-bottom:7px; }
  #login-host.login-mobile-layout .mobile-login-panel-head small { display:none; }
  #login-host.login-mobile-layout #rForm { gap:5px !important; }
  #login-host.login-mobile-layout #rForm input,
  #login-host.login-mobile-layout #loginGo { min-height:40px; }
  #login-host.login-mobile-layout #loginError { min-height:14px !important; }
}

@media (prefers-reduced-motion:reduce) {
  #login-host.login-mobile-layout .mobile-login-panel { transition:none; }
  .dz-page { animation:none; }
  .secure .sweep, .dot-g, .dot-r { animation:none; }
  .dz-nav button.has-unread, .table-feed > .trow.signal-unread { animation:none; }
}
