@font-face { font-family: Manrope; src: url('/manrope.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Carteira Symbols; src: url('/symbols.woff2') format('woff2'); font-weight: 400; font-display: block; }
:root {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  color: #15241f;
  background: #f6f7f3;
  font-synthesis: none;
  --muted: #52635a;
  --line: #e0e6df;
  --accent: #176246;
  --ink: #10251e;
  --lime: #d6f78e;
  --surface-shadow: 0 2px 3px #15241f05, 0 10px 28px #15241f06;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  color: #edf4ed;
  background: #101a17;
  --muted: #b2c3b9;
  --line: #31463c;
  --accent: #b8e594;
  --ink: #edf4ed;
  --surface: #182621;
  --field: #13201b;
  --subtle: #20332a;
  --hover: #293f34;
  --field-border: #526d60;
  --error: #ffb4ba;
  --surface-shadow: 0 9px 24px #050a0833;
}
.symbol { font: 400 20px/1 'Carteira Symbols'; font-feature-settings: 'liga'; display: inline-block; white-space: nowrap; direction: ltr; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
a { color: var(--accent); font-weight: 650; text-decoration: none; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 11px; padding: 10px 14px; font-weight: 750; line-height: 1.25; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #329575; outline-offset: 3px; }
.primary { color: #fafff8; background: #123c2e; box-shadow: 0 2px 3px #153d3020; }
.primary:hover { background: var(--accent); }
.secondary { background: #eef7f2; color: #1b5946; border-color: #d8ebe0; }
.secondary:hover { background: #deeee5; }
.plain { background: transparent; color: inherit; }
.plain:hover { background: #799b8a1b; }
.danger { color: white; background: #a52e38; }
.danger-text { color: #9a3540; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 28px 16px 17px; background: linear-gradient(165deg, #10251e, #122d24); color: #e1efe8; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 31px; font-weight: 800; letter-spacing: -.075em; line-height: 1; color: #fff; }
.sidebar .brand { padding-left: 10px; }
.brand-mark { display: grid; place-content: center; gap: 2px; width: 38px; height: 38px; background: var(--lime); border-radius: 12px; flex: none; }
.brand-mark::before, .brand-mark::after { content: ''; width: 17px; height: 7px; border: 2px solid #173c2c; border-radius: 5px; transform: skewY(-18deg); }
.brand-mark::after { width: 12px; }
.dot { color: var(--lime); }
.workspace { margin: 39px 10px 13px; text-transform: uppercase; font-weight: 750; font-size: 11px; letter-spacing: .12em; color: #a7bdb1; overflow-wrap: anywhere; }
nav { display: grid; gap: 4px; padding-bottom: 16px; }
nav a { display: flex; align-items: center; white-space: nowrap; padding: 12px 11px; gap: 10px; border-radius: 10px; font-size: 13px; color: #cbdcd3; }
nav a .symbol { width: 20px; flex: none; color: #a4bfb1; }
nav a:hover { background: #244237; color: #fff; }
nav a[aria-current], nav a[aria-current] .symbol { background: var(--lime); color: #132e23; }
.account { display: flex; align-items: center; gap: 8px; border-top: 1px solid #385047; margin-top: auto; padding-top: 17px; font-size: 12px; min-width: 0; }
.account strong { overflow: hidden; text-overflow: ellipsis; }
.account button { margin-left: auto; padding-inline: 8px; }
.content { max-width: 1540px; min-width: 0; width: 100%; margin: 0 auto; padding: 28px clamp(20px, 3.5vw, 52px) 55px; }
.breadcrumb { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 27px; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.breadcrumb > div > span { margin-inline: 6px; }
.breadcrumb strong { color: var(--ink); }
.theme-toggle { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 8px 10px; border-color: var(--line); background: var(--surface, #fff); color: var(--ink); font-size: 12px; white-space: nowrap; }
.theme-toggle:hover { background: var(--hover, #edf4ed); }
.theme-icon { display: grid; place-items: center; width: 16px; height: 16px; font: 16px/1 system-ui, sans-serif; }
.theme-icon::before { content: '☀'; }
.theme-dark, [data-theme="dark"] .theme-light { display: none; }
[data-theme="dark"] .theme-dark { display: inline; }
[data-theme="dark"] .theme-icon::before { content: '☾'; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -.06em; }
h2 { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.heading p, .login-main p { margin-top: 10px; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--surface-shadow); }
.metric { padding: 17px 19px; }
.metric-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e8f4ed; color: var(--accent); margin-bottom: 13px; font-size: 19px; font-weight: 700; }
.metric:nth-child(2) .metric-icon { background: #eff6db; color: #46601f; }
.metric:nth-child(3) .metric-icon { background: #fff0dc; color: #84531e; }
.metric:nth-child(4) .metric-icon { background: #eaeefa; color: #404e82; }
.metric p { color: var(--muted); font-size: 13px; }
.metric strong, .subscription strong { display: block; font-size: clamp(21px, 2.6vw, 31px); letter-spacing: -.045em; margin: 5px 0; }
small { display: block; color: var(--muted); font-size: 12px; }
.panel { margin-bottom: 21px; overflow: hidden; }
.panel-head, .filters, .subscription { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 19px 21px; }
.panel-head a { font-size: 13px; text-align: right; }
.scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 15px; border-top: 1px solid #edf1ee; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 20px; }
th { background: #f6f9f7; color: var(--muted); font-size: 12px; }
tr:hover td { background: #fbfdfc; }
.person, .actions { display: flex; align-items: center; gap: 7px; }
.person { gap: 9px; }
.initial { display: grid; place-items: center; border-radius: 50%; width: 30px; height: 30px; flex: 0 0 30px; background: #e2f1e9; color: #28634d; font-size: 13px; font-weight: 750; }
.actions { flex-wrap: wrap; }
td .actions { flex-wrap: nowrap; }
td button { font-size: 12px; padding: 7px 9px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-weight: 750; font-size: 11px; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.green { color: #236149; background: #e2f4e9; }
.badge.amber { color: #745018; background: #fff1d3; }
.badge.red { color: #942d38; background: #fde8e9; }
.badge.neutral { color: #52675f; background: #edf3ef; }
.empty { padding: 24px 20px; color: var(--muted); border-top: 1px solid var(--line); }
.subscription { flex-wrap: wrap; align-items: flex-start; border-top: 1px solid var(--line); }
.subscription p { color: var(--muted); }
.receiving-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 5px; }
.receiving-status h3, .payment-section-title { margin: 0; font-size: 15px; }
.filters { justify-content: start; align-items: end; }
.filters label:first-child { flex: 1; max-width: 400px; }
.client-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.client-filters label:first-child { grid-column: span 2; max-width: none; }
.dashboard-hero, .login-intro, .renewal-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 95% 95%, #32664b, transparent 65%), #10271f;
  color: #fff;
}
.dashboard-hero::after, .login-intro::after, .renewal-heading::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(74%, 580px);
  aspect-ratio: 1;
  right: -8%;
  top: 18%;
  rotate: -33deg;
  border-radius: 34%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 15px, #c1ed8f47 16px, transparent 17px 24px);
  mask-image: linear-gradient(125deg, #000 10%, transparent 84%);
}
.dashboard-hero { padding: clamp(22px, 3.3vw, 36px); border-radius: 20px; margin-bottom: 18px; }
.hero-label { display: flex; align-items: center; gap: 7px; color: var(--lime); font-size: 12px; font-weight: 750; }
.hero-label .symbol { font-size: 17px; }
.hero-copy h2 { font-size: clamp(27px, 4vw, 44px); line-height: 1.12; letter-spacing: -.06em; margin: 9px 0 17px; }
.hero-copy a { display: inline-flex; align-items: center; gap: 11px; border: 1px solid #bce2aa66; border-radius: 8px; padding: 7px 11px; color: #f4ffea; font-size: 12px; }
.hero-copy a:hover { background: #2c5645; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 16px; }
.dashboard-due-row { display: grid; grid-template-columns: minmax(90px, 1fr) auto auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 13px 20px; color: var(--ink); }
.dashboard-due-row:hover { background: #f1f7f3; }
.dashboard-due-row small { margin-top: 3px; }
.dashboard-due-row > span:last-child { color: #28634d; }
.dashboard-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 16px 16px; }
.dashboard-periods > div { min-width: 0; padding: 12px 9px; background: #f3f7f4; border-radius: 9px; }
.dashboard-periods p { color: var(--muted); font-size: 12px; }
.dashboard-periods strong { display: block; margin: 5px 0; font-size: clamp(13px, 1.5vw, 19px); overflow-wrap: anywhere; }
.dashboard-chart { display: grid; gap: 10px; padding: 0 20px 18px; }
.dashboard-chart-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(72px, auto); align-items: center; gap: 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.dashboard-chart-row > span { color: var(--muted); }
.dashboard-chart-row > strong { text-align: end; }
.dashboard-chart meter { width: 100%; height: 12px; }
.dashboard-chart meter::-webkit-meter-bar { background: #e9f1ec; border: 0; }
.dashboard-chart meter::-webkit-meter-optimum-value { background: #417e64; }
@media (max-width: 980px) {
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .client-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-filters label:first-child { grid-column: auto; }
}
@media (max-width: 560px) {
  .client-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-filters label:first-child { grid-column: 1 / -1; }
}
label { display: grid; gap: 5px; color: #394e44; font-size: 13px; font-weight: 650; }
input, select { min-width: 0; width: 100%; border: 1px solid #c6d2c9; background: #fff; color: #142b25; border-radius: 9px; padding: 10px 11px; }
.login-page { display: grid; min-height: 100dvh; grid-template-columns: 1.1fr 1fr; padding: 16px; }
.login-intro { display: flex; flex-direction: column; gap: clamp(34px, 11vh, 125px); padding: clamp(28px, 6vw, 90px); border-radius: 24px; }
.login-intro::after { width: min(110%, 750px); top: 44%; }
.login-intro h1 { font-size: clamp(39px, 5.4vw, 80px); max-width: 600px; }
.login-intro p { max-width: 370px; margin-top: 20px; color: #d6e5da; line-height: 1.6; }
.login-main { display: grid; align-items: center; padding: 35px; }
.login-main form { margin: auto; width: min(100%, 430px); display: grid; gap: 17px; padding: clamp(23px, 4vw, 42px); border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--surface-shadow); }
.login-main h2 { font-size: 30px; }
.login-main p { margin-top: -9px; font-size: 14px; }
.login-main input, .login-main .primary { min-height: 45px; }
.demo { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; font-size: 13px; }
dialog { width: min(440px, calc(100% - 28px)); max-height: calc(100% - 30px); border: 1px solid var(--line); border-radius: 20px; padding: 24px; color: inherit; box-shadow: 0 24px 80px #0e241d33; }
dialog::backdrop { background: #12271f88; backdrop-filter: blur(3px); }
dialog form { display: grid; gap: 12px; }
dialog:has(.import-editor) { width: min(930px, calc(100% - 24px)); }
.import-editor > p { color: var(--muted); }
.import-editor .form-error { color: var(--error, #9a3540); }
.import-preview:empty { display: none; }
.import-preview > p { margin-bottom: 8px; }
.import-preview .scroll { max-height: min(45vh, 400px); border: 1px solid var(--line); border-radius: 10px; }
.form-footer { display: grid; gap: 8px; }
dialog:has(.client-editor) { width: min(880px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; }
dialog .client-editor { grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; max-height: calc(100dvh - 26px); }
.client-editor > h2, .client-editor > .form-footer { padding: 16px clamp(16px, 4vw, 32px); }
.client-editor > h2 { font-size: 23px; border-bottom: 1px solid var(--line); }
.client-editor > .form-footer { border-top: 1px solid var(--line); }
.client-editor-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 clamp(16px, 4vw, 32px); }
.client-section { display: grid; gap: 15px; min-width: 0; padding: 20px 0; }
.client-section + .client-section { border-top: 1px solid var(--line); }
.client-section h3 { margin: 0; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.client-identification .client-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.client-plan-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.client-wide { grid-column: 1 / -1; min-width: 0; }
.client-editor label { display: block; }
.client-editor label input, .client-editor label select, .client-editor label textarea { display: block; margin-top: 6px; }
.client-editor .required-mark { color: #a32d40; }
.client-editor .client-hint { margin-top: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.phone-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.client-editor .phone-row > input { margin-top: 0; }
.phone-picker { position: relative; }
.phone-picker summary { display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; white-space: nowrap; list-style: none; min-height: 43px; min-width: 74px; padding: 8px; border: 1px solid #becfc5; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 750; }
.phone-picker summary::-webkit-details-marker { display: none; }
.phone-picker summary::after { content: ''; width: 5px; height: 5px; border: solid var(--muted); border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.phone-picker[open] summary { border-color: #14624a; }
.country-iso { font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.phone-options { position: absolute; z-index: 2; inset-block-start: calc(100% + 5px); inset-inline-start: 0; width: min(320px, calc(100vw - 62px)); border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 28px #142b2528; }
.phone-search-label { padding: 9px; border-bottom: 1px solid var(--line); }
.client-editor .phone-search-label input { margin: 0; min-height: 36px; }
.phone-country-list { max-height: min(244px, 38dvh); overflow: auto; padding: 5px; }
.phone-country-list p { padding: 8px; color: var(--muted); font-size: 13px; }
.country-option { display: grid; grid-template-columns: 24px 43px minmax(0, 1fr) auto; align-items: baseline; gap: 5px; width: 100%; font-size: 13px; background: transparent; color: var(--ink); text-align: left; padding: 8px; }
.country-option:hover, .country-option[aria-pressed="true"] { background: #e8f4ed; }
.client-editor input, .client-editor select { min-height: 43px; }
.client-editor textarea { width: 100%; resize: vertical; font: inherit; color: var(--ink); padding: 10px; border: 1px solid #becfc5; border-radius: 8px; }
.client-access { min-width: 0; margin: 0; padding: 14px 17px 17px; border: 1px solid #d8ebe0; border-radius: 12px; background: #f1f7f3; }
.client-access legend { padding: 0 6px; font-size: 13px; font-weight: 750; }
.client-section output { overflow-wrap: anywhere; user-select: all; }
.saved-password { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.client-editor .wa-switch { display: flex; }
.client-editor .wa-switch input { margin: 0; }
@media (max-width: 580px) {
  .client-grid, .client-identification .client-grid, .client-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .client-section { padding-block: 16px; }
  .client-access { padding-inline: 12px; }
}
.dialog-actions { display: flex; justify-content: end; gap: 7px; }
.form-error, .login-main .form-error { color: #9a3540; font-size: 13px; }
.form-error:empty { display: none; }
#notice { display: none; position: fixed; bottom: 20px; right: 20px; max-width: calc(100% - 40px); color: #fff; background: var(--ink); border-radius: 9px; padding: 13px 16px; z-index: 2; }
#notice.visible { display: block; }
.wa-settings { display: grid; gap: 14px; padding: 0 20px 20px; }
.wa-settings > p, #wa-qr p { color: var(--muted); }
.wa-settings fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.wa-settings legend { padding: 0 5px; font-weight: 700; }
.wa-switch { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: fit-content; min-height: 44px; cursor: pointer; }
.wa-switch input { position: absolute; left: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.wa-switch-track { display: flex; align-items: center; width: 44px; height: 26px; padding: 3px; border: 1px solid #71857b; border-radius: 999px; background: var(--subtle, #e9efe9); }
.wa-switch-track::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #63786c; }
.wa-switch input:checked + .wa-switch-track { justify-content: flex-end; border-color: var(--accent); background: var(--accent); }
.wa-switch input:checked + .wa-switch-track::before { background: var(--surface, #fff); }
.wa-switch input:focus-visible + .wa-switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.wa-switch-state { color: var(--muted); font-size: 12px; }
.wa-switch-state span:last-child, .wa-switch input:checked ~ .wa-switch-state span:first-child { display: none; }
.wa-switch input:checked ~ .wa-switch-state span:last-child { display: inline; color: var(--accent); }
.wa-settings textarea { width: 100%; resize: vertical; font: inherit; font-weight: 400; color: var(--ink); padding: 9px; border: 1px solid #becfc5; border-radius: 8px; }
.wa-settings fieldset button { justify-self: start; font-size: 13px; }
.wa-schedule { display: grid; gap: 5px; }
.wa-schedule label { max-width: 200px; }
.wa-field-guide { display: grid; gap: 10px; margin: 0 20px 20px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--subtle, #f3f7f4); }
.wa-field-guide p, .wa-field-guide dd { font-size: 13px; line-height: 1.5; color: var(--muted); }
.wa-field-guide dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; margin: 0; }
.wa-field-guide dl > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, white); }
.wa-field-guide code { color: var(--accent); font-weight: 750; }
.wa-field-guide dd { margin: 4px 0 0; }
.wa-field-guide small { margin-top: 3px; }
.wa-insert { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-settings .wa-insert button { padding: 7px 9px; font-size: 12px; }
#wa-qr:not(:empty) { padding: 0 20px 20px; }
#wa-qr img { display: block; max-width: 100%; height: auto; margin-top: 10px; }
.renewal-body { min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #e2eddf, transparent 65%); }
.renewal-page { width: min(100% - 32px, 920px); margin: 0 auto; padding-block: clamp(16px, 4vw, 44px); }
.renewal-heading { border-radius: 22px; padding: clamp(20px, 4vw, 32px); margin-bottom: 16px; display: grid; gap: 8px; }
.renewal-heading .brand { font-size: 24px; }
.renewal-heading .brand-mark { scale: .85; transform-origin: left center; margin-right: -4px; }
.renewal-heading h1 { margin-top: 10px; }
.renewal-heading p { color: #cee2d7; font-size: 14px; }
.renewal-content:not([hidden]) { display: grid; gap: 16px; }
.renewal-content:has(#qr-payment:not([hidden])) { grid-template-columns: minmax(244px, .75fr) minmax(0, 1.25fr); }
.renewal-content:has(#qr-payment:not([hidden])) #generate { display: none; }
.renewal-plan, .renewal-pix { align-self: start; margin: 0; padding: clamp(17px, 3vw, 26px); }
.renewal-plan:not([hidden]), .renewal-pix:not([hidden]) { display: grid; gap: 14px; }
.renewal-plan p, .renewal-pix p, #renewal-notice { color: var(--muted); font-size: 14px; line-height: 1.5; }
.renewal-expiry { display: grid; gap: 3px; padding: 12px 15px; border: 1px solid #c6dec8; border-inline-start: 4px solid #347558; border-radius: 11px; background: #edf6ed; color: #123c2e; }
.renewal-expiry span { font-size: 13px; font-weight: 750; }
.renewal-expiry strong { font-size: clamp(19px, 3vw, 25px); line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; }
.renewal-pix { border-color: #bfd8c5; }
.pix-heading { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: baseline; justify-content: space-between; }
.pix-heading h2 { font-size: clamp(22px, 3vw, 28px); }
.pix-heading strong { color: var(--accent); font-size: clamp(21px, 3vw, 28px); letter-spacing: -.04em; }
.pix-qr-frame { display: grid; place-items: center; padding: 12px; border: 1px solid #d7e8da; border-radius: 16px; background: #edf5ee; }
.pix-qr-frame img { display: block; width: min(100%, 248px); height: auto; border-radius: 6px; background: white; }
.pix-copy:not([hidden]) { display: grid; gap: 7px; padding-top: 2px; }
.pix-copy label { color: var(--ink); font-size: 15px; font-weight: 800; }
.pix-copy-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pix-copy-controls input { font-family: ui-monospace, monospace; font-size: 13px; }
.pix-copy-controls button { min-height: 44px; }
#pix-copy-status:empty, #renewal-notice:empty { display: none; }
#pix-copy-status:not(:empty) { color: var(--accent); font-weight: 750; }
#qr-expiration { font-size: 12px; }
#renewal-notice { margin-top: 14px; padding: 13px 16px; background: #eaf3e9; border: 1px solid #d5e6d7; border-radius: 12px; }
@media (max-width: 640px) {
  .renewal-content:has(#qr-payment:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .pix-copy-controls { grid-template-columns: minmax(0, 1fr); }
}
[data-theme="dark"] {
  & :focus-visible { outline-color: var(--lime); }
  & .sidebar { border-inline-end: 1px solid var(--line); }
  & :is(.metric, .panel, dialog, .login-main form, .phone-options) { background: var(--surface); }
  & :is(th, .dashboard-periods > div, .client-access) { background: var(--subtle); }
  & :is(th, td, .client-access) { border-color: var(--line); }
  & :is(tr:hover td, .dashboard-due-row:hover, .plain:hover, .country-option:hover, .country-option[aria-pressed="true"]) { background: var(--hover); }
  & :is(label, .dashboard-due-row > span:last-child) { color: var(--muted); }
  & :is(input, select, textarea, .phone-picker summary) { background: var(--field); color: var(--ink); border-color: var(--field-border); }
  & :is(input, textarea)::placeholder { color: #a0b3a7; }
  & .phone-picker[open] summary { border-color: var(--accent); }
  & :is(.form-error, .danger-text, .client-editor .required-mark) { color: var(--error); }
  & .primary { background: var(--lime); color: #132e23; }
  & .primary:hover { background: #bfe478; }
  & .secondary { color: #d4eddb; background: var(--subtle); border-color: var(--field-border); }
  & .secondary:hover { background: var(--hover); }
  & :is(.initial, .badge.green, .metric-icon) { color: #c4edac; background: #294435; }
  & :is(.badge.amber, .metric:nth-child(3) .metric-icon) { color: #ffda9d; background: #473621; }
  & .badge.red { color: var(--error); background: #4b2930; }
  & :is(.badge.neutral, .metric:nth-child(4) .metric-icon) { color: #c9d9f5; background: #2c384c; }
  & .dashboard-chart meter::-webkit-meter-bar { background: var(--hover); }
  & .dashboard-chart meter::-webkit-meter-optimum-value { background: #9dd077; }
  & .dashboard-chart meter::-moz-meter-bar { background: #9dd077; }
  & #notice { background: #d5edcf; color: #11271d; }
}
@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; padding: 14px 16px 0; gap: 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .sidebar .brand { padding: 0; }
  .workspace { margin: 0; grid-column: 1 / -1; }
  nav { display: flex; overflow: auto; grid-column: 1 / -1; padding-bottom: 10px; }
  nav a { padding: 8px 10px; gap: 6px; }
  nav a .symbol { font-size: 17px; width: 17px; }
  .account { grid-column: 2; grid-row: 1; padding-top: 0; border: 0; margin-top: 0; }
  .account strong { max-width: 24vw; }
  .account .initial { display: none; }
  .content { padding: 19px 14px 40px; }
  .breadcrumb { margin-bottom: 17px; padding-bottom: 12px; }
  .heading { align-items: flex-start; flex-wrap: wrap; }
  .metrics { gap: 9px; }
  .metric { padding: 13px; }
  .login-page { grid-template-columns: 1fr; align-content: center; gap: 17px; }
  .login-intro { padding: 27px; }
  .login-intro .brand { margin: 0; }
  .login-main { padding: 0; }
}
