/* 事实来源：KIO提供的A品牌信息层级 + 已有B蓝灰/深蓝tokens；两主题共享DOM。 */
*{box-sizing:border-box}
:root{font-family:'Avenir Next',Arial,sans-serif;color:var(--fg);background:var(--bg);font-synthesis:none}
body{margin:0;min-height:100vh;min-height:100dvh;display:grid;grid-template-rows:auto 1fr auto;background:var(--bg);position:relative}
body::before{content:'';position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(var(--border) 1px,transparent 1px),linear-gradient(90deg,var(--border) 1px,transparent 1px);background-size:80px 80px;opacity:.22;z-index:0}
button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}
button:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.page-header,.auth-layout,.page-footer{position:relative;z-index:1;width:min(1320px,calc(100% - 96px));margin-inline:auto}
.page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0;border-bottom:1px solid var(--border)}
.brand{display:flex;gap:13px;align-items:center}.brand-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:var(--fg);color:var(--bg);font-family:'Avenir Next Condensed','Arial Narrow',Arial,sans-serif;font-size:21px;font-weight:700;letter-spacing:-1px}
.brand strong{display:block;font-size:16px;letter-spacing:.025em;font-weight:650}.brand small{display:block;margin-top:2px;font-size:11px;letter-spacing:.13em;color:var(--fg-secondary)}
.header-caption,.eyebrow,.map-heading,.brand-principles b,.page-footer{font-family:'SFMono-Regular',Consolas,monospace}.header-caption{color:var(--fg-secondary);font-size:10px;letter-spacing:.16em}
.header-actions{display:flex;align-items:center;gap:20px}.language{font-size:12px;color:var(--fg-secondary)}
.theme-switch{border:1px solid var(--border);border-radius:22px;padding:4px;display:flex;gap:3px;color:var(--fg-secondary);background:var(--bg-elevated)}
.theme-switch>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%}.theme-switch .icon{width:17px;height:17px}
:root:not([data-theme='dark']) .theme-light,:root[data-theme='dark'] .theme-dark{color:var(--bg-elevated);background:var(--fg)}
.auth-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);align-items:center;gap:96px;padding:60px 0 64px}
.brand-panel{padding:0 0 6px}.eyebrow{display:flex;gap:14px;align-items:center;margin:0;color:var(--fg-secondary);font-size:10px;letter-spacing:.14em;font-weight:600}.short-line{width:30px;height:1px;background:var(--accent)}
.brand-headline{font-family:'Avenir Next Condensed','Arial Narrow',Arial,sans-serif;font-size:clamp(78px,7.7vw,112px);font-weight:600;line-height:.99;letter-spacing:-.035em;margin:28px 0 22px}.brand-headline>span{display:block;width:fit-content}.decide{position:relative;isolation:isolate}.decide::after{content:'';position:absolute;left:4px;right:6px;bottom:5px;height:14px;background:var(--accent);opacity:.18;z-index:-1}.headline-dot{color:var(--accent)}
.brand-statement{font-size:22px;line-height:1.4;font-weight:650;letter-spacing:-.025em;margin:0 0 9px}.brand-description{font-size:13px;color:var(--fg-secondary);line-height:1.8;max-width:430px;margin:0}
.workspace-map{margin-top:28px;border:1px solid var(--border);border-radius:12px;padding:20px 22px;background:var(--bg-elevated);box-shadow:var(--shadow-1)}
.map-heading{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.11em;color:var(--fg-secondary)}.level-label{font-size:10px;color:var(--accent);font-weight:650}.level-label>span{color:var(--fg-muted);padding:0 7px}
.hierarchy{display:flex;align-items:center;margin:23px 0 18px;gap:9px}.hierarchy-node{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px;font-size:11px;line-height:1.4;font-weight:600;white-space:nowrap}.hierarchy-node .icon{width:18px;height:18px}.primary-node{color:var(--accent)}.hierarchy-line{flex:1;min-width:10px;height:1px;background:var(--border-strong);position:relative}.hierarchy-line::after{content:'';position:absolute;right:0;top:-2px;border:solid var(--border-strong);border-width:0 1px 1px 0;padding:2px;transform:rotate(-45deg)}.node-square{width:18px;height:18px;border:1px solid var(--border-strong);border-radius:4px;background:var(--bg-subtle)}
.department-tags{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid var(--border);padding-top:15px}.department-tags>span{border:1px solid var(--border);background:var(--bg);padding:4px 8px;font-size:10px;border-radius:4px;color:var(--fg-secondary)}.map-note{font-size:10px;color:var(--fg-secondary);margin:12px 0 0;line-height:1.6}
.brand-principles{display:flex;gap:24px;margin-top:20px;font-size:10px;color:var(--fg-secondary)}.brand-principles b{font-weight:500;color:var(--accent);margin-right:6px;font-size:9px}
.access-panel{width:100%;max-width:460px;justify-self:end}.auth-card{border:1px solid var(--border);border-radius:14px;background:var(--bg-elevated);padding:35px 34px 23px;box-shadow:var(--shadow-2)}
.auth-eyebrow{font-size:9px;letter-spacing:.13em}.auth-eyebrow>span{margin-left:auto;color:var(--fg-muted)}.auth-title{font-family:'Avenir Next Condensed','Arial Narrow',Arial,sans-serif;font-size:30px;line-height:1.2;font-weight:750;letter-spacing:-.035em;margin:17px 0 9px}.auth-description{color:var(--fg-secondary);font-size:13px;line-height:1.8;margin:0 0 25px}
.field-label{display:block;margin:21px 0 8px;font-size:12px;font-weight:600;color:var(--fg-secondary)}.input-wrap{position:relative;display:flex;align-items:center}.input-icon{position:absolute;left:14px;color:var(--fg-muted);width:17px;height:17px;pointer-events:none}
input{border:1px solid var(--border-strong);border-radius:7px;padding:13px 43px;width:100%;min-width:0;height:49px;color:var(--fg);background:var(--bg);font-size:13px;transition:border-color .15s,box-shadow .15s}input::placeholder{color:var(--fg-muted);opacity:1}input:focus-visible{outline:0;border-color:var(--accent);box-shadow:var(--ring)}
.password-toggle{position:absolute;right:5px;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:5px;background:transparent;color:var(--fg-muted)}.password-toggle:hover,.password-toggle[aria-pressed='true']{background:var(--bg-subtle);color:var(--accent)}.password-toggle .icon{width:17px;height:17px}
.security-note{display:flex;align-items:center;gap:7px;margin:15px 0 20px;font-size:11px;color:var(--fg-secondary)}.security-note .icon{width:15px;height:15px;color:var(--accent)}
.auth-submit{width:100%;height:49px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid transparent;border-radius:7px;padding:0 18px;background:var(--accent);color:var(--bg);font-size:13px;font-weight:650;transition:background .15s,transform .15s}.auth-submit:hover:not(:disabled){background:var(--accent-hover)}.auth-submit:active:not(:disabled){transform:translateY(1px)}.auth-submit .icon{width:19px;height:19px}
.auth-status{font-size:12px;line-height:1.7;min-height:21px;margin:15px 0 5px;color:var(--fg-secondary);overflow-wrap:anywhere}.auth-status:not(:empty){border-left:2px solid var(--accent);padding-left:10px}.auth-status[data-error='true']{color:var(--danger);border-color:var(--danger)}
.account-help{border-top:1px solid var(--border);margin-top:15px;padding-top:15px;font-size:11px;color:var(--fg-secondary)}summary{cursor:pointer;width:fit-content;line-height:1.7}.account-help p,.manual-setup p{line-height:1.8;margin:10px 0 0}.access-caption{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--fg-secondary);font-size:10px;letter-spacing:.02em;margin:18px 0 0}.access-caption .icon{width:13px;height:13px}
.verification-progress{display:flex;align-items:center;gap:10px;color:var(--fg-secondary);font-size:10px;margin:20px 0 23px}.verification-progress>span{display:flex;align-items:center;gap:5px}.verification-progress .icon{width:14px;height:14px;color:var(--accent)}.verification-progress>i{height:1px;flex:1;background:var(--border)}.verification-progress>strong{color:var(--accent);font-weight:600}
.qr-frame{width:208px;height:208px;margin:18px auto 17px;display:grid;place-items:center;border-radius:9px;background:#fff;border:1px solid var(--border)}#setup-qr{display:block;max-width:100%;height:auto}.manual-setup{font-size:11px;color:var(--fg-secondary)}#setup-secret{display:block;padding:12px;margin-top:10px;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--fg);font:12px/1.8 'SFMono-Regular',Consolas,monospace;overflow-wrap:anywhere;user-select:all}
.code-input{font-family:'SFMono-Regular',Consolas,monospace;letter-spacing:.3em;font-size:19px;padding-right:14px}.code-help{color:var(--fg-secondary);font-size:11px;margin:9px 0 20px;line-height:1.6}.restart-button{margin:16px auto 0;display:block;padding:5px 8px;border:0;background:transparent;color:var(--fg-secondary);font-size:11px}.restart-button:hover{color:var(--accent)}
.page-footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding:18px 0 22px;color:var(--fg-secondary);font-size:9px;letter-spacing:.06em}.page-footer>span:nth-child(2){font-family:'Avenir Next',Arial,sans-serif;letter-spacing:.12em}
@media(min-width:1600px){.auth-layout{padding-block:80px;gap:130px}.auth-card{padding:42px 38px 28px}.brand-headline{font-size:122px}.workspace-map{margin-top:34px}}
@media(max-width:1100px){.page-header,.auth-layout,.page-footer{width:calc(100% - 64px)}.auth-layout{gap:48px;grid-template-columns:minmax(0,1fr) minmax(330px,.94fr)}.auth-card{padding:29px 26px 22px}.brand-headline{font-size:86px}.brand-statement{font-size:20px}.workspace-map{padding:18px}.brand-principles{gap:15px}.hierarchy{gap:7px}.hierarchy-node{font-size:10px}.header-caption{display:none}}
@media(max-width:800px){.page-header,.auth-layout,.page-footer{width:calc(100% - 40px)}.page-header{padding:21px 0}.auth-layout{display:block;padding:42px 0}.brand-panel{display:none}.access-panel{margin:auto;max-width:440px}.auth-card{padding:32px 28px 23px}.page-footer>span:nth-child(2){display:none}.brand strong{font-size:14px}.brand small{font-size:10px}.header-actions{gap:12px}.brand-mark{width:39px;height:39px;font-size:19px}.language{font-size:11px}}
@media(max-width:420px){.page-header,.auth-layout,.page-footer{width:calc(100% - 32px)}.auth-layout{padding:30px 0 38px}.auth-card{padding:27px 22px 21px;border-radius:12px}.auth-title{font-size:28px}.brand{gap:9px}.brand small{letter-spacing:.07em}.brand strong{font-size:12px}.language{display:none}.theme-switch>span{width:27px;height:27px}.page-footer{font-size:8px;gap:10px;letter-spacing:0}.qr-frame{width:200px;height:200px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
