/* Plain, functional theme for v0.1. Destination themes come later. */
:root {
    --fg: #1d2330; --muted: #6b7280; --line: #e5e7eb; --bg: #f7f8fa;
    --accent: #1f6feb; --ok: #127a3a; --err: #b42318; --card: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.45; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header.top { background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
a { color: var(--accent); }
nav a { text-decoration: none; }
footer { margin: 48px auto 24px; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.plan { border-top: 1px dashed var(--line); padding: 8px 0; }
.price { font-size: 1.3rem; font-weight: 700; margin: 8px 0; }
.btn, button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.btn.secondary, button.secondary { background: #fff; color: var(--fg); border: 1px solid var(--line); }
.btn.danger, button.danger { background: var(--err); }
button.link { background: none; color: var(--accent); padding: 0; }
form.inline { display: inline; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; width: 100%; max-width: 420px; background: #fff; }
input[type=checkbox], input[type=radio] { width: auto; }
label { display: block; margin: 10px 0 4px; font-weight: 600; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.alert.ok { background: #e7f6ec; color: var(--ok); }
.alert.err { background: #fdecea; color: var(--err); }
.validation-summary-errors, .field-validation-error { color: var(--err); }
.validation-summary-valid { display: none; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { background: #f1f3f6; font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
.pos { color: var(--ok); } .neg { color: var(--err); }
.bar { height: 10px; background: #eef0f3; border-radius: 5px; overflow: hidden; max-width: 320px; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.filters a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--fg); }
.filters a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 20px; }
.filterbar select { width: auto; max-width: 220px; padding: 5px 8px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef0f3; font-size: .8rem; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; min-width: 180px; }
.stat b { display: block; font-size: 1.4rem; }
code { background: #eef0f3; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
