:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4f;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --warn: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.layout { max-width: 1200px; margin: 0 auto; padding: 24px; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}

.header h1 { font-size: 1.75rem; font-weight: 600; }
.subtitle { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab.hidden { display: none; }

.panel.hidden { display: none; }

.card-settings { max-width: 720px; }

.intro { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }

.callout {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.callout-info { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); }
.callout-ok { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35); color: var(--success); }
.callout-warn { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); color: var(--warn); }

.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 8px;
  margin-bottom: 20px;
}

.fieldset legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 6px;
}

.legend-toggle { cursor: pointer; user-select: none; }

.field { margin-bottom: 16px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .field-row { grid-template-columns: 1fr; }
}

.field-help, .field-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

.field-meta.meta-ok { color: var(--success); }
.field-meta.meta-warn { color: var(--warn); }

.field-help code, .env-path code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.required { color: var(--error); }

.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-row input { flex: 1; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-actions .btn-primary { width: auto; flex: 1; min-width: 200px; }

.success-msg {
  color: var(--success);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.env-path {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

.logo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.logo-upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}

.logo-upload-text { font-size: 0.9rem; color: var(--muted); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

.logo-preview {
  max-width: 100%;
  max-height: 120px;
  margin-top: 12px;
  border-radius: 8px;
  object-fit: contain;
}

.select-full {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.templates-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .templates-layout { grid-template-columns: 1fr; }
}

.tpl-list {
  width: 100%;
  min-height: 160px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.tpl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; margin-bottom: 4px; }

.field-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 0.9rem; }

.field-check input { width: auto; }

.templates-editor-card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px;
  font-family: inherit;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .card-history { grid-column: 1; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h2 { font-size: 1.1rem; margin-bottom: 16px; }

.card-history { grid-column: 1 / -1; }

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 12px;
}

.label:first-of-type { margin-top: 0; }

.hint { color: var(--muted); font-weight: 400; }

textarea, input[type="url"], input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.9rem;
}

textarea { resize: vertical; font-family: inherit; }

textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent);
}

.meta { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-success { background: var(--success); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; margin-top: 0; margin-bottom: 12px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-ok { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.badge-warn { background: rgba(245, 158, 11, 0.2); color: var(--warn); }
.badge-err { background: rgba(239, 68, 68, 0.2); color: var(--error); }
.badge-run { background: rgba(59, 130, 246, 0.2); color: var(--accent); }

#healthBadge.badge-warn { cursor: pointer; }
#healthBadge.badge-warn:hover { filter: brightness(1.1); }

.error { color: var(--error); font-size: 0.85rem; margin-top: 8px; }
.warn { color: var(--warn); font-size: 0.85rem; margin-top: 8px; }
.hidden { display: none !important; }
.empty { color: var(--muted); font-size: 0.9rem; }

.progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transition: width 0.4s ease;
}

.step { font-weight: 500; }
.msg { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.mono { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--muted); }

.progress-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.items {
  list-style: none;
  margin-top: 16px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.items li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.item-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.item-row > div {
  flex: 1;
  min-width: 0;
}

.item-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.item-title-text {
  min-width: 0;
}

.item-replace-toggle {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.item-replace-toggle:hover {
  color: var(--accent-hover);
}

.item-replace-toggle.is-open {
  font-weight: 600;
}

.item-replace-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.item-replace-panel .item-mockup-gallery-block,
.item-replace-panel .item-mockup-form {
  margin-left: 0;
}

.item-replace-regen {
  margin-bottom: 10px;
}

.item-replace-upload {
  margin-top: 10px;
}

.item-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.item-delete-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: #e57373;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.item-delete-btn:hover {
  border-color: #e57373;
  background: rgba(229, 115, 115, 0.12);
}

.items-add-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.items-add-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.items-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.items-add-row input[type="url"],
.items-add-panel textarea {
  flex: 1 1 220px;
  min-width: 160px;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}

.items-add-panel textarea {
  margin-bottom: 8px;
}

.items-add-count {
  font-size: 0.72rem;
  color: var(--muted);
}

.pending-edits-banner {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: var(--text);
}

.items-add-hint {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.items .ok { color: var(--success); }
.items .fail { color: var(--error); }

.item-error {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 2px;
  word-break: break-word;
}

.item-mockup-meta {
  margin: 6px 0 0 22px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.item-mockup-meta a {
  color: var(--accent);
  word-break: break-all;
}

.item-mockup-form {
  margin: 8px 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.item-mockup-form-regen {
  margin-top: 0;
  padding-top: 0;
}

.item-mockup-form-regen .btn {
  flex: 1 0 auto;
}

.item-mockup-form-title {
  flex: 1 0 100%;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.item-mockup-gallery span {
  margin-right: 4px;
}

.item-mockup-gallery-block {
  margin: 8px 0 0 22px;
  max-width: 100%;
}

.item-mockup-gallery-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.mockup-gallery-pick {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 4px;
}

.mockup-gallery-pick.is-active {
  border-color: var(--accent);
  font-weight: 600;
}

.mockup-gallery-pick:hover {
  background: var(--bg);
}

.mockup-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  max-width: 360px;
}

.mockup-gallery-thumb {
  border: 2px solid var(--border);
  background: var(--surface);
  padding: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.mockup-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mockup-gallery-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.mockup-gallery-preview-inline {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-top: 10px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1018;
  min-height: 140px;
  max-height: 240px;
  cursor: zoom-in;
  overflow: hidden;
}

.mockup-gallery-preview-inline img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.mockup-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.job-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.btn-danger-text {
  color: #c0392b;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 96vw);
  height: min(92vh, 880px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.gallery-lightbox-caption {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

.gallery-lightbox-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}

.gallery-lightbox-image-wrap {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070b12;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-lightbox-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.gallery-lightbox-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 4px;
}

.gallery-lightbox-close:hover {
  color: var(--text);
}

.gallery-lightbox-nav {
  align-self: center;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery-lightbox-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 720px) {
  .gallery-lightbox {
    padding: 0;
  }

  .gallery-lightbox-shell {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .gallery-lightbox-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 8px;
  }

  .gallery-lightbox-nav {
    width: 100%;
    height: 40px;
    border-radius: 8px;
  }

  .gallery-lightbox-prev { order: 2; }
  .gallery-lightbox-image-wrap { order: 1; min-height: 50vh; }
  .gallery-lightbox-next { order: 3; }
}

.item-mockup-form input[type="url"] {
  flex: 1 1 180px;
  min-width: 140px;
  font-size: 0.75rem;
  padding: 6px 8px;
}

.item-mockup-form input[type="file"] {
  max-width: 200px;
  font-size: 0.72rem;
}

.history { display: flex; flex-direction: column; gap: 8px; }

.logo-upload-zone.disabled-zone {
  opacity: 0.45;
  pointer-events: none;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.85rem;
  gap: 12px;
}

.history-item {
  flex-wrap: wrap;
  gap: 8px;
}

.history-main {
  flex: 1;
  min-width: 180px;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-item a { color: var(--accent); text-decoration: none; }
.history-item a:hover { text-decoration: underline; }

.tpl-subhead {
  font-size: 0.8rem;
  margin: 10px 0 6px;
}

.tpl-add-page {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpl-add-page input {
  font-size: 0.78rem;
  padding: 4px 6px;
}

.result { margin-top: 16px; }

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-buttons .btn { flex: 1; min-width: 140px; }

.tpl-settings-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 16px;
  align-items: start;
}

.tpl-settings-main .fieldset {
  margin-top: 14px;
}

.tpl-settings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tpl-settings-head h2 { margin: 0; }

.tpl-settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tpl-dev-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--surface-2, #f1f5f9);
  border-radius: 8px;
}

@media (max-width: 800px) {
  .tpl-settings-layout { grid-template-columns: 1fr; }
}

/* ---------- Auth & admin users ---------- */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-uname {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-card-wide { max-width: 440px; }

.auth-logo {
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.auth-card h1 {
  font-size: 1.35rem;
  margin: 12px 0 6px;
}

.auth-form {
  text-align: left;
  margin-top: 20px;
}

.auth-form .label { display: block; margin-bottom: 14px; }

.auth-form input {
  width: 100%;
  margin-top: 6px;
}

.auth-submit { width: 100%; margin-top: 8px; }

.auth-footer { margin-top: 16px; font-size: 0.9rem; }

.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.center { text-align: center; }

.small { font-size: 0.85rem; }

.flashes { margin-bottom: 16px; }
.flashes.hidden { display: none; }

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-align: left;
}

.flash-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.flash-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.data-table th.sortable:hover {
  color: var(--text);
}

.data-table th.sortable.sort-asc::after,
.data-table th.sortable.sort-desc::after {
  margin-left: 6px;
  font-size: 0.75em;
  color: var(--accent);
}

.data-table th.sortable.sort-asc::after {
  content: "▲";
}

.data-table th.sortable.sort-desc::after {
  content: "▼";
}

.stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 12px;
}

.stats-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.stats-toolbar select {
  min-width: 180px;
}

.row-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.row-form select {
  min-width: 130px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.admin-tabs {
  margin-bottom: 20px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat-card-accent {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 1.35rem;
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
}

.tariffs-form {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tariffs-form input {
  width: 100%;
  margin-top: 6px;
}

.meta.error {
  color: var(--error);
}
