:root {
  color-scheme: light;
  --ink: #183d3b;
  --ink-2: #385956;
  --muted: #788682;
  --teal: #176b63;
  --teal-dark: #10564f;
  --teal-soft: #e8f2ef;
  --sage: #d9e8e1;
  --sand: #d8b986;
  --sand-pale: #f5efe4;
  --canvas: #f7f6f1;
  --surface: #fffefa;
  --line: #e9e8df;
  --danger: #a34e3d;
  --shadow: 0 18px 50px rgba(25, 57, 52, .08);
  --shadow-soft: 0 8px 24px rgba(25, 57, 52, .06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button { font: inherit; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(23, 107, 99, .38); outline-offset: 3px; }
button:disabled { cursor: not-allowed; }

#app { min-height: 100vh; }
.icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; align-items: center; justify-content: center; }
.icon svg { width: 100%; height: 100%; display: block; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Entry screen */
.signin-page { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .85fr) minmax(440px, 1.15fr); background: var(--surface); }
.signin-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(32px, 5vw, 78px); color: #f8f7ef; background: #143f3d; }
.signin-aside::before, .signin-aside::after { content: ""; position: absolute; border: 1px solid rgba(244, 238, 216, .16); border-radius: 50%; pointer-events: none; }
.signin-aside::before { width: 540px; height: 540px; right: -260px; top: 12%; }
.signin-aside::after { width: 390px; height: 390px; right: -182px; top: 21%; }
.brand-lockup { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-seal { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); background: #dfc499; border-radius: 15px; }
.brand-seal svg { width: 27px; height: 27px; }
.brand-name { font-size: 14px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; }
.brand-kicker { margin-top: 4px; color: rgba(250, 250, 242, .65); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.signin-message { position: relative; z-index: 1; max-width: 440px; margin: 50px auto; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.signin-aside .eyebrow { color: #dcc497; }
.signin-message h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 62px); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
.signin-message p:not(.eyebrow) { max-width: 375px; margin: 20px 0 0; color: rgba(250, 250, 242, .76); font-size: 15px; line-height: 1.8; }
.aside-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: rgba(250, 250, 242, .7); font-size: 12px; }
.aside-note .icon { color: #d9c18f; }
.signin-main { display: grid; place-items: center; padding: 40px 28px; }
.signin-card { width: min(100%, 430px); }
.signin-card h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.signin-intro { margin: 10px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.demo-resident { display: flex; align-items: center; gap: 14px; padding: 17px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fbfaf5; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--teal-dark); background: #e7efe9; font-size: 13px; font-weight: 800; }
.demo-name { font-size: 14px; font-weight: 750; }
.demo-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-size: 13px; font-weight: 750; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--teal); box-shadow: 0 8px 18px rgba(23, 107, 99, .17); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); box-shadow: 0 11px 22px rgba(23, 107, 99, .22); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { border-color: #bdd1c9; background: #f9fbf8; }
.button-block { width: 100%; }
.button-quiet { min-height: 38px; padding: 0 11px; color: var(--teal); background: transparent; }
.button-quiet:hover { background: var(--teal-soft); }
.prototype-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 23px; padding: 13px 14px; border-radius: 13px; color: #687772; background: #f4f5ef; font-size: 11px; line-height: 1.6; }
.prototype-note .icon { width: 16px; height: 16px; color: var(--teal); }
.signin-footer { margin-top: 26px; color: #939d97; font-size: 11px; text-align: center; }

/* Authenticated app shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 27px 17px 20px; border-right: 1px solid var(--line); background: #fbfaf6; }
.sidebar .brand-lockup { padding: 0 10px 31px; }
.sidebar .brand-seal { width: 42px; height: 42px; }
.sidebar .brand-name { max-width: 142px; font-size: 13px; }
.sidebar .brand-kicker { color: #87928c; font-size: 9px; }
.nav-section-label { margin: 0 11px 10px; color: #a1aaa4; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; border: 0; border-radius: 12px; color: #72807a; background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 650; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { color: var(--ink); background: #f2f3ed; }
.nav-link.active { color: var(--teal-dark); background: #e9f2ee; }
.nav-count { margin-left: auto; padding: 3px 7px; border-radius: 20px; color: #8a6440; background: #f4e9d8; font-size: 10px; font-weight: 800; }
.sidebar-spacer { flex: 1; }
.sidebar-help { margin: 16px 0 18px; padding: 15px 13px; border: 1px solid #e7e5d9; border-radius: 15px; background: #f6f3e9; }
.sidebar-help strong { display: block; font-size: 11px; }
.sidebar-help p { margin: 6px 0 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sidebar-help button { padding: 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 7px 0; border-top: 1px solid var(--line); }
.sidebar-user .avatar { width: 36px; height: 36px; font-size: 10px; }
.sidebar-user-copy { min-width: 0; flex: 1; }
.sidebar-user-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.sidebar-user-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.sidebar-user .icon { width: 16px; height: 16px; color: #9aa39d; }
.main-area { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4.5vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .8); }
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-kicker { color: #8a958f; font-size: 11px; }
.topbar-separator { color: #c2c8c0; }
.topbar-title { color: var(--ink-2); font-size: 11px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 13px; }
.icon-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 12px; color: #66756f; background: transparent; cursor: pointer; }
.icon-button:hover { border-color: var(--line); background: #fff; }
.icon-button .icon { width: 18px; height: 18px; }
.notice-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: #c38852; }
.topbar-avatar { display: flex; align-items: center; gap: 9px; padding-left: 11px; border-left: 1px solid var(--line); }
.topbar-avatar .avatar { width: 34px; height: 34px; font-size: 10px; }
.topbar-avatar span { font-size: 11px; font-weight: 750; }
.content { width: min(100%, 1240px); margin: 0 auto; padding: 36px clamp(24px, 4.5vw, 64px) 70px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3.5vw, 40px); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; }
.page-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-heading-actions { display: flex; gap: 9px; flex: 0 0 auto; }

/* Home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr); gap: 19px; align-items: stretch; }
.balance-card { position: relative; min-height: 255px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 27px 29px; border-radius: var(--radius-xl); color: #f7f7ef; background: #155a55; box-shadow: var(--shadow); }
.balance-card::before { content: ""; position: absolute; width: 295px; height: 295px; right: -72px; top: -143px; border: 1px solid rgba(240, 231, 206, .19); border-radius: 50%; }
.balance-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -29px; top: -100px; border: 1px solid rgba(240, 231, 206, .15); border-radius: 50%; }
.balance-top, .balance-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.balance-label { display: flex; align-items: center; gap: 9px; color: rgba(250, 250, 242, .77); font-size: 12px; }
.balance-label .icon { width: 17px; height: 17px; color: #ddc99f; }
.balance-date { color: rgba(250, 250, 242, .69); font-size: 11px; }
.balance-amount { margin-top: 25px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 54px); letter-spacing: -.05em; line-height: 1; }
.balance-amount span { margin-left: 6px; color: rgba(250, 250, 242, .72); font-family: inherit; font-size: 15px; letter-spacing: 0; }
.balance-caption { margin-top: 10px; color: rgba(250, 250, 242, .68); font-size: 11px; }
.balance-bottom { align-items: flex-end; margin-top: 29px; }
.balance-card .button { color: var(--ink); background: #f1e5ce; box-shadow: none; }
.balance-card .button:hover { background: #fff4de; }
.reference-mini { color: rgba(250, 250, 242, .58); font-size: 10px; }
.welcome-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 255px; padding: 23px; border: 1px solid #e8e5d9; border-radius: var(--radius-xl); background: #f4f1e7; }
.welcome-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.welcome-card .eyebrow { margin-bottom: 8px; color: #9a7951; }
.welcome-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; letter-spacing: -.04em; }
.welcome-card p { margin: 8px 0 0; color: #77817b; font-size: 11px; line-height: 1.6; }
.civic-stamp { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; color: #936f45; background: #e8dec7; }
.civic-stamp .icon { width: 23px; height: 23px; }
.welcome-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 17px; border-top: 1px solid #e4dfd1; color: #858d84; font-size: 10px; }
.welcome-foot strong { color: var(--ink-2); font-size: 11px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 32px 0 15px; }
.section-head h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.text-link:hover { color: var(--teal-dark); }
.text-link .icon { width: 14px; height: 14px; }
.tax-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tax-card { position: relative; min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 3px 12px rgba(25, 57, 52, .025); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tax-card:hover { transform: translateY(-2px); border-color: #cadcd4; box-shadow: var(--shadow-soft); }
.tax-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tax-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: #eaf2ee; }
.tax-icon .icon { width: 18px; height: 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 18px; color: #8c633e; background: #f5eddf; font-size: 9px; font-weight: 750; }
.status-pill.paid { color: #467462; background: #e9f3ed; }
.tax-card h3 { margin: 15px 0 4px; font-size: 12px; }
.tax-card p { margin: 0; color: var(--muted); font-size: 10px; }
.tax-card .tax-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; }
.tax-due { color: var(--ink); font-size: 13px; font-weight: 800; }
.tax-due small { display: block; margin-bottom: 3px; color: #9aa39d; font-size: 9px; font-weight: 600; }
.tax-card .icon-button { width: 29px; height: 29px; color: var(--teal); background: #f4f7f3; }
.tax-card .icon-button .icon { width: 15px; height: 15px; }
.home-lower { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 17px; margin-top: 29px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 19px 13px; }
.panel-head h2 { margin: 0; font-size: 13px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.payment-row { display: flex; align-items: center; gap: 13px; padding: 14px 19px; border-top: 1px solid #f0efe9; }
.payment-row-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: #edf4ef; }
.payment-row-icon .icon { width: 17px; height: 17px; }
.payment-row-copy { min-width: 0; flex: 1; }
.payment-row-copy strong { display: block; font-size: 11px; }
.payment-row-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.payment-row-amount { text-align: right; font-size: 11px; font-weight: 800; }
.payment-row-amount small { display: block; margin-top: 4px; color: #5b8a71; font-size: 9px; font-weight: 650; }
.deadline-card { min-height: 100%; padding: 20px; border: 1px solid #ece6d9; border-radius: 18px; background: #faf6ec; }
.deadline-top { display: flex; justify-content: space-between; align-items: flex-start; }
.deadline-top .icon { color: #a17d4c; }
.deadline-card h3 { margin: 20px 0 7px; font-size: 12px; }
.deadline-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.deadline-date { margin-top: 16px; color: #8d6741; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }

/* Payment flow */
.flow-wrap { max-width: 950px; margin: 0 auto; }
.stepper { display: flex; align-items: center; max-width: 650px; margin: 0 0 26px; }
.step { display: flex; align-items: center; gap: 9px; color: #a0aaa4; font-size: 10px; font-weight: 650; white-space: nowrap; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #dfe4dd; border-radius: 50%; color: #8c9992; background: #fff; font-size: 10px; font-weight: 800; }
.step.active { color: var(--teal-dark); }
.step.active .step-number, .step.done .step-number { border-color: var(--teal); color: white; background: var(--teal); }
.step.done { color: var(--teal); }
.step-line { flex: 1; min-width: 20px; height: 1px; margin: 0 12px; background: #dfe4dd; }
.payment-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.payment-main-card { padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.payment-main-card h2 { margin: 0; font-size: 15px; }
.payment-main-card .helper { margin: 7px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.choice-list { display: grid; gap: 9px; }
.choice-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; cursor: pointer; text-align: left; transition: border-color .18s, background .18s; }
.choice-card:hover:not(:disabled) { border-color: #bfd3ca; background: #fbfdfa; }
.choice-card.selected { border-color: var(--teal); background: #f1f7f3; box-shadow: 0 0 0 2px rgba(23, 107, 99, .08); }
.choice-card:disabled { opacity: .68; cursor: not-allowed; }
.choice-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: #eef4ef; }
.choice-icon .icon { width: 18px; height: 18px; }
.choice-copy { min-width: 0; flex: 1; }
.choice-copy strong { display: block; font-size: 11px; }
.choice-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.choice-amount { text-align: right; font-size: 11px; font-weight: 800; }
.choice-amount small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 600; }
.radio-mark { width: 16px; height: 16px; border: 1px solid #cad3cb; border-radius: 50%; }
.selected .radio-mark { display: grid; place-items: center; border-color: var(--teal); }
.selected .radio-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.subsection-label { display: flex; align-items: center; gap: 8px; margin: 22px 0 11px; color: #4f625c; font-size: 10px; font-weight: 800; }
.subsection-label .icon { width: 15px; height: 15px; }
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method-card { min-height: 95px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-2); background: white; cursor: pointer; text-align: left; }
.method-card:hover { border-color: #bfd3ca; }
.method-card.selected { border-color: var(--teal); background: #f1f7f3; }
.method-card .icon { width: 19px; height: 19px; color: var(--teal); }
.method-card strong { font-size: 10px; }
.method-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.summary-card { padding: 21px; border: 1px solid #e8e5d9; border-radius: 19px; background: #f7f4ea; }
.summary-card h2 { margin: 0; font-size: 13px; }
.summary-card .summary-sub { margin: 5px 0 20px; color: var(--muted); font-size: 10px; }
.summary-property { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 13px; background: rgba(255, 255, 255, .62); }
.summary-property .tax-icon { width: 34px; height: 34px; }
.summary-property strong { display: block; font-size: 10px; }
.summary-property small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.summary-lines { display: grid; gap: 13px; margin: 19px 0; }
.summary-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #78837d; font-size: 10px; }
.summary-line strong { color: var(--ink); font-size: 10px; }
.summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px dashed #dcd7ca; font-size: 11px; font-weight: 800; }
.summary-total strong { font-size: 19px; letter-spacing: -.03em; }
.secure-note { display: flex; align-items: center; gap: 8px; margin: 15px 0 16px; color: #75827b; font-size: 9px; line-height: 1.5; }
.secure-note .icon { width: 15px; height: 15px; color: var(--teal); }
.disclaimer { margin: 11px 0 0; color: #909991; font-size: 9px; line-height: 1.55; text-align: center; }

/* Receipt */
.receipt-wrap { max-width: 680px; margin: 12px auto 0; }
.success-banner { text-align: center; margin-bottom: 22px; }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid #d6e8dc; border-radius: 50%; color: #39785e; background: #e9f4ed; }
.success-mark .icon { width: 28px; height: 28px; }
.success-banner h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; letter-spacing: -.04em; }
.success-banner p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.receipt-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.receipt-brand { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px dashed #e2e2d9; }
.receipt-brand .brand-seal { width: 38px; height: 38px; border-radius: 12px; }
.receipt-brand strong { display: block; font-size: 11px; }
.receipt-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.receipt-amount { padding: 24px 22px; text-align: center; }
.receipt-amount small { color: var(--muted); font-size: 10px; }
.receipt-amount strong { display: block; margin-top: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 35px; font-weight: 400; letter-spacing: -.04em; }
.receipt-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 22px 20px; }
.receipt-detail { padding: 12px 0; border-top: 1px solid #efeee8; }
.receipt-detail:nth-child(odd) { margin-right: 12px; }
.receipt-detail small { display: block; color: #97a09a; font-size: 9px; }
.receipt-detail strong { display: block; margin-top: 5px; font-size: 10px; }
.receipt-actions { display: flex; justify-content: center; gap: 10px; padding: 15px 20px 20px; }
.receipt-footnote { margin: 12px 0; color: #919b95; font-size: 9px; line-height: 1.6; text-align: center; }

/* Profile and history */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(275px, .9fr); gap: 18px; align-items: start; }
.profile-hero { display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.profile-hero .avatar { width: 60px; height: 60px; font-size: 14px; }
.profile-hero h2 { margin: 0; font-size: 15px; }
.profile-hero p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.profile-verified { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: #4d8066; font-size: 9px; font-weight: 700; }
.profile-verified .icon { width: 13px; height: 13px; }
.profile-card { margin-top: 14px; padding: 18px 20px 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.profile-card h3 { margin: 0 0 7px; font-size: 12px; }
.setting-row { min-height: 58px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #efeee8; }
.setting-row:first-of-type { border-top: 0; }
.setting-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; color: #648176; background: #f0f4ee; }
.setting-icon .icon { width: 16px; height: 16px; }
.setting-copy { min-width: 0; flex: 1; }
.setting-copy strong { display: block; font-size: 10px; }
.setting-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.setting-action { display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; border: 0; color: #718079; background: transparent; cursor: pointer; font-size: 10px; }
.setting-action .icon { width: 14px; height: 14px; }
.toggle { width: 37px; height: 21px; position: relative; padding: 0; border: 0; border-radius: 20px; background: #d4d9d3; cursor: pointer; transition: background .18s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.16); transition: transform .18s; }
.toggle.on { background: var(--teal); }
.toggle.on::after { transform: translateX(16px); }
.property-card { padding: 20px; border: 1px solid #e9e4d8; border-radius: 18px; background: #f6f3e9; }
.property-card .eyebrow { color: #98764e; }
.property-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; }
.property-card p { margin: 7px 0 16px; color: var(--muted); font-size: 10px; }
.property-data { display: grid; gap: 11px; padding-top: 14px; border-top: 1px solid #e6e0d1; }
.property-data div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; }
.property-data span { color: #839088; }
.property-data strong { color: var(--ink-2); font-size: 9px; }
.history-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.history-table-head, .history-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr; align-items: center; gap: 12px; padding: 14px 18px; }
.history-table-head { color: #89958e; background: #faf9f5; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.history-row { min-height: 63px; border-top: 1px solid #f0efe9; font-size: 10px; }
.history-row strong { font-size: 10px; }
.history-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.history-status { color: #488264; font-size: 9px; font-weight: 750; }

/* Jurisdiction comparison */
.comparison-principle { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 23px 25px; border: 1px solid #e7e3d6; border-radius: 20px; background: #f4f1e7; }
.comparison-principle .eyebrow { margin-bottom: 8px; color: #98764e; }
.comparison-principle h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; letter-spacing: -.035em; }
.comparison-principle p:not(.eyebrow) { max-width: 780px; margin: 9px 0 0; color: #65736c; font-size: 11px; line-height: 1.65; }
.comparison-mark { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 15px; color: #8b6b43; background: #e8dec7; }
.comparison-mark .icon { width: 24px; height: 24px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.comparison-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 3px 12px rgba(25, 57, 52, .025); }
.comparison-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 20px 15px; border-bottom: 1px solid #f0efe9; }
.comparison-card-head > .icon { width: 19px; height: 19px; color: #92a69c; }
.comparison-tag { display: inline-flex; padding: 4px 8px; border-radius: 16px; color: #65786f; background: #eef3ed; font-size: 8px; font-weight: 750; }
.comparison-card-head h2 { margin: 9px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; letter-spacing: -.035em; }
.comparison-card-head p { margin: 0; color: var(--muted); font-size: 9px; }
.comparison-copy { display: grid; gap: 0; padding: 0 20px; }
.comparison-copy section { padding: 14px 0; border-bottom: 1px solid #f0efe9; }
.comparison-copy h3 { margin: 0 0 6px; color: #47635b; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.comparison-copy p { margin: 0; color: #65736c; font-size: 10px; line-height: 1.65; }
.comparison-copy .comparison-caveat { border-bottom: 0; }
.comparison-copy .comparison-caveat h3 { color: #8b6842; }
.comparison-sources { padding: 0 20px 17px; }
.comparison-sources summary { width: fit-content; color: var(--teal); cursor: pointer; font-size: 10px; font-weight: 800; }
.comparison-sources ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.comparison-sources a { display: inline-flex; align-items: flex-start; gap: 5px; color: #55766e; font-size: 9px; line-height: 1.5; text-decoration: underline; text-decoration-color: #c8d7d0; text-underline-offset: 2px; }
.comparison-sources a:hover { color: var(--teal-dark); }
.comparison-sources a .icon { width: 12px; height: 12px; }
.comparison-footnote { margin: 15px 0 0; color: #7a8780; font-size: 9px; line-height: 1.65; }

/* Mobile navigation and toasts */
.mobile-nav { display: none; }
.mobile-brand { display: none; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; max-width: min(90vw, 450px); padding: 12px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: white; background: #183d3b; box-shadow: 0 14px 32px rgba(15, 42, 39, .22); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; font-size: 11px; line-height: 1.45; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .home-grid { grid-template-columns: minmax(0, 1.3fr) minmax(245px, .8fr); }
  .content { padding-right: 32px; padding-left: 32px; }
}
@media (max-width: 820px) {
  .signin-page { grid-template-columns: 1fr; }
  .signin-aside { min-height: 280px; padding: 25px 25px 28px; }
  .signin-message { margin: 43px 0 10px; }
  .signin-message h1 { max-width: 530px; font-size: clamp(36px, 7vw, 54px); }
  .signin-message p:not(.eyebrow) { margin-top: 12px; }
  .aside-note { display: none; }
  .signin-main { padding: 38px 24px 48px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { height: 63px; padding: 0 23px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; }
  .mobile-brand .brand-seal { width: 33px; height: 33px; border-radius: 11px; }
  .mobile-brand .brand-seal svg { width: 20px; height: 20px; }
  .mobile-brand strong { display: block; font-size: 10px; }
  .mobile-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
  .topbar-kicker, .topbar-separator, .topbar-title, .topbar-avatar span { display: none; }
  .topbar-right { gap: 7px; }
  .topbar-avatar { padding-left: 7px; }
  .content { padding: 29px 22px 105px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .page-heading-actions { width: 100%; }
  .home-grid { grid-template-columns: 1fr; }
  .balance-card { min-height: 230px; }
  .welcome-card { min-height: 190px; }
  .home-lower { grid-template-columns: 1fr; }
  .deadline-card { min-height: 180px; }
  .payment-layout, .profile-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-principle { padding: 19px; }
  .comparison-principle h2 { font-size: 21px; }
  .summary-card { order: -1; }
  .mobile-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 9px 13px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 254, 250, .96); backdrop-filter: blur(14px); }
  .mobile-nav button { min-height: 51px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 12px; color: #87938c; background: transparent; cursor: pointer; font-size: 8px; font-weight: 700; }
  .mobile-nav button.active { color: var(--teal); background: #edf4ef; }
  .mobile-nav .icon { width: 18px; height: 18px; }
}
@media (max-width: 560px) {
  .signin-aside { min-height: 255px; }
  .signin-message h1 { font-size: 36px; }
  .signin-message p:not(.eyebrow) { font-size: 13px; }
  .signin-card h2 { font-size: 24px; }
  .content { padding: 24px 16px 100px; }
  .topbar { padding: 0 16px; }
  .topbar-right .help-top { display: none; }
  .page-heading h1 { font-size: 32px; }
  .page-subtitle { font-size: 11px; }
  .balance-card { min-height: 220px; padding: 22px; }
  .balance-date { max-width: 98px; text-align: right; line-height: 1.5; }
  .tax-grid { grid-template-columns: 1fr; }
  .tax-card { min-height: 126px; }
  .section-head { margin-top: 26px; }
  .payment-main-card, .summary-card { padding: 17px; }
  .step { gap: 6px; font-size: 8px; }
  .step-number { width: 24px; height: 24px; font-size: 9px; }
  .step-line { margin: 0 6px; }
  .payment-methods { grid-template-columns: 1fr; }
  .method-card { min-height: 60px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px; }
  .method-card .method-title { flex: 1; }
  .receipt-details { padding: 0 17px 17px; }
  .receipt-brand, .receipt-amount { padding-right: 17px; padding-left: 17px; }
  .receipt-actions { flex-direction: column; }
  .receipt-actions .button { width: 100%; }
  .history-table-head, .history-row { grid-template-columns: 1.15fr .9fr .75fr; padding: 12px; gap: 7px; }
  .history-table-head span:nth-child(2), .history-row .history-method { display: none; }
  .history-table-head { font-size: 8px; }
  .history-row { font-size: 9px; }
  .history-row strong { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
