/* ==========================================================================
   QUA 2.0 — shared components
   ========================================================================== */

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.brand__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--ink);
}
.brand__mark svg { width: 22px; height: 22px; color: var(--gold); }
.brand__sub {
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link svg { transition: transform var(--t-fast) var(--ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link:hover { color: var(--ink); background: var(--gold-soft); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
}
.nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  margin-left: 6px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 600;
}
.nav__more { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  padding: 8px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 2px;
}
.nav__menu a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.nav__menu a:hover { background: var(--gold-soft); color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.icon-button:hover { border-color: var(--gold-line); color: var(--gold-2); }
.burger { display: none; }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr min(360px, 86vw);
}
.drawer__backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  animation: fade-in var(--t-med) var(--ease);
}
.drawer__panel {
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: var(--space-5);
  overflow-y: auto;
  animation: slide-in var(--t-med) var(--ease);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.drawer__nav { display: grid; gap: 2px; }
.drawer__nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__nav a.is-active { color: var(--gold-2); }
.drawer__group { margin-top: var(--space-5); }
.drawer__group h4 {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--space-2);
}

/* mobile bottom bar */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.tabbar a {
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--faint);
  font-size: 0.61rem;
  letter-spacing: 0.04em;
}
.tabbar a.is-active { color: var(--gold-2); background: var(--gold-soft); }
.tabbar svg { width: 19px; height: 19px; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
}
@media (max-width: 720px) {
  .header__actions .button--ask { display: none; }
  .tabbar { display: grid; }
  body { padding-bottom: 66px; }
  .brand__mark { font-size: 1.5rem; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: #0f0d08;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast), border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.button:active { transform: none; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.button svg { flex: none; }
.button--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
  font-weight: 500;
}
.button--ghost:hover { border-color: var(--gold-line); color: var(--gold-2); filter: none; }
.button--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
}
.button--quiet:hover { color: var(--ink); background: var(--gold-soft); filter: none; }
.button--danger {
  background: transparent;
  border-color: var(--line-2);
  color: var(--bad);
  font-weight: 500;
}
.button--danger:hover { border-color: var(--bad); filter: none; }
.button--sm { min-height: 36px; padding: 7px 13px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.button--lg { min-height: 52px; padding: 14px 26px; font-size: 0.98rem; }
.button--block { width: 100%; }
.button--ask { background: var(--gold);   color: #0f0d08; }

/* ---------- chips / badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--gold { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-2); }
.badge--ok { border-color: rgba(124, 196, 160, 0.3); background: var(--ok-soft); color: var(--ok); }
.badge--warn { border-color: rgba(224, 176, 112, 0.32); background: var(--warn-soft); color: var(--warn); }
.badge--bad { border-color: rgba(229, 143, 143, 0.32); background: var(--bad-soft); color: var(--bad); }
.badge--ai { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-2); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
}
.chip b { color: var(--ink); font-weight: 600; }
.chip--on { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-2); }
.chip button {
  border: 0;
  background: none;
  padding: 0 0 0 3px;
  color: var(--faint);
  line-height: 1;
}
.chip button:hover { color: var(--bad); }

/* ---------- fields ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label,
.field__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__hint { font-size: 0.76rem; color: var(--faint); }
.field__error { font-size: 0.8rem; color: var(--bad); margin: 2px 0 0; }
.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); opacity: 0.75; }
.field input[type='range'] {
  min-height: 32px;
  padding: 0;
  accent-color: var(--gold);
  background: transparent;
  border: 0;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .field-row, .field-row--3 { grid-template-columns: minmax(0, 1fr); }
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- panels / cards ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
}
.panel--tight { padding: var(--space-5); }
.panel--flush { padding: 0; overflow: hidden; }
.panel--accent { border-color: var(--gold-line); background: linear-gradient(160deg, var(--gold-soft), var(--surface) 62%); }
.panel--dark { background: var(--bg-2); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card--link { text-decoration: none; display: block; }
.card--link:hover { transform: translateY(-3px); border-color: var(--gold-line); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--gold-2);
}
.card__number {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.card h3 { font-size: var(--step-1); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card__foot { margin-top: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* stats */
.stat {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.stat__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__value--mono { font-family: var(--font-data); font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem); }
.stat__note { display: block; margin-top: 7px; font-size: 0.74rem; color: var(--faint); }
.stat--accent { border-color: var(--gold-line); background: var(--gold-soft); }
.stat--accent .stat__value { color: var(--gold-2); }

/* notices */
.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 13px 16px;
  color: var(--muted);
  font-size: 0.84rem;
}
.notice b, .notice strong { color: var(--ink); }
.notice--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice--bad { border-left-color: var(--bad); background: var(--bad-soft); }
.notice--ok { border-left-color: var(--ok); background: var(--ok-soft); }

/* empty state */
.empty {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.empty .button { margin-top: var(--space-4); }

/* tabs */
.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.tabs__tab {
  border: 0;
  background: transparent;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab.is-active { background: var(--surface-4); color: var(--ink); }
.tabs--wide { display: flex; width: 100%; }
.tabs--wide .tabs__tab { flex: 1; }

/* tables */
.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}
.data-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody th {
  width: 180px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.data-table tr:last-child th,
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr.is-diff td { background: var(--gold-soft); }
.data-table .num { font-family: var(--font-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .notes { white-space: pre-wrap; max-width: 260px; }

/* progress */
.progress { display: grid; gap: 8px; }
.progress__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-4);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transition: width var(--t-med) var(--ease);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  padding: 11px 18px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  font-size: 0.85rem;
  animation: toast-in var(--t-med) var(--ease);
}
@media (max-width: 720px) { .toast { bottom: calc(82px + env(safe-area-inset-bottom)); } }

/* footer */
.footer {
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: var(--space-8) var(--space-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-6);
}
.footer h4 {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--space-3);
}
.footer a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}
.footer a:hover { color: var(--gold-2); }
.footer__brand p { color: var(--muted); font-size: 0.84rem; max-width: 34ch; margin-top: var(--space-3); }
.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.72rem;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---------- tool cards ---------- */
.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 150px;
  background: radial-gradient(closest-side, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.tool-card:hover::after { opacity: 1; }
.tool-card__index {
  font-family: var(--font-data);
  font-size: 0.66rem;
  color: var(--faint);
  letter-spacing: 0.14em;
}
.tool-card__title { font-size: var(--step-1); margin: 13px 0 7px; }
.tool-card__desc { color: var(--muted); font-size: 0.86rem; }
.tool-card__meta {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold-2);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.tool-card__arrow { transition: transform var(--t-fast) var(--ease); }
.tool-card:hover .tool-card__arrow { transform: translateX(4px); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font-ui); font-size: 10px; fill: var(--muted); }
.chart .chart__grid { stroke: var(--line); stroke-width: 1; }
.chart .chart__axis { stroke: var(--line-2); stroke-width: 1; }
.chart .chart__gold { fill: var(--gold); }
.chart .chart__gold-soft { fill: var(--gold-soft); }
.chart .chart__muted { fill: var(--surface-4); }
.chart .chart__value { fill: var(--ink); font-family: var(--font-data); font-size: 10px; }
.chart__legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.72rem; color: var(--muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--gold); }
.chart__legend i.muted { background: var(--surface-4); }
.chart-table { margin-top: var(--space-3); }

/* ---------- AI workspace ---------- */
.ai-shell { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: var(--space-5); align-items: start; }
.ai-panel { min-height: 420px; display: flex; flex-direction: column; gap: var(--space-4); }
.ai-answer {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: var(--space-5);
  min-height: 220px;
}
.ai-answer__body { color: var(--ink-2); font-size: 0.94rem; }
.ai-answer__body p { margin-bottom: 0.85rem; }
.ai-answer__body ul { margin: 0 0 0.85rem; padding-left: 20px; }
.ai-answer__body li { margin-bottom: 5px; }
.ai-answer__body h3 { font-family: var(--font-ui); font-size: 0.86rem; letter-spacing: 0.04em; margin: 14px 0 6px; }
.ai-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: var(--space-4); }
.ai-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-disclaimer { font-size: 0.74rem; color: var(--faint); }
.ai-brief { display: grid; gap: var(--space-4); }
.ai-brief .field-row { grid-template-columns: 1fr 1fr; }
.ai-prompt { display: flex; gap: 8px; align-items: flex-end; }
.ai-prompt textarea { min-height: 52px; }
.usage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--faint);
}
.usage__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.usage__dot.is-off { background: var(--faint); }
.usage__dot.is-error { background: var(--bad); }
.typing { display: inline-flex; gap: 3px; align-items: center; }
.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }

@media (max-width: 900px) {
  .ai-shell { grid-template-columns: 1fr; }
  .ai-panel { min-height: 0; }
}

/* ---------- photos ---------- */
.dropzone {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.photo-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-3);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.photo-slot:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot__label { position: relative; z-index: 1; font-size: 0.72rem; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot__clear {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
}
@media (max-width: 640px) { .dropzone { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.kicker {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.metric-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.metric-line:last-child { border-bottom: 0; }
.metric-line b { font-family: var(--font-data); font-weight: 500; }
.metric-line span { color: var(--muted); }
.inline-link { color: var(--gold-2); text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.inline-link:hover { border-color: var(--gold); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { transform: translate(-50%, 10px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
