@import url('tokens.css');
body { min-height: 100vh; }
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top .sp { flex: 1; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; cursor: pointer; }
.top nav a.on { background: var(--soft); color: var(--accent); }
.brandline { display: inline-flex; align-items: flex-end; gap: 6px; }
.brandline img { height: 24px; }
.brandline b { font-weight: 800; font-size: 12px; letter-spacing: .06em; color: #8a8a8a; padding-bottom: 1px; }
.brandline .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brandline .logo-light { display: none; } :root:not([data-theme="light"]) .brandline .logo-dark { display: block; } }
main { max-width: 1280px; margin: 0 auto; padding: 18px 16px 60px; }
h1 { font-size: 20px; margin: 0 0 4px; } h2 { font-size: 16px; margin: 0 0 8px; } h3 { font-size: 14px; margin: 18px 0 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; } .grow { flex: 1; }
.btn.danger { background: var(--danger); color: #fff; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--accent); border: 1px solid var(--line); }
.pill.warn { color: var(--warn); } .pill.ok { color: var(--ok); } .pill.bad { color: var(--danger); }
table.t { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.t th, table.t td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t.click tbody tr { cursor: pointer; } table.t.click tbody tr:hover { background: var(--soft); }
.scroll { overflow-x: auto; }
.bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .side { position: static !important; display: flex; overflow-x: auto; gap: 4px; } .side a { white-space: nowrap; } }
.side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; cursor: pointer; }
.side a:hover { background: var(--soft); } .side a.on { background: var(--soft); color: var(--accent); font-weight: 600; }
.side small { color: var(--muted); }
.field { margin: 0 0 14px; } .field > label { display: block; font-weight: 600; margin-bottom: 2px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; max-width: 640px; }
.field textarea { min-height: 76px; resize: vertical; }
.field.check label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.field .ro { padding: 8px 10px; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; max-width: 640px; color: var(--muted); min-height: 38px; }
.intro { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; color: var(--ink); }
.grid-in { width: 100%; border-collapse: collapse; }
.grid-in th { text-align: left; font-size: 12px; color: var(--muted); padding: 2px 4px; }
.grid-in td { padding: 3px 4px; } .grid-in input { width: 100%; min-width: 120px; }
.saved { font-size: 12.5px; color: var(--muted); min-height: 1.2em; } .saved.ok { color: var(--ok); } .saved.bad { color: var(--danger); }
.help { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 14px; background: var(--panel); }
.help summary { cursor: pointer; padding: 9px 12px; font-weight: 600; color: var(--accent); }
.help .body { padding: 0 12px 12px; } .help iframe, .help video { width: 100%; max-width: 640px; aspect-ratio: 16/9; border: 0; border-radius: 8px; background: #000; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.modal .card { width: 100%; max-width: 400px; }
.pwcell { display: flex; gap: 4px; align-items: center; min-width: 210px; }
.pwcell input { flex: 1; min-width: 90px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 10px; z-index: 30; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.center .card { width: 100%; max-width: 380px; }
.center label { display: block; margin: 10px 0 3px; font-weight: 600; }
.center input { width: 100%; }
.banner { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 8px; padding: 9px 12px; margin: 0 0 14px; }
code.mono, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.side .navh { margin: 12px 10px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.side .navh:first-child { margin-top: 0; }
@media (max-width: 820px) { .side .navh { display: none; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 44%); gap: 16px; align-items: start; }
.split > :not(.pv) { grid-column: 1; }
.split > .pv { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 64px; padding: 12px; display: grid; gap: 8px; }
.pv .pvbody iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pv .small { font-size: 12px; margin: 6px 0 0; }
.grid-in.docs td:nth-child(1) { width: 34%; } .grid-in.docs td:nth-child(3) { white-space: nowrap; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .split > .pv { grid-column: 1; grid-row: auto; position: static; } }

