:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2926;
  background: #f5f6f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #1d2926;
  --muted: #68736f;
  --line: #dde2dd;
  --green: #24584d;
  --green-2: #397568;
  --green-soft: #e7f0ec;
  --cream: #fbfcf9;
  --amber: #a8671b;
  --amber-soft: #fff3d8;
  --blue-soft: #e9f1f6;
  --red: #9b3c38;
  --shadow: 0 1px 2px rgb(20 35 30 / 4%), 0 10px 28px rgb(20 35 30 / 5%);
}

* { box-sizing: border-box; }

.system-gate { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; text-align: center; background: var(--canvas); }
.system-gate h1, .system-gate p { margin: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f6f3; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.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; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; z-index: 30; background: #173a33; color: #eff6f2; padding: 22px 15px 18px; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 21px; }
.app-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #f4c66a; color: #173a33; font-family: Georgia, serif; font-size: 20px; font-weight: 700; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%); }
.sidebar-brand > span:nth-child(2), .brand-back > span:nth-child(2) { display: flex; flex-direction: column; }
.sidebar-brand strong { font: 700 18px/1 Georgia, serif; }
.sidebar-brand small { color: #a9c0b8; font-size: 10px; margin-top: 4px; }
.town-switcher { width: 100%; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; color: #fff; border: 1px solid rgb(255 255 255 / 12%); background: rgb(255 255 255 / 6%); border-radius: 11px; padding: 9px; text-align: left; cursor: pointer; }
.town-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #f1ead5; color: #214f46; font: 700 17px Georgia, serif; }
.town-switcher > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.town-switcher strong { font-size: 13px; }
.town-switcher small { color: #a9c0b8; font-size: 10px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 23px; }
.sidebar nav button, .sidebar-bottom > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #b7cac4; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.sidebar nav button:hover, .sidebar-bottom > button:hover { color: #fff; background: rgb(255 255 255 / 6%); }
.sidebar nav button.active { color: #fff; background: rgb(255 255 255 / 11%); }
.sidebar nav button.active svg { color: #f1c163; }
.sidebar nav b { margin-left: auto; display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 20px; background: #efc16c; color: #173a33; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom > button { margin-bottom: 8px; font-weight: 500; }
.user-card { border-top: 1px solid rgb(255 255 255 / 10%); padding: 16px 7px 0; display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; }
.user-card > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #d7e7e1; color: #1f5146; font-size: 10px; font-weight: 800; }
.user-card div { display: flex; flex-direction: column; }
.user-card strong { font-size: 11px; }
.user-card small { color: #9db4ad; font-size: 9px; margin-top: 2px; }
.mobile-close, .menu-button, .mobile-scrim { display: none; }

.app-main { grid-column: 2; min-width: 0; }
.topbar { height: 64px; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(250 251 248 / 92%); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.top-search { min-width: 300px; display: flex; align-items: center; gap: 9px; color: #87908d; font-size: 12px; }
.top-search kbd { margin-left: auto; background: #eef0ed; border: 1px solid #dfe3df; border-radius: 5px; padding: 2px 6px; font: inherit; color: #89918f; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.top-actions > button { position: relative; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.top-actions > button span { position: absolute; right: 1px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #d17a44; box-shadow: 0 0 0 2px #fff; }
.sync-state { display: flex; align-items: center; gap: 7px; color: #5a6964; font-size: 11px; font-weight: 600; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: #49a17b; box-shadow: 0 0 0 4px #e1f1e9; }
.page { max-width: 1160px; margin: 0 auto; padding: 40px 36px 70px; }
.allow-wide .page { max-width: 1320px; }

.eyebrow { margin: 0 0 7px; color: #6e7b77; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
.page h1 { margin-bottom: 7px; font: 600 clamp(26px, 3vw, 36px)/1.15 Georgia, serif; letter-spacing: -.02em; color: #19342e; }
.page-title-row, .welcome-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.page-title-row > div > p:last-child, .welcome-row > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.welcome-row h1 { margin-bottom: 7px; font: 600 34px/1.15 Georgia, serif; color: #19342e; }
.button { min-height: 39px; border: 1px solid transparent; border-radius: 8px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .16s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgb(36 88 77 / 15%); }
.button.primary:hover { background: #1b493f; }
.button.soft { background: #fff; border-color: #d9dfda; color: #344a44; }
.button.secondary { background: #eff4f1; border-color: #d5e2dd; color: #24584d; }
.button.danger-quiet { background: #fff; border-color: #ead5d3; color: var(--red); }
.button.small { min-height: 33px; padding: 0 11px; font-size: 11px; }
.button.full { width: 100%; }
.button:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.text-button { border: 0; padding: 0; color: var(--green-2); background: transparent; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head h2 { margin: 0; font: 600 21px/1.2 Georgia, serif; color: #203b34; }
.panel-foot { border-top: 1px solid #e6e9e5; padding: 14px 19px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-foot > div { display: flex; align-items: center; gap: 7px; color: #6d7774; font-size: 10px; }
.badge { width: max-content; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; background: #edf0ed; color: #5c6965; font-size: 9px; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge.green { background: #e5f2eb; color: #267052; }
.badge.amber { background: var(--amber-soft); color: #94601e; }
.badge.blue { background: #e6f0f4; color: #3a697d; }
.badge.red { background: #f6e9e8; color: #9b3c38; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #42a075; }

.focus-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 17px; background: linear-gradient(135deg, #24584d, #2d6659); color: #fff; border-radius: 14px; padding: 22px 23px; margin-bottom: 23px; box-shadow: 0 10px 28px rgb(32 79 69 / 13%); }
.focus-card.complete { background: linear-gradient(135deg, #315d53, #48766a); }
.focus-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgb(255 255 255 / 13%); color: #f7ce78; }
.focus-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.focus-meta > span { text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; color: #b9d2c9; }
.focus-card h2 { margin: 0 0 4px; font: 600 20px/1.2 Georgia, serif; }
.focus-card p { margin: 0; color: #c9dbd5; font-size: 11px; }
.focus-card .button.primary { background: #fff; color: #24584d; box-shadow: none; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 20px; }
.generated-panel { overflow: hidden; }
.generated-panel > .panel-head, .meeting-panel { padding: 19px; }
.mini-site { margin: 0 19px 17px; border: 1px solid #dfe4df; border-radius: 8px; overflow: hidden; background: #fff; }
.mini-nav { height: 26px; display: flex; align-items: center; gap: 13px; padding: 0 12px; border-bottom: 1px solid #e7eae7; }
.mini-nav > span { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #214f46; color: white; font: 7px Georgia; margin-right: auto; }
.mini-nav i { width: 25px; height: 2px; border-radius: 2px; background: #ced6d2; }
.mini-hero { height: 126px; padding: 23px 25px; background: linear-gradient(125deg, #285b50 0 67%, #c9d9ca 67%); color: #fff; }
.mini-hero small { display: block; color: #bfd4cc; font-size: 6px; letter-spacing: .1em; }
.mini-hero strong { display: block; font: 16px/1.2 Georgia; margin: 7px 0 10px; }
.mini-hero button { border: 0; border-radius: 3px; background: #fff; color: #24584d; font-size: 6px; padding: 5px 7px; }
.mini-blocks { height: 45px; display: flex; justify-content: center; gap: 10px; padding: 12px; background: #fafbf9; }
.mini-blocks span { width: 25%; border-radius: 3px; background: #ebefeb; }
.date-chip { width: 43px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dce3df; border-radius: 8px; background: #f9faf8; }
.date-chip strong { font: 600 20px/1 Georgia, serif; color: #24584d; }
.date-chip span { font-size: 7px; letter-spacing: .1em; color: #7d8884; }
.subdued { color: #74807c; font-size: 11px; display: flex; align-items: center; gap: 6px; margin: 16px 0; }
.meeting-assets { border-block: 1px solid #e7eae7; padding: 14px 0; margin-bottom: 17px; display: flex; flex-direction: column; gap: 10px; }
.meeting-assets span { display: flex; align-items: center; gap: 8px; color: #4c5e58; font-size: 11px; }
.meeting-assets svg { color: #578273; }
.activity-panel { margin-top: 20px; padding: 19px; }
.activity-panel .panel-head { margin-bottom: 8px; }
.activity-list { display: flex; flex-direction: column; }
.activity-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 12px 3px; border-top: 1px solid #edf0ed; }
.activity-mark { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #b9c4c0; }
.activity-mark.latest { border: 0; background: #48a17c; box-shadow: 0 0 0 3px #e4f2ec; }
.activity-row > div:nth-child(2) strong { font-size: 11px; }
.activity-row p { margin: 3px 0 0; color: #7a8481; font-size: 10px; }
.activity-row > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 9px; color: #69746f; }
.activity-row > div:last-child small { color: #9aa29f; }

.workflow-steps { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 15px 20px; margin-bottom: 19px; }
.workflow-steps > div { display: flex; align-items: center; flex: 1; color: #9ba39f; font-size: 10px; }
.workflow-steps > div > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f0f2f0; margin-right: 8px; font-size: 9px; font-weight: 800; }
.workflow-steps > div > i { height: 1px; flex: 1; background: #e2e6e2; margin: 0 13px; }
.workflow-steps > div.reached { color: #34584f; }
.workflow-steps > div.reached > span { background: #dfece7; color: #25624f; }
.workflow-steps > div.done > span { background: #337a61; color: #fff; }
.meeting-workspace { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.meeting-summary { padding: 20px; }
.date-block { width: 68px; border: 1px solid #d9e0dc; border-radius: 9px; text-align: center; overflow: hidden; margin-bottom: 17px; }
.date-block strong { display: block; background: #24584d; color: #fff; padding: 5px; font-size: 8px; letter-spacing: .1em; }
.date-block span { display: block; font: 600 30px/1 Georgia; padding-top: 8px; }
.date-block small { display: block; font-size: 8px; color: #7d8783; padding: 3px 0 8px; }
.meeting-summary h2 { font: 600 20px/1.25 Georgia, serif; margin-bottom: 7px; }
.meeting-summary > p { color: #78817e; font-size: 10px; }
.meeting-summary dl { margin: 22px 0; border-top: 1px solid #e6eae6; }
.meeting-summary dl > div { padding: 13px 0; border-bottom: 1px solid #e6eae6; }
.meeting-summary dt { color: #86908c; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.meeting-summary dd { margin: 0; display: flex; align-items: center; gap: 6px; color: #42534e; font-size: 9px; overflow-wrap: anywhere; }
.meeting-summary dd small { margin-left: auto; color: #8c9692; }
.workspace-main { overflow: hidden; position: relative; min-height: 510px; display: flex; flex-direction: column; }
.step-empty { text-align: center; max-width: 530px; margin: auto; padding: 65px 30px; }
.step-empty h2 { margin: 8px 0 10px; font: 600 25px/1.2 Georgia, serif; color: #203c35; }
.step-empty > p:not(.eyebrow) { color: #71807b; font-size: 12px; line-height: 1.65; }
.processing-graphic { width: 76px; height: 76px; border-radius: 22px; background: #e8f0ed; color: #2c6d5a; display: grid; place-items: center; margin: 0 auto 20px; position: relative; }
.processing-graphic span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #f3c466; }
.processing-graphic span:nth-child(2) { top: 10px; right: 8px; }
.processing-graphic span:nth-child(3) { bottom: 10px; left: 8px; background: #82b19e; }
.processing-graphic.ready { background: #e2f2ea; color: #2c805c; }
.source-stats { display: flex; justify-content: center; gap: 10px; margin-top: 23px; }
.source-stats span { display: flex; flex-direction: column; padding: 11px 15px; border: 1px solid #dfe5e1; border-radius: 8px; color: #7b8581; font-size: 8px; }
.source-stats strong { color: #294b42; font-size: 13px; margin-bottom: 2px; }
.workspace-footer { margin-top: auto; padding: 15px 18px; border-top: 1px solid #e3e7e3; background: #fbfcfa; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.workspace-footer > div { display: flex; align-items: center; gap: 10px; }
.shield-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #e6f0ec; color: #2a6e58; }
.workspace-footer p { margin: 0; display: flex; flex-direction: column; }
.workspace-footer strong { font-size: 9px; }
.workspace-footer small { color: #87908d; font-size: 8px; margin-top: 2px; }
.minutes-draft { padding: 25px 28px; }
.draft-head { display: flex; justify-content: space-between; gap: 20px; }
.draft-head .eyebrow { display: flex; align-items: center; gap: 5px; color: #4d7c6e; }
.draft-head h2 { font: 600 25px/1.2 Georgia, serif; }
.draft-summary { background: #f0f5f2; border-radius: 9px; padding: 14px 16px; margin: 17px 0; }
.draft-summary strong { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #4d6b62; }
.draft-summary p { margin: 6px 0 0; color: #4d5f59; font-size: 11px; line-height: 1.55; }
.minutes-draft article { border-top: 1px solid #e4e8e4; padding: 16px 0; }
.minutes-draft article > div { display: flex; align-items: center; gap: 9px; }
.minutes-draft article > div span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: #e7eeea; color: #315e52; font-size: 9px; font-weight: 800; }
.minutes-draft article h3 { margin: 0; font-size: 12px; }
.minutes-draft article p { margin: 8px 0 7px 30px; color: #53645f; font-size: 11px; line-height: 1.5; }
.evidence-link { margin-left: 30px; border: 0; background: transparent; color: #4d7a6d; padding: 0; display: flex; align-items: center; gap: 5px; font-size: 9px; cursor: pointer; }
.pdf-download { position: absolute; right: 20px; top: 71px; border: 0; background: transparent; color: #3a7464; display: flex; gap: 6px; align-items: center; font-size: 9px; cursor: pointer; }

.safety-banner { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border: 1px solid #d3e4dd; border-radius: 10px; background: #edf5f1; margin-bottom: 18px; color: #2c5c4f; }
.safety-banner > p { display: flex; flex-direction: column; margin: 0; }
.safety-banner strong { font-size: 10px; }
.safety-banner p span { font-size: 9px; color: #6c7d77; margin-top: 2px; }
.safety-banner .badge { margin-left: auto; }
.review-layout { display: grid; grid-template-columns: 310px 1fr; gap: 18px; align-items: start; }
.proposal-list { overflow: hidden; }
.proposal-list-head { display: flex; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid #e2e7e3; font-size: 10px; font-weight: 800; }
.proposal-list-head small { color: #8b9491; font-weight: 500; }
.proposal-item { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 14px 13px; border: 0; border-bottom: 1px solid #edf0ed; background: #fff; text-align: left; cursor: pointer; }
.proposal-item:hover { background: #fafbf9; }
.proposal-item.selected { background: #edf4f1; box-shadow: inset 3px 0 #3e7e6b; }
.proposal-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #edf1ef; color: #487064; }
.proposal-item.selected .proposal-icon { background: #dbeae4; color: #296451; }
.proposal-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.proposal-item strong { font-size: 10px; }
.proposal-item small { color: #818b87; font-size: 8px; }
.proposal-detail { overflow: hidden; }
.proposal-detail > header { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #e4e8e4; }
.proposal-detail > header h2 { margin: 9px 0 5px; font: 600 23px/1.2 Georgia, serif; }
.proposal-detail > header p { margin: 0; color: #6d7a76; font-size: 10px; }
.change-compare { margin: 20px 24px; display: grid; grid-template-columns: 1fr 28px 1fr; gap: 10px; align-items: center; }
.change-compare > div { border: 1px solid #e0e4e1; border-radius: 9px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.change-compare > div.proposed { border-color: #9fc7b9; background: #f0f7f4; }
.change-compare > svg { color: #789087; justify-self: center; }
.change-compare small { font-size: 8px; color: #8a9490; letter-spacing: .07em; }
.change-compare strong { font-size: 13px; }
.related-changes { margin: -8px 24px 18px; border: 1px solid #dfe5e1; border-radius: 9px; padding: 12px 14px; background: #fafbf9; }
.related-changes > span { display: block; margin-bottom: 8px; color: #6f7b77; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.related-changes > div { display: grid; grid-template-columns: 110px 1fr 16px 1.2fr; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #e8ebe8; font-size: 8px; }
.related-changes small { color: #74817c; text-transform: capitalize; }
.related-changes s { color: #8c9491; }
.related-changes strong { color: #2b5e50; overflow-wrap: anywhere; }
.evidence-card, .impact-card { margin: 0 24px 18px; border: 1px solid #dee4df; border-radius: 10px; overflow: hidden; }
.evidence-head { padding: 11px 13px; background: #f6f8f6; border-bottom: 1px solid #e5e8e5; display: flex; align-items: center; justify-content: space-between; }
.evidence-head > span { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; }
.evidence-card blockquote { margin: 0; padding: 17px 17px 12px; font: italic 13px/1.6 Georgia, serif; color: #354a44; }
.evidence-card > div:last-child { display: flex; justify-content: space-between; align-items: center; padding: 0 17px 15px; color: #7f8986; font-size: 8px; }
.evidence-card > div:last-child button { border: 0; border-bottom: 1px dotted #649083; background: none; color: #47776a; font-size: inherit; cursor: pointer; }
.impact-card { padding: 15px 17px; }
.impact-card h3 { margin: 0 0 4px; font-size: 11px; }
.impact-card > p { margin: 0 0 12px; color: #7b8682; font-size: 9px; }
.impact-card > div { display: flex; flex-direction: column; gap: 7px; }
.impact-card > div span { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; color: #4c5f59; font-size: 9px; }
.impact-card > div span svg:last-child { color: #459170; }
.proposal-detail > footer { padding: 15px 24px; background: #fafbf9; border-top: 1px solid #e3e7e3; display: flex; justify-content: flex-end; gap: 9px; }
.reviewed-state { width: 100%; display: flex; align-items: center; gap: 10px; color: #34775e; }
.reviewed-state > span { display: flex; flex-direction: column; }
.reviewed-state strong { font-size: 10px; }
.reviewed-state small { color: #7a8782; font-size: 8px; margin-top: 2px; }

.website-stats { display: grid; grid-template-columns: 1.1fr 1fr .8fr; border: 1px solid var(--line); border-radius: 11px; background: #fff; margin-bottom: 17px; }
.website-stats > div { padding: 13px 15px; display: flex; align-items: center; gap: 10px; border-right: 1px solid #e3e7e3; color: #4c6d63; }
.website-stats > div:last-child { border: 0; }
.website-stats > div > span:not(.badge) { display: flex; flex-direction: column; flex: 1; }
.website-stats strong { color: #31473f; font-size: 9px; }
.website-stats small { color: #89928f; font-size: 8px; margin-top: 2px; }
.site-preview-panel { overflow: hidden; }
.site-preview-panel > header { height: 44px; border-bottom: 1px solid #e3e7e3; background: #f8f9f7; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 14px; }
.site-preview-panel > header > div { display: flex; gap: 5px; }
.window-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7dcd8; }
.window-dot.red { background: #e5a69e; }.window-dot.amber { background: #edcd83; }.window-dot.green { background: #9dceb5; }
.site-preview-panel > header p { justify-self: center; margin: 0; display: flex; align-items: center; gap: 5px; color: #73807b; font-size: 8px; }
.site-preview-panel > header button { justify-self: end; }
.site-preview-scroll { max-height: 720px; overflow-y: auto; }

.document-layout { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: start; }
.folder-list { padding: 8px; display: flex; flex-direction: column; gap: 3px; }
.folder-list button { border: 0; border-radius: 7px; background: transparent; display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 10px; color: #62716c; cursor: pointer; }
.folder-list button.active { background: #eaf2ee; color: #285e50; font-weight: 700; }
.folder-list button span { margin-left: auto; color: #98a19e; }
.document-table { overflow: hidden; }
.document-table > header, .document-row { display: grid; grid-template-columns: minmax(240px, 1fr) 120px 120px 38px; align-items: center; gap: 12px; padding: 11px 15px; }
.document-table > header { background: #f7f9f7; border-bottom: 1px solid #e2e6e2; color: #89928f; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.document-row { min-height: 68px; border-bottom: 1px solid #e8ebe8; }
.document-row > div:first-child { display: flex; align-items: center; gap: 10px; }
.pdf-icon { width: 31px; height: 36px; display: grid; place-items: center; border-radius: 5px; background: #f5e9e7; color: #9b4b43; font-size: 7px; font-weight: 800; }
.document-row p { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.document-row strong { font-size: 10px; }
.document-row small, .document-row > span { color: #89928f; font-size: 8px; }
.search-field { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #dce1dd; border-radius: 8px; background: #fff; color: #89918e; }
.search-field input { height: 37px; width: 180px; border: 0; outline: none; background: transparent; font-size: 10px; }
.empty-state { min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 35px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: #e9f1ed; color: #34715e; }
.empty-state h3 { margin: 15px 0 6px; font: 600 21px Georgia, serif; }
.empty-state p { color: #77827e; font-size: 11px; max-width: 410px; }

/* The embedded municipal editor uses Puck's compositional API, not its stock shell. */
.website-editor-page { background: #eef1ee; min-height: calc(100vh - 64px); }
.editor-appbar { height: 58px; padding: 0 18px; background: #fff; border-bottom: 1px solid #dce2de; display: flex; align-items: center; justify-content: space-between; }
.brand-back { border: 0; background: none; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.brand-back strong { font-size: 11px; }
.brand-back small { color: #88918e; font-size: 8px; }
.editor-appbar > div { display: flex; align-items: center; gap: 10px; }
.editor-loading { height: calc(100vh - 186px); display: flex; align-items: center; justify-content: center; gap: 10px; color: #65746f; font-size: 11px; }
.editor-loading span { width: 15px; height: 15px; border: 2px solid #bfd1ca; border-top-color: #2e6b5b; border-radius: 50%; animation: editor-spin .7s linear infinite; }
.editor-loading p { margin: 0; }
@keyframes editor-spin { to { transform: rotate(360deg); } }
.puck-embedded {
  --puck-color-interactive: #2e6b5b;
  --puck-color-interactive-hover: #24584d;
  --puck-color-interactive-active: #1d4d42;
  --puck-color-interactive-subtle: #dfece7;
  --puck-color-interactive-soft: #edf4f1;
  --puck-color-focus-ring: #4e8f7c;
  --puck-radius-s: 6px;
  --puck-radius-m: 9px;
  font-size: 12px;
}
.editor-frame { height: calc(100vh - 186px); min-height: 560px; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.simple-rail { background: #fff; border-right: 1px solid #dbe1dd; display: grid; grid-template-columns: 68px 1fr; min-height: 0; }
.rail-tabs { background: #f6f8f6; border-right: 1px solid #e0e4e1; padding: 10px 6px; display: flex; flex-direction: column; gap: 4px; }
.rail-tabs button { width: 56px; min-height: 56px; border: 0; border-radius: 8px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #76817d; font-size: 8px; cursor: pointer; }
.rail-tabs button.active { background: #e4efea; color: #27614f; font-weight: 800; }
.rail-panel { min-width: 0; overflow: auto; }
.panel-title { padding: 17px 15px 10px; display: flex; flex-direction: column; border-bottom: 1px solid #e4e7e4; }
.panel-title span { font-weight: 800; font-size: 11px; }
.panel-title small { color: #89938f; font-size: 8px; margin-top: 3px; }
.friendly-panel { padding: 18px 15px; }
.friendly-panel h3 { font: 600 17px/1.2 Georgia, serif; margin: 13px 0 7px; }
.friendly-panel > p { color: #75807c; font-size: 10px; line-height: 1.5; }
.ai-orb { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #e4efea; color: #2e6b5a; }
.friendly-panel textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid #d9dfdb; border-radius: 8px; padding: 10px; outline: none; font-size: 10px; }
.friendly-panel .button { width: 100%; margin: 8px 0; }
.friendly-panel > small { display: block; text-align: center; color: #98a19e; font-size: 8px; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #e8ebe8; font-size: 9px; color: #566761; }
.check-row svg { color: #3e876d; }
.binding-list { display: flex; flex-direction: column; gap: 7px; padding-top: 12px; }
.binding-list span { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 6px; background: #f3f6f4; color: #6c7773; font-size: 8px; }
.outline-wrap { border-top: 1px solid #e1e5e2; margin-top: 10px; }
.outline-label { display: block; padding: 12px 14px 4px; color: #858f8b; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.editor-canvas { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #e9eeea; }
.editor-toolbar { height: 47px; padding: 0 14px; background: #fff; border-bottom: 1px solid #dfe4e0; display: flex; justify-content: space-between; align-items: center; }
.editor-toolbar > div { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; }
.editor-toolbar small, .toolbar-actions > span { color: #8b9491; font-size: 8px; font-weight: 500; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #48a07b; }
.toolbar-actions { display: flex; align-items: center; gap: 12px !important; }
.editor-canvas [class*="PuckPreview"] { min-height: 0; }

/* Resident-facing website and contextual preview */
.public-site { --site-green: #24594d; --site-dark: #173b34; background: #fff; color: #24322e; font-family: Inter, ui-sans-serif, sans-serif; }
.site-shell { width: min(1080px, calc(100% - 44px)); margin-inline: auto; }
.public-header { height: 64px; background: #fff; border-bottom: 1px solid #e2e7e3; position: relative; z-index: 2; }
.public-header .site-shell { height: 100%; display: flex; align-items: center; }
.town-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.mini-seal { width: 34px; height: 34px; display: grid; place-items: center; background: #24594d; color: #fff; border-radius: 50%; font: 700 17px Georgia, serif; box-shadow: inset 0 0 0 3px #dbe5dc; }
.town-brand > span:last-child { display: flex; flex-direction: column; }
.town-brand strong { font: 700 16px/1 Georgia, serif; color: #1d443b; }
.town-brand small { color: #7d8b86; letter-spacing: .16em; font-size: 6px; margin-top: 4px; }
.public-header nav { display: flex; align-items: center; gap: 25px; color: #4d5e58; font-size: 10px; font-weight: 600; }
.search-button { margin-left: 24px; border: 1px solid #dbe2dd; border-radius: 7px; background: #f8faf8; padding: 7px 11px; color: #53645f; font-size: 9px; }
.site-hero { background: linear-gradient(115deg, #225448 0 68%, #cddccb 68%); color: #fff; overflow: hidden; }
.hero-grid { min-height: 340px; display: grid; grid-template-columns: 1fr 250px; align-items: center; gap: 50px; }
.site-kicker { margin: 0 0 11px; color: #bed2ca; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.site-kicker.ink { color: #588074; }
.site-hero h1 { max-width: 560px; margin: 0; font: 600 clamp(36px, 5vw, 58px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.hero-lede { margin: 15px 0 0; color: #d5e2dd; font: 18px/1.4 Georgia, serif; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 25px; }
.site-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 5px; font-size: 9px; font-weight: 800; }
.site-button.light { background: #fff; color: #24584d; }
.site-button.dark { background: #24584d; color: #fff; }
.site-text-link { font-size: 9px; color: #e2ebe7; border-bottom: 1px solid rgb(255 255 255 / 45%); padding-bottom: 2px; }
.civic-seal { justify-self: center; width: 180px; height: 180px; border-radius: 50%; border: 6px double rgb(36 84 72 / 40%); color: #27584b; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-4deg); }
.civic-seal span { font: 700 74px/.9 Georgia, serif; }
.civic-seal small { font-size: 7px; letter-spacing: .15em; }
.notice-strip { background: #f8efce; border-bottom: 1px solid #e4d7a9; color: #5c4b24; }
.notice-inner { min-height: 58px; display: flex; align-items: center; gap: 12px; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #d49737; box-shadow: 0 0 0 4px #f2dfa9; }
.notice-inner > div { display: flex; flex-direction: column; flex: 1; }
.notice-inner strong { font-size: 10px; }
.notice-inner span { color: #756944; font-size: 8px; margin-top: 2px; }
.notice-inner a, .section-heading a, .meeting-row > a, .project-card a { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 800; }
.site-section { padding: 55px 0; }
.site-section.sage { background: #eef3ed; }
.site-section.blue { background: #eaf2f4; }
.section-heading h2, .site-section h2 { margin: 0; font: 600 30px/1.15 Georgia, serif; color: #1d3f37; }
.section-heading.row { display: flex; justify-content: space-between; align-items: flex-end; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.quick-grid a { min-height: 74px; border: 1px solid #dce3de; border-radius: 8px; padding: 15px; background: #fff; display: flex; align-items: center; justify-content: space-between; color: #315249; font-size: 10px; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: 64px 1fr 280px; gap: 24px; align-items: center; }
.feature-icon, .drop-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #d8e7dd; color: #28614f; }
.feature-grid > div:nth-child(2) > p:last-child, .project-card > div > p:last-child, .document-feature > div:nth-child(2) > p:last-child, .narrow p { margin: 10px 0 0; color: #65746f; font-size: 10px; line-height: 1.6; }
.contact-card { border-left: 1px solid #cfdcd4; padding-left: 25px; display: flex; flex-direction: column; }
.contact-card small { color: #788680; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { font: 600 19px Georgia, serif; margin: 7px 0 3px; }
.contact-card span { color: #6e7b76; font-size: 8px; }
.contact-card a { display: flex; gap: 6px; align-items: center; margin-top: 12px; color: #2f6e5b; font-size: 9px; font-weight: 700; }
.project-card { display: grid; grid-template-columns: 1fr 330px; gap: 60px; align-items: center; padding: 28px 30px; border: 1px solid #dce3df; border-radius: 11px; }
.project-card > div:last-child { border-left: 1px solid #e0e5e2; padding-left: 30px; }
.project-card > div:last-child p { display: flex; align-items: center; gap: 6px; color: #64736e; font-size: 8px; }
.site-status { display: inline-block; border-radius: 99px; padding: 5px 8px; background: #eef0ee; color: #68736f; text-transform: capitalize; font-size: 7px; font-weight: 800; }
.site-status.scheduled { background: #e6f1eb; color: #2c7258; }
.document-feature { display: grid; grid-template-columns: 64px 1fr 210px; gap: 22px; align-items: center; }
.drop-icon { background: #d6e8ec; color: #39748a; }
.document-feature > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.document-feature > div:last-child p { color: #6f7d79; font-size: 8px; }
.available { display: flex; align-items: center; gap: 6px; color: #2c785a; font-size: 8px; font-weight: 800; }
.meeting-row { margin-top: 20px; border-block: 1px solid #e0e5e1; padding: 18px 0; display: grid; grid-template-columns: 54px 1fr auto; gap: 17px; align-items: center; }
.date-tile { width: 49px; height: 53px; border: 1px solid #d8dfda; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-tile strong { font: 600 20px Georgia, serif; color: #285c4f; }
.date-tile span { color: #7b8782; font-size: 6px; letter-spacing: .1em; }
.meeting-row h3 { margin: 0 0 6px; font: 600 15px Georgia, serif; }
.meeting-row p { margin: 0; display: flex; align-items: center; gap: 6px; color: #74807b; font-size: 8px; }
.public-footer { background: #173b34; color: #fff; padding: 28px 0; }
.public-footer .site-shell { display: flex; justify-content: space-between; align-items: center; }
.public-footer strong { font: 600 16px Georgia, serif; }
.public-footer p { margin: 5px 0 0; color: #aec5bd; font-size: 7px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgb(15 31 27 / 62%); backdrop-filter: blur(4px); }
.modal { width: min(600px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgb(10 25 21 / 28%); }
.modal.wide { width: min(1020px, 100%); }
.modal > header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid #e1e5e2; background: rgb(255 255 255 / 95%); }
.modal > header h2 { margin: 0; font: 600 21px Georgia, serif; }
.modal-body { padding: 20px; }
.source-modal { display: flex; flex-direction: column; gap: 16px; }
.audio-player { display: flex; gap: 12px; align-items: center; padding: 13px; border-radius: 9px; background: #eef3f0; }
.audio-player button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #24584d; color: #fff; display: grid; place-items: center; }
.audio-player > div { display: flex; flex-direction: column; gap: 4px; color: #39705f; }
.waveform { letter-spacing: 2px; font-weight: 800; }
.audio-player small { color: #79847f; font-size: 8px; }
.transcript { border: 1px solid #dfe4e0; border-radius: 9px; padding: 14px; }
.transcript p { display: flex; gap: 8px; margin: 8px 0 4px; font-size: 9px; }
.transcript p span { color: #558175; }
.transcript blockquote { margin: 0 0 12px 65px; color: #54635e; font: 12px/1.5 Georgia, serif; }
.source-note { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 8px; background: #e7f2ed; color: #2e7359; }
.source-note p { margin: 0; display: flex; flex-direction: column; font-size: 9px; }
.source-note span { color: #6e7b76; margin-top: 2px; }
.preview-callout { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 12px; padding: 12px 15px; background: #edf5f1; border: 1px solid #d5e5de; border-radius: 9px; margin-bottom: 14px; }
.preview-callout > div { display: flex; flex-direction: column; }
.preview-callout span { color: #78847f; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.preview-callout strong { font-size: 11px; margin-top: 3px; }
.browser-chrome { height: 35px; background: #f1f3f1; border: 1px solid #dce1dd; border-radius: 9px 9px 0 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 12px; }
.browser-chrome > div { display: flex; gap: 5px; }
.browser-chrome > div span { width: 6px; height: 6px; border-radius: 50%; background: #c8ceca; }
.browser-chrome p { margin: 0; justify-self: center; display: flex; align-items: center; gap: 5px; color: #79837f; font-size: 7px; }
.context-site { height: 430px; overflow: auto; border: 1px solid #dce1dd; border-top: 0; }
.public-site.compact { transform-origin: top left; }
.public-site.compact .public-header { height: 46px; }
.public-site.compact .site-hero .hero-grid { min-height: 250px; }
.public-site.compact .site-section { padding: 36px 0; }
.modal-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }

@media (max-width: 950px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 16px 0 50px rgb(10 25 21 / 20%); }
  .sidebar.open { transform: translateX(0); }
  .app-main { grid-column: 1; }
  .menu-button, .mobile-close { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
  .mobile-close { color: #fff; margin-left: auto; }
  .mobile-scrim { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: rgb(14 30 26 / 35%); }
  .topbar { padding: 0 18px; }
  .menu-button { margin-right: 16px; }
  .top-search { min-width: 0; flex: 1; }
  .top-search kbd { display: none; }
  .review-layout { grid-template-columns: 270px 1fr; }
  .editor-frame { grid-template-columns: 285px minmax(0, 1fr); }
  .simple-rail { grid-template-columns: 60px 1fr; }
  .rail-tabs button { width: 48px; }
}

@media (max-width: 720px) {
  .page { padding: 28px 17px 60px; }
  .top-search span, .sync-state span { display: none; }
  .page-title-row, .welcome-row { flex-direction: column; align-items: stretch; }
  .focus-card { grid-template-columns: 40px 1fr; }
  .focus-card > .button { grid-column: 1 / -1; width: 100%; }
  .dashboard-grid, .meeting-workspace, .review-layout, .document-layout { grid-template-columns: 1fr; }
  .workflow-steps { overflow-x: auto; padding: 12px; }
  .workflow-steps > div { min-width: 135px; }
  .workflow-steps > div:last-child { min-width: 100px; }
  .workspace-footer { align-items: stretch; flex-direction: column; }
  .workspace-footer .button { width: 100%; }
  .proposal-list { display: flex; overflow-x: auto; }
  .proposal-list-head { min-width: 150px; }
  .proposal-item { min-width: 225px; border-right: 1px solid #edf0ed; }
  .proposal-detail > header { flex-direction: column; }
  .proposal-detail > header .button { width: 100%; }
  .change-compare { grid-template-columns: 1fr; }
  .change-compare > svg { transform: rotate(90deg); }
  .website-stats { grid-template-columns: 1fr; }
  .website-stats > div { border-right: 0; border-bottom: 1px solid #e3e7e3; }
  .document-table { overflow-x: auto; }
  .document-table > header, .document-row { min-width: 680px; }
  .site-preview-panel > header { grid-template-columns: 1fr 1fr; }
  .site-preview-panel > header p { display: none; }
  .editor-frame { height: auto; min-height: calc(100vh - 186px); grid-template-columns: 1fr; }
  .simple-rail { min-height: 340px; border-right: 0; border-bottom: 1px solid #dbe1dd; }
  .editor-canvas { min-height: 620px; }
  .toolbar-actions > span { display: none; }
  .public-header nav { display: none; }
  .hero-grid { min-height: 300px; grid-template-columns: 1fr; }
  .civic-seal { display: none; }
  .site-hero { background: #24584d; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .document-feature, .project-card { grid-template-columns: 1fr; gap: 20px; }
  .contact-card, .project-card > div:last-child { border-left: 0; border-top: 1px solid #d5dfd9; padding: 18px 0 0; }
  .meeting-row { grid-template-columns: 54px 1fr; }
  .meeting-row > a { grid-column: 2; }
  .public-footer .site-shell { flex-direction: column; align-items: flex-start; gap: 14px; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
}
