.account-body {
  min-height: 100vh;
  background: linear-gradient(
    160deg,
    var(--site-blue-tint),
    var(--site-bg) 60%
  );
}
.footer-brand:not([href]) {
  cursor: default;
  pointer-events: none;
}
.payment-quote-note {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--site-muted);
}

/* Account header */
.account-header {
  max-width: 1180px;
  margin: auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.account-header .brand {
  font-size: 19px;
}
.account-header .text-link {
  margin: 0;
}
.google-signin-section { margin-top: 24px; }
.google-signin { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 46px; width: 100%; border: 1px solid #747775; border-radius: 6px; background: #fff; }
/* Preserve the official artwork; hide its old frame, including rounded corners. */
.google-signin img { display: block; width: 180px; max-width: 100%; height: auto; clip-path: inset(4px); }
.google-signin:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 3px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--site-muted); font-size: 12px; }
.auth-divider::before,.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--site-border); }
.legal-notice a { color: var(--site-blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-page { width: min(780px,calc(100% - 32px)); margin: 24px auto 64px; padding: clamp(20px,5vw,40px); background: var(--site-surface); border: 1px solid var(--site-border); border-radius: 16px; overflow-wrap: anywhere; }
.legal-page h1 { font-size: clamp(26px,6vw,36px); }
.legal-page h2 { margin: 28px 0 10px; font-size: 20px; }
.legal-page p,.legal-page li { font-size: 14px; line-height: 1.8; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--site-blue); text-decoration: underline; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }

/* Sign in / create account split */
.auth-layout {
  max-width: 980px;
  margin: 24px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}
.auth-card {
  padding: 38px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 18px;
  box-shadow: 0 12px 40px #142b4910;
}
.auth-card h1 {
  font-size: 32px;
}
.auth-card form {
  display: grid;
  gap: 20px;
  margin: 28px 0 24px;
}
.auth-card label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--site-muted);
}
.auth-card input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--site-border);
  background: var(--site-surface-alt);
  border-radius: 8px;
  color: var(--site-ink);
  font-size: 16px;
}
.auth-card input:focus {
  outline: 2px solid var(--site-blue);
  outline-offset: 2px;
}
.auth-card button {
  width: 100%;
  justify-content: space-between;
}
.auth-help {
  font-size: 11px;
  color: var(--site-faint);
  line-height: 1.7;
}
.auth-switch {
  font-size: 12px;
  margin-bottom: 20px;
}
.auth-switch a {
  color: var(--site-blue);
  font-weight: 650;
}
.form-error {
  font-size: 12px;
  color: #ad3044;
  background: #fff3f4;
  padding: 12px;
  border-radius: 6px;
}

.self-service {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto 80px;
}
.self-card {
  padding: 24px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 14px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.self-card form {
  display: grid;
  gap: 14px;
}
.self-card label {
  display: grid;
  gap: 6px;
}
.self-card input,
.self-card select {
  padding: 12px;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  font: inherit;
  width: 100%;
}
.auth-benefits {
  background: var(--site-ink);
  color: white;
  border-radius: 18px;
  padding: 38px;
}
.auth-benefits h2 {
  font-size: 22px;
  color: white;
}
.auth-benefits ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.auth-benefits .benefit-check {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.auth-benefits strong {
  display: block;
  font-size: 13px;
  color: white;
}
.auth-benefits p {
  font-size: 12px;
  line-height: 1.7;
  color: #b7c4d4;
  margin-top: 3px;
}

/* Browse mode tabs (Service first / Country first) */
.browse-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--site-surface-alt);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.mode-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--site-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 10px 20px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.mode-tab:hover {
  color: var(--site-ink);
}
.mode-tab[aria-selected="true"] {
  background: var(--site-surface);
  color: var(--site-ink);
  box-shadow: 0 1px 3px #10244514;
}
.mode-tab:focus-visible {
  outline: 2px solid var(--site-blue);
  outline-offset: 2px;
}
#catalog-tabpanel:focus-visible {
  outline: none;
}

/* Second panel items rendered with a service icon (country-first mode) */
.customer-offer.has-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.customer-offer.has-icon > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.customer-offer.has-icon strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Second panel pagination reuses .catalog-pagination but needs the panel's own gutter */
.catalog-panel .catalog-pagination {
  padding: 4px 27px 0;
}

@media (max-width: 1050px) {
  .catalog-panel .catalog-pagination {
    padding: 4px 20px 0;
  }
}

@media (max-width: 600px) {
  .browse-mode-tabs {
    width: 100%;
  }
  .mode-tab {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .catalog-panel .catalog-pagination {
    padding: 4px 14px 0;
  }
}

/* Server selection panel */
.server-panel {
  border-top: 1px solid var(--site-border);
  padding: 20px 24px 4px;
}
.server-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.server-card {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-surface);
  color: var(--site-ink);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.server-card > div {
  display: grid;
  gap: 4px;
}
.server-card small {
  font-size: 11px;
  color: var(--site-muted);
}
.server-card:hover:not(:disabled) {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
}
.server-card[aria-pressed="true"] {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
}
.server-card:disabled {
  background: var(--site-surface-alt);
  color: var(--site-muted);
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .server-list {
    grid-template-columns: 1fr;
  }
  .server-panel {
    padding: 16px 18px 4px;
  }
}

/* Representative service directory */
.provider-services {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.service-initial > * { grid-area: 1 / 1; }
.service-image { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: white; }
.provider-service {
  align-items: center;
  min-height: 80px;
}
.provider-service > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.provider-service strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-initial { align-self: center; }
@media (max-width: 1050px) {
  .provider-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .provider-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .provider-services { grid-template-columns: minmax(0, 1fr); }
}
.provider-service small {
  font-size: 11px;
  color: var(--site-muted);
}
.customer-offer[aria-pressed="true"] {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
}

/* Catalog offers and orders */
#customer-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
}
#customer-offers:empty {
  display: none;
}
.customer-offer,
.customer-order {
  text-align: left;
  padding: 18px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-surface);
  color: var(--site-ink);
  display: grid;
  gap: 7px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.customer-offer:hover:not(:disabled),
.customer-order:hover {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
}
.customer-offer span,
.customer-order span {
  font-size: 12px;
  color: var(--site-muted);
}
.customer-offer small {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.customer-offer:disabled {
  background: var(--site-surface-alt);
}
#order-total {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.continue-button:not(:disabled) {
  background: var(--site-blue);
}
#selected-terms {
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.customer-order-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.dev-order-detail {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-surface-alt);
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.dev-order-detail p {
  margin: 0;
}
.order-detail {
  padding: 28px;
  margin-top: 24px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: var(--site-surface);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}
.order-detail h2 {
  font-size: 20px;
}
.order-detail p {
  font-size: 12px;
}
.verification-number,
.verification-code {
  font-family: var(--ds-font-mono);
  font-size: 26px;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}
.verification-code {
  color: var(--site-blue);
}

@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: 1fr;
    margin: 12px auto 56px;
  }
}

@media (max-width: 600px) {
  .auth-card,
  .auth-benefits {
    padding: 26px 22px;
  }
  .account-header {
    padding: 18px 18px;
  }
  .account-header .text-link {
    font-size: 11px;
  }
  #customer-offers {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .order-detail {
    padding: 20px;
  }
  .header-actions {
    gap: 8px;
  }
  #order-total {
    font-size: 17px;
  }
}

/* My Orders / History workspace */
@media (min-width: 1051px) {
  body.account-workspace-active .page-container {
    max-width: 1720px;
    padding: 0 40px;
  }
}
.account-workspace.secondary-page {
  padding: 26px 0 64px;
}
#orders-heading {
  font-size: 24px;
  letter-spacing: -0.3px;
}
#orders-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--site-muted);
}
.account-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 1050px) {
  .account-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Left: shared catalog chooser, forced single-column when nested here */
.workspace-catalog {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workspace-catalog .catalog-section {
  padding: 0;
}
.workspace-catalog .workspace {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.workspace-catalog .order-panel {
  position: static;
}
.server-terms { display: block; margin-top: 6px; color: var(--site-muted); font-size: 11px; line-height: 1.5; }
.workspace-catalog .provider-services { max-height: 280px; gap: 6px; }
.workspace-catalog .provider-service { min-height: 50px; padding: 8px; gap: 8px; }
.workspace-catalog .provider-service small { display: none; }
.workspace-catalog .panel-heading { padding: 14px 16px; }
.workspace-catalog .panel-heading h2 { font-size: 18px; }
.workspace-catalog .service-directory { margin-bottom: 16px; }

/* Right: orders / history pane */
.orders-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}
.orders-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--site-border);
  border-radius: 9px;
  background: var(--site-surface);
  color: var(--site-muted);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.icon-button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover:not(:disabled) {
  border-color: var(--site-blue);
  color: var(--site-blue);
  background: var(--site-blue-tint);
}
.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.icon-button:focus-visible,
.order-filter:focus-visible,
.history-category:focus-visible,
.order-history-card:focus-visible {
  outline: 2px solid var(--site-blue);
  outline-offset: 2px;
}

/* History controls: category tabs, status filter chips, search */
.history-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.history-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-basis: 100%;
}
.history-category {
  appearance: none;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  color: var(--site-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.history-category.is-selected {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
  color: var(--site-blue);
}
button.history-category:disabled {
  cursor: not-allowed;
  color: var(--site-faint);
  opacity: 0.6;
}
.order-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}
.order-filter {
  appearance: none;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  color: var(--site-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.order-filter span {
  font-size: 10px;
  color: var(--site-faint);
  background: var(--site-surface-alt);
  border-radius: 999px;
  padding: 1px 7px;
}
.order-filter:hover {
  border-color: var(--site-blue);
}
.order-filter[aria-pressed="true"] {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
  color: var(--site-blue);
}
.order-filter[aria-pressed="true"] span {
  background: var(--site-blue);
  color: white;
}
.order-search-control {
  flex: 0 1 300px;
  min-width: 200px;
}
@media (max-width: 600px) {
  .order-search-control {
    flex-basis: 100%;
  }
}

.orders-signin-note {
  padding: 14px 16px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-surface-alt);
  font-size: 12px;
  color: var(--site-muted);
  line-height: 1.8;
}
.orders-signin-note a {
  color: var(--site-blue);
  font-weight: 650;
}

/* Order list / history card grid */
#customer-orders.customer-order-list {
  margin-top: 0;
  grid-template-columns: 1fr;
}
#history-controls:not([hidden]) ~ #customer-orders.customer-order-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
  #history-controls:not([hidden]) ~ #customer-orders.customer-order-list {
    grid-template-columns: 1fr;
  }
}

.order-history-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: var(--site-surface);
  color: var(--site-ink);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.order-history-card:hover {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
}
.order-history-card[aria-pressed="true"] {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
}
.order-card-logo.service-initial {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
}
.order-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.order-card-service {
  font-size: 13px;
  font-weight: 650;
  color: var(--site-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.order-status-badge[data-status="success"] {
  background: var(--ds-ok-bg);
  color: var(--ds-ok-fg);
}
.order-status-badge[data-status="pending"] {
  background: var(--ds-warn-bg);
  color: var(--ds-warn-fg);
}
.order-status-badge[data-status="attention"] {
  background: var(--ds-warn-bg);
  color: var(--ds-warn-fg);
}
.order-status-badge[data-status="refunded"] {
  background: var(--ds-info-bg);
  color: var(--ds-info-fg);
}
.order-status-badge[data-status="canceled"],
.order-status-badge[data-status="expired"] {
  background: var(--ds-muted-bg);
  color: var(--ds-muted-fg);
}
.order-status-badge[data-status="failed"] {
  background: var(--ds-danger-bg);
  color: var(--ds-danger-fg);
}
.order-card-meta {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--site-muted);
}
.order-card-meta > *:not(:last-child)::after {
  content: "·";
  margin-left: 4px;
  color: var(--site-faint);
}
.order-card-otp {
  font-family: var(--ds-font-mono);
  font-size: 12px;
  font-weight: 650;
  color: var(--site-blue);
}
.order-card-price {
  color: var(--site-blue);
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.order-card-side {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.order-card-side .order-card-price { margin-left: 0; }
.order-card-countdown {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--site-blue);
  background: var(--site-blue-tint);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.order-card-countdown[data-tone="waiting"] { color:#c2410c; background:#ffedd5; }
.order-card-countdown[data-tone="timing"] { color:#15803d; background:#dcfce7; }
.order-card-countdown[data-tone="warning"] { color:#854d0e; background:#fef3c7; }
.order-card-countdown[data-tone="received"] { color:var(--ds-ok-fg); background:var(--ds-ok-bg); }

.orders-empty {
  min-height: 320px;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--site-border);
  border-radius: 14px;
  background: var(--site-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.orders-empty-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 6px 0 12px; border-radius: 16px; background: var(--site-blue-tint); color: var(--site-blue); }
.orders-empty-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.orders-empty h2 {
  font-size: 16px;
  color: var(--site-ink);
}
.orders-empty p {
  font-size: 12px;
  color: var(--site-muted);
  max-width: 360px;
  line-height: 1.8;
}

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.orders-pagination:empty {
  display: none;
}
.orders-pagination span {
  font-size: 11px;
  color: var(--site-muted);
}

@media (max-width: 600px) {
  .orders-pane {
    padding: 20px;
  }
  #orders-heading {
    font-size: 20px;
  }
  .order-history-card {
    padding: 12px;
  }
}

/* Country toolbar: count + favorites filter tabs above the long rows */
.country-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 24px;
}
#country-list-count {
  font-size: 12px;
  color: var(--site-muted);
}
.country-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 2px;
  background: var(--site-surface-alt);
  border-radius: 12px;
}
.country-filter-tabs button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--site-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 10px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.country-filter-tabs button:hover {
  color: var(--site-ink);
}
.country-filter-tabs button[aria-pressed="true"] {
  background: var(--site-surface);
  color: var(--site-ink);
  box-shadow: 0 1px 3px #10244514;
}
.country-filter-tabs button:focus-visible {
  outline: 2px solid var(--site-blue);
  outline-offset: 2px;
}
#country-favorite-note {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--site-muted);
}
#country-favorite-note:empty { display: none; }

/* Long horizontal country rows (guest catalog + account workspace) */
#customer-offers.country-list,
#provider-services.country-directory {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.country-row,
.provider-country-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  padding: 6px 10px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: var(--site-surface);
}
.country-row .country-favorite-toggle,
.provider-country-row .country-favorite-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--site-muted);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.country-row .country-favorite-toggle svg,
.provider-country-row .country-favorite-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.country-row .country-favorite-toggle:hover,
.provider-country-row .country-favorite-toggle:hover {
  color: var(--ds-warn-fg);
}
.country-row .country-favorite-toggle[aria-pressed="true"],
.provider-country-row .country-favorite-toggle[aria-pressed="true"] {
  background: transparent;
  color: var(--ds-warn-fg);
}
.country-row .country-favorite-toggle[aria-pressed="true"] svg,
.provider-country-row .country-favorite-toggle[aria-pressed="true"] svg {
  fill: var(--ds-warn-fg);
}
.country-row .country-favorite-toggle:focus-visible,
.provider-country-row .country-favorite-toggle:focus-visible {
  outline: 2px solid var(--site-blue);
  outline-offset: 2px;
}

.country-row button.country-select,
.provider-country-row button.provider-service.country-primary {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 6px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--site-ink);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.country-row button.country-select:hover:not(:disabled),
.provider-country-row button.provider-service.country-primary:hover:not(:disabled) {
  background: transparent;
  color: var(--site-blue-dark);
}
.country-flag {
  flex: 0 0 auto;
  width: 32px;
  height: 24px;
  object-fit: contain;
}
.workspace-catalog .provider-country-row button.provider-service.country-primary {
  height: auto;
  min-height: 44px;
}
.workspace-catalog .provider-country-row .country-primary small {
  display: block;
}
.country-row .country-meta,
.provider-country-row .provider-service.country-primary > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.country-row .country-meta strong,
.provider-country-row .provider-service.country-primary strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-row .country-meta small,
.provider-country-row .country-meta small {
  font-size: 11px;
  color: var(--site-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-row .country-view,
.provider-country-row .country-view {
  flex: 0 0 auto;
  align-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--site-blue-tint);
  font-size: 11px;
  font-weight: 650;
  color: var(--site-blue);
  white-space: nowrap;
}

/* Favorite / selected row state (selected takes precedence) */
.country-row[data-favorite="true"],
.provider-country-row[data-favorite="true"] {
  border-color: var(--ds-warn-line);
  background: var(--ds-warn-bg);
}
.country-row[data-selected="true"],
.provider-country-row[data-selected="true"] {
  border-color: var(--site-blue);
  background: var(--site-blue-tint);
}
.country-row[data-selected="true"] .country-view {
  color: var(--site-blue);
}
#server-panel.country-expanded {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 -10px -6px;
  padding: 12px;
  border-top: 1px solid var(--site-border);
  border-radius: 0 0 12px 12px;
  background: var(--site-surface);
}
#provider-services.country-directory:has(.country-expanded) { max-height: none; }

@media (max-width: 600px) {
  .country-toolbar {
    padding: 8px 18px;
  }
  .country-row button.country-select,
  .provider-country-row button.provider-service.country-primary {
    padding: 6px 2px;
    gap: 8px;
  }
  .country-row .country-view {
    font-size: 11px;
  }
}

/* Server sort toolbar */
.server-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
}
#server-sort.server-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-surface);
  color: var(--site-ink);
}
.server-sort-tabs button {
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--site-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.server-sort-tabs button[aria-pressed="true"] { background: var(--site-blue); color: white; }
.server-sort-tabs button:focus-visible {
  outline: 2px solid var(--site-blue);
  outline-offset: 2px;
}

/* Long horizontal server rows with direct and automatic purchase controls. */
.server-list {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 10px;
}
.server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.server-card-select {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.server-card[data-disabled="true"] { background: var(--site-surface-alt); color: var(--site-muted); }
.server-card[data-disabled="true"]:hover { border-color: var(--site-border); background: var(--site-surface-alt); }
.server-card .server-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.server-row-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.server-row-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-best-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: #d8f3e7;
  color: #167651;
}
.server-card[data-provider-best="true"] { background: #edf9f3; border-color: #d4eee0; }
.server-card[data-provider-best="true"][aria-pressed="true"] { border-color: var(--site-blue); }
.server-card[data-provider-best="true"][data-disabled="true"] { background: #f3f7f5; color: var(--site-faint); }

/* Existing design-system toast appearance, isolated from preview-only behaviors. */
.order-toast-region {
  position: fixed;
  left: 50%;
  bottom: var(--ds-space-8);
  transform: translateX(-50%);
  z-index: 120;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}
.order-toast {
  background: var(--ds-n-900);
  color: var(--ds-n-0);
  border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-5) var(--ds-space-6);
  font-size: var(--ds-text-base);
  box-shadow: var(--ds-shadow-lg);
}
.order-toast[data-tone="error"] {
  background: var(--ds-danger-fg);
}
.server-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.server-stock {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--site-surface-alt);
  color: var(--site-muted);
}
.server-card > .server-row-action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.server-row-action .server-price {
  font-size: 15px;
  white-space: nowrap;
}
.server-row-action .server-select-label {
  font-size: 11px;
  color: var(--site-muted);
  white-space: nowrap;
}
.server-card[aria-pressed="true"] .server-row-action .server-select-label {
  color: var(--site-blue);
}
.server-action-buttons { display: flex; align-items: center; gap: 6px; }
.server-action-buttons .button { min-height: 32px; padding: 6px 12px; }
.auto-buy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--site-blue-tint-border);
  border-radius: 10px;
  background: linear-gradient(90deg,var(--site-blue-tint),var(--site-surface));
}
.auto-buy-panel > div { min-width: 0; display: grid; }
.auto-buy-panel strong { font-size: 12px; }
.auto-buy-panel span { color: var(--site-muted); font-size: 10px; }
.button-danger { border-color: #ffc4c4; background: #fff4f4; color: #d40000; }
.button-danger:not(:disabled):hover { background: #ffe8e8; }

/* Active orders mirror the compact supplier dashboard while keeping controls accessible. */
#customer-orders.active-order-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.active-order-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: var(--site-surface);
}
.order-progress-track { position:absolute; inset:0 0 auto; z-index:1; display:block; height:6px; overflow:hidden; background:#e5e7eb; }
.active-order-progress { display:block; width:0; height:100%; background:#22c55e; transition:width .9s linear; }
.active-order-progress[data-tone="waiting"] { background:#f97316; }
.active-order-progress[data-tone="warning"] { background:#eab308; }
.active-order-progress[data-tone="received"] { background:var(--ds-ok-fg); }
.active-order-card[data-sms-event="received"] > :not(.order-progress-track):not(.order-card-received-toast) {
  animation:order-card-received-blur 3s ease both;
}
.order-card-received-toast {
  position:absolute;
  left:50%;
  top:50%;
  z-index:3;
  transform:translate(-50%,-50%);
  padding:9px 16px;
  border-radius:999px;
  background:#15803d;
  color:#fff;
  box-shadow:0 8px 24px #14532d4d;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:7px;
  animation:order-card-received-bounce 3s cubic-bezier(.22,.9,.3,1) both;
}
.order-card-received-icon { display:grid; place-items:center; width:20px; height:20px; }
.order-card-received-icon svg { width:20px; height:20px; fill:currentColor; }
@keyframes order-card-received-bounce {
  0% { opacity:0; transform:translate(-50%,-42%) scale(.65); }
  9% { opacity:1; transform:translate(-50%,-50%) scale(1.12); }
  15% { transform:translate(-50%,-50%) scale(.94); }
  21% { transform:translate(-50%,-50%) scale(1.03); }
  26%,93% { opacity:1; transform:translate(-50%,-50%) scale(1); }
  100% { opacity:0; transform:translate(-50%,-54%) scale(.96); }
}
@keyframes order-card-received-blur {
  0%,100% { filter:blur(0); opacity:1; }
  6%,93% { filter:blur(2px); opacity:.38; }
}
.active-order-open { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.active-order-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.active-order-head > div { display:grid; gap:2px; }
.active-order-head strong { font-size:13px; }
.active-order-head span:not(.order-card-countdown) { font-size:10px; color:var(--site-muted); }
.active-order-phone { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:10px; background:var(--site-blue-tint); }
.active-order-phone strong { flex:1; min-width:0; font-family:var(--ds-font-mono); font-size:14px; letter-spacing:.3px; }
.active-order-phone-icon { color:var(--site-blue); font-size:18px; }
.active-order-copy { padding:5px 9px; border:0; border-radius:7px; background:#bfe1ff; color:var(--site-blue-dark); font-size:11px; }
.active-order-waiting { display:flex; align-items:center; gap:10px; min-height:52px; padding:9px 12px; border:1px dashed var(--site-border); border-radius:10px; }
.active-order-waiting > div { display:grid; }
.active-order-waiting strong { font-size:12px; }
.active-order-waiting small { color:var(--site-muted); font-size:9px; }
.active-order-messages { display:grid; gap:6px; }
.active-order-message { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; background:var(--ds-ok-bg); color:var(--ds-ok-fg); font-size:12px; }
.active-order-message > span { flex:1; min-width:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.active-order-message > button { flex-shrink:0; }
.sms-spinner { width:28px; height:28px; flex:0 0 28px; border:3px solid #d6ebff; border-top-color:var(--site-blue); border-radius:50%; animation:sms-spin .9s linear infinite; }
.sms-ready { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--ds-ok-bg); color:var(--ds-ok-fg); }
@keyframes sms-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sms-spinner { animation-duration:2s; } }
.active-order-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.active-order-actions .button { width:100%; min-height:34px; padding:7px 10px; }

.credit-dialog { width:min(430px,calc(100% - 28px)); padding:0; border:1px solid var(--site-border); border-radius:16px; box-shadow:0 24px 70px #10244533; }
.credit-dialog::backdrop { background:#0b172a66; }
.credit-dialog form { display:grid; gap:18px; padding:24px; }
.credit-dialog-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.credit-dialog-heading h2 { font-size:24px; }
.credit-dialog label { display:grid; gap:6px; font-size:12px; font-weight:650; color:var(--site-muted); }
.credit-dialog input { width:100%; padding:12px; border:1px solid var(--site-border); border-radius:9px; font-size:16px; }
.credit-promo { display:grid; gap:8px; padding-top:4px; border-top:1px solid var(--site-border); color:var(--site-ink); font-size:13px; }
.credit-promo-row { display:flex; gap:8px; align-items:center; }
.credit-promo-row input { min-width:0; flex:1; text-transform:uppercase; }
.credit-promo-row .button { flex:0 0 auto; min-height:44px; padding-inline:14px; }
.credit-promo-result { margin:0; color:#087b38; font-size:12px; font-weight:600; }

@media (max-width: 600px) {
  .server-list {
    grid-template-columns: none;
  }
  .server-card {
    align-items: flex-start;
    padding: 12px;
    gap: 10px;
  }
  .server-row-heading strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .server-card > .server-row-action {
    align-items: flex-end;
  }
  #customer-orders.active-order-grid { grid-template-columns:1fr; }
  .server-action-buttons { flex-direction:column; align-items:stretch; }
}

/* Mobile catalog: every panel fits the viewport in both browse directions. */
#catalog-tabpanel,
#catalog-tabpanel > *,
.account-workspace-grid > * {
  min-width: 0;
}

@media (max-width: 760px) {
  .page-container { padding-inline: 14px; }
  .header-credit { min-width: 0; gap: 6px; padding-left: 9px; }
  .credit-balance-value { min-width: 0; max-width: 8ch; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .hero { padding: 28px 0; }
  .hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .desktop-break { display: none; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .button { min-height: 44px; }
  .catalog-section { padding-top: 4px; }
  .browse-mode-tabs { width: 100%; margin-bottom: 12px; }
  .mode-tab { flex: 1; min-width: 0; min-height: 44px; padding: 10px 8px; }
  .service-directory { padding: 14px; margin-bottom: 12px; border-radius: 12px; }
  .service-directory .panel-heading,
  .workspace-catalog .service-directory .panel-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
  }
  .service-directory h2 { font-size: 20px; line-height: 1.3; }
  .service-directory .panel-heading > label { min-width: 0; width: 100%; }
  .service-directory input { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; border-radius: 10px; }
  .provider-services,
  .workspace-catalog .provider-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(320px, 42svh);
    margin-top: 12px;
    gap: 8px;
    padding: 2px;
  }
  .provider-service,
  .workspace-catalog .provider-service { min-height: 68px; padding: 10px; gap: 10px; }
  .provider-service strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
  .provider-service small { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
  .workspace-catalog .provider-service small { display: block; }
  .catalog-pagination { gap: 8px; padding-block: 8px; }
  .catalog-pagination > span { min-width: 0; font-size: 12px; text-align: center; }
  .catalog-pagination .text-button { min-height: 44px; padding-inline: 4px; font-size: 12px; }
  #reference-note { font-size: 12px; line-height: 1.5; }
  .selection-steps { padding: 12px 16px; font-size: 12px; }
  .catalog-controls { margin: 14px 16px 0; }
  .country-toolbar { padding: 8px 16px; gap: 8px; }
  .country-filter-tabs button { min-height: 40px; }
  .catalog-state { min-height: 160px; padding: 20px 16px; }
  .catalog-state .empty-icon { width: 40px; height: 44px; margin-bottom: 12px; }
  .catalog-state .empty-icon svg { width: 28px; height: 28px; }
  #customer-offers { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; gap: 8px; }
  .catalog-panel .catalog-pagination { padding: 4px 16px; }
  .catalog-footer { padding: 8px 16px; flex-wrap: wrap; font-size: 11px; }
  .catalog-footer > span { min-width: 0; overflow-wrap: anywhere; }
  .catalog-footer .text-button { min-height: 44px; font-size: 12px; }
  .server-toolbar .text-button { min-width: 44px; min-height: 44px; }
  .server-sort-tabs button { min-height: 40px; font-size: 12px; }
  .server-action-buttons .button { min-height: 44px; }
  .auto-buy-panel { flex-wrap: wrap; }
  .auto-buy-panel > div { flex: 1 1 150px; }
  .auto-buy-panel > button { min-height: 44px; }
  .orders-pane { padding: 0; }
  .order-search-control { min-width: 0; width: 100%; }
  .active-order-head > div { min-width: 0; overflow-wrap: anywhere; }
  .active-order-phone strong { overflow-wrap: anywhere; }
  /* Keep the active-number destination dense enough for a mobile viewport. */
  .active-order-card { gap: 8px; padding: 10px; border-radius: 12px; }
  .active-order-head { gap: 8px; }
  .active-order-phone { gap: 7px; padding: 8px 10px; }
  .active-order-phone strong { font-size: 13px; }
  .active-order-waiting { min-height: 46px; gap: 8px; padding: 7px 10px; }
  .active-order-message { gap: 7px; padding: 7px 9px; }
  .sms-spinner,
  .sms-ready { width: 24px; height: 24px; flex-basis: 24px; }
  .active-order-actions { gap: 6px; }
  .active-order-actions .button,
  .active-order-copy { min-height: 40px; }
  .credit-dialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
  .credit-dialog form { padding: 20px; gap: 16px; }
}

@media (max-width: 480px) {
  .provider-services,
  .workspace-catalog .provider-services { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .button { width: 100%; }
  .server-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
  .server-row-heading { flex-wrap: wrap; }
  .country-row,
  .provider-country-row { grid-template-columns: 40px minmax(0, 1fr); gap: 4px; padding-inline: 8px; }
  .country-row .country-view,
  .provider-country-row .country-view { padding-inline: 6px; font-size: 10px; }
}

/* The order destination follows the compact, single-column mobile reference.
   It deliberately keeps the catalog before the orders so Buy Number still
   returns to the chooser, while a newly issued number can scroll to its card. */
@media (max-width: 760px) {
  .account-workspace.secondary-page { padding: 16px 0 40px; }
  .account-workspace-grid { gap: 20px; }
  .mobile-orders-catalog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .mobile-orders-catalog-head .text-button { min-height: 32px; padding: 5px 0; font-size: 12px; }
  .mobile-orders-catalog-head > span { color: var(--site-muted); font-size: 12px; font-weight: 650; }
  body.account-workspace-active:not(.mobile-order-catalog-open) .workspace-catalog { display: none; }
  body.account-workspace-active.mobile-order-catalog-open .orders-pane { display: none; }
  .workspace-catalog .server-panel { padding: 14px 0 2px; }
  .workspace-catalog .server-list { gap: 8px; margin-top: 8px; }
  .workspace-catalog .server-card { padding: 10px; border-radius: 9px; }
  .workspace-catalog .server-action-buttons { gap: 5px; }
  .workspace-catalog .server-action-buttons .button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .orders-pane { gap: 12px; }
  .orders-pane-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }
  .orders-pane-head > div:first-child {
    flex: 0 1 8.5ch;
    min-width: 0;
  }
  #orders-heading {
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -0.35px;
  }
  #orders-subtitle {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
  }
  .orders-toolbar { gap: 8px; }
  #orders-refresh {
    width: auto;
    min-width: 76px;
    gap: 5px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
  }
  #orders-refresh::after { content: "Refresh"; }
  #orders-refresh svg { width: 15px; height: 15px; }
  #browse-services { padding-inline: 11px; font-size: 12px; }

  #customer-orders.active-order-grid { gap: 10px; }
  .active-order-card { gap: 8px; padding: 12px; border-radius: 12px; }
  .active-order-phone { padding: 9px 10px; }
  .active-order-copy { min-height: 30px; }
  .active-order-waiting { min-height: 48px; padding: 8px 10px; }
  .active-order-actions { gap: 6px; }
  .active-order-actions .button { min-height: 34px; padding: 6px 10px; }
}

/* Compact the actual mobile purchase flow: service, country, and server rows
   stay information-dense instead of inheriting desktop-sized controls. */
@media (max-width: 760px) {
  .workspace-catalog .service-directory {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .workspace-catalog .service-directory .panel-heading { gap: 8px; }
  .workspace-catalog .service-directory .panel-heading h2 { font-size: 18px; }
  .workspace-catalog .service-directory .panel-heading p,
  .workspace-catalog #reference-note { font-size: 11px; line-height: 1.35; }
  .workspace-catalog .service-directory input {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 14px;
  }
  .workspace-catalog .provider-services {
    max-height: min(280px, 38svh);
    margin-top: 8px;
    gap: 6px;
    padding: 0;
  }
  .workspace-catalog .provider-service {
    min-height: 52px;
    padding: 7px 8px;
    gap: 8px;
  }
  .workspace-catalog .provider-service strong { font-size: 13px; line-height: 1.2; }
  .workspace-catalog .provider-service small { font-size: 10px; line-height: 1.25; }
  .workspace-catalog .catalog-pagination { padding-block: 5px; }
  .workspace-catalog .catalog-pagination .text-button { min-height: 34px; font-size: 11px; }

  .workspace-catalog .catalog-panel { border-radius: 12px; }
  .workspace-catalog .catalog-panel .panel-heading {
    gap: 3px;
    padding: 13px 14px 10px;
  }
  .workspace-catalog .catalog-panel .panel-heading h2 { font-size: 19px; line-height: 1.2; }
  .workspace-catalog .catalog-panel .section-kicker,
  .workspace-catalog .catalog-panel .currency { font-size: 10px; }
  .workspace-catalog .selection-steps {
    gap: 7px 9px;
    padding: 9px 14px;
    font-size: 10px;
  }
  .workspace-catalog .selection-steps b {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .workspace-catalog .catalog-controls { margin: 10px 14px 0; }
  .workspace-catalog .catalog-controls input { min-height: 38px; padding: 8px 11px; font-size: 14px; }
  .workspace-catalog .country-toolbar { padding: 6px 14px; }
  .workspace-catalog .country-filter-tabs button { min-height: 32px; padding: 4px 9px; font-size: 11px; }
  .workspace-catalog .provider-country-row {
    min-height: 52px;
    padding: 5px 7px;
    border-radius: 10px;
  }
  .workspace-catalog .provider-country-row button.provider-service.country-primary {
    min-height: 38px;
    gap: 8px;
    padding: 4px 2px;
  }
  .workspace-catalog .country-flag { width: 28px; height: 21px; }
  .workspace-catalog .provider-country-row .provider-service.country-primary strong { font-size: 12px; }
  .workspace-catalog .provider-country-row .country-meta small { font-size: 10px; }
  .workspace-catalog .country-row .country-favorite-toggle,
  .workspace-catalog .provider-country-row .country-favorite-toggle { width: 32px; height: 32px; }
  .workspace-catalog .country-row .country-favorite-toggle svg,
  .workspace-catalog .provider-country-row .country-favorite-toggle svg { width: 17px; height: 17px; }
  .workspace-catalog #server-panel.country-expanded {
    margin: 0 -7px -4px;
    padding: 8px;
  }
  .workspace-catalog .server-toolbar { gap: 6px; }
  .workspace-catalog #server-sort.server-sort-tabs { padding: 2px; border-radius: 8px; }
  .workspace-catalog .server-sort-tabs button { min-height: 28px; padding: 3px 7px; font-size: 10px; }
  .workspace-catalog .auto-buy-panel {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 7px;
    padding: 7px 8px;
  }
  .workspace-catalog .auto-buy-panel strong { font-size: 11px; }
  .workspace-catalog .auto-buy-panel span { font-size: 9px; line-height: 1.3; }
  .workspace-catalog .auto-buy-panel > button { min-height: 32px; padding: 5px 10px; font-size: 11px; }
  .workspace-catalog .server-list { gap: 6px; margin-top: 7px; }
  .workspace-catalog .server-card { gap: 8px; padding: 8px; border-radius: 9px; }
  .workspace-catalog .server-card .server-row-main { gap: 4px; }
  .workspace-catalog .server-row-heading { gap: 6px; }
  .workspace-catalog .server-row-heading strong { font-size: 13px; }
  .workspace-catalog .server-best-badge { padding: 2px 6px; font-size: 9px; }
  .workspace-catalog .server-stock { padding: 2px 6px; font-size: 9px; }
  .workspace-catalog .server-row-action { gap: 3px; }
  .workspace-catalog .server-row-action .server-price { font-size: 13px; }
  .workspace-catalog .server-action-buttons { flex-direction: row; gap: 4px; }
  .workspace-catalog .server-action-buttons .button { min-height: 28px; padding: 4px 8px; font-size: 11px; }
  .workspace-catalog .server-action-buttons .server-auto {
    width: 28px;
    min-width: 28px;
    padding: 0;
    font-size: 0;
  }
  .workspace-catalog .server-action-buttons .server-auto::before { content: "↻"; font-size: 15px; line-height: 1; }
  .workspace-catalog .catalog-footer { padding: 7px 10px; font-size: 10px; }
}

@media (max-width: 360px) {
  #orders-refresh { min-width: 34px; width: 34px; padding: 0; }
  #orders-refresh::after { display: none; }
  #browse-services { padding-inline: 9px; }
}
