/* Сервер приложений Green Light. Фирменные цвета: зелёный #009A44, тёмно-зелёный #0C2718.
   Бренд — фоном и акцентами: мягкие градиенты, водяной знак, анимация знака; всё приглушено и плавно. */
:root {
  --brand: #009A44; --brand-deep: #0C2718; --logo-text: #0C2718;
  --bg: #f4f7f5; --surface: #ffffff; --surface-2: #f7faf8; --line: #e2e9e4; --line-2: #d3ddd6;
  --fg: #13201a; --fg-2: #33443a; --muted: #66756c; --faint: #9aa79f;
  --accent: #009A44; --accent-2: #00813a; --accent-fg: #fff; --accent-soft: #e5f4eb; --accent-ring: rgba(0,154,68,.22);
  --ok: #0a8a44; --ok-soft: #e4f4ea; --warn: #a86400; --warn-soft: #fcf1dd;
  --bad: #c9303f; --bad-soft: #fbeaec; --idle: #66756c; --idle-soft: #edf1ee;
  --glow-1: rgba(0,154,68,.10); --glow-2: rgba(12,39,24,.06); --mark-opacity: .045;
  --shadow: 0 1px 2px rgba(12,39,24,.04), 0 6px 20px -8px rgba(12,39,24,.10);
  --shadow-hover: 0 2px 4px rgba(12,39,24,.05), 0 18px 40px -16px rgba(12,39,24,.22);
  --shadow-lg: 0 24px 64px -20px rgba(12,39,24,.30), 0 2px 6px rgba(12,39,24,.06);
  --radius: 16px; --ease: cubic-bezier(.2,.7,.2,1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --logo-text: #f1f6f2;
    --bg: #080e0b; --surface: #0f1713; --surface-2: #131d18; --line: #1c2a23; --line-2: #26372e;
    --fg: #e7efe9; --fg-2: #c3d0c7; --muted: #8a9a90; --faint: #5f6f65;
    --accent: #13b35a; --accent-2: #0e9a4c; --accent-fg: #fff; --accent-soft: rgba(19,179,90,.13); --accent-ring: rgba(19,179,90,.28);
    --ok: #3ccf82; --ok-soft: rgba(60,207,130,.12); --warn: #f0b04a; --warn-soft: rgba(240,176,74,.12);
    --bad: #ff6b78; --bad-soft: rgba(255,107,120,.12); --idle: #8a9a90; --idle-soft: rgba(138,154,144,.12);
    --glow-1: rgba(0,154,68,.14); --glow-2: rgba(0,154,68,.05); --mark-opacity: .04;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px -10px rgba(0,0,0,.5);
    --shadow-hover: 0 2px 4px rgba(0,0,0,.4), 0 20px 44px -16px rgba(0,0,0,.65), 0 0 0 1px rgba(19,179,90,.10);
    --shadow-lg: 0 28px 72px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.03);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--fg); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
/* мягкое фирменное свечение и водяной знак — фоном, не мешают содержимому */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -8%, var(--glow-1), transparent 62%),
    radial-gradient(760px 520px at 104% 108%, var(--glow-2), transparent 60%); }
body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; right: -90px; bottom: -70px;
  width: 560px; height: 494px; opacity: var(--mark-opacity);
  background: url(brand/logomark-green.svg) center / contain no-repeat;
  animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) rotate(0deg); } to { transform: translate3d(-14px,-10px,0) rotate(-2deg); } }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); border-radius: 10px; }

/* ---------- логотип ---------- */
.mark { display: block; overflow: visible; }
.mark path { fill: var(--brand); transform-box: fill-box; transform-origin: center; }
.mark path.w { fill: var(--logo-text); }                 /* слово Green Light — под тему */
.gl-full { aspect-ratio: 341 / 60; width: auto; }
.header-logo { height: 21px; flex: none; }
.login-logo { height: 28px; filter: drop-shadow(0 10px 22px rgba(0,154,68,.22)); }
.mark.enter path.w { animation: word .8s var(--ease) .5s both; }
@keyframes word { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
/* появление знака: части собираются по очереди */
.mark.enter path { opacity: 0; animation: piece .9s var(--ease) forwards; }
.mark.enter path:nth-child(1) { animation-delay: .05s; } .mark.enter path:nth-child(2) { animation-delay: .18s; }
.mark.enter path:nth-child(3) { animation-delay: .32s; } .mark.enter path:nth-child(4) { animation-delay: .44s; }
@keyframes piece { from { opacity: 0; transform: translateX(-6px) scale(.9); } to { opacity: 1; transform: none; } }
/* загрузка: части знака мягко «дышат» по очереди */
.mark.pulse path { animation: breathe 1.6s ease-in-out infinite; }
.mark.pulse path:nth-child(2) { animation-delay: .15s; } .mark.pulse path:nth-child(3) { animation-delay: .3s; }
.mark.pulse path:nth-child(4) { animation-delay: .45s; }
@keyframes breathe { 0%, 100% { opacity: .25; } 45% { opacity: 1; } }
.loader { display: grid; place-items: center; gap: 14px; padding: 96px 0; color: var(--muted); font-size: 13px; }
.loader .mark { width: 46px; height: 40px; }

/* ---------- кнопки и поля ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--fg-2); cursor: pointer;
  white-space: nowrap; font-weight: 500; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .12s var(--ease), color .2s; }
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); color: var(--fg); box-shadow: 0 4px 14px -8px rgba(12,39,24,.25); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; transform: none; }
.btn-primary { border-color: transparent; color: var(--accent-fg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 55%, var(--accent-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(0,154,68,.65); }
.btn-primary:hover { color: #fff; border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff) 0%, var(--accent) 60%, var(--accent-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px -10px rgba(0,154,68,.8); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line-2)); }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); border-color: transparent; box-shadow: none; }
.btn-icon { width: 34px; padding: 0; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--muted); border-right-color: transparent; animation: spin .8s linear infinite; }
.btn-primary[aria-busy="true"]::after { border-color: #fff; border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); outline: none; transition: border-color .2s var(--ease), box-shadow .25s var(--ease), background .2s; }
textarea.input { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; }
.input:hover { border-color: color-mix(in srgb, var(--accent) 25%, var(--line-2)); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.hint { font-size: 12.5px; color: var(--muted); transition: color .2s; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--bad); }

/* ---------- вход ---------- */
.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.login::before { content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: 50%; translate: -50% -58%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,154,68,.16), transparent 70%);
  filter: blur(8px); animation: glow 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { from { opacity: .7; scale: .96; } to { opacity: 1; scale: 1.04; } }
.login-card { position: relative; width: 100%; max-width: 392px; padding: 34px 32px 30px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
  animation: rise .6s var(--ease) both; }
.login-card::before { content: ""; position: absolute; inset: 0 24px auto; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,154,68,.55), transparent); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.login-card h1 { margin: 26px 0 4px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.login-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--faint); }
.err { margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 13px; animation: fade .2s; }

/* ---------- оболочка ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(0,154,68,.35) 30%, rgba(0,154,68,.35) 70%, transparent 95%); opacity: .6; }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand .sep { width: 1px; height: 26px; background: var(--line-2); }
.brand b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.sys { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.sys .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s; }
.sys .chip:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.sys .chip i { font-style: normal; color: var(--muted); }
.sys .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40;
  transform-origin: top right; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: none;
  border-radius: 9px; cursor: pointer; text-align: left; color: var(--fg-2); white-space: nowrap; transition: background .15s, color .15s; }
.menu button:hover { background: var(--accent-soft); color: var(--fg); }
.menu button.danger { color: var(--bad); } .menu button.danger:hover { background: var(--bad-soft); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 16px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.section-head .count { color: var(--muted); font-size: 13px; }
.section-head .count.num { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }

/* ---------- карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; min-width: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  animation: rise .5s var(--ease) both; }
.grid .card:nth-child(2) { animation-delay: .05s; } .grid .card:nth-child(3) { animation-delay: .1s; } .grid .card:nth-child(4) { animation-delay: .15s; }
/* мягкий зелёный отсвет сверху карточки при наведении */
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px 140px at 20% 0%, rgba(0,154,68,.07), transparent 70%); transition: opacity .35s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.card:hover::before { opacity: 1; }
.card-head { display: flex; gap: 12px; align-items: flex-start; }
.app-icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff; letter-spacing: .02em;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 18px -10px rgba(0,0,0,.5); transition: transform .35s var(--ease); }
.card:hover .app-icon { transform: scale(1.04) rotate(-2deg); }
.card-title { min-width: 0; flex: 1; }
.card-title b { display: block; font-size: 15.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
.card-title .desc { margin-top: 2px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 1px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-top: 1px; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.ok::before { box-shadow: 0 0 0 0 currentColor; animation: beacon 2.6s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.idle { color: var(--idle); background: var(--idle-soft); }
.pill.busy::before { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 11px; overflow: hidden; }
.facts div { background: var(--surface-2); padding: 8px 10px; min-width: 0; }
.facts small { display: block; color: var(--muted); font-size: 11.5px; }
.facts span { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.url a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.url .aliases { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.card-actions .spacer { flex: 1; }
.card.discovered { border-style: dashed; box-shadow: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.card-warn { font-size: 12.5px; color: var(--bad); background: var(--bad-soft); padding: 8px 10px; border-radius: 10px; }
.empty { display: grid; place-items: center; gap: 12px; padding: 48px 24px; text-align: center; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .mark { width: 40px; height: 35px; opacity: .5; }

/* ---------- модальные окна ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(6,14,10,.42); backdrop-filter: blur(4px) saturate(1.1); animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: rise .25s var(--ease); }
.modal.wide { max-width: 960px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px 20px; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 650; flex: 1; min-width: 0; }
.modal-head .sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.modal-head .mark { width: 22px; height: 20px; flex: none; }
.modal-body { padding: 4px 20px 16px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
pre.log { margin: 0; padding: 12px 14px; max-height: 60vh; overflow: auto; background: #07100b; color: #cfe0d5;
  border: 1px solid rgba(0,154,68,.15); border-radius: 12px; font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar select { height: 34px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 0 8px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr { transition: background .15s; } table.t tr:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 13px; margin-bottom: 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.issues { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.issues li { padding: 8px 11px; border-radius: 10px; font-size: 13px; }
.issues li.error { background: var(--bad-soft); color: var(--bad); }
.issues li.warn { background: var(--warn-soft); color: var(--warn); }
.issues li.ok { background: var(--ok-soft); color: var(--ok); }
h4 { margin: 18px 0 8px; font-size: 13px; font-weight: 650; color: var(--fg-2); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 420px; padding: 12px 16px 12px 14px; border-radius: 13px;
  display: flex; align-items: center; gap: 10px; background: var(--brand-deep); color: #e9f5ee; box-shadow: var(--shadow-lg); font-size: 13.5px;
  border: 1px solid rgba(0,154,68,.35); animation: toast .35s var(--ease); }
.toast .mark { width: 18px; height: 16px; flex: none; }
.toast.bad { background: #3a1318; border-color: rgba(255,107,120,.35); color: #ffe3e6; }
@keyframes toast { from { opacity: 0; transform: translateY(12px) scale(.98); } }

@media (max-width: 720px) {
  .top-in, main { padding-left: 16px; padding-right: 16px; }
  .sys { display: none; }
  .top-in > .menu-wrap { margin-left: auto; }
  .brand .sep { display: none; }
  .header-logo { height: 18px; }
  .brand > div { display: none; }
  .grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  body::after { width: 340px; height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ======================= Net Explorer — заказчики, лицензии, выпуски ======================= */
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 22px; background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--line); border-radius: 13px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--fg-2);
  cursor: pointer; font-weight: 550; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.tabs button:hover { color: var(--fg); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.tabs button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.tabs button .n { margin-left: 6px; color: var(--muted); font-weight: 500; font-size: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px 4px; animation: rise .35s var(--ease) both; }
.scroll { overflow-x: auto; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
table.t tr.click { cursor: pointer; }
table.t td .sub { display: block; color: var(--muted); font-size: 12px; }
table.t td.nowrap { white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; }
.banners { display: grid; gap: 8px; margin: 0 0 18px; }
.banner { padding: 10px 14px; border-radius: 12px; font-size: 13px; border: 1px solid transparent; animation: rise .35s var(--ease) both; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.banner.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.stat { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.stat small { display: block; color: var(--muted); font-size: 12px; } .stat b { font-size: 20px; font-weight: 650; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form .full { grid-column: 1 / -1; }
.form .field { margin-bottom: 0; }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--fg-2); }
.secret { display: grid; gap: 10px; }
.secret .code { font: 600 22px/1.2 var(--mono); letter-spacing: .06em; padding: 14px 16px; border-radius: 12px; text-align: center;
  background: var(--accent-soft); color: var(--accent); user-select: all; }
.secret pre { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; user-select: all; }
.note { font-size: 12.5px; color: var(--muted); }
.qr { display: grid; place-items: center; padding: 0; background: #fff; border-radius: 14px; width: max-content; margin: 4px auto 6px; }
.qr svg { display: block; width: 220px; height: 220px; shape-rendering: crispEdges; }
.totp-input { text-align: center; font: 600 20px var(--mono); letter-spacing: .3em; }
.notes { font-size: 13px; color: var(--fg-2); white-space: pre-wrap; max-height: 240px; overflow: auto; padding: 10px 12px;
  background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.bar.warn i { background: var(--warn); }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--muted); cursor: pointer; border: 0; background: none; padding: 0; }
.back:hover { color: var(--fg); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.filters .input { height: 34px; width: auto; min-width: 160px; flex: 1 1 160px; max-width: 280px; }
.chipset { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.chipset button { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); cursor: pointer; }
.chipset button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.stale { color: var(--warn); font-weight: 600; }
@media (max-width: 720px) {
  .form { grid-template-columns: 1fr; }
  .tabs { margin-bottom: 16px; }
  table.t th, table.t td { padding: 7px 6px; }
}
.brand > div { white-space: nowrap; }
