:root { --base: #166ee1; --text: #1d1f25; --muted: #616670; --line: #e3e5e8; --bg: #f5f6f8; --panel: #fff; --soft: #e7f0fd; --warn: #fff4e0; --warn-line: #f0b44c; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --text: #e8eaee; --muted: #9aa1ad; --line: #2a2e35; --bg: #15171b; --panel: #1b1e23; --soft: #1d2b44; --warn: #3a2e14; --warn-line: #a87a22; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 system-ui, -apple-system, "Segoe UI", "Heebo", Arial, sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.hero { background: var(--base); color: #fff; padding: 40px 0 34px; }
.hero .logo { font-size: 34px; line-height: 1; }
.hero h1 { margin: 8px 0 6px; font-size: 32px; }
.hero p { margin: 0; opacity: .9; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 6px; }
.toc a { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 3px 12px; color: var(--text); text-decoration: none; font-size: 13px; }
.toc a:hover { border-color: var(--base); color: var(--base); }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 24px; margin: 16px 0; }
h2 { margin: 0 0 10px; font-size: 21px; display: flex; align-items: center; gap: 10px; }
h2 .n { background: var(--base); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
h3 { margin: 18px 0 6px; font-size: 16px; }
ul, ol { padding-inline-start: 22px; margin: 6px 0; }
li { margin: 4px 0; }
.steps li { margin: 8px 0; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }
code { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.note { background: var(--soft); border-radius: 8px; padding: 10px 14px; margin: 12px 0 4px; font-size: 14px; }
.note.warn { background: var(--warn); border-inline-start: 4px solid var(--warn-line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: start; }
.keys td:first-child { white-space: nowrap; width: 40%; }
.roles td:not(:first-child), .roles th:not(:first-child) { text-align: center; width: 70px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0; }
.vc { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.vc .vi { font-size: 24px; color: var(--base); }
.vc p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 2px; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 40px; }
/* mini screen sketch */
.mock { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 8px 0 14px; font-size: 12px; }
.m-top { background: var(--base); color: #fff; display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px 0; font-weight: 600; }
.m-top > span:first-child { align-self: center; margin-inline-end: 8px; padding-bottom: 8px; }
.m-tab { padding: 4px 10px; border-radius: 6px 6px 0 0; font-weight: 500; opacity: .85; }
.m-tab.on { background: var(--panel); color: var(--text); opacity: 1; }
.m-help { margin-inline-start: auto; align-self: center; padding-bottom: 8px; opacity: .9; }
.m-body { display: flex; min-height: 150px; }
.m-side { width: 120px; border-inline-end: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.m-side .on { color: var(--base); font-weight: 600; }
.m-main { flex: 1; display: flex; flex-direction: column; }
.m-bar { border-bottom: 1px solid var(--line); padding: 6px 10px; color: var(--muted); display: flex; }
.m-add { margin-inline-start: auto; background: var(--base); color: #fff; border-radius: 4px; padding: 0 8px; }
.m-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.m-grid i { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); min-height: 22px; }
.m-sum { border-top: 1px solid var(--line); padding: 4px 10px; color: var(--muted); background: var(--bg); }
@media (max-width: 600px) { section { padding: 14px 16px; } .m-side { display: none; } .hero h1 { font-size: 26px; } }
