/* AMONOVA Kampagnen-Review. Farben und Schriften folgen amonova.de:
   Anthrazit, Weiß, helles Grau, Bordeaux als einziger Akzent; Inter und Inter Tight.
   Gestaltungsprinzip: dunkle Kopfzeile, helle Fläche, weiße Kacheln, die sich
   abheben und auf den Mauszeiger reagieren. */

@font-face {
  font-family: 'Inter';
  src: url('assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('assets/inter-tight.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #f1f1ef;
  --card: #ffffff;
  --panel: #f6f6f4;
  --topbar: #1c1c1c;
  --ink: #1a1a1a;
  --ink-2: #323232;
  --ink-3: #6b6b6b;
  --ink-4: #9b9b9b;
  --line: #e4e4e1;
  --line-strong: #cfcfcb;
  --brand: #7f3c3f;
  --brand-dark: #6a3033;
  --brand-soft: #f6efef;

  --series-sent: #323232;
  --series-reply: #7f3c3f;
  --series-bounce: #8d8a84;
  --c-positiv: #2e6f5e;
  --c-neutral: #a8a49d;
  --c-negativ: #7f3c3f;
  --c-blacklist: #1a1a1a;

  --radius: 10px;
  --shadow-1: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-2: 0 10px 28px rgba(26, 26, 26, 0.10), 0 2px 6px rgba(26, 26, 26, 0.05);
  --ease: 0.16s ease;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-2);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss03';
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.012em; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
small { font-size: 12px; color: var(--ink-3); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.icon { display: block; flex: none; }

/* Kopfzeile */
.topbar { background: var(--topbar); color: #fff; }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.logo-light { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand-title { font: 500 16px/1 var(--font-head); padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.22); white-space: nowrap; }
.badge { height: 22px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 11px; font-size: 11.5px; line-height: 20px; color: #d8d8d5; white-space: nowrap; cursor: help; }
.topbar-tools { display: flex; align-items: center; gap: 16px; }
.stamp { font-size: 12px; color: #a9a9a5; white-space: nowrap; }
.topbar :focus-visible { outline-color: #fff; }

.user { display: flex; align-items: center; gap: 12px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.user-name { font-size: 13px; color: #d8d8d5; }

/* Schaltflächen */
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--ink-2); transition: background var(--ease), border-color var(--ease), transform var(--ease); }
.icon-btn:hover:not(:disabled) { background: var(--panel); border-color: var(--ink-3); }
.icon-btn:active:not(:disabled) { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.4; }
.topbar .icon-btn { background: transparent; border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.topbar .icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.icon-btn.is-busy { opacity: 1; }
.icon-btn.is-busy .icon { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 17px; background: transparent; color: #fff; font-size: 13px; transition: background var(--ease), border-color var(--ease); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.btn-text { border: 0; background: none; padding: 0 4px; font-size: 13px; color: var(--brand); font-weight: 500; }
.btn-text:hover { text-decoration: underline; }
.btn-primary { height: 46px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; transition: background var(--ease), transform var(--ease); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; }

.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--page); }
.seg button { height: 30px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; color: var(--ink-3); white-space: nowrap; transition: background var(--ease), color var(--ease), box-shadow var(--ease); }
.seg button:hover:not(:disabled):not(.is-active) { color: var(--ink); }
.seg button.is-active { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(26, 26, 26, 0.14); }
.seg button:disabled { color: var(--ink-4); }
.seg-small button { height: 26px; padding: 0 10px; font-size: 12px; }
.topbar .seg { background: rgba(255, 255, 255, 0.10); }
.topbar .seg button { color: #c9c9c5; }
.topbar .seg button:hover:not(:disabled):not(.is-active) { color: #fff; }
.topbar .seg button.is-active { background: #fff; color: var(--ink); box-shadow: none; }
.topbar .seg button:disabled { color: #77777a; }

select { height: 36px; max-width: 420px; padding: 0 32px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23323232' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; text-overflow: ellipsis; cursor: pointer; transition: border-color var(--ease); }
select:hover { border-color: var(--ink-3); }
select.range-more { color: var(--ink-3); font-size: 13px; }
select.range-more.is-active { color: var(--ink); font-weight: 500; border-color: var(--ink-2); }

/* Seite */
.page { max-width: 1360px; margin: 0 auto; padding: 24px 40px 72px; }
main > section { margin-top: 20px; }
main > section:empty { display: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 26px; box-shadow: var(--shadow-1); }

.notice { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.notice + .notice { margin-top: 10px; }
.notice summary { cursor: pointer; width: fit-content; }
.notice summary:hover { color: var(--ink); }
.notice ul { margin: 8px 0 0; padding-left: 18px; max-width: 96ch; }
.notice li + li { margin-top: 2px; }
.notice-demo, .notice-error { padding: 11px 16px; border-radius: 8px; background: var(--brand-soft); color: var(--ink-2); font-size: 13px; }
.notice-demo b { color: var(--brand); font-weight: 600; }
.notice-error { display: flex; justify-content: space-between; gap: 16px; background: var(--ink); color: #fff; }
.notice-error button { border: 0; background: none; color: #fff; font-size: 18px; line-height: 1; padding: 0 2px; }

/* Werkzeugleiste: Zeitraum, Blättern, Kampagne */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.toolbar-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.toolbar-campaign select { width: 270px; }
.filter-label { font-size: 12.5px; color: var(--ink-3); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-label { min-width: 214px; text-align: center; font: 600 15px/1.2 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tiles + .tiles { margin-top: 16px; }
.tile { position: relative; padding: 20px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.tile:hover, .tile:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); z-index: 5; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tile-value { margin-top: 16px; font: 600 38px/1 var(--font-head); color: var(--ink); letter-spacing: -0.025em; }
.tile-sub { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.tiles-secondary .tile-value { font-size: 30px; }
.tile-accent { background: var(--brand); border-color: var(--brand); }
.tile-accent:hover, .tile-accent:focus-within { border-color: var(--brand-dark); }
.tile-accent .tile-head { color: rgba(255, 255, 255, 0.82); }
.tile-accent .tile-value { color: #fff; }
.tile-accent .tile-sub { color: rgba(255, 255, 255, 0.78); }
.tile-accent .info { color: rgba(255, 255, 255, 0.7); }
.tile-accent .info:hover, .tile-accent .info:focus-visible { color: #fff; }
.meter { margin-top: 16px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink-2); border-radius: 2px; transition: width 0.4s ease; }

/* Info-Symbol mit Erklärung */
.info { position: relative; display: inline-flex; color: var(--ink-4); border-radius: 50%; cursor: help; transition: color var(--ease); }
.info:hover, .info:focus-visible { color: var(--ink); }
.info-pop { position: absolute; z-index: 30; top: calc(100% + 10px); width: 280px; padding: 13px 15px; border-radius: 8px; background: var(--ink); color: #fff; font: 400 12.5px/1.5 var(--font); letter-spacing: 0; text-align: left; white-space: normal; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease); pointer-events: none; }
.info-right .info-pop { right: -12px; }
.info-left .info-pop { left: -12px; }
.info:hover .info-pop, .info:focus-visible .info-pop { opacity: 1; visibility: visible; transform: none; }
.info-what, .info-how { display: block; }
.info-how { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #cfcfcb; }
.info-how b { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; color: #fff; }

/* Sektionskopf */
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; }
.section-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.empty { margin: 0; padding: 22px 0 4px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* Verlauf */
.trend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trend-title { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.trend-title span { font: 600 17px/1 var(--font-head); color: var(--ink); }
.chart { width: 100%; }
.chart svg { display: block; }
.chart .grid { stroke: var(--line); }
.chart .axis { stroke: var(--line-strong); }
.chart .tick { fill: var(--ink-4); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .col { transition: opacity 0.12s; }
.chart .col.ctx { opacity: 0.26; }
.chart .col.dim { opacity: 0.26; }
.chart .hit.is-clickable { cursor: pointer; }

.tip { position: fixed; top: 0; left: 0; z-index: 40; min-width: 160px; padding: 10px 12px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow-2); pointer-events: none; }
.tip-title { margin-bottom: 6px; color: #cfcfcb; }
.tip-row { display: flex; justify-content: space-between; gap: 18px; }
.tip-row b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Aufteilungen */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.stack { display: flex; gap: 2px; height: 12px; margin-bottom: 14px; }
.stack span { min-width: 2px; border-radius: 2px; transition: transform var(--ease); }
.stack span:hover { transform: scaleY(1.5); }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 2px; background: var(--swatch); }
.legend, .bars { width: 100%; border-collapse: collapse; }
.legend td, .bars td { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bars td { padding-right: 18px; white-space: nowrap; }
.bars td:last-child { padding-right: 0; }
.bars tr, .legend tr { transition: background var(--ease); }
.bars tr:hover, .legend tr:hover { background: var(--panel); }
.bars-label { width: 84px; color: var(--ink); font-weight: 500; }
.bars-track { width: 100%; }
.bars-track span { display: block; height: 10px; min-width: 2px; background: var(--series-reply); border-radius: 0 3px 3px 0; }
.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-3); }
.strong { color: var(--ink); font-weight: 600; }
.nowrap { white-space: nowrap; }

/* Chips für Status und Stimmung */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: #efeeec; color: #5a5752; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip-laufend, .chip-positiv { background: #e4efea; color: #1f5b4b; }
.chip-negativ { background: var(--brand-soft); color: var(--brand); }
.chip-blacklist { background: var(--ink); color: #fff; }
.chip-legal { background: var(--brand); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-abgeschlossen { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }
.chip-entwurf { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-3); }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 0 -10px; }
.data { width: 100%; border-collapse: collapse; }
.data th { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 500; color: var(--ink-3); text-align: left; white-space: nowrap; user-select: none; }
.data-campaigns th { cursor: pointer; transition: color var(--ease); }
.data-campaigns th:hover, .data th.is-sorted { color: var(--ink); }
.data th.num { text-align: right; }
.sort { margin-left: 4px; }
.data td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; transition: background var(--ease); }
.data tbody tr:last-child td { border-bottom: 0; }
.data-campaigns tbody tr, .data-replies tbody tr { cursor: pointer; }
.data-campaigns tbody tr:hover td, .data-replies tbody tr:hover td { background: var(--panel); }
.data tbody tr.is-selected td, .data-campaigns tbody tr.is-selected:hover td { background: var(--brand-soft); }
.data tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

.data-campaigns td:first-child { width: 100%; max-width: 0; min-width: 200px; }
/* Elf Spalten: engere Zellen, damit die Tabelle ohne Querblättern in die Karte passt */
.data-campaigns th, .data-campaigns td { padding-left: 8px; padding-right: 8px; }
.camp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.camp-name { max-width: 100%; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }

/* Kampagnenvergleich */
.compare-picks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 16px; }
.compare-pick { display: flex; align-items: center; gap: 10px; min-width: 0; }
.compare-pick select { width: 340px; max-width: 100%; }
.compare-name { display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--ink); font-weight: 600; }
.data-compare td { vertical-align: middle; }
.data-compare td:first-child { width: 30%; color: var(--ink-3); white-space: nowrap; }
.data-compare td.wrap { max-width: 340px; white-space: normal; }
.data-compare td.best { background: #f1f7f4; color: #1f5b4b; font-weight: 600; }

/* Sequenz */
.step { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-of-type { padding-bottom: 0; }
.step-timing { margin: 4px 0 18px; font-size: 12.5px; color: var(--ink-3); }
.stats { margin: 0; }
.stat { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.stat dt { display: flex; align-items: center; gap: 7px; color: var(--ink-3); }
.stat dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.variants { display: flex; gap: 6px; }
.variants button { height: 30px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--card); font-size: 13px; color: var(--ink-3); transition: background var(--ease), color var(--ease), border-color var(--ease); }
.variants button:hover { color: var(--ink); border-color: var(--ink-3); }
.variants button.is-active { background: var(--ink-2); border-color: var(--ink-2); color: #fff; font-weight: 500; }
.variants button span { margin-left: 6px; font-size: 11.5px; font-weight: 400; opacity: 0.7; }
.copy { margin-top: 14px; padding: 20px 24px 22px; background: var(--panel); border-radius: 8px; }
.copy-subject { display: flex; gap: 14px; align-items: baseline; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.copy-subject > span { font-size: 12.5px; color: var(--ink-3); }
.copy-subject b { color: var(--ink); font-weight: 600; }
.copy-subject i { color: var(--ink-3); font-style: normal; }
.copy-body { max-width: 72ch; white-space: pre-wrap; line-height: 1.62; color: var(--ink-2); }
.var { padding: 1px 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 0.92em; white-space: nowrap; }
.copy-meta { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* Leads und Antworten */
.subfilters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.person { display: flex; flex-direction: column; }
.person span { color: var(--ink); font-weight: 500; }
.company { display: block; }
.reply-text { width: 46%; min-width: 300px; }
.reply-text b { display: block; font-weight: 500; color: var(--ink); }
.reply-text span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; color: var(--ink-3); }
tr.is-open .reply-text span { display: block; white-space: pre-wrap; color: var(--ink-2); }
.ext-link { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--brand); text-decoration: none; }
.ext-link:hover, .ext-link:focus-visible { text-decoration: underline; }
.more { margin-top: 16px; height: 36px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--card); font-size: 13px; transition: background var(--ease), border-color var(--ease); }
.more:hover { background: var(--panel); border-color: var(--ink-3); }

/* Großes Fenster für vollständige Listen */
body.has-modal { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(26, 26, 26, 0.42); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); animation: fade 0.16s ease; }
/* Höhe an den Bildschirm gebunden, nicht an den Inhalt: die Liste scrollt im Fenster */
.modal { display: flex; flex-direction: column; flex: none; width: min(1280px, 100%); height: min(860px, calc(100vh - 64px)); padding: 24px 26px 0; background: var(--card); border-radius: 14px; box-shadow: 0 30px 80px rgba(26, 26, 26, 0.35); animation: rise 0.2s ease; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.modal-head .icon-btn { font-size: 22px; line-height: 1; }
.modal-body { flex: 1; min-height: 0; overflow: auto; margin: 0 -26px; padding: 0 26px 24px; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.modal-body .table-wrap { overflow: visible; margin: 0 -10px; }
.modal-body .data thead th { position: sticky; top: 0; z-index: 1; background: var(--card); box-shadow: inset 0 -1px 0 var(--line-strong); border-bottom: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

footer { margin-top: 40px; font-size: 12px; color: var(--ink-4); text-align: center; }
footer p { margin: 0; }

/* Login */
body.login { display: grid; grid-template-columns: minmax(340px, 44%) 1fr; min-height: 100vh; background: var(--card); }
.login-side { display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; background: var(--topbar); color: #fff; }
.login-side .logo-light { height: 46px; align-self: flex-start; }
.login-side h1 { font-size: 44px; line-height: 1.05; color: #fff; letter-spacing: -0.025em; }
.login-side p { margin: 18px 0 0; max-width: 34ch; font-size: 16px; line-height: 1.55; color: #bdbdb9; }
.login-side small { color: #8a8a86; }
.login-main { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; }
.login-form h2 { font-size: 28px; }
.login-lead { margin: 8px 0 28px; color: var(--ink-3); }
.login-form label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.login-form label span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.login-form input { height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); font-size: 15px; transition: border-color var(--ease), box-shadow var(--ease); }
.login-form input:hover { border-color: var(--ink-3); }
.login-form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(127, 60, 63, 0.16); }
.login-error { min-height: 20px; margin: 0 0 12px; font-size: 13px; color: var(--brand); }

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .trend { grid-template-columns: 1fr; }
  .stamp { display: none; }
}
@media (max-width: 820px) {
  .page { padding: 16px 16px 56px; }
  .topbar-inner { height: auto; padding: 14px 16px; flex-wrap: wrap; }
  .step { grid-template-columns: 1fr; gap: 20px; }
  body.login { grid-template-columns: 1fr; }
  .login-side { padding: 28px 24px; gap: 28px; }
  .login-side h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .icon-btn.is-busy .icon { animation-duration: 2.4s; }
}
