/* Customer workspace: a presentation layer over the existing customer flows. */
body.customer-surface {
  --bg:#f5f7fb;--panel:#fff;--ink:#192b46;--muted:#67768c;
  --line:#e1e7ef;--accent:#2563eb;--accent-ink:#fff;--soft:#edf3ff;
  --workspace-rail:#14263f;--workspace-rail-muted:#aabbd1;
  background:var(--bg);font-size:14px;line-height:1.6;
}
:root[data-theme=dark] body.customer-surface {
  --bg:#0d1727;--panel:#152238;--ink:#e7edf7;--muted:#a4b3c9;
  --line:#2c3d56;--accent:#73a7ff;--accent-ink:#10213c;--soft:#1d3354;
  --workspace-rail:#0a1423;--workspace-rail-muted:#acbbd1;
}
.customer-surface [hidden]{display:none!important}
.customer-surface button,.customer-surface input,.customer-surface select,.customer-surface textarea {border-radius:8px}
.customer-surface button {font-size:13px;font-weight:550;transition:background-color .14s,border-color .14s}
.customer-surface button.primary,.customer-surface .actions a[data-browser-open] {background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.customer-surface button.primary:hover:enabled {filter:brightness(.96)}
.customer-surface input,.customer-surface select,.customer-surface textarea {font-size:14px;min-height:44px}
.customer-surface label {font-size:13px;gap:6px}
.customer-surface form {gap:14px}
.customer-surface h1 {font-size:26px;line-height:1.3;letter-spacing:-.025em}
.customer-surface h2 {font-size:17px;line-height:1.4;margin-bottom:12px}
.customer-surface h3 {font-size:15px}
.customer-surface .help {line-height:1.65}
.customer-surface .masthead {height:74px;padding:0 28px;gap:20px;background:var(--panel);position:relative;z-index:5}
.customer-surface .brand {font-size:16px;gap:10px}
.customer-surface .brand small {font-size:11px;letter-spacing:.05em}
.customer-surface .brand .mark {width:34px;height:34px;border-radius:9px;font-size:13px;flex-shrink:0}
.customer-surface .header-actions {gap:10px;margin-left:auto}
.customer-surface .header-actions button {min-height:36px;padding:6px 12px;font-size:12px;background:transparent}
.customer-surface .header-actions a {font-size:12px}
.customer-surface main {padding:28px;max-width:1240px;min-width:0}
.customer-surface .site-footer {font-size:11px;border-color:var(--line);padding:20px 28px;max-width:none}
.workspace-rail {display:none}
.customer-surface .workspace-page-heading {margin-bottom:26px;align-items:center;gap:20px}
.workspace-page-heading .eyebrow {font-size:11px;letter-spacing:.09em;margin-bottom:5px}
.workspace-page-heading #workspace-description {font-size:13px;line-height:1.55;margin-top:8px}
.customer-surface #refresh {min-height:38px;padding:7px 13px;white-space:nowrap;font-size:12px;flex-shrink:0}
.customer-surface .panel,.customer-surface .browser-card {padding:22px;border-radius:12px;border-color:var(--line);margin-bottom:18px}
.customer-surface .split {gap:20px;align-items:start}
.customer-surface .two {gap:12px}
.customer-surface .table-wrap {margin:10px 0 22px;border-radius:10px}
.customer-surface th {background:color-mix(in srgb,var(--bg) 80%,var(--panel));font-size:12px;color:var(--muted)}
.customer-surface th,.customer-surface td {padding:12px 16px}
.customer-surface .empty {padding:22px;font-size:13px;background:var(--panel)}
.customer-surface .workspace-record-heading {margin:24px 0 10px;font-size:15px}
.customer-surface .workspace-balance {margin-bottom:20px;padding:21px 24px;border:1px solid var(--line);border-radius:12px;background:var(--panel);border-left:4px solid var(--accent);gap:20px}
.workspace-balance .workspace-kicker {font-size:11px;color:var(--muted);margin-bottom:3px}
.workspace-balance h2 {font-size:15px;margin-bottom:3px}
.workspace-balance .help {font-size:12px;margin:0}
.workspace-balance .balance {font-size:30px;line-height:1.35;letter-spacing:-.03em;text-align:right}
.workspace-balance .balance small {font-size:11px;letter-spacing:0;margin-top:4px;font-weight:500}
#view-wallet>.split {grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
#view-wallet>.split>.panel {margin-bottom:0}
#view-wallet .help {font-size:12px}
#view-wallet #payment-instructions:empty {display:none}
#view-wallet #card-section {border-top:3px solid color-mix(in srgb,var(--accent) 48%,var(--line));padding-top:20px}
#view-wallet #gift-card-purchase {margin-top:20px}
.customer-surface #browser-list {display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.customer-surface .browser-card {margin:0;gap:14px}
.customer-surface .browser-card header {align-items:center}
.customer-surface .browser-card header h2 {font-size:19px;margin:0 0 3px}
.customer-surface .browser-card header p {font-size:12px;text-transform:capitalize}
.customer-surface .browser-card dl {grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 0;border-block:1px solid var(--line);gap:12px}
.customer-surface .browser-card dt {font-size:11px;margin-bottom:4px}
.customer-surface .browser-card dd {font-size:13px;font-weight:550;line-height:1.6}
.customer-surface .status {font-size:11px;padding:4px 10px;background:var(--soft);border-color:transparent;color:var(--accent)}
.customer-surface .browser-primary-actions>a {min-height:44px;padding:10px 24px;font-size:14px}
.customer-surface .browser-login-hint,.customer-surface .browser-access-help {font-size:12px;line-height:1.7;margin:0}
.customer-surface .browser-more {margin-top:2px;padding-top:2px}
.customer-surface .browser-more>summary {font-size:13px;min-height:42px;padding:10px 0}
.customer-surface .browser-vps-details {font-size:13px}
.customer-surface .browser-secondary-actions {gap:8px}
.customer-surface .browser-secondary-actions button,.customer-surface .browser-secondary-actions a {font-size:12px;min-height:40px}
.customer-surface .browser-maintenance-options {margin-top:12px;display:grid;gap:12px;padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:8px}
.customer-surface .browser-maintenance {width:100%;min-width:0}
.customer-surface .browser-maintenance-options .actions {align-items:end}
.customer-surface .browser-maintenance-options .actions label {flex:1;min-width:150px}
.customer-surface .browser-maintenance-options button {white-space:normal}
.customer-surface #view-browsers>.help {margin-top:20px;font-size:12px}
.customer-surface #buy-form {max-width:960px}
.customer-surface .purchase-location,.customer-surface .delivery-mode,.customer-surface .purchase-duration {background:var(--panel);padding:16px;border-radius:9px}
.customer-surface .purchase-resource-card {border:0;border-radius:8px;background:var(--bg)}
.customer-surface .product-summary {background:var(--bg);border:0;margin:0}
.customer-surface .purchase-browser-options {display:block}
.customer-surface .browser-options {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.customer-surface .delivery-mode {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.customer-surface .delivery-choice {height:100%;margin:0}
.customer-surface #purchase-price {border-top:1px solid var(--line);padding-top:18px;font-size:26px}
.customer-surface .lcb-messages-heading {align-items:center}
.customer-surface dialog {border-radius:14px;box-shadow:0 20px 80px #07152533}
.customer-surface dialog h2 {font-size:19px}
.customer-surface .password-row input {min-width:0}

/* Authentication shares the workspace palette without inheriting its rail. */
body.customer-surface.auth-active .masthead {display:flex}
body.customer-surface.auth-active main {display:flex;align-items:center;justify-content:flex-start;max-width:none;min-height:calc(100dvh - 142px);padding:40px 20px}
body.customer-surface.auth-active #auth {width:min(100%,460px);max-width:460px;margin:0;padding:30px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 35px #1c355409}
body.customer-surface.auth-active #auth::before {display:none}
.customer-surface .auth-heading {margin-bottom:18px}
.customer-surface .auth-heading .eyebrow {display:block;font-size:11px;color:var(--accent);margin-bottom:9px}
.customer-surface .auth-heading h1 {color:var(--ink);font-size:25px;margin:0 0 6px;letter-spacing:-.02em}
.customer-surface .auth-note {font-size:13px;color:var(--muted)}
.customer-surface .auth-panel .auth-note button {min-height:36px;padding:2px 4px;color:var(--accent);font-size:13px}
.customer-surface .auth-panel .auth-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 20px;background:var(--bg);border-radius:8px}
.customer-surface .auth-panel .auth-tabs button {margin:0;border:0;border-radius:6px;font-size:13px;min-height:38px;padding:6px 4px;color:var(--muted)}
.customer-surface .auth-panel .auth-tabs button.active {background:var(--panel);color:var(--accent);box-shadow:0 1px 4px #11233f0f}
.customer-surface .auth-panel form {gap:14px}
.customer-surface .auth-panel form>label,.customer-surface .auth-captcha-field>label {color:var(--ink);font-size:13px}
.customer-surface .auth-panel input,.customer-surface .auth-panel select {min-height:46px;border-radius:8px;background:var(--panel);border-color:var(--line);color:var(--ink);box-shadow:none;font-size:15px}
.customer-surface .auth-panel input:focus {border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 13%,transparent);outline:none}
.customer-surface .auth-panel .password-row button {min-height:46px;border-radius:8px;font-size:13px;background:var(--panel);color:var(--accent)}
.customer-surface .auth-panel .primary {border-radius:8px;background:var(--accent);color:var(--accent-ink);font-size:14px;min-height:46px;box-shadow:none}
.customer-surface .auth-panel .primary:hover:enabled {background:var(--accent)}
.customer-surface .auth-panel [data-auth-field=terms] {padding:9px 10px;background:var(--bg);border-color:var(--line);color:var(--muted);font-size:12px}
.customer-surface .auth-panel [data-auth-field=terms] input {margin-top:2px}
.customer-surface .lcb-terms-copy a {line-height:1.7;min-height:0;padding:2px 0}
.customer-surface .auth-legal {margin:0}
.customer-surface .auth-legal button {font-size:12px;min-height:36px}
.customer-surface .auth-method-switch {background:var(--bg);border-color:var(--line)}
.customer-surface .auth-method-switch button {color:var(--muted)}
.customer-surface .auth-method-switch button.active {background:var(--panel);border-color:var(--line);color:var(--accent)}
.customer-surface .email-code-row button {border-color:var(--line);border-radius:8px;background:var(--panel);color:var(--accent)}
.customer-surface .auth-panel .field-help,.customer-surface .auth-panel #recovery-note,.customer-surface .email-note {color:var(--muted)!important}
body.customer-surface.auth-active #message,body.customer-surface.auth-active .customer-network-status {max-width:460px;margin:0 0 16px}
body.customer-surface.auth-active>.site-footer {display:flex;justify-content:center;gap:12px;padding:18px;border:0}

@media(min-width:1000px) {
  body.workspace-active .masthead {padding-left:0;position:sticky;top:0}
  body.workspace-active .masthead>.brand {width:224px;align-self:stretch;padding:0 24px;background:var(--workspace-rail);color:#fff;flex-shrink:0}
  body.workspace-active .masthead>.brand small {color:var(--workspace-rail-muted)}
  body.workspace-active .masthead>.brand .mark {background:#3671c9;color:#fff}
  body.workspace-active main {max-width:1400px;width:calc(100% - 224px);margin-left:224px;padding:30px 32px 24px;min-height:calc(100dvh - 150px)}
  body.workspace-active .workspace-rail {display:flex;flex-direction:column;position:fixed;left:0;top:74px;bottom:0;width:224px;background:var(--workspace-rail);padding:27px 16px 20px;z-index:4;overflow-y:auto;color:#fff}
  .workspace-rail-label {font-size:10px;letter-spacing:.12em;color:var(--workspace-rail-muted);padding:0 14px;margin-bottom:12px}
  .customer-surface .workspace-rail .portal-tabs {display:flex;flex-direction:column;gap:5px;flex-wrap:nowrap;margin:0;padding:0;border:0}
  .customer-surface .workspace-rail .portal-tabs button {display:flex;align-items:center;gap:12px;position:relative;min-width:0;min-height:45px;padding:10px 13px;border:0;border-radius:8px;background:transparent;text-align:left;color:#bfcce0;font-size:13px;line-height:1.5}
  .customer-surface .workspace-rail .portal-tabs button:hover:enabled {background:#ffffff0d;color:#fff}
  .customer-surface .workspace-rail .portal-tabs button.active {background:#244a76;color:#fff;font-weight:650}
  .workspace-rail .workspace-nav-icon {width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;opacity:.9}
  .workspace-rail [data-view=admin] {order:8;margin-top:14px;border-top:1px solid #ffffff20!important;border-radius:0!important}
  .workspace-rail .lcb-message-badge {margin-left:auto;background:#3675c5;color:#fff;flex-shrink:0}
  .workspace-account {display:flex;gap:10px;align-items:center;margin-top:auto;padding:40px 8px 14px;min-width:0}
  .workspace-avatar {display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#ffffff12;font-size:10px;font-weight:650;color:#becde0;flex-shrink:0}
  .workspace-account>div {min-width:0}
  .workspace-account #welcome {display:block;font-size:11px;font-weight:600;line-height:1.5;max-height:36px;overflow:hidden;overflow-wrap:anywhere;color:#d8e3f2}
  .workspace-account #account-email {font-size:10px;color:var(--workspace-rail-muted);overflow-wrap:anywhere;margin-top:3px}
  .workspace-rail-footnote {border-top:1px solid #ffffff12;padding:14px 8px 0;font-size:10px;line-height:1.9;color:#849ab7}
  body.workspace-active>.site-footer {margin-left:224px;padding-inline:32px}
  #view-security>.split {grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  #view-security>.split>.panel {margin-bottom:0}
}

@media(max-width:999px) {
  body.workspace-active .workspace-rail {display:block;margin:0 0 22px}
  .workspace-rail-label,.workspace-account,.workspace-rail-footnote {display:none}
  .customer-surface .workspace-rail .portal-tabs {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;flex-wrap:unset;overflow:visible;margin:0;padding:0;border:0}
  .customer-surface .workspace-rail .portal-tabs button {display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:46px;padding:7px 5px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:12px;line-height:1.45;white-space:normal;word-break:keep-all;color:var(--muted)}
  .customer-surface .workspace-rail .portal-tabs button.active {border-color:var(--accent);color:var(--accent);background:var(--soft);font-weight:650}
  .workspace-nav-icon {width:17px;height:17px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}
  .workspace-rail [data-view=admin] {order:8;grid-column:1/-1}
  .workspace-rail .lcb-message-badge {margin-left:0;min-width:16px;height:16px;font-size:9px;padding-inline:3px;flex-shrink:0}
  .customer-surface .workspace-page-heading {margin-bottom:20px}
  .customer-surface main {padding:24px}
}

@media(max-width:700px) {
  .customer-surface .masthead {height:auto;min-height:66px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));gap:8px;flex-wrap:wrap}
  .customer-surface .brand {font-size:13px;gap:8px}
  .customer-surface .brand small {font-size:10px}
  .customer-surface .brand .mark {width:32px;height:32px;font-size:12px}
  .customer-surface .header-actions {gap:6px;flex-wrap:wrap}
  .customer-surface .header-actions button {min-height:38px;padding:6px 8px;font-size:11px}
  .customer-surface main {padding:20px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left));width:100%;min-height:calc(100dvh - 170px)}
  .customer-surface .workspace-rail .portal-tabs {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .customer-surface .workspace-rail .portal-tabs button {min-height:45px;gap:6px;font-size:12px;padding:8px 4px}
  body.workspace-active .workspace-rail {margin-bottom:23px}
  .customer-surface .workspace-page-heading {align-items:flex-start;gap:12px;margin-bottom:20px}
  .customer-surface h1 {font-size:23px}
  .workspace-page-heading #workspace-description {font-size:12px;line-height:1.7;margin-top:6px}
  .workspace-page-heading .eyebrow {display:none}
  .customer-surface #refresh {min-height:38px;min-width:auto;padding:6px 10px;font-size:11px}
  .customer-surface .panel,.customer-surface .browser-card {padding:18px;border-radius:10px;margin-bottom:16px}
  .customer-surface h2 {font-size:16px}
  .customer-surface .split,#view-wallet>.split {grid-template-columns:minmax(0,1fr);gap:16px}
  .customer-surface .two {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .customer-surface .workspace-balance {padding:18px;flex-direction:row;align-items:center;gap:12px;border-radius:10px;margin-bottom:16px}
  .workspace-balance h2 {font-size:14px}
  .workspace-balance .help {font-size:11px;max-width:130px}
  .workspace-balance .balance {font-size:27px}
  .workspace-balance .balance small {font-size:10px}
  .customer-surface .balance-strip {justify-content:flex-end;gap:10px}
  #view-wallet #card-section {padding-top:16px}
  .customer-surface input,.customer-surface select,.customer-surface textarea {font-size:16px;min-height:46px}
  .customer-surface input[type=checkbox] {min-height:20px}
  .customer-surface input[type=radio] {min-height:20px}
  .customer-surface .primary,.customer-surface .gift-card-buttons a {min-height:46px}
  .customer-surface .browser-card {margin:0;gap:13px}
  .customer-surface .browser-card header h2 {font-size:18px}
  .customer-surface .browser-card dl {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-block:13px}
  .customer-surface .browser-card dd {font-size:12px}
  .customer-surface .browser-card .browser-primary-actions>a {min-height:46px;width:100%;font-size:14px}
  .customer-surface .browser-secondary-actions {grid-template-columns:minmax(0,1fr)}
  .customer-surface .browser-secondary-actions button,.customer-surface .browser-secondary-actions a {min-height:44px;font-size:13px;white-space:normal}
  .customer-surface .browser-options,.customer-surface .delivery-mode {grid-template-columns:minmax(0,1fr)}
  .customer-surface .purchase-location,.customer-surface .delivery-mode,.customer-surface .purchase-duration {padding:13px}
  .customer-surface .customer-record-table tbody {padding:0;gap:0}
  .customer-surface .customer-record-table tr {border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px}
  .customer-surface .customer-record-table tr:last-child {border-bottom:0}
  .customer-surface .customer-record-table td {padding:7px;font-size:12px}
  .customer-surface .table-wrap {margin-bottom:20px}
  .customer-surface .site-footer {padding:18px 16px max(18px,env(safe-area-inset-bottom));gap:3px}
  body.customer-surface.auth-active main {padding:24px 16px;min-height:calc(100dvh - 170px)}
  body.customer-surface.auth-active #auth {padding:24px 20px;margin:0}
  .customer-surface .auth-heading h1 {font-size:24px}
  .customer-surface .auth-panel input,.customer-surface .auth-panel select {font-size:16px;min-height:46px}
  .customer-surface .auth-panel .auth-tabs button {min-height:42px}
  .customer-surface .auth-panel .auth-note button {min-height:40px}
  .customer-surface .auth-captcha-field .captcha-row {grid-template-columns:minmax(0,1fr) 124px}
  .customer-surface .auth-captcha-field .captcha-row button,.customer-surface .auth-captcha-field .captcha-row img {width:124px;height:46px;min-height:46px}
  body.customer-surface.auth-active>.site-footer {align-items:center;gap:2px;font-size:10px}
}
@media(max-width:359px) {
  .customer-surface .masthead {padding-inline:12px}
  .customer-surface .brand {font-size:12px;gap:6px}
  .customer-surface .header-actions {gap:4px}
  .customer-surface .header-actions button {padding-inline:6px;font-size:10px}
  .customer-surface main {padding-inline:12px}
  .customer-surface .workspace-rail .portal-tabs button {font-size:11px;gap:4px}
  .workspace-nav-icon {width:15px;height:15px}
  .customer-surface .workspace-balance {padding:15px 13px}
  .workspace-balance .balance {font-size:23px}
  .customer-surface .panel,.customer-surface .browser-card {padding:15px}
  body.customer-surface.auth-active #auth {padding:22px 16px}
  .customer-surface .email-code-row {grid-template-columns:minmax(0,1fr) 100px}
  .customer-surface .email-code-row button {min-width:0;font-size:11px}
}
@media(prefers-reduced-motion:reduce) {.customer-surface *{transition:none!important;scroll-behavior:auto!important}}

/* v0.5.49 readability and credential preference */
.customer-surface .auth-captcha-field .captcha-row{grid-template-columns:minmax(0,1fr) 190px;align-items:stretch;gap:10px}
.customer-surface .auth-captcha-field .captcha-row button{display:flex;align-items:center;justify-content:center;width:190px;height:72px;min-height:72px;padding:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.customer-surface .auth-captcha-field .captcha-row img{display:block;width:190px;height:72px;min-height:72px;object-fit:contain;background:#fff}
.customer-surface .remember-credentials{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;row-gap:2px;padding:2px 0;color:var(--ink);font-size:13px}
.customer-surface .remember-credentials input{width:18px;height:18px;min-height:18px;grid-row:span 2;accent-color:var(--accent)}
.customer-surface .remember-credentials span{grid-column:2;color:var(--muted);font-size:11px;line-height:1.4}
@media(max-width:700px){.customer-surface .auth-captcha-field .captcha-row{grid-template-columns:minmax(0,1fr) 170px}.customer-surface .auth-captcha-field .captcha-row button,.customer-surface .auth-captcha-field .captcha-row img{width:170px;height:64px;min-height:64px}}
