:root{--bg:#f4f6f9;--surface:#fff;--surface-2:#f8f9fb;--border:#dde2ea;--text:#1c2430;--muted:#5d6878;--accent:#1f5fa8;--accent-soft:#e6eef8;--ok:#1b7f3b;--ok-soft:#e5f4ea;--warn:#8a5300;--warn-soft:#fdf1dc;--error:#b3261e;--error-soft:#fbe9e7;--radius:10px;--shadow:0 1px 2px #1018280f, 0 1px 3px #10182814;color:var(--text);background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.45}*{box-sizing:border-box}body{background:var(--bg);margin:0}h1,h2,h3{margin:0 0 8px;line-height:1.25}h1{font-size:24px}h2{font-size:18px}h3{font-size:15px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.muted{color:var(--muted)}.small{font-size:13px}.center{text-align:center;place-items:center;gap:12px;min-height:60vh;display:grid}.shell{grid-template-columns:220px 1fr;min-height:100vh;display:grid}.sidebar{color:#dbe5f2;background:#16263d;flex-direction:column;gap:4px;padding:20px 14px;display:flex}.sidebar .brand{color:#fff;margin:0 8px 18px;font-size:17px;font-weight:700}.sidebar a,.sidebar button.link{color:#c4d2e4;border-radius:8px;padding:8px 10px}.sidebar button.link{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0}.sidebar a.active,.sidebar a:hover,.sidebar button.link:hover{color:#fff;background:#24395a;text-decoration:none}.sidebar .spacer{flex:1}.sidebar .nav-heading{text-transform:uppercase;letter-spacing:.04em;color:#8ea3bf;margin:14px 10px 2px;font-size:12px}.sidebar .who{color:#9fb2cc;padding:8px 10px;font-size:13px}.sidebar label.who{flex-direction:column;gap:4px;padding-top:0;display:flex}.sidebar label.who select{color:var(--text)}.main{min-width:0;padding:24px 32px 64px}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}@media (width<=800px){.shell{grid-template-columns:1fr}.sidebar{flex-flow:wrap;padding:10px}.sidebar .brand{align-self:center;margin:0 12px 0 4px}.sidebar .spacer{display:none}.main{padding:16px}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card+.card{margin-top:12px}.grid-2>.card,.stack>.card{margin-top:0}.card.selected{outline:2px solid var(--accent);outline-offset:-1px}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.spread{justify-content:space-between}.grid-2{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;display:grid}.btn{appearance:none;border:1px solid var(--accent);background:var(--accent);color:#fff;font:inherit;cursor:pointer;border-radius:8px;padding:8px 14px;font-weight:600}.btn:hover{filter:brightness(1.08)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.secondary{background:var(--surface);color:var(--accent)}.btn.ghost{color:var(--accent);background:0 0;border-color:#0000;padding:6px 8px}.btn.danger{background:var(--surface);color:var(--error);border-color:#e6b4af}.btn.small{padding:4px 10px;font-size:13px}label.field{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;display:flex}label.field>span{color:var(--text);font-weight:600}input,select,textarea{font:inherit;color:inherit;border:1px solid var(--border);background:var(--surface);border-radius:8px;min-width:0;padding:8px 10px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}input[type=checkbox]{width:16px;height:16px}label.check{cursor:pointer;align-items:center;gap:8px;display:flex}.badge{background:var(--accent-soft);color:var(--accent);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-weight:600;display:inline-flex}.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.error{background:var(--error-soft);color:var(--error)}.badge.muted{background:var(--surface-2);color:var(--muted)}.notice{border-radius:8px;padding:10px 12px;font-size:14px}.notice.error{background:var(--error-soft);color:var(--error)}.notice.warn{background:var(--warn-soft);color:var(--warn)}.notice.ok{background:var(--ok-soft);color:var(--ok)}.notice.info{background:var(--accent-soft);color:var(--accent)}.list{flex-direction:column;display:flex}.list>.item{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 4px;display:flex}.list>.item:last-child{border-bottom:0}.sentence{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;display:flex}.sentence .word{color:var(--muted);font-weight:700}.editor{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 340px;align-items:start;gap:16px;display:grid}.editor.two{grid-template-columns:minmax(0,1fr) 340px}@media (width<=1200px){.editor,.editor.two{grid-template-columns:1fr}}.sticky{position:sticky;top:16px}.drag-handle{font:inherit;cursor:grab;color:var(--muted);-webkit-user-select:none;user-select:none;touch-action:none;background:0 0;border:0;padding:0 4px}.field-card{cursor:pointer;align-items:center;gap:10px;padding:10px 12px;display:flex}.field-card .type{color:var(--muted);font-size:12px}.palette{grid-template-columns:repeat(2,1fr);gap:6px;display:grid}.palette button{text-align:left}.stage{border-left:4px solid var(--accent)}.stage.routed{border-left-color:var(--warn)}.step-card{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:12px}.step-card+.step-card{margin-top:8px}.phone{background:#eef2f6;border:10px solid #1c2430;border-radius:28px;width:320px;max-width:100%;min-height:520px;margin:0 auto;overflow:hidden}.phone .screen{flex-direction:column;gap:10px;padding:14px;font-size:14px;display:flex}.phone .step{background:#fff;border-radius:10px;padding:10px}.form-field{margin-top:10px}.form-field .label{margin-bottom:4px;font-size:13px;font-weight:600}.form-field .hint{color:var(--muted);margin-top:2px;font-size:12px}.form-field .error{color:var(--error);margin-top:2px;font-size:12px}.choices{flex-wrap:wrap;gap:6px;display:flex}.choice{border:1px solid var(--accent);color:var(--accent);font:inherit;cursor:pointer;background:#fff;border-radius:14px;padding:3px 10px;font-size:13px}.choice.on{background:var(--accent);color:#fff}.thumb{background:var(--surface-2);border-radius:8px;place-items:center;width:88px;height:88px;display:grid;position:relative;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.thumb button{background:var(--error);color:#fff;cursor:pointer;border:0;border-radius:50%;width:20px;height:20px;line-height:1;position:absolute;top:2px;right:2px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;display:grid}.photo-grid img{aspect-ratio:1;object-fit:cover;cursor:zoom-in;border-radius:8px;width:100%}.timeline{border-left:2px solid var(--border);margin:0;padding:0;list-style:none}.timeline li{padding:4px 0 8px 14px;font-size:14px;position:relative}.timeline li:before{content:"";background:var(--accent);border-radius:50%;width:10px;height:10px;position:absolute;top:10px;left:-6px}.value-out{color:var(--error);font-weight:600}.value-ok{color:var(--ok)}.phone .choices{flex-wrap:wrap;gap:6px;display:flex}.phone .choice{border:1px solid var(--accent);color:var(--accent);cursor:pointer;background:#fff;border-radius:14px;padding:3px 10px;font-size:13px}.phone .choice.on{background:var(--accent);color:#fff}.phone .hint{color:var(--muted);margin-top:2px;font-size:12px}.phone .error{color:var(--error);margin-top:2px;font-size:12px}table.grid{border-collapse:collapse;width:100%;font-size:14px}table.grid th,table.grid td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;padding:6px 8px}table.grid th{color:var(--muted);font-size:13px;font-weight:600}table.grid td input{width:100%}table.grid td.missing input{background:#fffaf0;border-color:#f0c36d}.modal-backdrop{z-index:10;background:#10182866;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border-radius:12px;width:min(640px,100%);max-height:85vh;padding:20px;overflow:auto;box-shadow:0 10px 30px #0003}.help{background:var(--bg);min-height:100vh}.help-top{background:#16263d;justify-content:space-between;align-items:center;padding:14px 24px;display:flex}.help-top a{color:#dbe5f2}.help-brand{font-size:17px;font-weight:700;color:#fff!important}.help-body{grid-template-columns:220px minmax(0,1fr);gap:24px;max-width:1100px;margin:0 auto;padding:24px;display:grid}.help-nav{flex-direction:column;align-self:start;gap:14px;max-height:calc(100vh - 32px);display:flex;position:sticky;top:16px;overflow-y:auto}.help-nav-section{flex-direction:column;gap:2px;display:flex}.help-nav .nav-heading{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 2px 10px;font-size:12px}.help-toc{border-left:2px solid var(--border);flex-direction:column;margin:2px 0 6px 12px;display:flex}.help-toc a{color:var(--muted);padding:3px 10px;font-size:13px}.help-nav a{color:var(--text);border-radius:8px;padding:6px 10px}.help-nav a.active,.help-nav a:hover{background:var(--accent-soft);color:var(--accent);text-decoration:none}.help-content{min-width:0}@media (width<=800px){.help-body{grid-template-columns:1fr;padding:16px}.help-nav{max-height:none;position:static}.help-toc{display:none}}.help-card{color:inherit;flex-direction:column;gap:6px;display:flex}.help-card:hover{border-color:var(--accent);text-decoration:none}.help-card .badge{align-self:flex-start}.help-anchor{color:inherit}.help-anchor:hover{text-decoration:none}.prose h2,.prose h3{scroll-margin-top:16px}.help-pager{max-width:820px}.help-button{border:1px solid var(--border);background:var(--surface);color:var(--accent);border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:13px;display:inline-flex}.help-button:hover{border-color:var(--accent);text-decoration:none}.help-button>span{background:var(--accent);color:#fff;border-radius:50%;place-items:center;width:16px;height:16px;font-size:11px;font-weight:700;display:inline-grid}.prose{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);max-width:820px;padding:24px 32px;line-height:1.6}.prose h1{margin:4px 0 16px;font-size:26px}.prose h2{margin:28px 0 8px;padding-top:4px;font-size:19px}.prose h3{margin:20px 0 6px;font-size:16px}.prose p,.prose ul,.prose ol{margin:0 0 12px}.prose li{margin:4px 0}.prose code{background:var(--surface-2);border:1px solid var(--border);border-radius:4px;padding:1px 5px;font-size:13px}.prose pre{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:12px;overflow-x:auto}.prose pre code{border:0;padding:0}.prose table{border-collapse:collapse;margin:0 0 12px}.prose th,.prose td{border-bottom:1px solid var(--border);text-align:left;padding:6px 10px}@media (width<=800px){.prose{padding:16px}}.stat-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;display:grid}.stat-grid>.stat{flex-direction:column;gap:4px;margin:0;display:flex}.stat-value{font-size:26px;font-weight:700;line-height:1.1}.stat.ok .stat-value{color:var(--ok)}.stat.warn .stat-value{color:var(--warn)}.stat.error .stat-value{color:var(--error)}.day-chart{border-bottom:1px solid var(--border);align-items:flex-end;gap:2px;height:180px;display:flex}.day-chart .day{flex-direction:column-reverse;flex:1;min-width:2px;height:100%;display:flex}.day-chart .day:hover{background:var(--surface-2)}.seg.passed,.swatch.passed{background:var(--ok)}.seg.failed,.swatch.failed{background:var(--error)}.seg.running,.swatch.running{background:var(--accent)}.seg.cancelled,.swatch.cancelled{background:var(--muted)}.swatch{border-radius:2px;width:10px;height:10px;display:inline-block}
