:root{color-scheme:dark;--bg:#07111b;--panel:#0b1a27;--line:#243d52;--text:#e7f0f7;--muted:#91a8bb;--blue:#168fdd;--cyan:#53d3ff;--green:#4bd99a;--amber:#f0c56a;--red:#ff8792}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 12% 0,#113149 0,transparent 42%),var(--bg);color:var(--text);font:14px/1.5 "Segoe UI",Arial,sans-serif}.shell{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:30px 0 24px}.page-heading,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.page-heading{margin:0 0 20px}.eyebrow{color:var(--cyan);font-size:10px;font-weight:800;letter-spacing:.16em}.page-heading h1{margin:5px 0;font-size:30px;line-height:1.2}.page-heading p,.panel-heading p{margin:5px 0 0;color:var(--muted)}.local-badge{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #31556e;border-radius:20px;background:#0d2535;color:#9fdbf4;font-size:11px;font-weight:800;white-space:nowrap}.local-badge i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 8px #4bd99a}.notice{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;padding:13px 16px;margin-bottom:16px;border:1px solid #826c3e;border-radius:8px;background:#292515;color:#d8c798;font-size:12px}.notice b{color:#ffe199}.metrics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:16px}.metrics-grid article{display:grid;gap:4px;min-width:0;padding:12px;border:1px solid #29465c;border-radius:8px;background:linear-gradient(145deg,#0f2536,#0a1925)}.metrics-grid small{color:#8fa9bd;font-size:9px;font-weight:800;letter-spacing:.07em}.metrics-grid b{color:#eaf5fd;font-size:20px;font-variant-numeric:tabular-nums}.panel{min-width:0;margin:0 0 16px;padding:18px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(150deg,#0e2030,#0a1722 75%);box-shadow:0 12px 28px #0003}.panel-heading{margin-bottom:14px}.panel-heading h2{margin:3px 0 0;font-size:18px}.settings-panel{padding-bottom:14px}.port-form{display:grid;grid-template-columns:minmax(180px,260px) auto minmax(0,1fr);align-items:end;gap:10px}.port-form label,.customer-form label,.activation-form label,.licensed-user-form label{display:grid;gap:5px;min-width:0;color:#afc2d2;font-size:11px;font-weight:700}.port-form input,.customer-form input,.activation-form input,.licensed-user-form input{width:100%;min-width:0;height:38px;padding:8px 10px;border:1px solid #31506a;border-radius:6px;background:#071722;color:#eff8ff;font:inherit}.port-form input:focus,.customer-form input:focus,.activation-form input:focus,.licensed-user-form input:focus{outline:2px solid #38bdf866;border-color:#38bdf8}.port-form>span{min-height:38px;align-content:center;color:#9fc5dc;font-size:11px;overflow-wrap:anywhere}.primary-button,.secondary-button,.danger-button{min-height:38px;padding:8px 12px;border-radius:6px;color:#fff;font:inherit;font-weight:750;cursor:pointer}.primary-button{border:1px solid #168fdd;background:linear-gradient(120deg,#168fdd,#0875c0)}.primary-button:hover{filter:brightness(1.14)}.secondary-button{border:1px solid #35546b;background:#11283a;color:#cce3f2}.secondary-button:hover{border-color:#4b89af;background:#17364d}.danger-button{border:1px solid #763c48;background:#321b22;color:#ffb3bb}.danger-button:hover{background:#48212b}.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled{opacity:.5;cursor:not-allowed}.customer-form{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;align-items:end}.status-line{min-height:0;margin:8px 0 0;color:var(--muted);font-size:12px}.status-line:empty{display:none}.code-result{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid #267f63;border-radius:7px;background:#0c2b24}.code-result-heading b,.code-result-heading small{display:block}.code-result-heading small{margin-top:3px;color:#9ed2ba}.code-result-list{display:grid;gap:6px}.code-result-row{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,1.5fr) auto;align-items:center;gap:10px;padding:7px 9px;border:1px solid #205843;border-radius:6px;background:#09251e}.code-result-row>b{font-size:11px;color:#c9f4da}.code-result-row code{overflow-wrap:anywhere;color:#9effce;font-size:12px;font-weight:800;letter-spacing:.04em}.code-result-row button{min-height:30px;padding:4px 8px;font-size:10px}.customer-list{display:grid;gap:12px}.empty{padding:7px;color:var(--muted);font-size:11px}.customer-card{min-width:0;border:1px solid #2b465b;border-radius:8px;background:#091824;overflow:hidden}.customer-card.status-active{border-left:4px solid var(--green)}.customer-card.status-grace{border-left:4px solid var(--amber)}.customer-card.status-blocked,.customer-card.status-invalid{border-left:4px solid var(--red)}.customer-summary{display:grid;grid-template-columns:minmax(170px,1.2fr) repeat(4,minmax(80px,.55fr)) minmax(260px,1.4fr);align-items:center;gap:12px;padding:13px}.customer-name b,.customer-name small,.metric b,.metric small{display:block}.customer-name b{font-size:15px}.customer-name small,.metric small{color:var(--muted);font-size:10px}.metric b{font-size:12px}.status-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border:1px solid currentColor;border-radius:20px;font-size:10px;font-weight:800;text-transform:uppercase}.status-active .status-badge{color:var(--green)}.status-grace .status-badge{color:var(--amber)}.status-blocked .status-badge,.status-invalid .status-badge{color:var(--red)}.customer-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.customer-actions button{min-height:32px;padding:5px 9px;font-size:10px}.customer-users{padding:12px;border-top:1px solid #233c50;background:#081621}.customer-users-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.customer-users-heading b,.customer-users-heading small{display:block}.customer-users-heading b{color:#dcecf6;font-size:12px}.customer-users-heading small{color:var(--muted);font-size:10px}.seat-count{padding:3px 8px;border:1px solid #355a72;border-radius:14px;background:#0d2737;color:#9edfff;font-size:10px;font-weight:800;white-space:nowrap}.licensed-user-form{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(180px,1fr) auto;gap:9px;align-items:end;margin:0 0 10px;padding:10px;border:1px solid #223c50;border-radius:7px;background:#0a1b28}.licensed-user-list{display:grid;gap:6px}.licensed-user{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #29465b;border-radius:6px;background:#0c2030}.licensed-user b,.licensed-user small{display:block}.licensed-user b{font-size:12px}.licensed-user small{color:#88a3b8;font-size:10px}.licensed-user .danger-button{min-height:30px;padding:4px 8px;font-size:10px;white-space:nowrap}.user-empty{margin:0}.machine-list{display:flex;flex-wrap:wrap;gap:7px;padding:0 12px 12px}.machine-chip{display:grid;gap:1px;padding:6px 9px;border:1px solid #29465b;border-radius:6px;background:#0c2030}.machine-chip b{font-size:11px}.machine-chip small{color:var(--muted);font-size:9px}.activation-form{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:10px;align-items:end}.activation-result{margin-top:13px;padding:12px;border:1px solid #30546c;border-radius:7px;background:#081722;overflow:auto}.activation-result pre{max-height:300px;overflow:auto;color:#b8d5e6;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.activation-result .success{color:var(--green);font-weight:800}.activation-result .error{color:var(--red);font-weight:800}footer{padding:8px 2px;color:#71899c;font-size:10px;text-align:center}
@media(max-width:1100px){.metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-name{grid-column:span 2}.customer-actions{grid-column:1/-1;justify-content:flex-start}.customer-form{grid-template-columns:repeat(2,minmax(0,1fr))}.activation-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.shell{width:min(100% - 22px,1240px);padding-top:18px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:25px}.panel{padding:13px}.panel-heading{align-items:flex-start}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.metrics-grid article{padding:9px}.metrics-grid b{font-size:17px}.customer-form,.activation-form,.licensed-user-form{grid-template-columns:1fr}.port-form{grid-template-columns:minmax(0,1fr) auto}.port-form>span{grid-column:1/-1}.notice{grid-template-columns:1fr;gap:3px}.customer-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.customer-name{grid-column:1/-1}.customer-actions{grid-column:1/-1}.customer-actions button{flex:1}.code-result-row{grid-template-columns:minmax(0,1fr) auto}.code-result-row>b{grid-column:1/-1}.licensed-user{align-items:flex-start;flex-direction:column}.licensed-user .danger-button{width:100%}.status-badge{width:max-content}}
.endpoint-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(120px,1fr);gap:10px;margin-top:12px}.endpoint-grid label{display:grid;gap:5px;min-width:0;color:#afc2d2;font-size:11px;font-weight:700}.endpoint-grid input{height:38px;width:100%;min-width:0;padding:8px 10px;border:1px solid #31506a;border-radius:6px;background:#071722;color:#9effce;font:inherit;font-weight:750}.login-panel{max-width:680px;margin:0 auto 18px}#adminContent[hidden],#loginPanel[hidden]{display:none!important}@media(max-width:650px){.endpoint-grid{grid-template-columns:1fr}}
.settings-panel #settingsForm{grid-template-columns:minmax(180px,260px) minmax(220px,1fr) auto minmax(0,1fr)}@media(max-width:650px){.settings-panel #settingsForm{grid-template-columns:minmax(0,1fr) auto}}
.brand-heading{display:flex;align-items:center;gap:13px}.brand-heading img{flex:none;border-radius:13px;box-shadow:0 0 16px #08bce955}.brand-heading h1{margin-top:5px}
.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.payment-alerts{display:grid;gap:7px;margin:-7px 0 16px}.payment-alerts[hidden]{display:none}.payment-alert{display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid #705a32;border-radius:7px;background:#2b2414;color:#efd28f;font-size:12px}.payment-alert b{color:#ffe5a4}.payment-alert.urgent{border-color:#82414a;background:#311b21;color:#ffbdc4}.payment-alert.urgent b{color:#ffd0d5}.plan-list{display:grid;gap:7px;margin-top:12px}.plan-chip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #28485e;border-radius:7px;background:#0a1b28}.plan-chip b,.plan-chip small{display:block}.plan-chip small{color:#90aabd;font-size:10px}.plan-chip>div:last-child{display:flex;gap:6px}.plan-chip button{min-height:30px;padding:4px 9px;font-size:10px}.machine-online b{color:var(--green)}
.manager-list{display:grid;gap:7px;margin-top:12px}.manager-chip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #28485e;border-radius:7px;background:#0a1b28}.manager-chip b,.manager-chip small{display:block}.manager-chip small{color:#90aabd;font-size:10px}.manager-chip>div:last-child{display:flex;gap:6px}.manager-chip button{min-height:30px;padding:4px 9px;font-size:10px}

/* CRM workspace */
:root{color-scheme:light;--bg:#f3f6fb;--panel:#fff;--line:#e3e8f0;--text:#172338;--muted:#718096;--blue:#3769dc;--cyan:#3769dc;--green:#198754;--amber:#a76607;--red:#c0394d}
body{background:#f3f6fb;color:var(--text)}
.shell{width:100%;min-height:100vh;margin:0;padding:0;display:grid;grid-template-columns:248px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:24px;padding:22px 16px;background:#fff;border-right:1px solid #e4e9f1}
.brand-heading{gap:11px;padding:3px 7px 12px}.brand-heading img{border-radius:12px;box-shadow:0 4px 12px #243b701a}.brand-heading b,.brand-heading small{display:block}.brand-heading b{font-size:17px;letter-spacing:.01em}.brand-heading small{color:#7c8798;font-size:11px;margin-top:2px}
.sidebar-label{padding:0 10px;margin-bottom:-17px;color:#99a3b3;font-size:10px;font-weight:800;letter-spacing:.13em}
.side-nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:8px;background:transparent;color:#56647a;text-align:left;font:600 13px "Segoe UI",Arial,sans-serif;cursor:pointer}.nav-item span{width:20px;color:#8290a4;font-size:17px;text-align:center}.nav-item:hover{background:#f2f5fb;color:#263b65}.nav-item.active{background:#eaf0ff;color:#2d5dcc}.nav-item.active span{color:#3769dc}
.sidebar-footer{margin-top:auto;padding:13px 10px;border-top:1px solid #edf0f5;color:#7b8799;font-size:11px;line-height:1.8}.sidebar-footer i,.local-badge i{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#2eae76}
.workspace{min-width:0;padding:26px clamp(18px,3vw,42px) 22px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:27px;color:#172338}.page-heading p,.panel-heading p{color:#7b8799}.eyebrow{color:#526987}.local-badge{border:1px solid #dce6f5;background:#fff;color:#53677f}.notice{grid-template-columns:90px minmax(0,1fr);border-color:#e2e8f2;background:#fff;color:#66758b}.notice b{color:#405675}
.content-view{display:none}.content-view.active-view{display:block}.content-view[hidden]{display:none!important}
.metrics-grid{gap:12px}.metrics-grid article,.panel{border:1px solid #e5eaf2;border-radius:11px;background:#fff;box-shadow:0 2px 10px #1b35520a}.metrics-grid article{padding:16px}.metrics-grid small{color:#7d8aa0}.metrics-grid b{color:#1d2b43}.panel{padding:20px}.panel-heading h2{color:#1b2b45}.port-form label,.customer-form label,.activation-form label,.licensed-user-form label,.endpoint-grid label{color:#5b6980}
.port-form input,.customer-form input,.customer-form select,.activation-form input,.licensed-user-form input,.endpoint-grid input{border-color:#d8e0eb;background:#fff;color:#26364e}.port-form input:focus,.customer-form input:focus,.activation-form input:focus,.licensed-user-form input:focus{outline:2px solid #3769dc30;border-color:#7b9ce9}.primary-button{border-color:#315fd0;background:#3769dc}.primary-button:hover{filter:brightness(.96)}.secondary-button{border-color:#d8e0eb;background:#fff;color:#485a74}.secondary-button:hover{border-color:#9ab0df;background:#f7f9fe}.danger-button{border-color:#f0c7ce;background:#fff5f6;color:#b23448}
.code-result{border-color:#c2e5d2;background:#f2fbf5}.code-result-heading small{color:#668271}.code-result-row,.plan-chip,.manager-chip,.customer-card,.licensed-user,.licensed-user-form{border-color:#e2e8f0;background:#fff}.code-result-row>b,.code-result-row code{color:#285844}.customer-card.status-active{border-left-color:#35a875}.customer-card.status-grace{border-left-color:#e0a337}.customer-card.status-blocked,.customer-card.status-invalid{border-left-color:#d95868}.customer-users{border-color:#e5eaf2;background:#fafbfd}.customer-users-heading b{color:#283952}.customer-users-heading small,.licensed-user small,.plan-chip small,.manager-chip small{color:#7b8799}.seat-count{border-color:#d8e3f4;background:#f2f6ff;color:#4669ad}.status-badge{font-size:9px}.status-active .status-badge{color:#198754}.status-grace .status-badge{color:#a76607}.status-blocked .status-badge,.status-invalid .status-badge{color:#c0394d}.machine-chip{border-color:#e1e8ef;background:#fff}.machine-online b{color:#198754}.payment-alert{border-color:#efdaad;background:#fff9e9;color:#82631e}.payment-alert b{color:#76520d}.payment-alert.urgent{border-color:#f0c7ce;background:#fff3f4;color:#9d3848}.payment-alert.urgent b{color:#a22f42}.status-line,.empty{color:#78869a}.endpoint-grid input{color:#315f9e}.login-panel{margin-top:30px}footer{grid-column:2;padding:0 clamp(18px,3vw,42px) 18px;color:#8a95a6;font-size:11px}
@media(max-width:900px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:18px 11px}.workspace{padding:22px 18px}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-name{grid-column:span 2}.customer-actions{grid-column:1/-1}}
@media(max-width:620px){.shell{display:block}.sidebar{position:static;height:auto;gap:12px;padding:12px 14px;border-right:0;border-bottom:1px solid #e4e9f1}.sidebar .brand-heading{padding:0}.sidebar-label,.sidebar-footer{display:none}.side-nav{display:flex;gap:4px;overflow:auto;padding:2px}.nav-item{flex:0 0 auto;width:auto;padding:9px 11px}.workspace{padding:17px 12px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:24px}.local-badge{white-space:normal}.notice{grid-template-columns:1fr;gap:2px}.panel{padding:14px}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.port-form,.settings-panel #settingsForm{grid-template-columns:1fr}.port-form>span{grid-column:auto}.customer-form,.activation-form,.licensed-user-form{grid-template-columns:1fr}.customer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-name,.customer-actions{grid-column:1/-1}.code-result-row{grid-template-columns:minmax(0,1fr) auto}footer{padding:0 12px 14px}}
.machine-chip{grid-template-columns:minmax(0,1fr) auto;align-items:center}.machine-chip>div b,.machine-chip>div small{display:block}.machine-chip .danger-button{min-height:28px;padding:4px 8px;font-size:10px}@media(max-width:650px){.machine-chip{grid-template-columns:1fr}.machine-chip .danger-button{width:100%}}

/* Polished CRM plan selector and customer form */
.create-panel .customer-form{grid-template-columns:minmax(220px,1.15fr) minmax(280px,1.15fr) minmax(250px,.9fr);gap:14px;align-items:end}
.customer-form select{appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:42px;padding:0 42px 0 12px;border:1px solid #d8e0eb;border-radius:8px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6f8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;color:#26364e;font:600 13px/1.2 "Segoe UI",Arial,sans-serif;cursor:pointer;transition:border-color .15s,box-shadow .15s,background-color .15s}
.customer-form select:hover{border-color:#a9bbd6;background-color:#fcfdff}
.customer-form select:focus-visible{outline:0;border-color:#6f91df;box-shadow:0 0 0 3px #3769dc24}
.customer-form select option{padding:8px;background:#fff;color:#26364e;font-weight:500}
.update-form{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(240px,1.2fr) minmax(240px,1fr) auto;gap:12px;align-items:end;padding:14px;border:1px solid #e2e8f0;border-radius:9px;background:#fafbfd}.update-form label{display:grid;gap:6px;color:#5b6980;font-size:11px;font-weight:700}.update-form input,.update-form textarea{width:100%;min-width:0;padding:10px;border:1px solid #d8e0eb;border-radius:7px;background:#fff;color:#26364e;font:500 12px "Segoe UI",Arial,sans-serif}.update-form textarea{resize:vertical;min-height:66px}.update-form input[type=file]{padding:8px}.update-list{display:grid;gap:11px;margin-top:14px}.update-card{padding:15px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.update-card-heading{display:flex;justify-content:space-between;gap:15px}.update-card-heading b,.update-card-heading small{display:block}.update-card-heading b{font-size:16px}.update-card-heading small,.update-card-heading>span,.update-card p,.update-card details{color:#718096;font-size:11px}.update-card>p{white-space:pre-wrap}.update-card details code{display:block;overflow-wrap:anywhere;margin-top:7px}.update-targets{margin:12px 0}.update-targets>b{font-size:12px}.update-targets>div{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px;margin-top:8px}.update-targets label{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #e2e8f0;border-radius:7px;background:#fafbfd;color:#42546d;font-size:11px}.update-actions{display:flex;justify-content:flex-end;margin-top:10px}
.create-panel .customer-form>button{min-height:42px;white-space:nowrap;box-shadow:0 3px 9px #315fd01c}
.code-result[hidden],.activation-result[hidden]{display:none!important}
@media(max-width:900px){.create-panel .customer-form{grid-template-columns:repeat(2,minmax(0,1fr))}.create-panel .customer-form>button{grid-column:1/-1}}
@media(max-width:620px){.create-panel .customer-form{grid-template-columns:minmax(0,1fr)}.create-panel .customer-form>button{grid-column:auto}.customer-form select{height:44px}}
@media(max-width:900px){.update-form{grid-template-columns:repeat(2,minmax(0,1fr))}.update-form>button{grid-column:1/-1}}
@media(max-width:620px){.update-form{grid-template-columns:minmax(0,1fr)}.update-form>button{grid-column:auto}}
.retry-upload{display:flex;align-items:center;gap:8px;margin-right:auto;color:#53677f;font-size:11px}.retry-upload input{max-width:240px;font-size:11px}
.online-clients-panel{padding:16px 18px}.online-clients-panel .panel-heading{align-items:center;margin-bottom:10px}.online-clients-panel .panel-heading>small{color:var(--muted);font-size:11px}.online-client-list{display:flex;flex-wrap:wrap;gap:9px}.online-client-chip{display:grid;gap:2px;min-width:min(100%,230px);padding:10px 12px;border:1px solid #2c7055;border-radius:8px;background:linear-gradient(145deg,#102d25,#0b1f1c)}.online-client-chip b{display:flex;align-items:center;gap:7px;color:#a9efc8}.online-client-chip b i{width:8px;height:8px;border-radius:50%;background:#35cf81;box-shadow:0 0 8px #35cf8180}.online-client-chip span{color:#edf7f1;font-weight:650}.online-client-chip small{color:#91b5a1;font-size:10px}.machine-key-hint{margin:0;padding:9px 12px;border:1px solid #c7943d;border-radius:7px;background:#fff8e8;color:#77591f;font-size:11px}
body.auth-pending .sidebar,body.auth-pending footer,body.auth-required .sidebar,body.auth-required footer{display:none!important}
body.auth-pending .shell,body.auth-required .shell{grid-template-columns:minmax(0,1fr);width:min(100% - 32px,760px);min-height:100vh;margin:0 auto}
body.auth-pending .workspace,body.auth-required .workspace{grid-column:1;padding:28px 0}
body.auth-required .page-heading,body.auth-required .notice{display:none}
body.auth-required .login-panel{width:100%;max-width:none;margin:auto}

.licensed-user-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.licensed-user-actions button{white-space:nowrap}.licensed-user.user-disabled{opacity:.7;border-color:#b65353}.licensed-user.user-disabled b{color:#9a3030}

.customer-actions{padding:4px 0;row-gap:9px}.customer-backup-link{display:inline-flex;align-items:center;text-decoration:none}.licensed-user-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px;padding:3px 0}.licensed-user-actions>a{display:inline-flex;align-items:center;text-decoration:none}


.restore-progress{display:grid;gap:4px;max-width:420px;margin-top:7px;color:#60738a;font-size:10px}.restore-progress>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.restore-progress>div b{color:#315f9e;font-size:10px}.restore-progress progress{display:block;width:100%;height:9px;overflow:hidden;border:0;border-radius:99px;background:#e9eef6;accent-color:#3769dc}.restore-progress progress::-webkit-progress-bar{border-radius:99px;background:#e9eef6}.restore-progress progress::-webkit-progress-value{border-radius:99px;background:linear-gradient(90deg,#4b7de7,#37b6de);transition:width .45s ease}.restore-progress progress::-moz-progress-bar{border-radius:99px;background:linear-gradient(90deg,#4b7de7,#37b6de)}.restore-progress small{color:#7a8798;font-size:10px}.restore-progress-failed>div b,.restore-progress-failed small{color:#b23448}.restore-progress-failed progress::-webkit-progress-value{background:#c0394d}.restore-progress-failed progress::-moz-progress-bar{background:#c0394d}

/* Keep the CRM controls readable and in a predictable row at desktop widths. */
.customer-summary{grid-template-columns:minmax(190px,1.15fr) repeat(4,minmax(100px,.55fr));align-items:center;row-gap:12px;padding:16px}
.customer-actions{grid-column:1/-1;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid #e7ebf2}
.customer-actions button,.customer-actions .customer-backup-link{min-height:36px;padding:7px 11px;font-size:11px}
.customer-backup-actions{display:flex;align-items:center;gap:6px;padding:3px;border:1px solid #e0e7f1;border-radius:8px;background:#f8faff}
.customer-backup-actions button,.customer-backup-actions .customer-backup-link{min-height:34px;padding:6px 10px;font-size:11px}
.customer-users{padding:15px;border-top:1px solid #e5eaf2;background:#fafbfd}
.licensed-user{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,auto);align-items:center;gap:12px;padding:11px 12px}
.licensed-user-actions{gap:7px}
.licensed-user-backup-actions{display:flex;align-items:center;gap:5px;padding:3px;border:1px solid #e0e7f1;border-radius:8px;background:#f8faff}
.licensed-user-backup-actions>a{display:inline-flex;align-items:center;text-decoration:none}
.licensed-user-backup-actions button,.licensed-user-backup-actions>a{min-height:34px;padding:6px 10px;font-size:11px}
.licensed-user-actions button,.licensed-user-actions>a{min-height:34px;padding:6px 10px;font-size:11px}
.licensed-user small,.customer-users-heading small{font-size:11px}
.live-clients-error{color:#9d3848}
.dashboard-status{margin:10px 0 16px;padding:10px 12px;border:1px solid #efdaad;border-radius:8px;background:#fff9e9;color:#76520d;font-size:12px}
.dashboard-status[hidden]{display:none!important}
.dashboard-status-error{border-color:#f0c7ce;background:#fff3f4;color:#9d3848}
@media(max-width:1050px){.customer-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-name{grid-column:span 2}.customer-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:650px){.customer-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.customer-name{grid-column:1/-1}.customer-actions{grid-column:1/-1;justify-content:stretch}.customer-actions button,.customer-actions .customer-backup-link{flex:1 1 150px;justify-content:center}.customer-backup-actions{flex:1 1 100%;justify-content:center}.customer-backup-actions>*{flex:1;justify-content:center}.licensed-user{grid-template-columns:minmax(0,1fr)}.licensed-user-actions{justify-content:flex-start}.licensed-user-backup-actions{flex:1 1 100%;justify-content:center}.licensed-user-backup-actions>*{flex:1;justify-content:center}.licensed-user-actions button,.licensed-user-actions>a{flex:1 1 145px;justify-content:center}}
