:root { --bg:#f6f3ec; --panel:#fff; --ink:#1d2733; --muted:#5b6673; --line:#e3ddd0; --navy:#1f3b57; --sea:#2f7d6d; --sea-soft:#e3f1ec; --sun:#8a6100; --sun-soft:#fff3cf; --rose:#9b2c2c; --rose-soft:#fbe9e7; --sky-soft:#e8f0f8; --radius:12px; --fs:18px; }
* { box-sizing:border-box; }
@media (prefers-reduced-motion: reduce) { * { animation:none!important; transition:none!important; } }
html, body { margin:0; height:100%; background:var(--bg); color:var(--ink); font: var(--fs)/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
body.size-l { --fs:20px; } body.size-xl { --fs:22px; }
button, input, select, textarea { font:inherit; color:inherit; }
a { color:var(--navy); }
.app { display:flex; height:100vh; }
.nav { width:230px; background:var(--navy); color:#fff; display:flex; flex-direction:column; padding:14px 10px; gap:4px; overflow:auto; flex-shrink:0; }
.nav .brand { font-weight:700; font-size:1.05em; padding:6px 10px 14px; line-height:1.25; }
.nav .brand small { display:block; font-weight:400; opacity:.75; font-size:.75em; }
.nav button { background:transparent; border:0; color:#fff; text-align:left; padding:10px 12px; border-radius:10px; cursor:pointer; font-size:1em; display:flex; gap:10px; align-items:center; min-height:46px; }
.nav button:hover { background:rgba(255,255,255,.08); } .nav button.on { background:rgba(255,255,255,.18); font-weight:600; }
.nav .spacer { flex:1; } .nav .who { font-size:.8em; opacity:.8; padding:8px 12px; }
.main { flex:1; overflow:auto; padding:22px 28px 60px; }
.main.phone { padding:12px 12px 90px; }
h1 { font-size:1.6em; margin:0 0 6px; font-weight:650; color:var(--navy); } h2 { font-size:1.25em; margin:18px 0 8px; color:var(--navy); } h3 { font-size:1.05em; margin:12px 0 6px; }
.sub { color:var(--muted); margin:0 0 16px; }
.row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; } .col { display:flex; flex-direction:column; gap:10px; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:16px; } .grid3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; }
.card.soft { background:var(--sea-soft); border-color:#cfe5dc; } .card.warn { background:var(--sun-soft); border-color:#f0dc9c; } .card.alert { background:var(--rose-soft); border-color:#f0c9c3; } .card.sky { background:var(--sky-soft); border-color:#cddcec; }
.btn { background:#fff; border:1px solid #c9c2b2; border-radius:10px; padding:9px 16px; cursor:pointer; min-height:44px; display:inline-flex; align-items:center; gap:8px; }
.btn:hover { border-color:var(--navy); } .btn:disabled { opacity:.45; cursor:not-allowed; }
.btn.primary { background:var(--navy); color:#fff; border-color:var(--navy); } .btn.sea { background:var(--sea); color:#fff; border-color:var(--sea); }
.btn.ghost { background:transparent; border-color:transparent; } .btn.small { min-height:34px; padding:4px 10px; font-size:.88em; } .btn.danger { color:var(--rose); border-color:#e2b7b1; }
.btn.big { font-size:1.1em; min-height:56px; padding:12px 22px; }
input[type=text], input[type=search], input[type=email], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=password], input[type=tel], select, textarea { border:1px solid #c9c2b2; border-radius:10px; padding:9px 12px; background:#fff; min-height:44px; width:100%; }
textarea { min-height:110px; resize:vertical; line-height:1.5; }
label.f { display:flex; flex-direction:column; gap:4px; font-size:.9em; color:var(--muted); } label.f > span { font-weight:600; color:var(--ink); }
.check { display:flex; gap:10px; align-items:flex-start; padding:8px 0; cursor:pointer; } .check input { width:24px; height:24px; margin-top:2px; flex-shrink:0; }
table.t { width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); }
.t th, .t td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; } .t th { background:#faf8f3; font-size:.85em; color:var(--muted); font-weight:600; }
.t tr.click:hover td { background:#f7fbfa; cursor:pointer; }
.tag { display:inline-block; padding:2px 10px; border-radius:999px; font-size:.8em; background:#eee8db; color:#4a4436; margin:2px 4px 2px 0; }
.tag.green { background:var(--sea-soft); color:#1e5b4e; } .tag.yellow { background:var(--sun-soft); color:var(--sun); } .tag.red { background:var(--rose-soft); color:var(--rose); } .tag.blue { background:var(--sky-soft); color:var(--navy); }
.big-num { font-size:2em; font-weight:700; color:var(--navy); line-height:1.1; }
.muted { color:var(--muted); } .small { font-size:.85em; } .right { margin-left:auto; } .mt { margin-top:14px; } .nowrap { white-space:nowrap; }
.tabs { display:flex; gap:4px; border-bottom:2px solid var(--line); margin:10px 0 16px; flex-wrap:wrap; }
.tabs button { background:none; border:0; padding:10px 16px; cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-2px; font-size:1em; color:var(--muted); min-height:44px; }
.tabs button.on { color:var(--navy); border-color:var(--navy); font-weight:600; }
.mode { display:flex; gap:8px; } .mode button { border-radius:999px; padding:8px 18px; border:2px solid transparent; cursor:pointer; min-height:46px; font-weight:600; }
.mode .g { background:#e3f1ec; color:#1e5b4e; } .mode .y { background:#fff3cf; color:#7a5600; } .mode .r { background:#fbe9e7; color:#8a2b2b; } .mode button.on { border-color:currentColor; }
.item { display:flex; gap:12px; align-items:center; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:8px; }
.item .dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; } .u0 { background:#c0504d; } .u1 { background:#d9a520; } .u2 { background:#7fa9c9; } .u3 { background:#b9b2a3; }
.slotrow { display:flex; gap:6px; } .slot { width:26px; height:26px; border-radius:7px; border:2px solid #c9c2b2; background:#fff; } .slot.filled { background:var(--sea); border-color:var(--sea); } .slot.held { background:#f2c94c; border-color:#d9a520; } .slot.pending { background:#9fc3e0; border-color:#6f9fc6; }
.board { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:10px; }
.board .cat { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 12px; cursor:pointer; } .board .cat:hover { border-color:var(--navy); }
.kanban { display:flex; gap:12px; overflow-x:auto; padding-bottom:12px; align-items:flex-start; } .kanban .colm { min-width:250px; max-width:270px; background:#efeadf; border-radius:12px; padding:10px; } .kanban .kc { background:#fff; border-radius:10px; padding:10px; margin-top:8px; border:1px solid var(--line); cursor:pointer; }
.modal-bg { position:fixed; inset:0; background:rgba(20,30,40,.35); display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; z-index:50; overflow:auto; }
.modal { background:#fff; border-radius:16px; padding:22px 24px; width:min(760px,100%); box-shadow:0 10px 40px rgba(0,0,0,.2); }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--navy); color:#fff; padding:12px 22px; border-radius:12px; z-index:99; max-width:90vw; } .toast.err { background:var(--rose); }
.helpbtn { position:fixed; right:18px; bottom:18px; width:56px; height:56px; border-radius:50%; background:var(--sea); color:#fff; border:0; font-size:1.5em; cursor:pointer; z-index:40; box-shadow:0 4px 14px rgba(0,0,0,.18); }
.helppanel { position:fixed; right:0; top:0; bottom:0; width:min(460px,100vw); background:#fff; border-left:1px solid var(--line); padding:22px; overflow:auto; z-index:45; box-shadow:-6px 0 24px rgba(0,0,0,.08); }
.flagged { background:#ffe2dc; border-radius:4px; padding:0 2px; }
.diff div { font-family:Consolas,monospace; font-size:.85em; white-space:pre-wrap; padding:0 6px; } .diff .a { background:#e6f4ea; } .diff .d { background:#fbe9e7; text-decoration:line-through; color:#8a2b2b; }
.prose { white-space:pre-wrap; line-height:1.6; }
.countdown { font-variant-numeric:tabular-nums; }
.kbd { display:inline-block; border:1px solid #c9c2b2; border-bottom-width:2px; border-radius:6px; padding:0 6px; font-size:.8em; background:#faf8f3; margin-right:6px; }
.obj { text-align:left; width:100%; justify-content:flex-start; }
.phone-tabs { position:fixed; bottom:0; left:0; right:0; background:var(--navy); display:flex; justify-content:space-around; padding:6px 0 calc(6px + env(safe-area-inset-bottom)); z-index:30; }
.phone-tabs button { background:none; border:0; color:#fff; font-size:.75em; display:flex; flex-direction:column; align-items:center; min-width:60px; padding:6px; opacity:.75; } .phone-tabs button.on { opacity:1; font-weight:700; }
.phone-tabs .ico { font-size:1.5em; }
.allclear { text-align:center; padding:40px 20px; } .allclear .big-num { font-size:2.4em; }
.dot { display:inline-block; width:14px; height:14px; border-radius:50%; flex-shrink:0; } .dot.ok { background:#4f8a5b; } .dot.bad { background:#d9a520; }
.main.phone ~ .helpbtn { bottom:92px; width:48px; height:48px; }
.main.phone ~ .toast { bottom:96px; }
