/* Login and confirmations follow the existing AllinXR teal console. */
body[data-admin-page="shan2"] dialog.action-dialog{width:min(520px,calc(100vw - 32px));padding:30px;border:1px solid #e1e8ef;border-radius:20px;box-shadow:0 24px 100px #102b3b30;color:#152536;background:#fff}
.action-dialog::backdrop{background:#142b4580;backdrop-filter:blur(4px)}
.action-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#e5f5f2;color:#087f7a;font-size:26px;font-weight:600;margin-bottom:18px}
.action-symbol.is-danger{background:#fff0ed;color:#b73936}
body[data-admin-page="shan2"] .action-dialog h2{font-size:22px;margin:0 0 10px}
.action-description{color:#526377;line-height:1.8;margin:0 0 20px}
.action-targets{padding:14px 16px;border:1px solid #e1e8ef;border-radius:12px;background:#f7f9fb;max-height:180px;overflow:auto;line-height:1.8;font-size:12px;overflow-wrap:anywhere}
.action-targets>div:first-child{font-weight:650;font-size:14px;margin-bottom:6px;color:#24394c}
.action-hint{font-size:12px;color:#637286;line-height:1.8;margin:14px 0 0}
.action-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
body[data-admin-page="shan2"] .action-footer button{min-width:100px;min-height:44px;border-radius:10px}
body[data-admin-page="shan2"] .action-footer .destructive{background:#b73936;border-color:#b73936;color:white}
.action-error{background:#fff2f0;color:#a32926;padding:12px 14px;border-radius:10px;margin-top:16px;font-size:13px;overflow-wrap:anywhere}
.action-error:empty,.action-status:empty,.login-feedback:empty{display:none}
.action-status,.login-feedback{color:#087f7a;font-size:13px;line-height:1.7}
.action-status:not(:empty)::before,form[aria-busy="true"] .login-feedback::before{content:"";display:inline-block;width:12px;height:12px;border:2px solid #badfd9;border-top-color:#087f7a;border-radius:50%;animation:ax-spin .8s linear infinite;margin-right:8px;vertical-align:-2px}
body[data-admin-page="shan2"].is-login>aside{display:none}
body[data-admin-page="shan2"].is-login>main{margin-left:0;width:100%;min-height:calc(100vh - 68px);background:radial-gradient(ellipse at 50% 20%,#e5f3f0,transparent 62%)}
body[data-admin-page="shan2"].is-login>main>header{display:none}
body[data-admin-page="shan2"] .login{max-width:440px;margin:7vh auto;padding:36px;border-radius:20px;box-shadow:0 12px 42px #2546530a}
.login-brand{color:#087f7a;font-weight:750;letter-spacing:3px;font-size:12px;margin-bottom:20px}
body[data-admin-page="shan2"] .login h2{font-size:28px;margin-bottom:8px}
body[data-admin-page="shan2"] .login input{min-height:46px;border-radius:9px}
body[data-admin-page="shan2"] .login form>button{width:100%;min-height:46px;margin-top:8px;border-radius:9px}
.login-advanced{margin-top:24px;border-top:1px solid #e1e8ef;padding-top:16px;font-size:12px;color:#637286}
.login-advanced summary{cursor:pointer}.login-advanced button{margin-top:12px}
@keyframes ax-spin{to{transform:rotate(360deg)}}
.device-live-status{color:#637286;font-size:12px;margin:0 0 14px}.device-live-status.is-error{color:#9b5b18;background:#fff7e8;padding:12px 16px;border-radius:10px}
.command-feedback{background:white;border:1px solid #dce7e9;border-radius:14px;padding:20px;margin-bottom:20px;scroll-margin-top:calc(var(--ax-topbar,68px) + 16px)}
.command-feedback-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.command-feedback-head h2{margin:0!important}.command-feedback-head button{font-size:12px}
.command-feedback-summary{font-size:13px;color:#526377;margin:10px 0 14px}.command-result-group{border-top:1px solid #edf1f4;padding:10px 0}.command-result-group>summary{cursor:pointer;font-weight:600;font-size:13px;line-height:1.8}
.command-result-rows{max-height:260px;overflow:auto;margin-top:8px}.command-result-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(180px,2fr);gap:16px;padding:10px 12px;border-radius:8px}.command-result-row:nth-child(odd){background:#f6f8fa}.command-result-row strong,.command-result-row .muted{display:block}.command-result-badge{display:inline-block;border-radius:5px;padding:3px 9px;font-size:12px;font-weight:600}.command-result-badge.pending{background:#eaf2fe;color:#275da0}.command-result-badge.success{background:#e5f5ee;color:#12744a}.command-result-badge.failed{background:#fff0ed;color:#ad3833}.command-result-badge.timeout,.command-result-badge.superseded{background:#fff3db;color:#94600e}.command-result-badge.unavailable{background:#edf0f3;color:#526377}.command-result-message{font-size:12px;line-height:1.7;color:#637286;margin-top:5px;overflow-wrap:anywhere}
@media(max-width:600px){.command-feedback{padding:14px}.command-feedback-head{align-items:flex-start}.command-feedback-head h2{font-size:16px!important}.command-feedback-head button{max-width:130px}.command-result-row{grid-template-columns:90px minmax(0,1fr);gap:10px;padding:9px}.command-result-rows{max-height:240px}}
@media(prefers-reduced-motion:reduce){.action-status::before,.login-feedback::before{animation:none!important}}
@media(max-width:600px){body[data-admin-page="shan2"] .login{padding:24px;margin:3vh auto}body[data-admin-page="shan2"] dialog.action-dialog{padding:24px}.action-footer button{flex:1}.action-targets{max-height:24vh}}
@media(max-width:720px){.command-feedback-head{flex-wrap:wrap}.command-result-row{grid-template-columns:minmax(0,1fr);gap:8px}.command-result-row strong{overflow-wrap:anywhere}.action-footer{position:sticky;bottom:-20px;padding:12px 0;background:white}.action-footer button{min-width:0!important}.device-live-status{line-height:1.8}body[data-admin-page="shan2"] dialog.action-dialog{padding:20px;max-height:calc(100dvh - 24px)}body[data-admin-page="shan2"] .login{margin:2vh auto;padding:24px}body[data-admin-page="shan2"].is-login>main{min-height:calc(100dvh - var(--ax-topbar))}}
