/* ──────────────────────────────────────────────────────────────────────
   Reports Service · Admin (Same Page design language)
   ────────────────────────────────────────────────────────────────────── */

:root {
  /* Surface */
  --bg:         #050506;
  --bg-soft:    #0B0B0D;
  --surface-1:  #0F0F12;
  --surface-2:  #15151A;
  --surface-3:  #1B1B22;
  --line:       #22222A;
  --line-strong:#2E2E38;

  /* Text */
  --text:       #F4F4F2;
  --text-soft:  #B5B5B0;
  --text-dim:   #7A7A75;
  --text-muted: #4F4F4D;

  /* Brand (Tiffany — как у Same Page) */
  --tiffany:        #0ABAB5;
  --tiffany-bright: #2DD4CE;
  --tiffany-glow:   rgba(10, 186, 181, 0.18);
  --tiffany-soft:   rgba(10, 186, 181, 0.10);
  --tiffany-line:   rgba(10, 186, 181, 0.32);

  /* Status */
  --success:      #22C55E;
  --success-bg:   rgba(34, 197, 94, 0.10);
  --success-line: rgba(34, 197, 94, 0.32);
  --warning:      #F5A524;
  --warning-bg:   rgba(245, 165, 36, 0.10);
  --warning-line: rgba(245, 165, 36, 0.32);
  --danger:       #EF4444;
  --danger-bg:    rgba(239, 68, 68, 0.10);
  --danger-line:  rgba(239, 68, 68, 0.32);

  /* Layout */
  --max-w:   1280px;
  --gutter:  28px;
  --r-sm:    10px;
  --r-md:    14px;
  --r-lg:    20px;
  --r-xl:    28px;

  /* Motion */
  --t-fast: 140ms cubic-bezier(.4,0,.2,1);
  --t-base: 240ms cubic-bezier(.4,0,.2,1);
  --t-slow: 480ms cubic-bezier(.22,1,.36,1);

  /* Type */
  --f-display: "Unbounded", "Inter", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Backward-compat aliases (старые шаблоны используют) */
  --accent:    var(--tiffany);
  --accent-ink:#000;
  --panel:     var(--surface-1);
  --panel-2:   var(--surface-2);
  --border:    var(--line);
  --muted:     var(--text-dim);
  --ok:        var(--success);
  --err:       var(--danger);
  --info:      var(--tiffany);
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  letter-spacing: -0.005em;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--tiffany); color: #000; }
code {
  font-family: var(--f-mono);
  font-size: .9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text-soft);
}

/* Subtle backdrop glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(10, 186, 181, .06), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(10, 186, 181, .04), transparent 60%);
}

/* ── Layout shell ──────────────────────────────────────────────────── */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--gutter) 80px;
  flex: 1;
}

/* ── Topbar ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar__inner,
.topbar {
  display: flex;
  align-items: center;
}
.topbar > .container {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  flex: 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
  color: var(--text);
}
.brand__mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tiffany);
  color: #000;
  border-radius: 7px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.02em;
  flex: 0 0 28px;
  box-shadow: 0 0 14px rgba(10, 186, 181, 0.45);
}
.brand__name em { font-style: normal; color: var(--tiffany); }

nav,
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
nav a,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  transition: color var(--t-fast), background var(--t-fast);
}
nav a:hover,
.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  margin-bottom: 22px;
}
h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 14px;
}
h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 14px 0 8px;
  color: var(--text);
}

p { margin: 0 0 10px; }
.muted, .dim { color: var(--text-dim); }
.soft { color: var(--text-soft); }
.small { font-size: 12.5px; }
.mono { font-family: var(--f-mono); }
.sep { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* ── Buttons (pill, как у Same Page) ───────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover {
  border-color: var(--tiffany-line);
  color: var(--tiffany-bright);
}
.btn:active { transform: translateY(1px); }
.btn[disabled],
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary,
.btn--primary {
  background: var(--tiffany);
  color: #000;
  border-color: var(--tiffany);
}
.btn-primary:hover,
.btn--primary:hover {
  background: var(--tiffany-bright);
  border-color: var(--tiffany-bright);
  color: #000;
}
.btn-primary::after,
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: var(--tiffany);
  filter: blur(22px);
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: -1;
}
.btn-primary:hover::after,
.btn--primary:hover::after { opacity: .5; }

.btn-ghost,
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-soft);
}
.btn-ghost:hover,
.btn--ghost:hover { color: var(--tiffany); border-color: var(--tiffany); }

.btn--danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-line);
}
.btn--danger:hover { background: rgba(239, 68, 68, .16); color: var(--danger); }

.btn--sm { padding: 7px 12px; font-size: 12px; }
.btn--lg { padding: 14px 22px; font-size: 14px; }

/* ── Inputs ────────────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-soft));
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.form label,
.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
}
.form input,
.form textarea,
.form select,
.field {
  display: block;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 13px;
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
}
.form input:hover,
.form textarea:hover,
.form select:hover,
.field:hover { border-color: var(--line-strong); }
.form input:focus,
.form textarea:focus,
.form select:focus,
.field:focus {
  border-color: var(--tiffany);
  background: var(--surface-1);
}
.form input::placeholder,
.form textarea::placeholder,
.field::placeholder { color: var(--text-muted); }
.form textarea { min-height: 96px; resize: vertical; }
.form .row { display: flex; gap: 14px; }
.form .row label { flex: 1; }

/* ── Cards / sections ──────────────────────────────────────────────── */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 18px 0;
  transition: border-color var(--t-base);
}
.card:hover { border-color: var(--line-strong); }
.card h2 { margin-bottom: 14px; }
.card ul.meta {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}
.card ul.meta li { margin: 5px 0; }
.card ul.meta b { color: var(--text); font-weight: 600; }

/* ── Grid (таблицы) ────────────────────────────────────────────────── */
table.grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
table.grid th,
table.grid td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
table.grid th {
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr { transition: background var(--t-fast); }
table.grid tbody tr:hover { background: rgba(255, 255, 255, .015); }

/* ── Badges / pills ───────────────────────────────────────────────── */
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.badge-active,
.badge-ready,
.pill--ok {
  color: var(--success);
  background: var(--success-bg);
  border-color: var(--success-line);
}
.badge-pending,
.pill--warn {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: var(--warning-line);
}
.badge-expired,
.badge-failed,
.pill--bad {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-line);
}
.pill--brand {
  color: var(--tiffany);
  background: var(--tiffany-soft);
  border-color: var(--tiffany-line);
}

/* ── Snapshots / nested entries ────────────────────────────────────── */
.snapshot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.snapshot h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--tiffany);
  font-weight: 700;
  text-transform: uppercase;
}
.snapshot .meta {
  margin: 6px 0 12px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}
.snapshot .meta b { color: var(--text); font-weight: 600; }

/* ── Gallery of snapshot thumbnails ────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.gallery a {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.gallery a:hover {
  border-color: var(--tiffany-line);
  transform: translateY(-2px);
}
.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--bg);
}
.gallery span {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  letter-spacing: -0.005em;
}

/* ── Сравнительная таблица статистики ─────────────────────────────── */
.stats-cmp td:nth-child(2),
.stats-cmp td:nth-child(3),
.stats-cmp td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stats-cmp .delta { font-weight: 600; }
.stats-cmp .delta.up { color: var(--success); }
.stats-cmp .delta.down { color: var(--danger); }

/* ── Footer ────────────────────────────────────────────────────────── */
.app-footer {
  margin-top: auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--f-body);
  letter-spacing: -0.005em;
}
.app-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.app-footer .ver {
  color: var(--tiffany);
  font-weight: 600;
  font-family: var(--f-mono);
}

/* ── Floating jobs panel ─────────────────────────────────────────────── */
#jobs-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 360px;
  max-width: calc(100vw - 36px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--tiffany-line);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px var(--tiffany-glow);
  z-index: 9999;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  transition: transform var(--t-base), opacity var(--t-base);
}
#jobs-panel.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
#jobs-panel.is-collapsed .jobs-panel__body { display: none; }
.jobs-panel__hd {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}
.jobs-panel__title {
  flex: 1;
  font-weight: 600;
  font-size: 12px;
  color: var(--tiffany);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.jobs-panel__toggle {
  background: transparent;
  border: 0;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 18px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
}
.jobs-panel__toggle:hover { background: var(--surface-2); color: var(--text); }
.jobs-panel__body { padding: 8px; max-height: 60vh; overflow-y: auto; }
.job {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.job:last-child { margin-bottom: 0; }
.job__row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.job__kind { font-size: 11px; color: var(--tiffany); font-weight: 600; white-space: nowrap; }
.job__title { flex: 1; color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job__dur { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.job__bar {
  height: 4px; background: var(--surface-3); border-radius: 999px; overflow: hidden;
}
.job__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tiffany), var(--tiffany-bright));
  transition: width .4s ease;
}
.job__meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.job__stage {
  background: var(--tiffany-soft);
  border: 1px solid var(--tiffany-line);
  color: var(--tiffany);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.job__count { font-variant-numeric: tabular-nums; }
.job__msg { color: var(--text-soft); }

/* ── Client detail · status grid ─────────────────────────────────────── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px !important;
}
@media (max-width: 720px) { .status-grid { grid-template-columns: repeat(2, 1fr); } }
.status-cell {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: 12px;
}
.status-cell__lbl { color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.status-cell__val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.status-cell.ok { border-color: var(--success-line); background: var(--success-bg); }
.status-cell.ok .status-cell__val { color: var(--success); }
.status-cell.miss { border-color: var(--line); background: var(--surface-2); }
.status-cell.miss .status-cell__val { color: var(--text-muted); }

/* ────────────────────────────────────────────────────────────────────────
   Form kit — переиспользуемые поля (используется в report_new.html)
   ──────────────────────────────────────────────────────────────────────── */
.form-card {
  max-width: 680px;
  padding: 30px 32px 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--tiffany-soft), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.field { display: block; margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-soft);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.field__hint { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }
.inp {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.inp::placeholder { color: var(--text-muted); }
.inp:hover { border-color: var(--line-strong); }
.inp:focus {
  outline: none;
  border-color: var(--tiffany);
  box-shadow: 0 0 0 3px var(--tiffany-soft);
  background: var(--surface-2);
}
.inp--mono { font-family: var(--f-mono); font-size: 13px; }

/* Период-боксы: до / после */
.period-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 6px; }
@media (max-width: 560px) { .period-grid { grid-template-columns: 1fr; } }
.period-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 16px 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.period-box:focus-within { border-color: var(--line-strong); }
.period-box--after {
  border-color: var(--tiffany-line);
  box-shadow: inset 0 0 0 1px rgba(10,186,181,.06);
}
.period-box--after:focus-within {
  border-color: var(--tiffany);
  box-shadow: 0 0 0 3px var(--tiffany-soft);
}
.period-box__head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.period-box--after .period-box__head { color: var(--tiffany); }
.period-box__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.period-box--after .period-box__dot { box-shadow: 0 0 8px var(--tiffany); }
.sub-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 10px 0 4px;
}
.sub-label:first-of-type { margin-top: 0; }

/* Дата: брендовая бирюзовая иконка календаря, вся ячейка кликабельна */
.date-field {
  color-scheme: dark;          /* нативный дропдаун календаря — тёмный */
  cursor: pointer;
  padding-right: 40px;
  font-variant-numeric: tabular-nums;
}
.date-field::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  width: 18px; height: 18px;
  cursor: pointer;
  opacity: .75;
  transition: opacity var(--t-fast), transform var(--t-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232DD4CE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.date-field:hover::-webkit-calendar-picker-indicator { opacity: 1; transform: scale(1.08); }
.date-wrap { position: relative; }

/* Кнопка-сабмит крупная с бирюзовым свечением */
.btn--cta {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--tiffany-bright), var(--tiffany));
  color: #001311;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px var(--tiffany-glow), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform var(--t-fast), box-shadow var(--t-base), filter var(--t-fast);
}
.btn--cta:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -10px rgba(10,186,181,.5); filter: brightness(1.05); }
.btn--cta:active { transform: translateY(0); }


/* ── Report new: инлайн-панель под формой (прогресс / готово / ошибка) ── */
.result-panel {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line-strong);
  animation: panel-in .3s var(--t-base);
}
.result-panel[hidden] { display: none !important; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Прогресс */
.rp__row { display: flex; align-items: center; gap: 16px; }
.rp__spinner {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--tiffany);
  border-right-color: var(--tiffany-bright);
  animation: rp-spin .8s linear infinite;
}
@keyframes rp-spin { to { transform: rotate(360deg); } }
.rp__title { font-family: var(--f-display); font-size: 16px; font-weight: 700; }
.rp__stage { color: var(--tiffany); font-size: 13px; font-weight: 500; margin-top: 2px;
  animation: rp-pulse 1.6s ease-in-out infinite; }
@keyframes rp-pulse { 0%,100% { opacity:.6; } 50% { opacity:1; } }
.rp__bar { height: 4px; margin-top: 16px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.rp__bar-fill { height: 100%; width: 35%;
  background: linear-gradient(90deg, transparent, var(--tiffany-bright), transparent);
  animation: rp-slide 1.3s ease-in-out infinite; }
@keyframes rp-slide { 0% { transform: translateX(-140px); } 100% { transform: translateX(680px); } }

/* Готово */
.rd { border-color: var(--tiffany-line); }
.rd__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rd__check {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 22px; color: #001311; font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--tiffany-bright), var(--tiffany));
  box-shadow: 0 0 0 5px var(--tiffany-soft);
  animation: rd-pop .4s var(--t-slow);
}
@keyframes rd-pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.rd__title { font-family: var(--f-display); font-size: 18px; font-weight: 700; }
.rd__name { font-size: 14px; font-weight: 600; color: var(--tiffany); margin-top: 2px; }
.rd__actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
@media (max-width: 560px) { .rd__actions { grid-template-columns: 1fr; } }
.rd__pdf { text-decoration: none; text-align: center; padding: 12px 20px; }
.rd__pdf.is-wait, .rd__pdf[aria-disabled="true"] { opacity: .6; pointer-events: none; filter: grayscale(.3); }
.rd__view, .rd__again { white-space: nowrap; }

/* Ошибка */
.re { border-color: var(--danger-line); background: linear-gradient(180deg, var(--danger-bg), var(--surface-1)); }
.re__row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.re__icon { flex: 0 0 auto; font-size: 26px; line-height: 1; }
.re__title { font-family: var(--f-display); font-size: 17px; font-weight: 700; color: var(--danger); }
.re__msg { color: var(--text-soft); font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
.re__retry { }

/* ── Авторизация ────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(800px 500px at 50% -10%, rgba(10,186,181,.08), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px;
  padding: 34px 32px 30px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.85);
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  color: var(--text); margin-bottom: 18px;
}
.auth-brand em { color: var(--tiffany); font-style: normal; }
.auth-title { font-family: var(--f-display); font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.auth-sub { color: var(--text-dim); font-size: 13px; line-height: 1.5; margin: 0 0 20px; }
.auth-error {
  background: var(--danger-bg); border: 1px solid var(--danger-line);
  color: #ffb4b4; font-size: 13px; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 16px;
}
.auth-hint { color: var(--text-dim); font-size: 12px; margin: 16px 0 0; text-align: center; }
.code-input {
  font-family: var(--f-mono); font-size: 28px; letter-spacing: 10px; text-align: center; padding: 12px;
}

/* nav-элементы пользователя */
.nav-user { color: var(--text-dim); font-size: 13px; margin-left: 6px; }
.nav-logout { color: var(--text-soft) !important; }
.nav-logout:hover { color: var(--danger) !important; }
.btn--sm { padding: 4px 9px; font-size: 12px; }

/* ── Сегмент-переключатель (Мои / Все) ──────────────────────────────── */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg__btn {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); text-decoration: none; transition: all var(--t-fast);
}
.seg__btn:hover { color: var(--text); text-decoration: none; }
.seg__btn.is-on { background: var(--tiffany); color: #001311; }
