:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  --canvas: #171819;
  --nav: #1b1c1e;
  --surface: #222325;
  --surface-raised: #292b2e;
  --surface-inset: #191a1c;
  --ink: #f1f2f3;
  --muted: #abadb2;
  --line: #3a3c40;
  --line-strong: #575b62;
  --brand: #b3c8d8;
  --brand-hover: #c9d9e5;
  --brand-soft: #303940;
  --brand-text: #c7d8e4;
  --on-brand: #14181b;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input, textarea { font: inherit; border-radius: 0; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button, a, input, select { transition: background-color .16s ease, border-color .16s ease; }
main, section { min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -.043em; }
h2 { font-size: 1.07rem; line-height: 1.35; letter-spacing: -.012em; }
h3 { font-size: 1rem; }
p { line-height: 1.55; }
[hidden] { display: none !important; }
.loading-page { padding: 3rem; text-align: center; color: var(--muted); }
.layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 1rem; min-height: 100vh; background: var(--nav); border-right: 1px solid var(--line); color: var(--ink); padding: 1.6rem 1.12rem .95rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.branding { display: flex; align-items: center; gap: .72rem; margin: .15rem .25rem 1.7rem; text-align: left; }
.mark { width: 40px; height: 40px; flex: 0 0 auto; position: relative; background: #33414c; border: 1px solid #607483; }
.mark::before, .mark::after { position: absolute; content: ""; border: 2px solid #fff; width: 14px; height: 14px; top: 10px; left: 10px; }
.mark::after { top: 15px; left: 15px; border-color: #c4d4e0; }
.wordmark { font-weight: 700; color: #fff; font-size: .94rem; letter-spacing: -.023em; white-space: nowrap; }
.branding small { display: block; color: var(--muted); font-size: .77rem; margin-top: .18rem; }
.nav-section { margin-bottom: .65rem; }
.nav-label { padding: 0 .75rem .55rem; font-size: .72rem; letter-spacing: .095em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: .65rem; padding: .65rem .72rem; color: #d0d0d2; font-weight: 550; font-size: .9rem; margin-bottom: .15rem; }
.nav-item:hover { background: var(--surface-raised); color: var(--ink); }
.nav-item[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); box-shadow: inset 2px 0 var(--brand); }
.nav-icon { width: 1.26rem; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; color: inherit; }
.identity { display: flex; align-items: center; margin-top: auto; padding: .9rem .3rem .1rem; gap: .6rem; border-top: 1px solid var(--line); min-width: 0; }
.avatar { color: var(--brand-text); display: grid; place-items: center; min-width: 32px; height: 32px; background: var(--brand-soft); font-size: .78rem; font-weight: 740; }
.identity-text { flex: 1; min-width: 0; }
.identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: .86rem; }
.identity small { color: var(--muted); font-size: .73rem; }
.icon-button { background: transparent; color: inherit; border: 0; padding: .4rem; font-size: 1.1rem; }
.icon-button:hover { background: var(--surface-raised); }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 65px; padding: 0 2rem; border-bottom: 1px solid var(--line); background: var(--nav); }
.breadcrumb { font-size: .87rem; font-weight: 650; color: var(--ink); }
.topbar .profile-link { color: var(--muted); font-size: .83rem; font-weight: 600; }
.topbar .profile-link:hover { color: var(--brand-text); }
.topbar-button { padding: .3rem .24rem; border: 0; background: transparent; }
.connection-warning {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem;
  padding: .65rem 2rem; background: #2b2317; border-bottom: 1px solid #654d2b; color: #ffe4af;
}
.warning-mark {
  display: grid; place-items: center; flex: 0 0 28px; height: 28px;
  background: #4c381c; color: #ffd588; font-size: 1.06rem; font-weight: 800;
}
.warning-copy { flex: 1 1 195px; min-width: 0; }
.warning-copy strong { font-size: .89rem; }
.warning-copy p { margin-top: .08rem; color: #e3c898; font-size: .8rem; overflow-wrap: anywhere; }
.connection-warning .btn { color: #ffdfa4; background: #35291a; border-color: #75572c; }
.connection-warning .btn:hover { background: #483721; }
.connection-entry { display: grid; justify-items: start; gap: .45rem; }
.connection-times { display: flex; flex-wrap: wrap; column-gap: .95rem; row-gap: .22rem; font-size: .78rem; }
.content { max-width: 1510px; padding: 1.85rem 2rem 2.75rem; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.page-head p { font-size: .92rem; color: var(--muted); margin-top: .45rem; }
.page-actions, .controls { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.section-head { display: flex; gap: .9rem; align-items: center; justify-content: space-between; margin: 1.45rem 0 .74rem; }
.section-head a { color: var(--brand-text); font-size: .85rem; font-weight: 660; }
.section-head a:hover { text-decoration: underline; }
.panel { background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.panel-pad { padding: 1.15rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .38rem; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); min-height: 39px; padding: .53rem .78rem; font-size: .88rem; font-weight: 650; text-align: center; }
.btn:hover { background: var(--surface-raised); border-color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-subtle { border-color: transparent; background: var(--brand-soft); color: var(--brand-text); }
.btn-small { min-height: 32px; padding: .37rem .58rem; font-size: .79rem; }
.btn-hero { color: var(--brand-text); background: #303940; border-color: #535e66; }
.btn-hero:hover { background: #414c54; }
.hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem; padding: 1.35rem 1.5rem; border: 1px solid #3a3c40; color: var(--ink); background: var(--surface); }
.hero .btn { flex-shrink: 0; }
.overview-totals { display: flex; flex-wrap: wrap; gap: .9rem 2rem; }
.overview-total { display: grid; gap: .13rem; }
.overview-total span, .overview-total small { color: #b8bbc0; font-size: .81rem; }
.overview-total strong { font-size: 1.85rem; font-weight: 740; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.overview-link { padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.overview-link:hover span { text-decoration: underline; text-underline-offset: .2rem; }
.overview-events { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 320px),1fr)); gap: .85rem; }
.providers-grid { display: grid; gap: .85rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.provider-card { padding: .96rem 1rem 1rem; }
.provider-top { display: flex; align-items: center; gap: .58rem; }
.provider-mark { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; font-size: .83rem; font-weight: 800; }
.provider-mark[data-provider="vip"] { background: #2d2945; color: #d1c8ff; }
.provider-mark[data-provider="uniplay"] { background: #173b3b; color: #91e1d3; }
.provider-mark[data-provider="braz"] { background: #3f3220; color: #f1cf8e; }
.provider-label { font-size: .95rem; font-weight: 730; }
.provider-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.provider-meta { margin: .72rem 0 .35rem; font-size: .8rem; color: var(--muted); }
.provider-value { font-size: 1.5rem; font-weight: 720; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.provider-value.missing { font-size: 1rem; letter-spacing: -.012em; min-height: 1.81rem; display: flex; align-items: center; }
.provider-expiration { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; margin-top: .7rem; padding: .5rem .65rem; text-align: left; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); font-size: .8rem; }
.provider-expiration:hover { border-color: var(--brand); }
.provider-expiration small { display: block; color: var(--muted); margin-top: .16rem; }
.provider-expiration strong { font-size: 1.19rem; font-variant-numeric: tabular-nums; }
.provider-bottom { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .62rem; min-height: 2rem; color: var(--muted); font-size: .8rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .24rem .52rem; font-weight: 650; font-size: .75rem; line-height: 1.3; color: #d6d7da; background: #36383d; width: fit-content; }
.badge::before { content: ""; width: 5px; height: 5px; background: currentColor; flex-shrink: 0; }
.badge.green { color: #93e2b6; background: #18392c; }
.badge.amber { color: #f7d18f; background: #423219; }
.badge.red { color: #ffb2bc; background: #492832; }
.badge.purple { color: #dacaff; background: #38304e; }
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(135px,1fr)); }
.stat { padding: .85rem .95rem; }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 620; }
.stat-value { display: block; padding-top: .25rem; font-weight: 730; font-size: 1.45rem; letter-spacing: -.04em; }
.table-scroll { overflow: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
thead { background: var(--surface-raised); }
th, td { padding: .72rem .85rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #c1c3c7; font-weight: 680; font-size: .78rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-raised); }
.customer-table th, .customer-table td { padding: .55rem .7rem; }
.customer-table td:nth-child(4), .customer-table td:nth-child(5) { font-variant-numeric: tabular-nums; }
.customer-table th:last-child { text-align: right; }
.customer-table .user-name { display: block; max-width: 19ch; overflow: hidden; text-overflow: ellipsis;
  padding: .2rem 0; min-height: 28px; background: transparent; border: 0; text-align: left; color: var(--ink); }
.customer-table .user-name:hover { text-decoration: underline; text-underline-offset: .2rem; color: var(--brand-text); }
.customer-situation, .customer-dates { display: grid; justify-items: start; gap: .24rem; }
.customer-situation .badge { min-height: 0; padding: .1rem .35rem; font-size: .72rem; line-height: 1.25; border: 1px solid currentColor; }
.customer-situation :is(.system, .trial, .plan)::before { display: none; }
.customer-situation .system { color: #c3b5fa; background: #2c2640; border-color: #544574; }
.customer-situation .trial { color: #f1cb7a; background: #362c1d; border-color: #685439; }
.customer-situation .plan { color: #bcc7cf; background: #272f36; border-color: #414c55; }
.customer-dates strong { font-weight: 620; }
.customer-dates small { color: var(--muted); font-size: .73rem; }
.row-actions { display: grid; grid-template-columns: repeat(8, 32px) minmax(74px, auto); grid-auto-flow: column;
  justify-content: end; align-items: center; gap: .25rem; }
.row-action.btn { grid-row: 1; width: 32px; min-height: 32px; padding: 0; font-size: .72rem;
  color: var(--action-accent, #d2d4dc); white-space: nowrap; background: var(--surface-inset); border-color: var(--line-strong); }
.row-action.btn:hover { border-color: var(--action-accent, var(--muted)); background: var(--surface-raised); }
.row-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row-action-edit { grid-column: 1; }
.row-action-links { grid-column: 2; --action-accent: #99c8f4; }
.row-action-apps { grid-column: 3; --action-accent: #c1affc; }
.row-action-activate { grid-column: 4; --action-accent: #81d5b0; }
.row-action-renew { grid-column: 5; --action-accent: #a8d5bf; }
.row-action-month { grid-column: 6; --action-accent: #f4ce81; }
.row-action-toggle { grid-column: 7; --action-accent: #a4dceb; }
.row-action-delete { grid-column: 8; --action-accent: #f09ca5; }
.row-action-more.btn { grid-column: 9; width: auto; padding: 0 .5rem; gap: .3rem; background: var(--surface-raised); }
.row-action-more svg { width: 13px; }
.user-action-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .55rem; }
.user-action-list .btn { justify-content: start; text-align: left; }
@media (min-width: 1050px) {
  .customer-table th:last-child, .customer-table td:last-child { position: sticky; right: 0; border-left: 1px solid var(--line); }
  .customer-table th:last-child, .customer-table tbody tr:hover td:last-child { background: var(--surface-raised); }
  .customer-table td:last-child { background: var(--surface); }
}
.empty { display: grid; justify-items: center; gap: .45rem; padding: 2.05rem 1rem; text-align: center; }
.empty .empty-shape { width: 38px; height: 38px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-size: 1.3rem; font-weight: 720; }
.empty p { color: var(--muted); font-size: .86rem; max-width: 40ch; }
.field { display: grid; gap: .37rem; min-width: 0; text-align: left; font-size: .86rem; font-weight: 640; }
.field input, .field select { width: 100%; background: var(--surface-inset); color: var(--ink); border: 1px solid var(--line-strong); padding: .58rem .7rem; min-height: 40px; font-size: .93rem; }
.field select { appearance: none; padding-right: 1.9rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 54%, calc(100% - 10px) 54%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder { color: var(--muted); }
.field-inline { display: flex; gap: .45rem; align-items: center; font-size: .85rem; }
.field-inline input { accent-color: var(--brand); }
.form-stack { display: grid; gap: .83rem; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.search-form { display: grid; grid-template-columns: minmax(160px,1fr) minmax(125px,185px) auto; align-items: end; gap: .7rem; }
.filters { display: flex; align-items: end; gap: .7rem; flex-wrap: wrap; }
.filters .field { min-width: 135px; flex: 1; }
.groups { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .9rem 1.25rem; margin: 1rem 0; }
.provider-search-status { display: grid; justify-items: start; gap: .3rem; }
.callout { padding: .7rem .8rem; background: #283137; border: 1px solid #4c5c65; color: #d2e1ec; font-size: .86rem; line-height: 1.45; }
.callout.error { background: #37222b; border-color: #68404e; color: #ffc0c8; }
.callout.notice { background: #34291b; border-color: #634e30; color: #f4d8a6; }
.muted { color: var(--muted); font-size: .85rem; }
.flow { display: grid; gap: .86rem; }
.rule-card { border: 1px solid var(--line); padding: .8rem; margin: 0; }
.rule-card legend { font-weight: 700; padding: 0 .3rem; font-size: .89rem; }
.permissions { display: flex; flex-wrap: wrap; gap: .42rem .8rem; margin: .1rem 0 .7rem; }
.rule-limits { display: grid; grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); gap: .55rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin: 0; }
.detail-grid div { padding: .66rem .75rem; border: 1px solid var(--line); }
.detail-grid dt { font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }
.detail-grid dd { margin: 0; font-weight: 625; overflow-wrap: anywhere; }
dialog { padding: 0; border: 1px solid var(--line-strong); width: min(94%, 635px); max-height: 91vh; box-shadow: 0 25px 75px #080809a0; color: var(--ink); background: var(--surface); }
dialog[data-view="access"] { width: min(94%, 770px); }
dialog::backdrop { background: #101112bf; }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .83rem 1.05rem; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.modal-body { padding: 1rem 1.05rem; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; margin-top: .75rem; }
.link-info { overflow-wrap: anywhere; word-break: break-word; user-select: all; background: var(--surface-inset); border: 1px solid var(--line); padding: .5rem .55rem; font-size: .84rem; }
.receipt-info { white-space: pre-wrap; margin: 0; font: inherit; }
.access-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; min-width: 0;
  padding-bottom: .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.access-context span, .access-link-head small { color: var(--muted); font-size: .78rem; }
.access-layout { display: grid; gap: 1rem; min-width: 0; }
.access-block { display: grid; gap: .55rem; min-width: 0; }
.access-block h3 { margin: 0; font-size: .94rem; }
.access-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.access-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 0; background: var(--line); border: 1px solid var(--line); }
.access-data > div { display: grid; gap: .25rem; min-width: 0; padding: .65rem .75rem; background: var(--surface-raised); }
.access-data dt { color: var(--muted); font-size: .77rem; }
.access-data dd, .access-link-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-width: 0; margin: 0; }
.access-data code, .access-address code { overflow-wrap: anywhere; user-select: all; font-size: .83rem; }
.access-data .btn, .access-link-head .btn { flex-shrink: 0; }
.access-links { display: grid; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.access-links > li { display: grid; gap: .3rem; padding: .65rem .75rem; min-width: 0; }
.access-links > li + li { border-top: 1px solid var(--line); }
.access-link-head > div { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.access-address summary, .access-guide summary { color: var(--muted); cursor: pointer; font-size: .8rem; }
.access-address code { display: block; margin-top: .4rem; padding: .45rem; background: var(--surface-inset); border: 1px solid var(--line); }
.access-guide { padding: .65rem .75rem; border: 1px solid var(--line); }
.access-guide-body { display: grid; justify-items: start; gap: .5rem; margin-top: .55rem; }
.access-guide-body pre { max-width: 100%; width: 100%; }
.whatsapp-receipt { min-width: 0; }
.whatsapp-receipt .section-head { margin: 0; flex-wrap: wrap; }
.receipt-message {
  margin: 0;
  padding: .85rem;
  max-height: 22rem;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  font: inherit;
  line-height: 1.55;
}
.login-page { display: grid; grid-template-columns: minmax(320px,1fr) minmax(360px,1fr); min-height: 100vh; background: var(--canvas); }
.login-left { color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4.6rem); border-right: 1px solid var(--line); background: var(--surface); }
.login-left .wordmark { font-size: 1.12rem; }
.login-left .branding { margin-left: 0; }
.login-left h1 { max-width: 15ch; font-size: clamp(2.05rem, 4.3vw, 4.25rem); line-height: 1.07; }
.login-left p { margin-top: .7rem; color: #c4c7cb; max-width: 33ch; }
.login-right { display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(100%, 382px); }
.login-card > p { margin: .5rem 0 1.4rem; color: var(--muted); }
.login-card .btn-primary { margin-top: .17rem; width: 100%; }
#notifications { position: fixed; right: 1rem; bottom: 1rem; z-index: 4; display: grid; gap: .45rem; max-width: min(91vw, 430px); }
.toast { color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-strong); padding: .74rem .9rem; box-shadow: 0 6px 18px #08080966; font-size: .88rem; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 200px minmax(0,1fr); }
  .sidebar { padding-inline: .67rem; }
  .content, .topbar, .connection-warning { padding-inline: 1.1rem; }
  .providers-grid { gap: .5rem; }
  .provider-card { padding-inline: .7rem; }
}
@media (max-width: 740px) {
  .layout { display: block; }
  .sidebar { height: auto; min-height: 0; position: relative; overflow: visible; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .25rem .65rem; padding: .67rem .84rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .branding { margin: 0; gap: .45rem; }
  .sidebar .branding small, .sidebar .identity-text, .sidebar .avatar, .nav-label { display: none; }
  .sidebar .mark { transform: scale(.82); margin-left: -.25rem; }
  .sidebar .identity { grid-row: 1; grid-column: 2; padding: 0; border: 0; }
  .sidebar nav { grid-column: 1 / -1; display: flex; overflow: auto; gap: .35rem; }
  .nav-section { display: flex; margin: 0; flex: 0 0 auto; }
  .nav-item { padding: .48rem .62rem; margin: 0 .1rem 0 0; font-size: .81rem; white-space: nowrap; }
  .topbar { height: 50px; }
  .content { padding-top: 1.2rem; }
  .page-head { align-items: start; }
  .hero { padding: 1rem; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rule-limits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-left { padding: 1.3rem 1.5rem 1.5rem; gap: .75rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-left .branding { margin-bottom: 0; }
  .login-left h1 { font-size: 1.8rem; max-width: 28ch; }
  .login-left p { margin: .4rem 0 0; font-size: .9rem; max-width: 45ch; }
  .login-right { padding: 1.7rem 1.2rem 2.5rem; align-items: start; }
}
@media (max-width: 580px) {
  .providers-grid { grid-template-columns: 1fr; }
  .provider-top { gap: .45rem; }
  .provider-card { padding: .78rem .83rem; }
  .provider-meta { margin-top: .45rem; }
  .topbar, .content, .connection-warning { padding-inline: .83rem; }
  .hero { flex-direction: column; align-items: start; gap: .65rem; }
  .search-form { grid-template-columns: minmax(0,1fr) auto; }
  .search-form > :first-child { grid-column: 1 / -1; }
  .page-head { flex-direction: column; }
  .customer-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .customer-table tbody { display: grid; }
  .customer-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .customer-table tr:last-child { border-bottom: 0; }
  .customer-table td { display: grid; gap: .2rem; white-space: normal; border: 0; padding: .48rem .7rem; }
  .customer-table td::before { content: attr(data-label); color: var(--muted); font-size: .73rem; }
  .customer-table td:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .customer-table .row-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; }
  .access-data { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
