.desk { padding-block:48px; display:flex; flex-direction:column; gap:32px }
.desk-heading,.board-title { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap }
.desk-heading>div { min-width:0 }
.desk-heading h1,.settings-card strong,.subscription-tile h2,.switcher a,.kpi-top strong { overflow-wrap:anywhere }
.switcher { max-width:100%; display:flex; flex-wrap:wrap; align-items:center; padding:4px; gap:4px; border-radius:var(--md); background:var(--low); border:1px solid var(--line) }
.switcher a { padding:8px 16px; border-radius:var(--sm); font-size:12px; line-height:18px; font-weight:600; color:var(--muted) }
.switcher a[aria-current] { background:var(--paper); box-shadow:var(--shadow); color:var(--ink) }
.switcher a:hover { color:var(--primary) }
.kpi-grid,.wallet-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px }
.kpi,.box,.summary-card,.service-card,.balance-card,.sheet,.settings-card,.control-card,.subscription-tile { padding:24px; display:flex; flex-direction:column; gap:20px; min-width:0 }
.kpi { justify-content:space-between }
.kpi-top,.kpi-value { display:flex; align-items:flex-start; justify-content:space-between; gap:16px }
.kpi-top .badge { flex-shrink:0 }
.kpi-top>div { display:flex; flex-direction:column; gap:4px }
.kpi-value { align-items:baseline; justify-content:flex-start; gap:8px; flex-wrap:wrap }
.traffic-amount { display:inline-flex; align-items:baseline; flex-wrap:wrap; gap:8px }
.traffic-amount > * { white-space:nowrap }
.kpi-value strong,.figure { font-size:30px; line-height:40px; font-weight:800; font-variant-numeric:tabular-nums }
.kpi-foot { display:grid; gap:8px }
.kpi-foot .split,.usage>div:first-child { color:var(--muted); gap:6px; font-variant-numeric:tabular-nums }
.kpi-foot a { color:var(--primary); font-weight:600; font-size:12px }
progress { appearance:none; width:100%; height:12px; display:block; overflow:hidden; border:1px solid var(--line); border-radius:99px; background:var(--low); color:var(--primary); accent-color:var(--primary) }
progress::-webkit-progress-bar { background:var(--low) }
progress::-webkit-progress-value { border-radius:99px; background:var(--primary) }
progress::-moz-progress-bar { border-radius:99px; background:var(--primary) }
progress.green::-webkit-progress-value { background:var(--success) }
progress.green::-moz-progress-bar { background:var(--success) }
.manage-grid,.purchase-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:24px; align-items:start }
.manage-grid>:first-child { grid-column:span 7 }
.manage-grid>:last-child { grid-column:span 5 }
.copy-strip { padding:14px; min-height:62px; display:flex; gap:12px; align-items:center; justify-content:space-between; background:var(--low); border:1px solid var(--line); border-radius:var(--md); min-width:0 }
.copy-strip input[readonly] { border:0; background:transparent; padding:4px 0; text-align:right; font:500 13px/18px "Fira Code",monospace; text-overflow:ellipsis }
.copy-strip>span:not(.sr-only) { color:var(--muted) }
.copy-strip>span .icon { vertical-align:middle; margin-inline-end:4px }
.copy-button { flex-shrink:0; padding:8px 15px; line-height:18px; font-size:12px }
.copy-button .icon { font-size:16px }
.location-picker { display:grid; gap:10px }
.chips,.action-bar,.renew-options,.pagination,.desk-links { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.chip,.radio-chip span { padding:8px 14px; border-radius:999px; font-size:12px; line-height:18px }
.chip.selected,.radio-chip input:checked+span,.option input:checked+span { background:var(--wash); border-color:var(--primary); color:var(--primary) }
.chip .icon { font-size:15px }
.action-bar { border-top:1px solid var(--line); padding-top:12px; gap:12px }
.settings-card { gap:16px }
.settings-card>header { border-bottom:1px solid var(--line); padding-bottom:12px }
.settings-stack { display:grid; gap:12px }
.setting-row { padding:14px; background:var(--low); border-radius:var(--md) }
.setting-row summary,.setting-row.split { display:flex; justify-content:space-between; align-items:center; gap:12px }
.setting-row summary::-webkit-details-marker { display:none }
.setting-row summary>span:first-child { min-width:0 }
.setting-row strong { display:block; font-size:16px; line-height:24px; font-weight:600 }
.setting-row small,.renewal small,.selected-method small { display:block; line-height:22px; font-size:14px }
.setting-row .badge { flex-shrink:0; padding:2px 10px }
.setting-row form { display:grid; gap:10px; margin-top:12px; justify-items:start }
.setting-row form label { width:100% }
.setting-row input:not([type=radio]),.setting-row textarea { background:white }
.setting-row[open] textarea,.setting-row[open]>input { margin-top:10px }
.board { display:grid; gap:16px; min-width:0 }
.board-title h2 { font-size:24px; line-height:32px }
.renew-options { align-items:stretch; gap:16px }
.renewal { padding:16px; gap:20px; flex:1 1 255px }
.filters { display:flex; align-items:end; gap:14px; flex-wrap:wrap; padding:18px 24px }
.filters label:first-child { flex:1 1 210px }
.filters label:nth-child(2) { min-width:140px }
.filters>.text-link { align-self:center }
.subscription-grid { display:grid; gap:24px; grid-template-columns:repeat(3,minmax(0,1fr)) }
.subscription-tile { gap:16px }
.subscription-tile .action-bar { margin-top:auto }
.usage { display:grid; gap:8px }
.usage>div:first-child { display:flex; flex-wrap:wrap; justify-content:space-between; font-size:12px }
.usage progress { height:8px }
.box>p,.board-title p,.summary-card>p { color:var(--muted) }
.purchase-grid { grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:32px }
.summary-card { position:sticky; top:89px; gap:16px }
.builder-steps { display:flex; flex-direction:column; gap:24px; min-width:0 }
.choice-box { position:relative; min-inline-size:0; padding:24px; margin:0; display:flow-root }
.choice-box legend { float:right; width:100%; margin:0 0 16px; padding:0; font-size:20px; font-weight:700; line-height:28px }
.choice-box legend span { color:var(--primary) }
.choice-box legend+* { clear:both }
.choice-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); gap:12px }
.option,.radio-chip { position:relative; display:block; cursor:pointer }
.option input,.radio-chip input { position:absolute; opacity:0; width:1px; height:1px; inset-inline-start:10px; top:50% }
.option span,.radio-chip span { display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line); background:var(--paper); height:100%; font-weight:600 }
.option span { padding:14px; border-radius:var(--md); font-size:14px; min-height:52px }
.option input:focus-visible+span,.radio-chip input:focus-visible+span { outline:2px solid var(--primary); outline-offset:2px }
.users-choice { display:flex; justify-content:flex-start; align-items:center; gap:12px; padding-bottom:16px }
.users-choice select { width:auto }
.price-total { display:grid; gap:4px; border-top:1px solid var(--line); padding-top:16px }
.price-total strong { font-size:24px; line-height:32px; color:var(--primary) }
.price-total strong small { font-weight:600; color:inherit }
.refresh-builder { align-self:start }
.enhanced-builder .refresh-builder { display:none }
#builder[aria-busy=true] .summary-card { opacity:.65 }
.selected-method { border-color:var(--primary); background:#fff4f2 }
.selected-method>i:last-child { margin-inline-start:auto }
.balance-card,.wallet-form,.service-card { align-items:flex-start }
.wallet-form form,.service-card>label { width:100% }
.wallet-form form { display:grid; gap:12px; justify-items:start }
.wallet-form label { width:100% }
.payment-grid { grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:32px }
.payment-form { display:grid; gap:20px; align-items:start }
.payment-form>.btn { justify-self:start }
.manual-renewal { width:min(100%,800px) }
.package-picker { min-inline-size:0; margin:0; padding:0; border:0 }
.package-picker legend { font-size:18px; font-weight:750; margin-block-end:12px }
.package-search { display:grid; gap:6px; margin-block-end:10px }
.package-search-field { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; background:var(--low); border:1px solid var(--line); border-radius:var(--md); padding-inline:12px }
.package-search-field>.icon { color:var(--muted) }
.package-search-field:focus-within { outline:2px solid var(--primary); outline-offset:2px }
.package-search-field input[type=search] { border:0; background:none; padding-inline:0; outline:0 }
.package-search-field input::-webkit-search-cancel-button { display:none }
.package-clear { display:grid; place-items:center; inline-size:36px; block-size:36px; margin-inline-end:-4px; border-radius:var(--sm); color:var(--muted) }
.package-clear:hover { background:var(--hover); color:var(--primary) }
.package-results { font-size:12px; min-block-size:20px; color:var(--muted) }
.package-options { max-block-size:min(46vh,28rem); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; margin:0; padding:3px; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px }
.package-option { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px 8px; block-size:100%; padding:10px; border:1px solid var(--line); border-radius:var(--md); background:var(--paper); cursor:pointer }
.package-option:hover { background:var(--low) }
.package-option:has(:checked) { border-color:var(--primary); background:var(--wash) }
.package-option:has(:focus-visible) { outline:2px solid var(--primary); outline-offset:1px }
.package-option input[type=radio] { inline-size:18px; block-size:18px; margin:0; cursor:inherit }
.package-option-info { display:grid; gap:2px; min-inline-size:0; overflow-wrap:anywhere }
.package-option-info strong { font-size:15px; line-height:22px }
.package-option-info small { font-weight:400 }
.package-option-badge { grid-column:2; max-inline-size:100%; padding:2px 8px; overflow-wrap:anywhere; text-align:center; background:var(--low) }
.package-submit:disabled { opacity:.55; cursor:not-allowed }
.pay-choices { border:0; padding:0; margin:0; width:100%; min-width:0 }
.pay-choices legend { font-size:20px; line-height:28px; font-weight:750; margin-bottom:18px }
.pay-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:6px; background:var(--low); border:1px solid var(--line); border-radius:var(--md) }
.pay-tabs label { position:relative; display:flex; justify-content:center; align-items:center; gap:6px; padding:10px 6px; min-height:44px; border-radius:var(--sm); text-align:center; color:var(--muted); font-weight:650; cursor:pointer }
.pay-tabs input { position:absolute; opacity:0; inset:0; width:100%; height:100%; min-height:0; margin:0; cursor:inherit }
.pay-tabs .icon { font-size:18px }
.pay-tabs label:has(:checked) { background:var(--paper); color:var(--ink); box-shadow:var(--shadow) }
.pay-tabs label:has(:focus-visible) { outline:2px solid var(--primary); outline-offset:2px }
.pay-tabs label:has(:disabled) { opacity:.55; cursor:default }
.pay-info { padding:16px; border:1px solid var(--line); border-radius:var(--md); background:var(--low); display:grid; gap:8px }
.pay-info p,.pay-cancel p { font-size:14px; color:var(--muted); line-height:1.7 }
.pay-choices>.pay-info { display:none; margin-top:20px }
.pay-choices:has(input[value=bank]:checked)>.bank,
.pay-choices:has(input[value=tetra98]:checked)>.tetra98,
.pay-choices:has(input[value=card]:checked)>.card,
.pay-choices:has(input[value=crypto]:checked)>.crypto,
.pay-choices:has(input[value=wallet]:checked)>.wallet { display:grid }
.pay-info label,.pay-info select,.payment-form label { min-width:0; width:100% }
.bank-destination input { font-variant-numeric:tabular-nums; letter-spacing:.08em }
.bank-destination .copy-button { justify-self:start }
.pay-cancel { border-top:1px solid var(--line); padding-top:16px }
.pay-cancel form { margin-top:12px }
[data-report-trigger][hidden] { display:none }
@media(max-width:620px) {
  .pay-tabs { grid-template-columns:1fr }
  .pay-tabs label { justify-content:flex-start; padding-inline:12px }
  .payment-grid { gap:16px }
}
.wallet-layout.board { display:grid; gap:24px }
.tile-label { color:var(--muted); font-weight:600; display:flex; align-items:center; gap:8px }
.tile-label .icon,.balance-card>a { color:var(--primary) }
.balance-card>a { display:inline-flex; align-items:center; gap:6px; margin-top:auto }
.figure small { font-size:16px; font-weight:600 }
.eyeline,.kicker { color:var(--primary); font-size:12px; font-weight:600 }
.ledger,.order-list { list-style:none; margin:0; padding:0 }
.ledger,.board>.order-list { background:var(--paper); border:1px solid var(--line); border-radius:var(--lg); padding:4px 20px }
.ledger li,.order-list li>a { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0 }
.ledger li+li,.order-list li+li { border-top:1px solid var(--line) }
.ledger small,.order-list small { display:block }
.order-list li>a>div { flex:1; min-width:0 }
.order-list li>a>.icon:first-child { color:var(--primary) }
.order-list a:hover { color:var(--primary) }
.order-list .empty { padding:12px 0 }
.order-state { display:inline-flex; color:var(--muted); background:var(--low); border-radius:99px; padding:3px 9px; font-size:12px; text-align:center }
.link-rows { display:grid }
.link-rows a { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); font-weight:600 }
.link-rows a:last-child { border:0 }
.link-rows a::after { content:"‹"; color:var(--primary); font-size:20px }
.link-rows a:hover { color:var(--primary) }
.pagination { justify-content:center; gap:16px }
.pagination a { color:var(--primary) }
.review-dialog { background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:var(--lg); padding:0; width:min(520px,calc(100% - 32px)); max-height:calc(100dvh - 32px); box-shadow:0 20px 60px rgb(40 10 12 / .22) }
.review-dialog::backdrop { background:rgb(30 20 20 / .45) }
.review-dialog>div,.transfer-sheet { display:grid; gap:16px; padding:24px }
.transfer-amounts { display:grid; grid-template-columns:1fr 1fr; gap:10px }
.transfer-amounts>div { min-width:0; background:var(--low); border-radius:var(--md); padding:14px }
.transfer-amounts>div:last-child { background:var(--wash); color:var(--primary) }
.transfer-amounts dt { font-size:12px }
.transfer-amounts dd { font-size:19px; font-weight:700; margin:6px 0 }
.narrow { width:min(100%,560px); margin:auto; padding-inline:16px }
.page-space { padding-block:48px }
.page-space>.back { margin-bottom:16px }
.delivery-banner { padding:24px; display:flex; flex-flow:row wrap; align-items:center; gap:16px; border-color:var(--success) }
.delivery-banner>div:first-of-type { flex:1 1 220px }
.delivery-banner>.icon-tile { background:#dcfce7; color:var(--success) }
.delivery-banner h1 { font-size:26px; line-height:34px }
.credentials .copy-button,.qr { align-self:flex-start }
.credentials input,.credentials textarea,.service-card input[data-copy] { font:500 13px/20px "Fira Code",monospace }
.qr { display:grid; justify-items:center; gap:10px; align-self:center; width:100% }
.qr canvas { display:block; width:min(220px,100%); height:auto; image-rendering:pixelated; border:1px solid var(--line); border-radius:var(--md) }
.qr figcaption { font-size:12px; color:var(--muted) }
@media (max-width:1023px) {
  .manage-grid,.purchase-grid { grid-template-columns:1fr }
  .manage-grid>:first-child,.manage-grid>:last-child { grid-column:auto }
  .summary-card { position:static }
  .subscription-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width:767px) {
  .desk { padding-block:32px; gap:24px }
  .package-options { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .kpi-grid,.wallet-layout,.subscription-grid { grid-template-columns:1fr; gap:16px }
  .manage-grid,.purchase-grid,.builder-steps { gap:16px }
  .kpi,.box,.summary-card,.choice-box,.service-card,.balance-card,.settings-card,.control-card,.subscription-tile { padding:20px }
  .kpi-top { gap:8px }
  .kpi-value { column-gap:6px }
  .switcher { width:fit-content }
  .switcher a { max-width:100%; padding:8px 12px }
  .switcher a span { display:none }
  .filters { padding:16px; gap:10px }
  .filters label:nth-child(2) { flex:1; min-width:115px }
  .order-list li>a { gap:8px }
  .empty { padding:24px }
  .action-bar .btn { padding-inline:14px }
}
@media (max-width:380px) {
  .kpi-top { flex-wrap:wrap }
  .kpi-top .badge { font-size:11px; padding-inline:8px }
  .kpi-value strong { font-size:26px }
}
