:root {
  --bg: #f6f4ef; --panel: #ffffff; --ink: #1f2328; --muted: #6b6f76; --line: #e5e1d8;
  --accent: #d9622b; --accent-soft: #fbe9df; --ok: #2f7d4f; --ok-soft: #e3f2e8;
  --warn: #9a6a00; --warn-soft: #fbf0cf; --bad: #b3261e; --bad-soft: #f9e0de;
  --info: #2b5fb3; --info-soft: #e2ebfa; --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181b; --panel: #1f2125; --ink: #ecebe7; --muted: #9b9ea4; --line: #2e3136;
    --accent: #f08a4b; --accent-soft: #3a2519; --ok: #6cc28f; --ok-soft: #1d3326;
    --warn: #e0b54a; --warn-soft: #362d14; --bad: #f08a82; --bad-soft: #3a1f1d;
    --info: #86aef0; --info-soft: #1d2a40; --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: inherit; }
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: .08em; font-size: 17px; text-decoration: none; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
nav a { text-decoration: none; padding: 6px 11px; border-radius: 8px; color: var(--muted); font-weight: 500; }
nav a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.who { color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 140px; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 28px 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.btn { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 15px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.small { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.b-run { background: var(--info-soft); color: var(--info); }
.b-wait { background: var(--warn-soft); color: var(--warn); }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-muted { background: var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.link { cursor: pointer; }
tr.link:hover td { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
label.f { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--muted); }
input[type=text], input[type=url], input[type=email], input[type=number], input[type=month], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.field { margin-bottom: 14px; }
.field.err input, .field.err textarea, .field.err select { border-color: var(--bad); background: var(--bad-soft); }
.note { font-size: 13px; color: var(--bad); margin-top: 4px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.step .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--line); color: var(--muted); }
.step.done .dot { background: var(--ok-soft); color: var(--ok); }
.step.now { border-color: var(--accent); }
.step.now .dot { background: var(--accent); color: #fff; }
.wiz { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.wiz button { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13.5px; cursor: pointer; }
.wiz button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wiz button.bad { border-color: var(--bad); color: var(--bad); }
.wiz button.on.bad { color: #fff; background: var(--bad); }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--bg); }
.item.err { border-color: var(--bad); }
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tariff { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; background: var(--bg); text-align: left; font: inherit; color: inherit; }
.tariff.on { border-color: var(--accent); background: var(--accent-soft); }
.tariff b { display: block; font-size: 16px; }
.tariff .n { font-size: 24px; font-weight: 800; margin: 4px 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .tag { position: absolute; left: 6px; top: 6px; }
.photo .x { position: absolute; right: 6px; top: 6px; }
.photo.pick { cursor: pointer; outline: 3px solid transparent; }
.photo.pick:hover { outline-color: var(--accent); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }
.drop.on { border-color: var(--accent); background: var(--accent-soft); }
.post { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.post.dropped { opacity: .55; }
.post.approved { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.pic { border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 16/9; display: grid; place-items: center; color: var(--muted); font-size: 13px; position: relative; }
.pic img, .pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic .busy { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--panel) 70%, transparent); font-weight: 600; }
.text { white-space: pre-wrap; margin: 8px 0; }
.tags { color: var(--info); font-size: 13.5px; }
.remarks { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.sticky .bar { padding: 12px 16px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.before { background: var(--bg); border-radius: 10px; padding: 12px; }
.problems { color: var(--bad); font-size: 13.5px; margin: 6px 0 0; padding-left: 18px; }
.fixed { color: var(--ok); font-size: 13.5px; margin: 6px 0 0; padding-left: 18px; list-style: "✓  "; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; }
.lock { color: var(--muted); }
.toast { position: fixed; right: 16px; bottom: 90px; z-index: 50; max-width: 420px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); white-space: pre-wrap; }
.toast.bad { background: var(--bad); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.modal .panel { width: min(860px, 100%); max-height: 88vh; overflow: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); transition: width .4s; }
pre.mail { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Menlo, monospace; background: var(--bg); padding: 10px; border-radius: 8px; margin: 6px 0 0; }
.center { max-width: 440px; margin: 60px auto; }
@media (max-width: 760px) {
  .post, .compare, .grid2, .grid3 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
}
.panel.free { border-color: var(--accent); background: var(--accent-soft); margin-top: 12px; }
.lockcard b { font-size: 15px; margin: 4px 0; }
.lockcard span { display: block; }
.col > .panel + .panel { margin-top: 0; }
