:root{color-scheme:light;--bg: #e7eef5;--surface: #ffffff;--ink: #1c2b39;--muted: #5c6d7c;--line: #d5e0ea;--blue: #1f4b99;--blue-dark: #173a78;--green: #1d7a4d;--green-bg: #e7f6ee;--amber: #8a5a00;--amber-bg: #fff6df;--red: #8d2b2b;--red-bg: #fdecec;--shadow: 0 1px 2px rgba(23, 42, 68, .06);font-family:Segoe UI,system-ui,sans-serif;font-size:16px;line-height:1.45;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--blue)}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar,.subbar{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--line)}.topbar{justify-content:space-between;position:sticky;top:0;z-index:5}.brand{display:flex;flex-direction:column;min-width:0}.brand strong{font-size:1.05rem}.brand span,.muted{color:var(--muted)}.top-actions,.row-actions,.form-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.desktop-nav{display:none;gap:8px;padding:0 16px 12px;background:var(--surface);border-bottom:1px solid var(--line)}.main{width:min(960px,100%);margin:0 auto;padding:16px 16px 96px;flex:1}.mobile-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:1fr 1fr;background:var(--surface);border-top:1px solid var(--line);z-index:5}.mobile-nav a,.desktop-nav a,.text-button,.primary,.secondary,.danger{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:10px;text-decoration:none;border:1px solid transparent}.mobile-nav a{border-radius:0;color:var(--muted);font-weight:600}.mobile-nav a[aria-current=page],.desktop-nav a[aria-current=page]{color:var(--blue);background:#e8f0fb}.primary{background:var(--blue);color:#fff;border-color:var(--blue);font-weight:650;cursor:pointer}.primary:hover{background:var(--blue-dark)}.secondary,.text-button,.desktop-nav a{background:var(--surface);color:var(--ink);border-color:var(--line);cursor:pointer}.danger{background:var(--red-bg);color:var(--red);border-color:#f3c7c7;cursor:pointer}.card,.auth-card,.record{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.card,.auth-card{padding:16px}.stack{display:flex;flex-direction:column;gap:12px}.page-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.page-head h1,.auth-card h1{margin:0 0 4px;font-size:1.4rem}.record-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.record{display:block;padding:14px 16px;color:inherit;text-decoration:none}.record strong{display:block}.record small{color:var(--muted)}.pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.pill{display:inline-flex;align-items:center;min-height:26px;padding:0 8px;border-radius:999px;background:#eef3f8;color:#314556;font-size:.82rem;font-weight:600}.pill.advanced{background:#e7eefe;color:#1f4b99}.pill.basic{background:#eef3f8}.pill.level{background:#f4efe4;color:#6d5314}.status-pill{border-radius:999px;padding:6px 10px;font-size:.85rem;font-weight:650;border:1px solid var(--line);background:var(--surface);white-space:nowrap}.status-pill.online{color:var(--green);background:var(--green-bg);border-color:#b7e4c9}.status-pill.offline{color:var(--amber);background:var(--amber-bg);border-color:#f0ddaa}.status-pill.error{color:var(--red);background:var(--red-bg);border-color:#f3c7c7}label{display:flex;flex-direction:column;gap:6px;font-weight:650}label span,.hint{font-weight:400;color:var(--muted)}input,select,textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #c5d2de;border-radius:10px;background:#fff}textarea{min-height:96px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #b9cff3;outline-offset:1px}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px 16px}.auth-card{width:min(440px,100%)}.banner{padding:12px 14px;border-radius:12px;background:var(--amber-bg);color:#5c4308;border:1px solid #f0ddaa}.banner.error{background:var(--red-bg);color:var(--red);border-color:#f3c7c7}.footer{padding:8px 16px 16px;color:var(--muted);font-size:.85rem}.photo-list{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:10px}.photo-list li{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center}.photo-list img,.photo-fallback{width:72px;height:72px;object-fit:cover;border-radius:10px;background:#eef3f8;border:1px solid var(--line)}.photo-fallback{display:grid;place-items:center;color:var(--muted);font-size:.75rem}.check-row{flex-direction:row;align-items:center;font-weight:600;gap:8px}.check-row input{width:auto;min-height:0}@media(min-width:800px){.desktop-nav{display:flex}.mobile-nav{display:none}.main{padding-bottom:32px}.footer{padding-bottom:24px}}
