:root{--bg: #0b1220;--surface: #111a2e;--surface-2: #17223a;--border: #24314d;--text: #e6ebf5;--muted: #8c99b3;--primary: #3b82f6;--primary-2: #2563eb;--good: #22c55e;--warn: #f59e0b;--bad: #ef4444;--radius: 12px;--nav-h: 64px;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,Arial,sans-serif;font-size:15px;line-height:1.5}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body.no-scroll{overflow:hidden}a{color:#7fb0ff;text-decoration:none}a:hover{text-decoration:underline}h1{font-size:1.5rem;margin:0}h2{font-size:1.15rem;margin:0}h3{font-size:1rem;margin:0 0 .6rem;display:flex;gap:.5rem;align-items:baseline;justify-content:space-between}p{margin:.35rem 0}.muted{color:var(--muted)}.small{font-size:.85rem;font-weight:400}.prewrap{white-space:pre-wrap}.clamp{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}input,textarea,select{width:100%;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.6rem .7rem;font-size:16px}input:focus,textarea:focus,select:focus{outline:2px solid var(--primary);outline-offset:-1px}textarea{resize:vertical}input[type=checkbox]{width:auto}input[type=file]{padding:.45rem}.btn{font:inherit;border:1px solid var(--border);background:var(--surface-2);color:var(--text);padding:.55rem 1rem;border-radius:8px;cursor:pointer;white-space:nowrap}.btn:hover{border-color:#3a4a6e}.btn:disabled{opacity:.6;cursor:default}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.btn.primary:hover{background:var(--primary-2)}.btn.ghost{background:transparent}.btn.danger{color:#ff8a8a}.btn.block{width:100%}.icon-btn{background:none;border:0;color:var(--muted);font-size:1.1rem;cursor:pointer;padding:.3rem .5rem}.shell{min-height:100vh}.sidebar{display:none}.content{padding:1rem 1rem calc(var(--nav-h) + 1.5rem + env(safe-area-inset-bottom));max-width:1100px;margin:0 auto}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:#111a2ef7;border-top:1px solid var(--border);z-index:20}.bottom-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:.72rem}.bottom-link:hover{text-decoration:none}.bottom-link.active{color:var(--text)}.bottom-link.active .nav-icon{color:var(--primary)}.nav-icon{font-size:1.25rem;line-height:1;width:1.4rem;text-align:center}@media (min-width: 900px){.shell{display:grid;grid-template-columns:230px 1fr}.bottom-nav{display:none}.sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;background:var(--surface);border-right:1px solid var(--border);padding:1.2rem .8rem}.brand{display:flex;align-items:center;gap:.6rem;font-weight:700;font-size:1.1rem;padding:0 .5rem 1.2rem}.brand img{width:32px;height:32px;border-radius:8px}.sidebar nav{display:flex;flex-direction:column;gap:.2rem}.side-link{display:flex;gap:.7rem;align-items:center;padding:.6rem .7rem;border-radius:8px;color:var(--muted)}.side-link:hover{background:var(--surface-2);text-decoration:none;color:var(--text)}.side-link.active{background:var(--surface-2);color:var(--text)}.side-link.active .nav-icon{color:var(--primary)}.side-user{margin-top:auto;color:var(--muted);padding:.5rem;font-size:.9rem}.content{padding:1.8rem 2rem 2rem;width:100%}}.page-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.page-actions{display:flex;gap:.5rem}.toolbar{display:flex;gap:.6rem;align-items:center;margin-bottom:1rem;flex-wrap:wrap}.toolbar .search{flex:1 1 200px;width:auto}.toolbar select{width:auto}.tabs{display:flex;gap:.3rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.25rem;margin-bottom:1rem;width:fit-content}.tabs button{font:inherit;border:0;background:transparent;color:var(--muted);padding:.45rem 1rem;border-radius:7px;cursor:pointer}.tabs button.on{background:var(--surface-2);color:var(--text);font-weight:600}.row{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center;margin:.4rem 0}.check{display:inline-flex;gap:.4rem;align-items:center;color:var(--muted);cursor:pointer;white-space:nowrap}.list{display:grid;gap:.8rem}@media (min-width: 1200px){.list{grid-template-columns:1fr 1fr}}.card,.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1rem}.panel{margin-bottom:1rem}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.6rem;margin-bottom:.4rem}.card-actions{display:flex;gap:.3rem;align-items:center;justify-content:flex-end;margin-top:.6rem;flex-wrap:wrap}.card-actions .muted{margin-right:auto}.card-actions .btn{padding:.35rem .7rem}.links{display:flex;gap:.5rem;flex-wrap:wrap;font-size:.9rem}.chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.3rem 0}.chip{font:inherit;font-size:.82rem;border:1px solid var(--border);background:var(--surface-2);color:var(--muted);padding:.2rem .6rem;border-radius:999px;cursor:default}button.chip{cursor:pointer}.chip.on{color:var(--text);border-color:#3a4a6e}.chip.on.good{background:#22c55e26;border-color:#22c55e80;color:#86efac}.chip.on.bad{background:#ef444426;border-color:#ef444480;color:#fca5a5}.chip.on.neutral{background:#3b82f62e;border-color:#3b82f680}.tag-add{display:flex;gap:.4rem;margin-top:.4rem}.status{font-size:.78rem;padding:.15rem .55rem;border-radius:999px;background:var(--surface-2);white-space:nowrap}.s-observing{color:#93c5fd}.s-confirming{color:#fcd34d}.s-managing{color:#86efac}.s-closed{color:var(--muted)}.score{display:inline-block;min-width:2.4rem;text-align:center;font-weight:700;padding:.1rem .5rem;border-radius:8px;background:var(--surface-2)}.score.good{color:var(--good)}.score.warn{color:var(--warn)}.score.bad{color:var(--bad)}.segmented{display:flex;flex-wrap:wrap;gap:.3rem}.segmented button{font:inherit;flex:1 1 auto;border:1px solid var(--border);background:var(--bg);color:var(--muted);padding:.45rem .7rem;border-radius:8px;cursor:pointer}.segmented button.on{background:#3b82f62e;border-color:var(--primary);color:var(--text)}.segmented small{opacity:.7}.field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.85rem}.field-label{font-size:.85rem;color:var(--muted);font-weight:600}.field-hint{font-size:.78rem;color:var(--muted)}.grid-2{display:grid;gap:0 .8rem;grid-template-columns:1fr 1fr}@media (max-width: 520px){.grid-2{grid-template-columns:1fr}}.state{padding:2.5rem 1rem;text-align:center;color:var(--muted)}.error-box{display:flex;gap:.8rem;align-items:center;justify-content:space-between;background:#ef44441a;border:1px solid rgba(239,68,68,.4);color:#fecaca;padding:.6rem .8rem;border-radius:8px;margin:.6rem 0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:flex-end;justify-content:center;z-index:50}.modal{background:var(--surface);width:100%;max-height:94vh;border-radius:16px 16px 0 0;display:flex;flex-direction:column;border:1px solid var(--border)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:.9rem 1rem;border-bottom:1px solid var(--border)}.modal-body{padding:1rem;overflow-y:auto}.modal-foot{display:flex;justify-content:flex-end;gap:.5rem;padding:.8rem 1rem calc(.8rem + env(safe-area-inset-bottom));border-top:1px solid var(--border)}@media (min-width: 700px){.modal-backdrop{align-items:center;padding:2rem}.modal{max-width:720px;border-radius:16px;max-height:90vh}}.thumbs{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.4rem}.thumb,.img-placeholder{width:120px;height:84px;object-fit:cover;border-radius:8px;border:1px solid var(--border);background:var(--bg);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.75rem}.thumb.add{font-size:1.8rem;cursor:pointer}.thumb-wrap{position:relative}.thumb-del{position:absolute;top:4px;right:4px;background:#000000b3;color:#fff;border:0;border-radius:50%;width:24px;height:24px;cursor:pointer}.home-grid{display:grid;gap:1rem}.home-grid .panel{margin:0}@media (min-width: 900px){.home-grid{grid-template-columns:1fr 1fr}}.stats{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.stat{display:flex;flex-direction:column;gap:.2rem;align-items:flex-start}.stat .muted{font-size:.82rem}ul.plain{list-style:none;padding:0;margin:0;display:grid;gap:.45rem}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem}.login-card{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:2rem 1.5rem;text-align:center}.login-card .field{text-align:left}.login-card h1{margin-top:.5rem}.login-card>.muted{margin-bottom:1.5rem}.login-logo{width:64px;height:64px;border-radius:14px}
