/* Full-screen shipyard login; one bounded arrival and task-focused feedback. */
/* Noto Sans SC, SIL OFL 1.1; see /assets/OFL-NotoSansSC.txt.
   This small local subset covers the fixed hero copy only. */
@font-face{font-family:"Shipsteel Industrial";src:url("/assets/shipsteel-industrial-black-v1.ttf") format("truetype");font-style:normal;font-weight:900;font-display:swap}
@font-face{font-family:"Shipsteel Industrial";src:url("/assets/shipsteel-industrial-medium-v1.ttf") format("truetype");font-style:normal;font-weight:500;font-display:swap}
.login-page{position:relative;margin:0;min-height:100dvh;background:#091f2f;color:#173243;font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
.login-page *{box-sizing:border-box}
.login-page ::selection{background:#b7e5dc;color:#102f3f}
.login-layout{position:relative;display:grid;grid-template-columns:minmax(0,1.28fr) minmax(440px,1fr);width:100%;min-height:100dvh}
.login-visual{position:fixed;inset:0;z-index:0;min-height:100lvh;overflow:hidden;background:#091f2f;color:#fff}
.login-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;animation:shipyard-settle 900ms ease-out both}
.login-visual-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,21,34,.78) 0%,rgba(5,21,34,.72) 32%,rgba(5,21,34,.44) 60%)}
.login-brand{position:absolute;top:42px;left:5vw;display:flex;gap:12px;align-items:center}
.login-brand-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:10px;background:#087f73}
.login-brand-icon svg{width:29px;height:29px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.login-brand strong{display:block;font-size:21px;font-weight:650;line-height:1.3}
.login-brand span:not(.login-brand-icon){display:block;font-size:12px;line-height:1.9;color:#e2edf0}
/* Industrial steel lettering: solid block faces, machined highlights and stepped sides.
   Solid silver above is the fallback; the form keeps its ordinary text rendering. */

.login-workspace{position:relative;z-index:1;grid-column:2;display:flex;align-items:center;justify-content:center;min-width:0;min-height:100dvh;padding:112px 48px 90px}
.login-card{width:100%;max-width:420px;padding:40px;background:rgba(249,251,250,.80);border-radius:16px;box-shadow:0 24px 72px #020f1d4d;animation:workspace-arrive 480ms ease-out both}
.login-card h1{margin:0 0 12px;font-size:28px;font-weight:650;line-height:1.45;text-wrap:balance}
.login-intro{margin:0;font-size:14px;line-height:1.8;color:#3e5666;text-wrap:pretty}
.login-card form{margin-top:30px}
.login-card label{display:block;margin:21px 0 10px;font-size:13px;font-weight:600;color:#244253}
.login-input-wrap{display:flex;align-items:center;gap:12px;padding:0 15px;min-height:52px;background:#fff;border:1px solid #d7e1e7;border-radius:8px;transition:border-color 150ms ease-out}
.login-input-wrap>svg{width:18px;height:18px;flex:none;stroke:#718592;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke 150ms ease-out,transform 150ms ease-out}
.login-card input{display:block;min-width:0;width:100%;height:50px;padding:0;border:0;background:transparent;color:#183647;caret-color:#087f73;font:inherit;font-size:14px;outline:none}
.login-card input::placeholder{color:#647784}
.login-input-wrap:focus-within{border-color:#087f73;outline:2px solid #087f7333;outline-offset:1px}
.login-input-wrap:focus-within>svg{stroke:#087f73;transform:translateY(-1px)}
.login-input-wrap:has(input[aria-invalid=true]){border-color:#b34f43}
.login-input-wrap:has(input[aria-invalid=true]):focus-within{outline-color:#b34f4333}
#login-error{min-height:20px;margin:12px 0 8px;font-size:12px;line-height:1.6;color:#af3e32;overflow-wrap:anywhere}
.login-card button{position:relative;display:flex;align-items:center;justify-content:center;gap:15px;width:100%;min-height:52px;padding:14px 18px;border:0;border-radius:8px;background:#087f73;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:transform 150ms ease-out,background-color 150ms ease-out,box-shadow 150ms ease-out}
.login-card button:hover:not(:disabled){background:#066c62;transform:translateY(-2px);box-shadow:0 6px 16px #06162130}
.login-card button:active:not(:disabled){transform:translateY(0)}
.login-card button:focus-visible{outline:3px solid #087f7377;outline-offset:3px}
.login-card button:disabled{cursor:wait}
.login-card button>svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform 150ms ease-out,opacity 150ms ease-out}
.login-card button:hover:not(:disabled)>svg{transform:translateX(4px)}
.login-card button::after{content:"";display:none;position:absolute;right:20px;width:16px;height:16px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%}
#cloud-login[aria-busy=true] button::after{display:block;animation:login-pending 720ms linear infinite}
#cloud-login[aria-busy=true] [data-login-icon]{opacity:0}
#cloud-login[data-login-state=success] [data-login-icon]{transform:translateX(7px)}
.login-filing{position:absolute;inset-inline:20px;bottom:max(16px,env(safe-area-inset-bottom));z-index:1;text-align:center;font-size:13px;line-height:1.6;color:#e2edf0}
.login-filing a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.login-filing a:focus-visible{outline:2px solid currentColor;outline-offset:5px;border-radius:2px}
.login-page[data-motion-paused] *,.login-page[data-motion-paused] *::after{animation-play-state:paused!important}
@keyframes shipyard-settle{from{transform:scale(1.02)}to{transform:scale(1)}}
@keyframes workspace-arrive{from{opacity:.8;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@keyframes login-pending{to{transform:rotate(360deg)}}
@media(min-width:1600px){.login-workspace{padding-left:64px;padding-right:64px}}


@media(max-width:1100px){.login-layout{display:block}.login-workspace{min-height:100svh;padding:120px 24px 88px}.login-card{max-width:420px}.login-brand{top:32px;left:32px}.login-hero-image{object-position:62% center}}
@media(max-width:600px){.login-workspace{padding:112px 20px 76px}.login-card{padding:32px 26px}.login-card h1{font-size:26px}.login-brand{top:27px;left:26px}.login-brand-icon{width:38px;height:38px;border-radius:8px}.login-brand-icon svg{width:26px;height:26px}.login-brand strong{font-size:18px}.login-brand span:not(.login-brand-icon){font-size:12px}.login-card form{margin-top:26px}.login-intro{font-size:13px}.login-foot{font-size:12px}.login-visual-shade{background:rgba(5,21,34,.5)}}
@media(prefers-reduced-motion:reduce){.login-page *,.login-page *::after{animation:none!important;transition:none!important}.login-card button:hover:not(:disabled),.login-card button>svg,.login-input-wrap:focus-within>svg{transform:none!important}}
@media(forced-colors:active){.login-visual-shade{background:Canvas}}
.cloud-account{margin:16px;padding:12px;border:1px solid #ffffff26;border-radius:9px;color:#d2e4ed;font-size:13px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cloud-account strong{width:100%;color:#fff;overflow-wrap:anywhere}.cloud-account button{border:0;border-radius:4px;padding:5px 8px;cursor:pointer;background:#204b60;color:#e4f1f5}.cloud-readonly .nav[data-page="imports"],.cloud-readonly .nav[data-page="matches"],.cloud-readonly .nav[data-page="syncs"],.cloud-readonly .contract-actions,.cloud-readonly .candidate-actions{display:none!important}.cloud-jobs{margin-top:18px}.cloud-jobs .job-state{white-space:nowrap;color:#167f70}.cloud-jobs .job-error{color:#a44736;font-size:12px;max-width:420px;white-space:normal}.cloud-accounts{max-width:620px;width:calc(100vw - 80px);border:1px solid #dde7ee;border-radius:12px;padding:24px}.cloud-accounts form{display:grid;gap:12px}.cloud-accounts label{display:grid;gap:6px}.cloud-accounts input,.cloud-accounts select{padding:9px;border:1px solid #d9e4ec;border-radius:6px}.cloud-accounts::backdrop{background:#102f4666}
.cloud-sync-controls{padding:18px;display:flex;gap:16px;align-items:end;flex-wrap:wrap}.cloud-sync-controls label{display:flex;gap:6px;flex-direction:column}.cloud-sync-controls input[type=date]{padding:8px;border:1px solid #d9e4ec;border-radius:6px}
.cloud-readonly .contract-control button{display:none!important}
.sync-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.sync-heading>div{min-width:0}.sync-agent{flex:none;margin-top:5px;color:#11685e;font-size:13px}.sync-agent.is-offline{color:#88551f}.sync-workspace{margin-bottom:20px}.sync-workspace .cloud-sync-controls{padding:0 22px 18px;gap:16px}.cloud-sync-controls .sync-keep-option{flex-direction:row;align-items:center;align-self:center;gap:8px;max-width:280px;line-height:1.6}.sync-keep-option input{width:16px;height:16px;accent-color:#087f73}.sync-probe-result,.sync-feedback{margin:0 22px;color:#4b6472;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.sync-probe-result:empty,.sync-feedback:empty{display:none}.sync-probe-result:not(:empty),.sync-feedback:not(:empty){padding-bottom:16px}.sync-feedback.is-error{color:#a13f32}.sync-task-panel .panel-head{gap:18px;align-items:flex-start}.sync-task-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.sync-task-actions button{white-space:nowrap}.sync-progress-line{display:flex;align-items:center;gap:18px;padding:0 22px 18px;color:#3e5b6a;font-size:13px;font-variant-numeric:tabular-nums}.sync-progress-line strong{font-size:14px;font-weight:600}.sync-progress-line progress{width:180px;max-width:25%;height:6px;border:0;border-radius:4px;overflow:hidden;accent-color:#087f73;background:#e5eeed}.sync-progress-line progress::-webkit-progress-bar{background:#e5eeed}.sync-progress-line progress::-webkit-progress-value{background:#087f73}.sync-progress-line progress::-moz-progress-bar{background:#087f73}.sync-progress-line>span{margin-left:auto;color:#526c78}.sync-task-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 22px 18px}.sync-task-filters{display:flex;gap:6px;flex-wrap:wrap}.sync-task-filters button{background:transparent;border:1px solid transparent;padding:7px 10px;border-radius:6px;color:#496470;font:inherit;font-size:13px;cursor:pointer}.sync-task-filters button:hover{background:#f0f5f5}.sync-task-filters button[aria-pressed=true]{color:#0a665d;background:#e7f5f1;border-color:#bdded5}.sync-task-search{display:flex;align-items:center;gap:10px;flex:none;font-size:13px;color:#4d6673}.sync-task-search input{width:210px;min-height:36px;border:1px solid #c8d8de;border-radius:6px;padding:7px 10px;background:#fff;color:#173c4c;font:inherit}.sync-task-table{max-height:580px;overflow:auto}.sync-task-table table{min-width:1040px;width:100%}.sync-task-table th{position:sticky;top:0;z-index:1;background:#f3f7f7;white-space:nowrap}.sync-task-table td{vertical-align:top}.sync-task-table th:first-child,.sync-task-table td:first-child{width:38px;padding-right:6px}.sync-task-table input[type=checkbox]{width:16px;height:16px;accent-color:#087f73}.sync-task-table .sync-agreement{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:#244858}.sync-customer{min-width:125px;max-width:190px;white-space:normal;line-height:1.6}.sync-stage{min-width:125px;white-space:normal}.sync-stage small{display:block;margin-top:6px;color:#617783;font-size:12px;font-variant-numeric:tabular-nums}.sync-result{min-width:210px;max-width:360px;white-space:normal!important;overflow-wrap:anywhere;line-height:1.65}.sync-result.is-error{color:#a13f32}.sync-result small{display:block;margin-top:6px;color:#715423;font-size:12px}.sync-job-state{display:inline-block;padding:3px 7px;border-radius:4px;background:#eef3f5;color:#46606d;font-size:12px;white-space:nowrap}.sync-job-state[data-status=completed]{background:#e6f4ec;color:#24633e}.sync-job-state[data-status=failed]{background:#faece9;color:#9d392c}.sync-job-state[data-status=needs_review],.sync-job-state[data-status=waiting_browser]{background:#fff1d9;color:#80521e}.sync-job-state[data-status=processing],.sync-job-state[data-status=waiting_local],.sync-job-state[data-status=queued]{background:#e8f1f8;color:#315f7c}.sync-task-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 22px;color:#536d79;font-size:12px}.sync-history{margin-top:20px;padding:0}.sync-history>summary{padding:18px 22px;font-size:14px;font-weight:600;color:#345664;cursor:pointer}.sync-history td{white-space:normal!important;overflow-wrap:anywhere}.sync-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.sync-task-tools{align-items:flex-start;flex-direction:column}.sync-task-search{width:100%}.sync-task-search input{flex:1;max-width:360px}.sync-progress-line{gap:12px;flex-wrap:wrap}.sync-progress-line>span{margin-left:0}.sync-task-panel .panel-head{flex-wrap:wrap}.sync-task-actions{justify-content:flex-start}}
@media(max-width:600px){.sync-heading{flex-direction:column;gap:6px}.sync-workspace .cloud-sync-controls{padding:0 16px 16px;gap:12px}.sync-workspace .cloud-sync-controls>label:not(.sync-keep-option){flex:1;min-width:130px}.sync-workspace .cloud-sync-controls>button{width:100%;min-height:42px}.sync-workspace .cloud-sync-controls .sync-keep-option{max-width:none;width:100%;flex:none}.sync-task-actions{width:100%;flex-wrap:nowrap}.sync-task-actions button{flex:1;min-height:42px}.sync-progress-line,.sync-task-tools{padding-right:16px;padding-left:16px}.sync-progress-line progress{flex:1;max-width:none;min-width:70px}.sync-progress-line>span{width:100%;font-size:12px}.sync-task-filters{gap:3px}.sync-task-filters button{min-height:38px;padding:6px 8px}.sync-task-search{flex-wrap:wrap;gap:6px}.sync-task-search input{width:100%;max-width:none;flex:auto;font-size:16px}.sync-task-footer{padding:12px 16px;flex-direction:column;gap:6px}.sync-probe-result,.sync-feedback{margin:0 16px}}
.cloud-browser-panel{margin-bottom:20px}
.cloud-browser-panel .panel-head{align-items:flex-start;gap:16px;flex-wrap:wrap}
.cloud-browser-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.cloud-browser-help{color:#526d7b;line-height:1.65;max-width:90ch;margin:4px 0 16px}
.cloud-browser-panel [data-browser-frame]{background:#152c38;border-radius:10px;overflow:hidden}
.cloud-browser-panel iframe{display:block;width:100%;height:min(72vh,780px);min-height:400px;border:0}
.cloud-browser-panel [data-browser-status]{margin:6px 0 0;max-width:70ch;overflow-wrap:anywhere}
.cloud-sync-controls select{min-height:38px;border:1px solid #c7d8e1;border-radius:6px;padding:6px 10px;background:#fff;color:#193a4a;font:inherit}
@media(max-width:700px){.cloud-browser-actions{width:100%}.cloud-browser-actions button{flex:1;min-height:42px}.cloud-browser-panel iframe{height:65vh;min-height:360px}.cloud-sync-controls input[type=date],.cloud-sync-controls select{font-size:16px}}
