/* Homeowner experience. Scoped to the app; public pages retain their own styles. */
body[data-page="app"] { --ink: #202c2c; --muted: #576666; --brand: #276653; --brand-deep: #214f43; --brand-soft: #e7eee9; --line: #dbe2dd; }
.home-backdrop { display: none; }
body.signed-in { font-family: Manrope, system-ui, sans-serif; font-size: 18px; line-height: 1.55; background: #384b45; isolation: isolate; }
body.signed-in .home-backdrop { display: block; position: fixed; inset: -12px; z-index: -2; background: radial-gradient(ellipse at 75% 20%, #8a9b83, transparent 55%), linear-gradient(140deg, #334d46, #697769 60%, #303f3b); background-size: cover; background-position: center; filter: blur(4px) saturate(.65); pointer-events: none; }
body.signed-in::before { content: ''; position: fixed; inset: 0; background: linear-gradient(90deg, rgba(17,31,28,.58), rgba(21,36,31,.28)), linear-gradient(0deg, rgba(17,28,26,.4), transparent); z-index: -1; pointer-events: none; }
body.signed-in .onboarding-topbar { background: rgba(25,43,38,.55); border-bottom: 1px solid #ffffff18; backdrop-filter: blur(24px); min-height: 76px; padding: 16px 28px; }
body.signed-in .onboarding-brand-link span { color: #fff; font-size: 20px; letter-spacing: -.6px; }
body.signed-in .onboarding-brand-link img { border-radius: 10px; }
body.signed-in .shell { max-width: none; padding: 0; }
body.signed-in .authenticated-workspace { grid-template-columns: 230px minmax(0,1fr); height: calc(100dvh - 76px); }
body.signed-in .homeowner-tools-card { background: rgba(25,43,38,.42); border: 0; border-right: 1px solid #ffffff18; border-radius: 0; padding: 32px 16px; backdrop-filter: blur(24px); overflow-y: auto; }
body.signed-in .homeowner-selection-menu { gap: 10px; }
body.signed-in .homeowner-tool-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border-radius: 18px; color: #fff; }
body.signed-in .homeowner-tool-row strong { color: inherit; font-size: 17px; font-weight: 700; }
body.signed-in .homeowner-tool-row small { display: none; }
body.signed-in .homeowner-tool-row.active { background: #ffffffec; color: #214f43; box-shadow: 0 8px 24px #14282218; }
body.signed-in .homeowner-tool-row:hover:not(.active) { background: #ffffff18; }
.home-nav-icon { display: inline-flex; flex: 0 0 23px; }
.home-nav-icon svg { width: 23px; height: 23px; }
body.signed-in #workspaceSections { padding: 0; scrollbar-color: #ffffff55 transparent; }
body.signed-in .app-view { align-content: start; }
body.signed-in .home-overview-layout, body.signed-in .pictures-layout, body.signed-in .contractor-layout, body.signed-in .history-layout, body.signed-in .settings-layout { padding: clamp(24px, 3vw, 48px); max-width: 1440px; margin: 0 auto; min-height: 0; gap: 24px; }
body.signed-in .card { background: #f8faf7f5; border: 1px solid #ffffff70; border-radius: 26px; box-shadow: 0 12px 36px #152d2510; padding: 28px; animation: none; }
body.signed-in .card.homeowner-tools-card { background: rgba(25,43,38,.42); border: 0; border-right: 1px solid #ffffff18; border-radius: 0; padding: 32px 16px; box-shadow: none; backdrop-filter: blur(24px); }
body.signed-in :is(h1,h2,h3,h4) { font-family: Manrope, system-ui, sans-serif; }
body.signed-in .history-grid { width: 100%; padding: clamp(24px,3vw,48px); max-width: 1440px; margin: 0 auto; gap: 24px; }
body.signed-in .home-health-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.home-page-kicker { color: #e1e9e2; font-size: 12px; font-weight: 800; letter-spacing: .15em; margin-bottom: 12px; }
body.signed-in .dashboard-welcome-head { align-items: center; gap: 20px; margin-bottom: 12px; }
body.signed-in .dashboard-welcome-title { font-size: clamp(30px, 3.2vw, 46px); color: #fff; line-height: 1.15; letter-spacing: -1.5px; font-weight: 700; margin: 0; }
body.signed-in .dashboard-welcome-address { color: #edf2ed; font-size: 16px; margin-top: 10px; }
.home-status-summary { color: #fff; margin: 20px 0 30px; max-width: 760px; }
.home-status-summary h3 { margin: 0; color: #fff; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -1.2px; }
.home-status-summary > p { margin: 10px 0 0; color: #edf3ee; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; }
.home-status-summary details { width: fit-content; margin-top: 14px; color: #e4ece6; font-size: 14px; }
.home-status-summary summary { cursor: pointer; font-weight: 700; }
.home-status-summary [data-home-summary-details] { max-width: 660px; margin-top: 10px; padding: 14px 16px; border: 1px solid #ffffff35; border-radius: 14px; background: #17312985; line-height: 1.55; }
.home-background-button { display: inline-flex; align-items: center; gap: 9px; color: #fff; background: #ffffff18; border: 1px solid #ffffff40; border-radius: 30px; padding: 12px 16px; font: inherit; font-size: 14px; cursor: pointer; min-height: 46px; }
.home-background-button svg { width: 18px; height: 18px; }
body.signed-in .dashboard-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 0; background: transparent; overflow: visible; gap: 18px; margin-top: 0; }
body.signed-in .dashboard-cards:has(.metric.component:nth-child(4)) { grid-template-columns: repeat(4,minmax(0,1fr)); }
body.signed-in .metric { border: 1px solid #ffffff80; border-radius: 25px; padding: 24px; background: #fafcf8f5; min-height: 240px; box-shadow: 0 8px 26px #142b2110; position: relative; }
body.signed-in .metric.component { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-height: 270px; cursor: pointer; transition: transform .18s, box-shadow .18s; }
body.signed-in .metric.component::after { content: '↗'; position: absolute; right: 22px; top: 22px; color: #72867a; font-size: 20px; }
body.signed-in .metric-component-title { align-items: center; gap: 12px; padding-right: 28px; }
body.signed-in .metric h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.6px; }
body.signed-in .metric .component-icon { background: #e8eee2; color: #456b51; border: 0; border-radius: 15px; width: 48px; height: 48px; }
body.signed-in .metric .component-icon svg { width: 29px; height: 29px; }
body.signed-in .metric-life-stage { display: grid; gap: 5px; margin-top: 4px; }
body.signed-in .metric-life-stage > span { color: #6b7d71; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.signed-in .metric-life-stage > strong { color: #233c31; font-size: clamp(24px, 2vw, 31px); line-height: 1.15; letter-spacing: -.8px; }
body.signed-in .metric .metric-status-row { margin-top: auto; }
body.signed-in .metric .label { font-size: 17px; font-weight: 700; }
body.signed-in .metric.component .meta, body.signed-in .metric.component .bar { display: none; }
.metric-evidence { display: flex; align-items: center; gap: 8px; color: #617166; font-size: 14px; font-weight: 700; }
.metric-evidence > span { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; background: transparent; }
.metric-evidence-supported { color: #2f6f42; }
.metric-evidence-estimated { color: #755f2f; }
.metric-evidence-limited { color: #6b716c; }
body.signed-in .metric.component > .metric-score-badge, body.signed-in .metric.component > .metric-weather-badge { position: absolute; right: 20px; bottom: 20px; }
body.signed-in .metric.overall { grid-column: 1 / -1; display: block; min-height: 0; padding: 0 0 12px; background: transparent; border: 0; box-shadow: none; }
body.signed-in .metric.overall .metric-overall-head { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
body.signed-in .metric.overall .metric-overall-copy { width: auto; }
body.signed-in .metric.overall h3 { font-size: 14px; color: #eef4ed; font-weight: 600; }
body.signed-in .metric.overall .meta { font-size: 13px; color: #e0e8df; }
body.signed-in .metric.overall .score { font-size: 26px; color: #fff; }
body.signed-in .metric.overall .metric-overall-weather, body.signed-in .metric.overall .bar { display: none; }
body.signed-in .metric-clickable:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 16px 30px #132d2528; }
body.signed-in :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline: 3px solid #f0ba64; outline-offset: 4px; }
.home-support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.home-support-tile { display: flex; align-items: center; gap: 16px; padding: 22px; min-height: 100px; background: #f8faf3e8; border: 1px solid #ffffff80; border-radius: 24px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.home-support-tile > svg { width: 30px; height: 30px; flex-shrink: 0; color: #55785e; }
.home-support-tile > span:nth-child(2) { flex: 1; }
.home-support-tile strong { display: block; font-size: 18px; }
.home-support-tile small { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.home-support-tile:hover { background: #fff; }
#viewHome #connectedHomePanel, #viewHome #componentDetailPanel { display: none; }
.home-attention { margin-top: 30px; }
.home-attention[hidden] { display: none; }
.home-attention h2 { color: #fff; font-size: 22px; margin: 0 0 14px; }
.home-attention-items { display: grid; gap: 12px; }
.home-attention button { display: flex; align-items: center; gap: 15px; width: 100%; padding: 18px 22px; border: 1px solid #ffffff50; border-radius: 20px; background: #fcf4e5f5; text-align: left; font: inherit; color: #594527; cursor: pointer; }
.home-attention button > span:nth-child(2) { flex: 1; }
.home-attention small { display: block; font-size: 15px; }
.home-attention-dot { height: 10px; width: 10px; border-radius: 50%; background: #b88031; }
/* Shared surfaces across Pictures, History, Contractors, and Settings. */
body.signed-in .section-head h2, body.signed-in .settings-card h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.8px; }
body.signed-in .dashboard-welcome-head h2 { font-size: clamp(30px,3.2vw,46px); color: #fff; line-height: 1.15; letter-spacing: -1.5px; }
body.signed-in .dashboard-welcome-title, body.signed-in .dashboard-welcome-address { font-family: Manrope, system-ui, sans-serif; }
body.signed-in .settings-intro-card h2 { font-size: 30px; letter-spacing: -.8px; }
body.signed-in .kv-list { font-size: 16px; }
body.signed-in .hint, body.signed-in .field, body.signed-in .meta, body.signed-in .feed-item .meta { font-size: 16px; line-height: 1.6; }
body.signed-in .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: #52725d; }
body.signed-in .btn { min-height: 46px; padding: 12px 20px; border-radius: 14px; font-size: 16px; background: #286650; box-shadow: none; }
body.signed-in .btn.ghost { color: #285843; background: #ffffffc9; border-color: #d5ded5; }
body.signed-in .pill, body.signed-in .mini-pill { border-radius: 30px; font-size: 14px; padding: 5px 12px; }
body.signed-in input, body.signed-in select, body.signed-in textarea { font: inherit; font-size: 17px; border-radius: 13px; border-color: #cdd8d0; min-height: 48px; }
body.signed-in input[type="checkbox"], body.signed-in input[type="radio"] { min-height: 20px; width: 20px; height: 20px; accent-color: #286650; }
body.signed-in .empty-card { border-radius: 18px; background: #edf2eb; border: 1px dashed #bcccbc; font-size: 16px; padding: 24px; }
body.signed-in .pictures-page-card, body.signed-in .contractor-page-card { min-height: 0; padding: 30px; background: #f8faf7f5; }
body.signed-in .pictures-page-card { grid-template-rows: auto auto auto; }
body.signed-in .pictures-page-card h2 { font-size: 28px; letter-spacing: -.8px; }
body.signed-in .pictures-page-card summary { font-family: Manrope, system-ui, sans-serif; font-size: 17px; padding: 12px 0; }
body.signed-in .pictures-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; }
body.signed-in .pictures-thumb, body.signed-in .pictures-add-tile { border-radius: 20px; overflow: hidden; border: 1px solid #d9e3d7; background: #fff; }
body.signed-in .pictures-thumb-media { border-radius: 18px; aspect-ratio: 4/3; }
body.signed-in .pictures-add-tile-copy strong { font-size: 19px; }
body.signed-in .pictures-add-tile-copy span { font-size: 15px; line-height: 1.5; }
body.signed-in .pictures-upload-grid { grid-template-columns: minmax(0,250px); }
body.signed-in .contractor-directory-section { min-height: 0; border: 0; padding: 0; background: none; }
body.signed-in .contractor-directory-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; }
body.signed-in .contractor-directory-card { min-height: 220px; padding: 22px; border-radius: 22px; border-color: #d5e0d4; background: #fff; }
body.signed-in .contractor-directory-card strong { font-size: 20px; line-height: 1.4; }
body.signed-in .contractor-directory-card span:not(.pill):not(.contractor-add-icon):not(.contractor-card-logo):not(.contractor-card-topline):not(.contractor-card-footer) { font-size: 15px; line-height: 1.5; }
body.signed-in .contractor-add-card { background: #eaf0e5; }
body.signed-in .contractor-add-icon { width: 44px; height: 44px; font-size: 24px; }
body.signed-in .score-impact-card { background: #fff; border: 1px solid #dbe4d8; border-radius: 20px; margin-top: 16px; overflow: hidden; }
body.signed-in .score-impact-summary { padding: 24px; gap: 18px; }
body.signed-in .score-impact-head h3 { font-size: 23px; }
body.signed-in .score-impact-head p, body.signed-in .score-impact-preview { font-size: 16px; }
body.signed-in .score-history-summary { border-radius: 18px; background: #e9efe5; overflow: hidden; }
body.signed-in .settings-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.signed-in .settings-guided-card { grid-column: 1/-1; }
body.signed-in .settings-card, body.signed-in .setup-card { border-radius: 24px; }
body.signed-in .settings-details > summary, body.signed-in .setup-details > summary { padding: 20px; font-size: 18px; }
/* A single focused detail surface, with native keyboard containment. */
.home-dialog { width: min(940px,calc(100vw - 40px)); max-height: calc(100dvh - 64px); padding: 0; color: var(--ink); background: #f7f9f5; border: 1px solid #ffffff90; border-radius: 30px; box-shadow: 0 35px 110px #0c211a66; }
.home-dialog::backdrop { background: #10261fd1; backdrop-filter: blur(8px); }
.home-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 5; padding: 22px 28px; background: #f7f9f5f5; border-bottom: 1px solid #dce4d8; }
.home-dialog-head h2 { font-size: 24px; letter-spacing: -.7px; margin: 0; }
.home-dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e4ebe1; color: #354d3c; font-size: 30px; cursor: pointer; }
.home-dialog-body { padding: 28px; }
.home-dialog-intro { margin: 0 0 24px; color: var(--muted); font-size: 17px; }
body.home-dialog-open #workspaceSections { overflow: hidden; }
body.signed-in .home-dialog .component-detail-card { background: none; border: 0; padding: 0; }
body.signed-in .home-dialog .component-detail-copy { display: grid; gap: 16px; }
body.signed-in .home-dialog .component-detail-card h2 { font-size: 28px; }
body.signed-in .home-dialog .component-detail-head h2 { display: none; }
body.signed-in .home-dialog .component-detail-subtitle { text-transform: none; letter-spacing: 0; font-weight: 500; }
.home-status-explanation { margin-top: 16px; }
.home-status-explanation > summary { cursor: pointer; font-size: 17px; font-weight: 700; padding: 12px 0; }
body.signed-in .home-dialog .component-detail-section, body.signed-in .home-dialog .component-detail-photo { border-radius: 20px; }
body.signed-in .home-dialog .component-detail-subtitle, body.signed-in .home-dialog .component-detail-section p { font-size: 17px; line-height: 1.6; }
body.signed-in .home-dialog .component-detail-main-grid { grid-template-columns: 1fr; }
body.signed-in .home-dialog .component-detail-photo img { max-height: 300px; width: 100%; object-fit: cover; }
.component-detail-eyebrow { display: block; margin-bottom: 8px; color: #58705f; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.component-detail-action-hero { padding: 26px; border: 1px solid color-mix(in srgb, var(--action-color) 24%, #dbe4d8); border-radius: 22px; background: color-mix(in srgb, var(--action-color) 7%, #fff); }
.component-detail-action-hero h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--action-color); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.7px; }
.component-detail-action-hero > p { margin: 10px 0 0; color: #53665b; font-size: 17px; line-height: 1.55; }
.component-planning-card h3, .component-evidence-strength h3 { margin: 0; color: #263d32; font-size: 24px; letter-spacing: -.5px; }
.component-planning-card > p, .component-improve-estimate > p { margin: 8px 0 0; color: #617166; }
.component-planning-card.available { background: #f6f1e5; border-color: #e7d8b8; }
.component-evidence-strength h3 { display: flex; align-items: center; gap: 10px; }
.component-evidence-strength h3 > span { width: 11px; height: 11px; border: 2px solid currentColor; border-radius: 50%; }
.component-evidence-strength ul { margin: 12px 0 0; padding-left: 20px; color: #617166; }
.component-evidence-strength li + li { margin-top: 5px; }
.component-evidence-list { display: grid; gap: 10px; }
.component-evidence-row { display: grid; grid-template-columns: minmax(120px,.38fr) 1fr; gap: 16px; align-items: start; padding: 13px 14px; border-radius: 14px; background: #edf2eb; }
.component-evidence-row > span { color: #5a6c61; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.component-evidence-row > strong { color: #2d4136; font-size: 15px; line-height: 1.45; }
.component-evidence-row-verified { background: #eaf4e7; }
.component-evidence-row-assumed { background: #f4efe4; }
.component-improve-estimate { border-color: #d9c794 !important; background: #faf5e8 !important; }
.component-visual-context .component-findings-copy, .component-visual-context .component-finding-list { margin-top: 16px; }
body.signed-in .home-dialog > .home-dialog-body > .component-detail-panel > .component-detail-card > .component-detail-copy > .component-detail-how { padding: 18px 4px 4px; border-top: 1px solid #dce4d8; }
body.signed-in .home-dialog .connected-home-panel { margin: 0; border: 0; background: transparent; }
body.signed-in .home-dialog .connected-home-head { padding: 0 0 20px; }
body.signed-in .home-dialog .connected-home-body { padding: 20px 0 0; }
.home-background-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.home-background-grid button { border: 1px solid #d5dfd2; border-radius: 18px; overflow: hidden; padding: 0; font: inherit; cursor: pointer; background: #fff; color: #294e3c; }
.home-background-grid img { width: 100%; height: 170px; object-fit: cover; display: block; }
.home-background-grid span { display: block; padding: 12px; font-size: 14px; overflow-wrap: anywhere; }
.home-background-grid .home-background-default { min-height: 180px; background: linear-gradient(135deg,#344e45,#8a9b83); color: white; padding: 20px; }
.home-weather-detail { padding: 20px; background: #e7eee2; border-radius: 20px; }
body.signed-in .contractor-add-dialog, body.signed-in .pictures-lightbox-dialog { border-radius: 28px; padding: 28px; background: #f8faf7; }
body.signed-in .contractor-add-backdrop, body.signed-in .pictures-lightbox-backdrop { background: #10261fc9; backdrop-filter: blur(8px); }
body.signed-in .contractor-add-head h3 { font-size: 26px; }
body.signed-in .contractor-partner-card { border-radius: 18px; padding: 18px; gap: 20px; }
body.signed-in .contractor-partner-card h4 { font-size: 20px; }
@media (max-width: 1100px) {
  body.signed-in .authenticated-workspace { grid-template-columns: 190px minmax(0,1fr); }
  body.signed-in .homeowner-tools-card { padding: 24px 10px; }
  body.signed-in .homeowner-tool-row { padding: 12px; gap: 10px; }
  body.signed-in .dashboard-cards:has(.metric.component:nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.signed-in .metric { padding: 20px; }
  .home-background-button span { display: none; }
}
@media (max-width: 760px) {
  body.signed-in .authenticated-workspace { display: flex; flex-direction: column; height: calc(100dvh - 68px); }
  body.signed-in .onboarding-topbar { min-height: 68px; padding: 12px 18px; }
  body.signed-in .homeowner-tools-card { order: 2; flex: 0 0 auto; height: auto; padding: 8px 8px max(8px,env(safe-area-inset-bottom)); border-top: 1px solid #ffffff30; }
  body.signed-in .card.homeowner-tools-card { padding: 8px 8px max(8px,env(safe-area-inset-bottom)); border-top: 1px solid #ffffff30; }
  body.signed-in .homeowner-selection-menu { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
  body.signed-in .homeowner-tool-row { flex-direction: column; justify-content: center; gap: 5px; padding: 9px 3px; min-height: 62px; border-radius: 14px; }
  body.signed-in .homeowner-tool-row strong { font-size: 11px; }
  body.signed-in #workspaceSections { flex: 1; height: auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
  body.signed-in .home-overview-layout, body.signed-in .pictures-layout, body.signed-in .contractor-layout, body.signed-in .history-layout, body.signed-in .settings-layout { padding: 24px 16px; }
  body.signed-in .dashboard-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body.signed-in .metric { min-height: 230px; padding: 18px; border-radius: 22px; }
  body.signed-in .metric h3 { font-size: 21px; }
  body.signed-in .metric .label { font-size: 16px; }
  body.signed-in .metric.overall { min-height: 0; padding: 0 0 12px; }
  .home-support-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-page-kicker { font-size: 10px; }
  body.signed-in .settings-layout { grid-template-columns: 1fr; }
  body.signed-in .card { padding: 22px; }
  body.signed-in .home-health-card { padding: 0; }
  body.signed-in .pictures-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .home-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); border-radius: 24px; }
  .home-dialog-head, .home-dialog-body { padding: 20px; }
  .home-dialog-head h2 { font-size: 22px; }
  body.signed-in .contractor-add-dialog { padding: 20px; }
  body.signed-in .contractor-partner-card { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  body.signed-in .dashboard-cards, body.signed-in .dashboard-cards:has(.metric.component:nth-child(4)), .home-background-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body.signed-in .dashboard-cards, body.signed-in .dashboard-cards:has(.metric.component:nth-child(4)) { grid-template-columns: 1fr; }
  body.signed-in .metric.component { min-height: 235px; }
  .component-evidence-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  body.signed-in *, body.signed-in *::before, body.signed-in *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
body.signed-in .settings-hub { width: min(760px, calc(100% - 32px)); margin: clamp(16px, 4vw, 52px) auto; padding: clamp(20px, 4vw, 42px); }
.settings-menu { display: grid; margin-block-start: 1rem; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 60px; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 1rem .5rem; cursor: pointer; }
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover, .settings-row:focus-visible { background: #e5ede4; border-radius: 12px; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { font-size: 1.12rem; }
.settings-row small { color: var(--muted); margin-top: .25rem; font-size: .98rem; }
.settings-row > span[aria-hidden] { color: #49634e; font-size: 1.5rem; }
.settings-fields { display: grid; gap: 1rem; border: 0; padding: 0; min-width: 0; margin: 0; }
.home-dialog[data-kind="settings"] { width: min(680px, calc(100vw - 40px)); }
#settings-materials h3, #viewPermitHistory { margin-block: 1rem; }
#propertyRecordsBody { margin-bottom: 1.25rem; }
@media (max-width: 700px) {
  .home-dialog[data-kind="settings"], .home-dialog[data-kind="component"] { inset: 0; margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .home-dialog-body { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
