/* Hallmark · macrostructure: Ecosystem Index · tone: warm and grounded community · anchor hue: Munster green · theme: Garden dark-first · nav: N3 · footer: Ft3 */

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; margin: 0; overflow-x: clip; }
body { background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.5; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
svg.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: minmax(150px, 220px) minmax(120px, 1fr) auto; align-items: center; gap: var(--space-6); min-height: 70px; padding: 0 clamp(16px, 3vw, 38px); border-bottom: 1px solid var(--color-rule); background: var(--color-paper-glass); backdrop-filter: blur(14px); }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: var(--color-ink); font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.06em; text-decoration: none; white-space: nowrap; }
.brand-mark, .dialog-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: var(--color-accent); color: var(--color-accent-ink); font-size: 21px; line-height: 1; }
.brand-light { color: var(--color-muted); font-weight: 500; }
.global-search { display: flex; min-width: 0; height: 42px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-muted); }
.global-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--color-ink); }
.global-search input::placeholder { color: var(--color-subtle); }
.global-search:focus-within { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.global-search kbd { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 1px solid var(--color-rule); border-radius: 6px; color: var(--color-subtle); font: 600 11px var(--font-body); }
.top-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 12px; }
.prototype-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--color-muted); font-size: 11px; white-space: nowrap; }
.prototype-tag i, .unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.icon-button, .account-button, .nav-item, .mobile-nav-item, .demo-switch, .post-action, .pill-button, .text-button, .identity-option, .month-button { position: relative; display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.icon-button { width: 42px; height: 42px; border-color: var(--color-rule); border-radius: 50%; background: var(--color-surface); }
.icon-button:hover, .icon-button.is-hover { background: var(--color-surface-raised); }
.account-button { min-width: 0; padding: 4px 7px; border-radius: var(--radius-pill); }
.account-button:hover { background: var(--color-surface-raised); }
.account-name { max-width: 100px; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-soft); color: var(--color-ink); font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.avatar-small { width: 31px; height: 31px; font-size: 10px; }
.avatar-local { background: var(--color-avatar-local); color: var(--color-avatar-light-ink); }
.avatar-deise { background: var(--color-avatar-deise); color: var(--color-accent-ink); }
.avatar-cork { background: var(--color-avatar-cork); color: var(--color-avatar-dark-ink); }
.avatar-kerry { background: var(--color-avatar-kerry); color: var(--color-avatar-dark-ink); }

.prototype-notice { position: relative; display: flex; min-height: 39px; align-items: center; justify-content: center; gap: 9px; padding: 6px 44px; border-bottom: 1px solid var(--color-rule); background: var(--color-surface); color: var(--color-muted); font-size: 11px; text-align: center; }
.prototype-notice strong { color: var(--color-accent); font-weight: 700; }
.prototype-notice button { position: absolute; right: 17px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--color-muted); font-size: 20px; cursor: pointer; }
.prototype-notice button:hover { background: var(--color-surface-raised); }

.app-layout { display: grid; width: min(1440px, 100%); grid-template-columns: 220px minmax(0, 640px) 280px; justify-content: center; gap: clamp(18px, 3vw, 42px); margin: 0 auto; padding: 24px clamp(16px, 3vw, 38px) 62px; }
.sidebar { position: sticky; top: 88px; display: flex; height: calc(100dvh - 108px); min-height: 500px; flex-direction: column; padding: 4px 0 14px; }
.sidebar-region { display: flex; align-items: center; gap: 9px; margin: 4px 0 22px; color: var(--color-muted); font-size: 11px; }
.region-mark { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--color-rule); border-radius: 50%; color: var(--color-accent); font: 700 11px var(--font-display); }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 45px; justify-content: flex-start; padding: 0 12px; border-radius: var(--radius-control); color: var(--color-muted); font-size: 13px; text-align: left; white-space: nowrap; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover, .nav-item.is-hover { background: var(--color-surface); color: var(--color-ink); }
.nav-item.is-active { background: var(--color-surface-raised); color: var(--color-accent); font-weight: 700; }
.nav-count { margin-left: auto; color: var(--color-subtle); font-size: 10px; }
.unread-dot { width: 6px; height: 6px; margin-left: auto; }
.sidebar-rule { height: 1px; margin: 19px 6px 16px; background: var(--color-rule); }
.sidebar-heading { padding: 0 12px 8px; color: var(--color-subtle); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-nav { gap: 10px; font-size: 12px; }
.sidebar-grow { flex: 1; }
.demo-switch { width: 100%; min-height: 60px; justify-content: flex-start; padding: 8px 10px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); text-align: left; }
.demo-switch:hover { background: var(--color-surface); }
.switch-glyph { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--color-soft); color: var(--color-accent); font-size: 18px; }
.demo-switch strong, .demo-switch small { display: block; }
.demo-switch strong { font-size: 11px; }
.demo-switch small { margin-top: 2px; color: var(--color-muted); font-size: 10px; }
.sidebar-caption { margin: 15px 0 0; padding-left: 10px; color: var(--color-subtle); font-size: 10px; line-height: 1.55; }
.main-column { min-width: 0; }
.right-rail { position: sticky; top: 88px; align-self: start; display: grid; gap: 14px; padding-top: 4px; }
.rail-card { padding: 16px; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.rail-card h2 { margin: 0; font: 600 14px/1.3 var(--font-display); letter-spacing: -0.025em; }
.rail-card p { margin: 6px 0 0; color: var(--color-muted); font-size: 11px; line-height: 1.55; }
.rail-kicker, .eyebrow { margin: 0 0 9px; color: var(--color-subtle); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rail-event-date { display: inline-flex; margin: 12px 0 8px; padding: 4px 7px; border-radius: 6px; background: var(--color-soft); color: var(--color-accent); font-size: 10px; font-weight: 700; }
.rail-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--color-accent); font-size: 11px; font-weight: 700; text-decoration: none; }
.rail-link svg { width: 15px; height: 15px; }
.county-list { display: grid; gap: 9px; margin-top: 13px; }
.county-row { display: flex; align-items: center; gap: 8px; color: var(--color-muted); font-size: 11px; }
.county-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.county-row span:last-child { margin-left: auto; color: var(--color-subtle); font-size: 10px; }
.rail-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border-radius: var(--radius-control); background: var(--color-surface-raised); color: var(--color-muted); font-size: 10px; line-height: 1.5; }
.rail-note strong { display: block; margin-bottom: 2px; color: var(--color-ink); font-size: 11px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 7px 0 20px; }
.page-heading-copy { min-width: 0; }
.page-heading h1 { margin: 0; font: 600 var(--text-display)/1.08 var(--font-display); letter-spacing: -0.055em; overflow-wrap: anywhere; }
.page-heading p { max-width: 54ch; margin: 8px 0 0; color: var(--color-muted); font-size: 12px; }
.heading-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.primary-button, .secondary-button, .pill-button, .text-button { min-height: 42px; padding: 0 14px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-ink); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-button { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.secondary-button:hover, .pill-button:hover { background: var(--color-surface-raised); }
.text-button { min-height: 36px; padding: 0 9px; border-color: transparent; background: transparent; color: var(--color-accent); }
.text-button:hover { background: var(--color-surface-raised); }
.primary-button:active, .secondary-button:active, .pill-button:active { transform: translateY(1px); }
.primary-button:disabled, .secondary-button:disabled, .pill-button:disabled { opacity: 0.48; cursor: not-allowed; }
.primary-button.is-loading::before { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin 0.8s linear infinite; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.section-head { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 11px; }
.section-head h2 { min-width: 0; margin: 0; font: 600 16px/1.25 var(--font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.section-head a, .section-head button { color: var(--color-accent); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.story-row { display: flex; gap: 14px; overflow-x: auto; padding: 3px 0 8px; scrollbar-width: thin; }
.story { display: grid; width: 60px; flex: 0 0 60px; justify-items: center; gap: 6px; border: 0; background: transparent; color: var(--color-muted); cursor: pointer; }
.story .avatar { width: 48px; height: 48px; border: 2px solid var(--color-accent); }
.story span:last-child { max-width: 60px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.story:hover .avatar { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.composer { margin: 11px 0 15px; padding: 14px; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.composer-top { display: flex; align-items: flex-start; gap: 10px; }
.composer textarea { width: 100%; min-height: 44px; resize: vertical; padding: 10px 0; border: 1px solid transparent; outline: 0; background: transparent; color: var(--color-ink); font-size: 12px; }
.composer textarea::placeholder { color: var(--color-muted); }
.composer textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 5px; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--color-rule); }
.composer-hint { color: var(--color-subtle); font-size: 10px; }
.post-card { margin-top: 12px; padding: 16px; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.post-head { display: flex; min-width: 0; align-items: center; gap: 10px; }
.post-author { min-width: 0; flex: 1; }
.post-author button { max-width: 100%; overflow: hidden; padding: 0; border: 0; background: none; color: var(--color-ink); font-size: 12px; font-weight: 700; text-align: left; text-overflow: ellipsis; cursor: pointer; white-space: nowrap; }
.post-author small { display: block; margin-top: 1px; color: var(--color-muted); font-size: 10px; }
.post-age { color: var(--color-subtle); font-size: 10px; white-space: nowrap; }
.demo-label { display: inline-flex; align-items: center; padding: 3px 6px; border: 1px solid var(--color-rule); border-radius: 5px; color: var(--color-subtle); font-size: 8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.post-copy { margin: 12px 0; color: var(--color-ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.post-copy strong { color: var(--color-accent); font-weight: 600; }
.post-art { position: relative; display: grid; min-height: 190px; overflow: hidden; place-items: center; border-radius: 12px; background: var(--color-soft); }
.post-art svg { display: block; width: 100%; height: auto; min-height: 190px; max-height: 290px; }
.art-caption { position: absolute; right: 12px; bottom: 12px; left: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 7px 10px; border: 1px solid var(--color-art-outline); border-radius: 7px; background: var(--color-art-caption); color: var(--color-art-caption-ink); font-size: 10px; backdrop-filter: blur(8px); }
.post-actions { display: flex; align-items: center; gap: 7px; padding-top: 11px; }
.post-action { min-height: 36px; justify-content: flex-start; gap: 6px; padding: 0 8px; border-radius: 8px; color: var(--color-muted); font-size: 10px; }
.post-action svg { width: 16px; height: 16px; }
.post-action:hover { background: var(--color-surface-raised); color: var(--color-ink); }
.post-action.is-liked { color: var(--color-error); }
.post-action.is-following { color: var(--color-accent); }
.post-action:last-child { margin-left: auto; }
.empty-state { padding: 28px 16px; border: 1px dashed var(--color-rule); border-radius: var(--radius-card); color: var(--color-muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--color-ink); }

.search-panel { display: grid; gap: 18px; }
.search-section { min-width: 0; }
.result-list { display: grid; gap: 8px; }
.result-row { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-surface); text-align: left; cursor: pointer; }
.result-row:hover { background: var(--color-surface-raised); }
.result-copy { min-width: 0; flex: 1; }
.result-copy strong, .result-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-copy strong { font-size: 11px; }
.result-copy small { margin-top: 3px; color: var(--color-muted); font-size: 10px; }
.result-row > .icon { width: 16px; height: 16px; color: var(--color-subtle); }
.result-empty { margin: 0; color: var(--color-subtle); font-size: 11px; }

.profile-cover { position: relative; min-height: 190px; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-large); background: var(--color-surface-raised); }
.profile-cover svg { display: block; width: 100%; height: 190px; }
.profile-cover-label { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 6px; background: var(--color-art-caption); color: var(--color-art-caption-ink); font-size: 9px; }
.profile-summary { display: flex; min-width: 0; align-items: flex-start; gap: 14px; margin: -28px 14px 0; position: relative; }
.profile-summary .avatar { width: 70px; height: 70px; border: 4px solid var(--color-paper); font-size: 18px; }
.profile-info { min-width: 0; flex: 1; padding-top: 34px; }
.profile-info h1 { margin: 0; font: 600 clamp(23px, 4vw, 32px)/1.08 var(--font-display); letter-spacing: -0.05em; overflow-wrap: anywhere; }
.profile-info p { margin: 4px 0 0; color: var(--color-muted); font-size: 11px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 38px; }
.profile-bio { margin: 16px 14px; color: var(--color-muted); font-size: 12px; line-height: 1.65; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 14px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--color-rule); }
.profile-stats span { color: var(--color-muted); font-size: 10px; }
.profile-stats strong { margin-right: 4px; color: var(--color-ink); font-size: 12px; }
.profile-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 7px; border-bottom: 1px solid var(--color-rule); }
.profile-tabs button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--color-muted); font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.profile-tabs button[aria-selected="true"] { background: var(--color-surface-raised); color: var(--color-accent); }
.highlight-row { display: flex; gap: 14px; overflow-x: auto; padding: 16px 8px 3px; }
.highlight { display: grid; flex: 0 0 70px; justify-items: center; gap: 6px; color: var(--color-muted); font-size: 9px; text-align: center; }
.highlight-art { display: grid; width: 60px; height: 60px; place-items: center; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-surface-raised); color: var(--color-accent); font: 600 17px var(--font-display); }
.profile-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.profile-post-tile { min-width: 0; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-surface); }
.profile-post-tile .post-art { min-height: 135px; border-radius: 0; }
.profile-post-tile .post-art svg { min-height: 135px; }
.profile-post-tile p { min-height: 46px; margin: 0; padding: 9px; color: var(--color-muted); font-size: 10px; line-height: 1.45; }
.profile-about { margin-top: 13px; padding: 15px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-surface); }
.profile-about h2 { margin: 0; font: 600 14px var(--font-display); }
.profile-about p { max-width: 58ch; color: var(--color-muted); font-size: 11px; line-height: 1.6; }
.profile-about dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0 0; }
.profile-about dt { color: var(--color-subtle); font-size: 9px; }
.profile-about dd { margin: 3px 0 0; font-size: 10px; font-weight: 700; }

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 12px; }
.month-controls { display: flex; align-items: center; gap: 5px; }
.month-button { width: 38px; border-radius: 8px; color: var(--color-muted); }
.month-button:hover { background: var(--color-surface-raised); }
.month-label { min-width: 120px; font: 600 13px var(--font-display); text-align: center; }
.county-filter { display: flex; gap: 7px; overflow-x: auto; padding: 3px 0 11px; }
.county-chip { min-height: 32px; padding: 0 10px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); font-size: 9px; white-space: nowrap; cursor: pointer; }
.county-chip[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-surface-raised); color: var(--color-accent); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekday { padding: 5px 0; color: var(--color-subtle); font-size: 9px; font-weight: 700; text-align: center; }
.calendar-day { display: flex; min-width: 0; min-height: 68px; flex-direction: column; align-items: flex-start; gap: 5px; padding: 7px; border: 1px solid var(--color-rule); border-radius: 8px; background: var(--color-surface); color: var(--color-ink); text-align: left; cursor: pointer; }
.calendar-day:hover { background: var(--color-surface-raised); }
.calendar-day.is-outside { opacity: 0.4; }
.calendar-day.is-today { border-color: var(--color-accent); }
.calendar-day time { font-size: 10px; font-weight: 700; }
.calendar-day small { display: block; max-width: 100%; overflow: hidden; color: var(--color-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.day-markers { display: flex; gap: 3px; }
.day-markers i { width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.day-markers i:nth-child(2) { background: var(--color-art-sun); }
.event-list { display: grid; gap: 8px; margin-top: 14px; }
.event-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-surface); }
.event-date-block { display: grid; width: 40px; flex: 0 0 auto; place-items: center; padding: 5px 0; border-radius: 7px; background: var(--color-surface-raised); color: var(--color-accent); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.event-date-block strong { font: 600 16px var(--font-display); }
.event-copy { min-width: 0; flex: 1; }
.event-copy strong { display: block; font-size: 11px; }
.event-copy small { display: block; margin-top: 3px; color: var(--color-muted); font-size: 9px; }
.event-county { margin-left: auto; color: var(--color-subtle); font-size: 8px; white-space: nowrap; }
.event-form { display: grid; gap: 10px; margin-top: 12px; padding: 13px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-surface); }
.field { display: grid; min-width: 0; gap: 5px; color: var(--color-muted); font-size: 10px; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--color-rule); border-radius: 8px; outline: 2px solid transparent; outline-offset: 1px; background: var(--color-paper); color: var(--color-ink); }
.field textarea { min-height: 72px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { background: var(--color-surface-raised); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-color: var(--color-focus); }
.form-message { min-height: 1lh; margin: 0; color: var(--color-muted); font-size: 10px; }
.form-message.is-error { color: var(--color-error); }
.form-message.is-success { color: var(--color-success); }

.places-layout { display: grid; gap: 12px; }
.schematic-map { position: relative; min-height: 310px; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.schematic-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-water { fill: var(--color-art-sky); opacity: 0.35; }
.map-land { fill: var(--color-surface-raised); stroke: var(--color-accent); stroke-width: 2; }
.map-road { fill: none; stroke: var(--color-paper); stroke-width: 5; stroke-dasharray: 3 7; opacity: 0.8; }
.map-title { position: absolute; top: 12px; left: 12px; padding: 7px 9px; border: 1px solid var(--color-rule); border-radius: 7px; background: var(--color-paper-glass); color: var(--color-muted); font-size: 9px; }
.map-pin { position: absolute; display: grid; min-width: 38px; min-height: 38px; place-items: center; border: 2px solid var(--color-paper); border-radius: 50% 50% 50% 6px; background: var(--color-accent); color: var(--color-accent-ink); font-size: 8px; font-weight: 700; transform: rotate(-45deg); cursor: pointer; }
.map-pin span { transform: rotate(45deg); }
.map-pin:hover, .map-pin[aria-pressed="true"] { z-index: 1; outline: 2px solid var(--color-focus); outline-offset: 2px; }
.map-key { position: absolute; right: 10px; bottom: 10px; padding: 6px 8px; border: 1px solid var(--color-rule); border-radius: 6px; background: var(--color-paper-glass); color: var(--color-muted); font-size: 8px; }
.place-list { display: grid; gap: 8px; }
.place-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-surface); cursor: pointer; }
.place-card:hover, .place-card.is-selected { border-color: var(--color-accent); background: var(--color-surface-raised); }
.place-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--color-soft); color: var(--color-accent); }
.place-icon svg { width: 17px; height: 17px; }
.place-details { min-width: 0; flex: 1; }
.place-details strong { display: block; font-size: 11px; }
.place-details small { display: block; margin-top: 3px; color: var(--color-muted); font-size: 9px; line-height: 1.45; }
.place-rating { flex: 0 0 auto; color: var(--color-accent); font-size: 9px; }

.messages-layout { display: grid; grid-template-columns: minmax(145px, 0.72fr) minmax(0, 1.3fr); min-height: 520px; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.conversation-list { min-width: 0; padding: 12px 8px; border-right: 1px solid var(--color-rule); }
.conversation-list h2 { margin: 2px 8px 10px; font: 600 14px var(--font-display); }
.conversation-choice { display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; margin: 2px 0; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.conversation-choice:hover, .conversation-choice[aria-pressed="true"] { background: var(--color-surface-raised); }
.conversation-choice .avatar { width: 34px; height: 34px; font-size: 9px; }
.conversation-choice span:last-child { min-width: 0; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel { display: flex; min-width: 0; flex-direction: column; }
.chat-heading { padding: 13px; border-bottom: 1px solid var(--color-rule); }
.chat-heading strong { display: block; font-size: 11px; }
.chat-heading small { color: var(--color-muted); font-size: 9px; }
.chat-log { display: flex; flex: 1; flex-direction: column; gap: 9px; overflow-y: auto; padding: 13px; }
.chat-bubble { width: fit-content; max-width: 85%; padding: 8px 10px; border: 1px solid var(--color-rule); border-radius: 10px 10px 10px 3px; background: var(--color-surface-raised); color: var(--color-ink); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-bubble.mine { align-self: flex-end; border-color: var(--color-accent); border-radius: 10px 10px 3px 10px; background: var(--color-accent); color: var(--color-accent-ink); }
.chat-bubble small { display: block; margin-top: 4px; opacity: 0.72; font-size: 8px; }
.chat-compose { display: flex; gap: 7px; padding: 10px; border-top: 1px solid var(--color-rule); }
.chat-compose input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); outline: 2px solid transparent; outline-offset: 1px; background: var(--color-paper); color: var(--color-ink); font-size: 10px; }
.chat-compose input:focus-visible { outline-color: var(--color-focus); }

.signin-dialog { width: min(440px, calc(100% - 28px)); max-height: min(90dvh, 700px); padding: 25px; border: 1px solid var(--color-rule); border-radius: var(--radius-large); background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-card); }
.signin-dialog::backdrop { background: var(--color-dialog-scrim); backdrop-filter: blur(4px); }
.signin-dialog[open] { animation: dialog-in var(--dur-long) var(--ease-out); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
.dialog-mark { width: 38px; height: 38px; margin-bottom: 19px; border-radius: 12px; font-size: 26px; }
.signin-dialog h2 { max-width: 16ch; margin: 0; font: 600 24px/1.12 var(--font-display); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.signin-dialog > p:not(.eyebrow) { max-width: 43ch; margin: 9px 0 16px; color: var(--color-muted); font-size: 11px; }
.identity-options { display: grid; gap: 8px; }
.identity-option { width: 100%; min-height: 62px; justify-content: flex-start; padding: 8px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); text-align: left; }
.identity-option:hover { background: var(--color-surface-raised); }
.identity-option > span:nth-child(2) { min-width: 0; flex: 1; }
.identity-option strong, .identity-option small { display: block; }
.identity-option strong { font-size: 11px; }
.identity-option small { margin-top: 3px; color: var(--color-muted); font-size: 9px; }
.identity-option svg { width: 16px; height: 16px; color: var(--color-accent); }
.signin-dialog .dialog-footnote { margin: 15px 0 0; color: var(--color-subtle); font-size: 9px; }
.toast { position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: min(360px, calc(100% - 36px)); padding: 11px 14px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-surface-raised); color: var(--color-ink); box-shadow: var(--shadow-card); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(5px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.mobile-nav { display: none; }
.prototype-footer { display: grid; width: min(1220px, calc(100% - 32px)); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 auto; padding: 25px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-rule); }
.footer-group { display: grid; align-content: start; gap: 8px; }
.footer-group h2 { margin: 0 0 2px; color: var(--color-subtle); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-group a { width: fit-content; color: var(--color-muted); font-size: 10px; text-decoration: none; white-space: nowrap; }
.footer-group a:hover { color: var(--color-accent); }
.footer-meta { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--color-rule); color: var(--color-subtle); font-size: 9px; }
.footer-meta a { color: var(--color-muted); text-decoration: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dialog-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  .post-card, .rail-card, .result-row, .event-row, .place-card { transition: background var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
  .post-card:hover { transform: translateY(-1px); }
}

@media (max-width: 1120px) {
  .app-layout { grid-template-columns: 190px minmax(0, 640px); }
  .right-rail { display: none; }
  .topbar { grid-template-columns: minmax(150px, 190px) minmax(120px, 1fr) auto; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; min-height: 62px; padding-inline: 14px; }
  .wordmark { gap: 7px; font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .prototype-tag, .account-name, .global-search kbd { display: none; }
  .top-actions { gap: 4px; }
  .global-search { height: 40px; gap: 6px; padding-inline: 9px; }
  .global-search input { font-size: 10px; }
  .icon-button { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .account-button { padding: 3px; }
  .prototype-notice { justify-content: flex-start; padding-inline: 14px 46px; text-align: left; font-size: 10px; }
  .app-layout { display: block; padding: 16px 14px 28px; }
  .sidebar { display: none; }
  .main-column { width: min(100%, 640px); margin-inline: auto; }
  .mobile-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-rule); background: var(--color-paper-glass); backdrop-filter: blur(14px); }
  .mobile-nav-item { display: grid; min-width: 0; min-height: 48px; gap: 2px; align-content: center; justify-items: center; border-radius: 9px; color: var(--color-muted); font-size: 8px; white-space: nowrap; }
  .mobile-nav-item svg { width: 18px; height: 18px; }
  .mobile-nav-item.is-active { color: var(--color-accent); }
  .prototype-footer { padding-bottom: 110px; }
}
@media (max-width: 420px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; padding-inline: 10px; }
  .wordmark { font-size: 14px; }
  .global-search { height: 37px; }
  .global-search input { font-size: 9px; }
  .global-search input::placeholder { color: transparent; }
  .account-button .avatar { width: 28px; height: 28px; }
  .theme-button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
  .theme-button .icon { width: 17px; height: 17px; }
  .app-layout { padding-inline: 10px; }
  .page-heading { align-items: flex-start; }
  .page-heading p { font-size: 11px; }
  .heading-actions { flex-direction: column; }
  .post-card { padding: 12px; }
  .post-art { min-height: 160px; }
  .post-art svg { min-height: 160px; }
  .profile-summary { gap: 9px; margin-inline: 9px; }
  .profile-summary .avatar { width: 58px; height: 58px; }
  .profile-info { padding-top: 32px; }
  .profile-info h1 { font-size: 22px; }
  .profile-actions { gap: 4px; padding-top: 34px; }
  .profile-actions .primary-button, .profile-actions .secondary-button { min-height: 36px; padding-inline: 9px; font-size: 9px; }
  .calendar-day { min-height: 54px; padding: 5px; }
  .calendar-day small { font-size: 7px; }
  .messages-layout { grid-template-columns: minmax(95px, 0.68fr) minmax(0, 1.3fr); }
  .conversation-choice { gap: 5px; padding-inline: 3px; }
  .conversation-choice .avatar { width: 27px; height: 27px; font-size: 8px; }
  .conversation-choice span:last-child { font-size: 8px; }
  .footer-meta { flex-direction: column; }
  .prototype-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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