:root{--bg: #FAFAFA;--surface: #FCFCFC;--border: #e5e7eb;--divider: #f3f4f6;--field: #f3f4f6;--text: #111827;--text-2: #374151;--muted: #6b7280;--brand: #5D1F1F;--brand-hover: #3f1414;--tint: #F9F5F3;--gold: #F2B33D;--warn-bg: #fdf1d8;--warn: #7a5200;--bad-bg: #fdecec;--bad: #9B2C2C;--ok-bg: #e7f2ec;--ok: #2D6A4F;--neu-bg: #F4F4F5;--neu: #374151}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Figtree,system-ui,sans-serif}a{color:var(--brand)}button{font-family:inherit}button:disabled{opacity:.55;cursor:default}.boot{padding:48px;color:var(--muted)}.wrap{min-height:100vh;display:flex;flex-wrap:wrap;align-items:stretch}.nav{flex:1 1 240px;max-width:100%;background:var(--surface);border-right:1px solid var(--border);padding:24px 16px;display:flex;flex-direction:column;gap:4px}.logo{font-family:Libre Baskerville,Georgia,serif;font-weight:700;font-size:24px;color:var(--brand);padding:0 12px 4px}.tag{font-size:12px;font-weight:600;color:var(--muted);padding:0 12px 20px;letter-spacing:.06em;text-transform:uppercase}.nl{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;color:var(--text-2);font-weight:500;font-size:15px;text-decoration:none}.nl:hover{background:var(--tint)}.nl.on{background:var(--tint);color:var(--brand);font-weight:600}.me{margin-top:auto;border-top:1px solid var(--border);padding:16px 12px 0;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:9999px;background:var(--tint);flex:none;object-fit:cover}.me-text{flex:1;min-width:0}.me-name{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.linkbtn{background:none;border:0;color:var(--brand);font-size:13px;font-weight:600;min-height:44px;text-decoration:underline;cursor:pointer;padding:0}.main{flex:999 1 560px;min-width:0;padding:28px clamp(16px,3vw,40px) 48px;display:flex;flex-direction:column;gap:20px;max-width:1200px}.h1{margin:0;font-size:28px;font-weight:700}.lede{margin:6px 0 0;font-size:15px;color:var(--muted)}.h2{margin:0;font-size:17px;font-weight:700}.meta,.sub{font-size:13px;color:var(--muted)}.who{font-weight:600}.lab{font-size:13px;font-weight:600;color:var(--text-2)}.err{background:var(--bad-bg);color:var(--bad);border-radius:10px;padding:10px 12px;font-size:14px}.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:14px;min-width:0}.head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:6px}.kl{font-size:13px;font-weight:600;color:var(--muted)}.kv{font-size:30px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.ks{font-size:13px;color:var(--muted)}.pill{border-radius:9999px;padding:4px 10px;font-size:13px;font-weight:600;white-space:nowrap;display:inline-block}.warn{background:var(--warn-bg);color:var(--warn)}.bad{background:var(--bad-bg);color:var(--bad)}.neu{background:var(--neu-bg);color:var(--neu)}.ok{background:var(--ok-bg);color:var(--ok)}.br{background:var(--tint);color:var(--brand)}.btn{min-height:44px;padding:0 16px;border:0;border-radius:14px;background:var(--brand);color:#fff;font:600 14px Figtree,sans-serif;cursor:pointer}.btn:hover:not(:disabled){background:var(--brand-hover)}.btn2{min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text-2);font:500 14px Figtree,sans-serif;cursor:pointer}.btn2:hover:not(:disabled){background:var(--tint)}.btn3{min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--bad);font:600 14px Figtree,sans-serif;cursor:pointer}.btn3:hover:not(:disabled){background:var(--bad-bg)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:9999px;background:var(--surface);color:var(--text-2);font:500 14px Figtree,sans-serif;cursor:pointer}.chip.on{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:600}.inp{min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:var(--field);font:400 15px Figtree,sans-serif;color:var(--text);width:100%}.inp:focus{outline:2px solid var(--brand);outline-offset:1px}.layout{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.queue{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:12px}.side{flex:1 1 280px;display:flex;flex-direction:column;gap:16px;position:sticky;top:16px}.rep{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:12px}.rt{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.rt-tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.preview{display:flex;gap:12px;background:var(--tint);border-radius:12px;padding:12px;min-width:0}.preview-text{font-size:14px;color:var(--text-2);overflow-wrap:anywhere;white-space:pre-wrap}.thumb{width:72px;height:72px;border-radius:10px;background:var(--border);flex:none;object-fit:cover}.thumb.round{border-radius:9999px}.acts{display:flex;gap:8px;flex-wrap:wrap}.empty{padding:32px 20px;text-align:center;color:var(--muted);background:var(--surface);border:1px dashed var(--border);border-radius:16px}.box{overflow-x:auto}.t{width:100%;min-width:720px;border-collapse:collapse;font-size:14px}.t th{text-align:left;color:var(--muted);font-size:13px;font-weight:600;padding:8px;border-bottom:1px solid var(--border)}.t td{padding:10px 8px;border-bottom:1px solid var(--divider);vertical-align:middle}.t tr:last-child td{border-bottom:0}.t .r{text-align:right}.ra{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.prog{height:6px;background:var(--neu-bg);border-radius:9999px;margin-top:6px;width:120px}.prog div{height:6px;background:var(--brand);border-radius:9999px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:var(--text);color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;z-index:10;max-width:calc(100vw - 32px)}.toast.bad{background:var(--bad);color:#fff}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.head-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.seg{display:inline-flex;background:var(--neu-bg);border-radius:12px;padding:4px;gap:2px;flex-wrap:wrap}.seg button{min-height:36px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--text-2);font:500 14px Figtree,sans-serif;cursor:pointer}.seg button.on{background:#fff;color:var(--text);font-weight:600;box-shadow:0 1px 2px #00000014}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);overflow-x:auto}.tabs button{min-height:44px;padding:0 14px;border:0;background:none;color:var(--muted);font:500 15px Figtree,sans-serif;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}.tabs button.on{color:var(--brand);border-bottom-color:var(--brand);font-weight:600}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;align-items:start}.kpi.dark{background:var(--brand);border-color:var(--brand)}.kpi.dark .kl,.kpi.dark .ks{color:#fffc}.kpi.dark .kv{color:#fff}.btn.danger{background:var(--bad)}.btn.sm,.btn2.sm,.btn3.sm{min-height:36px;padding:0 12px;font-size:13px;border-radius:10px}.num,.t th.num{text-align:right;font-variant-numeric:tabular-nums}.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.pager-btns{display:flex;align-items:center;gap:10px}.mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.mini>div{background:var(--tint);border-radius:12px;padding:12px 14px}.mini .kv{font-size:24px}.terms{display:flex;flex-wrap:wrap;gap:8px}.terms span{background:var(--tint);border-radius:9999px;padding:6px 12px;font-size:14px}.list-plain{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}.list-plain li{padding:10px 0;border-bottom:1px solid var(--divider);display:flex;gap:10px;align-items:flex-start}.list-plain li:last-child{border-bottom:0}.row-on{background:var(--tint)}tr.clickable{cursor:pointer}tr.clickable:hover td{background:var(--tint)}.who-cell{display:flex;align-items:center;gap:10px}.avatar.sm{width:32px;height:32px}.kv-list{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:14px;margin:0}.kv-list dt{color:var(--muted)}.kv-list dd{margin:0;overflow-wrap:anywhere}.barlist{display:flex;flex-direction:column;gap:12px}.barrow-top{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:6px}.track{height:8px;background:var(--neu-bg);border-radius:9999px;overflow:hidden}.fill{height:100%;background:var(--brand);border-radius:9999px}.fill.mute{background:#9ca3af}.weekbars{display:flex;align-items:flex-end;gap:6px;height:160px;padding-top:18px}.wb-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;min-width:0;position:relative}.wb-val{font-size:11px;color:var(--muted);text-align:center;margin-bottom:4px;font-variant-numeric:tabular-nums}.wb-stack{display:flex;flex-direction:column-reverse;min-height:2px;border-radius:6px 6px 2px 2px;overflow:hidden;background:var(--neu-bg)}.wb-seg.s0{background:var(--brand)}.wb-seg.s1{background:#c48b6a}.wb-seg.s0.now{background:var(--gold)}.wb-axis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:6px}.legend{display:flex;gap:16px;font-size:13px;color:var(--muted);margin-top:10px;flex-wrap:wrap}.dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}.dot.s0{background:var(--brand)}.dot.s1{background:#c48b6a}.ret{width:100%;border-collapse:separate;border-spacing:4px;font-size:14px;min-width:560px}.ret th{color:var(--muted);font-size:13px;font-weight:600;text-align:center;padding:4px}.ret th:first-child{text-align:left}.ret td{padding:8px;border-radius:8px;text-align:center;font-variant-numeric:tabular-nums}.ret td.lbl{text-align:left;padding-left:4px}.ret td.pending{background:var(--neu-bg);color:var(--muted)}.funnel{display:flex;flex-direction:column;gap:10px}.funnel-row{display:flex;align-items:center;gap:10px}.funnel-bar{min-height:40px;border-radius:10px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px;font-size:14px;font-weight:600;min-width:210px;white-space:nowrap}.funnel-row:last-child .funnel-bar{background:var(--gold);color:var(--text)}.stackbar{display:flex;height:22px;border-radius:8px;overflow:hidden;gap:2px}.modal-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182766;display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}.modal{background:var(--surface);border-radius:16px;padding:22px;width:100%;max-width:440px;display:flex;flex-direction:column;gap:10px;box-shadow:0 20px 50px #0003}.login{min-height:100vh;display:flex;flex-wrap:wrap}.login-art{flex:1 1 360px;min-height:240px;padding:48px 56px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(160deg,#e8c4b0,#d4a373 55%,#a87b5a)}.login-logo{padding:0;font-size:32px}.login-head{font-family:Libre Baskerville,Georgia,serif;font-weight:700;font-size:clamp(28px,3.5vw,40px);color:#3f1414;line-height:1.2;max-width:420px}.login-sub{margin-top:8px;color:#3f1414;font-size:15px}.login-panel{flex:1 1 420px;display:flex;align-items:center;justify-content:center;padding:48px 16px}.login-form{width:100%;max-width:390px;display:flex;flex-direction:column;gap:10px}.login-form .btn{margin-top:8px}.lab-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.small-link{font-size:13px;font-weight:600;color:var(--brand)}.qr-box{display:flex;flex-direction:column;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px}.qr-ph{width:200px;height:200px;background:var(--neu-bg);border-radius:8px}.secret{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;letter-spacing:.04em;color:var(--text);-webkit-user-select:all;user-select:all;overflow-wrap:anywhere}.code-inp{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:22px;letter-spacing:.2em;text-align:center}.codes{list-style:none;margin:0;padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;background:var(--tint);border-radius:12px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px}.check{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px}.check input{width:18px;height:18px;accent-color:var(--brand)}.lc{gap:12px}.lc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.lc-stats{display:flex;gap:24px;flex-wrap:wrap}.lc-stat{font-size:26px;font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums}.lc-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.lkey{display:inline-block;width:14px;height:2px;border-radius:2px;margin-right:8px;vertical-align:middle}.lc-plot{position:relative;width:100%}.lc-plot svg{display:block;overflow:visible;outline:none;touch-action:pan-y}.lc-plot svg:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:6px}.lc-grid{stroke:var(--divider);stroke-width:1}.lc-base{stroke:var(--border);stroke-width:1}.lc-axis{fill:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.lc-cross{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}.lc-tip{position:absolute;top:4px;min-width:170px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #1118271f;padding:10px 12px;font-size:13px;pointer-events:none;z-index:2}.lc-tip-x{font-weight:700;margin-bottom:6px;color:var(--text)}.lc-tip-row{display:flex;justify-content:space-between;gap:16px;color:var(--text-2);padding:2px 0}.lc-tip-row strong{color:var(--text);font-variant-numeric:tabular-nums}.lc-tip-row.sub-row{padding-left:22px;color:var(--muted);font-size:12px}.uf{display:flex;flex-direction:column;gap:16px}.uf-head{flex-direction:row;align-items:center;gap:20px;flex-wrap:wrap}.uf-avatar{width:80px;height:80px;border-radius:9999px;border:1px dashed var(--border);background:var(--neu-bg);padding:0;overflow:hidden;cursor:pointer;flex:none;display:grid;place-items:center;color:var(--muted);font:500 12px Figtree,sans-serif}.uf-avatar img{width:100%;height:100%;object-fit:cover}.uf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px}.uf-field{display:flex;flex-direction:column;gap:6px;min-width:0}.uf-text{padding:10px 12px;resize:vertical;min-height:88px}.uf-service{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--border);border-radius:12px}.uf-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.uf-photo{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--neu-bg);display:grid;place-items:center}.uf-photo img{width:100%;height:100%;object-fit:cover}.uf-remove{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:9999px;border:0;background:#111827b3;color:#fff;font-size:18px;line-height:1;cursor:pointer}.uf-drop{min-height:150px;border:1px dashed var(--border);border-radius:12px;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;font:inherit;color:var(--brand)}.uf-drop:hover{background:var(--tint)}.uf-submit{display:flex;gap:8px;flex-wrap:wrap}.uf-submit .inp{flex:1 1 260px}.pagehead .btn{display:inline-grid;place-items:center;text-decoration:none}
