/* AIRS admin: account screens and operations share the portal's palette. */
html[data-airs-ui="admin"]{color-scheme:light;--bg:#f5f3ec;--bg2:#edf1e9;--panel:#fffef9;--panel2:#e9efe7;--line:#d4ded2;--ink:#193c39;--mut:#536e62;--dim:#60756b;--acc:#176f63;--blue:#276998;--warn:#956014;--red:#ac433a;--ui-accent:#176f63}
html[data-airs-ui="admin"] [hidden]{display:none!important}
html[data-airs-ui="admin"] body{background:var(--bg);color:var(--ink)}
body.admin-auth-active>aside,body.admin-auth-active>.content{display:none!important}
html[data-airs-ui="admin"] #otpGate{position:relative;z-index:50;min-height:100vh;min-height:100dvh;width:100%;display:flex;flex-direction:column;background:var(--bg);padding:0 max(24px,calc((100vw - 1180px)/2));overflow-wrap:anywhere}
#otpGate .admin-auth-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0;border-bottom:1px solid var(--line)}
#otpGate a{color:var(--acc);text-decoration:none}
#otpGate .admin-auth-brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:700;font-size:24px;letter-spacing:1px;white-space:nowrap}
#otpGate .admin-auth-brand img{width:36px;height:36px;object-fit:contain}
#otpGate .admin-auth-brand small{font-size:10px;letter-spacing:2px;margin-left:8px;color:var(--mut);vertical-align:middle}
#otpGate .admin-home{font-size:12px;padding:9px 0}
#otpGate .admin-auth-layout{display:grid;grid-template-columns:1.12fr 1fr;gap:70px;align-items:center;padding:54px 0;flex:1}
#otpGate .admin-auth-story{position:relative;isolation:isolate;min-height:470px;display:flex;flex-direction:column;padding:44px;border-radius:24px;background:radial-gradient(ellipse at 90% 25%,#648c79 0,transparent 56%),linear-gradient(140deg,#163c37,#235d55 70%,#436960);color:#f9f8ed;overflow:hidden}
#otpGate .admin-eyebrow{font-size:11px;letter-spacing:2px;color:var(--acc);margin-bottom:20px}
#otpGate .admin-auth-story .admin-eyebrow{color:#c5ded0}
#otpGate .admin-auth-story h1{font-family:Batang,"Noto Serif KR",serif;font-size:38px;line-height:1.5;font-weight:400;letter-spacing:-1.7px;margin:4px 0 18px}
#otpGate .admin-story-copy{font-size:14px;line-height:1.9;color:#d8e8dd}
#otpGate .admin-orbit{position:absolute;width:300px;height:300px;right:-85px;bottom:35px;border:1px solid #e5f1dc38;border-radius:50%;z-index:-1}
#otpGate .admin-orbit:before,#otpGate .admin-orbit:after{content:"";position:absolute;inset:30px;border:1px solid #e5f1dc38;border-radius:50%}
#otpGate .admin-orbit:after{inset:65px}
#otpGate .admin-orbit span{position:absolute;width:72px;height:72px;left:17px;top:25px;border-radius:50%;background:linear-gradient(135deg,#ebd89e,#d5e4c7);box-shadow:0 0 50px #eff1c325}
#otpGate .admin-story-bottom{margin-top:auto;padding-top:50px;font-size:12px;color:#e1eee2}
#otpGate .admin-story-bottom small{display:block;margin-top:12px;font-size:9px;letter-spacing:2px;color:#b1cebd}
#otpGate .admin-auth-panel{width:100%;max-width:410px;justify-self:center;min-width:0}
html[data-airs-ui="admin"] #otpGate #loginBox,html[data-airs-ui="admin"] #otpGate #enrollBox{width:100%!important;padding:8px 0!important;border:0;background:none}
#otpGate h2{font-size:30px;line-height:1.4;letter-spacing:-1px;font-weight:600}
#otpGate .admin-auth-desc{margin:15px 0 30px;font-size:14px;line-height:1.8;color:var(--mut)}
#otpGate label{display:block;margin:18px 0 8px;font-size:12px;font-weight:600}
html[data-airs-ui="admin"] #otpGate input{width:100%;height:48px;padding:12px 14px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;font-size:14px}
#otpGate input::placeholder{color:var(--dim)}
html[data-airs-ui="admin"] #otpGate .admin-primary{width:100%;min-height:48px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:var(--acc);color:#fff;border:1px solid var(--acc);border-radius:10px;font-size:14px;font-weight:600;transition:background .18s,transform .18s}
html[data-airs-ui="admin"] #otpGate .admin-primary:hover{background:#10564c}
#otpGate .admin-primary:active{transform:translateY(1px)}
#otpGate button:disabled{opacity:.6;cursor:wait}
#otpGate :is(a,button,input,summary):focus-visible{outline:3px solid #278c78;outline-offset:4px}
#otpGate .admin-auth-message{min-height:24px;margin-top:12px;font-size:12px;color:var(--red);line-height:1.7}
#otpGate .admin-auth-help{margin-top:18px;border-top:1px solid var(--line);padding-top:20px;font-size:12px;color:var(--mut)}
#otpGate .admin-field-note{font-size:12px;color:var(--mut);line-height:1.8;margin-top:8px}
#otpGate :is(#acode,#ecode){letter-spacing:4px;font-variant-numeric:tabular-nums}
#otpGate .admin-qr-wrap{text-align:center;margin:16px 0}
#otpGate #qr{display:inline-block;background:#fff;border:1px solid var(--line);padding:14px;border-radius:12px;max-width:100%;font-size:12px}
#otpGate #qr img,#otpGate #qr canvas{max-width:100%;height:auto}
#otpGate .admin-manual-key{border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:12px;background:var(--panel)}
#otpGate summary{cursor:pointer;color:var(--acc)}
#otpGate #otpKey{display:block;overflow-wrap:anywhere;margin-top:10px;color:var(--ink)}
#otpGate .admin-auth-footer{border-top:1px solid var(--line);padding:24px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px}
#otpGate .admin-footer-tagline{font-size:11px;color:var(--mut);margin-left:12px}
#otpGate .admin-auth-footer small{font-size:9px;letter-spacing:1px;color:var(--dim)}
html[data-airs-ui="admin"] body>aside .logo img{width:32px;height:32px;object-fit:contain}
html[data-airs-ui="admin"] body>aside{width:220px;flex-basis:220px}
html[data-airs-ui="admin"] body>aside button.nav.on{background:#176f63;color:#fff;box-shadow:none}
html[data-airs-ui="admin"] body>aside button.nav:hover:not(.on){background:#e3eee5;color:#193c39}
html[data-airs-ui="admin"] .pbar button.on{background:#176f63;color:#fff;border-color:#176f63}
html[data-airs-ui="admin"] .content>h1{font-size:27px;letter-spacing:-.7px;margin-bottom:8px}
html[data-airs-ui="admin"] .content>.up{padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:24px}
html[data-airs-ui="admin"] .card,html[data-airs-ui="admin"] .tile{box-shadow:0 4px 16px #193c3908}
@media(max-width:860px){#otpGate .admin-auth-layout{gap:32px}#otpGate .admin-auth-story{padding:30px;min-height:450px}#otpGate .admin-auth-story h1{font-size:30px}html[data-airs-ui="admin"] body>aside{width:100%;flex-basis:auto}html[data-airs-ui="admin"] .svc{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}}
@media(max-width:650px){html[data-airs-ui="admin"] #otpGate{padding:0 20px}#otpGate .admin-auth-header{padding:18px 0;gap:12px}#otpGate .admin-auth-brand{font-size:21px}#otpGate .admin-home{font-size:11px}#otpGate .admin-auth-layout{grid-template-columns:1fr;gap:30px;padding:26px 0 36px}#otpGate .admin-auth-story{min-height:0;padding:25px;border-radius:18px}#otpGate .admin-auth-story h1{font-size:27px;line-height:1.4;margin:0 0 12px}#otpGate .admin-auth-story .admin-eyebrow{margin-bottom:12px;font-size:9px}#otpGate .admin-story-copy{font-size:12px}#otpGate .admin-story-bottom{display:none}#otpGate .admin-orbit{width:230px;height:230px;bottom:-65px;right:-155px;opacity:.45}#otpGate h2{font-size:26px}#otpGate .admin-auth-desc{margin:12px 0 20px}#otpGate .admin-auth-footer{align-items:flex-start;flex-direction:column;gap:8px}#otpGate .admin-auth-brand small{margin-left:3px;font-size:9px}html[data-airs-ui="admin"] .setg{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#otpGate *{transition:none!important}}

/* Operations workspace */
html[data-airs-ui="admin"] body>aside{padding:24px 12px;align-self:flex-start;position:sticky;top:0;height:100vh;overflow-y:auto}
html[data-airs-ui="admin"] body>aside .logo{padding:0 10px 10px;font-size:22px;letter-spacing:.5px}
html[data-airs-ui="admin"] body>aside .logo small{display:block;font-size:10px;letter-spacing:1px;color:var(--mut);font-weight:400}
.admin-nav-label{font-size:10px;color:var(--dim);letter-spacing:.6px;padding:19px 12px 6px}
html[data-airs-ui="admin"] .content{max-width:none;padding:30px 34px 48px}
.admin-page-header{padding:26px 28px;border:1px solid #cfddd2;border-radius:18px;background:linear-gradient(115deg,#e3eee5,#f2f3e9);margin-bottom:24px}
.admin-page-kicker{font-size:10px;letter-spacing:2px;color:var(--acc);margin-bottom:12px}
.admin-page-header h1{font-size:28px;letter-spacing:-.7px;font-weight:600}
.admin-page-header .up{margin:8px 0 0;font-size:12px;line-height:1.8;color:var(--mut);overflow-wrap:anywhere}
html[data-airs-ui="admin"] .tile{padding:20px;border-radius:14px;border-top:3px solid var(--acc)}
html[data-airs-ui="admin"] .tile .v{font-size:30px;font-weight:500}
html[data-airs-ui="admin"] .card{padding:24px;border-radius:16px}
html[data-airs-ui="admin"] .card h2{font-size:16px;margin-bottom:16px}
html[data-airs-ui="admin"] :is(th,td){padding:10px 12px}
html[data-airs-ui="admin"] .modal .box{box-shadow:0 18px 70px #193c3933}
html[data-airs-ui="admin"] .modal button{min-height:38px}
html[data-airs-ui="admin"] .content input:not([type=checkbox]):not([type=radio]),html[data-airs-ui="admin"] .content select{min-height:38px}
html[data-airs-ui="admin"] .keybox{background:#e4f0e6;border-color:#93bba0}
html[data-airs-ui="admin"] .keybox code{color:#155b45}
html[data-airs-ui="admin"] .tier.pro,html[data-airs-ui="admin"] .tier.enterprise{color:#805216;border-color:#d6bc92}
@media(max-width:1000px){html[data-airs-ui="admin"] .content{padding:22px}html[data-airs-ui="admin"] .card{padding:18px}}
@media(max-width:860px){html[data-airs-ui="admin"] body>aside{position:static;height:auto;min-height:0;display:flex;flex-flow:row wrap;overflow:visible;gap:5px;padding:14px;align-self:auto}html[data-airs-ui="admin"] body>aside .logo{display:flex;width:100%;padding:4px 4px 12px}html[data-airs-ui="admin"] body>aside button.nav{flex:1 0 28%;min-width:0;justify-content:center;padding:9px 5px;font-size:11px}html[data-airs-ui="admin"] body>aside .foot{width:100%;margin:0;padding:8px 4px}.admin-nav-label{display:none}.admin-page-header{padding:22px}html[data-airs-ui="admin"] .content{width:100%;padding:16px}.admin-page-header h1{font-size:25px}}
@media(max-width:380px){html[data-airs-ui="admin"] body>aside button.nav{flex-basis:40%}html[data-airs-ui="admin"] .card{padding:14px}html[data-airs-ui="admin"] .tile{padding:14px}html[data-airs-ui="admin"] .content{padding:12px}}

@media(max-width:860px){html[data-airs-ui="admin"] .row2{grid-template-columns:minmax(0,1fr)}}
