@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,600;6..72,700&display=swap');

:root {
  color-scheme: light dark;
  --bg: #f7f3ec;
  --surface: #fffdf8;
  --surface-alt: #ede6d6;
  --text: #16283d;
  --dim: #5d6b7d;
  --border: #ddd3bd;
  --accent: #0f2a44;
  --accent-text: #ffffff;
  --gold: #c08a1a;
  --green: #1b7a4d;
  --green-bg: #e3f2e8;
  --amber-bg: #faf0da;
  --red: #b3372f;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1622;
    --surface: #152437;
    --surface-alt: #1d3049;
    --text: #eef2f6;
    --dim: #9fb0c2;
    --border: #2c4258;
    --accent: #d9a441;
    --accent-text: #0f2a44;
    --gold: #d9a441;
    --green: #4cc084;
    --green-bg: #173527;
    --amber-bg: #3a2f16;
    --red: #e07a72;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; }
button, [role="button"], input, select, textarea { min-height: 2.75rem; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 96px; }
.topbar { background: #0a1411; color: #fff; padding: 14px 16px; }
.topbar .inner { max-width: 680px; margin: 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.brand { font-family: "Newsreader", Georgia, serif; font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
.brand span { color: var(--gold); }
.topbar .tag { font-size: 13px; color: #c9d4de; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.muted { color: var(--dim); font-size: 14px; }
.small { font-size: 13px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.job { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); }
.job b { display: block; font-size: 17px; margin-bottom: 2px; }
.job span { color: var(--dim); font-size: 14px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.pill.amber { background: var(--amber-bg); color: #7a5b12; }
.plan { border-top: 1px solid var(--border); padding: 14px 0; }
.plan:first-child { border-top: 0; padding-top: 0; }
.plan .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.plan .meta { color: var(--dim); font-size: 14px; }
.alert { background: var(--amber-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.error { color: var(--red); font-weight: 600; }
.stamp { font-size: 13px; color: var(--dim); }
footer { max-width: 680px; margin: 0 auto; padding: 24px 16px 40px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--border); }
footer a { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; }
.msg.qb { background: var(--surface-alt); align-self: flex-start; }
.msg.user { background: var(--accent); color: var(--accent-text); align-self: flex-end; }
.qbfab { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.qbpanel { position: fixed; right: 16px; bottom: 76px; z-index: 50; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
table.desk { width: 100%; border-collapse: collapse; font-size: 14px; }
table.desk th, table.desk td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.search { margin: 12px 0; }
.hidden { display: none !important; }
