/* Nnuma — internal screening tool, in the Nnuma house style.

   Base colours (text, logo, documents): Paper, Ink, Stone.
   Pigments (Verdigris, Folium, Minium) appear only inside gradient fields, never as flat UI colour.
   In the app that's one thing: a thin gradient strip on the left of whatever needs attention
   (.attn). Buttons, pills and charts stay in Ink, Paper and Stone. The login screen is a full field.
   Type: Geist for text and titles, Geist Mono for labels, numbers and dates. */

@font-face { font-family: "Geist"; src: url("/static/fonts/Geist.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* base */
  --paper: #F1F2EE; --ink: #191714; --stone: #6F6B64;
  /* derived neutrals (mixes of the base colours) */
  --surface: #F8F8F5;          /* cards on paper */
  --line: #E4E5DF;             /* hairlines, from the style guide */
  --line-2: #EBECE6;
  --line-strong: #CFCFC8;
  --ink-2: #3A3732;            /* secondary text */
  --mute: var(--stone);
  --side-ink: #E4E5DF; --side-mute: #9D9890;
  /* pigments: only used inside gradient fields */
  --verdigris: #1F9E89; --folium: #7A4FDB; --minium: #FF5A1A;
  --field: linear-gradient(110deg, #bfe6dc 0%, #c9bdf1 45%, #f4c7e0 70%, #ffd0bb 100%);
  --field-strong: linear-gradient(110deg, #8fd3c4 0%, #a993ea 50%, #ffae8c 100%);
  --strip: linear-gradient(180deg, var(--verdigris) 0%, var(--folium) 55%, var(--minium) 100%);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 8px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13.5px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink); }
h1 { font-size: 26px; line-height: 1.15; margin: 0; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: 15px; margin: 0 0 8px; font-weight: 550; letter-spacing: -.01em; }
h3 { font: 400 11.5px/1.4 var(--mono); color: var(--stone); margin: 0 0 8px; }
p { margin: 0 0 10px; max-width: 72ch; }
.num, td.num, .tabular { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12.5px; }
code, .mono { font-family: var(--mono); font-size: 12px; }
::selection { background: #d9cff5; }

/* shell: an Ink sidebar with the Paper wordmark, the work on Paper */
.shell { display: grid; grid-template-columns: 208px 1fr; min-height: 100%; }
.side { background: var(--ink); color: var(--side-ink); padding: 22px 12px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: block; padding: 2px 10px 22px; text-decoration: none; }
.brand img { height: 19px; width: auto; display: block; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--side-ink); text-decoration: none; }
.nav a:hover { background: rgba(241,242,238,.06); }
.nav a.on { background: rgba(241,242,238,.11); color: var(--paper); }
.nav .count { background: var(--paper); color: var(--ink); border-radius: 99px; font: 500 11px/19px var(--mono); padding: 0 7px; }
.nav-sep { height: 1px; background: rgba(241,242,238,.09); margin: 12px 6px; }
.nav a.small-link { font-size: 12.5px; padding: 5px 10px; color: var(--side-mute); }
.nav a.small-link.on, .nav a.small-link:hover { color: var(--paper); }
.side-foot { margin-top: auto; font: 400 11.5px/1.5 var(--mono); color: var(--side-mute); padding: 8px 10px; display: grid; gap: 6px; }
.side-foot button { all: unset; cursor: pointer; color: var(--side-ink); text-decoration: underline; text-underline-offset: 2px; }
.running-pill { display: flex; gap: 8px; align-items: center; background: rgba(241,242,238,.07); color: var(--side-ink); border-radius: 6px; padding: 8px 10px; font: 400 11.5px/1.4 var(--mono); margin: 10px 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.main { padding: 28px 32px 56px; min-width: 0; max-width: 1440px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head p { color: var(--stone); margin: 6px 0 0; font-size: 13px; }
.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.dash { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px 6px; }
.card-head h2 { margin: 0; }
.card-head a.small, .card-head .small { font-family: var(--mono); font-size: 11.5px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2:first-child { margin-top: 0; }
.muted { color: var(--stone); }
.small { font-size: 12.5px; }

/* stats: mono numbers; the one that needs you sits on a gradient field */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: inherit; }
.stat:hover { border-color: var(--line-strong); }
.stat .v { font: 400 24px/1.2 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--stone); font-size: 12px; margin-top: 2px; }
.stat .l .muted { color: var(--stone); }


/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font: 400 11px/1.4 var(--mono); color: var(--stone); background: transparent; white-space: nowrap; border-bottom-color: var(--line); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: rgba(25,23,20,.015); }
td.num, th.num { text-align: right; }
td .sub { color: var(--stone); font-size: 11.5px; }
.sub.err, td .sub.err { color: var(--ink); font-weight: 500; }
.sub.err::before { content: "! "; font-family: var(--mono); }
.title-cell { max-width: 360px; }
.title-cell a { color: var(--ink); text-decoration: none; font-weight: 500; }
.title-cell a:hover { text-decoration: underline; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; display: block; }

/* pills: mono labels in base colours; only urgency gets the gradient field */
.pill { display: inline-flex; align-items: center; gap: 5px; font: 400 11px/18px var(--mono); padding: 0 7px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; color: var(--stone); white-space: nowrap; }
.pill.probable { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.pill.listen, .pill.manual { border-color: var(--ink); color: var(--ink); }
.pill.confirmed, .pill.ok, .pill.done { border-color: var(--ink); color: var(--ink); }
.pill.confirmed::before, .pill.ok::before, .pill.done::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.pill.rejected { color: var(--stone); text-decoration: line-through; }
.pill.error { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill.pending, .pill.queued, .pill.running { border-style: dashed; color: var(--ink-2); }
.pill.src { border-color: var(--line); color: var(--stone); }

/* forms */
label { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 10px; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #A7A39B; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
input[type=file] { font: inherit; font-size: 12.5px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.form-grid { display: grid; gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); font-size: 13.5px; }
.check input { margin-top: 3px; accent-color: var(--ink); }
.hint { color: var(--stone); font-size: 12px; font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; border-radius: 6px; padding: 7px 13px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #2c2925; }
.btn.good { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.bad { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn.tiny { padding: 1px 7px; font-size: 11.5px; font-weight: 450; border-radius: 5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--folium); outline-offset: 2px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline { display: inline; }
details > summary.btn { list-style: none; }
summary { cursor: pointer; }

/* messages: confirmations quiet, errors in Ink, things to act on on a gradient field */
.flash { border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--ink); }
.flash.error { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flash.error a { color: var(--paper); }
.banner { position: relative; border-radius: var(--r); padding: 14px 16px 14px 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); overflow: hidden; }
.banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--strip); }
.banner.info { background: var(--surface); border: 1px solid var(--line); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 0; flex-wrap: wrap; }
.tabs a { padding: 9px 10px; text-decoration: none; color: var(--stone); border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.tabs .n { color: var(--stone); font: 400 11px var(--mono); margin-left: 5px; }

/* review */
.review { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 22px; }
.review .media img { width: 100%; border-radius: 6px; display: block; background: var(--ink); }
.review audio { width: 100%; margin-top: 10px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--stone); font: 400 11.5px/1.9 var(--mono); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 5px; }
.meter i { display: block; height: 100%; background: var(--ink); }
.timeline { position: relative; height: 26px; background: var(--line); border-radius: 5px; margin: 6px 0 2px; }
.timeline i { position: absolute; top: 0; bottom: 0; background: var(--ink); border-radius: 5px; }
.timeline-labels { display: flex; justify-content: space-between; font: 400 11px var(--mono); color: var(--stone); }

/* setup checklist */
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; }
.step .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 400 11.5px var(--mono); border: 1px solid var(--line-strong); color: var(--stone); }
.step.done .mark { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* progress */
.progress { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); transition: width .4s; }

/* login: a gradient field with the Ink wordmark */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
  background: var(--paper) url("/static/brand/field-found.jpg") center / cover no-repeat; }
.login .card { width: 100%; max-width: 380px; padding: 30px; background: rgba(248,248,245,.92); border-color: rgba(228,229,223,.7); backdrop-filter: blur(6px); }
.login .logo { margin-bottom: 22px; }
.login .logo img { height: 22px; width: auto; display: block; }
.login .tagline { font: 400 11.5px var(--mono); color: var(--stone); margin: -12px 0 18px; }

.empty { padding: 24px 16px; text-align: center; color: var(--stone); }

/* songs */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.route-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.route-head h2 { margin: 0 0 2px; }
.route-n { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 14px; }
.steps-list { margin: 8px 0; padding-left: 18px; display: grid; gap: 3px; }
.steps-list li::marker { font-family: var(--mono); color: var(--stone); }
table.compact td { padding: 5px 6px; border-bottom: 1px solid var(--line-2); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; padding: 12px; }
  .brand { padding: 4px 10px 8px; width: 100%; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav-sep, .side-foot { display: none; }
  .main { padding: 20px 16px 48px; }
  .review { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
}

/* attention: the only colour in the app, a thin gradient strip on the left */
.attn { position: relative; }
.attn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--strip); border-radius: 2px 0 0 2px; }
.card.attn, .review.attn { border-left-color: transparent; }
.stat.attn::before { border-radius: var(--r) 0 0 var(--r); }
.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--strip); }

/* dashboard */
.block { margin-bottom: 22px; }
.block > h3 { margin: 0 0 8px; }
.inbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.inbox-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px 12px 20px;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: rgba(25,23,20,.025); }
.inbox-n { font: 400 22px/1 var(--mono); font-variant-numeric: tabular-nums; }
.inbox-what { display: grid; gap: 1px; min-width: 0; }
.inbox-what b { font-weight: 500; }
.inbox-what .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-cta { font: 400 12px var(--mono); color: var(--stone); white-space: nowrap; }
.inbox-row:hover .inbox-cta { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); }
.kpi { display: grid; gap: 4px; align-content: start; padding: 16px 18px; color: var(--ink); text-decoration: none; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
a.kpi:hover { background: rgba(25,23,20,.02); }
.kpi .k { font: 400 11px var(--mono); color: var(--stone); }
.kpi .v { font: 400 30px/1.15 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--stone); }
.kpi.chart svg { width: 100%; height: 56px; display: block; margin-top: 4px; }
.legend { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.sw.ink { background: var(--ink); } .sw.stone { background: var(--line-strong); margin-left: 6px; }
.setup-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px 14px 20px; border-bottom: 1px solid var(--line-2); }
.setup-row:last-child { border-bottom: 0; }
.setup-row .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 400 11.5px var(--mono); border: 1px solid var(--line-strong); color: var(--stone); }
.setup-row.done .mark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.setup-row.done b { font-weight: 400; color: var(--stone); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .kpi { border-left: 0; border-top: 1px solid var(--line); } .kpi:first-child { border-top: 0; } }

/* dashboard hero: a gradient field with the headline figures (made to be screenshotted) */
.hero { position: relative; border-radius: 14px; padding: 30px 34px 34px; margin-bottom: 26px; color: var(--ink); overflow: hidden;
  background: var(--paper) url("/static/brand/field-found.jpg") center 35% / cover no-repeat; min-height: 248px;
  display: flex; flex-direction: column; justify-content: space-between; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.hero-top .mono { font-size: 12px; }
.hero-mark { height: 22px; width: auto; display: block; }
.hero-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fig { display: grid; gap: 8px; padding: 0 22px; border-left: 1px solid rgba(25,23,20,.18); }
.fig:first-child { padding-left: 0; border-left: 0; }
.fig .v { font: 300 62px/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.fig .v small { font-size: 30px; letter-spacing: -.02em; color: var(--ink-2); }
.fig .k { font: 400 12px var(--mono); color: var(--ink-2); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.block-head h3 { margin: 0; }
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.artist { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.artist:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(25,23,20,.08); }
.artist-field { display: flex; align-items: flex-end; height: 112px; padding: 14px 18px; background-size: cover; background-position: center; }
.artist .name { font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.artist-body { display: grid; gap: 8px; padding: 14px 18px 16px; }
.artist .nums { display: flex; gap: 18px; flex-wrap: wrap; font: 400 11px var(--mono); color: var(--stone); }
.artist .nums span { display: grid; gap: 1px; }
.artist .nums b { font: 400 22px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.artist .songs { font-size: 12px; color: var(--stone); line-height: 1.45; }
.who { display: flex; gap: 10px; align-items: center; }
.who > span:last-child { display: grid; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 400 12px var(--mono); }
.inbox.compact .inbox-row { grid-template-columns: 44px 1fr; padding: 10px 14px 10px 18px; }
.inbox.compact .inbox-n { font-size: 18px; }
@media (max-width: 1100px) { .hero-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } .fig:nth-child(3) { padding-left: 0; border-left: 0; } .fig .v { font-size: 46px; } }
