/* The panel's finish (owner, 2026-10-29: "no emojis ... it looks very basic, maximize the design"): the Dex look of
   dexit.ge carried all the way through - deep ink with soft blue light behind the page, glass cards with a lit edge,
   line icons in gradient tiles instead of emojis, the Dex gradient on the main actions, quieter tables and pills.
   Loaded after dex-design.css; it restyles only. Fonts and colours stay Manrope and the Dex palette, dark only. */

:root {
  --ink-0: #060D1C;
  --ink-1: #0A1426;
  --glass: rgba(255,255,255,.034);
  --glass-2: rgba(255,255,255,.058);
  --glass-3: rgba(255,255,255,.085);
  --edge: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.035) 38%, rgba(0,212,255,.10));
  --edge-hot: linear-gradient(135deg, rgba(0,212,255,.75), rgba(0,134,253,.35) 45%, rgba(255,255,255,.06));
  --tile: linear-gradient(135deg, rgba(0,212,255,.24), rgba(10,99,232,.20));
  --tile-ring: inset 0 0 0 1px rgba(0,212,255,.26), 0 8px 20px -12px rgba(0,134,253,.9);
  --lift: 0 1px 0 rgba(255,255,255,.06) inset, 0 28px 60px -34px rgba(0,0,0,.85);
  --radius: 22px;
}

/* ------------------------------------------------------------- the page */
html { background: var(--ink-0); }
body { background: transparent; }
/* Light behind the page, as on the website's first screen: blue from the top right, cyan from the bottom left. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 88% -8%, rgba(0,134,253,.22), transparent 62%),
    radial-gradient(760px 520px at 6% 108%, rgba(0,212,255,.10), transparent 62%),
    radial-gradient(1400px 900px at 55% 35%, rgba(18,38,80,.55), transparent 72%),
    var(--ink-0);
}
main { max-width: 1360px; }

/* ------------------------------------------------------------- sidebar */
.sidebar {
  background: linear-gradient(180deg, rgba(10,20,38,.86), rgba(6,13,28,.92));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar::after {
  content: ''; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,212,255,.38) 30%, rgba(0,134,253,.18) 70%, transparent);
}
.brand img { filter: drop-shadow(0 6px 18px rgba(0,134,253,.45)); }
.brand small { color: rgba(255,255,255,.55); font-weight: 600; }
nav { gap: 3px; }
nav button, nav button:has(> .ic) { display: flex; justify-content: flex-start; background: transparent; border-color: transparent; box-shadow: none; text-shadow: none; }
nav button { min-height: 42px; padding: 6px 10px; gap: 12px; color: rgba(255,255,255,.70); font-weight: 600; }
nav button .ic {
  width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); color: rgba(255,255,255,.72);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
nav button:hover:not(:disabled) { background: rgba(255,255,255,.045); border-color: transparent; color: #fff; }
nav button:hover:not(:disabled) .ic { background: rgba(255,255,255,.07); color: #fff; }
nav button.active {
  color: #fff; background: linear-gradient(90deg, rgba(0,212,255,.15), rgba(10,99,232,.10) 65%, rgba(10,99,232,0));
  box-shadow: inset 0 0 0 1px rgba(0,212,255,.16);
}
nav button.active::before { left: -14px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(180deg, #00D4FF, #0046F7); box-shadow: 0 0 12px rgba(0,212,255,.8); }
nav button.active .ic { background: linear-gradient(135deg, #00C2FF, #0060F8); color: #fff; box-shadow: 0 8px 18px -8px rgba(0,134,253,.95), inset 0 1px 0 rgba(255,255,255,.3); }
.side-guide { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.66); font-weight: 600; }
.side-guide .ic { width: 16px; height: 16px; color: var(--dex-cyan); }
.side-guide:hover { background: rgba(255,255,255,.05); }
.side-foot { border-top-color: rgba(255,255,255,.07); }
.avatar { background: linear-gradient(135deg, #00C2FF, #0046F7); box-shadow: 0 6px 16px -6px rgba(0,134,253,.9); }

/* ------------------------------------------------------------- page heading */
.head { position: relative; margin-bottom: 28px; }
.head h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.035em;
  background: linear-gradient(180deg, #FFFFFF 35%, rgba(214,232,255,.78)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head p { font-size: 15px; color: rgba(255,255,255,.66); }
:lang(ka) .head h1 { letter-spacing: 0; }

/* ------------------------------------------------------------- cards */
.panel {
  position: relative; border: 1px solid transparent; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.016) 140px), rgba(12,23,43,.74);
  box-shadow: var(--lift); padding: 24px 26px;
}
.panel::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.panel h2:has(> .h-ic) { display: flex; align-items: center; }
.panel > h2, .panel h2 { gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.panel > .sub, .panel .sub { color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.55; }
/* The icon tile beside a card's heading (hIcon in the page's script). */
.h-ic {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: var(--tile); box-shadow: var(--tile-ring); color: #8FEBFF;
}
.h-ic .ic { width: 18px; height: 18px; stroke-width: 2; }
/* Icons inside text and buttons. */
.ic.ok-ic { color: var(--ok); } .ic.bad-ic { color: var(--critical); } .ic.warn-ic { color: var(--high); } .ic.faint-ic { color: var(--faint); }
button .ic, a > .ic, .chip .ic, .kb-line .ic, p > .ic, div > .ic, strong > .ic, span > .ic { width: 16px; height: 16px; vertical-align: -3px; }
button:has(> .ic) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.icon-btn:has(> .ic) { gap: 0; }
.os-tag { display: inline-block; padding: 1px 7px; margin-right: 2px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #cfe6ff; background: rgba(255,255,255,.08); }
.kb-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------- the numbers on top of a page */
.stat {
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 60%), rgba(12,23,43,.78);
  box-shadow: var(--lift); padding: 18px 20px;
}
.stat::after { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,212,255,.6), transparent); }
.stat:hover { border-color: rgba(0,212,255,.28); transform: translateY(-2px); }
.stat .badge { width: 40px; height: 40px; border-radius: 13px; margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.stat .badge .ic { width: 19px; height: 19px; }
.stat .badge.blue { background: linear-gradient(135deg, rgba(0,212,255,.26), rgba(10,99,232,.20)); color: #8FEBFF; }
.stat .badge.amber { background: linear-gradient(135deg, rgba(248,190,115,.26), rgba(194,65,12,.16)); color: #FFD49A; }
.stat .badge.green { background: linear-gradient(135deg, rgba(126,224,174,.26), rgba(11,107,58,.18)); color: #A8F0CA; }
.stat .badge.violet { background: linear-gradient(135deg, rgba(127,216,255,.22), rgba(60,90,255,.18)); color: #BFE9FF; }
.stat .n { font-size: 40px; letter-spacing: -.04em; }
.stat .k { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62); text-transform: none; letter-spacing: 0; }

/* ------------------------------------------------------------- buttons, fields */
button { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
button:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); border-color: rgba(0,212,255,.32); }
button.primary { background: linear-gradient(120deg, #00C2FF 0%, #0086FD 48%, #0046F7 100%); color: #fff;
  box-shadow: 0 12px 28px -12px rgba(0,134,253,.95), inset 0 1px 0 rgba(255,255,255,.28); text-shadow: 0 1px 1px rgba(0,30,90,.35); }
button.primary:hover:not(:disabled) { background: linear-gradient(120deg, #1ECBFF 0%, #1890FF 48%, #0B52FF 100%); box-shadow: 0 16px 34px -12px rgba(0,134,253,1), inset 0 1px 0 rgba(255,255,255,.32); }
button.ghost { background: transparent; border-color: transparent; box-shadow: none; }
button.ghost:hover:not(:disabled) { background: rgba(255,255,255,.06); border-color: transparent; }
button.ok { background: linear-gradient(180deg, rgba(126,224,174,.18), rgba(11,107,58,.22)); }
input, textarea, select { background: rgba(4,10,22,.55); border-color: rgba(255,255,255,.12); }
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,.2); }
input:focus, textarea:focus, select:focus { border-color: #00D4FF; box-shadow: 0 0 0 4px rgba(0,212,255,.14); }

/* ------------------------------------------------------------- lists, tables, pills */
.kv { gap: 0 22px; }
.kv > * { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.055); min-height: 22px; }
.kv > .muted { color: rgba(255,255,255,.56); font-weight: 600; font-size: 13.5px; }
/* Columns that never grow past the screen: a long option in a list no longer pushes the page sideways on a phone. */
.kv { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.kv > * { min-width: 0; }
select { max-width: 100%; }
.panel code, .panel .mono { overflow-wrap: anywhere; }
.set-main { min-width: 0; }
@media (max-width: 640px) { .panel table { display: block; max-width: 100%; overflow-x: auto; } .kv { grid-template-columns: minmax(0, 1fr); } .kv > .muted { border-bottom: 0; padding-bottom: 0; } }
table { border-collapse: separate; border-spacing: 0; }
th { color: rgba(255,255,255,.5); font-size: 12.5px; border-bottom-color: rgba(255,255,255,.08) !important; }
td { border-bottom-color: rgba(255,255,255,.055) !important; }
tbody tr:hover { background: linear-gradient(90deg, rgba(0,212,255,.07), rgba(0,212,255,.015) 60%, transparent); }
tr.clickable:hover td:first-child { box-shadow: inset 2px 0 0 #00D4FF; }
.chip { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent); padding: 3px 11px 3px 10px; }
.chip::before { box-shadow: 0 0 8px currentColor; }
.chip .ic { width: 13px; height: 13px; }
.dot.up { box-shadow: 0 0 0 3px rgba(76,201,138,.16), 0 0 12px rgba(76,201,138,.7); }

/* ------------------------------------------------------------- notices, inner cards */
.banner { position: relative; padding: 14px 18px 14px 22px; border: 1px solid rgba(248,190,115,.22);
  background: linear-gradient(90deg, rgba(248,190,115,.13), rgba(248,190,115,.035) 70%); box-shadow: var(--lift); }
.banner::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #FFD49A, #F59E0B); }
.action-card { position: relative; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: none; }
.rec { border-color: rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)), rgba(12,23,43,.6); }
.tile { border-color: rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.heal-badge { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, rgba(126,224,174,.28), rgba(11,107,58,.2)); color: #A8F0CA; box-shadow: inset 0 0 0 1px rgba(126,224,174,.25); }
.heal-item.failed .heal-badge { background: linear-gradient(135deg, rgba(255,139,125,.28), rgba(180,35,24,.2)); color: #FFB3A8; box-shadow: inset 0 0 0 1px rgba(255,139,125,.25); }
.heal-badge .ic { width: 18px; height: 18px; }
details.ev > summary { color: #7FD8FF; }
.code-box { background: rgba(4,10,22,.6); box-shadow: inset 0 0 0 1px rgba(0,212,255,.25), 0 0 30px -10px rgba(0,212,255,.5); }

/* ------------------------------------------------------------- Getting started */
.gs-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin: 16px 0 6px; }
.gs-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00D4FF, #0046F7); box-shadow: 0 0 14px rgba(0,212,255,.7); }
.gs-step { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.gs-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.gs-step.now .gs-n { background: linear-gradient(135deg, #00C2FF, #0046F7); box-shadow: 0 0 0 5px rgba(0,212,255,.12), 0 10px 22px -10px rgba(0,134,253,1); }
.gs-step.done .gs-n { background: rgba(126,224,174,.16); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(126,224,174,.35); }
.gs-step.done .gs-n .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.gs-step.done b { color: rgba(255,255,255,.55); }

/* ------------------------------------------------------------- Settings: the section menu */
.set-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; align-items: start; }
.set-nav { position: sticky; top: 24px; display: grid; gap: 2px; padding: 10px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), rgba(10,20,38,.7); border: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--lift); max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav .set-title { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.45); padding: 6px 10px 8px; }
.set-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 11px; color: rgba(255,255,255,.68); font-size: 13.5px; font-weight: 600; text-decoration: none; line-height: 1.25; }
.set-nav a .ic { width: 16px; height: 16px; flex: none; color: rgba(255,255,255,.55); }
.set-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.set-nav a.on { color: #fff; background: linear-gradient(90deg, rgba(0,212,255,.16), rgba(10,99,232,.06)); box-shadow: inset 0 0 0 1px rgba(0,212,255,.18); }
.set-nav a.on .ic { color: #00D4FF; }
.set-main > .panel { scroll-margin-top: 20px; }
@media (max-width: 1240px) {
  .set-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .set-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; max-height: none; border-radius: 16px; padding: 8px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); order: -1; }
  .set-nav .set-title { display: none; }
  .set-nav a { white-space: nowrap; flex: none; }
}

/* ------------------------------------------------------------- the subscription card */
#subBox { container-type: inline-size; }
.plan-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr); gap: 26px; padding: 26px;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(520px 260px at 0% 0%, rgba(0,134,253,.24), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.012)), rgba(8,18,36,.8); }
.plan-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--edge-hot);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.plan-card::after { content: ''; position: absolute; right: -60px; bottom: -70px; width: 320px; height: 320px; z-index: -1; opacity: .07;
  background: url(/assets/logo-small.svg) no-repeat center / contain; transform: rotate(-8deg); }
.plan-card.bad { background: radial-gradient(520px 260px at 0% 0%, rgba(255,107,90,.18), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.012)), rgba(8,18,36,.8); }
.plan-card.bad::before { background: linear-gradient(135deg, rgba(255,139,125,.7), rgba(255,139,125,.15) 45%, rgba(255,255,255,.06)); }
.plan-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  color: #8FEBFF; background: rgba(0,212,255,.10); box-shadow: inset 0 0 0 1px rgba(0,212,255,.22); }
.plan-eyebrow .ic { width: 14px; height: 14px; }
.plan-name { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, #9fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-name .chip { -webkit-text-fill-color: currentColor; font-size: 12.5px; letter-spacing: 0; }
.plan-price { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.62); }
.plan-price b { font-size: 26px; color: #fff; font-weight: 800; letter-spacing: -.02em; margin-right: 4px; }
.plan-when { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.75); }
.plan-when .ic { width: 16px; height: 16px; margin-top: 2px; color: #7FD8FF; flex: none; }
.plan-card .sub-links { margin-top: 20px; }
.plan-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: center; }
.ring { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; padding: 18px 10px 16px; border-radius: 18px;
  background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); overflow: visible; }
.ring .r-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.ring .r-fg { fill: none; stroke: url(#dexRingGrad); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(0,180,255,.55));
  transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.ring.warn .r-fg { stroke: #F8BE73; filter: drop-shadow(0 0 6px rgba(248,190,115,.55)); }
.ring.full .r-fg { stroke: #FF8B7D; filter: drop-shadow(0 0 6px rgba(255,139,125,.6)); }
.ring .r-mid { position: absolute; top: 18px; width: 112px; height: 112px; display: grid; place-content: center; line-height: 1.1; }
.ring .r-mid b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring .r-mid small { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600; }
.ring .r-label { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.85); }
.ring .r-note { margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.5); }
.plan-help { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.56); }
.plan-help .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: rgba(255,255,255,.45); }
.act-card { margin-top: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(0,212,255,.07), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.act-card .act-text { flex: 1 1 260px; }
.act-card .act-text b { display: block; font-size: 15px; }
.act-card .act-text span { font-size: 13px; color: rgba(255,255,255,.55); }
.act-card .row { flex: 2 1 420px; }
@container (max-width: 940px) { .plan-card { grid-template-columns: minmax(0, 1fr); } .plan-rings { margin-top: 4px; } }
@media (max-width: 560px) {
  .plan-card { padding: 20px; } .plan-name { font-size: 38px; }
  .plan-rings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ring { padding: 12px 4px; } .ring svg, .ring .r-mid { width: 84px; height: 84px; } .ring .r-mid { top: 12px; } .ring .r-mid b { font-size: 20px; }
}

/* ------------------------------------------------------------- toasts, drawer, sign-in */
.toast { background: linear-gradient(180deg, rgba(22,34,58,.92), rgba(14,24,44,.94)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,212,255,.2); box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.03) inset; }
.drawer { background: linear-gradient(180deg, rgba(12,22,42,.97), rgba(7,14,29,.98)); border-left: 1px solid rgba(0,212,255,.16); }
.drawer-x { background: rgba(255,255,255,.07); }
#login { background: radial-gradient(70% 55% at 50% 0%, rgba(0,134,253,.28), transparent 70%), radial-gradient(50% 40% at 50% 100%, rgba(0,212,255,.10), transparent 70%), var(--ink-0); }
.login-card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), rgba(10,20,38,.85); border-color: transparent; }
.login-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--edge-hot);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

@media (prefers-reduced-motion: reduce) { .ring .r-fg { transition: none; } }
@media (max-width: 900px) { .head h1 { font-size: 30px; } .panel { padding: 20px; } .side-guide { display: none; } .sidebar::after { display: none; } }

/* ------------------------------------------------------------- shared components (design study §5): tokens only */
/* pill tabs (the device page; styled like the Settings menu's chosen entry) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.tabs .tab { min-height: 34px; padding: 6px 14px; border-radius: var(--pill); background: transparent; border: 1px solid var(--line); color: rgba(255,255,255,.72); font-weight: 600; font-size: 13.5px; box-shadow: none; }
.tabs .tab:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.05); }
.tabs .tab.on { color: #fff; background: rgba(0,212,255,.12); border-color: rgba(0,212,255,.34); }
/* a button with a menu beside it: Send ▾, Connect ▾ */
.split-btn { display: inline-flex; align-items: stretch; position: relative; }
.split-btn > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-btn > details > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; height: 100%; min-height: 32px; padding: 0 8px;
  border-radius: 0 var(--pill) var(--pill) 0; border: 1px solid var(--line); border-left: 0; background: var(--glass-2); }
.split-btn > details > summary::-webkit-details-marker { display: none; }
.split-btn > details > summary .ic { transform: rotate(90deg); width: 14px; height: 14px; }
.split-menu, .req-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 240px; display: flex; flex-direction: column; gap: 2px; padding: 6px;
  border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--lift); }
.split-menu button, .req-menu button { justify-content: flex-start; width: 100%; background: transparent; border-color: transparent; box-shadow: none; text-align: left; }
.split-menu button:hover:not(:disabled), .req-menu button:hover:not(:disabled) { background: rgba(255,255,255,.06); }
/* a side column of facts (a request, a device) */
.rail { border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--line); padding: 14px 16px; }
.rail-kv { display: grid; grid-template-columns: minmax(0, 92px) minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.rail-k { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.45); }
.rail-v { min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.rail-sec { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.rail-btns { gap: 6px; flex-wrap: wrap; margin-top: 6px; }
/* messages: the person, a public reply, an internal note (amber), Dex's own steps */
.msg { margin-bottom: 8px; }
.msg.public, .hd-msg.public { display: flex; gap: 10px; align-items: flex-start; border-left: 0; border-radius: var(--radius-md); background: var(--surface-2); }
.msg .msg-in { min-width: 0; flex: 1; }
.msg.note, .hd-msg.note { border: 1px solid rgba(248,190,115,.25); border-left-width: 1px; background: rgba(248,190,115,.08); border-radius: var(--radius-md); }
.msg.note .hd-h .ic { width: 13px; height: 13px; color: var(--high); }
.msg.origin { border-left: 3px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); border-radius: 0 10px 10px 0; padding: 10px 12px; }
.msg.origin .hd-b { font-size: 15px; }
.msg.sys { display: flex; align-items: center; gap: 10px; padding: 5px 10px; font-size: 13px; color: var(--muted); }
.msg.sys > .ic { width: 22px; height: 22px; padding: 4px; border-radius: 8px; flex: none; background: var(--glass-2); }
.msg.sys.ok > .ic { color: var(--ok); } .msg.sys.warn > .ic { color: var(--high); } .msg.sys.bad > .ic { color: var(--critical); } .msg.sys.info > .ic { color: var(--dex-cyan); }
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--dex-grad); }
/* the reply box: the segmented toggle is a choice, not the decision (no gradient); a note frames it amber */
.composer .seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--pill); background: var(--glass-2); }
.composer .seg button.primary { background: rgba(0,212,255,.14); border-color: rgba(0,212,255,.34); color: #fff; box-shadow: none; text-shadow: none; }
.composer.note { border-color: rgba(248,190,115,.35); background: rgba(248,190,115,.06); }
/* SLA: a small meter under the due chip */
.due { flex-wrap: wrap; }
.due-meter { display: block; flex-basis: 100%; height: 4px; border-radius: var(--pill); background: var(--glass-3); overflow: hidden; }
.due-meter i { display: block; height: 100%; border-radius: inherit; background: var(--dex-cyan); }
.due-meter.high i { background: var(--high); } .due-meter.failed i { background: var(--critical); } .due-meter.resolved i { background: var(--ok); }
button.linkish { display: block; min-height: 0; padding: 2px 0; margin-top: 4px; background: none; border: 0; box-shadow: none; color: var(--dex-cyan); font-weight: 600; font-size: 13px; text-align: left; }
button.linkish:hover:not(:disabled) { background: none; text-decoration: underline; }

/* ------------------------------------------------- numbers that open what they count, and the request peek (D11) */
button.stat.link { display: block; width: 100%; min-height: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; margin: 0; }
button.stat.link:hover:not(:disabled) { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 60%), rgba(12,23,43,.82); }
button.stat.link:focus-visible { outline: 2px solid var(--dex-cyan); outline-offset: 2px; }
.stat .stat-chev { position: absolute; right: 16px; top: 20px; width: 16px; height: 16px; color: var(--muted); opacity: 0; transition: opacity .15s, transform .15s; }
button.stat.link:hover .stat-chev, button.stat.link:focus-visible .stat-chev { opacity: 1; transform: translateX(2px); }
tr[data-peek]:focus-visible { outline: 2px solid var(--dex-cyan); outline-offset: -2px; }
.peek { position: fixed; z-index: 80; display: none; max-width: 380px; max-height: 60vh; overflow: auto; padding: 14px 16px; border-radius: var(--radius-md);
  background: linear-gradient(var(--glass-2), var(--glass-2)), var(--bg-2); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); box-shadow: var(--lift); font-size: 13.5px; line-height: 1.5; pointer-events: none; }
.peek.on { display: block; }
.peek-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.peek-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.peek-k { margin-top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.peek-v { overflow-wrap: anywhere; }
.peek-who { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .stat .stat-chev { transition: none; } }

/* ------------------------------------------------------------------ saved views on the Inbox and Devices (D14) */
.view-pill { display: inline-flex; align-items: center; gap: 0; }
.view-pill > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-pill > .view-x { border-top-left-radius: 0; border-bottom-left-radius: 0; padding: 0 8px; min-width: 0; }
.view-pill > .view-x .ic { width: 14px; height: 14px; }
.view-save { color: var(--muted); }
