/* Hallmark · shape: app screen · genre: modern-minimal · theme: Coral, teal from the logo · redesign: restyle · scope: app · system: design.md
 * nav: the tool's own top bar · imagery: the product's own output · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H4 E4 S4 R4 V3 · weakest: P, a restyle keeps the tool's layout; the analysis sheets on paper carry the theme */
/* Hallmark · answered F4 · the cotton card is the secondary control of the theme, the ink card the primary */
/* Hallmark · copy: verbatim · the tool's labels and help texts stay; emojis, glued arrows and literal colours are gone */
@import url("./fonts-ns.css");
@import url("./tokens.css");

/* The tool's own variable names, now drawn from the shared tokens */
:root {
  --bg: var(--color-paper); --card: var(--color-cotton); --line: var(--color-rule); --txt: var(--color-ink); --mut: var(--color-muted);
  --accent: var(--color-accent-2); --accent-d: var(--color-ink-2); --good: var(--color-success); --warn: var(--color-warn); --bad: var(--color-error);
  --grad: var(--color-board);
  --soft: var(--color-paper-2);
  --app-text-xs: 0.75rem; --app-text-sm: 0.8125rem; --app-text-md: 0.9375rem; --app-text-lg: 1.0625rem; --app-text-xl: 1.25rem; --app-text-2xl: 1.5rem;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 var(--app-text-md)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; font-synthesis: none; }
h1 { margin: 0; font-size: var(--app-text-2xl); }
h1, h2, h3 { text-wrap: balance; }
b, strong { font-weight: 600; }

/* top bar */
header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); height: 64px; padding: 0 var(--space-xl); background-color: var(--color-desk); background-image: var(--tex-desk); box-shadow: inset 0 -1px 0 var(--color-rule-2); }
header .brand { display: inline-flex; align-items: center; gap: var(--space-sm); font-weight: 600; font-size: var(--app-text-lg); letter-spacing: -0.02em; color: var(--txt); text-decoration: none; }
.brand svg, .gate-brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.mark-bg { fill: url(#ns-g); }
.mark-line { fill: none; stroke: var(--color-logo-mark); stroke-width: 2.4; stroke-linecap: round; }
.mark-dot { fill: var(--color-logo-mark); }
.sub { color: var(--mut); font-size: var(--app-text-sm); margin-top: var(--space-2xs); }

/* controls: letterpress cards at app size (40px, 44px hit) */
input, select, button { font: inherit; min-height: 40px; border-radius: var(--radius-input); border: 1px solid var(--color-muted); background: var(--color-paper); color: var(--txt); padding: var(--space-xs) var(--space-sm); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
input { flex: 1; min-width: 240px; }
input[type="checkbox"], input[type="radio"] { flex: none; width: 18px; height: 18px; min-width: 0; min-height: 0; padding: 0; margin: 0; accent-color: var(--color-accent-2); }
button { position: relative; background: var(--color-board); border-color: transparent; color: var(--color-board-type); cursor: pointer; font-weight: 500; border-radius: var(--radius-stock); box-shadow: var(--cast-stock); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
button::after { content: ""; position: absolute; inset: -2px; }
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--edge-stock), var(--cast-stock-lift); }
button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary, button.quiet { background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); box-shadow: var(--edge-stock), var(--cast-stock); }
.navbtn { display: inline-flex; align-items: center; gap: var(--space-xs); }
.navbtn svg, .actbtn svg, .tab svg, .hdr-ic { flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actbtn { display: inline-flex; align-items: center; gap: var(--space-xs); }
.hdr-ic { width: 17px; height: 17px; vertical-align: -3px; margin-right: var(--space-xs); }

/* tabs: a groove with a cotton card riding in it */
.tab { background: transparent; color: var(--color-ink-2); border: 0; box-shadow: none; font-weight: 500; display: inline-flex; align-items: center; gap: var(--space-xs); }
.tab:hover:not(:disabled) { transform: none; box-shadow: none; color: var(--txt); }
.tab.on { background-color: var(--color-cotton); color: var(--color-print); box-shadow: var(--edge-stock), var(--cast-stock); }

/* layout */
.bar { display: flex; gap: var(--space-sm); flex-wrap: wrap; padding: var(--space-md) var(--space-xl) var(--space-lg); align-items: center; }
main { padding: 0 var(--space-xl) var(--space-2xl); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-lg); }
.card { background-color: var(--card); background-image: linear-gradient(100deg, var(--color-cotton), transparent 45%), var(--tex-cotton); color: var(--color-print); border: 0; border-radius: var(--radius-stock); padding: var(--space-md) var(--space-md); box-shadow: var(--edge-stock), var(--cast-stock); }
.card .card { box-shadow: none; background: var(--soft); }
.card .k { color: var(--mut); font-size: var(--app-text-sm); }
.card .v { font-size: var(--app-text-2xl); font-weight: 600; margin-top: var(--space-2xs); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.score-ring { font-size: 1.875rem; }
.pill { display: inline-block; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); font-size: var(--app-text-xs); font-weight: 500; }
.p-low { background: color-mix(in oklab, var(--good) 14%, transparent); color: var(--good); }
.p-med { background: color-mix(in oklab, var(--warn) 14%, transparent); color: var(--warn); }
.p-high { background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); }

/* tables: ruled, on cotton */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-stock); overflow: hidden; box-shadow: var(--edge-stock), var(--cast-stock); }
th, td { padding: var(--space-xs) var(--space-sm); text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--mut); font-size: var(--app-text-sm); font-weight: 500; cursor: pointer; user-select: none; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--soft); }
.note { color: var(--mut); font-size: var(--app-text-sm); margin: var(--space-xs) 0 var(--space-md); }
.bid-banner { background: var(--soft); border-radius: var(--radius-card); padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-md); font-size: var(--app-text-sm); }
.err { color: var(--bad); padding: var(--space-sm) 0; }
.bar-fill { height: 6px; background: var(--color-paper-3); border-radius: var(--radius-pill); overflow: hidden; min-width: 60px; }
.bar-fill > span { display: block; height: 100%; background: var(--accent); }
.muted { color: var(--mut); }

/* publication deadline for seasonal niches */
.pubdl { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid; border-radius: var(--radius-card); background: var(--card); max-width: 640px; }
.pubdl-d { font-size: var(--app-text-lg); font-weight: 600; line-height: 1.2; flex: none; min-width: 130px; }
.pubdl-t { font-size: var(--app-text-xs); font-weight: 500; color: var(--mut); }
.pubdl-l { font-size: var(--app-text-sm); font-weight: 500; margin-top: 1px; }
@media (max-width: 560px) { .pubdl { flex-direction: column; align-items: flex-start; gap: var(--space-xs); } .pubdl-d { min-width: 0; } }

/* book covers in the competitor table */
.cover { height: 104px; width: auto; max-width: 80px; object-fit: contain; border-radius: 2px; box-shadow: var(--edge-stock), var(--cast-stock); background: var(--card); display: block; }
@media (max-width: 640px) { .cover { height: 72px; max-width: 56px; } }

/* release card (Freigabe-Karte) */
.gbar { position: relative; height: 9px; background: var(--color-paper-3); border-radius: 5px; margin: var(--space-sm) 0 var(--space-2xs); overflow: hidden; }
.gbar-f { height: 100%; border-radius: 5px; transition: transform var(--dur-short) var(--ease-out); }
.gbar-m { position: absolute; top: 0; width: 2px; height: 100%; background: color-mix(in oklab, var(--txt) 28%, transparent); }
.gtable { margin-top: var(--space-sm); border-top: 1px solid var(--line); }
.grow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-xs) var(--space-3xs); border-bottom: 1px solid var(--line); }
.glabel { flex: 1; min-width: 0; font-size: var(--app-text-md); }
.gq { font-size: var(--app-text-sm); color: var(--mut); margin-top: 1px; }
.gwhy { font-size: var(--app-text-sm); color: var(--accent); font-weight: 500; margin-top: var(--space-3xs); }
.gsrc { font-size: var(--app-text-xs); font-weight: 500; padding: 1px var(--space-xs); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }
.gsrc-u { background: color-mix(in oklab, var(--txt) 8%, transparent); color: var(--txt); }
.gsrc-o { background: color-mix(in oklab, var(--warn) 14%, transparent); color: var(--warn); }
.gdots { display: flex; gap: var(--space-2xs); flex: none; }
.gdot { width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: var(--radius-input); border: 1px solid var(--line); background: var(--color-paper); box-shadow: none; font: inherit; font-size: var(--app-text-sm); font-weight: 500; color: var(--mut); cursor: pointer; }
.gdot:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: none; box-shadow: none; }
.gdot.on { background: var(--color-board); border-color: var(--color-board); color: var(--color-board-type); }
.gko { margin: var(--space-sm) 0 0; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-card); font-size: var(--app-text-sm); background: color-mix(in oklab, var(--bad) 9%, transparent); border: 1px solid color-mix(in oklab, var(--bad) 40%, transparent); }
@media (max-width: 560px) {
  .grow { flex-wrap: wrap; gap: var(--space-xs); }
  .gdots { width: 100%; justify-content: space-between; gap: var(--space-3xs); }
  .gdots .gdot { width: auto; min-width: 40px; height: 40px; }
}
.lad-row { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); }
.lad-name { width: 132px; flex: none; font-size: var(--app-text-sm); }
.lad-bar { flex: 1; min-width: 50px; height: 14px; background: var(--color-paper-3); border-radius: 7px; overflow: hidden; }
.lad-bar > span { display: block; height: 100%; }
.lad-num { width: 150px; flex: none; text-align: right; font-size: var(--app-text-sm); color: var(--mut); }
.lad-tag { width: 88px; flex: none; text-align: right; font-size: var(--app-text-sm); font-weight: 500; }
.lad-ex { font-size: var(--app-text-xs); margin: 0 0 var(--space-xs) calc(132px + var(--space-sm)); }
@media (max-width: 560px) {
  .lad-row { flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); }
  .lad-name { width: auto; flex: 1 1 100%; font-weight: 500; }
  .lad-bar { flex: 1 1 60px; order: 3; }
  .lad-num { width: auto; flex: 0 1 auto; order: 4; text-align: left; }
  .lad-tag { width: auto; flex: 0 0 auto; order: 5; }
  .lad-ex { margin-left: var(--space-sm); }
}

/* access gate and upgrade panel: the desk with one sheet on it */
#gate, #upgrade { background-color: var(--color-desk) !important; background-image: radial-gradient(90% 120% at 0% 30%, var(--color-cotton), transparent 62%), var(--tex-desk) !important; }
.gate-brand { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); font-size: var(--app-text-2xl); font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--space-2xs); }
.gate-list { text-align: left; font-size: var(--app-text-sm); margin: 0 auto var(--space-md); max-width: 340px; padding-left: var(--space-lg); line-height: 1.7; }
.gate-offer { background: var(--soft); border-radius: var(--radius-card); padding: var(--space-md); margin-bottom: var(--space-md); }

/* the shared cookie notice (cookie.js styles itself inline) */
#ns-cookiebar { background: var(--color-board) !important; color: var(--color-board-type) !important; font-family: var(--font-body) !important; }
#ns-cookiebar a { color: var(--color-accent) !important; }
#ns-cookiebar b { font-weight: 600 !important; }
#ns-ck-ok { background: var(--color-cotton) !important; color: var(--color-print) !important; border-radius: var(--radius-stock) !important; min-height: 44px; }

@media (max-width: 60rem) { header, .bar { padding-inline: var(--space-md); } main { padding-inline: var(--space-md); } }
@media (prefers-reduced-motion: reduce) { button, .gbar-f { transition: none; } button:hover:not(:disabled), button:active:not(:disabled) { transform: none; } }
#dminvol { flex: 0 0 200px; }

/* ------------------------------------------------------------------ watchlist (body.wl): same system, its own parts */
.wl .site-nav { padding: 0; display: block; }  /* sticky, desk and edge come from the shared header rule */
.wl .site-nav .in { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-lg); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.wl .logo { display: inline-flex; align-items: center; gap: var(--space-sm); font-weight: 600; font-size: var(--app-text-lg); letter-spacing: -0.02em; color: var(--txt); text-decoration: none; }
.wl .logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.wl .nl { color: var(--color-ink-2); font-weight: 500; font-size: var(--app-text-sm); text-decoration: none; }
.wl .nl:hover { color: var(--txt); text-decoration: underline; text-decoration-color: var(--accent); }
.wl .cbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-stock); background: var(--color-board); color: var(--color-board-type); font-weight: 500; font-size: var(--app-text-sm); text-decoration: none; box-shadow: var(--cast-stock); }
.wl .wrap { max-width: 1180px; margin: 0 auto; padding: var(--space-xl) var(--space-lg) var(--space-3xl); }
.wl h1 { font-size: 1.75rem; color: var(--txt); }
.wl .row { display: flex; gap: var(--space-xs); flex-wrap: wrap; align-items: center; }
.wl a.ghost, .wl button.ghost { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-stock); background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); font-weight: 500; font-size: var(--app-text-sm); text-decoration: none; white-space: nowrap; box-shadow: var(--edge-stock), var(--cast-stock); }
.wl .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-md); margin-top: var(--space-md); }
.wl .card { padding: var(--space-md) var(--space-lg); }
.wl .card h3 { font-size: var(--app-text-md); margin: 0 0 var(--space-3xs); color: var(--txt); line-height: 1.3; }
.wl .p-good { background: color-mix(in oklab, var(--good) 14%, transparent); color: var(--good); }
.wl .p-bad { background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); }
.wl .p-mut { background: var(--soft); color: var(--mut); }
.wl .kv { display: flex; gap: var(--space-md); flex-wrap: wrap; font-size: var(--app-text-sm); margin: var(--space-sm) 0; }
.wl .kv b { color: var(--txt); }
.wl .del { min-height: 32px; min-width: 32px; padding: 0; background: none; border: 0; box-shadow: none; color: var(--mut); cursor: pointer; font-size: var(--app-text-lg); }
.wl .del:hover:not(:disabled) { color: var(--bad); transform: none; box-shadow: none; }
.wl #asin { text-transform: uppercase; }
@media (max-width: 40rem) { .wl .site-nav .row .nl { display: none; } }
.wl .pauseCat, .wl .delCat, .wl .del { min-height: 32px; padding: 0 var(--space-xs); background: none; border: 0; box-shadow: none; color: var(--mut); font-size: var(--app-text-sm); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.wl .pauseCat:hover:not(:disabled) { color: var(--txt); transform: none; box-shadow: none; }
.wl .delCat:hover:not(:disabled), .wl .del:hover:not(:disabled) { color: var(--bad); transform: none; box-shadow: none; }
