/* fly — design layer. Tokens first, components after. */
:root {
  --bg: #0f1420;
  --panel: #141a28;
  --panel-2: #1b2536;
  --line: #1e2738;
  --line-2: #263248;
  --text: #e6ebf5;
  --muted: #9aa7bd;
  --dim: #7c8aa3;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-soft: #60a5fa;
  --danger: #f87171;
  --radius: 10px;
  --radius-lg: 14px;
  --space: 8px;
}

  :root { color-scheme: dark; }
  * { box-sizing: border-box; }
  body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f1420; color: #e6ebf5;
  }
  header { padding: 20px 24px; border-bottom: 1px solid #1e2738; display: flex; justify-content: space-between; align-items: center; }
  header a { color: #e6ebf5; text-decoration: none; font-weight: 600; }
  main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 48px 24px; }
  main.wide { max-width: 900px; }
  h1 { font-size: 24px; margin: 0 0 8px; }
  p { color: #9aa7bd; }
  label { display: block; font-size: 14px; color: #9aa7bd; margin: 18px 0 6px; }
  input[type=email] {
    width: 100%; padding: 12px 14px; font-size: 16px; border-radius: 10px;
    border: 1px solid #263248; background: #141a28; color: #e6ebf5;
  }
  input[type=email]:focus { outline: none; border-color: #3b82f6; }
  button {
    margin-top: 18px; width: 100%; padding: 12px 14px; font-size: 16px; cursor: pointer;
    border: 0; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 600;
  }
  button:hover { background: #1d4ed8; }
  .muted { font-size: 14px; color: #7c8aa3; margin-top: 24px; }
  .card { background: #141a28; border: 1px solid #1e2738; border-radius: 14px; padding: 20px; }
  a.inline { color: #60a5fa; }
  footer { padding: 24px; text-align: center; color: #4c5a72; font-size: 13px; }
  input[type=date], input[type=number], input[type=search], input[type=text], select {
    width: 100%; padding: 10px 12px; font-size: 15px; border-radius: 10px;
    border: 1px solid #263248; background: #141a28; color: #e6ebf5;
  }
  select { appearance: none; }
  h2 { font-size: 15px; margin: 0 0 10px; color: #c7d2e5; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
  .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 20px; }
  @media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .chip { display: inline-flex; align-items: center; gap: 8px; background: #1b2536;
    border: 1px solid #2a3448; border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 14px; }
  .chip small { color: #7c8aa3; margin-left: 6px; }
  .chip-x { width: auto; margin: 0; padding: 0 6px; background: transparent; color: #7c8aa3;
    font-size: 18px; line-height: 1; }
  .results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px;
    max-height: 260px; overflow-y: auto; }
  .result { text-align: left; width: 100%; margin: 0; padding: 8px 10px; background: #141a28;
    border: 1px solid #1e2738; border-radius: 8px; font-weight: 400; font-size: 14px; }
  .result:hover { background: #1b2536; }
  .result small { display: block; color: #7c8aa3; }
  .check { display: flex; align-items: center; gap: 8px; color: #e6ebf5; margin-top: 12px; }
  .check input { width: auto; }
  .watch { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
  .watch h3 { margin: 0 0 4px; font-size: 17px; }
  .watch .meta { color: #7c8aa3; font-size: 14px; }
  .actions { display: flex; gap: 8px; }
  .actions button, .actions a { width: auto; margin: 0; padding: 6px 12px; font-size: 13px; }
  .ghost { background: #1e2738 !important; }
  .htmx-indicator { display: none; }
  .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: block; }
  table { font-variant-numeric: tabular-nums; }
