:root{--portal-bg: #0b1420;--portal-panel: #101d2c;--portal-border: #1c2f42;--portal-text: #e6ecf2;--portal-text-dim: #8ea0b3;--portal-accent: #FF9966;--portal-accent-deep: #FF7733;--portal-good: #4caf7d;--portal-warn: #e0a83c;--portal-bad: #d9584f}*{box-sizing:border-box}body{margin:0;background:var(--portal-bg);color:var(--portal-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}#app{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:20px}#app:has(.portal-dashboard){justify-content:flex-start}#app:not(:has(.portal-dashboard)){justify-content:center}.portal-shell-notice{max-width:420px;text-align:center;padding:32px;border:1px solid var(--portal-border);border-radius:12px;background:var(--portal-panel)}.portal-shell-notice h1{font-size:1.1rem;color:var(--portal-accent);margin:0 0 8px}.portal-shell-notice p{color:var(--portal-text-dim);font-size:.9rem;line-height:1.5}.portal-dashboard{width:100%;max-width:720px;margin:0 auto;padding:12px 0 40px}.portal-dash-header{text-align:center;margin-bottom:24px}.portal-dash-header h1{font-size:1.2rem;color:var(--portal-accent);margin:0 0 4px}.portal-vessel-list{display:flex;flex-direction:column;gap:14px}.portal-vessel-card{border:1px solid var(--portal-border);border-radius:12px;background:var(--portal-panel);overflow:hidden}.portal-vessel-header{padding:14px 18px;border-bottom:1px solid var(--portal-border)}.portal-vessel-name{font-size:1rem;font-weight:600;color:var(--portal-text)}.portal-vessel-meta{font-size:.78rem;color:var(--portal-text-dim);margin-top:2px}.portal-machine-list{padding:8px 12px}.portal-machine-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 8px;border-bottom:1px solid var(--portal-border);cursor:pointer;transition:background .12s}.portal-machine-row:hover{background:#ffffff08}.portal-machine-row:focus-visible{outline:1px solid var(--portal-accent);outline-offset:-1px}.portal-machine-chevron{color:var(--portal-text-dim);font-size:1rem;flex-shrink:0;width:12px;transition:transform .15s}.portal-machine-row-open .portal-machine-chevron{transform:rotate(90deg);color:var(--portal-accent)}.portal-survey-detail{display:none;padding:4px 8px 12px 34px;border-bottom:1px solid var(--portal-border)}.portal-survey-detail-open{display:block}.portal-survey-loading,.portal-survey-empty{font-size:.8rem;color:var(--portal-text-dim);padding:8px 0}.portal-survey-error{font-size:.8rem;color:var(--portal-bad);padding:8px 0}.portal-survey-list{display:flex;flex-direction:column;gap:10px}.portal-survey-entry{border:1px solid var(--portal-border);border-radius:8px;background:#ffffff05;overflow:hidden}.portal-survey-entry-header{display:flex;align-items:baseline;gap:8px;padding:10px 12px;flex-wrap:wrap;cursor:pointer}.portal-survey-entry-header:hover{background:#ffffff08}.portal-survey-chevron{color:var(--portal-text-dim);font-size:.85rem;flex-shrink:0;transition:transform .15s}.portal-survey-entry-open .portal-survey-chevron{transform:rotate(90deg);color:var(--portal-accent)}.portal-survey-code{font-weight:700;font-size:.78rem;color:var(--portal-accent);flex-shrink:0}.portal-survey-title{font-size:.78rem;color:var(--portal-text);flex:1;min-width:0}.portal-survey-date{font-size:.72rem;color:var(--portal-text-dim);flex-shrink:0}.portal-survey-body{display:none;padding:0 12px 10px}.portal-survey-entry-open .portal-survey-body{display:block}.portal-survey-section{margin-bottom:12px}.portal-survey-section:last-child{margin-bottom:0}.portal-survey-section-title{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--portal-accent);margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid var(--portal-border)}.portal-survey-answers{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px}@media (max-width: 560px){.portal-survey-answers{grid-template-columns:1fr}}.portal-survey-qa{font-size:.78rem;line-height:1.4}.portal-survey-q{color:var(--portal-text-dim)}.portal-survey-a{color:var(--portal-text);margin-top:1px}.portal-survey-no-answers{font-size:.76rem;color:var(--portal-text-dim);font-style:italic}.portal-survey-detail:last-child{border-bottom:none}.portal-machine-row.portal-machine-retired{opacity:.5}.portal-machine-plate{font-weight:700;font-size:.9rem;color:var(--portal-accent);min-width:88px;flex-shrink:0}.portal-machine-model{flex:1;font-size:.85rem;color:var(--portal-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-machine-date{font-size:.75rem;color:var(--portal-text-dim);flex-shrink:0;white-space:nowrap}.portal-machine-badge{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:2px 8px;border-radius:10px;background:#8ea0b326;color:var(--portal-text-dim);flex-shrink:0}.portal-status-badge{font-size:.7rem;font-weight:600;padding:2px 9px;border-radius:10px;flex-shrink:0;white-space:nowrap}.portal-status-good{background:#4caf7d26;color:var(--portal-good)}.portal-status-bad{background:#d9584f26;color:var(--portal-bad)}.portal-status-warn{background:#e0a83c26;color:var(--portal-warn)}.portal-status-progress{background:#ff996626;color:var(--portal-accent)}.portal-status-neutral,.portal-status-unknown{background:#8ea0b326;color:var(--portal-text-dim)}.portal-machine-empty{padding:14px 8px;font-size:.82rem;color:var(--portal-text-dim);text-align:center}.portal-login-box{max-width:380px;width:100%;text-align:left;padding:32px;border:1px solid var(--portal-border);border-radius:12px;background:var(--portal-panel)}.portal-login-box h1{font-size:1.15rem;color:var(--portal-accent);margin:0 0 6px;text-align:center}.portal-sub{color:var(--portal-text-dim);font-size:.85rem;line-height:1.5;text-align:center;margin:0 0 20px}#portal-login-form{display:flex;flex-direction:column;gap:6px}#portal-login-form label{font-size:.75rem;color:var(--portal-text-dim);text-transform:uppercase;letter-spacing:.04em}#portal-login-form input[type=email]{width:100%;padding:10px 12px;background:var(--portal-bg);border:1px solid var(--portal-border);border-radius:8px;color:var(--portal-text);font-size:.9rem;margin-bottom:4px}#portal-login-form input[type=email]:focus{outline:none;border-color:var(--portal-accent)}#portal-login-form input[type=email]::placeholder{color:var(--portal-text-dim);opacity:.6}#portal-login-submit{margin-top:8px;padding:11px;background:var(--portal-accent);color:#001929;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s}#portal-login-submit:hover:not(:disabled){background:var(--portal-accent-deep)}#portal-login-submit:disabled{opacity:.6;cursor:default}.portal-message{margin-top:14px;padding:10px 12px;border-radius:8px;font-size:.82rem;line-height:1.5}.portal-message-ok{background:#4caf7d1f;border:1px solid rgba(76,175,125,.35);color:var(--portal-good)}.portal-message-error{background:#d9584f1f;border:1px solid rgba(217,88,79,.35);color:var(--portal-bad)}.portal-alert{margin-bottom:16px;padding:10px 12px;border-radius:8px;font-size:.82rem;line-height:1.5}.portal-alert-warn{background:#e0a83c1f;border:1px solid rgba(224,168,60,.35);color:var(--portal-warn)}.hidden{display:none}
