/* NitoPath staff portal. Dark first; light mode follows the device setting. */
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/vendor/inter-latin.woff2") format("woff2");
}
:root {
  --bg: #0a0f1a; --bg-2: #0d1422; --card: #111a2b; --card-2: #16213a; --text: #e6ecf7; --muted: #8b9ab5; --line: #1f2c45;
  --accent: #60a5fa; --accent-strong: #2563eb; --accent-text: #ffffff; --soft: rgba(96, 165, 250, .12);
  --danger: #f87171; --glow: rgba(96, 165, 250, .16); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  --blue: #60a5fa; --amber: #fbbf24; --purple: #c084fc; --teal: #2dd4bf; --green: #4ade80; --gray: #94a3b8;
  --radius: 14px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f6fb; --bg-2: #ffffff; --card: #ffffff; --card-2: #f6f9ff; --text: #0f1b2d; --muted: #5a6a85; --line: #dfe6f1;
    --accent: #2563eb; --accent-strong: #2563eb; --soft: rgba(37, 99, 235, .09);
    --danger: #b91c1c; --glow: rgba(37, 99, 235, .10); --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
    --blue: #1d4ed8; --amber: #b45309; --purple: #7e22ce; --teal: #0f766e; --green: #15803d; --gray: #475569;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 15px/1.55 "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 500px at 80% -10%, var(--soft), transparent 60%), var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); text-underline-offset: 3px; }
h1 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin: 0 0 1.25rem; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 2rem 0 .75rem; }
.card h2 { margin-top: 0; }
.center { text-align: center; padding: 3rem 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* top bar */
header.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
header.bar .inner { max-width: 1160px; margin: 0 auto; padding: .7rem 1.25rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem 1.25rem; }
.brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
/* Wordmark sheen: re-created from the ShinyText effect in React Bits (reactbits.dev). */
.shiny { color: var(--text); background: linear-gradient(110deg, var(--text) 40%, var(--accent) 50%, var(--text) 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
nav { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; }
nav::-webkit-scrollbar { display: none; }
nav a { padding: .4rem .7rem; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: color .15s, background-color .15s; }
nav a:hover { color: var(--text); background: var(--soft); }
nav a.on { background: var(--soft); color: var(--accent); font-weight: 600; }
nav a.out { opacity: .8; }
.who { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
main { max-width: 1160px; margin: 0 auto; padding: 2rem 1.25rem 5rem; }

/* cards */
.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
/* Pointer-following glow: re-created from the SpotlightCard component in React Bits (reactbits.dev). */
.spot { overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .85rem; }
.stat .n { font-size: 1.9rem; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .84rem; margin-top: .25rem; }
.stat.hot .n { color: var(--accent); }
.login { max-width: 380px; margin: 12vh auto; padding: 1.75rem; }
.login h1 { margin-bottom: .25rem; }
.stack > * + * { margin-top: .85rem; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 2px var(--accent), var(--shadow); } to { box-shadow: 0 0 0 2px transparent, var(--shadow); } }

/* forms */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: .6rem .75rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
textarea { min-height: 5.5rem; resize: vertical; }
label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; font-weight: 500; }
button { padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; font-weight: 500; transition: transform .12s, background-color .15s, border-color .15s, filter .15s; }
button:hover { border-color: var(--accent); }
button:active { transform: scale(.98); }
button.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text); font-weight: 600; }
button.primary:hover { filter: brightness(1.1); }
button.wide { width: 100%; }
button:disabled { opacity: .6; cursor: default; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters > * { flex: 1 1 170px; width: auto; }

/* tables */
.card.table { padding: .35rem .5rem; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: .7rem .75rem; border-bottom: 1px solid var(--line); }
td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr.link { cursor: pointer; transition: background-color .15s; }
tr.link:hover td { background: var(--soft); }
tr.link td:first-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.link:hover td:first-child { color: var(--accent); }

/* status pills */
.badge { --c: var(--gray); display: inline-flex; align-items: center; gap: .4rem; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.badge::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.badge.open { --c: var(--blue); } .badge.confirmed { --c: var(--amber); } .badge.planned { --c: var(--purple); }
.badge.in-progress { --c: var(--teal); } .badge.fixed { --c: var(--green); } .badge.closed, .badge.wont-fix, .badge.duplicate { --c: var(--gray); }

/* detail pages */
dl { margin: 0; }
dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-top: 1rem; }
dt:first-child { margin-top: 0; }
dd { margin: .2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.note { border-top: 1px solid var(--line); padding: .65rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.transcript { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .85rem; max-height: 70vh; overflow: auto; font-size: .84rem; }
.back { display: inline-block; margin-bottom: .75rem; text-decoration: none; font-size: .88rem; }

@media (max-width: 760px) {
  header.bar .inner { grid-template-columns: 1fr auto; padding: .6rem 1rem .35rem; }
  nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -1rem; padding: 0 1rem .25rem; }
  .who .name { display: none; }
  main { padding: 1.25rem 1rem 4rem; }
  h1 { font-size: 1.35rem; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.table { padding: 0 .9rem; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: .7rem 0; }
  tbody tr:last-child { border-bottom: 0; }
  td { border: 0; padding: .1rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shiny { animation: none; background: none; -webkit-text-fill-color: currentColor; }
  .flash { animation: none; }
  * { transition: none !important; }
}
