:root{font-family:Arial,"Microsoft YaHei",sans-serif;color:#17211d;background:#f7f8f7;letter-spacing:0}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}
.topbar{height:62px;background:#fff;border-bottom:1px solid #dce2de}.topbar-inner{height:100%;max-width:1280px;margin:auto;padding:0 26px;display:flex;align-items:center;justify-content:space-between}.identity{display:flex;align-items:center;gap:11px;font-size:15px}
.brand-mark{width:42px;height:42px;display:grid;place-items:center;background:#197b56;color:white;font-size:22px;font-weight:800;border-radius:6px}.brand-mark.small{width:30px;height:30px;font-size:17px}
.text-button{border:0;background:none;color:#53615a;padding:8px}.text-button:hover{color:#10261a}
.workspace{max-width:1280px;margin:auto;padding:34px 26px 80px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:27px}h1{font-size:27px;margin:0 0 6px;font-weight:700}h2{font-size:16px;margin:0 0 18px}.muted{color:#738078;margin:0;font-size:13px}.server-state{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#53615a;white-space:nowrap}.state-dot{width:7px;height:7px;border-radius:50%;background:#1a9a62}
.summary{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #dce2de;border-bottom:1px solid #dce2de;margin-bottom:36px}.summary>div{padding:20px 0;display:flex;flex-direction:column;gap:9px}.summary span{font-size:12px;color:#6a776e}.summary strong{font-size:24px}.create-section{border-bottom:1px solid #dce2de;padding-bottom:34px;margin-bottom:34px}.create-form{display:grid;grid-template-columns:140px 110px 140px minmax(180px,1fr) auto;gap:12px;align-items:end}.create-form label{font-size:12px;color:#56655b;display:flex;flex-direction:column;gap:7px}input{height:38px;border:1px solid #cbd5ce;border-radius:5px;padding:0 11px;background:#fff;color:#17211d;min-width:0}input:focus,textarea:focus{outline:2px solid #71b68e;outline-offset:1px}.create-form button{height:38px;min-width:76px}.primary{background:#197b56;color:#fff;border:1px solid #197b56;border-radius:5px;padding:8px 18px;font-weight:600}.primary:hover{background:#136544}
.issued{margin-top:20px;padding:15px;background:#eaf6ef;border-left:3px solid #197b56;display:grid;gap:10px}.issued strong{font-size:13px}.issued textarea{width:100%;resize:vertical;border:1px solid #b8d5c4;background:#fff;border-radius:4px;padding:10px;font-family:Consolas,monospace;font-size:13px;line-height:1.5}
.settings-section{border-bottom:1px solid #dce2de;padding-bottom:34px;margin-bottom:34px}.settings-form{display:grid;grid-template-columns:150px 170px 1fr 1fr auto;gap:12px;align-items:end}.settings-form label{font-size:12px;color:#56655b;display:flex;flex-direction:column;gap:7px}.settings-form textarea{width:100%;min-width:0;resize:vertical;border:1px solid #cbd5ce;border-radius:5px;padding:9px 11px;background:#fff;color:#17211d}.settings-form button{height:38px;border:1px solid #cbd5ce;background:#fff;border-radius:5px;padding:0 17px}
.list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.list-heading h2{margin:0}.list-heading form{display:flex;gap:7px}.list-heading input{width:220px}.list-heading button,.actions button,.limit-form button{border:1px solid #cbd5ce;background:#fff;color:#34483c;border-radius:5px;padding:7px 12px}.list-heading button:hover,.actions button:hover,.limit-form button:hover{border-color:#197b56;color:#197b56}.table-scroll{overflow:auto;margin-top:17px}table{width:100%;border-collapse:collapse;min-width:950px;background:#fff}th{text-align:left;background:#eef2ef;color:#68766b;font-size:11px;font-weight:700;padding:12px;border-bottom:1px solid #dce2de}td{font-size:12px;padding:13px 12px;border-bottom:1px solid #e5eae6;vertical-align:middle}tr:hover td{background:#fafcfb}.mono{font-family:Consolas,monospace}.mono:first-child{color:#6e7c72}.nowrap{white-space:nowrap}.note-cell{max-width:190px;overflow-wrap:anywhere}.actions{white-space:nowrap}.actions form{display:inline-block;margin-right:5px}.actions button,.limit-form button{font-size:11px;padding:6px 9px}.limit-form{display:flex;align-items:center;gap:5px}.limit-form input{width:58px;height:29px;padding:0 5px}.badge{display:inline-block;padding:5px 7px;border-radius:4px;font-size:11px;font-weight:700}.badge.active{color:#126743;background:#e5f3ea}.badge.unused{color:#95620d;background:#fff3d8}.badge.stopped{color:#9b3e3e;background:#fbe8e8}.badge.expired{color:#66736a;background:#edf0ed}.empty{text-align:center;color:#75827a;padding:45px}
.login-body{min-height:100vh;display:grid;place-items:center;background:#f1f5f2}.login-panel{width:min(360px,calc(100vw - 32px));padding:30px;background:#fff;border:1px solid #dce2de;border-radius:7px}.login-panel .brand-mark{margin-bottom:23px}.login-panel h1{font-size:21px}.login-panel form{margin-top:29px;display:grid;gap:9px}.login-panel label{font-size:12px;color:#5e6d62}.login-panel .primary{margin-top:8px;height:40px}.error{color:#b13232;font-size:12px;margin:2px 0}
.delete-link{display:inline-block;color:#a13e3e;text-decoration:none;padding:6px 9px;font-size:11px}.delete-link:hover{text-decoration:underline}.confirm-workspace{max-width:640px}.confirm-workspace h1{margin-bottom:24px}.confirm-workspace p{line-height:1.6;overflow-wrap:anywhere}.confirm-actions{display:flex;align-items:center;gap:18px;margin-top:30px}.cancel-link{color:#34483c}.danger-button{height:38px;padding:0 16px;border:1px solid #a13e3e;border-radius:5px;background:#a13e3e;color:#fff}.danger-button:hover{background:#852f2f}
.apps-section{border-top:1px solid #dce2de;border-bottom:1px solid #dce2de;padding:18px 0 22px;margin-bottom:24px;display:grid;gap:14px}.app-switch{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.app-switch label,.app-create label{font-size:12px;color:#56655b}.app-switch select{height:38px;min-width:200px;max-width:100%;border:1px solid #cbd5ce;border-radius:5px;padding:0 10px;background:#fff;color:#17211d}.app-switch button,.app-create button{height:38px;border:1px solid #cbd5ce;background:#fff;color:#34483c;border-radius:5px;padding:0 14px}.app-details{display:flex;gap:22px;flex-wrap:wrap;color:#66736a;font-size:12px}.app-details code{color:#17211d;font-family:Consolas,monospace;overflow-wrap:anywhere}.app-create{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.app-create label{display:flex;flex-direction:column;gap:6px}.app-create input{width:190px}
.drivers-section{border-bottom:1px solid #dce2de;padding-bottom:34px;margin-bottom:34px}.driver-list{border-top:1px solid #dce2de}.driver-row{display:grid;grid-template-columns:170px minmax(160px,1fr) minmax(180px,260px) 72px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e5eae6}.driver-row strong{font-size:13px}.driver-status{min-width:0;color:#66736a;font-size:12px;line-height:1.5}.driver-status code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#34483c}.driver-row input[type=file]{height:auto;padding:7px;font-size:12px}.driver-row button{height:36px;border:1px solid #cbd5ce;background:#fff;border-radius:5px;color:#34483c}
@media(max-width:900px){.settings-form{grid-template-columns:1fr 1fr}.settings-form label:first-of-type{grid-column:1/-1}.settings-form button{grid-column:1/-1}}
@media(max-width:680px){.topbar-inner,.workspace{padding-left:16px;padding-right:16px}.workspace{padding-top:24px}.apps-section{align-items:stretch}.app-switch select{flex:1;min-width:0}.app-create{display:grid;grid-template-columns:1fr 1fr}.app-create input{width:100%}.app-create button{grid-column:1/-1}.summary{grid-template-columns:repeat(2,1fr);row-gap:0}.summary>div{padding:15px 0}.create-form{grid-template-columns:1fr 1fr}.create-form .note-field{grid-column:1/-1}.create-form button{grid-column:1/-1}.settings-form{grid-template-columns:1fr}.settings-form label:first-of-type{grid-column:auto}.list-heading{align-items:stretch;flex-direction:column}.list-heading form{width:100%}.list-heading input{flex:1;min-width:0}}
@media(max-width:680px){.driver-row{grid-template-columns:1fr 72px}.driver-row strong,.driver-status{grid-column:1/-1}.driver-row input[type=file]{width:100%}}

/* Admin workspace */
.dashboard-body{padding-left:218px;background:#f3f5f7}
.sidebar{position:fixed;inset:0 auto 0 0;width:218px;background:#253734;color:#edf5f1;display:flex;flex-direction:column;z-index:3}
.sidebar-brand{min-height:68px;padding:0 22px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #41544e;font-size:17px}
.sidebar-brand .brand-mark{background:#3dbb85;color:#102b20}
.sidebar nav{display:flex;flex-direction:column;gap:3px;padding:19px 12px;overflow:auto}
.sidebar a{display:block;padding:10px 15px;color:#d8e4dd;text-decoration:none;font-size:13px;border-radius:5px;border-left:3px solid transparent}
.sidebar a:hover,.sidebar a:focus-visible{background:#344b44;color:#fff;border-left-color:#54c894;outline:none}
.sidebar a[aria-current=page]{background:#344b44;color:#fff;border-left-color:#54c894;font-weight:700}
.nav-label{padding:12px 18px 6px;font-size:11px;color:#9db4a8}
.sidebar-footer{margin-top:auto;padding:18px 24px;border-top:1px solid #41544e;font-size:12px;overflow-wrap:anywhere}
.sidebar-footer small{display:block;color:#a8c0b3;margin-top:5px;font-family:Consolas,monospace}
.dashboard-topbar .topbar-inner{max-width:none;padding:0 38px}
.dashboard-topbar .identity{gap:14px}
.topbar-app{font-size:12px;color:#75827a;padding-left:14px;border-left:1px solid #dce2de}
.dashboard-workspace{max-width:none;min-height:calc(100vh - 62px);padding:30px 38px 70px}
.dashboard-workspace section,.dashboard-workspace .page-heading{scroll-margin-top:20px}
.dashboard-workspace .page-heading{margin-bottom:22px}
.dashboard-workspace h1{font-size:24px}
.heading-actions{display:flex;gap:8px;flex-wrap:wrap}
.heading-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:0 13px;border:1px solid #c8d3ce;border-radius:5px;color:#285340;background:#fff;text-decoration:none;font-size:12px;font-weight:600}
.heading-actions a:first-child{background:#197b56;color:#fff;border-color:#197b56}
.heading-actions a:hover{border-color:#197b56}
.dashboard-workspace .summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;border:0;margin-bottom:28px}
.dashboard-workspace .summary>div{padding:17px 18px;min-height:92px;gap:7px;border:1px solid #e2e8e4;border-radius:6px;background:#fff;box-shadow:0 2px 6px #122e1a08}
.dashboard-workspace .summary strong{font-size:24px;line-height:1.15;color:#1d3d31}
.dashboard-workspace .summary>div:nth-child(2) strong{color:#167e74}
.dashboard-workspace .summary>div:nth-child(5) strong{color:#c05d4e}
.section-heading{display:flex;align-items:baseline;gap:12px}
.section-heading span{color:#75827a;font-size:12px}
.apps-section{border-top:0}
.dashboard-workspace .apps-section,.dashboard-workspace .create-section,.dashboard-workspace .settings-section,.dashboard-workspace .drivers-section{padding-bottom:25px;margin-bottom:25px}
.dashboard-workspace .list-section{padding:2px 0 25px;margin-bottom:25px;border-bottom:1px solid #dce2de}
.dashboard-workspace .table-scroll{border:1px solid #dde5df;border-radius:6px}
.dashboard-workspace table{min-width:1000px}
.dashboard-workspace th{background:#f5f8f6}
.dashboard-workspace td{background:#fff}
.dashboard-workspace .online-clients-table{min-width:1800px}
.online-clients-table th,.online-clients-table td{border:1px solid #dde5df;white-space:nowrap}
.identity-policy-form{display:grid;gap:7px;min-width:165px}.identity-policy-form label{display:grid;gap:4px;color:#68766b;font-size:11px}.identity-policy-form select{padding:5px;border:1px solid #cbd5ce;border-radius:4px;background:#fff;color:#17211d}.identity-policy-form button{padding:6px;border:1px solid #cbd5ce;border-radius:4px;background:#fff;color:#197b56}
.card-code-cell{min-width:255px;white-space:nowrap}.card-code{display:inline-block;color:#17211d;font-size:12px;user-select:all}.copy-card{margin-left:8px;border:1px solid #cbd5ce;border-radius:4px;background:#fff;color:#197b56;padding:4px 7px;font-size:11px}.copy-card:hover{border-color:#197b56}.legacy-card{display:block;margin-top:4px;color:#75827a;font-size:11px}
.data-section{padding:2px 0 27px;margin-bottom:25px;border-bottom:1px solid #dce2de}.data-section .section-heading{margin-bottom:14px}.data-section h2{margin:0}.data-meta{display:flex;flex-wrap:wrap;gap:18px 28px;margin:0 0 16px;font-size:12px}.data-meta div{min-width:100px}.data-meta dt{color:#68766b;margin-bottom:5px}.data-meta dd{margin:0;font-weight:600}.data-meta code,.digest,.stored-file{font-family:Consolas,monospace;overflow-wrap:anywhere}.data-meta .digest-item{flex-basis:100%}.data-empty{color:#75827a;font-size:13px;padding:20px 0}.data-values-scroll{max-height:420px}.dashboard-workspace .data-values-table{min-width:480px}.data-values-table th{position:sticky;top:0;z-index:1}.dashboard-workspace .stored-files-table{min-width:720px}.stored-file{display:block;max-width:320px;margin-top:6px;color:#66736a;font-size:11px}.digest{font-size:11px}
.stored-files-table .empty{text-align:left;padding:28px 12px}
.diagnostics-section{padding:2px 0 27px;margin-bottom:25px;border-bottom:1px solid #dce2de}.diagnostics-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.diagnostics-toolbar h2{margin-bottom:8px}.diagnostics-toolbar form{flex:0 0 auto}.diagnostics-state{display:flex;align-items:center;gap:10px;margin-top:18px}.diagnostics-state strong{font-size:22px}.download-link{display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border:1px solid #c8d3ce;border-radius:5px;color:#197b56;background:#fff;text-decoration:none;font-size:12px;font-weight:600}.download-link:hover{border-color:#197b56}.diagnostics-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.diagnostics-actions form{margin:0}.clear-log-button{height:32px;font-size:12px;padding:0 11px}.clear-log-button:disabled{cursor:not-allowed;opacity:.45}.dashboard-workspace .diagnostic-cards-table{min-width:620px}.dashboard-workspace .diagnostics-table{min-width:2150px}.diagnostics-scroll{max-height:620px}.diagnostics-table th{position:sticky;top:0;z-index:1}.diagnostics-table td{white-space:nowrap}
@media(max-width:1200px){.dashboard-workspace .summary{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-workspace .create-form{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-workspace .create-form .note-field{grid-column:1/3}.dashboard-workspace .create-form button{grid-column:3}}
@media(max-width:800px){.dashboard-body{padding-left:0}.sidebar{position:static;width:100%;height:auto}.sidebar-brand{min-height:52px;padding:0 17px}.sidebar nav{flex-direction:row;align-items:center;gap:1px;padding:5px 9px 10px;overflow-x:auto}.sidebar a{white-space:nowrap;padding:7px 10px;border-left:0;border-bottom:2px solid transparent}.sidebar a:hover,.sidebar a:focus-visible{border-left:0;border-bottom-color:#54c894}.nav-label,.sidebar-footer{display:none}.dashboard-topbar .topbar-inner{padding:0 18px}.dashboard-workspace{padding:24px 18px 55px}}
@media(max-width:800px){.sidebar a[aria-current=page]{border-left:0;border-bottom:2px solid #54c894}}
@media(max-width:600px){.diagnostics-toolbar{flex-direction:column}.diagnostics-state{align-items:flex-start;flex-wrap:wrap}.diagnostics-actions{margin-left:0;flex-wrap:wrap}}
@media(max-width:600px){.dashboard-workspace .page-heading{align-items:flex-start;flex-direction:column}.dashboard-workspace .summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-workspace .summary>div{min-height:82px}.dashboard-workspace .create-form{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-workspace .create-form .note-field,.dashboard-workspace .create-form button{grid-column:1/-1}.topbar-app{display:none}}
