:root {
  --bg: #f6f7f9; --panel: #fff; --text: #1d2330; --muted: #667085; --border: #e3e6eb;
  --accent: #1f4fbf; --good: #157347; --good-bg: #e8f5ee; --bad: #b42318; --bad-bg: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
header { background: #13213f; color: #fff; padding: 12px 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
header strong { font-size: 16px; }
header a { color: #c9d6f5; text-decoration: none; }
header a:hover, header a.active { color: #fff; }
header .account { margin-left: auto; display: flex; gap: 12px; align-items: center; color: #c9d6f5; }
header form { margin: 0; }
main { padding: 24px; }
h1 { font-size: 20px; margin: 0 0 16px; }
h1 .where { font-weight: 400; }
h2 { font-size: 16px; margin: 0 0 2px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.panel .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.panel .label + div { margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--accent); }
.card .value { font-size: 22px; font-weight: 600; }
section { margin-top: 28px; }
section .question { margin-bottom: 4px; font-weight: 600; }
section p { margin: 0 0 10px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #fafbfc; }
td.theme { width: 150px; color: var(--muted); }
td.def { font-size: 13px; max-width: 360px; }
.good-text { color: var(--good); }
.bad-text { color: var(--bad); }
details.data-needed { font-size: 12px; margin-top: 4px; max-width: 320px; }
details.data-needed summary { cursor: pointer; color: var(--muted); }
details.data-needed div, .data div { margin-top: 6px; }
.data { margin-bottom: 16px; }
button { padding: 6px 14px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
button.link { background: none; color: #c9d6f5; padding: 0; }
button.link:hover { color: #fff; }

form.priority { display: inline-flex; margin: 0; white-space: nowrap; }
form.priority button { background: var(--panel); color: var(--muted); border: 1px solid var(--border); border-radius: 0;
  padding: 3px 10px; font-size: 12px; }
form.priority button + button { border-left: 0; }
form.priority button:first-of-type { border-radius: 6px 0 0 6px; }
form.priority button:last-of-type { border-radius: 0 6px 6px 0; }
form.priority button:hover { color: var(--text); background: #f0f2f5; }
form.priority button.on { font-weight: 600; }
form.priority button.high.on { background: #16a34a; border-color: #16a34a; color: #fff; }
form.priority button.medium.on { background: #86efac; border-color: #86efac; color: #14532d; }
form.priority button.low.on { background: #facc15; border-color: #facc15; color: #713f12; }
form.priority button.not-now.on { background: #9ca3af; border-color: #9ca3af; color: #1f2937; }
form.priority button:disabled { cursor: progress; }
.priority-row { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.priority-row .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.signin { max-width: 360px; margin: 10vh auto 0; }
.signin h1 { margin-bottom: 4px; }
.signin form { display: grid; gap: 12px; margin-top: 16px; }
.signin label { display: grid; gap: 4px; font-weight: 600; }
.signin input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.signin button { padding: 8px 14px; }
.error { background: var(--bad-bg); color: var(--bad); padding: 8px 12px; border-radius: 6px; }

@media (max-width: 700px) {
  main { padding: 16px; }
  td.theme { width: auto; }
}
