/* The Kiluth look for Annotator's screens. Tokens and parts copied from the Kiluth design system
   (Kiluth/kiluth-website, src/app/globals.css and src/app/(en)/design-system/), not invented here.
   One dark look only: the design system has no light mode. Colour comes from the page under review. */
@font-face { font-family: 'Theinhardt'; src: url('/look/fonts/theinhardt-light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Theinhardt'; src: url('/look/fonts/theinhardt-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #000;
  --panel: #0b0b0b;
  --panel-2: #141414;
  --line: #222;
  --line-2: #333;
  --fg: #fff;
  --fg-2: #d6d6d6;
  --muted: #9a9a9a;
  --dim: #666;
  --ok: #7ee2a8;
  /* Status chips (home.css .tag): colour at 16% behind the text. */
  --ok-chip: rgba(6, 199, 85, .16); --ok-text: #6ee7a0;
  --wait-chip: rgba(255, 176, 32, .16); --wait-text: #ffc566;
  --font-body: 'Theinhardt', 'IBM Plex Sans Thai', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #333 #000; scrollbar-width: thin; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 300; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
::selection { background: #fff; color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; border: 2px solid #000; }
::placeholder { color: #6b6b6b; opacity: 1; }
input, textarea { caret-color: #fff; }
input:-webkit-autofill, textarea:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #141414 inset; transition: background-color 9999s; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.03em; }

/* Label: 13px capitals, +6% (design system, Type). */
.caps { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 400; }
.mono { font-family: var(--font-mono); font-size: 12px; }

/* Buttons. The one button is a white pill in sentence case (globals.css .btn); every other button is the
   header's glass pill (design system, Components), so white always marks the main action or the chosen state. */
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 34px; padding: 0 15px; border: 0; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 400; letter-spacing: -0.005em; white-space: nowrap;
  color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  cursor: pointer; -webkit-user-select: none; user-select: none; transition: background .2s, transform .2s;
}
button:hover { background: rgba(255, 255, 255, .18); }
button:active { transform: scale(.98); }
button:disabled { opacity: .6; cursor: default; transform: none; }
button:disabled:hover { background: rgba(255, 255, 255, .12); }
button.btn, form > button:not([type]), button.on, button[aria-pressed=true] { min-height: 38px; padding: 0 20px; font-size: 14px; background: #fff; color: #000; box-shadow: none; }
button.btn:hover, form > button:not([type]):hover, button.on:hover { background: #e9e9e9; }
button.on { min-height: 34px; padding: 0 15px; font-size: 13px; }
/* Touch: an invisible band keeps every tap target at least 44px tall (globals.css). */
@media (pointer: coarse) { button { position: relative; } button::after { content: ""; position: absolute; inset: -8px 0; } }

/* Form fields: the raised panel colour, a hairline, the page's soft corners. */
input, textarea, select {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--fg);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--dim); outline: none; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
select { width: auto; padding: 4px 30px 4px 12px; border-radius: 999px; font-size: 13px; appearance: none; -webkit-appearance: none;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9a9a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; }
select:disabled { color: var(--muted); }
input[readonly] { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }

/* Status chips (home.css .tag). */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 400; }
.tag.ok { background: var(--ok-chip); color: var(--ok-text); }
.tag.wait { background: var(--wait-chip); color: var(--wait-text); }

/* Pins and their numbers. Open "needs you" amber, fixed "done" green, won't fix grey: the status chip
   colours at full strength, so a pin reads on any client page, with black numbers for contrast. */
.n, .pin-dot { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  font-size: 12px; font-weight: 400; color: #000; background: var(--wait-text); }
[data-status=fixed] .n, .fixed > .pin-dot { background: var(--ok); }
[data-status=wontfix] .n, .wontfix > .pin-dot { background: var(--muted); }

/* Glass, for bars that sit over the page (the nav once you scroll). */
.glass { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }

.logo { display: block; height: 18px; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
