:root { color-scheme: light; font-family: Inter, "Segoe UI", "Microsoft JhengHei UI", sans-serif; color: #172033; background: #f3f5f9; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px; background: #101827; color: #dbe5f3; display: flex; flex-direction: column; }
.brand-mark { display: flex; align-items: center; gap: 12px; padding: 5px 10px 30px; }
.brand-mark > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#498cf5,#66d4c1); color: white; font-weight: 850; }
.brand-mark strong, .brand-mark small, .sidebar-foot strong, .sidebar-foot small { display: block; }
.brand-mark strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand-mark small, .sidebar-foot small { margin-top: 2px; color: #8090a7; font-size: .72rem; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { display: flex; gap: 12px; align-items: center; padding: 11px 13px; color: #91a0b5; text-decoration: none; border-radius: 10px; font-size: .9rem; font-weight: 650; }
.nav-item span { width: 20px; text-align: center; }
.nav-item:hover, .nav-item.active { color: white; background: #1d2b40; }
.nav-item.active { box-shadow: inset 3px 0 #5aa6ff; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border: 1px solid #283850; border-radius: 12px; }
.server-pulse { width: 9px; height: 9px; border-radius: 50%; background: #36c98b; box-shadow: 0 0 0 5px rgba(54,201,139,.12); }
.workspace { min-width: 0; }
.topbar { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 34px; background: white; border-bottom: 1px solid #e3e7ee; }
.topbar h1 { margin: 4px 0 0; font-size: 1.65rem; letter-spacing: -.025em; }
.crumb, .eyebrow { color: #6480a6; font-size: .68rem; font-weight: 800; letter-spacing: .15em; margin: 0; }
main { max-width: 1500px; margin: 0 auto; padding: 28px 34px 50px; }
.summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.summary-card { background: white; border: 1px solid #e1e6ed; border-radius: 14px; padding: 18px; box-shadow: 0 7px 25px rgba(23,32,51,.035); }
.summary-card span { display: block; color: #7b8799; font-size: .75rem; font-weight: 650; }
.summary-card strong { display: block; margin-top: 7px; font-size: 1.7rem; letter-spacing: -.04em; }
.summary-card em { display: inline-block; margin-top: 8px; color: #24805e; font-size: .72rem; font-style: normal; }
.panel { background: white; border: 1px solid #e1e6ed; border-radius: 15px; box-shadow: 0 10px 30px rgba(23,32,51,.04); overflow: hidden; }
.install-panel { margin-bottom: 20px; }
.download-button { display: inline-block; padding: 11px 15px; border-radius: 9px; background: #286ec9; color: white; font-size: .84rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.install-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.download-button:hover { background: #175ba9; }
.install-content { padding: 10px 24px 18px; color: #415168; font-size: .86rem; line-height: 1.7; }
.install-content ol { padding-left: 22px; }
.install-content li { margin: 5px 0; }
.install-note { color: #65748a; font-size: .78rem; }
.install-content code { background: #eef3f9; padding: 2px 5px; border-radius: 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 24px; border-bottom: 1px solid #e9edf2; }
.panel-head h2 { margin: 4px 0 0; font-size: 1.1rem; }
.filters { display: flex; gap: 9px; }
.filters input, .filters select { min-height: 38px; border: 1px solid #d8dee8; border-radius: 9px; background: #f9fafc; color: #334055; padding: 8px 11px; }
.filters input { width: 220px; }
.device-list { display: grid; }
.device-card { padding: 21px 24px; border-bottom: 1px solid #e9edf2; }
.device-card:last-child { border-bottom: 0; }
.device-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.device-identity { display: flex; align-items: center; gap: 13px; }
.device-identity > div { min-width: 0; }
.device-identity .name { overflow-wrap: anywhere; }
.device-title-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.device-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #edf3fc; color: #3476cf; font-size: .7rem; font-weight: 850; }
.device-card.online .device-icon { background: #e5f7ef; color: #18815a; }
h3 { margin: 0; font-size: 1rem; }
.hostname { margin: 4px 0 0; color: #7b8799; font-size: .78rem; }
.online-label { border-radius: 999px; padding: 5px 9px; background: #f0f2f5; color: #657185; font-size: .72rem; font-weight: 750; }
.online .online-label { background: #e4f7ed; color: #187653; }
.metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin: 17px 0 14px; }
.metric { min-width: 0; padding: 10px 11px; background: #f7f9fb; border-radius: 9px; }
.metric strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.metric span { color: #8792a2; font-size: .68rem; }
.metric-detail { display: block; margin-top: 6px; color: #65748a; font-size: .75rem; line-height: 1.35; overflow-wrap: anywhere; }
.integration-status { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-status span { padding: 6px 9px; border: 1px solid #dfe6ef; border-radius: 8px; background: #fbfcfd; color: #536176; font-size: .74rem; }
.operation-status { margin-top: 12px; padding: 10px 12px; border: 1px solid #d6e3f4; border-radius: 9px; background: #f0f6ff; color: #315982; font-size: .8rem; font-weight: 700; }
.operation-status[hidden] { display: none; }
.operation-status.status-failed, .operation-status.status-expired { border-color: #edcaca; background: #fff3f3; color: #a13b3b; }
.operation-status.status-succeeded { border-color: #bfe4d1; background: #effaf3; color: #21705b; }
.operation-status.status-unknown { border-color: #ead6ac; background: #fff9eb; color: #825f27; }
.operation-track { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #dce8f7; }
.operation-fill { display: block; width: 35%; height: 100%; border-radius: inherit; background: #397bd2; animation: operation-progress 1.5s ease-in-out infinite alternate; }
.operation-status.status-succeeded .operation-fill, .operation-status.status-sent .operation-fill { width: 100%; background: #2d9b6d; animation: none; }
.operation-status.status-failed .operation-fill, .operation-status.status-expired .operation-fill { width: 100%; background: #c65050; animation: none; }
.operation-status.status-unknown .operation-fill { width: 100%; background: #c38c32; animation: none; }
@keyframes operation-progress { from { transform: translateX(-90%); } to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) { .operation-fill { animation: none; } }
details { margin-top: 14px; border-top: 1px solid #edf0f4; padding-top: 12px; }
summary { cursor: pointer; color: #3a485d; font-size: .82rem; font-weight: 750; }
.history-panel { margin-top: 12px; }
.history { margin-top: 9px; color: #52606d; font-size: .78rem; }
.history-row { padding: 7px 8px; border-bottom: 1px solid #edf0f2; }
.status-pending, .status-running, .status-applying { color: #8b6418; }
.status-failed, .status-expired { color: #a13b3b; }
.status-succeeded { color: #21705b; }
.blocker-content { padding: 8px 0 2px; }
.browser-content { padding: 8px 0 2px; }
.browser-content code { background: #eef3f9; padding: 1px 4px; border-radius: 4px; }
.browser-status { color: #526176; font-size: .78rem; min-height: 1.2em; }
.browser-entry { padding: 10px 0; border-bottom: 1px solid #edf0f2; overflow-wrap: anywhere; }
.browser-entry a { display: block; color: #2465b3; font-size: .84rem; font-weight: 650; text-decoration: none; }
.browser-entry a:hover { text-decoration: underline; }
.browser-entry small { display: block; margin-top: 3px; color: #718095; font-size: .72rem; }
.blocker-help { color: #65748a; font-size: .78rem; line-height: 1.6; }
.blocker-defaults { color: #344258; font-size: .82rem; }
.blocker-defaults details { margin: 5px 0 15px; }
.domain-list { max-height: 125px; overflow: auto; margin-top: 8px; padding: 10px; background: #f7f9fb; border-radius: 8px; line-height: 1.7; font-size: .74rem; }
.blocker-rules h4 { margin: 15px 0 8px; font-size: .85rem; }
.blocker-rule { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf0f2; font-size: .8rem; }
.blocker-rule span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pending-rule { color: #8a621c; background: #fff9ec; padding-left: 8px; border-radius: 6px; }
.blocker-form { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin: 18px 0 5px; }
.blocker-form[hidden], .blocker-form [hidden] { display: none; }
.blocker-form label { display: grid; gap: 5px; color: #526176; font-size: .74rem; font-weight: 700; }
.blocker-form input, .blocker-form select { min-height: 36px; min-width: 150px; padding: 6px 8px; border: 1px solid #d4dce7; border-radius: 7px; background: white; }
.blocker-form label:first-child input { min-width: 220px; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.powershell-form { display: grid; gap: 8px; margin: 16px 0; padding: 14px; border: 1px solid #ead4d4; border-radius: 9px; }
.powershell-form label { display: grid; gap: 5px; font-size: .8rem; }
.powershell-form textarea { width: 100%; padding: 9px; border: 1px solid #d4dce7; border-radius: 6px; font-family: Consolas, monospace; }
.history-row pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; background: #f4f6f9; padding: 10px; }
button { border: 0; border-radius: 8px; padding: 9px 12px; background: #286ec9; color: white; cursor: pointer; font-size: .78rem; font-weight: 700; }
button.secondary { background: white; color: #344258; border: 1px solid #d4dbe5; }
button.rename-button { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; background: transparent; color: #71829a; }
button.rename-button:hover { background: #edf3fb; color: #286ec9; }
button.rename-button:focus-visible { outline: 2px solid #286ec9; outline-offset: 2px; }
button.warning { background: #a36b18; }
button.danger { background: #b54444; }
button.ghost-danger { background: white; border: 1px solid #e5bcbc; color: #a53434; }
button:disabled { opacity: .45; cursor: not-allowed; }
.action-note { color: #7b8799; font-size: .73rem; line-height: 1.55; }
.security-note { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 15px 18px; border: 1px solid #d6e4f5; border-radius: 12px; background: #edf5ff; color: #53657c; font-size: .8rem; }
.security-note strong { color: #215f9f; }
.empty { padding: 55px 20px; text-align: center; color: #7b8799; }
.login-panel { max-width: 430px; margin: 60px auto; }
.login-panel form { padding: 28px; background: white; border: 1px solid #e1e6ed; border-radius: 15px; box-shadow: 0 15px 45px rgba(23,32,51,.08); }
.login-panel h2 { margin: 7px 0 20px; }
.login-panel label { display: block; margin: 13px 0; color: #49566a; font-size: .8rem; font-weight: 700; }
.login-panel input { display: block; width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #d5dce6; border-radius: 8px; }
.login-panel button { width: 100%; margin-top: 5px; }
.error { min-height: 1.2em; color: #a83232; }
@media (max-width: 1050px) { .metrics { grid-template-columns: repeat(3,1fr); } .summary { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; padding: 14px; } .sidebar nav { grid-template-columns: repeat(3,1fr); } .brand-mark { padding-bottom: 14px; } .sidebar-foot { display: none; } .nav-item { justify-content: center; } .nav-item span { display: none; } .topbar, main { padding-left: 18px; padding-right: 18px; } .panel-head { align-items: stretch; flex-direction: column; } .filters input { width: 100%; } .filters { flex-direction: column; } }
@media (max-width: 520px) { .summary { grid-template-columns: 1fr 1fr; } .metrics { grid-template-columns: 1fr 1fr; } .sidebar nav { grid-template-columns: 1fr; } }
