/* Signal Engine dashboard — Material Design light theme.
   White surfaces on a cool neutral ground, indigo for everything interactive,
   amber reserved for signal heat (score gauge, strength bars, signal chips).
   Pill buttons, 16px cards, soft two-layer elevation. Vendored Hanken Grotesk
   (UI) + JetBrains Mono (data). Presentation only. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/static/fonts/hanken-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/static/fonts/hanken-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/static/fonts/hanken-600.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("/static/fonts/hanken-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/static/fonts/jbmono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("/static/fonts/jbmono-700.woff2") format("woff2"); }

:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #F2F4FA;      /* tonal fill: table heads, hover, quiet chips */
  --ink: #1B1C22;
  --ink-soft: #3C3F4A;
  --muted: #5C5F6E;
  --faint: #8F93A3;
  --line: #E4E6F0;
  --line-strong: #C9CDDD;

  --primary: #4355B9;        /* interactive: buttons, links, nav, focus */
  --primary-deep: #303F8F;
  --primary-tint: #E2E6FB;
  --primary-ink: #33418F;

  --amber: #E09A12;          /* signal heat: gauge, bars, signal chips */
  --amber-deep: #A56A06;
  --amber-ink: #7A5200;
  --amber-tint: #FBEED2;

  --green-ink: #1D6B41;      /* status: ok / contacted */
  --green-tint: #DDF0E4;
  --red: #B3261E;            /* status: error / danger */
  --red-tint: #F9DEDC;

  --font-sans: "Hanken Grotesk", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r: 16px;                 /* cards (Material medium shape) */
  --r-sm: 10px;              /* controls */
  --shadow-1: 0 1px 2px rgba(27, 28, 34, 0.08), 0 1px 3px 1px rgba(27, 28, 34, 0.05);
  --shadow-2: 0 1px 2px rgba(27, 28, 34, 0.08), 0 4px 12px 2px rgba(27, 28, 34, 0.09);
  --pad: clamp(1rem, 3vw, 1.85rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary-ink); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.center { text-align: center; }
.strong { font-weight: 700; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: 1.7rem; font-weight: 650; }
h2 { font-size: 1.02rem; font-weight: 650; }
h3 {
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); font-family: var(--font-mono);
}
main > h2 { margin: 1.9rem 0 0.8rem; }

/* ---- top app bar (light, elevated) ---- */
.topbar {
  display: flex; align-items: center; gap: 1.75rem;
  padding: 0 var(--pad); height: 60px;
  background: var(--surface);
  color: var(--ink); position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(27, 28, 34, 0.04);
}
.topbar .brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); font-weight: 700; letter-spacing: -0.01em; font-size: 0.98rem;
}
.topbar .brand .pulse {
  width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(224, 154, 18, 0.45); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 154, 18, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(224, 154, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 154, 18, 0); }
}
.topbar nav { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-left: auto; }
.topbar nav a {
  color: var(--muted); font-size: 0.86rem; font-weight: 500; padding: 0.42rem 0.9rem;
  border-radius: 999px; transition: color 0.14s, background 0.14s;
}
.topbar nav a:hover { color: var(--primary-ink); background: var(--primary-tint); text-decoration: none; }

main { max-width: 1140px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.2rem) var(--pad) 4rem; }

/* ---- page head ---- */
.page-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.4rem; }
.page-head .muted { font-family: var(--font-mono); font-size: 0.8rem; }

/* ---- cards + layout ---- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.3rem 1.45rem; margin-bottom: 1.15rem; box-shadow: var(--shadow-1);
  animation: rise 0.4s ease both;
}
.card h2 { margin-bottom: 0.95rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ---- tables ---- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow-1); animation: rise 0.4s ease both;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); font-weight: 500; text-align: left;
  padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2); white-space: nowrap;
}
tbody td { padding: 0.66rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background 0.12s; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }
td a { font-weight: 600; color: var(--ink); }
td a:hover { color: var(--primary-ink); }
table.mini thead th, table.mini td { padding: 0.46rem 0.65rem; font-size: 0.86rem; }
table.narrow { max-width: 520px; }
.table-wrap:has(> table.narrow) { max-width: 520px; }
.aging { color: var(--red); font-weight: 700; }

/* score cell with strength bar — the bar carries the heat, the number stays ink */
td.score-cell { text-align: right; white-space: nowrap; }
td.score-cell .val { font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.strength { display: block; height: 4px; border-radius: 2px; background: var(--surface-2);
  margin-top: 5px; overflow: hidden; }
.strength > span { display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep)); }

/* ---- filters / forms ---- */
.filters { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.2rem; align-items: flex-end; }
.filters label, .form label {
  display: flex; flex-direction: column; gap: 0.32rem;
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}
select, input[type="password"], input[type="text"], input:not([type]), textarea {
  font: inherit; padding: 0.5rem 0.75rem; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  transition: border-color 0.14s, box-shadow 0.14s;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint); }
.status-select { padding: 0.3rem 0.5rem; font-size: 0.82rem; font-family: var(--font-mono); }

button {
  font: inherit; font-weight: 600; font-size: 0.86rem; cursor: pointer;
  padding: 0.5rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
  box-shadow: none; transition: background 0.14s, box-shadow 0.14s, transform 0.08s;
}
button:hover { background: var(--primary-deep); border-color: var(--primary-deep); box-shadow: var(--shadow-1); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
button.ghost { background: var(--surface); color: var(--primary-ink); border-color: var(--line-strong); }
button.ghost:hover { background: var(--primary-tint); border-color: var(--primary); box-shadow: none; }
.actions { display: flex; gap: 0.4rem; }
.form { max-width: 460px; display: flex; flex-direction: column; gap: 1.05rem; align-items: flex-start; }
.form label { width: 100%; }
.form input { width: 100%; }

/* ---- badges + status pills (tonal chips) ---- */
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.02em; padding: 0.18rem 0.6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid transparent;
  white-space: nowrap;
}
.badge.ok, .badge.status-contacted { background: var(--green-tint); color: var(--green-ink); }
.badge.bad { background: var(--red-tint); color: var(--red); }
.badge.faint { opacity: 0.7; }
p.chips { margin: 0.6rem 0 0; line-height: 1.9; }
p.acquired { margin: 0 0 0.9rem; padding: 0.6rem 0.8rem; border-radius: 8px;
  background: var(--red-tint); }
.badge.stale { background: var(--amber-tint); color: var(--amber-ink); }
.badge.sig { background: var(--amber-tint); color: var(--amber-ink); }
.badge.status-watching { background: var(--primary-tint); color: var(--primary-ink); }
.badge.status-new { background: var(--surface-2); color: var(--muted); }

.report-link {
  float: right; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  padding: 0.22rem 0.75rem; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary-ink); border: 1px solid transparent;
}
.report-link:hover { text-decoration: none; filter: brightness(0.97); }

.pn-nav { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.pn-nav a {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
  padding: 0.22rem 0.7rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); white-space: nowrap;
}
.pn-nav a:hover { text-decoration: none; color: var(--primary-ink); border-color: var(--primary);
  background: var(--primary-tint); }

.trend-up { color: var(--green-ink); font-weight: 600; }
.trend-down { color: var(--red); font-weight: 600; }

.inline-form { display: inline; }
.inline-form select { font-size: 0.85rem; padding: 0.12rem 0.3rem; }

.danger-zone {
  margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong);
  display: flex; align-items: center; gap: 0.9rem; font-size: 0.85rem;
}
button.danger {
  background: transparent; color: var(--red); border: 1px solid var(--red-tint);
  padding: 0.35rem 1rem; border-radius: 999px; cursor: pointer; font-size: 0.82rem;
}
button.danger:hover { background: var(--red-tint); box-shadow: none; }
.row-bad td { background: var(--red-tint); }

/* ---- company page ---- */
.company-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem;
  margin-bottom: 1rem;
}
.company-head h1 { font-size: 1.9rem; letter-spacing: -0.03em; }
.company-head .mono { font-size: 0.82rem; }
.score-badge { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.score-badge::before {
  content: "signal score"; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.gauge { display: block; }
.gauge-num { font-family: var(--font-mono); font-weight: 700; font-size: 1.55rem; fill: var(--ink); }
.actions-bar {
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.3rem;
  padding-bottom: 1.3rem; border-bottom: 1px solid var(--line);
}
.deep-dive { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); display: flex; flex-direction: column; gap: 0.32rem; }
.deep-dive input { min-width: 320px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }

dl.attrs { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.2rem; margin: 0; }
dl.attrs dt { color: var(--muted); font-family: var(--font-mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.05em; }
dl.attrs dd { margin: 0; font-weight: 500; }

.spark-wrap { color: var(--amber-deep); margin-bottom: 0.75rem; min-height: 40px; }
.spark { display: block; }

/* ---- credit meters (/credits) ---- */
.credit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; }
.credit-figure { font-family: var(--font-mono); font-size: 1.85rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.credit-figure .unit { font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-left: 0.35rem; }
.meter { display: block; height: 8px; border-radius: 999px; background: var(--surface-2);
  margin: 0.7rem 0 0.5rem; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep)); }
.meter.low > span { background: linear-gradient(90deg, var(--amber), var(--red)); }
.runway { font-size: 0.92rem; color: var(--ink-soft); margin: 0.35rem 0 0; }
.runway.low { color: var(--red); font-weight: 600; }

ul.signals { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
ul.signals li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
ul.signals li:last-child { border-bottom: none; }
ul.signals li.news-old { color: var(--faint); }
ul.signals li.news-old .badge { opacity: 0.6; }
textarea.copy { width: 100%; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--ink-soft); border-radius: var(--r-sm); }
details summary { cursor: pointer; font-size: 0.82rem; color: var(--primary-ink); margin-top: 0.6rem; }

.branding .mission { font-size: 1.08rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.objection { border-left: 2px solid var(--line-strong); padding-left: 0.9rem; margin: 0.65rem 0; }
.objection .obj { color: var(--red); margin: 0 0 0.2rem; font-size: 0.9rem; }
.objection .reframe { color: var(--green-ink); margin: 0; font-size: 0.9rem; }

ul.closed { list-style: none; padding: 0; margin: 0; }
ul.closed li { padding: 0.3rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
ul.closed li:last-child { border-bottom: none; }

.dossier-md { border-top: 1px solid var(--line); margin-top: 0.75rem; padding-top: 0.85rem; line-height: 1.62; }
.dossier-md h1 { font-size: 1.25rem; margin: 1rem 0 0.4rem; }
.dossier-md h2 { font-size: 1.05rem; margin: 0.95rem 0 0.35rem; }
.dossier-md h3 { color: var(--muted); }
.dossier-md ul { padding-left: 1.2rem; }
.dossier-md code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-2);
  padding: 0.1em 0.35em; border-radius: 4px; }

/* ---- login ---- */
.login-page { display: grid; place-items: center; min-height: 100vh;
  background: radial-gradient(1100px 460px at 50% -8%, var(--primary-tint), var(--bg)); }
.login {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 2.1rem 2rem; width: 344px; display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: var(--shadow-2);
}
.login h1 { text-align: center; font-size: 1.35rem; }
.login .muted { text-align: center; margin: -0.3rem 0 0.5rem; font-size: 0.85rem; }
.login input { width: 100%; }
.login button { width: 100%; padding: 0.62rem; }
.login .error { color: var(--red); font-size: 0.83rem; margin: 0; text-align: center; }

/* ---- per-company refresh ---- */
.refresh-wrap { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.refresh-note { color: var(--muted); font-size: 0.82rem; display: inline-flex;
  align-items: center; gap: 0.45rem; }
.spinner { width: 0.85rem; height: 0.85rem; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--primary-tint); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- accessibility / motion ---- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- company page, design A (2026-09-08): fact strip + tabs ---- */
.company-head .pills { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.strip {
  display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1);
  margin-bottom: 1.2rem; overflow: hidden;
}
.strip > div { padding: 0.8rem 1rem; border-right: 1px solid var(--line); min-width: 0; }
.strip > div:last-child { border-right: none; }
.strip .k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.strip .v { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.strip .s { font-size: 0.76rem; color: var(--muted); }
@media (max-width: 980px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .strip > div { border-bottom: 1px solid var(--line); }
  .strip > div:nth-child(4n) { border-right: none; }
}
.tabs { display: flex; gap: 0.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs button {
  background: transparent; color: var(--muted); border: none; border-bottom: 2px solid transparent;
  border-radius: 0; padding: 0.6rem 1rem; font-weight: 600; font-size: 0.88rem; margin-bottom: -1px;
  box-shadow: none; white-space: nowrap;
}
.tabs button:hover { color: var(--primary-ink); background: transparent; box-shadow: none; }
.tabs button.on { color: var(--primary-ink); border-bottom-color: var(--primary); }
.tabs button i { font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); margin-left: 0.35rem; }
.pane { display: none; } .pane.on { display: block; }
.angle { display: grid; grid-template-columns: 200px 1fr; gap: 0.35rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.angle:last-child { border-bottom: none; }
.angle .who b { display: block; } .angle .who span { color: var(--muted); font-size: 0.8rem; display: block; }
.compact { columns: 2; column-gap: 2rem; font-size: 0.85rem; }
.compact div { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.compact b { font-weight: 600; } .compact span { color: var(--muted); }
@media (max-width: 780px) { .compact { columns: 1; } .angle { grid-template-columns: 1fr; } }
.sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; margin: 1rem 0 0.4rem; }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 780px) { .activity-grid { grid-template-columns: 1fr; } }
.chips { line-height: 2; margin: 0; }
.chips .badge { margin-right: 0.15rem; }
details.more > summary { list-style: none; font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary-ink); cursor: pointer; margin-top: 0.5rem; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { display: none; }
.dossier-lead { border-left: 3px solid var(--amber-tint); padding-left: 1rem; color: var(--ink-soft); line-height: 1.6; }
.dossier-lead h1 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.dossier-lead h2 { font-size: 1.02rem; margin: 0.8rem 0 0.35rem; }
.actions-bar .cmd { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.actions-bar .cmd input { min-width: 290px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }

/* ---- bulk add (2026-09-08) ---- */
.form h2 { margin-bottom: 0.2rem; }
.form .filters label { align-items: flex-start; }
ul.tight { margin: 0.3rem 0 0.8rem; padding-left: 1.2rem; }
ul.tight li { margin: 0.25rem 0; }
.bulk-result h3 { margin-top: 0.9rem; }
.bulk-result .chips a.badge { color: var(--primary-ink); background: var(--primary-tint); }
.pn-nav-link { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary-ink);
  padding: 0.22rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.pn-nav-link:hover { text-decoration: none; border-color: var(--primary); background: var(--primary-tint); }
/* the LinkedIn link beside a contact's name */
a.in { font-weight: 700; font-family: var(--font-mono); font-size: 0.78rem; padding: 0 0.15rem; }

/* ---- brand card (2026-09-09) ---- */
.company-head h1 .logo { height: 36px; width: auto; max-width: 140px; vertical-align: -9px; margin-right: 0.7rem; }
.brand-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 780px) { .brand-grid { grid-template-columns: 1fr; } }
.logo-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; display: grid; place-items: center; min-height: 110px; }
.logo-tile img { max-width: 100%; max-height: 80px; }
.brand-thumbs { display: flex; gap: 0.6rem; margin-top: 0.7rem; align-items: center; }
.brand-thumbs img { height: 32px; width: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.brand-thumbs a img { height: 56px; }
.brand h3 { margin: 0.9rem 0 0.45rem; }
.brand h3:first-child { margin-top: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.swatch { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; width: 118px; height: 72px;
  padding: 0.55rem 0.7rem; border: 1px solid rgba(27,28,34,0.12); border-radius: 10px; cursor: pointer; text-align: left;
  font-family: var(--font-mono); box-shadow: none; }
.swatch:hover { box-shadow: var(--shadow-2); }
.swatch .role { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.swatch .hex { font-size: 0.82rem; font-weight: 700; margin-top: auto; }
.swatch.copied .hex::after { content: " copied"; font-weight: 500; opacity: 0.8; }
dl.fonts dd { font-weight: 500; }
.brand-buttons { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0; }
.brand-btn { display: inline-block; padding: 0.55rem 1.3rem; font-weight: 600; font-size: 0.9rem; }
