/* Approved SVOI city identity, 1 November 2026.
   Load after surface styles. Keep page composition and application behavior local. */
:root {
  --snow: var(--brand-snow);
  --paper: var(--brand-surface);
  --ink: var(--brand-pine);
  --muted: var(--brand-muted);
  --line: var(--brand-border);
  --orange: var(--brand-action);
  --orange-light: var(--brand-soft);
  --accent: var(--brand-action);
  --mint: var(--brand-mint);
  --font: var(--brand-font);
  --shadow: var(--brand-shadow);
  --mobile-green: var(--brand-pine);
  --mobile-blue: var(--brand-public-position);
  --mobile-friend: var(--brand-friend-position);
  color: var(--brand-pine);
  background: var(--brand-snow);
  font-family: var(--brand-font);
}

body {
  color: var(--brand-pine);
  background: var(--brand-snow);
  font-family: var(--brand-font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { text-underline-offset: .2em; }
input, textarea { caret-color: var(--brand-action); }
input, select, progress { accent-color: var(--brand-action); }
input::placeholder, textarea::placeholder { color: var(--brand-muted); opacity: 1; }
::selection { color: var(--brand-pine); background: var(--brand-apricot); }
:focus-visible { outline: 3px solid var(--brand-focus); outline-offset: 3px; }
* { scrollbar-color: var(--brand-scrollbar) var(--brand-snow); scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--brand-snow); }
::-webkit-scrollbar-thumb { background: var(--brand-scrollbar); border: 2px solid var(--brand-snow); border-radius: 5px; }
h1, h2, h3 { text-wrap: balance; }

/* One approved lockup is shared everywhere; the compact mark is used at small sizes. */
.brand, .editor-brand { color: var(--brand-pine); text-decoration: none; }
.brand > img, .editor-brand > img, img.brand-logo {
  display: block;
  width: 164px;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.brand-dot { display: none; }
.brand-mark { display: block; width: 36px; height: 30px; object-fit: contain; flex-shrink: 0; }
.topbar, .access-header, .editor-header, .editor-footer { background: var(--brand-surface); border-color: var(--brand-border); }
.topbar .resort { color: var(--brand-pine); }
.topbar .resort span, .header-context { color: var(--brand-muted); }
.topbar .prototype { color: var(--brand-muted); background: var(--brand-field); }
.account-button { min-height: 44px; font-size: 13px; border-color: var(--brand-border); border-radius: var(--brand-radius-field); }
.account-button:hover { background: var(--brand-field); }
.primary, button.primary, a.primary {
  min-height: 46px;
  color: #fff;
  background: var(--brand-action);
  border-color: var(--brand-action);
  border-radius: var(--brand-radius-control);
  font-size: 14px;
  font-weight: 600;
}
.primary:hover:not(:disabled), button.primary:hover:not(:disabled), a.primary:hover {
  color: #fff;
  background: var(--brand-action-hover);
  border-color: var(--brand-action-hover);
}
.primary:disabled, #auth-submit:disabled {
  color: var(--brand-muted);
  background: var(--brand-disabled-surface);
  border-color: var(--brand-disabled-surface);
  opacity: 1;
}
.secondary, .mobile-secondary, .auth-secondary { color: var(--brand-pine); background: var(--brand-field); border-color: var(--brand-border); }
.secondary:hover:not(:disabled), .mobile-secondary:hover:not(:disabled), .auth-secondary:hover:not(:disabled) { background: var(--brand-mint); }
.form-error { color: var(--brand-danger); }

/* Operate: the real map remains the working surface; the interface uses sand and graphite. */
.sidebar, .timeline, .detail-panel, dialog { background: var(--brand-surface); color: var(--brand-pine); }
.sidebar { border-color: var(--brand-border); }
.sidebar-intro h1, .country-sidebar h1 { color: var(--brand-pine); letter-spacing: -.03em; }
.sidebar-intro h1 span, .country-sidebar h1 > span { color: var(--brand-action); }
.sidebar-intro p, .country-intro, .country-note { color: var(--brand-muted); }
.country-sidebar h1 { font-size: 32px; line-height: 1.2; }
.country-intro { font-size: 14px; line-height: 1.7; max-width: 30ch; }
.country-note { font-size: 13px; line-height: 1.7; }
.destination-card { background: var(--brand-field); border-radius: var(--brand-radius-panel); }
.destination-art { color: var(--brand-action); background: #f2dcc8; }
.destination-copy > span { color: var(--brand-muted); font-size: 12px; }
.destination-copy > .destination-resorts { color: var(--brand-pine); font-size: 13px; }
.destination-copy > .destination-range { font-size: 12px; }
.destination-action { color: var(--brand-action); border-color: var(--brand-border); font-size: 13px; }
.destination-marker { --destination-color: var(--brand-terracotta); }
.destination-marker.has-public-plans { --destination-color: var(--brand-public-position); }
.destination-marker > .destination-friends { color: var(--brand-pine); background: var(--brand-surface); }
.destination-card.has-public-plans .destination-art { color: #286e90; background: #dceef3; }
.country-map-note { color: var(--brand-pine); background: var(--brand-surface); }
.country-friends-key { color: var(--brand-pine); background: var(--brand-mint); }
.search-box, .mode-tabs, .auth-tabs { background: var(--brand-field); }
.search-box { padding-block: 0; }
.search-box:focus-within { outline: 3px solid var(--brand-focus); outline-offset: 2px; }
.mode-tabs button.active, .filter-row button.selected, .map-pill.selected, .m-chip.selected, .mobile-mode button.selected {
  color: var(--brand-surface);
  background: var(--brand-pine);
  box-shadow: none;
}
.auth-tabs button.selected { color: var(--brand-pine); background: var(--brand-surface); }
.social-actions button:first-child { color: var(--brand-action); background: var(--brand-soft); }
.social-actions button, .location-methods button, .place-social-actions button { border-color: var(--brand-border); border-radius: var(--brand-radius-field); }
.social-actions button:hover, .location-methods button:hover, .place-social-actions button:hover { background: var(--brand-field); }
.presence-status, .location-preview { color: var(--brand-pine); background: var(--brand-mint); }
.person-row { border-color: var(--brand-border); }
.person-row:hover, .person-row.selected { background: var(--brand-field); }
.person-name, .person-place { color: var(--brand-pine); }
.person-note, .person-time, .list-heading > span, .sidebar-footer p { color: var(--brand-muted); }
.sidebar-footer { background: var(--brand-snow); border-color: var(--brand-border); }
.event-avatar, .event-pin { color: var(--brand-pine); background: var(--brand-mint); }
.event-marker .marker-label { color: #fff; background: var(--brand-pine); }
.event-attendance, .event-seats { color: var(--brand-pine); }
.map-pill, .region-navigation > button, .region-navigation > div, .view-controls, .map-status, .now-hint { background: var(--brand-surface); }
.region-navigation > div button.selected { color: var(--brand-action); background: var(--brand-soft); }
.map-status.error { color: var(--brand-danger); }
.map-legend { color: var(--brand-pine); }
.map-marker:not(.event-marker) .marker-label { background: var(--brand-surface); color: var(--brand-pine); }
.maplibregl-popup-content { color: var(--brand-pine); background: var(--brand-surface); font-family: var(--brand-font); }
.timeline, .detail-panel, dialog { box-shadow: var(--brand-shadow-raised); }
.timeline-header button { background: var(--brand-field); }
.timeline-header button.selected { background: var(--brand-soft); color: var(--brand-action); }
.timeline-header strong, time, input[type=time], .person-time { font-variant-numeric: tabular-nums; }
.pick-location-bar { background: var(--brand-pine); }

/* Shared focused tasks. Preserve native inputs and all validation behavior. */
dialog { border-radius: var(--brand-radius-panel); }
dialog::backdrop { background: var(--brand-backdrop); }
dialog input:not([type=checkbox]):not([type=radio]), dialog select, dialog textarea {
  color: var(--brand-pine);
  background: var(--brand-field);
  border-color: var(--brand-border);
  border-radius: var(--brand-radius-field);
  font-size: 16px;
}
dialog .dialog-heading .icon-button { width: 44px; height: 44px; min-height: 44px; background: var(--brand-field); }
.dialog-lead, #about-dialog > p { color: var(--brand-muted); }
.detail-tag { background: var(--brand-mint); color: var(--brand-pine); }
.detail-quote, .detail-meta, .detail-panel .source-note { color: var(--brand-muted); }
.auth-method-note, .auth-service-note, .auth-code-caption { color: var(--brand-muted); }
.auth-text-button { color: var(--brand-action); }

/* Access and administration share the same identity, with a readable document rhythm. */
.welcome-layout { gap: clamp(40px, 7vw, 100px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.welcome-copy, .login-section { min-width: 0; }
.welcome-copy h1 { color: var(--brand-pine); }
.welcome-copy h1 span { color: var(--brand-action); }
.welcome-lead { color: var(--brand-muted); }
.welcome-visual { margin: 28px 0 0; max-width: 470px; }
.welcome-visual img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 50% 42%; border-radius: 14px; }
.welcome-visual figcaption { margin-top: 10px; color: var(--brand-muted); font-size: 13px; line-height: 1.6; }
.welcome-place p, .privacy-copy, .section-lead, .auth-note, .access-footer { color: var(--brand-muted); }
.access-form input, .account-search-row input { color: var(--brand-pine); background: var(--brand-surface); border-color: var(--brand-control-border); border-radius: var(--brand-radius-field); }
.access-form label { font-size: 14px; }
.access-form input { font-size: 16px; }
.access-form .code-input { font-size: 25px; }
.access-form label small { color: var(--brand-muted); }
.access-header .brand { flex-shrink: 0; }
.mode-summary { color: var(--brand-pine); background: var(--brand-mint); }
.mode-description { color: var(--brand-pine); }
.mode-option, .access-setting, .access-history li, .account-list li, .access-footer { border-color: var(--brand-border); }
.switch:before { background: var(--brand-muted); }
.switch[aria-checked=true]:before { background: var(--brand-action); }
.access-form .text-button, .text-button { color: var(--brand-muted); }
.account-list, .access-history { scrollbar-color: var(--brand-scrollbar) var(--brand-snow); }

/* Editor keeps its tool layout, while every surrounding control uses the same system. */
.editor-header, .editor-footer, .catalog, .properties { color: var(--brand-pine); background: var(--brand-surface); }
.editor-header button, .editor-footer button, .catalog button, .properties button, .map-toolbar button, .camera-controls button, .file-button {
  border-color: var(--brand-control-border);
  border-radius: var(--brand-radius-field);
  color: var(--brand-pine);
  background: var(--brand-surface);
}
.editor-header button.primary, .properties button.primary { color: #fff; border-color: var(--brand-action); background: var(--brand-action); }
.editor-header button.primary:hover:not(:disabled), .properties button.primary:hover:not(:disabled) { background: var(--brand-action-hover); }
.editor-header button:hover:not(:disabled), .catalog button:hover:not(:disabled), .properties button:hover:not(:disabled), .file-button:hover { background: var(--brand-field); }
.object-list button.selected, .map-toolbar .active { color: var(--brand-pine); background: var(--brand-mint); border-color: var(--brand-mint); }
.editor-title p, .catalog-heading span, .object-list button small, .muted { color: var(--brand-muted); }
.properties input, .properties textarea, .properties select, #settings-form input, #settings-form select { color: var(--brand-pine); background: var(--brand-field); border-color: var(--brand-control-border); border-radius: var(--brand-radius-field); }
.properties label, #settings-form label { font-size: 13px; }
.drawing-controls, .map-feedback { background: var(--brand-surface); color: var(--brand-pine); border-radius: var(--brand-radius-control); }
.preview-banner { background: var(--brand-pine); color: #fff; }
.vertex { background: var(--brand-action); }
.vertex.midpoint { background: var(--brand-pine); }

/* Desktop map controls stay compact; the social and form text gets room to read. */
@media (min-width: 901px) {
  .sidebar-intro h1 { font-size: 29px; line-height: 1.18; }
  .sidebar-intro p { font-size: 14px; line-height: 1.6; }
  .mode-tabs button { min-height: 44px; font-size: 13px; padding: 8px 5px; }
  .social-actions button, .location-methods button, .place-social-actions button { min-height: 44px; font-size: 12px; }
  .search-box { min-height: 44px; }
  .search-box input { font-size: 14px; }
  .filter-row button { min-height: 44px; font-size: 12px; }
  .list-heading h2 { font-size: 14px; }
  .list-heading > span { font-size: 12px; }
  .person-name { font-size: 15px; }
  .person-place { font-size: 13px; }
  .person-note { font-size: 13px; line-height: 1.6; }
  .person-time, .event-attendance { font-size: 12px; }
  .sidebar-footer p { font-size: 11px; }
  .map-pill { min-height: 44px; font-size: 12px; }
  .region-navigation > button, .region-navigation > div button { font-size: 12px; }
  .map-status, .now-hint, .timeline-header span { font-size: 12px; }
  .dialog-lead, #about-dialog > p { font-size: 14px; line-height: 1.7; }
  dialog label { font-size: 14px; }
  .form-error { font-size: 13px; }
  .detail-panel .detail-meta, .detail-panel .source-note { font-size: 12px; }
  .detail-panel .detail-quote { font-size: 14px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .sidebar-intro { padding-top: 20px; padding-bottom: 18px; }
  .sidebar-intro h1 { font-size: 26px; }
  .sidebar-intro p { margin-top: 8px; font-size: 13px; }
  .person-row { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .topbar { gap: 14px; padding-inline: 20px; }
  .topbar .brand > img { width: 164px; height: 38px; }
  .topbar .prototype { display: none; }
  .region-navigation { right: 70px; }
  .region-navigation > div button { font-size:var(--brand-type-control,12px); padding-inline: 7px; }
}

/* Mobile uses the same colors and assets, without changing its safe-area layout. */
@media (max-width: 900px) {
  body { font-size: 15px; }
  .brand > img, .editor-brand > img { width: 160px; height: 36px; }
  #mobile-destination > img { width: 34px; height: 30px; object-fit: contain; flex-shrink: 0; }
  #mobile-destination small { color: var(--brand-pine); }
  #mobile-header button, .mobile-square, #mobile-map-time, .mobile-sheet, #mobile-nav { background: var(--brand-surface); }
  #mobile-header button { border-radius: 16px; }
  .mobile-square { color: var(--brand-pine); }
  #mobile-nav { border-color: var(--brand-border); }
  #mobile-nav button { color: var(--brand-muted); font-size:var(--brand-type-control,12px); }
  #mobile-nav button.selected { color: var(--brand-pine); }
  #mobile-nav button.selected > svg { background: var(--brand-mint); box-shadow: none; outline: 6px solid var(--brand-mint); }
  #mobile-nav .mobile-create > svg { color: #fff; background: var(--brand-action); }
  .mobile-mode { background: var(--brand-field); }
  .mobile-mode button.selected { background: var(--brand-pine); color: #fff; }
  .mobile-sheet { box-shadow: 0 -5px 25px #1f1f1f14; }
  .m-chip { color: var(--brand-pine); border-color: var(--brand-border); font-size: 14px; }
  .m-chip.selected { color: #fff; background: var(--brand-pine); border-color: var(--brand-pine); }
  .m-search, #mobile-panel-content input, #mobile-panel-content select, #mobile-panel-content textarea { background: var(--brand-field); }
  .m-person, .m-event-row { border-color: var(--brand-border); }
  .m-person strong, .m-event-row strong { color: var(--brand-pine); }
  .m-person small, .m-event-row small, .m-person em { color: var(--brand-muted); }
  .m-avatar { color: #fff; background: var(--brand-action); }
  .m-avatar.m-demo { color: #fff; background: #526148; }
  .map-marker:not(.event-marker):not(.place-pin)[data-audience="friend"] .avatar { background: var(--brand-friend-position) !important; }
  .event-marker .event-pin, .event-marker .marker-label { color: #fff; background: var(--brand-pine); }
  .m-primary, #mobile-panel-content .primary { background: var(--brand-action); color: #fff; }
  .m-primary:hover:not(:disabled), #mobile-panel-content .primary:hover:not(:disabled) { background: var(--brand-action-hover); }
  .m-secondary { color: var(--brand-pine); background: var(--brand-field); }
  .m-empty, .m-description, .mobile-time-zone, #mobile-map-summary { color: var(--brand-muted); }
  .mobile-sheet-heading h2 { color: var(--brand-pine); }
  .mobile-secondary { color: var(--brand-pine); background: var(--brand-field); }
  .detail-panel, dialog { color: var(--brand-pine); background: var(--brand-surface); }
  .detail-panel .detail-meta, .detail-panel .source-note { color: var(--brand-muted); }
}
@media (max-width: 600px) {
  .access-header .brand > img { width: 156px; height: 34px; }
  .welcome-copy h1 { font-size: clamp(32px, 8.6vw, 40px); }
  .welcome-lead { font-size: 15px; line-height: 1.75; }
  .welcome-visual { margin-top: 22px; max-width: none; }
  .welcome-visual img { height: 160px; }
  .auth-note, .privacy-copy, .access-footer { font-size: 13px; }
  .header-actions { gap: 12px; }
  .admin-page .access-header { flex-wrap: wrap; gap: 12px 18px; }
  .admin-page .header-actions { flex-basis: 100%; margin-left: 0; justify-content: space-between; }
  .editor-brand > img { width: 140px; height: 32px; }
}
@media (max-width: 760px) {
  .editor-actions button { min-height: 44px; font-size: 12px; }
  .properties input:not([type=checkbox]):not([type=color]), .properties select, .properties textarea { font-size: 16px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Color carries selection and status; the winter map remains the main surface. */
input[type=checkbox], input[type=radio], #time-slider { accent-color: var(--brand-selection); }
dialog input:not([type=checkbox]):not([type=radio]):not([type=color]), dialog select, dialog textarea,
#mobile-panel-content input:not([type=checkbox]):not([type=radio]), #mobile-panel-content select, #mobile-panel-content textarea { border-color: var(--brand-control-border); }
.person-row.selected, .object-list button.selected { background: var(--brand-selection-surface); outline: 1px solid var(--brand-selection); outline-offset: -1px; }
.person-row.selected:focus-visible, .object-list button.selected:focus-visible { outline: 3px solid var(--brand-focus); outline-offset: -3px; }
.timeline-header button.selected, .region-navigation > div button.selected, .view-controls .selected, #mobile-all-day.selected { color: var(--brand-selection); background: var(--brand-selection-surface); }
.filter-row button[data-filter=friends].selected, .m-chip[data-m-action=map-audience][data-value=friends].selected { color: var(--brand-surface); background: var(--brand-friend-position); border-color: var(--brand-friend-position); }
.m-chip[data-m-action=map-audience][data-value=all].selected { color: var(--brand-surface); background: var(--brand-public-position); border-color: var(--brand-public-position); }
.location-preview { color: var(--brand-info); background: var(--brand-info-surface); }
.presence-status, .mode-summary { color: var(--brand-success); background: var(--brand-success-surface); }
.switch[aria-checked=true]:before { background: var(--brand-success); }
.mode-option:has(input:checked) { color: var(--brand-selection); background: var(--brand-selection-surface); border-color: var(--brand-selection); }
#m-profile-draft-status:not(:empty) { color: var(--brand-warning); background: var(--brand-warning-surface); border-radius: var(--brand-radius-field); padding: 10px 12px; }
.form-error:not(:empty), .map-status.error { color: var(--brand-danger); background: var(--brand-error-surface); border-radius: var(--brand-radius-field); padding: 10px 12px; }
@media (forced-colors: active) {
  .person-row.selected, .object-list button.selected { outline-color: Highlight; }
  .location-preview, .presence-status, #m-profile-draft-status, .form-error { color: CanvasText; background: Canvas; }
}

/* City identity: graphite actions, bronze outlines and olive selection. */
h1, h2 { font-weight: 700; }
.welcome-copy h1 { font-size: clamp(36px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.welcome-copy h1 span { color: var(--brand-graphite); }
.welcome-visual img { border-radius: var(--brand-radius-panel); }
.secondary, .mobile-secondary, .auth-secondary, .m-secondary {
  color: var(--brand-chocolate);
  background: var(--brand-white);
  border: 1px solid var(--brand-bronze);
}
.secondary:hover:not(:disabled), .mobile-secondary:hover:not(:disabled), .auth-secondary:hover:not(:disabled), .m-secondary:hover:not(:disabled) { background: var(--brand-field); }
.mode-tabs, .auth-tabs, .mobile-mode { background: var(--brand-beige); }
.mode-tabs button.active, .auth-tabs button.selected, .mobile-mode button.selected { color: var(--brand-white); background: var(--brand-action); }
.filter-row button.selected, .map-pill.selected, .m-chip.selected { color: var(--brand-white); background: var(--brand-olive-ink); border-color: var(--brand-olive-ink); }
.filter-row button[data-filter=friends].selected, .m-chip[data-m-action=map-audience][data-value=friends].selected { color: var(--brand-white); background: var(--brand-friend-position); border-color: var(--brand-friend-position); }
.m-chip[data-m-action=map-audience][data-value=all].selected { color: var(--brand-white); background: var(--brand-public-position); border-color: var(--brand-public-position); }
#application-shell .av-primary, #application-dialog .av-primary,
#application-shell .application-panels .ap-primary, .svoi-place-card .pc-primary { border-radius: var(--brand-radius-control); background: var(--brand-action); color: var(--brand-white); }
#application-shell .av-primary:hover:not(:disabled), #application-dialog .av-primary:hover:not(:disabled),
#application-shell .application-panels .ap-primary:hover:not(:disabled), .svoi-place-card .pc-primary:hover:not(:disabled) { background: var(--brand-action-hover); }
#application-shell .av-secondary, #application-dialog .av-secondary,
#application-shell .application-panels .ap-secondary, .svoi-place-card .pc-secondary {
  border: 1px solid var(--brand-bronze);
  border-radius: var(--brand-radius-control);
  background: var(--brand-white) !important;
  color: var(--brand-chocolate) !important;
}
#application-shell .av-secondary:hover:not(:disabled), #application-dialog .av-secondary:hover:not(:disabled),
#application-shell .application-panels .ap-secondary:hover:not(:disabled), .svoi-place-card .pc-secondary:hover:not(:disabled) { background: var(--brand-field) !important; }
#application-shell .av-segment, #application-dialog .av-segment { background: var(--brand-beige); }
#application-shell .av-segment>button[aria-pressed=true], #application-dialog .av-segment>button[aria-pressed=true] { color: var(--brand-white) !important; background: var(--brand-action) !important; outline: 0; box-shadow: none; }
#application-shell .ap-interest-grid button[aria-pressed=true], #application-shell .ap-select-tags button[aria-pressed=true],
.svoi-place-card .pc-review-filters>button[aria-pressed=true] { color: var(--brand-white); background: var(--brand-olive-ink); }
#application-shell .av-map-filters>.av-segment { background: var(--brand-beige); }
#application-shell .av-map-filters>.av-segment>button[aria-pressed=true] { color: var(--brand-white) !important; background: var(--brand-action) !important; outline: 0; box-shadow: none; }
@media (max-width: 600px) { .welcome-copy h1 { font-size: clamp(30px, 8.5vw, 40px); } }
@media (forced-colors: active) {
  .mode-tabs button.active, .auth-tabs button.selected, .mobile-mode button.selected,
  .filter-row button.selected, .m-chip.selected,
  #application-shell .av-segment>button[aria-pressed=true], #application-dialog .av-segment>button[aria-pressed=true] { outline: 1px solid Highlight; }
}
/* The integrated application creates these headers at runtime. */
#application-shell .av-wordmark > img, #application-shell .ap-wordmark > img, #application-dialog .ap-wordmark > img { display:block; width:114px; height:30px; object-fit:contain; object-position:left center; }


/* Bronze controls with the approved light map selector and menu refinements. */
/* Colour-only compatibility bridge. This new URL bypasses older public SW caches.
   Keep after brand.css. Preserve all layout, typography, runtime and map states. */
:root {
  --brand-action: #8b7050;
  --brand-action-hover: #735638;
  --brand-map-create: #1f1f1f;
  --brand-map-create-hover: #38332e;
}
body.application-v3 {
  --av-bronze: var(--brand-action);
  --av-bronze-dark: var(--brand-action-hover);
}
#application-shell, #application-dialog {
  --bronze: var(--brand-action);
  --bronze-dark: var(--brand-action-hover);
}
#application-shell .application-panels {
  --ap-bronze: var(--brand-action);
  --ap-bronze-dark: var(--brand-action-hover);
}
.svoi-place-card {
  --pc-bronze: var(--brand-action);
  --pc-dark: var(--brand-action-hover);
}
.primary, button.primary, a.primary,
.m-primary, #mobile-panel-content .primary,
#application-shell .av-primary, #application-dialog .av-primary,
#application-shell .application-panels .ap-primary, .svoi-place-card .pc-primary {
  color: #fff;
  background: var(--brand-action);
  border-color: var(--brand-action);
}
.primary:hover:not(:disabled), button.primary:hover:not(:disabled), a.primary:hover,
.m-primary:hover:not(:disabled), #mobile-panel-content .primary:hover:not(:disabled),
#application-shell .av-primary:hover:not(:disabled), #application-dialog .av-primary:hover:not(:disabled),
#application-shell .application-panels .ap-primary:hover:not(:disabled), .svoi-place-card .pc-primary:hover:not(:disabled) {
  color: #fff;
  background: var(--brand-action-hover);
  border-color: var(--brand-action-hover);
}
.mode-tabs button.active, .auth-tabs button.selected, .mobile-mode button.selected,
.filter-row button.selected, .map-pill.selected, .m-chip.selected {
  color: #fff;
  background: var(--brand-action);
}
#application-shell .av-segment>button[aria-pressed=true],
#application-dialog .av-segment>button[aria-pressed=true],
#application-shell .av-map-filters>.av-segment>button[aria-pressed=true] {
  color: #fff !important;
  background: var(--brand-action) !important;
}
#application-shell .application-panels .ap-cover-controls .ap-icon-button,
#application-shell .ap-photo-change,
.pwa-page button, .pwa-page .pwa-primary, .pwa-connection button,
.search-row button, .spb-focus button[aria-pressed=true], nav a[aria-current=page] {
  color: #fff;
  background: var(--brand-action);
}
.pwa-page button:hover:not(:disabled), .pwa-page .pwa-primary:hover,
.pwa-connection button:hover:not(:disabled), .search-row button:hover:not(:disabled) {
  background: var(--brand-action-hover);
}
.auth-text-button, .destination-action, .timeline-header button.selected,
.region-navigation > div button.selected, .social-actions button:first-child {
  color: var(--brand-action-hover);
}
/* The one graphite filled button: floating event creation above GPS broadcast. */
#application-shell .av-create {
  color: #fff;
  background: var(--brand-map-create);
}
#application-shell .av-create:hover:not(:disabled) {
  background: var(--brand-map-create-hover);
}

/* Approved menu refinement: keep the map light; internal selectors use bronze. */
#application-shell[data-page=map] button {
  --paper: #faf7f1; --ink: #27241f; --muted: #6e685e; --soft: #efebe3;
}
#application-shell .av-map-filters>.av-segment { background: #efebe3; }
#application-shell .av-map-filters>.av-segment>button { color: #27241f; }
#application-shell .av-map-filters>.av-segment>button[aria-pressed=true] {
  color: #654829 !important; background: #fffaf1 !important;
  outline: 1px solid #e4cdae; box-shadow: 0 2px 7px #6c4f3226;
}
#application-shell .av-map-filters>.av-group-picker { background: #efebe3 !important; color: #27241f; }
#application-shell[data-page=map] .av-tools>button,
#application-shell[data-page=map] .av-tools>div { background: #faf7f1 !important; }
#application-shell[data-page=map] .av-tools button { color: #27241f; }
#application-shell[data-page=map] .av-nav>button { color: #6e685e !important; }
#application-shell[data-page=map] .av-nav>button.is-active { color: #795331 !important; }
#application-shell[data-page=map] .av-nav>button.av-broadcast { color: #fffdf8 !important; background: #8b7050 !important; }
#application-shell .av-nav>button.av-broadcast.is-live { background: #37674b !important; }
/* The same segmented surface in Friends, Plans and Messages. */
#application-shell[data-page=company] .ap-tabs,
#application-shell[data-page=plans] .av-period .av-segment,
#application-shell .av-chat-tabs { background: #e7dcc8; }
#application-shell[data-page=company] .ap-tabs>button[aria-pressed=true],
#application-shell[data-page=plans] .av-period .av-segment>button[aria-pressed=true] {
  color: #fffdf8 !important; background: #8b7050 !important;
  outline: 0; box-shadow: none;
}
#application-shell .av-chat-tabs {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2px; padding: 3px; border-radius: 24px;
}
#application-shell .av-chat-tabs>button {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; min-width: 0; min-height: 44px;
  padding: 6px 4px !important; border-radius: 21px;
  font-size: 12px !important; color: #1f1f1f !important;
  background: transparent !important;
}
#application-shell .av-chat-tabs>button[aria-selected=true] {
  color: #fffdf8 !important; background: #8b7050 !important;
}
#application-shell .av-chat-tabs .av-badge {
  flex-shrink: 0; min-width: 18px; height: 20px; padding: 0 4px;
  font-size: 10px; font-variant-numeric: tabular-nums;
  color: #fffdf8; background: #8b7050;
}
#application-shell .av-chat-tabs>button[aria-selected=true] .av-badge {
  color: #735638; background: #fffaf1;
}
/* Light icon actions: friend/group addition, new plan, viewed-profile controls. */
#application-shell[data-page=company] .ap-header>.ap-icon-button.ap-bronze,
#application-shell[data-page=plans] .av-panel-heading>button[data-av-action=create],
#application-shell .application-panels .ap-cover-controls>.ap-icon-button {
  color: #735638 !important; background: #efebe3 !important;
  border-radius: 50%;
}
#application-shell[data-page=company] .ap-header>.ap-icon-button.ap-bronze:hover,
#application-shell[data-page=plans] .av-panel-heading>button[data-av-action=create]:hover,
#application-shell .application-panels .ap-cover-controls>.ap-icon-button:hover {
  background: #e7dcc8 !important;
}
@media (forced-colors: active) {
  #application-shell[data-page=company] .ap-tabs>button[aria-pressed=true],
  #application-shell[data-page=plans] .av-period .av-segment>button[aria-pressed=true],
  #application-shell .av-chat-tabs>button[aria-selected=true] { outline: 1px solid Highlight; }
}
