/* =========================================================================
   Teleprompter — app styles
   ========================================================================= */

:root {
  --bg: #080b11;
  --panel: #101720;
  --panel-2: #0c1219;
  --panel-3: #0d1420;
  --line: #1e2836;
  --line-2: #263043;
  --text: #e7ecf3;
  --muted: #8b97a8;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.tp-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.sep { color: #3a465a; margin: 0 4px; }

/* ------------------------------------------------------------- navigation */
.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 17, .9);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-inner.wide { max-width: 1560px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.15; }
.brand-text small { font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links > a {
  color: var(--muted); font-size: 13.5px; padding: 7px 11px; border-radius: 8px;
}
.nav-links > a:hover { color: var(--text); background: #131b26; text-decoration: none; }
.nav-links > a.active { color: var(--text); background: #16202c; }
.nav-links > a.nav-admin { color: var(--warn); }
.nav-links > a.btn { padding: 7px 13px; }

/* ------------------------------------------------------------------ layout */
.page { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }
.page.wide { max-width: 1560px; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card-label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 12px;
}

.foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.foot-inner {
  max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between;
  gap: 12px; font-size: 12px; color: #6b7788; flex-wrap: wrap;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px; border: 1px solid transparent;
  background: #1b2431; color: var(--text); font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { background: #232f3f; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2f74e0; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: #151d28; }
.btn-danger { background: #3b1111; border-color: #7f1d1d; color: #fecaca; }
.btn-danger:hover { background: #4a1515; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ pills */
.pill {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: #12203a; border: 1px solid #1e3a6b; color: var(--accent-2);
  font-size: 11.5px; font-weight: 500; letter-spacing: .01em; margin-bottom: 14px;
}
.pill-warn { background: #2a2110; border-color: #6b5314; color: var(--warn); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--line-2);
  background: #131b26; color: var(--muted);
}
.badge-ok { border-color: #14532d; background: #0f2a1b; color: #86efac; }
.badge-trial { border-color: #6b5314; background: #2a2110; color: #fcd34d; }
.badge-bad { border-color: #7f1d1d; background: #3b1111; color: #fecaca; }

/* ------------------------------------------------------------------ alerts */
.alert {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px;
  border: 1px solid var(--line-2); background: #131b26;
}
.alert-success { background: #0f2a1b; border-color: #14532d; color: #bbf7d0; }
.alert-error { background: #3b1111; border-color: #7f1d1d; color: #fecaca; }
.alert-warn { background: #2a2110; border-color: #6b5314; color: #fde68a; }
.alert-info { background: #0f2036; border-color: #1e3a6b; color: #bfdbfe; }

/* ------------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 44px 0 56px;
}
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 18px; }
.lede { font-size: 16.5px; color: #a8b4c4; max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 12px; }

.hero-art { position: relative; }
.mock {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  overflow: hidden; box-shadow: 0 30px 80px -30px rgba(59, 130, 246, .35);
  transform: rotate(-1deg);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: #0d131c;
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3547; display: block; }
.mock-bar span { margin-left: auto; font-size: 11px; color: #6b7788; }
.mock-body { padding: 44px 30px 64px; min-height: 260px; position: relative; }
.mock-line { font-size: 21px; line-height: 1.6; margin: 0 0 18px; }
.mock-line.dim { color: #45505f; }
.mock-line.focus { color: #fff; font-weight: 500; }
.mock-guide {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .55), transparent);
}

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 10px 0 44px; border-top: 1px solid var(--line); padding-top: 36px;
}
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; margin: 0; }

.home-plans { border-top: 1px solid var(--line); padding-top: 32px; }
.home-plans h2 { font-size: 18px; color: #c8d2e0; font-weight: 500; }
.plan-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.plan-chip {
  display: flex; flex-direction: column; gap: 4px; padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text);
}
.plan-chip:hover { border-color: var(--line-2); background: #131b26; text-decoration: none; }
.plan-chip-name { font-size: 13px; color: var(--muted); }
.plan-chip-price { font-size: 22px; font-weight: 600; }
.plan-chip-days { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------- auth */
.auth-body .page { padding-top: 40px; }
.auth-wrap { display: grid; place-items: center; min-height: 60vh; }
.auth-card {
  width: 100%; max-width: 460px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 30px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; } 
.auth-card > p { margin-bottom: 22px; font-size: 13.5px; }
.auth-foot { margin: 18px 0 0; text-align: center; font-size: 13px; }

.field { display: block; margin-bottom: 16px; }
.field > span, .field-label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; margin-bottom: 7px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.field-row-between .field-label { margin-bottom: 0; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text);
  font-family: inherit; font-size: 14px; line-height: 1.4;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%238b97a8' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.field-err { display: block; color: #fca5a5; font-size: 12px; font-style: normal; margin-top: 5px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #b7c2d0; margin: 4px 0 18px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--accent); }
.check-sm { font-size: 12.5px; margin-bottom: 14px; }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 22px; }
input[type="color"] {
  width: 100%; height: 34px; padding: 2px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--panel-3); cursor: pointer;
}

/* ------------------------------------------------------------------ plans */
.plans-head { text-align: center; max-width: 620px; margin: 20px auto 34px; }
.plans-head h1 { font-size: 32px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; display: flex; flex-direction: column;
}
.plan-card-hi { border-color: #2f5fa8; box-shadow: 0 0 0 1px rgba(59, 130, 246, .25) inset; }
.plan-badge {
  position: absolute; top: -10px; left: 18px; background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.plan-card h3 { font-size: 15px; color: #c8d2e0; margin-bottom: 10px; }
.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.plan-days { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.plan-tag { font-size: 13px; color: var(--muted); min-height: 38px; margin-bottom: 16px; }
.plan-card .btn { margin-top: auto; }
.plan-per { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.paywall { max-width: 1000px; margin: 0 auto; }
.paywall-head { text-align: center; max-width: 560px; margin: 10px auto 32px; }
.paywall-head h1 { font-size: 28px; }

.trust {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px; font-size: 12.5px; color: var(--muted);
}

/* =========================================================== teleprompter */
.tp-body .page { padding-top: 22px; }
.tp-shell { max-width: 1200px; margin: 0 auto; }

.tp-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.tp-head h1 { font-size: 22px; margin-bottom: 4px; }
.tp-head p { font-size: 13px; margin: 0; max-width: 62ch; }
.tp-status { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.tp-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }

.script-card { display: flex; flex-direction: column; min-height: 560px; }
#script {
  flex: 1; min-height: 460px; resize: vertical; padding: 16px;
  font-size: 15px; line-height: 1.85; background: #0a1017; border-color: var(--line);
  border-radius: 9px;
}
#script.shake { animation: shake .4s; border-color: var(--danger); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.script-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.script-foot span { font-size: 12.5px; }
.script-actions { display: flex; gap: 8px; }

.look-card .field { margin-bottom: 18px; }
.look-card .field:last-of-type { margin-bottom: 12px; }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px;
}
.segmented button {
  padding: 9px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); font-family: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background .15s, color .15s;
}
.segmented button:hover { color: var(--text); }
.segmented button.active { background: #1f2b3d; color: #fff; }

.value-badge { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.is-dim { opacity: .45; pointer-events: none; }

.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] { width: 78px; flex: 0 0 78px; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatches button {
  width: 24px; height: 24px; border-radius: 5px; border: 1px solid #2a3547;
  background: var(--sw); cursor: pointer; padding: 0;
}
.swatches button:hover { border-color: #6b7a8f; transform: scale(1.06); }

.btn-start {
  margin-top: 8px; padding: 14px; font-size: 15px; font-weight: 600;
  background: linear-gradient(180deg, #3f7ef7, #2f6fe0);
  box-shadow: 0 8px 24px -10px rgba(59, 130, 246, .8);
}
.btn-start:hover { background: linear-gradient(180deg, #4a86ff, #3574e6); }
.play-ico { font-size: 11px; }

.hints { margin-top: 16px; font-size: 11.5px; color: var(--muted); line-height: 1.9; }
.hints p { margin: 0; }
.hints strong { color: #b7c2d0; font-weight: 500; }
kbd {
  display: inline-block; padding: 1px 5px; border-radius: 4px; background: #16202c;
  border: 1px solid #263043; font-family: inherit; font-size: 10.5px; color: #c8d2e0;
}

/* ---------------------------------------------------------------- stage */
.stage {
  position: fixed; inset: 0; z-index: 999;
  background: var(--tp-bg, #000);
  color: var(--tp-fg, #fff);
  font-family: var(--tp-font, var(--font));
  font-size: var(--tp-size, 80px);
  line-height: 1.45;
  text-align: var(--tp-align, left);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage[hidden] { display: none; }
.stage-overlay[hidden],
.stage-countdown[hidden] { display: none; }

.stage-pages { position: absolute; inset: 0; }

.stage-text {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 38vh 6vw 60vh;
  will-change: transform;
}
.stage-text p { margin: 0 0 .7em; }
.stage-text p:last-child { margin-bottom: 0; }

.tp-page {
  position: absolute; inset: 0;
  padding: 8vh 6vw;
  overflow: hidden;
  visibility: hidden; opacity: 0;
}
.tp-page.is-active { visibility: visible; opacity: 1; }
.tp-page p { margin: 0 0 .7em; }
.page-empty { font-size: .5em; opacity: .7; }

.stage[data-anim="slide-up"] .tp-page.is-active { animation: pageInUp .42s cubic-bezier(.22,.7,.3,1); }
.stage[data-anim="slide-x"] .tp-page.is-active { animation: pageInX .42s cubic-bezier(.22,.7,.3,1); }
.stage[data-anim="fade"] .tp-page.is-active { animation: pageInFade .38s ease; }
.stage[data-anim="flip"] .tp-page.is-active { animation: pageInFlip .5s ease; }
.stage[data-anim="none"] .tp-page.is-active { animation: none; }

.stage-pages[data-dir="prev"][data-anim] { }

.stage[data-anim="slide-up"] .stage-pages[data-dir="prev"] .tp-page.is-active { animation-name: pageInDown; }

@keyframes pageInUp { from { transform: translateY(14%); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes pageInDown { from { transform: translateY(-14%); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes pageInX { from { transform: translateX(8%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes pageInFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageInFlip { from { transform: perspective(1400px) rotateX(12deg); opacity: 0; } to { transform: none; opacity: 1; } }

.stage-guide {
  position: absolute; left: 0; right: 0; top: 46%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.stage.show-guide .stage-guide { opacity: 1; }

.stage.mirrored .stage-pages,
.stage.mirrored .stage-guide { transform: scaleX(-1); }

.stage-countdown {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 20;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px);
}
.stage-countdown span {
  font-size: 22vh; font-weight: 700; color: #fff; opacity: .95;
  animation: pop .7s ease;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } 50% { transform: scale(1.05); opacity: 1; } to { transform: scale(1); opacity: .9; } }

.stage-hud {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(10, 14, 20, .82); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  font-size: 13px; color: #e7ecf3; text-align: left;
  transition: opacity .25s, transform .25s;
  max-width: min(94vw, 900px);
}
.stage.hud-hidden .stage-hud { opacity: 0; transform: translateX(-50%) translateY(14px); pointer-events: none; }
.hud-left, .hud-right, .hud-mid { display: flex; align-items: center; gap: 6px; }
.hud-mid { flex: 1; min-width: 160px; }
.hud-mid input[type="range"] { flex: 1; min-width: 80px; accent-color: var(--accent); height: 18px; }
.hud-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06); color: #e7ecf3; cursor: pointer;
  font-family: inherit; font-size: 13px; display: grid; place-items: center;
}
.hud-btn:hover { background: rgba(255, 255, 255, .14); }
.hud-play { width: 42px; background: var(--accent); border-color: transparent; }
.hud-play:hover { background: #2f74e0; }
.hud-chip {
  font-size: 11.5px; color: #9aa7b8; padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .05); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.hud-timer.is-low { color: #fca5a5; }

.stage-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, .07); z-index: 25;
}
.stage-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }

.stage-overlay {
  position: absolute; inset: 0; z-index: 40; display: grid; place-items: center;
  background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px);
}
.stage-overlay-card {
  background: #11161f; border: 1px solid #263043; border-radius: 16px;
  padding: 30px; text-align: center; max-width: 400px; width: calc(100% - 40px);
  font-size: 14px; color: #e7ecf3; text-align: center;
}
.stage-overlay-card h2 { font-size: 20px; margin-bottom: 8px; }
.stage-overlay-card .btn { margin: 6px 4px 0; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  background: #0d131c; font-weight: 600;
}
table.data tbody tr:hover { background: #131b26; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.wrap { white-space: normal; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 28px 0 36px; }
  .hero h1 { font-size: 34px; }
  .features { grid-template-columns: 1fr 1fr; }
  .plan-strip { grid-template-columns: 1fr 1fr; }
  .tp-grid { grid-template-columns: 1fr; }
  .script-card { min-height: 380px; }
  #script { min-height: 300px; }
}

@media (max-width: 640px) {
  .nav-links > a:not(.btn) { display: none; }
  .nav-links > a.nav-admin { display: inline-flex; }
  .page { padding: 18px 14px 48px; }
  h1 { font-size: 22px; }
  .hero h1 { font-size: 29px; }
  .features, .plan-strip { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tp-head { flex-direction: column; }
  .stage-hud { gap: 8px; padding: 8px 10px; bottom: 12px; }
  .hud-mid { order: 3; width: 100%; }
  .hud-right { order: 2; }
  .stage-text { padding: 34vh 5vw 55vh; }
  .tp-page { padding: 7vh 5vw; }
}

/* ------------------------------------------------------ shared components */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mini-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 14px 0 0; }
.mini-stats > div { display: flex; flex-direction: column; }
.mini-val { font-size: 17px; font-weight: 600; }
.mini-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kv-list { margin-top: 18px; border-top: 1px solid var(--line); }
.kv-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list span { color: var(--muted); }
.kv-list strong { font-weight: 500; text-align: right; }
.summary { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; margin-bottom: 18px; background: var(--panel-2); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--muted); }
.summary-total { font-size: 16px; }
.summary-total strong { color: #fff; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.hint { display: block; font-size: 11.5px; color: var(--muted); font-style: normal; margin-top: 5px; line-height: 1.5; }
.stack-form .field { margin-bottom: 14px; }
