:root{color-scheme:light;--bg:#f5f8fb;--panel:#fff;--ink:#172b3d;--muted:#64798b;--line:#dce6ef;--accent:#2376c9;--accent-ink:#fff;--soft:#eaf5ff;--danger:#b53b3b;font:16px/1.55 system-ui,"Microsoft YaHei",sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#0f2334;--panel:#152f45;--ink:#e8f4ff;--muted:#a7c3d7;--line:#2d5572;--accent:#63abe4;--accent-ink:#0f2d45;--soft:#1d4968;--danger:#ffb2b9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}a{color:var(--accent)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--panel)}button:hover:enabled{border-color:var(--accent);background:var(--soft)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.primary:hover:enabled{background:var(--accent);filter:brightness(1.1)}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input,select,textarea{width:100%;min-width:0;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink)}input::placeholder{color:var(--muted)}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--accent)}label{display:grid;gap:6px;font-size:14px;font-weight:600}.check{display:flex;align-items:center;gap:10px;min-height:44px}form{display:grid;gap:18px}h1,h2,h3,p{margin:0}h1{font-size:clamp(26px,3vw,34px);font-weight:650;letter-spacing:-.02em}h2{font-size:20px;font-weight:650;margin-bottom:14px}h3{font-size:17px}p{color:var(--muted)}.masthead{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--panel);border-bottom:1px solid var(--line);padding:16px max(24px,calc((100vw - 1180px)/2))}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-weight:700}.brand small{display:block;font-size:12px;color:var(--muted);font-weight:400}.mark{display:grid;place-items:center;width:42px;height:42px;background:var(--accent);color:var(--accent-ink);border-radius:9px;font-size:15px}.header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px}main{max-width:1180px;margin:0 auto;padding:36px 24px;min-height:calc(100vh - 160px)}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:16px}.eyebrow{font-size:11px;letter-spacing:.13em;color:var(--accent);font-weight:750}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0;border-bottom:1px solid var(--line);padding-bottom:12px}.tabs button{border-color:transparent;background:transparent}.tabs button.active{background:var(--soft);color:var(--accent);border-color:var(--line)}.auth-panel{max-width:470px;margin:24px auto;padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.auth-panel h1{margin:8px 0}.captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 188px;gap:10px;align-items:center}.captcha-row button{padding:0;min-height:60px;overflow:hidden}.captcha-row img{display:block;width:100%;height:60px}.password-row{display:flex;gap:8px}.password-row button{flex-shrink:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel,.browser-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:24px;margin-bottom:24px}.help{font-size:13px;margin-bottom:16px;white-space:pre-line}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.balance-strip{display:flex;flex-wrap:wrap;gap:16px}.balance{font-size:25px;font-weight:700;font-variant-numeric:tabular-nums}.balance small{font-size:12px;color:var(--muted);display:block}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:24px}.browser-list{display:grid;gap:18px}.browser-card{margin:0;display:grid;gap:16px}.browser-card header{display:flex;justify-content:space-between;gap:12px}.browser-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.browser-card dt{font-size:12px;color:var(--muted)}.browser-card dd{margin:0;overflow-wrap:anywhere}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:6px;background:var(--accent);color:var(--accent-ink);text-decoration:none}.status{font-size:12px;padding:4px 10px;background:var(--soft);border:1px solid var(--line);border-radius:20px;align-self:start;white-space:nowrap}.nat-status{display:inline-block;padding:3px 8px;border-radius:999px;border:1px solid var(--line);font-size:12px}.nat-ready{color:var(--accent);border-color:var(--accent)}.nat-error{color:var(--danger);border-color:var(--danger)}.price{font-size:24px;font-weight:700;color:var(--ink)}.product-summary{display:flex;flex-wrap:wrap;gap:8px 14px;padding:14px 16px;margin:-4px 0 2px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:14px}.product-summary strong{font-variant-numeric:tabular-nums}.product-summary span{color:var(--muted)}.product-summary small{flex-basis:100%;color:var(--muted);font-size:12px}.field-help{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.45}.table-wrap{width:100%;overflow-x:auto;background:var(--panel);border:1px solid var(--line);border-radius:8px;margin:16px 0 28px}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:13px 15px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}th{background:var(--soft);font-weight:600}tr:last-child td{border:0}.empty{padding:32px;color:var(--muted);border:1px dashed var(--line);border-radius:8px;text-align:center}.table-wrap .empty{border:0}#message{padding:14px 18px;margin-bottom:20px;border-left:4px solid var(--accent);background:var(--soft);white-space:pre-wrap;overflow-wrap:anywhere}#message.error{border-color:var(--danger);color:var(--danger)}.result{margin-top:18px;overflow-wrap:anywhere}.switch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.switch-grid label{display:flex;justify-content:space-between;align-items:center;min-height:50px;padding:10px;border:1px solid var(--line);border-radius:6px}.switch-grid input{appearance:none;width:42px;min-height:24px;height:24px;background:var(--line);border-radius:14px;padding:2px;cursor:pointer}.switch-grid input:before{display:block;content:'';width:18px;height:18px;border-radius:50%;background:var(--panel);transition:transform .15s}.switch-grid input:checked{background:var(--accent)}.switch-grid input:checked:before{transform:translateX(16px)}dialog{padding:24px;width:min(480px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink)}dialog::backdrop{background:#06141ab8}dialog header,dialog footer{display:flex;justify-content:space-between;gap:12px;align-items:center}dialog header h2{margin:0}#dialog-close{font-size:24px;padding:0;width:44px}#dialog-error{color:var(--danger);font-size:14px}#dialog-output{display:grid;gap:12px}.site-footer{border-top:1px solid var(--line);color:var(--muted);display:flex;justify-content:space-between;gap:16px;max-width:1132px;margin:auto;padding:20px 0;font-size:12px}
@media(max-width:700px){.masthead{padding:14px 16px}.brand{font-size:14px}.header-actions{gap:6px}.header-actions button{font-size:13px;padding:8px}.split,.two{grid-template-columns:1fr}.switch-grid{grid-template-columns:1fr 1fr}main{padding:24px 16px}.auth-panel{margin:0;padding:20px}.captcha-row{grid-template-columns:minmax(0,1fr) 144px}.browser-card,.panel{padding:18px}.browser-card dl{grid-template-columns:1fr}.tabs button{padding:8px 12px;font-size:14px}.site-footer{padding:18px;flex-direction:column;gap:4px}input,select,textarea{font-size:16px}.section-heading{align-items:flex-start;flex-direction:column}.actions>*{flex:1;text-align:center;justify-content:center}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.browser-edit-name{min-height:32px;margin-top:6px;padding:5px 10px;font-size:12px;color:var(--accent);background:transparent}.browser-name-input{min-height:38px;font-size:18px;font-weight:650}.browser-name-editor-actions{display:flex;gap:6px;margin-top:7px}.browser-name-editor-actions button{min-height:34px;padding:5px 10px;font-size:12px}

/* LightNode-style purchase sequence: the location and resource choice stay
   visible above delivery options so customers can verify the actual region,
   Zone and machine shape before paying. */
.purchase-location,.purchase-duration{display:grid;gap:10px;margin:0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.purchase-location legend,.purchase-duration legend{padding:0 5px;font-weight:700;font-size:14px}.purchase-location-code{margin:0;padding:9px 11px;border-left:3px solid var(--accent);background:var(--soft);font-size:12px;color:var(--ink);overflow-wrap:anywhere}
.purchase-resource-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--soft);font-size:13px}.purchase-resource-card strong{flex-basis:100%;font-size:14px}.purchase-resource-card span{padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font-variant-numeric:tabular-nums}.purchase-browser-options{align-items:start}
.delivery-addon-disabled{opacity:.55}
@media(max-width:700px){.purchase-location,.purchase-duration{padding:12px}.purchase-resource-card{gap:6px}.purchase-resource-card span{font-size:12px}.purchase-location-code{font-size:13px}}

/* Explicit post-purchase delivery choice. Keep each option large enough for
   touch use and make the selected mode obvious on narrow screens. */
.delivery-mode{display:grid;gap:10px;margin:0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}
.delivery-mode legend{padding:0 5px;font-weight:700;font-size:14px}
.delivery-mode>p{grid-column:1/-1;margin:0 0 2px}
.delivery-choice{display:flex;align-items:flex-start;gap:10px;min-height:58px;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);cursor:pointer;font-weight:500}
.delivery-choice:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent);background:color-mix(in srgb,var(--soft) 72%,var(--panel))}
.delivery-choice input{flex:0 0 auto;width:20px;min-height:20px;margin:2px 0 0;accent-color:var(--accent)}
.delivery-choice span{display:grid;gap:2px;min-width:0}.delivery-choice strong{font-size:14px}.delivery-choice small{color:var(--muted);font-size:12px;font-weight:400;line-height:1.45}
.browser-options{display:grid;gap:14px;min-width:0}
.browser-options[hidden]{display:none}
.purchase-system-options{padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}
.purchase-system-options[hidden]{display:none}
.purchase-system-options label{display:grid;gap:8px}.purchase-system-options .field-help{margin:8px 0 0}
@media(max-width:700px){.delivery-mode{padding:12px}.delivery-choice{min-height:64px;padding:12px 10px}.delivery-choice strong{font-size:15px}.delivery-choice small{font-size:13px}.browser-options{gap:12px}}
/* v0.5.33 customer auth refinement */
.auth-panel{position:relative;overflow:hidden;border-color:#b9d8ee;box-shadow:0 24px 60px rgba(35,118,201,.12)}
.auth-panel::before{content:"";display:block;height:4px;margin:-28px -28px 22px;background:linear-gradient(90deg,#2376c9,#72b7ed)}
.auth-panel h1{letter-spacing:-.03em}.auth-panel p{line-height:1.6}.auth-panel .tabs{margin-top:20px}.auth-panel .primary{box-shadow:0 8px 20px rgba(35,118,201,.2)}
[data-auth-field=terms]{display:flex;align-items:flex-start;gap:9px;line-height:1.5;font-size:13px;font-weight:500;color:var(--muted)}
[data-auth-field=terms] input{flex:0 0 auto;margin-top:3px}.auth-panel a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.auth-panel{margin-inline:0;padding:22px}.auth-panel::before{margin:-22px -22px 18px}}

/* Customer auth layout aligned with the reference sign-in/register flow. */
body.customer-surface{min-height:100vh;background:linear-gradient(180deg,#e8f1fb 0%,#f4f7fb 52%,#fafafa 78%,#fff 100%)}
body.auth-active .masthead,body.auth-active>.site-footer{display:none}
body.auth-active main{display:grid;place-items:start center;max-width:none;min-height:100vh;padding:0 16px}
body.auth-active #auth{width:min(100%,445px);max-width:445px;margin:0;padding:42px 19px 30px;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
body.auth-active #auth::before{display:none}
.auth-heading{margin-bottom:20px}.auth-heading .eyebrow{display:none}.auth-heading h1{font-size:28px;line-height:1.25;letter-spacing:-.04em;color:#14263b;margin:0 0 10px}.auth-note{color:#647487;font-size:14px}.auth-note button{min-height:auto;padding:0;border:0;border-radius:0;background:transparent;color:#536b83;text-decoration:underline;text-underline-offset:3px;font-size:inherit}.auth-note button:hover:enabled{background:transparent;border-color:transparent;color:#1d6fb7}
.auth-tabs{gap:16px;margin:0 0 20px;padding:0;border:0}.auth-tabs button{min-height:auto;padding:5px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#8190a0;font-size:13px}.auth-tabs button.active{color:#216fae;background:transparent;border-color:#6eafe4}.auth-tabs button[data-auth=recover]{margin-left:auto}
.auth-panel form{gap:14px}.auth-panel form>label,.auth-captcha-field>label{gap:6px;color:#182a3d;font-size:13px;font-weight:500}.auth-panel input{min-height:44px;border:1px solid #d7e0e9;border-radius:14px;background:rgba(255,255,255,.52);color:#263b50;box-shadow:inset 0 1px 2px rgba(70,98,126,.03)}.auth-panel input:focus{border-color:#80b7e9;box-shadow:0 0 0 3px rgba(104,171,231,.16)}.auth-panel input::placeholder{color:#8793a0}.password-row{gap:0;align-items:center}.auth-panel .password-row input{padding-right:48px}.auth-panel .password-row button{width:42px;min-height:36px;margin-left:-46px;padding:0;border:0;background:transparent;color:#718091;font-size:0;z-index:1}.auth-panel .password-row button::before{content:'◉';font-size:16px;opacity:.66}.auth-panel .password-row button:hover:enabled{background:transparent;border-color:transparent;color:#216fae}
.auth-captcha-field{display:grid;gap:6px}.auth-captcha-field .captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:8px;align-items:center}.auth-captcha-field .captcha-row button{width:116px;height:40px;min-height:40px;padding:0;border:1px solid #d2dbe5;border-radius:6px;background:#f5f7fa;overflow:hidden}.auth-captcha-field .captcha-row img{display:block;width:116px;height:40px;object-fit:cover}.auth-captcha-field .captcha-row button:hover:enabled{border-color:#86b9e6;background:#f5f8fc}
.auth-panel [data-auth-field=terms]{display:flex;align-items:flex-start;gap:9px;margin-top:1px;padding:13px 12px;border:1px solid #e1e7ed;border-radius:9px;background:rgba(255,255,255,.46);color:#657587;font-size:12px;font-weight:400;line-height:1.65}.auth-panel [data-auth-field=terms] input{flex:0 0 auto;width:17px;min-height:17px;margin-top:2px;border-radius:5px}.auth-panel [data-auth-field=terms] a{color:#1874d1;text-decoration:none}
.auth-panel .primary{width:100%;min-height:44px;border:0;border-radius:24px;background:#76b2eb;box-shadow:none;font-size:14px}.auth-panel .primary:hover:enabled{background:#66a8e7;filter:none}.auth-panel .help{margin:0;font-size:12px}.auth-panel #mail-reset{width:100%;margin-top:-4px}
.auth-social{display:grid;gap:9px;margin-top:22px}.auth-divider{display:flex;align-items:center;gap:12px;color:#98a3ae;font-size:12px;text-align:center}.auth-divider::before,.auth-divider::after{content:'';height:1px;flex:1;background:#dce2e8}.auth-social button{min-height:42px;border:1px solid #e2e7ec;border-radius:22px;background:rgba(255,255,255,.42);color:#78838f;font-size:13px}.auth-social button:hover:enabled{border-color:#b9d3ea;background:rgba(255,255,255,.72);color:#4f6b83}
body.auth-active #message{width:min(100%,445px);position:fixed;left:50%;top:12px;z-index:5;transform:translateX(-50%);margin:0;font-size:13px;border-radius:8px}
@media(max-width:600px){body.auth-active #auth{padding:34px 19px 24px}.auth-heading h1{font-size:27px}.auth-social{margin-top:20px}}

.email-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.email-code-row button{min-height:44px;padding:8px 13px;border:1px solid #d7e0e9;border-radius:14px;background:rgba(255,255,255,.5);color:#738296;white-space:nowrap;font-size:12px}.email-code-row button:hover:enabled{border-color:#80b7e9;background:#fff;color:#216fae}.email-note{margin-top:-5px!important;color:#718096!important}
.auth-method-switch{display:flex;gap:6px;padding:4px;border:1px solid #d7e0e9;border-radius:9px;background:rgba(255,255,255,.42)}.auth-method-switch button{flex:1;min-width:0;min-height:38px;padding:6px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#718091;font-size:13px}.auth-method-switch button.active{border-color:#bdd8f1;background:#fff;color:#216fae;box-shadow:0 1px 3px rgba(34,86,128,.08)}.auth-method-switch button:hover:enabled{background:#f7fbff}.auth-method-switch button[hidden]{display:none!important}.auth-panel #recovery-note{color:#718096;line-height:1.55}.auth-panel .field-help{font-size:12px;line-height:1.5;color:#718096}
@media(max-width:390px){.email-code-row{grid-template-columns:minmax(0,1fr) minmax(108px,auto);gap:6px}.email-code-row button{padding-inline:8px;font-size:11px}.auth-method-switch{gap:4px}.auth-method-switch button{padding-inline:6px;font-size:12px}}

/* Clearer customer captcha and inline policy dialog. */
.auth-captcha-field .captcha-row{grid-template-columns:minmax(0,1fr) 160px}
.auth-captcha-field .captcha-row button{width:160px;height:52px;min-height:52px;background:#fff}
.auth-captcha-field .captcha-row img{width:160px;height:52px;object-fit:contain}
.policy-content{display:grid;gap:12px;color:var(--muted);font-size:14px;line-height:1.75}
.policy-content p{margin:0}
#policy-dialog{width:min(620px,calc(100vw - 32px))}
#policy-dialog footer{justify-content:flex-end;margin-top:18px}
@media(max-width:600px){.auth-captcha-field .captcha-row{grid-template-columns:minmax(0,1fr) 144px}.auth-captcha-field .captcha-row button,.auth-captcha-field .captcha-row img{width:144px;height:48px}.auth-captcha-field .captcha-row button{min-height:48px}}
.auth-legal{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:2px;color:var(--muted);font-size:12px}.auth-legal button{min-height:auto;padding:0;border:0;background:transparent;color:var(--accent);font-size:inherit}.auth-legal button:hover:enabled{border:0;background:transparent;text-decoration:underline}

/* Third-party recharge-code purchase links */
.nested-panel{margin:0;padding:18px;background:var(--soft)}
.gift-card-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.gift-card-buttons a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border-radius:7px;background:var(--accent);color:var(--accent-ink);text-decoration:none;font-weight:650}
.gift-card-buttons a:hover{filter:brightness(1.08)}
.gift-card-editor-row{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;align-items:center;margin:10px 0}
.gift-card-editor-row button{min-height:44px}
.gift-card-purchase-copy{white-space:pre-line}
@media(max-width:700px){.gift-card-editor-row{grid-template-columns:1fr}.gift-card-editor-row button{width:100%}}

/* One-click browser installation for manually delivered VPS orders. */
.orders-intro{max-width:760px;margin-top:-6px}
.install-browser-button{white-space:nowrap}
.install-progress{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:7px;background:var(--soft);color:var(--accent);font-weight:650;white-space:nowrap}
.install-order-summary{margin:2px 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.install-browser-selection{margin:0;padding:10px 12px;border-left:3px solid var(--accent);background:var(--soft);font-size:14px;color:var(--ink)}
.install-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.install-form-grid .install-field-wide{grid-column:1/-1}
.install-dialog-error{min-height:1.55em;color:var(--danger);font-size:14px}
#install-dialog{width:min(640px,calc(100vw - 32px));padding:24px}
#install-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}
#install-dialog header h2{margin:2px 0 0}
#install-dialog header .eyebrow{margin:0}
#install-dialog-close{font-size:24px;padding:0;width:44px}
#install-dialog footer{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:6px}
#install-dialog [name=sshPassword]{border-color:#b9d8ee}
@media(max-width:700px){
  .install-form-grid{grid-template-columns:1fr;gap:12px}
  .install-form-grid .install-field-wide{grid-column:auto}
  #install-dialog{padding:18px}
  #install-dialog footer{flex-direction:column-reverse;align-items:stretch}
  #install-dialog footer button{width:100%}
  .install-browser-button,.install-progress{width:100%;justify-content:center}
}

.impersonation-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;margin-bottom:20px;border:1px solid var(--accent);border-radius:8px;background:var(--soft)}.impersonation-banner strong{color:var(--ink)}.impersonation-banner p{margin:4px 0 0;font-size:13px;line-height:1.6}.impersonation-banner button{flex-shrink:0;min-height:44px}@media(max-width:600px){.impersonation-banner{align-items:stretch;flex-direction:column;gap:10px}.impersonation-banner button{width:100%}}

.browser-vps-details{display:grid;gap:12px;min-width:0;padding-top:16px;border-top:1px solid var(--line)}.browser-vps-details>h3{font-size:16px}.browser-vps-details>.help{margin:0;line-height:1.7}.browser-vps-details [data-vps-action]{color:var(--danger)}

.browser-file-library{display:grid;gap:10px;min-width:0;padding:14px 0;border-top:1px solid var(--line)}
.browser-file-library>summary{min-height:42px;display:list-item;padding:8px 2px;cursor:pointer;color:var(--accent);font-weight:650}
.browser-file-library>summary::marker{color:var(--accent)}
.browser-file-library>p{margin:0;line-height:1.65}
.browser-file-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.browser-file-input{max-width:100%;min-height:42px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink)}
.browser-file-toolbar button{min-height:42px}
.browser-file-status{min-height:1.4em;margin:0;color:var(--muted);font-size:13px}
.browser-file-status.error,.browser-file-meta .error{color:var(--danger)}
.browser-file-list{display:grid;gap:7px;min-width:0}
.browser-file-empty{padding:14px;margin:0;border:1px dashed var(--line);border-radius:7px;color:var(--muted);font-size:13px}
.browser-file-row{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--soft)}
.browser-file-meta{display:grid;gap:3px;min-width:0}.browser-file-meta strong,.browser-file-meta small{overflow-wrap:anywhere}.browser-file-meta strong{font-size:14px}.browser-file-meta small{color:var(--muted);font-size:12px}
.browser-file-actions{display:flex;gap:6px;flex:0 0 auto}.browser-file-actions button{min-height:36px;padding:6px 11px}
.browser-lifecycle-actions{margin:0}
@media(max-width:700px){.browser-file-toolbar{align-items:stretch;flex-direction:column}.browser-file-input,.browser-file-toolbar button{width:100%;max-width:none}.browser-file-row{align-items:stretch;flex-direction:column}.browser-file-actions{width:100%}.browser-file-actions button{width:100%}}

.vps-reinstall-confirmation{display:grid;gap:14px;min-width:0}.vps-reinstall-confirmation .check{align-items:flex-start;font-size:13px;color:var(--danger);line-height:1.7}.vps-reinstall-confirmation .check input{flex:0 0 20px;margin-top:3px}

.vps-operation-status{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);min-width:0}.vps-operation-status p{line-height:1.65;font-size:13px;overflow-wrap:anywhere}.vps-operation-status button{justify-self:start;max-width:100%;min-height:44px;white-space:normal}

.vps-reinstall-target{display:grid;gap:6px;padding:14px;border:2px solid var(--danger);border-radius:8px;background:var(--soft);color:var(--ink)}.vps-reinstall-target span{font-size:13px}.vps-reinstall-target strong{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:var(--danger)}#dialog-submit[data-danger=true]{background:var(--danger);border-color:var(--danger);color:#fff}

.browser-vps-details>summary{min-height:48px;display:list-item;padding:10px 2px;cursor:pointer;font-weight:650;color:var(--accent)}
.browser-vps-details:not([open])>:not(summary){display:none!important}.browser-vps-details[open]>*+*{margin-top:12px}
.service-billing{border:1px solid var(--line);border-radius:8px;background:var(--soft);padding:14px;display:grid;gap:12px;min-width:0}.service-billing .help{margin:0;line-height:1.7}.service-billing dl{margin:0}.service-billing dd{overflow-wrap:anywhere}.browser-vps-details [data-service-action=delete]{color:var(--danger)}
#purchase-billing-note{margin:8px 0 0;line-height:1.75}#billing-mode-field[hidden]{display:none!important}

.order-service-details{min-width:0}.order-service-details>summary{min-height:44px;cursor:pointer;color:var(--accent);padding:10px 0}.order-service-details[open]>div{margin:10px 0}.order-service-details .service-billing dl{display:grid;gap:10px}.order-service-details .service-billing dd{margin:0;overflow-wrap:anywhere}

.browser-add-dialog{width:min(520px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid var(--line,#cbdde9);border-radius:12px;background:var(--panel,#fff);color:var(--ink,#19344a)}.browser-add-dialog::backdrop{background:#09182799}.browser-add-form{display:grid;gap:16px}.browser-add-form label{display:grid;gap:8px}.browser-add-form :is(input,select,button){min-height:44px}.browser-add-form [role=alert]{color:#b33545}.order-vps-actions{flex-wrap:wrap}

.browser-shortcut-setting{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.browser-shortcut-setting select{width:auto;min-height:44px}.browser-file-actions button{min-height:44px}.browser-file-status.error{color:var(--danger)}

/* Copy the address in place without adding another toolbar action. */
#browser-list .browser-address-copy,.browser-inventory .browser-address-copy{display:inline;padding:3px 2px;min-height:0;width:auto;border:0;border-radius:3px;background:transparent;color:var(--primary,#2468b4);font:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;overflow-wrap:anywhere;box-shadow:none}
#browser-list .browser-address-copy:hover,.browser-inventory .browser-address-copy:hover{background:var(--surface-muted,#eef5fc)}
.browser-address-copy:focus-visible{outline:2px solid var(--primary,#2468b4);outline-offset:3px}

.purchase-configuration{display:grid;gap:18px;min-width:0}.selected-product-config{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--soft);min-width:0}.selected-config-heading{display:grid;gap:4px;margin-bottom:14px}.selected-config-heading h3{font-size:16px;margin:0}.selected-config-heading p{font-size:13px;overflow-wrap:anywhere}.selected-config-resources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.selected-config-resources>div,.selected-config-details>div{min-width:0}.selected-product-config dt{color:var(--muted);font-size:12px;margin-bottom:4px}.selected-product-config dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.selected-config-resources dd{font-size:17px;font-weight:700;color:var(--ink)}.selected-config-resources [data-config-field=traffic] dd{color:var(--accent)}.selected-config-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0}.selected-config-details dd{font-size:14px;color:var(--ink)}.selected-config-details [data-config-field=bandwidth]{grid-column:1/-1}.selected-config-details [data-config-field=price] dd{font-weight:700}
@media(max-width:520px){.selected-product-config{padding:14px}.selected-config-resources{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.selected-config-details{grid-template-columns:1fr}.selected-product-config dt{font-size:13px}.selected-config-details dd{font-size:15px}}


.browser-choice-notes{display:grid;gap:5px;margin:4px 0 0;padding-left:18px;color:var(--muted);font-size:13px;font-weight:400;line-height:1.6}.browser-choice-notes li{overflow-wrap:anywhere}

.browser-options>label{align-content:start}

.file-preview-dialog{width:min(1100px,calc(100% - 24px));max-width:calc(100% - 24px);height:min(820px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:18px;overflow:auto}.file-preview-dialog[open]{display:flex;flex-direction:column;gap:12px}.file-preview-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none}.file-preview-dialog h2{margin:0;font-size:18px;overflow-wrap:anywhere}.file-preview-dialog>p{margin:0;line-height:1.6;flex:none}.file-preview-content{flex:1;min-height:0;overflow:auto;background:#fff;border:1px solid #ced8d1;border-radius:6px;color:#18251e}.file-preview-content img{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:auto}.file-preview-content iframe{display:block;width:100%;height:100%;min-height:260px;border:0}.file-preview-content pre{margin:0;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 ui-monospace,monospace;color:#18251e}.file-preview-dialog .dialog-close{flex:none;min-width:44px;min-height:44px}.session-file-actions,.browser-file-actions{flex-wrap:wrap}@media(max-width:550px){.file-preview-dialog{padding:12px;height:calc(100dvh - 24px)}.browser-file-actions button{flex:1;width:auto}}

.purchase-billing-confirmation .check{align-items:flex-start;line-height:1.75;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.purchase-billing-confirmation input{flex:0 0 20px;margin-top:4px}.browser-delete-confirmation .browser-delete-vps-choice{color:var(--ink);padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.browser-delete-confirmation .help{margin:0;line-height:1.75}[data-browser-delete]{color:var(--danger)}

/* New purchases: classified plans and a single install environment. */
#buy-form .catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}
.catalog-filter-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.catalog-filter-status p{margin:0}.catalog-filter-status button{min-height:44px;flex-shrink:0;padding:8px 12px}
#buy-form .browser-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.browser-tool-section{grid-column:1/-1;display:grid;gap:12px;min-width:0}.browser-tool-section h3{margin:0;font-size:16px}.browser-tool-section>p,.browser-tool-section>small{margin:0;line-height:1.65}.browser-tool-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#buy-form .browser-tool-choice{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;min-height:152px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:inherit;text-align:left;cursor:pointer;white-space:normal;transition:background .15s,border-color .15s,box-shadow .15s}.browser-tool-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px}.browser-tool-heading strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.browser-tool-default{padding:3px 7px;border-radius:5px;background:var(--soft);color:var(--accent);font-size:12px;white-space:nowrap}.browser-tool-purpose{font-size:13px;font-weight:650;color:var(--accent)}.browser-tool-description{font-size:13px;line-height:1.65;color:var(--muted);font-weight:400;overflow-wrap:anywhere}.browser-tool-state{margin-top:auto;padding-top:3px;font-size:13px;font-weight:650;color:var(--accent)}
#buy-form .browser-tool-choice[aria-pressed=true]{border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}#buy-form .browser-tool-choice:hover:enabled{border-color:var(--accent)}#buy-form .browser-tool-choice:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.browser-select-field[hidden],#buy-form .browser-options[hidden],#catalog-clear[hidden]{display:none!important}
@media(max-width:700px){#buy-form .catalog-filters{grid-template-columns:1fr;gap:12px}#buy-form .browser-options,.browser-tool-choices{grid-template-columns:1fr}#buy-form .browser-tool-choice{min-height:136px;padding:14px}.browser-tool-heading strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){#buy-form .browser-tool-choice{transition:none}}

/* Keep billing selection compact; full terms remain available before paying. */
#buy-form .purchase-duration{gap:8px}
.purchase-billing-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;min-width:0}.purchase-billing-fields>label{min-width:0}.purchase-billing-fields.single-field{grid-template-columns:minmax(0,1fr)}
#buy-form .purchase-billing-brief{margin:2px 0 0;font-size:13px;line-height:1.6;color:var(--ink)}
.purchase-billing-details{min-width:0}.purchase-billing-details>summary{display:list-item;width:fit-content;max-width:100%;min-height:44px;padding:10px 0;cursor:pointer;color:var(--accent);font-size:13px;font-weight:600;line-height:1.6}.purchase-billing-details:not([open])>#purchase-billing-note{display:none}.purchase-billing-details>#purchase-billing-note{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--soft);font-size:13px;line-height:1.75}
#buy-form #purchase-price{margin:0;padding-top:12px;font-size:clamp(17px,1.8vw,22px);line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:700px){.purchase-billing-fields{gap:10px}.purchase-billing-fields select{padding:9px 10px;font-size:16px}}
@media(max-width:340px){.purchase-billing-fields{grid-template-columns:minmax(0,1fr)}}
#buy-form .catalog-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-filter-status{flex-wrap:wrap}.catalog-filter-status p{margin-right:auto}
@media(max-width:900px){#buy-form .catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#buy-form .catalog-filters{grid-template-columns:minmax(0,1fr)}}
