*{box-sizing:border-box}
html{font-family:var(--font);color:var(--ink);background:var(--paper);font-size:14px;line-height:1.5}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit}
button{background:none;border:0}
button:disabled{cursor:not-allowed;opacity:.6}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.2;font-weight:550;letter-spacing:-.035em}
h1{font-size:32px}
h2{font-size:21px}
h3{font-size:16px}
button,input,select,textarea{border-radius:var(--radius)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
input,select,textarea{color:var(--ink);background:var(--a-field);border:1px solid var(--a-field-line);min-height:46px;padding:10px 12px;max-width:100%;border-radius:11px;transition:border-color .2s,box-shadow .25s var(--a-ease)}
input:hover,select:hover,textarea:hover{border-color:var(--a-field-hover)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid transparent;border-color:var(--a-accent);box-shadow:0 0 0 4px var(--a-ring)}
input::placeholder,textarea::placeholder{color:var(--a-muted);opacity:1}
textarea{resize:vertical}
input[aria-invalid=true]{border-color:var(--danger)}
[hidden]{display:none!important}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.eyebrow,.overline{font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:550}
.muted{color:var(--muted)}
/* The wordmark exists in two files: original light strokes (dark theme) and derived ink (light theme). */
.brand-on-light{display:none!important}
:root:not([data-theme="dark"]) .brand-on-dark{display:none!important}
:root:not([data-theme="dark"]) .brand-on-light{display:block!important}
/* Theme switch: native radios, shared by the login and the workspace. */
.theme-switch{display:inline-flex;gap:2px;margin:0;padding:3px;min-inline-size:0;border:1px solid var(--a-line);border-radius:999px;background:var(--a-switch-bg)}
.theme-switch label{position:relative;display:grid;place-items:center;width:36px;height:30px;border-radius:999px;color:var(--a-muted);cursor:pointer;transition:color .2s,background-color .25s var(--a-ease),box-shadow .25s var(--a-ease)}
.theme-switch label:hover{color:var(--a-ink)}
.theme-switch input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.theme-switch svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.theme-switch label:has(input:checked){background:var(--a-switch-on);color:var(--a-ink);box-shadow:var(--a-switch-shadow)}
.theme-switch label:has(input:focus-visible){outline:2px solid var(--a-accent);outline-offset:2px}
.primary,.secondary,.text-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 18px;font-weight:550;font-size:13px;letter-spacing:-.005em;transition:background-color var(--fast),border-color var(--fast),transform .25s var(--a-ease),box-shadow .3s var(--a-ease)}
.primary{position:relative;overflow:hidden;isolation:isolate;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#7353ee 0%,#5d3bd0 52%,#4b2db4 100%);box-shadow:inset 0 1px 0 #ffffff3d,0 1px 2px #1d0e5c33,0 12px 26px -14px #5b37d6b3}
.primary:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,transparent 30%,#ffffff38 48%,transparent 66%);translate:-110% 0;transition:translate .9s var(--a-ease)}
.primary:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 #ffffff47,0 1px 2px #1d0e5c33,0 18px 34px -14px #5b37d6cc}
.primary:hover:before{translate:110% 0}
.primary:active{transform:translateY(0) scale(.995)}
.primary .icon{transition:transform .3s var(--a-ease)}
.primary:hover .icon{transform:translateX(3px)}
.secondary{border-radius:12px;background:var(--a-surface);border:1px solid var(--a-line-strong);color:var(--ink)}
.secondary:hover{background:var(--a-wash)}
.text-button{color:var(--a-accent-ink);padding-inline:0}
.text-button .icon{transition:transform .3s var(--a-ease)}
.text-button:hover .icon{transform:translateX(3px)}
.icon-button{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:12px;color:var(--a-muted);transition:background-color .2s,color .2s}
.icon-button:hover{background:var(--a-wash);color:var(--ink)}
.badge{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--a-line-strong);border-radius:999px;padding:4px 10px;font-size:11px;font-weight:500;white-space:nowrap;color:var(--a-muted)}
.badge:before{content:'';width:6px;height:6px;border:1px solid currentColor;border-radius:50%}
.badge.planned{color:var(--a-accent-ink);background:var(--a-accent-wash);border-color:var(--a-accent-line)}
.skip{position:fixed;top:8px;left:12px;z-index:100;padding:12px 16px;border-radius:10px;background:var(--a-surface);color:var(--ink);box-shadow:var(--a-shadow-lift);transform:translateY(-150%)}
.skip:focus{transform:none}
.field{margin-top:20px}
.field label{display:block;font-size:12px;font-weight:550;margin-bottom:8px}
.input-wrap{position:relative}
.input-wrap input{width:100%;min-height:50px}
.password-wrap input{padding-right:52px}
.reveal{position:absolute;right:3px;top:3px;bottom:3px;width:44px;display:grid;place-items:center}
.reveal svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.4}
.intro{font-size:13px;color:var(--muted);line-height:1.7;margin-top:12px}
.status{font-size:12px;color:var(--danger);margin-top:14px;line-height:1.65}
.status:empty{margin:0}
.session-identity{font-size:12px;margin-block:12px;overflow-wrap:anywhere}
.form-eyebrow{color:var(--a-accent-ink);font-size:10px;letter-spacing:.14em;margin-bottom:10px}
dialog{padding:0;border:1px solid var(--a-line);border-radius:20px;background:var(--a-surface);color:var(--ink);width:min(580px,calc(100% - 32px));max-height:calc(100svh - 40px);box-shadow:var(--a-shadow-lift)}
dialog::backdrop{background:var(--a-backdrop);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.dialog-header{padding:26px 26px 22px;display:flex;align-items:start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--a-line)}
.dialog-header .eyebrow{color:var(--a-accent-ink);display:block;margin-bottom:10px}
.dialog-header h2{font-size:24px;font-weight:500;letter-spacing:-.04em}
.dialog-body{padding:24px 26px 26px}
.dialog-note{font-size:13px;color:var(--muted);line-height:1.7;margin-top:16px}
.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
.dialog-body label{display:block;font-size:13px;font-weight:550;margin-bottom:8px}
.dialog-body input,.dialog-body select,.dialog-body textarea{width:100%}
.dialog-body .field:first-child{margin-top:0}
.toast{position:fixed;z-index:70;bottom:24px;right:24px;display:flex;align-items:center;gap:12px;background:var(--a-toast-bg);color:var(--a-toast-ink);padding:14px 18px;border:1px solid var(--a-line);border-radius:14px;max-width:min(440px,calc(100vw - 32px));box-shadow:var(--a-shadow-lift);font-size:13px;line-height:1.55}
.toast:before{content:'';flex:none;width:7px;height:7px;border-radius:50%;background:#45d9ea;box-shadow:0 0 0 4px #45d9ea33}
.search-result{display:flex;align-items:center;gap:16px;min-height:64px;width:100%;text-align:left;border-radius:12px;padding:10px 12px;margin-top:4px;transition:background-color .2s}
.search-result:hover,.search-result:focus-visible{background:var(--a-accent-wash)}
.search-result>.icon:first-child{color:var(--a-accent-ink)}
.search-result span{flex:1}
.search-result b,.search-result small{display:block}
.search-result b{font-weight:550}
.search-result small{font-size:12px;color:var(--muted);margin-top:3px}
.source-table>div{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--a-line);font-size:13px}
.source-table>div>span{color:var(--muted)}
.source-table b{text-align:right;font-weight:500}
.account-email{overflow-wrap:anywhere;margin-bottom:20px}
.motion-paused *,.motion-hidden *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media(max-width:380px){.theme-switch label{width:32px}
}
@media(max-width:600px){h1{font-size:27px}
input,select,textarea{font-size:16px}
.dialog-header,.dialog-body{padding:20px}
.toast{right:16px;bottom:16px}
}
