:root{--bg:#eef5f7;--card:#fff;--line:#d5e2e7;--ink:#082b3a;--muted:#67808b;--accent:#08758c;--accent2:#0b8fa4;--soft:#e5f5f7;--ok:#16835b;--danger:#b33d3d;--shadow:0 10px 28px rgba(42,74,87,.06)}*{box-sizing:border-box}html{min-height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column}.topbar{min-height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:5}.brand{display:flex;gap:10px;align-items:center}.brand img{width:36px;height:36px}.brand strong{display:block;font-size:16px}.brand span{display:block;color:var(--muted);font-size:11px;margin-top:1px}.api-state{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:var(--muted);padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#f8fbfc}.api-state.ready{color:var(--ok)}.api-state.missing{color:var(--danger)}.status-dot{width:8px;height:8px;border-radius:50%;background:currentColor}.top-link{color:var(--accent);text-decoration:none;font-weight:800;font-size:13px}.page{width:min(1180px,calc(100% - 28px));margin:24px auto 34px;flex:1}.compact-page{margin-top:20px}.screen-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px}.screen-title h1,.result-head h1{font-size:28px;margin:4px 0 0}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:900;color:var(--accent)}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.module{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:20px;min-height:400px}.module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.module h2{font-size:19px;margin:3px 0 0}.badge{display:inline-flex;align-items:center;white-space:nowrap;padding:6px 9px;border-radius:999px;background:#eef2f3;color:#58717b;font-size:9px;font-weight:900;letter-spacing:.06em}.badge.ok{background:#e5f5ee;color:var(--ok)}.field-label,.automation-form label>span{display:block;color:var(--muted);font-size:11px;font-weight:800;margin-bottom:6px}.manual-form,.automation-form{display:grid;gap:12px}.file-picker{height:40px;border:1px dashed #b8ced7;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--accent);font-weight:800;cursor:pointer;background:#fbfdfe;font-size:13px}.file-picker input{display:none}.toggle-line{display:flex!important;align-items:center;gap:8px!important;color:var(--ink)!important;font-weight:700!important;font-size:12px}.toggle-line input{width:17px;height:17px;accent-color:var(--accent)}.compact-toggle{min-height:30px}.automation-switch{padding:8px 10px;background:#f5f9fa;border:1px solid var(--line);border-radius:9px}.automation-form input[type=time],.automation-form input[type=text]{width:100%;height:38px;border:1px solid #cadbe1;border-radius:9px;padding:0 10px;font:inherit;color:var(--ink);background:#fff}.primary-wide,button,.button{border:0;border-radius:9px;background:var(--accent);color:#fff;padding:10px 14px;font-weight:800;font-size:12px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.primary-wide{width:100%;height:40px}button:hover,.button:hover,.primary-wide:hover{background:var(--accent2)}button:disabled,.primary-wide:disabled{background:#cdd9dd;cursor:not-allowed}.button.secondary,button.secondary{background:#fff;color:var(--accent);border:1px solid var(--line)}.small-note{font-size:11px;line-height:1.45;color:var(--muted);margin-top:2px}.module-progress{margin-top:18px;padding-top:16px;border-top:1px solid #e8eff1}.manual-progress.is-idle{opacity:.72}.progress-steps{display:flex;align-items:center;width:100%}.pstep{display:grid;justify-items:center;gap:4px;min-width:48px;color:#9aadb5}.pstep span{width:28px;height:28px;border-radius:50%;border:2px solid #d7e2e6;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:11px}.pstep small{font-size:9px;font-weight:800}.pstep.active,.pstep.done{color:var(--accent)}.pstep.active span{border-color:var(--accent);background:var(--soft)}.pstep.done span{border-color:var(--ok);background:#e5f5ee;color:var(--ok)}.pline{height:2px;background:#dfe8eb;flex:1;margin:0 4px 15px}.pline.done{background:#9ed6c0}.progress-message{font-size:12px;color:var(--muted);margin-top:10px;min-height:18px}.compact-button{margin-top:10px}.automation-progress{margin-top:18px}.automation-note{margin-top:8px}.automation-steps .pstep{min-width:54px}.result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:15px;border-top:1px solid #e8eff1}.alert{padding:11px 14px;border-radius:9px;margin-bottom:12px;font-weight:700;font-size:12px}.alert.error{background:#fff0f0;color:var(--danger);border:1px solid #f1caca}.alert.okbox{background:#e8f7ef;color:var(--ok);border:1px solid #c5e9d6}.result-layout{margin-top:28px}.result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.result-head p{color:var(--muted);font-size:12px;margin:6px 0 0}.actions{display:flex;gap:8px;flex-wrap:wrap}.table-card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);display:block;padding:0;overflow:auto}.table-card table{width:100%;border-collapse:collapse;min-width:700px}.table-card th{background:#f4f8f9;color:var(--accent);text-align:left;font-size:10px;letter-spacing:.07em;padding:12px 15px;border-bottom:1px solid var(--line)}.table-card td{padding:14px 15px;border-bottom:1px solid #e8eff1;line-height:1.4;font-size:13px}.table-card tr:last-child td{border-bottom:0}.raw{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 15px;color:var(--muted)}.raw summary{cursor:pointer;font-weight:800;color:var(--accent);font-size:12px}.raw pre{white-space:pre-wrap;word-break:break-word;color:var(--ink);font:12px/1.5 Consolas,monospace}footer{text-align:center;color:#78909a;font-size:11px;padding:15px 16px 22px}@media(max-width:850px){.dashboard-grid{grid-template-columns:1fr}.module{min-height:auto}.topbar{padding:0 12px}.api-state{font-size:10px}.page{width:min(100% - 18px,1180px);margin-top:15px}.screen-title h1,.result-head h1{font-size:24px}.result-head{display:block}.result-head .actions{margin-top:12px}}@media(max-width:480px){.brand span{display:none}.api-state{padding:6px 8px}.module{padding:16px}.pstep{min-width:40px}.pstep small{font-size:8px}}
