/* Authentication owns the first viewport; workspace styles remain below the gate. */
.web-sync-notice{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 16px;margin:0 0 12px;border:1px solid #b0805e55;border-radius:12px;background:#fff9ec;color:#684c36;font-size:13px;line-height:1.7;flex-shrink:0}.web-sync-notice>span{flex:1;min-width:180px}.web-sync-notice button{text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.web-session-restore{position:fixed;inset:0;z-index:90;background:#e9eae4;padding:4vh 5vw;display:grid;align-content:start;gap:24px}.web-session-skeleton{height:86vh;border-radius:36px;background:linear-gradient(120deg,#eef1ed,#f6f3df);padding:28px;display:grid;grid-template-rows:44px 140px 1fr;gap:28px}.web-session-skeleton>span{width:180px;border-radius:24px;background:#ffffff80}.web-session-skeleton>div{border-radius:24px;background:#ffffff70}.web-session-retry{position:absolute;inset:35% 10% auto;text-align:center}.web-session-retry button{margin:12px;padding:10px 20px;border:1px solid #59605455;border-radius:22px;background:white}
.web-auth-page{--auth-ink:#28372f;--auth-muted:#657269;--auth-accent:#176b4c;--auth-line:#dce5df;position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;min-width:0;min-height:100dvh;padding:40px 24px;background:#fff;color:var(--auth-ink);isolation:isolate}
.web-auth-shell{width:100%;max-width:420px;max-height:100%;margin:auto;min-width:0;text-align:center;animation:web-auth-enter .2s ease-out both}
.web-auth-brand{display:flex;align-items:center;justify-content:center;gap:14px;min-height:54px}.web-auth-brand img{display:block;width:54px;height:54px;object-fit:contain;flex-shrink:0}.web-auth-brand h1{margin:0;font-family:var(--display);font-size:32px;font-weight:400;line-height:1.25;letter-spacing:0}
.web-auth-heading{margin-top:32px}.web-auth-heading h2{margin:0;font-family:var(--display);font-size:24px;font-weight:400;line-height:1.5;letter-spacing:0}.web-auth-status{min-height:24px;margin:2px 0 0;color:var(--auth-muted);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.web-auth-qr-panel{position:relative;isolation:isolate;width:280px;max-width:100%;height:264px;margin:18px auto 0;border:0;border-radius:0;background:#fff;overflow:hidden}
/* The official compact widget is 160px high, including its scanned/cancelled states. */
.web-auth-qr{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.web-auth-qr iframe{display:block;flex-shrink:0;width:66.666667%;height:176px;border:0;background:#fff;transform:scale(1.5);transform-origin:center}
.web-auth-qr-placeholder{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#fff;color:var(--auth-muted);font-size:13px;line-height:1.6}.web-auth-qr-placeholder svg{width:42px;height:42px;color:#83988b}.web-auth-qr-loader{width:28px;height:28px;border:2px solid #e2ebe5;border-top-color:var(--auth-accent);border-radius:50%;animation:web-auth-spin .8s linear infinite}
.web-auth-error{display:flex;align-items:flex-start;gap:9px;margin:18px 0 0;padding:10px 12px;border:0;border-radius:6px;background:#fff1ee;text-align:left;font-size:14px;line-height:1.8;color:#813b34;overflow-wrap:anywhere}.web-auth-error svg{width:17px;height:17px;margin-top:3px;flex-shrink:0}.web-auth-error p{margin:0}
.web-auth-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 20px;margin-top:16px}.web-auth-choice{display:grid;gap:10px;margin-top:8px}.web-auth-page .button{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;max-width:100%;padding:11px 18px;border:1px solid transparent;border-radius:8px;font-size:14px;line-height:1.5;white-space:normal;box-shadow:none;transition:background .16s ease,border-color .16s ease,transform .1s ease}
.web-auth-page .button svg{width:17px;height:17px;flex-shrink:0}.web-auth-page .button span{min-width:0;overflow-wrap:anywhere}.web-auth-page .button.primary{background:var(--auth-accent);border-color:var(--auth-accent);color:#fff}.web-auth-page .button.primary:hover:not(:disabled){background:#105b3d;border-color:#105b3d}.web-auth-page .button.outline{background:transparent;border-color:var(--auth-line);color:#335a46}.web-auth-page .button.outline:hover:not(:disabled){background:#eaf1ed;border-color:#a4bbac}.web-auth-page .button:active:not(:disabled){transform:scale(.985)}.web-auth-page button:disabled{opacity:.55;cursor:default}
.web-auth-text-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;padding:8px 6px;border:0;border-radius:0;background:transparent;color:var(--auth-muted);font-size:14px;line-height:1.6;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;cursor:pointer}.web-auth-text-action:hover:not(:disabled){color:var(--auth-accent);text-decoration-color:currentColor}.web-auth-text-action svg{width:15px;height:15px;flex-shrink:0}.web-auth-page .button:focus-visible,.web-auth-text-action:focus-visible,.web-auth-consent summary:focus-visible{outline:2px solid var(--auth-accent);outline-offset:4px}.web-auth-text-action:disabled{opacity:.55;cursor:default}
.web-auth-choice{font-size:14px;line-height:1.8;gap:14px;margin-top:24px}.web-auth-choice label,.web-auth-consent label{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;text-align:left;cursor:pointer}.web-auth-choice input,.web-auth-consent input{margin-top:4px}.web-auth-divider{display:flex;align-items:center;gap:12px;margin-top:8px;color:var(--auth-muted);font-size:12px}.web-auth-divider:before,.web-auth-divider:after{content:'';height:1px;background:var(--auth-line);flex:1}
.web-auth-consent{width:100%;text-align:left;display:grid;gap:8px;margin-top:24px;font-size:13px;line-height:1.8}.web-auth-consent-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 3px}.web-auth-consent .web-auth-consent-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px 0;font-size:13px;color:var(--auth-muted)}.web-auth-consent-check input{width:16px;height:16px;margin:0;accent-color:var(--auth-accent);flex-shrink:0}.web-auth-legal-links{display:flex;justify-content:center;flex-wrap:wrap;gap:0 2px}.web-auth-legal-link{min-height:44px;padding:4px 0;border:0;background:transparent;color:var(--auth-accent);font-size:13px;line-height:1.8;cursor:pointer}.web-auth-legal-link:hover{text-decoration:underline}.web-auth-legal-link:focus-visible,.web-auth-consent-check input:focus-visible{outline:2px solid var(--auth-accent);outline-offset:3px}.web-auth-document-panel{padding:12px 0 0;border-top:1px solid var(--auth-line)}.web-auth-document-panel h3{margin:0 0 10px;font-size:15px}.web-auth-document{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;padding:0 8px 12px 0;font-size:14px;line-height:1.9;color:var(--auth-muted)}.web-auth-legal-error,.web-auth-consent-saving{margin:0;text-align:center;font-size:13px;color:var(--auth-muted)}.web-auth-legal-error{color:#813b34}.web-auth-guide{margin:0;color:var(--auth-muted);font-size:14px;line-height:1.9;overflow-wrap:anywhere}.web-auth-new{border-top:1px solid var(--auth-line);padding-top:12px;font-size:13px;color:var(--auth-muted)}.web-auth-new summary{min-height:44px;cursor:pointer;line-height:1.8;padding:10px 0}
.web-auth-complete{display:flex;justify-content:center;margin-top:24px;color:var(--auth-accent)}.web-auth-complete svg{width:40px;height:40px}
.web-auth-account{min-height:264px;margin:18px auto 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;animation:web-auth-enter .18s ease-out both}.web-auth-avatar{width:88px;height:88px;border-radius:50%;overflow:hidden;display:grid;place-items:center;color:var(--auth-muted)}.web-auth-avatar img{width:100%;height:100%;object-fit:cover}.web-auth-avatar svg{width:50px;height:50px}.web-auth-account h3{margin:0;font-size:20px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.web-auth-account>p{margin:0;font-size:13px;color:var(--auth-muted);line-height:1.7}.web-auth-confirm{min-height:46px;width:240px;max-width:100%;border:0;border-radius:23px;background:var(--auth-ink);color:white;font-size:16px;cursor:pointer;transition:transform 120ms,background 120ms}.web-auth-confirm:active{transform:scale(.98)}.web-auth-confirm:disabled{opacity:.65;cursor:wait}.web-auth-confirm:focus-visible{outline:2px solid var(--auth-accent);outline-offset:4px}.web-auth-consent-hint{margin:0;text-align:center;font-size:13px;color:var(--auth-accent)}.web-auth-consent-row.needs-attention{animation:web-auth-consent-cue .45s ease-out 1}.web-auth-consent-row.needs-attention input{outline:2px solid var(--auth-accent);outline-offset:3px}.web-auth-page[data-status="error"] .web-auth-actions{margin-top:16px}
@keyframes web-auth-consent-cue{0%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}65%{transform:translateX(3px)}}
.workbench.web-auth-locked{display:block;width:100%;max-width:none;min-height:100dvh;margin:0;padding:0}body:has(>.workbench.web-auth-locked){padding:0;min-width:0}
@keyframes web-auth-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes web-auth-spin{to{transform:rotate(360deg)}}
@media(max-width:480px){.web-auth-page{padding:28px 16px}.web-auth-brand h1{font-size:30px}.web-auth-brand img{width:50px;height:50px}.web-auth-brand{min-height:50px}.web-auth-heading{margin-top:28px}.web-auth-heading h2{font-size:23px}.web-auth-qr-panel{margin-top:14px}.web-auth-footer{margin-top:30px}}
@media(max-height:720px){.web-auth-page{padding-top:20px;padding-bottom:20px}.web-auth-heading{margin-top:22px}.web-auth-footer{margin-top:22px}}
@media(prefers-reduced-motion:reduce){.web-auth-shell,.web-auth-qr-loader,.web-auth-account,.web-auth-consent-row.needs-attention{animation:none}.web-auth-page .button,.web-auth-confirm,.web-auth-consent summary svg{transition:none}}
