:root{--ink: #1c2b30;--ink-2: #34474d;--muted: #5b6b70;--ground: #f4f7f8;--surface: #fff;--line: #e3eaec;--line-2: #d5dfe2;--soft: #f8fafb;--brand: #46909e;--brand-ink: #2b6470;--brand-deep: #1d4a54;--brand-tint: #e6f1f3;--ok-bg: #e3f3e8;--ok: #14602b;--wait-bg: #fdf0dc;--wait: #8a4307;--bad-bg: #fce8e6;--bad: #a8261c;--way-bg: #efe7fb;--way: #5b21a8;--c-test: #2b6470;--c-cat: #7fb6c1;--c-mech: #d08a2e}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Rubik,system-ui,sans-serif;font-size:14px;line-height:1.45;color:var(--ink);background:var(--ground)}a{color:var(--brand-ink)}a:hover{color:var(--brand-deep)}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--brand-ink);outline-offset:2px;border-radius:6px}h1,h2,p{margin:0}.h1{font-size:26px;font-weight:700;letter-spacing:-.01em}.h2{font-size:16px;font-weight:600}.muted{color:var(--muted)}.num{font-variant-numeric:tabular-nums}.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}.shell{display:grid;grid-template-columns:256px 1fr;min-height:100%}.side{background:var(--surface);border-inline-end:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;padding:4px 10px 6px}.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700;font-size:18px;display:grid;place-items:center}.grp{font-size:12px;font-weight:600;color:var(--muted);padding:0 10px;margin-bottom:4px}.nav{display:flex;flex-direction:column;gap:2px}.nav a{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:10px;color:var(--ink-2);text-decoration:none;font-weight:500}.nav a:hover{background:var(--soft)}.nav a.active{background:var(--brand-tint);color:var(--brand-deep);font-weight:600}.nav svg{width:18px;height:18px;flex:none}.badge{margin-inline-start:auto;background:#c2410c;color:#fff;font-size:12px;font-weight:600;border-radius:999px;padding:1px 8px}.top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 28px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.top-end{margin-inline-start:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.main{padding:26px 28px 48px;display:flex;flex-direction:column;gap:22px;max-width:1600px}.btn.menu-btn{display:none}.search{flex:1;min-width:200px;max-width:520px;display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border:1px solid var(--line-2);border-radius:12px;background:var(--soft);color:var(--muted)}.search input{border:0;background:transparent;flex:1;min-width:0;color:var(--ink);outline:0}.search:focus-within{border-color:var(--brand-ink);background:#fff}.btn{min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--line-2);background:#fff;font-weight:600;display:inline-flex;align-items:center;gap:8px;cursor:pointer;text-decoration:none;color:var(--ink)}.btn:hover{background:var(--soft);color:var(--ink)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}.btn.primary:hover{background:var(--brand-deep)}.btn.on{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}.btn.sm{min-height:40px}.btn svg{width:16px;height:16px}.field{display:flex;flex-direction:column;gap:6px;font-weight:500}.input,.select{height:44px;padding:0 12px;border:1px solid var(--line-2);border-radius:12px;background:#fff}.input:focus,.select:focus{border-color:var(--brand-ink);outline:0;box-shadow:0 0 0 3px var(--brand-tint)}.avatar{width:26px;height:26px;border-radius:50%;background:var(--brand-tint);color:var(--brand-deep);display:inline-grid;place-items:center;font-size:13px;font-weight:600}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px}.card.flush{padding:8px 8px 4px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.end{margin-inline-start:auto}.grid-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px}.stat-label{color:var(--muted);font-size:13px;font-weight:500}.stat-value{font-size:30px;font-weight:700;margin-top:6px;letter-spacing:-.02em}.chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:600;white-space:nowrap}.chip.ok{background:var(--ok-bg);color:var(--ok)}.chip.wait{background:var(--wait-bg);color:var(--wait)}.chip.info{background:var(--brand-tint);color:var(--brand-deep)}.chip.bad{background:var(--bad-bg);color:var(--bad)}.chip.way{background:var(--way-bg);color:var(--way)}.chip.plain{background:#eef2f3;color:var(--ink-2)}.pipeline{display:flex;gap:10px;flex-wrap:wrap}.stage{flex:1;min-width:130px}.stage-bar{height:8px;border-radius:999px}.stage-row{display:flex;justify-content:space-between;margin-top:8px;font-weight:500}.attn{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;padding:12px;border-radius:12px;background:var(--soft)}.attn:hover{background:var(--brand-tint);color:inherit}.legend{display:flex;gap:14px;font-size:13px;color:var(--muted);flex-wrap:wrap}.dot{width:10px;height:10px;border-radius:3px;display:inline-block;margin-inline-end:6px}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:start;font-size:12.5px;font-weight:600;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:13px 12px;border-bottom:1px solid #eef2f3;white-space:nowrap}tbody tr:hover{background:var(--soft)}.t-end{text-align:end}.empty{padding:48px 16px;text-align:center;color:var(--muted)}.skeleton{height:14px;border-radius:6px;background:linear-gradient(90deg,#eef2f3,#f8fafb,#eef2f3);background-size:200% 100%;animation:sk 1.2s linear infinite}@keyframes sk{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}.login{min-height:100%;display:grid;place-items:center;padding:24px}.login-card{width:100%;max-width:420px;display:flex;flex-direction:column;gap:18px;padding:32px}.alert{padding:12px 14px;border-radius:12px;background:var(--bad-bg);color:var(--bad);font-weight:500}.alert.info{background:var(--brand-tint);color:var(--brand-deep)}@media(max-width:900px){.shell{grid-template-columns:1fr}.side{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;height:auto}.side.open{display:flex}.btn.menu-btn{display:inline-flex}.top{padding:12px 14px}.main{padding:18px 14px 40px}}.detail{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:16px;align-items:start}.stack{display:flex;flex-direction:column;gap:16px}.kv{display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;margin:0}.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:500;overflow-wrap:anywhere}.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.timeline li{display:grid;grid-template-columns:16px 1fr;gap:12px;padding-bottom:16px;position:relative}.timeline li:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--brand);margin-top:5px;margin-inline-start:3px}.timeline li:not(:last-child):after{content:"";position:absolute;inset-inline-start:7px;top:18px;bottom:0;width:2px;background:var(--line)}.back{display:inline-flex;align-items:center;gap:6px;font-weight:600;text-decoration:none}@media(max-width:900px){.detail{grid-template-columns:1fr}}.dialog{border:0;border-radius:20px;padding:24px;width:min(440px,calc(100vw - 32px));box-shadow:0 24px 60px #1c2b3040;color:var(--ink)}.dialog::backdrop{background:#1c2b3073}.day{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:start;padding:12px;border-bottom:1px solid #eef2f3}.day:last-child{border-bottom:0}.day-btn{text-align:start;background:none;border:0;padding:6px 8px;border-radius:10px;cursor:pointer;font-weight:600;min-height:44px}.day-btn:hover{background:var(--soft)}.day.is-today .day-btn{color:var(--brand-deep);background:var(--brand-tint)}.slots{display:flex;flex-wrap:wrap;gap:8px}.slot{min-width:92px;min-height:44px;padding:4px 10px;border-radius:10px;border:1px solid var(--line-2);background:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;line-height:1.25}.slot small{font-size:12px;color:var(--muted)}.slot.booked{background:var(--brand-tint);border-color:#b9d6dc}.slot.full{background:var(--wait-bg);border-color:#efd3a3}.slot.blocked{background:#eef2f3;color:var(--muted);text-decoration:line-through}.slot[aria-pressed=true]{outline:3px solid var(--brand-ink);outline-offset:1px}.bar{position:sticky;bottom:16px;z-index:4;box-shadow:0 10px 30px #1c2b3026}.toast{padding:12px 14px;border-radius:12px;background:var(--ok-bg);color:var(--ok);font-weight:500}.toast.bad{background:var(--bad-bg);color:var(--bad)}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;align-items:end}@media(max-width:700px){.day{grid-template-columns:1fr}}.setting{padding:14px 0;border-bottom:1px solid #eef2f3}.setting:last-child{border-bottom:0;padding-bottom:0}.chat{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:16px;align-items:start}.chat-list{max-height:calc(100vh - 190px);overflow-y:auto}.chat-item{display:block;padding:12px 14px;border-radius:12px;color:inherit;text-decoration:none}.chat-item:hover{background:#f4f7f8}.chat-item.on{background:var(--brand-tint)}.chat-item .last{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-log{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 400px);min-height:240px;overflow-y:auto;padding:4px}.bubble{max-width:min(560px,80%);padding:10px 14px;border-radius:16px;background:#eef2f3;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.us{background:var(--brand-ink);color:#fff;align-self:flex-end}.bubble.auto{background:#fff;border:1px dashed var(--line-2);color:var(--muted);align-self:flex-end}.bubble .meta{display:block;margin-top:4px;font-size:12px;opacity:.75}.chat-reply textarea{width:100%;min-height:84px;padding:12px;border:1px solid var(--line-2);border-radius:12px;resize:vertical;font:inherit}.chat-reply textarea:focus{border-color:var(--brand-ink);outline:0;box-shadow:0 0 0 3px var(--brand-tint)}@media(max-width:900px){.chat{grid-template-columns:1fr}.chat.open .chat-side{display:none}}[dir=rtl] .flip{transform:scaleX(-1)}.nav-badge{margin-inline-start:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--bad);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.live-dot{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}.live-dot>span{width:8px;height:8px;border-radius:50%;background:#c3ced1}.live-dot.on{color:var(--ok)}.live-dot.on>span{background:var(--ok);box-shadow:0 0 0 4px var(--ok-bg)}.notice-stack{position:fixed;inset-block-end:20px;inset-inline-end:20px;z-index:20;display:flex;flex-direction:column;gap:8px;width:min(360px,calc(100vw - 40px))}.notice{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:14px;background:var(--brand-deep);color:#fff;box-shadow:0 12px 30px #1d4a5447}.notice a{color:#fff;font-weight:600;flex:1}.notice-x{background:none;border:0;color:#fff;opacity:.8;cursor:pointer;padding:4px;border-radius:8px;display:inline-flex}.notice-x:hover,.notice-x:focus-visible{opacity:1;background:#ffffff26}@media(prefers-reduced-motion:no-preference){.notice{animation:notice-in .25s ease-out}}@keyframes notice-in{0%{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
