:root {
  color-scheme: light;
  --green: #174b37;
  --green-deep: #103c2d;
  --green-soft: #e6f1e9;
  --ink: #17231e;
  --muted: #68756f;
  --line: #e6ebe7;
  --surface: #fff;
  --canvas: #f5f7f4;
  --radius: 20px;
  --shadow: 0 14px 34px rgba(24, 54, 39, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); border-radius: 8px; color: #fff; background: var(--green); }
.skip-link:focus { transform: translateY(0); }

.app-frame { position: relative; min-height: 100dvh; max-width: 760px; margin: 0 auto; padding: 0 22px 104px; background: var(--canvas); }
.app-header { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; gap: 14px; height: 74px; margin: 0 -22px; padding: 0 22px; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(223,230,224,.8); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { flex: 0 0 auto; object-fit: contain; border-radius: 12px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-back, .header-action { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--green); background: #fff; font-size: 23px; cursor: pointer; }
.header-back[hidden] { display: none; }
.header-action { margin-left: auto; font-size: 20px; }
.connection-banner { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; padding: 11px 14px; border: 1px solid #f0d8a5; border-radius: 14px; color: #704e13; background: #fff8e9; font-size: 12px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #d99c26; }
.app-content { min-height: calc(100dvh - 178px); padding-top: 22px; outline: none; transition: opacity .18s ease, transform .18s ease; }
.app-content.is-transitioning { opacity: 0; transform: translateY(5px); }
.bottom-nav { position: fixed; z-index: 8; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 0; padding: 9px 12px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(20px); }
.bottom-nav a { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; max-width: 130px; min-height: 55px; border-radius: 16px; color: #78847e; text-decoration: none; transition: background .16s ease, color .16s ease; }
.bottom-nav a > span { display: grid; place-items: center; width: 29px; height: 26px; font-size: 24px; line-height: 1; }
.bottom-nav small { font-size: 10px; font-weight: 650; }
.bottom-nav a.active { color: var(--green); background: var(--green-soft); }
.toast-region { position: fixed; z-index: 20; right: max(16px, calc((100vw - 700px) / 2)); bottom: calc(82px + env(safe-area-inset-bottom)); left: max(16px, calc((100vw - 700px) / 2)); display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 560px; margin: 0 auto; padding: 12px 16px; border-radius: 14px; color: #fff; background: #23332b; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease; }
.toast-success { background: var(--green); }
.toast-error { background: #9d352e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.home-hero { position: relative; display: flex; align-items: center; min-height: 312px; overflow: hidden; padding: 34px 28px; border-radius: 28px; color: #fff; background: linear-gradient(126deg, #164b36, #246b49 72%, #39805a); box-shadow: 0 18px 42px rgba(23,75,55,.16); }
.home-hero::before, .home-hero::after { position: absolute; width: 270px; height: 270px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.home-hero::before { top: -160px; right: -42px; }
.home-hero::after { right: -138px; bottom: -204px; width: 380px; height: 380px; }
.hero-copy { position: relative; z-index: 1; max-width: 440px; }
.eyebrow { margin: 0 0 9px; color: #74847b; font-size: 10px; font-weight: 800; letter-spacing: .13em; line-height: 1.4; }
.hero-eyebrow { color: rgba(255,255,255,.72); }
.home-hero h1 { margin: 0; font-size: clamp(32px, 7vw, 47px); font-weight: 750; letter-spacing: -.055em; line-height: 1.05; }
.home-hero h1 em { color: #c7e5cf; font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 355px; margin: 13px 0 20px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; }
.hero-emblem { position: absolute; right: 18px; bottom: 22px; display: grid; place-items: center; width: 138px; height: 138px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: rgba(255,255,255,.16); font-size: 45px; font-weight: 800; letter-spacing: -.08em; }
.hero-emblem::before, .hero-emblem::after { position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: inherit; content: ""; }
.hero-emblem::after { inset: 22px; }
.hero-emblem i { position: absolute; top: -9px; width: 3px; height: 11px; border-radius: 2px; background: rgba(255,255,255,.6); }
.hero-emblem i:last-child { top: auto; right: 0; bottom: 34px; transform: rotate(90deg); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(23,75,55,.13); }
.button-primary:hover { background: var(--green-deep); }
.button-light { min-height: 43px; color: var(--green); background: #fff; }
.button-secondary { min-height: 40px; padding: 0 14px; color: var(--green); background: var(--green-soft); white-space: nowrap; }
.button-quiet { color: var(--green); background: transparent; }
.button-outline { border: 1px solid #d7e2d9; color: var(--green); background: #fff; }
.section-block { margin-top: 34px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-title .eyebrow { margin-bottom: 4px; }
.section-title h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.text-button { padding: 6px 0; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.text-button span { padding-left: 4px; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.action-card { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr) 18px; align-items: center; gap: 11px; min-height: 96px; padding: 14px 12px; border: 1px solid transparent; border-radius: 19px; text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.action-card:hover, .service-detail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.action-mint { background: #e8f3eb; }
.action-blue { background: #e8f0f8; }
.action-peach { background: #fbefe7; }
.action-lavender { background: #eeebf7; }
.action-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: var(--green); background: rgba(255,255,255,.72); }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.icon-small { width: 17px; height: 17px; }
.action-text strong, .action-text small { display: block; }
.action-text strong { font-size: 12px; line-height: 1.3; }
.action-text small { margin-top: 5px; color: #697870; font-size: 10px; line-height: 1.35; }
.action-arrow { align-self: start; color: #718179; font-size: 17px; }
.service-preview, .service-list { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.service-item { display: grid; grid-template-columns: 35px 1fr 15px; align-items: center; gap: 12px; width: 100%; padding: 15px; border: 0; border-bottom: 1px solid #edf0ed; text-align: left; background: transparent; cursor: pointer; }
.service-item:last-child { border-bottom: 0; }
.service-number { color: #70887a; font-size: 11px; font-weight: 800; }
.service-text strong, .service-text small { display: block; }
.service-text strong { font-size: 13px; }
.service-text small { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.service-chevron { color: #7e8a83; font-size: 22px; }
.help-banner { display: flex; align-items: center; gap: 13px; width: 100%; padding: 16px; border: 0; border-radius: 18px; text-align: left; color: #fff; background: #263c30; cursor: pointer; }
.help-banner > .icon { width: 38px; height: 38px; padding: 8px; border-radius: 13px; color: #d3e9d9; background: rgba(255,255,255,.1); }
.help-banner > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.help-banner strong { font-size: 13px; }
.help-banner small { color: #c3d1c8; font-size: 11px; }
.round-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--green); background: #e3f0e6; }
.secondary-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.secondary-action { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 13px 12px; border: 1px solid var(--line); border-radius: 15px; text-align: left; background: #fff; cursor: pointer; }
.secondary-action .icon { width: 18px; height: 18px; color: var(--green); }
.secondary-action span { flex: 1; font-size: 11px; font-weight: 650; }
.secondary-action b { color: var(--green); }
.notice-strip { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 18px; border: 1px solid #e3ebe4; border-radius: 18px; background: #edf4ee; }
.notice-strip h2 { margin: 0; font-size: 15px; }
.notice-strip p:not(.eyebrow) { display: -webkit-box; overflow: hidden; margin: 6px 0 0; color: #5f6f65; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notice-strip .text-button { flex: 0 0 auto; }
.home-footer { padding: 28px 0 8px; color: #86928b; text-align: center; font-size: 10px; }

.page-heading { margin: 10px 0 24px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { margin: 0; font-size: clamp(28px, 6vw, 36px); letter-spacing: -.055em; line-height: 1.12; }
.page-heading > p:last-child:not(.eyebrow) { max-width: 540px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.search-box { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.search-box > span { color: var(--green); font-size: 22px; }
.search-box input { width: 100%; height: 48px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.service-list { display: grid; gap: 0; }
.service-detail-card { display: grid; grid-template-columns: 43px minmax(0,1fr) 20px; align-items: start; gap: 13px; width: 100%; padding: 16px; border: 0; border-bottom: 1px solid #edf0ed; text-align: left; background: #fff; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.service-detail-card:last-child { border-bottom: 0; }
.service-detail-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--green); background: #edf4ee; }
.service-detail-copy strong, .service-detail-copy small, .service-meta { display: block; }
.service-detail-copy strong { font-size: 13px; }
.service-detail-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.service-meta { margin-top: 8px; color: #52765e; font-size: 10px; font-weight: 700; }
.info-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px; border-radius: 18px; background: #e9f1ec; }
.info-card > .icon { color: var(--green); }
.info-card > span { display: grid; gap: 4px; flex: 1; }
.info-card strong { font-size: 12px; }
.info-card small { color: #607169; font-size: 10px; line-height: 1.4; }

.app-form { display: grid; gap: 17px; }
.form-section { display: grid; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.form-section-title { display: flex; gap: 12px; align-items: start; padding-bottom: 3px; }
.form-section-title > span { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--green); background: #e9f1ec; font-size: 10px; font-weight: 800; }
.form-section-title h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.form-section-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.field { display: grid; gap: 7px; color: #36443c; font-size: 11px; font-weight: 700; }
.field > span b, .rating-field legend b { color: #b4493e; }
.field input, .field select, .field textarea { width: 100%; min-height: 47px; padding: 12px 13px; border: 1px solid #dfe6e1; border-radius: 12px; outline: 0; color: var(--ink); background: #fff; font-size: 13px; font-weight: 450; transition: border .15s ease, box-shadow .15s ease; }
.field input[type="file"] { padding: 10px; font-size: 11px; }
.field textarea { min-height: 94px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6f9d7d; box-shadow: 0 0 0 3px rgba(69,132,89,.1); }
.field input::placeholder, .field textarea::placeholder { color: #9ba69f; }
.field > small { color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.4; }
.optional-label { margin-left: 4px; color: var(--muted); font-weight: 450; }
.location-resident { display: grid; gap: 15px; }
.location-nonresident { display: grid; }
.form-notice { margin: 0; padding: 13px 14px; border-left: 3px solid #8eb69a; border-radius: 0 12px 12px 0; color: #586960; background: #edf4ef; font-size: 11px; line-height: 1.5; }
.submit-button { width: 100%; min-height: 52px; justify-content: space-between; padding: 0 19px; }
.submit-button span { font-size: 17px; }
.rating-field { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.rating-field legend { margin-bottom: 3px; color: #36443c; font-size: 11px; font-weight: 700; }
.rating-options { display: flex; gap: 9px; }
.rating-options label { cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; }
.rating-options span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; color: #7a867f; background: #fff; font-weight: 700; }
.rating-options input:checked + span { border-color: var(--green); color: #fff; background: var(--green); }
.rating-options input:focus-visible + span { outline: 3px solid #a5c8ad; outline-offset: 2px; }
.rating-field > small { color: var(--muted); font-size: 10px; }

.success-card { display: grid; justify-items: center; padding: 28px 20px; border: 1px solid #dce8dd; border-radius: 24px; text-align: center; background: #fff; }
.success-check { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 0 18px; border-radius: 20px; color: var(--green); background: #e7f2e9; }
.success-check .icon { width: 30px; height: 30px; }
.success-card .eyebrow { margin-bottom: 7px; }
.success-card h2 { max-width: 470px; margin: 0; font-size: 20px; letter-spacing: -.035em; line-height: 1.3; }
.success-card > p:not(.eyebrow) { max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reference-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; width: 100%; margin: 15px 0; padding: 14px; border: 1px dashed #bbd2c0; border-radius: 14px; text-align: left; background: #f4f8f4; }
.reference-copy span { flex-basis: 100%; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.reference-copy strong { color: var(--green); font-size: 17px; letter-spacing: .02em; overflow-wrap: anywhere; }
.reference-copy button { padding: 7px 10px; border: 0; border-radius: 9px; color: var(--green); background: #e4eee6; font-size: 11px; font-weight: 700; cursor: pointer; }
.success-card .button { width: 100%; max-width: 340px; margin-top: 5px; }

.results-heading { margin: 24px 0 13px; }
.results-heading h2 { margin: 0; font-size: 18px; }
.record-card { margin-bottom: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.record-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.record-reference { color: #597463; font-size: 10px; font-weight: 800; letter-spacing: .05em; overflow-wrap: anywhere; }
.status-badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 8px; color: #315d40; background: #e8f3eb; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-open, .status-requested { color: #8a5b16; background: #fff2d9; }
.status-in-progress, .status-rescheduled { color: #315779; background: #e7f0fa; }
.status-resolved, .status-completed { color: #315d40; background: #e8f3eb; }
.status-closed, .status-cancelled, .status-no-show { color: #6a6c70; background: #edeef0; }
.record-card h3 { margin: 14px 0 6px; font-size: 16px; letter-spacing: -.02em; }
.record-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.record-card .record-description { margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0ed; }
.timeline { display: grid; gap: 0; margin: 18px 0 0 4px; padding-left: 14px; border-left: 1px solid #dce5de; }
.timeline-item { position: relative; padding: 0 0 17px 8px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: 2px; left: -19px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #9aa99e; box-shadow: 0 0 0 1px #b7c6ba; }
.timeline-item.is-current .timeline-dot { background: var(--green); box-shadow: 0 0 0 1px #73a580; }
.timeline-item strong, .timeline-item small, .timeline-item time { display: block; }
.timeline-item strong { font-size: 11px; }
.timeline-item small, .timeline-item time { margin-top: 3px; color: var(--muted); font-size: 10px; }
.appointment-schedule { display: flex; gap: 11px; margin-top: 14px; padding: 12px; border-radius: 13px; color: var(--green); background: #edf4ee; }
.appointment-schedule > span { display: grid; gap: 4px; }
.appointment-schedule strong { font-size: 11px; }
.appointment-schedule small { color: #66756b; font-size: 10px; }
.empty-state { display: grid; justify-items: center; padding: 34px 20px; border: 1px dashed #d8e2db; border-radius: 19px; text-align: center; background: #fff; }
.empty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 16px; color: var(--green); background: #e9f2ec; }
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state h2 { margin: 0; font-size: 16px; }
.empty-state p { max-width: 350px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.notice-list { display: grid; gap: 12px; }
.notice-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.notice-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notice-type { display: inline-flex; align-items: center; gap: 7px; color: #60736a; font-size: 10px; font-weight: 750; }
.notice-type .icon { width: 16px; height: 16px; color: var(--green); }
.notice-card h2 { margin: 15px 0 7px; font-size: 16px; }
.notice-card p { margin: 0; color: #647168; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.notice-card > small { display: block; margin-top: 14px; color: #87928b; font-size: 10px; }

.chat-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.chat-session-top { display: flex; align-items: center; gap: 11px; padding: 14px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 14px; color: var(--green); background: #e8f2eb; }
.chat-session-top > div { display: grid; gap: 4px; flex: 1; }
.chat-session-top strong { font-size: 12px; }
.chat-session-top small { color: #728078; font-size: 10px; }
.chat-session-top small i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #59a66c; }
.chat-reset { border: 0; color: var(--green); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.chat-messages { display: flex; flex-direction: column; gap: 9px; max-height: 46dvh; min-height: 230px; overflow-y: auto; padding: 15px; background: #fafcf9; }
.chat-message { max-width: 84%; padding: 11px 13px; border-radius: 15px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-assistant { align-self: flex-start; border: 1px solid #e9eeea; border-bottom-left-radius: 5px; background: #fff; }
.chat-user { align-self: flex-end; border-bottom-right-radius: 5px; color: #fff; background: var(--green); }
.chat-choices { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px 0; }
.chat-choices button { padding: 8px 11px; border: 1px solid #d5e4d9; border-radius: 999px; color: var(--green); background: #f4f8f5; font-size: 10px; cursor: pointer; }
.chat-compose { display: flex; align-items: end; gap: 9px; margin: 12px; padding: 7px 7px 7px 13px; border: 1px solid #dfe7e1; border-radius: 16px; background: #fff; }
.chat-compose textarea { flex: 1; min-height: 35px; max-height: 120px; padding: 8px 0; border: 0; outline: 0; resize: none; font-size: 12px; line-height: 1.45; }
.chat-compose button { display: grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; border: 0; border-radius: 12px; color: #fff; background: var(--green); font-size: 21px; cursor: pointer; }
.chat-compose button:disabled { opacity: .6; }
.chat-note { margin: -4px 14px 13px; color: #8a948e; font-size: 9px; }

.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 14px; padding: 4px; border-radius: 14px; background: #e9eeea; }
.account-switch button { min-height: 39px; border: 0; border-radius: 10px; color: #68756d; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.account-switch button.active { color: var(--green); background: #fff; box-shadow: 0 2px 8px rgba(32,57,41,.08); }
.rate-request-button { margin-top: 15px; }
.compact-form .form-section { gap: 13px; }
.guest-card { display: flex; align-items: start; gap: 11px; margin-top: 18px; padding: 14px; border: 1px solid #e1e9e3; border-radius: 16px; background: #f1f6f2; }
.guest-card > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--green); background: #fff; }
.guest-card > div { display: grid; gap: 4px; }
.guest-card strong { font-size: 11px; }
.guest-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.account-profile-card { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.profile-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 15px; color: var(--green); background: #e8f1eb; font-size: 17px; font-weight: 800; }
.account-profile-card > div { display: grid; flex: 1; gap: 4px; min-width: 0; }
.account-profile-card strong { font-size: 12px; }
.account-profile-card small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-editor { margin-top: 12px; }
.account-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.account-stat-grid > div { display: grid; gap: 3px; padding: 14px; border-radius: 15px; background: #eaf2ec; }
.account-stat-grid strong { color: var(--green); font-size: 21px; }
.account-stat-grid small { color: #66746c; font-size: 10px; }
.account-section { margin-top: 24px; }
.account-record { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.account-record > div { display: grid; gap: 4px; min-width: 0; }
.account-record strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-record small { color: var(--muted); font-size: 9px; }
.empty-inline { padding: 16px; border-radius: 13px; color: var(--muted); background: #fff; font-size: 11px; }
.signout-button { width: 100%; margin-top: 28px; }

.loading-state { display: grid; justify-items: center; gap: 12px; padding: 70px 20px; color: var(--muted); font-size: 12px; }
.loading-mark { width: 27px; height: 27px; border: 3px solid #dce8de; border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.install-dialog { width: min(410px, calc(100% - 32px)); padding: 25px; border: 0; border-radius: 23px; color: var(--ink); box-shadow: 0 20px 70px rgba(15,35,25,.25); }
.install-dialog::backdrop { background: rgba(14,33,24,.45); backdrop-filter: blur(4px); }
.install-dialog form { position: relative; display: grid; justify-items: start; }
.dialog-close { position: absolute; top: -7px; right: -5px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #617168; background: #edf2ee; font-size: 20px; cursor: pointer; }
.dialog-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--green); background: #e6f0e8; font-size: 22px; }
.install-dialog h2 { margin: 18px 0 7px; font-size: 20px; letter-spacing: -.035em; }
.install-dialog p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dialog-done { width: 100%; }

@media (min-width: 761px) {
  body { background: #e8ede9; }
  .app-frame { min-height: 100dvh; background: #f8faf8; box-shadow: 0 0 60px rgba(34,55,41,.08); }
  .app-header { margin: 0 -22px; }
  .bottom-nav { left: 50%; width: min(760px, 100%); transform: translateX(-50%); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .app-frame { padding-right: 16px; padding-left: 16px; }
  .app-header { height: 66px; margin-right: -16px; margin-left: -16px; padding: 0 16px; }
  .app-content { padding-top: 17px; }
  .home-hero { min-height: 298px; padding: 26px 21px; border-radius: 23px; }
  .hero-emblem { right: -26px; bottom: -24px; width: 126px; height: 126px; opacity: .65; }
  .hero-copy { max-width: 92%; }
  .hero-copy > p:not(.eyebrow) { max-width: 300px; font-size: 12px; }
  .home-hero h1 { font-size: 36px; }
  .section-block { margin-top: 28px; }
  .action-grid { gap: 8px; }
  .action-card { grid-template-columns: 38px minmax(0,1fr) 12px; gap: 8px; min-height: 89px; padding: 10px 8px; border-radius: 16px; }
  .action-icon { width: 37px; height: 37px; border-radius: 12px; }
  .action-text strong { font-size: 11px; }
  .action-text small { font-size: 9px; }
  .action-arrow { font-size: 14px; }
  .section-title h2 { font-size: 18px; }
  .service-item { grid-template-columns: 28px 1fr 12px; gap: 9px; padding: 13px 12px; }
  .notice-strip { display: block; }
  .notice-strip .text-button { margin-top: 9px; }
  .form-section { padding: 15px; border-radius: 17px; }
  .info-card { flex-wrap: wrap; }
  .info-card > span { flex-basis: calc(100% - 40px); }
  .info-card .button { width: 100%; }
  .record-card { padding: 14px; }
  .record-card h3 { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
