/* Fast4.IT native commerce: comparison first, complete information on demand. */
body.shop-body.portal-ui-v5.f4-commerce-catalog .shop-page { padding-top: 0; padding-bottom: 48px; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-catalog-hero { padding-block: 26px; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-catalog-hero .shop-page__hero-card { padding-block: 14px; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-catalog-hero h1 { font-size: clamp(2rem,3vw,2.75rem); margin-block: 12px; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-catalog-hero p { max-width: 72ch; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-catalog-hero .shop-page__network { display: none; }
.f4-catalog-heading { margin: 0 0 25px; }
.f4-catalog-heading h2 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.025em; }
.f4-catalog-heading p { margin: 0; max-width: 72ch; font-size: 14px; line-height: 1.7; color: var(--business-muted); }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-ledger {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap: 14px; align-items: stretch; background: transparent; border: 0; overflow: visible;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-ledger:has(>.f4-plan-row--vpn) { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.shop-body.portal-ui-v5.f4-commerce-catalog .shop-product-card.f4-plan-row {
  display: flex !important; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0;
  padding: 20px 18px !important; gap: 18px !important; border: 1px solid var(--business-line) !important;
  border-radius: 5px !important; background: var(--business-surface) !important; color: var(--business-text);
  box-shadow: none !important; animation: none !important; transform: none !important;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .shop-product-card.f4-plan-row:hover { border-color: var(--business-orange) !important; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .shop-product-card.f4-plan-row[hidden] { display: none !important; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row::after { content: none; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__identity {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; min-height: 64px; padding: 0;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__identity h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__identity h3 a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__identity h3 a:hover { color: var(--business-orange); }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__identity .shop-product-card__type { order: -2; margin: 0; font-size: 11px; line-height: 1.5; }
.f4-plan-row__badge { order: -1; color: var(--business-orange); font-size: 11px; line-height: 1.5; font-weight: 750; }
.f4-plan-row__content { min-width: 0; display: grid; align-content: start; gap: 12px; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__content > :is(p,div,details),
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision > :is(div,details) { grid-area: auto !important; grid-column: 1 !important; grid-row: auto !important; width: auto !important; min-width: 0; max-width: none !important; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__content > p { margin: 0; color: var(--business-muted); font-size: 14px; line-height: 1.7; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row .shop-product-card-specs {
  display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 0; border: 0; border-radius: 0; background: transparent;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row .shop-product-card-specs > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 0;
  padding: 10px 0; border: 0; border-bottom: 1px solid var(--business-line-soft); background: transparent;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row .shop-product-card-specs strong { font-size: 15px; line-height: 1.4; text-align: right; font-variant-numeric: tabular-nums; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row .shop-product-card-specs span { order: -1; font-size: 13px; line-height: 1.5; color: var(--business-muted); }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row .vpn-overview-facts { display: grid; gap: 9px; margin: 0; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row .vpn-overview-facts span { font-size: 14px; line-height: 1.6; padding-left: 10px; }
.f4-plan-disclosure { border-top: 1px solid var(--business-line-soft); }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-ledger:has(.f4-plan-disclosure[open]) { align-items: start; }
.f4-plan-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--business-text); font-size: 13px; line-height: 1.5; list-style: none; }
.f4-plan-disclosure summary::-webkit-details-marker { display: none; }
.f4-plan-disclosure summary::after { content: '+'; color: var(--business-orange); font-size: 19px; }
.f4-plan-disclosure[open] summary::after { content: '−'; }
.f4-plan-disclosure p,.f4-plan-disclosure .shop-product-card__description { margin: 0 0 12px; color: var(--business-muted); font-size: 14px; line-height: 1.7; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-disclosure :is(.shop-server-card-feature-list,.shop-nextcloud-card-feature-list) {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; margin: 14px 0 0; padding-left: 17px;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-disclosure li { font-size: 14px; line-height: 1.6; }
.f4-plan-row__decision { margin-top: auto; display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--business-line); }
body.shop-body.portal-ui-v5.f4-commerce-catalog :is(a,summary):focus-visible,
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-layout :is(a,button,summary,input,select):focus-visible { outline: 2px solid var(--business-orange); outline-offset: 3px; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__pricing {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; justify-self: stretch;
  text-align: left; width: auto !important; max-width: none !important; min-width: 0; padding: 0; margin: 0; border: 0; gap: 4px 6px;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__pricing strong { font-size: 27px !important; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__pricing span { font-size: 12px; line-height: 1.5; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__billing {
  display: grid; gap: 6px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; font-size: 13px; line-height: 1.6;
}
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__billing strong { font-size: 13px; line-height: 1.5; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 3px; margin-top: 2px; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__actions > .shop-primary-link { order: -1; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__actions :is(a,button,span[role=status]) { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 7px; font-size: 13px; line-height: 1.45; white-space: normal; }
body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__actions small { grid-column: 1 / -1; margin: 0; line-height: 1.6; }

/* Product page: technical summary and the native configurator are separate working areas. */
.f4-product-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 22px; color: var(--business-muted); font-size: 13px; line-height: 1.6; }
.f4-product-breadcrumb a { color: var(--business-text); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
body.shop-body.portal-ui-v5.f4-commerce-detail .shop-page { padding-block: 18px 40px; }
body.shop-body.portal-ui-v5.f4-commerce-detail .shop-page__content { padding-block: 14px 40px; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-layout { grid-template-columns: minmax(0,1fr) minmax(330px,.52fr); gap: 32px; align-items: start; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-layout .shop-detail__intro { padding: 0 0 22px; border-bottom: 1px solid var(--business-line); }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-layout .shop-detail__intro h1 { font-size: clamp(2rem,3vw,2.75rem); line-height: 1.15; letter-spacing: -.035em; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-layout .shop-detail__lead { font-size: 15px; line-height: 1.75; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-overview { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 0; border-block: 1px solid var(--business-line); margin-block: 22px; padding: 0; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-overview .shop-detail__spec { min-height: 0; display: grid; gap: 6px; align-content: start; padding: 16px; border: 0; border-right: 1px solid var(--business-line-soft); background: transparent; border-radius: 0; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-overview .shop-detail__spec:last-child { border-right: 0; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-overview .shop-detail__spec strong { font-size: 18px; line-height: 1.4; font-variant-numeric: tabular-nums; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-configurator { position: sticky; top: 100px; padding: 0; border: 1px solid var(--business-line); border-radius: 5px; background: var(--business-surface); overflow: visible; }
.f4-configurator-heading { padding: 21px 24px; border-bottom: 1px solid var(--business-line); border-top: 3px solid var(--business-orange); }
.f4-configurator-heading > span { color: var(--business-muted); font-size: 12px; }
.f4-configurator-heading h2 { margin: 7px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-configurator .shop-detail__price-box { position: static; padding: 24px; background: transparent; border: 0; box-shadow: none; }
.f4-configurator-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--business-line); }
.f4-configurator-section h3 { display: flex; gap: 10px; align-items: baseline; margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.f4-configurator-section h3 > span { color: var(--business-orange); font-size: 12px; font-variant-numeric: tabular-nums; }
body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-configurator :is(.portal-label,.portal-field-note) { line-height: 1.65; }

/* Customer dashboard: actions first, products next, supporting account detail on demand. */
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header { gap: 14px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-command {
  grid-template-columns: minmax(0,1fr) 220px; min-height: 0; padding: 25px 28px; gap: 24px; border-radius: 5px;
}
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-command .portal-page-title { font-size: clamp(1.9rem,2.5vw,2.5rem); line-height: 1.15; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-command .portal-page-summary { margin-top: 10px; font-size: 14px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-dashboard-v11-health { margin-top: 14px; }
.f4-home-product-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 6px 0; }
.f4-home-product-nav > a { flex: 1 1 auto; min-height: 44px; font-size: 13px; }
.f4-home-account { border-block: 1px solid var(--business-line); }
.f4-home-account > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 2px; cursor: pointer; list-style: none; }
.f4-home-account > summary::-webkit-details-marker { display: none; }
.f4-home-account > summary > span:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.f4-home-account > summary strong { font-size: 14px; line-height: 1.5; }
.f4-home-account > summary small { font-size: 13px; color: var(--business-muted); line-height: 1.5; }
.f4-home-account > summary > span:last-child { flex-shrink: 0; display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--business-muted); }
.f4-home-account > summary > span:last-child::after { content: '+'; color: var(--business-orange); font-size: 20px; }
.f4-home-account[open] > summary > span:last-child::after { content: '−'; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-account .f4-dashboard-v12-identity { background: var(--business-subtle); padding: 20px 24px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; padding: 0; border: 0; background: transparent; border-radius: 0; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-admin-priority-card {
  display: grid; gap: 9px; align-content: start; min-width: 0; min-height: 0; padding: 17px 16px;
  border: 1px solid var(--business-line-soft); border-radius: 4px; background: var(--business-surface) !important;
  text-decoration: none; transition: border-color .18s ease,background-color .18s ease;
}
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-admin-priority-card:hover { border-color: var(--business-orange); background: var(--business-subtle) !important; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-stat-card__label { font-size: 13px; line-height: 1.5; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-stat-card__value { margin: 0; font-size: 29px; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-stat-card__action { display: flex; justify-content: space-between; gap: 7px; margin: 0; padding: 0; font-size: 12px; line-height: 1.5; }
.f4-home-overview-help > summary { display: flex; align-items: center; min-height: 44px; width: fit-content; cursor: pointer; color: var(--business-muted); font-size: 12px; text-underline-offset: 4px; }
.f4-home-overview-help dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin: 0; padding: 20px; background: var(--business-subtle); }
.f4-home-overview-help dt { font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 5px; }
.f4-home-overview-help dd { font-size: 14px; line-height: 1.7; color: var(--business-muted); margin: 0; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-dashboard-payment-callout { margin: 0; }
.f4-home-credit { border: 1px solid var(--business-line-soft); border-radius: 5px; background: var(--business-surface); margin-bottom: 24px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-credit .portal-dashboard-credit-strip { margin: 0; padding: 20px 24px; background: transparent; }
.f4-home-credit-help { padding: 0 24px; border-top: 1px solid var(--business-line-soft); }
.f4-home-credit-help > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--business-muted); font-size: 13px; }
.f4-home-credit-help .portal-dashboard-credit-intro { padding-block: 12px 22px; }
.f4-home-credit-help .portal-dashboard-credit-intro h2 { font-size: 16px; }

@media (max-width: 1100px) {
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-ledger { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-layout { grid-template-columns: minmax(0,1fr) 340px; gap: 24px; }
  body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-ledger { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-layout { grid-template-columns: minmax(0,1fr); }
  body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-configurator { position: static; grid-row: 2; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-command { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 20px; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-command .f4-dashboard-v12-command__actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; align-items: start; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-command .f4-dashboard-v12-command__actions :is(span,strong,small) { grid-column: 1; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-command .f4-dashboard-v12-command__actions > a { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .f4-home-account > summary { align-items: flex-start; }
  .f4-home-account > summary > span:first-child { display: grid; gap: 3px; }
}
@media (max-width: 560px) {
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-ledger,
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-ledger:has(>.f4-plan-row--vpn) { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body.shop-body.portal-ui-v5.f4-commerce-catalog .shop-product-card.f4-plan-row { padding: 20px !important; gap: 16px !important; }
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__identity { min-height: 0; }
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__identity h3 { font-size: 23px; }
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__actions { grid-template-columns: minmax(0,1fr); }
  body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-overview { grid-template-columns: minmax(0,1fr); }
  body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-overview .shop-detail__spec { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--business-line-soft); }
  .f4-configurator-heading { padding: 20px; }
  body.shop-body.portal-ui-v5.f4-commerce-detail .f4-product-configurator .shop-detail__price-box { padding: 20px; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-admin-priority-card { padding: 16px; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-admin-priority-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-admin-priority-card:last-child:nth-child(odd) .portal-admin-priority-card__body { grid-row: 1 / span 2; grid-column: 2; }
  .f4-home-account > summary > span:last-child { max-width: 115px; flex-shrink: 1; line-height: 1.6; }
  .f4-home-overview-help dl { grid-template-columns: minmax(0,1fr); padding: 18px; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-credit .portal-dashboard-credit-strip { padding: 20px; }
  .f4-home-credit-help { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.shop-body.portal-ui-v5.f4-commerce-catalog .shop-product-card.f4-plan-row,
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7:not(.portal-admin-context) .f4-home-header .f4-home-metrics .portal-admin-priority-card { transition: none; }
}

/* Compared tariffs retain aligned prices when the payment-frequency note wraps. */
@media (min-width: 561px) {
  body.shop-body.portal-ui-v5.f4-commerce-catalog .f4-plan-row__decision .shop-product-card__billing > strong + span {
    min-height: 3.2em;
  }
}


/* Compact contact access on handheld screens; preserve the native tab order. */
@media (max-width: 760px), (max-width: 1100px) and (max-height: 600px) {
  .portal-app-body .portal-contact-dock {
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: none;
  }
  .portal-app-body .portal-contact-dock > .contact-dock__tab,
  .portal-app-body .portal-contact-dock .ts-viewer__tab,
  .portal-app-body .portal-contact-dock .contact-dock__tab--community {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 7px 3px;
    gap: 4px;
    border-right: 1px solid var(--community-line);
    border-radius: 12px;
  }
  .portal-app-body .portal-contact-dock > .community { width: auto; }
  .portal-app-body .portal-contact-dock .contact-dock__tab svg { width: 21px; height: 21px; }
  .portal-app-body .portal-contact-dock .contact-dock__tab > span:not(.contact-dock__unread) {
    font-size: 8.5px;
    line-height: 1.15;
    letter-spacing: 0;
  }
  .portal-app-body .workspace__content {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
  .portal-app-body .community__tools button {
    min-width: 44px;
    min-height: 44px;
  }
}
/* The native navigation overlay owns focus and pointer access while open. */
@media (max-width: 1100px) {
  .portal-app-body.is-navigation-open .portal-contact-dock {
    visibility: hidden;
    pointer-events: none;
  }
}
/* Keep the composer reachable in landscape and at high browser zoom. */
@media (max-width: 1100px) and (max-height: 420px) {
  .portal-app-body .community__room {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .portal-app-body .community__workspace {
    flex: 0 0 auto;
    overflow: visible;
  }
  .portal-app-body .community__conversation { overflow: visible; }
  .portal-app-body .community__messages {
    flex: 0 0 auto;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
  }
}


/* The system history already reflows into labelled rows on small screens. */
@media (max-width: 760px) {
  .portal-app-body .admin-system .system-history__table {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .portal-app-body .admin-system .system-history__table tbody th {
    width: 100%;
  }
}

/* Clear working navigation: compact groups, visible location, native permissions unchanged. */
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__brand { padding: 22px 24px 20px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__content { scrollbar-gutter: stable; padding-bottom: 16px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 :is(.portal-sidebar__group,.portal-sidebar__nested-group) { margin-top: 18px; padding-bottom: 0; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__group:first-child { margin-top: 0; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__heading { font-size: 10px; line-height: 1.5; letter-spacing: .08em; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__links { gap: 2px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__link { min-height: 44px; padding-block: 9px; font-size: 13px; line-height: 1.45; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__link.is-active { box-shadow: inset 3px 0 0 currentColor; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__link:focus-visible { outline: 2px solid var(--business-orange,#ff8b38); outline-offset: -2px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__footer { padding: 12px 20px 14px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__account { gap: 3px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__footer-links { margin-block: 12px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__logout { min-height: 44px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__toggle { padding: 10px 12px; min-height: 60px; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__toggle-meta { font-size: 11px; line-height: 1.45; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-page-title { text-wrap: balance; }
body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-page-summary { max-width: 72ch; }
@media (max-width: 760px) {
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__brand { padding-block: 18px; }
  body.portal-app-body.portal-ui-v5.portal-ui-v6.portal-ui-v7 .portal-sidebar__link { min-height: 46px; }
}
