:root {
  color-scheme: light;
  --ink: #203a3a;
  --deep: #0d292f;
  --muted: #52635f;
  --line: #e1e7e2;
  --accent: #147d76;
  --accent-bright: #56d7c6;
  --surface: #fff;
  --page: #f5f6f3;
  --tint: #eaf5f1;
  --danger: #a74443;
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #46b8aa; outline-offset: 3px; }

.portal-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; min-height: 650px;
  display: flex; flex-direction: column; padding: 32px 20px 24px;
  background: #102d2e;
  color: #edf8f5; overflow-y: auto;
}
.sidebar-brand { display: block; width: fit-content; margin: 0 9px; }
.sidebar-brand img { display: block; width: 186px; max-width: 100%; height: auto; }
.sidebar-facility { margin: 33px 9px 16px; border-top: 1px solid #ffffff1c; padding-top: 23px; }
.sidebar-facility-label, .nav-label, .auth-kicker { display: block; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.sidebar-facility-label { color: #78bcb3; margin-bottom: 8px; }
.sidebar-facility strong { display: block; font-size: 16px; line-height: 1.35; font-weight: 650; letter-spacing: -.03em; overflow-wrap: anywhere; }
.sidebar-facility small { display: block; color: #9bc4bf; margin-top: 4px; font-size: 12px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 7px; }
.nav-label { margin: 24px 15px 7px; color: #75a5a1; }
.nav-link {
  display: flex; align-items: center; gap: 12px; min-height: 43px;
  padding: 10px 9px; color: #a9c2bd; font-size: 13px; font-weight: 500;
  transition: color .15s ease;
}
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-link.is-current { color: #91e3cc; font-weight: 650; }
.nav-link.is-current::after { content: ""; width: 5px; height: 5px; margin-left: auto; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.ui-icon { display: inline-block; width: 19px; height: 19px; flex: none; vertical-align: middle; }
.nav-link .ui-icon { opacity: .8; }
.nav-link.is-current .ui-icon { opacity: 1; }
.sidebar-credit, .auth-credit { display: flex; align-items: center; gap: 9px; color: #a4c6c1; font-size: 11px; }
.sidebar-credit { margin: auto 14px 2px; padding-top: 36px; }
.sidebar-credit img, .auth-credit img { display: block; width: 95px; height: auto; opacity: .76; }

.portal-main { min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px; padding: 0 clamp(24px, 3.4vw, 58px);
  border-bottom: 1px solid var(--line); background: #fafbf8;
}
.topbar-product { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #547074; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.topbar-product span { margin: 0 7px; color: #a0b7b3; }
.account { display: flex; flex: none; align-items: center; gap: 19px; min-width: 0; margin-left: auto; color: var(--muted); font-size: 12px; }
.account-email { color: var(--ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.account form { margin: 0; }
.account-identity { display: flex; min-width: 0; flex-direction: column; line-height: 1.4; }
.account-identity small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.account-menu { position: relative; flex: none; margin-top: 0; margin-left: auto; }
.account-trigger { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #d5e5df; border-radius: 50%; background: #eef5f1; color: var(--accent); cursor: pointer; list-style: none; }
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger:hover, .account-menu[open] .account-trigger { background: #dfeee7; border-color: #9cc8b9; }
.account-trigger svg, .account-logout svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-dropdown { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: min(285px, calc(100vw - 36px)); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 12px 35px #15343a18; }
.account-dropdown::before { content: ""; position: absolute; top: -11px; right: 0; left: 0; height: 11px; }
.account-dropdown .account-identity { padding: 18px; }
.account-dropdown form { min-width: 0; padding-top: 0; }
.account-label { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.account-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 13px 18px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 15px 15px; background: transparent; color: var(--danger); text-align: left; font-size: 12px; font-weight: 650; }
.account-logout:hover { background: #faf2f1; }
.facility-switch { display: inline-flex; align-items: center; gap: 6px; color: #547074; font-size: 11px; font-weight: 650; white-space: nowrap; padding: 8px 0; }
.facility-switch svg { width: 18px; height: 18px; flex: none; }
.sale-customer { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--tint); }
.sale-customer h2 { margin: 5px 0; }
.sale-customer p { margin: 0; }
.sale-customer small { font-size: 10px; letter-spacing: .15em; color: var(--accent); font-weight: 800; }
.table-wrap .actions { margin: 0; }
.terminal-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.terminal-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a9b8b4; flex: none; }
.terminal-status.is-recent::before { background: var(--accent); box-shadow: 0 0 0 3px #147d7612; }
.terminal-card { border-top: 1px solid var(--line); padding: 16px 0; }
.terminal-card .reader-row { padding: 0 0 12px; border: 0; }
.terminal-card code { font-size: 11px; overflow-wrap: anywhere; }
.terminal-card details { margin-top: 12px; }
.terminal-card summary { color: var(--accent); cursor: pointer; font-size: 12px; }
.text-button { border: 0; background: none; padding: 5px 0; color: var(--accent); font-size: 12px; font-weight: 750; }
.text-button:hover { text-decoration: underline; }
.wrap { width: min(100%, 1390px); margin: 0 auto; padding: clamp(28px, 3.5vw, 58px) clamp(24px, 3.4vw, 58px) 92px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin: 5px 0 13px; font-size: clamp(32px, 3vw, 44px); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; }
h2 { margin: 0 0 16px; font-size: 19px; line-height: 1.25; letter-spacing: -.035em; font-weight: 700; }
h3 { margin: 22px 0 10px; font-size: 15px; letter-spacing: -.02em; }
p { color: var(--muted); }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; }
.crumb { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 27px; color: #71888b; font-size: 12px; }
.crumb a { color: #517377; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.page-heading p:last-child { margin-bottom: 0; }
.page-heading .actions { margin: 0; flex: none; }
.narrow { max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 17px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-width: 0; margin-bottom: 18px; padding: clamp(22px, 2.1vw, 30px);
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: 0 2px 6px #123d3403;
}
.card > :last-child { margin-bottom: 0; }
.card h2 + p { margin-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 20px 0; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 10px 17px; border-radius: 10px;
  font-size: 13px; font-weight: 650; line-height: 1.25; white-space: normal; text-align: center;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.primary { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.primary:hover { color: #fff; background: #0b6964; text-decoration: none; transform: translateY(-1px); }
.secondary { color: var(--ink); background: #fff; border: 1px solid #cbded8; }
.secondary:hover { background: var(--tint); border-color: #9ccbc3; text-decoration: none; }

.dashboard-kpis { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); margin-bottom: 18px; }
.dashboard-kpis .card { margin-bottom: 0; min-height: 170px; }
.dashboard-kpis .card:first-child { background: var(--deep); color: #fff; border-color: var(--deep); }
.dashboard-kpis .card:first-child .eyebrow { color: #91ded2; }
.dashboard-kpis .card:first-child small { color: #bbd0cd; }
.kpi { display: flex; flex-direction: column; justify-content: space-between; }
.kpi strong { display: block; font-size: clamp(30px, 2.6vw, 39px); line-height: 1.1; letter-spacing: -.06em; font-weight: 700; margin: 10px 0; }
.kpi small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.kpi small a { color: inherit; text-decoration: underline; }

.balance {
  min-width: 220px; padding: 24px 29px; color: #fff; border-radius: 17px;
  background: var(--deep);
}
.balance span { display: block; color: #b5d8d3; font-size: 12px; letter-spacing: .04em; }
.balance strong { display: block; margin-top: 11px; font-size: 43px; line-height: 1; letter-spacing: -.06em; }
.balance small { font-size: 16px; letter-spacing: 0; font-weight: 500; }
.balance.hero { max-width: 520px; margin: 24px 0 28px; padding: 31px 34px; }
.balance.hero p { color: #bcd8d3; margin: 12px 0 0; font-size: 13px; }

.search { display: flex; align-items: center; gap: 8px; }
.search input { min-width: 260px; }
.form { display: flex; flex-direction: column; gap: 19px; }
.form > label, .report-filters label, .auth-panel label, details form label {
  display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700;
}
.form .primary { align-self: flex-start; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 13px;
  border: 1px solid #cbdcd7; border-radius: 9px; background: #fff; color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #2c9a90; box-shadow: 0 0 0 3px #2c9a902a; }
input[type="checkbox"] { width: auto; min-height: auto; margin: 2px 2px 0 0; accent-color: var(--accent); }
input[type="search"] { appearance: none; }
textarea { min-height: 120px; resize: vertical; }
.field-error, .notice.error { color: var(--danger); }
.notice { padding: 13px 17px; border: 1px solid #cae8df; border-radius: 11px; background: var(--tint); color: #235850; margin-bottom: 18px; font-size: 13px; }
.notice.error { border-color: #f0c9c7; background: #fff2f1; }
.notice.success { border-color: #bde6d1; background: #edfaf2; }
.hint { color: var(--muted); font-size: 12px; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 99px; background: var(--tint); color: #2a6660; font-size: 11px; font-weight: 700; white-space: nowrap; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th { color: #71878a; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; text-align: left; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e9efed; vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbf9; }
td { font-size: 13px; }
td small { display: block; margin-top: 4px; color: var(--muted); }
td .secondary { min-height: 36px; padding: 7px 12px; font-size: 11px; }
td form { margin: 6px 0; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.pagination .secondary { min-height: 36px; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #e8eeeb; }
.activity li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity li:first-child { padding-top: 0; }
.activity small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.activity strong { white-space: normal; text-align: right; font-size: 12px; }
.card-list li { align-items: flex-start; flex-wrap: wrap; }
.card-list details { margin-top: 0; min-width: min(100%, 290px); }

details { margin-top: 10px; }
details summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 750; }
details form { display: grid; gap: 9px; min-width: 240px; padding-top: 11px; }
details form label:has(input[type="checkbox"]) { display: flex; align-items: start; font-weight: 550; }

.report-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.report-filters label { min-width: 145px; flex: 1 1 145px; }
.report-filters button { margin-bottom: 1px; }
[data-quote-output] { display: block; margin: 0; font-weight: 700; color: var(--ink); }
.bonus-editor { padding-top: 20px; border-top: 1px solid var(--line); }
.bonus-editor h2 { margin-bottom: 4px; }
.bonus-editor .hint { margin: 0 0 16px; }
.bonus-rows { display: grid; gap: 12px; margin-bottom: 14px; }
.bonus-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfa; }
.bonus-row label { font-size: 12px; }
.bonus-row input { min-width: 0; }
.privacy-body, .privacy-body p { color: var(--ink); }
.privacy-sheet { max-width: 850px; }
.steps { list-style: none; display: grid; gap: 24px; padding: 0; margin: 24px 0 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 13px; counter-increment: step; }
.steps li::before { content: "0" counter(step); grid-row: 1 / 3; align-self: start; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .05em; }
.steps strong { display: block; font-size: 13px; }
.steps span { display: block; color: var(--muted); font-size: 12px; }
.token-once { border-color: #8cc6ba; background: #eaf7f2; }
.token-once h2 { margin-bottom: 7px; }
.token-value { display: block; overflow-wrap: anywhere; padding: 17px; border: 1px solid #b8dfd3; border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; user-select: all; }
.reader-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); }
.reader-row strong { display: block; font-size: 14px; }
.reader-row small { display: block; color: var(--muted); font-size: 11px; }
.reader-window { margin: 4px 0 9px; color: var(--accent); font-size: 12px; font-weight: 750; }
.reader-row + form { margin: 0 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth-shell { display: grid; grid-template-columns: minmax(380px, 47%) minmax(0, 1fr); min-height: 100vh; }
.auth-art {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; padding: clamp(31px, 4.5vw, 66px);
  background: radial-gradient(circle at 75% 16%, #1d5b5a, transparent 32%), radial-gradient(circle at 1% 100%, #0a2025, transparent 52%), #0e2b30; color: #fff;
}
.auth-art::after { content: ""; position: absolute; z-index: -1; width: 66vw; aspect-ratio: 1; top: 24%; left: 24%; border: 1px solid #a5ece226; border-radius: 50%; box-shadow: 0 0 0 100px #a5ece20a, 0 0 0 200px #a5ece207; }
.auth-brand { display: block; width: fit-content; }
.auth-brand img { display: block; max-width: 100%; width: 250px; height: auto; }
.auth-art-copy { margin: 55px 0; }
.auth-kicker { margin-bottom: 21px; color: #9edcd2; }
.auth-art-copy strong { display: block; font-size: clamp(49px, 5.1vw, 88px); line-height: .98; letter-spacing: -.075em; font-weight: 620; }
.auth-art-copy p { max-width: 350px; margin: 23px 0 0; color: #b7d4ce; font-size: 15px; }
.auth-content { display: flex; align-items: center; justify-content: center; padding: 50px 30px; }
.auth-content-inner { width: min(100%, 435px); }
.auth-panel { padding: 0; }
.auth-panel h1 { font-size: clamp(40px, 4vw, 58px); }
.auth-panel p { margin-bottom: 30px; }
.auth-panel form { display: flex; flex-direction: column; gap: 19px; }
.auth-panel .primary { width: 100%; margin-top: 8px; min-height: 50px; }

@media (max-width: 1090px) {
  .topbar { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .portal-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .sidebar-brand img { width: 180px; }
  .wrap { padding-left: 28px; padding-right: 28px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .page-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 820px) {
  .portal-shell { display: block; }
  .sidebar { position: relative; top: auto; min-height: 0; height: auto; display: block; padding: 17px 18px 10px; overflow: visible; }
  .sidebar-brand { margin: 0 3px; }
  .sidebar-brand img { width: 164px; }
  .sidebar-facility, .nav-label { display: none; }
  .sidebar-credit { position: absolute; top: 24px; right: 18px; display: flex; margin: 0; padding: 0; font-size: 9px; }
  .sidebar-credit img { width: 76px; }
  .sidebar-nav { flex-direction: row; gap: 4px; margin-top: 11px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .nav-link { flex: none; min-height: 34px; padding: 6px 11px; white-space: nowrap; }
  .topbar { min-height: 55px; }
  .auth-shell { grid-template-columns: 43% 57%; }
  .auth-art { padding: 34px; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .topbar { padding: 10px 18px; gap: 7px; }
  .topbar-product { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account { width: 100%; gap: 14px; flex-wrap: wrap; }
  .sale-customer { align-items: start; flex-direction: column; }
  .wrap { padding: 28px 16px 62px; }
  h1 { font-size: 32px; }
  .page-heading, .section-heading { align-items: stretch; flex-direction: column; }
  .grid.two { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 15px; }
  .search { width: 100%; }
  .search input { min-width: 0; flex: 1; }
  .balance { width: 100%; }
  td, th { white-space: nowrap; }
  .activity li { flex-direction: column; gap: 4px; }
  .activity strong { text-align: left; }
  .bonus-row { grid-template-columns: 1fr 1fr; }
  .bonus-row .secondary { grid-column: 1 / -1; }
  .auth-shell { display: block; }
  .auth-art { min-height: 116px; padding: 26px 24px; }
  .auth-brand img { width: 205px; }
  .auth-art-copy { display: none; }
  .auth-credit { position: absolute; right: 23px; bottom: 13px; display: flex; font-size: 9px; }
  .auth-credit img { width: 74px; }
  .auth-content { display: block; min-height: calc(100vh - 116px); padding: 54px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-link, .primary, .secondary { transition: none; }
  .primary:hover { transform: none; }
}
@media print {
  body { background: #fff; color: #111; }
  .portal-shell { display: block; }
  .sidebar, .topbar, .no-print { display: none !important; }
  .wrap { width: 100%; max-width: none; padding: 0; }
  .card, .privacy-sheet { border: 0; box-shadow: none; padding: 0; margin: 0; }
  a { color: inherit; text-decoration: none; }
}

/* Profile workspace: quiet hierarchy, clear actions and generous field spacing. */
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 12px; }
.quiet-action { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; padding: 10px 0; }
.profile-heading { align-items: center; }
.profile-heading h1 { overflow-wrap: anywhere; }
.profile-contact { font-size: 13px; overflow-wrap: anywhere; }
.profile-heading .actions { margin-top: 22px; }
.balance > span:last-child { margin-top: 14px; font-size: 11px; }
.profile-sections { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 25px; margin: 0 0 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-sections a { font-size: 12px; font-weight: 600; color: var(--muted); padding: 5px 0; }
.profile-sections a:hover { color: var(--accent); }
.profile-sections .next-customer { margin-left: auto; color: var(--accent); }
.profile-data { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); gap: 12px 28px; margin: 25px 0; font-size: 13px; }
.profile-data dt { color: var(--muted); }
.profile-data dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.reward-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 19px; padding-bottom: 19px; background: transparent; }
.reward-summary h2 { font-size: 14px; margin-bottom: 6px; }
.reward-summary p { font-size: 12px; margin: 0; }
.reward-summary > .hint { max-width: 240px; }
.customer-name { color: var(--ink); font-weight: 650; }
.customer-directory .section-heading { padding-bottom: 16px; }
.customer-directory td { vertical-align: middle; padding-top: 18px; padding-bottom: 18px; }
.profile-editor { max-width: 1120px; }
.editor-section { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.6fr); gap: clamp(25px, 4vw, 64px); padding: 32px 0; border-top: 1px solid var(--line); }
.editor-caption h2 { margin: 8px 0; font-size: 20px; font-weight: 600; }
.editor-caption p { max-width: 220px; font-size: 12px; line-height: 1.65; }
.section-number { color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; align-content: start; }
.profile-field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.profile-field input, .profile-field select { min-height: 47px; background: #fff; }
.profile-field.has-error input, .profile-field.has-error select { border-color: var(--danger); }
.profile-field .field-error { display: block; font-size: 11px; margin-top: 7px; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding: 24px 0; }
.editor-footer > .hint { margin: 0; max-width: 420px; }
.editor-footer .actions { margin: 0; flex: none; }
.profile-editor .errorlist { margin: 7px 0 0; padding-left: 20px; }
@media (max-width: 1090px) { .profile-heading { flex-direction: row; align-items: start; } }
@media (max-width: 820px) { .editor-section { grid-template-columns: 1fr; gap: 12px; } .editor-caption p { max-width: none; } .editor-caption .section-number { display: none; } .nav-link.is-current::after { display: none; } .nav-link.is-current { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; } }
@media (max-width: 620px) { .profile-heading { flex-direction: column; align-items: stretch; } .profile-heading .balance { min-width: 0; } .profile-sections { gap: 7px 20px; } .profile-sections .next-customer { margin-left: 0; flex-basis: 100%; } .profile-data { grid-template-columns: 1fr; gap: 4px; } .profile-data dd { margin-bottom: 12px; } .field-grid { grid-template-columns: 1fr; gap: 18px; } .editor-footer { flex-direction: column; align-items: stretch; } .editor-footer .actions { justify-content: flex-end; } .reward-summary { flex-direction: column; align-items: start; gap: 10px; } .reward-summary > .hint { max-width: none; } }
