:root {
  color-scheme: light;
  --ink: #352b52;
  --muted: #8d849f;
  --line: #ebe5f4;
  --paper: #fff;
  --canvas: #f3efff;
  --blue: #7658c8;
  --blue-dark: #6045ad;
  --lavender: #eee8ff;
  --coral: #ed8da6;
  --mint: #58c9ac;
  --body-font: "Nunito Sans", sans-serif;
  --heading-font: Fraunces, serif;
  font-family: var(--body-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
@media (max-width: 420px) {
  .map-mode-button { width: 34px; height: 34px; }
  .map-mode-button svg { width: 18px; height: 18px; }
  .map-add-button { padding: 9px 13px; font-size: 12px; }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app-shell { width: min(1600px, 100%); margin: 0 auto; padding: 0 48px; }

.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7e0f0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; background: #e9edff; border-radius: 13px; }
.brand-mark svg { width: 27px; height: 27px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg circle { fill: #ff9a9e; stroke: #ff9a9e; }
.brand-mark svg circle.brand-globe { fill: #f7f3ff; stroke: var(--blue); }
.brand-mark svg .brand-globe-lines { fill: none; stroke: var(--blue); stroke-width: 1; }
.brand-mark svg .brand-spark { fill: #ff9a9e; stroke: #ff9a9e; }
.brand-name { font-family: Manrope, sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -1.1px; }
.brand-name span { color: var(--blue); }
.top-nav { height: 100%; display: flex; align-items: center; gap: 34px; }
.nav-link { height: 100%; position: relative; display: flex; align-items: center; gap: 8px; color: #777e96; font-size: 13px; font-weight: 600; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { position: absolute; content: ""; height: 2px; bottom: -1px; left: 0; right: 0; border-radius: 2px; background: var(--blue); }
.nav-link span { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 7px; background: #e9edff; color: var(--blue); font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 15px; min-width: 220px; justify-content: flex-end; }
.private-badge { display: flex; align-items: center; gap: 7px; color: #7a8095; font-size: 11px; font-weight: 600; }
.private-badge span, .sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #54c9a9; box-shadow: 0 0 0 3px #e4f7f1; }
.avatar { width: 35px; height: 35px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(140deg, #f8a5ae, #8978e8); font-weight: 700; }

.welcome-row { min-height: 164px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.eyebrow, .section-kicker { color: #9298ab; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: Manrope, sans-serif; font-size: clamp(26px, 2.4vw, 35px); line-height: 1.19; letter-spacing: -1.55px; font-weight: 800; }
h1 span { color: var(--blue); }
.welcome-copy { margin-bottom: 0; color: #858ba0; font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; padding: 12px 17px; border-radius: 11px; color: #fff; background: var(--blue); box-shadow: 0 5px 13px #4667e82c; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s, box-shadow .2s; }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 7px 17px #4667e839; }
.plus-icon { font-size: 17px; font-weight: 400; line-height: 12px; }
.add-listing-button { white-space: nowrap; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr) 1.16fr; gap: 12px; margin-bottom: 18px; }
.stat-card, .deadline-card { height: 82px; display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #edf0f5; border-radius: 14px; background: var(--paper); }
.stat-icon { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; }
.stat-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon-blue { color: #5c73e6; background: #edf0ff; }
.stat-icon-lilac { color: #9774d8; background: #f3edff; }
.stat-icon-peach { color: #e99083; background: #fff0ed; }
.stat-card > div, .deadline-card > div { display: grid; gap: 3px; }
.stat-label { color: #8e93a6; font-size: 10px; font-weight: 500; }
.stat-card strong { font-family: Manrope, sans-serif; font-size: 19px; line-height: 1.1; font-weight: 800; }
.deadline-card { position: relative; overflow: hidden; border-color: #e9eaff; background: linear-gradient(115deg, #f1f0ff, #fff5f4); }
.deadline-card strong { color: #514db1; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.5px; }
.deadline-sparkle { position: absolute; top: 13px; right: 15px; color: #e996a0; font-size: 18px; }
.deadline-caption { align-self: flex-end; margin-left: auto; margin-bottom: 4px; color: #9893b2; font-size: 9px; white-space: nowrap; }

.workspace-grid { min-height: 525px; display: grid; grid-template-columns: minmax(280px, .92fr) minmax(380px, 1.55fr) minmax(260px, .88fr); gap: 14px; align-items: stretch; }
.panel { overflow: hidden; border: 1px solid #edf0f5; border-radius: 16px; background: var(--paper); }
.list-panel { display: flex; flex-direction: column; min-height: 525px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 20px 19px 13px; }
.panel-actions { display: flex; align-items: center; gap: 7px; }
.panel-popover-anchor { position: relative; }
.sort-popover, .filter-row { position: absolute; z-index: 15; top: calc(100% + 9px); right: 0; min-width: 205px; padding: 8px; border: 1px solid #e8e0ef; border-radius: 14px; background: var(--paper); box-shadow: 0 12px 30px #24163824; }
.sort-popover[hidden], .filter-row[hidden] { display: none !important; }
.sort-popover { display: grid; gap: 4px; }
.sort-option { padding: 9px 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: 10px; text-align: left; }
.sort-option:hover, .sort-option.selected { color: var(--blue); background: #eee8ff; }
.filter-menu-button.has-filter { border-color: #b7a3df; color: var(--blue); background: #eee8ff; }
.panel-heading .section-kicker { margin-bottom: 7px; }
h2 { margin-bottom: 0; font-family: Manrope, sans-serif; font-size: 17px; line-height: 1.2; letter-spacing: -.45px; font-weight: 800; }
.heading-count { margin-left: 4px; color: #a0a5b4; font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600; }
.icon-button, .map-menu-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #7e8499; background: #fff; }
.icon-button svg, .map-menu-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.search-box { display: flex; align-items: center; height: 38px; gap: 8px; margin: 0 15px 12px; padding: 0 10px; border: 1px solid #eceef4; border-radius: 9px; background: #fbfbfd; }
.search-box svg { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: #a3a8b7; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #a0a5b3; }
kbd { flex: 0 0 auto; padding: 3px 4px; border: 1px solid #e9ebf1; border-radius: 4px; color: #a1a5b3; background: #fff; font-family: inherit; font-size: 8px; }
.filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(320px, calc(100vw - 48px)); min-width: 0; }
.filter-row .filter-chip { justify-content: flex-start; }
.filter-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; min-height: 27px; padding: 0 9px; border: 1px solid #eceef3; border-radius: 7px; color: #858ba0; background: #fff; font-size: 9px; font-weight: 600; }
.filter-chip.selected { border-color: #e0e5ff; color: var(--blue); background: #f0f2ff; }
.filter-chip span { color: #a4a8b6; }
.filter-chip:last-child { padding: 0 9px; color: #ed8c9a; font-size: 13px; }
.listing-list { flex: 1; min-height: 170px; padding: 0 12px 12px; overflow-y: auto; }
.empty-list { height: 100%; min-height: 170px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 18px; text-align: center; }
.empty-illustration { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 17px; color: var(--blue); background: #f0f2ff; }
.empty-illustration svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-list strong { margin-bottom: 5px; font-family: Manrope, sans-serif; font-size: 12px; }
.empty-list p { max-width: 205px; margin: 0; color: #969bad; font-size: 10px; line-height: 1.6; }
.listing-card { position: relative; margin-bottom: 8px; padding: 12px; border: 1px solid #eef0f5; border-radius: 11px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.listing-card:hover, .listing-card.active { border-color: #cbd4ff; box-shadow: 0 4px 14px #4e65d80c; transform: translateY(-1px); }
.listing-card-head { display: flex; align-items: flex-start; gap: 9px; }
.listing-thumb { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: linear-gradient(145deg, #eff1ff, #fbf0f0); }
.listing-thumb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.listing-title-wrap { min-width: 0; flex: 1; }
.listing-title { display: block; overflow: hidden; margin: 1px 0 3px; color: var(--ink); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.listing-location { overflow: hidden; color: #969bad; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-toggle { flex: 0 0 auto; padding: 1px 0 0 3px; border: 0; color: #c7cad5; background: transparent; font-size: 15px; line-height: 1; }
.favorite-toggle.active { color: #f18496; }
.listing-meta { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 10px; }
.listing-rent { color: #313a5c; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 800; }
.listing-rent small { color: #9b9fb0; font-family: "DM Sans", sans-serif; font-size: 8px; font-weight: 500; }
.status-badge { max-width: 135px; overflow: hidden; padding: 4px 7px; border-radius: 6px; color: #777f9b; background: #f3f4f8; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.status-application { color: #6b5bbb; background: #f1edff; }
.status-visit { color: #268a78; background: #e5f7f2; }
.status-waiting { color: #a7782c; background: #fff4df; }
.status-accepted { color: #30836c; background: #e1f6ed; }
.status-rejected { color: #c06d7c; background: #fff0f2; }
.list-footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 12px 14px; border-top: 1px solid #f0f1f5; color: #989dae; font-size: 8px; }
.list-footer > span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.list-footer .sync-dot { width: 5px; height: 5px; }
.list-footer button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 8px; font-weight: 600; white-space: nowrap; }

.map-panel { position: relative; min-height: 525px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e7eaf3; border-radius: 16px; background: #fdfdff; }
.map-head { z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 19px 19px 10px; }
.map-title { display: flex; align-items: center; gap: 10px; }
.map-title-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #6277df; background: #edf0ff; }
.map-title-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.map-title .section-kicker { margin-bottom: 4px; }
.map-title h2 { font-size: 15px; }
.map-menu-button { width: 30px; height: 30px; }
.region-pills { z-index: 2; display: flex; gap: 6px; padding: 1px 19px 0; overflow-x: auto; scrollbar-width: none; }
.region-pills::-webkit-scrollbar { display: none; }
.region-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 9px; border: 1px solid #eceef4; border-radius: 8px; color: #858ba0; background: #fff; font-size: 9px; font-weight: 600; transition: .2s; }
.region-pill.active { border-color: #dce2ff; color: var(--blue); background: #f1f3ff; }
.region-dot { width: 6px; height: 6px; border-radius: 50%; background: #babfe0; }
.dot-france { background: #6f86f4; }.dot-europe { background: #b393e8; }.dot-asia { background: #f29b9c; }
.globe-wrap { position: relative; flex: 1; min-height: 380px; margin-top: 5px; overflow: hidden; background: radial-gradient(ellipse at 50% 48%, #f5f6ff 0, #fbfbff 43%, #fff 76%); }
.globe-halo { position: absolute; inset: 9% 9% 6%; border-radius: 50%; background: radial-gradient(ellipse, #dce3ff5e, #f1e7ff18 53%, transparent 74%); filter: blur(15px); }
#globeViz { position: absolute; inset: 0; z-index: 1; }
#globeViz[hidden] { display: none !important; }
#globeViz canvas { display: block; }
.map-loading { position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; transform: translate(-50%,-50%); color: #7780a4; font-size: 10px; transition: opacity .3s; pointer-events: none; }
.map-loading.hidden { opacity: 0; }
.loading-spinner { width: 13px; height: 13px; border: 2px solid #dfe4ff; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-tooltip { position: absolute; z-index: 6; top: 14px; left: 14px; display: none; width: min(340px, calc(100% - 28px)); border: 1px solid #e9eaf4; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px #14102138; pointer-events: auto; }
.map-tooltip-card { display: flex; width: 100%; gap: 12px; padding: 11px; border: 0; border-radius: inherit; color: #5e6680; background: transparent; text-align: left; cursor: pointer; }
.map-tooltip-photo { flex: 0 0 92px; height: 88px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: #8977bc; background: linear-gradient(145deg, #eee9ff, #f8e9ee); }
.map-tooltip-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-tooltip-photo svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.map-tooltip-copy { min-width: 0; display: grid; align-content: center; gap: 3px; }
.map-tooltip-copy > strong, .map-tooltip-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-tooltip-copy > strong { color: #35304b; font-size: 14px; }
.map-tooltip-copy > span { color: #858096; font-size: 12px; }
.map-tooltip-copy .map-tooltip-meta { color: #6c5a96; font-size: 11px; }
.map-tooltip-copy .map-tooltip-action { margin-top: 3px; color: #7658c8; font-size: 11px; font-weight: 700; }
.map-note { position: absolute; z-index: 2; bottom: 38px; left: 50%; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); color: #9197ac; font-size: 9px; white-space: nowrap; pointer-events: none; }
.note-pin { color: #e79aa0; }
.map-attribution { position: absolute; z-index: 2; bottom: 7px; right: 11px; color: #b0b3c1; font-size: 7px; pointer-events: none; }
.map-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 19px 8px; color: #969bad; font-size: 8px; }
.map-hint { display: flex; align-items: center; gap: 6px; }
.drag-icon { color: #9da5c6; font-size: 13px; }
.map-legend { display: flex; gap: 12px; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.legend-pink { background: #f18a9a; }.legend-blue { background: #5272e9; }

.details-panel { display: flex; flex-direction: column; min-height: 525px; padding: 19px 17px 14px; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.detail-live { display: flex; align-items: center; gap: 5px; color: #74a999; font-size: 8px; white-space: nowrap; }
.detail-live i { width: 5px; height: 5px; border-radius: 50%; background: #59c7a6; }
.detail-content { flex: 1; display: flex; flex-direction: column; }
.detail-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 30px 6px; }
.detail-orbit { position: relative; width: 146px; height: 135px; align-self: center; display: grid; place-items: center; margin: 0 0 17px; }
.orbit-ring { position: absolute; inset: 11px 6px; border: 1px solid #e8eaff; border-radius: 50%; transform: rotate(-24deg); }
.orbit-ring::after { position: absolute; content: ""; top: 14px; right: 13px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #f08e9b; box-shadow: 0 0 0 4px #fcebed; }
.orbit-ring.two { inset: 0 17px; border-color: #f1eafa; transform: rotate(35deg); }
.orbit-ring.two::after { top: auto; right: auto; bottom: 13px; left: 7px; background: #8496f3; box-shadow: 0 0 0 4px #edf0ff; }
.detail-house { z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #e6eaff; border-radius: 22px; color: var(--blue); background: linear-gradient(145deg, #f0f2ff, #fff4f3); box-shadow: 0 10px 24px #5966bd16; }
.detail-house svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.detail-empty h3 { margin: 0 0 7px; font-family: Manrope, sans-serif; font-size: 16px; line-height: 1.35; letter-spacing: -.5px; }
.detail-empty p { margin: 0; color: #9298aa; font-size: 10px; line-height: 1.65; }
.detail-empty .detail-action { margin-top: 15px; padding: 0; border: 0; color: var(--blue); background: none; font-size: 10px; font-weight: 700; }
.detail-full { padding-top: 19px; }
.detail-photo { position: relative; min-height: 130px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: radial-gradient(ellipse at 25% 15%, #fae7ec, transparent 50%), linear-gradient(145deg, #e6eaff, #f8f6ff 55%, #f6e8e5); }
.detail-photo.has-image { min-height: 0; }
.detail-preview-image { display: block; width: 100%; height: auto; object-fit: contain; }
.detail-photo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.detail-photo-placeholder[hidden] { display: none !important; }
.detail-photo-placeholder svg { width: 60px; height: 60px; fill: none; stroke: #818bd8; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 6px #7078bb2c); }
.photo-gallery { display: flex; gap: 7px; overflow-x: auto; padding: 8px 1px 2px; }
.photo-gallery-thumb { flex: 0 0 53px; width: 53px; height: 42px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #eeeaf5; }
.photo-gallery-thumb.active { border-color: #8062bc; box-shadow: 0 0 0 2px #8062bc25; }
.photo-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-tag-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.detail-type { color: #868ca0; font-size: 9px; font-weight: 600; }
.detail-title { margin: 8px 0 5px; font-family: Manrope, sans-serif; font-size: 17px; line-height: 1.3; letter-spacing: -.6px; }
.detail-address { display: flex; align-items: flex-start; gap: 5px; color: #9298aa; font-size: 9px; line-height: 1.5; }
.detail-address svg { flex: 0 0 auto; width: 12px; height: 12px; fill: none; stroke: #a3a9bc; stroke-width: 1.6; }
.detail-rent { margin: 13px 0 11px; color: #313a5c; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }
.detail-rent small { color: #9a9fb0; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 500; }
.detail-notes { margin: 0 0 13px; padding: 10px; border-radius: 8px; color: #7c8298; background: #f8f8fc; font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.detail-controls { display: flex; gap: 6px; align-items: center; margin: 4px 0 10px; }
.detail-controls select { flex: 1; min-width: 0; height: 32px; padding: 0 7px; border: 1px solid #eceef3; border-radius: 7px; color: #70768d; background: #fff; font-size: 9px; }
.detail-heart, .detail-delete, .detail-edit { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #eceef3; border-radius: 50%; color: #c5c8d3; background: #fff; }
.detail-edit { color: var(--blue); }
.detail-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.detail-heart.active { color: #ed8296; }
.detail-delete { color: #bc8790; }
.detail-link { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: center; margin-top: auto; padding: 10px; border: 0; border-radius: 8px; color: #fff; background: #536be2; font-size: 9px; font-weight: 700; }
.detail-link.disabled { color: #9da2b2; background: #f0f1f5; pointer-events: none; }
.privacy-note { display: flex; align-items: flex-start; gap: 9px; padding: 12px 9px; border-radius: 9px; background: #f6f7fc; }
.privacy-icon { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #7080d9; background: #eaedff; }
.privacy-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.privacy-note p { margin: 0; color: #9298aa; font-size: 8px; line-height: 1.6; }
.privacy-note strong { color: #656d86; }

.app-footer { display: flex; justify-content: space-between; padding: 18px 2px 21px; color: #a1a5b4; font-size: 9px; }
.app-footer i { color: #ee969d; font-style: normal; }
.mobile-break { display: none; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; background: #18203d86; backdrop-filter: blur(4px); }
.modal-backdrop.open { display: flex; animation: fade-in .16s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(495px, 100%); max-height: min(90vh, 760px); overflow-y: auto; padding: 25px; border: 1px solid #eeeef5; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px #11193636; }
.confirm-modal-backdrop { z-index: 24; }
.confirm-modal { position: relative; width: min(420px, 100%); padding: 30px 28px 25px; border: 1px solid #e8deef; border-radius: 23px; color: var(--ink); background: var(--paper); box-shadow: 0 25px 80px #160e2550; text-align: center; }
.confirm-sparkle { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid #e7d8f3; border-radius: 16px; color: #8668ba; background: linear-gradient(145deg, #f3edff, #fff0f2); font-size: 23px; }
.confirm-modal .section-kicker { display: block; margin-bottom: 7px; color: #8d78a9; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.confirm-modal h2 { margin: 0 0 9px; color: var(--ink); font-family: var(--font-display, "Fredoka", sans-serif); font-size: 23px; line-height: 1.2; }
.confirm-modal p { margin: 0 auto; max-width: 325px; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: center; gap: 9px; margin-top: 23px; }
.confirm-actions button { min-height: 42px; padding: 10px 16px; font-size: 12px; }
.danger-button { border: 1px solid #d48699; border-radius: 999px; color: #fff; background: #ad536e; font-weight: 700; transition: background .2s, transform .2s; }
.danger-button:hover { background: #963f5b; transform: translateY(-1px); }
.site-tooltip { position: fixed; z-index: 50; max-width: min(260px, calc(100vw - 20px)); padding: 7px 10px; border: 1px solid #4b3b62; border-radius: 9px; color: #f7f1ff; background: #251b35; box-shadow: 0 6px 18px #0f0b1870; font-size: 11px; font-weight: 600; line-height: 1.35; text-align: center; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
.site-tooltip.visible { opacity: 1; transform: translateY(0); }
.modal-heading { display: flex; align-items: center; gap: 12px; }
.modal-heading-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #536ee6; background: #edf0ff; }
.modal-heading-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modal-heading .section-kicker { margin-bottom: 4px; }
.modal-heading h2 { font-size: 19px; }
.modal-close { align-self: flex-start; width: 29px; height: 29px; margin-left: auto; border: 0; border-radius: 8px; color: #9095a6; background: #f5f5f9; font-size: 20px; line-height: 1; }
.modal-description { margin: 14px 0 18px; color: #83899c; font-size: 11px; line-height: 1.55; }
#listing-form { display: grid; gap: 13px; }
.field-label { display: grid; gap: 6px; color: #5e657d; font-size: 10px; font-weight: 700; }
.field-label > span { display: inline; color: #ed8594; }
.address-field > label { color: #5e657d; font-size: 12px; font-weight: 700; }
.address-field > label > span { color: #ed8594; }
.address-autocomplete { position: relative; }
.address-suggestions { position: absolute; z-index: 25; top: calc(100% + 5px); right: 0; left: 0; display: grid; max-height: 225px; overflow-y: auto; padding: 5px; border: 1px solid #e1d8ec; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px #24163824; }
.address-suggestions[hidden] { display: none !important; }
.address-suggestion { display: grid; gap: 4px; width: 100%; padding: 10px; border: 0; border-radius: 8px; color: #5e657d; background: transparent; text-align: left; }
.address-suggestion:hover, .address-suggestion:focus-visible { outline: 0; background: #f1ecfb; }
.address-suggestion strong { color: #38334b; font-size: 12px; font-weight: 650; line-height: 1.4; }
.address-suggestion span, #address-status { color: #827a91; font-size: 11px; line-height: 1.45; }
.field-label input, .field-label select, .field-label textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #e9ebf1; border-radius: 8px; outline: none; color: #353c59; background: #fff; font-size: 10px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field-label input[type="file"] { min-height: 42px; padding: 7px; }
.field-label input[type="file"]::file-selector-button { margin-right: 9px; padding: 6px 10px; border: 0; border-radius: 999px; color: #604b87; background: #eee8ff; font: inherit; font-weight: 700; }
.photo-link-field > label { color: #5e657d; font-size: 10px; font-weight: 700; }
.photo-link-field .optional-label { color: #ed8594; font-weight: 500; }
.photo-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.photo-url-row .secondary-button { padding: 8px 12px; }
.photo-field-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; }
#photo-status { color: #80748e; font-size: 11px; }
#clear-gallery-button { padding: 7px 12px; font-size: 11px; }
.photo-editor-gallery { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 5px; }
.photo-editor-item { position: relative; flex: 0 0 88px; height: 72px; }
.photo-cover-button { position: relative; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #f1edf7; }
.photo-cover-button.selected { border-color: #8062bc; box-shadow: 0 0 0 2px #8062bc25; }
.photo-cover-button img { width: 100%; height: 100%; object-fit: cover; }
.photo-cover-button span { position: absolute; right: 3px; bottom: 3px; left: 3px; padding: 3px 4px; border-radius: 5px; color: #fff; background: #352746c9; font-size: 8px; font-weight: 700; text-align: center; }
.photo-remove-button { position: absolute; top: -5px; right: -5px; width: 21px; height: 21px; border: 1px solid #fff; border-radius: 50%; color: #fff; background: #a64e70; box-shadow: 0 2px 6px #21152840; font-size: 15px; line-height: 1; }
.field-label input:focus, .field-label select:focus, .field-label textarea:focus { border-color: #aab8ff; box-shadow: 0 0 0 3px #eef0ff; }
.field-label input::placeholder, .field-label textarea::placeholder { color: #b1b5c1; }
.field-label small { color: #9ba0af; font-size: 8px; font-weight: 400; line-height: 1.5; }
.field-label textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 67px; }
.input-with-suffix span { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); color: #a1a6b4; font-size: 8px; font-weight: 500; pointer-events: none; }
.form-error { display: none; margin: -2px 0 0; padding: 8px 9px; border-radius: 7px; color: #ac5361; background: #fff0f2; font-size: 9px; line-height: 1.5; }
.form-error.visible { display: block; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.modal-actions .primary-button { padding: 11px 14px; font-size: 10px; }
.secondary-button { padding: 10px 14px; border: 1px solid #e9ebf1; border-radius: 9px; color: #757b90; background: #fff; font-size: 10px; font-weight: 600; }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }

@media (min-width: 1450px) {
  .app-shell { padding-right: 58px; padding-left: 58px; }
  .workspace-grid { grid-template-columns: minmax(300px, .95fr) minmax(470px, 1.6fr) minmax(290px, .9fr); }
}
@media (max-width: 1120px) {
  .app-shell { padding: 0 25px; }
  .workspace-grid { grid-template-columns: minmax(260px, .9fr) minmax(370px, 1.4fr); }
  .details-panel { grid-column: 1 / -1; min-height: 260px; }
  .detail-content { min-height: 180px; }
  .detail-empty { align-items: center; text-align: center; padding: 15px 20px; }
  .detail-orbit { height: 115px; margin-bottom: 7px; }
  .detail-full { display: grid; grid-template-columns: 155px 1fr; gap: 0 16px; align-items: start; }
  .detail-photo { grid-row: span 5; height: auto; }
  .detail-tag-row { margin-top: 0; }
  .detail-link { grid-column: 2; }
}
@media (max-width: 700px) {
  body { min-width: 360px; }
  .app-shell { padding: 0 15px; }
  .topbar { height: 64px; }
  .brand { min-width: 0; gap: 7px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-name { font-size: 18px; }
  .top-nav { gap: 15px; }
  .nav-link { font-size: 10px; }
  .nav-link:nth-child(2) { display: none; }
  .top-actions { min-width: 0; gap: 9px; }
  .private-badge { font-size: 0; }
  .private-badge span { width: 8px; height: 8px; }
  .avatar { width: 31px; height: 31px; }
  .welcome-row { min-height: 155px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 13px; padding: 19px 0; }
  .eyebrow { font-size: 8px; }
  h1 { margin-bottom: 5px; font-size: 27px; }
  .welcome-copy { max-width: 300px; font-size: 10px; line-height: 1.5; }
  .mobile-break { display: initial; }
  .add-listing-button { position: absolute; top: 70px; right: 15px; padding: 9px 11px; border-radius: 9px; font-size: 9px; }
  .welcome-row { padding-right: 92px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
  .stat-card, .deadline-card { height: 69px; gap: 8px; padding: 11px; border-radius: 11px; }
  .stat-icon { width: 33px; height: 33px; border-radius: 10px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-label { font-size: 8px; }
  .stat-card strong { font-size: 16px; }
  .deadline-card { gap: 8px; }
  .deadline-card strong { font-size: 14px; }
  .deadline-caption { display: none; }
  .deadline-sparkle { top: 9px; right: 9px; font-size: 14px; }
  .workspace-grid { display: flex; flex-direction: column; gap: 11px; }
  .map-panel { order: 0; min-height: 470px; }
  .globe-wrap { min-height: 345px; }
  .list-panel { order: 1; min-height: 370px; }
  .details-panel { order: 2; min-height: 295px; }
  .panel-heading { padding-top: 16px; }
  .listing-list { max-height: 320px; }
  .app-footer { font-size: 8px; }
  .detail-full { display: flex; flex-direction: column; }
  .detail-photo { width: 100%; height: auto; }
  .detail-tag-row { margin-top: 14px; }
  .detail-link { margin-top: 10px; }
  .modal { padding: 20px 17px; }
}
@media (max-width: 420px) {
  .top-nav { display: none; }
  .add-listing-button { right: 14px; font-size: 8px; }
  h1 { font-size: 24px; }
  .welcome-row { min-height: 145px; }
  .map-bottom { padding-right: 12px; padding-left: 12px; }
  .map-legend { gap: 7px; }
  .map-note { bottom: 36px; font-size: 8px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
}

body[data-font-theme="tender"] { --body-font: "Nunito Sans", sans-serif; --heading-font: Fraunces, serif; }
body[data-font-theme="bubbly"] { --body-font: "Nunito Sans", sans-serif; --heading-font: Fredoka, sans-serif; }
body[data-font-theme="family"] { --body-font: "DM Sans", sans-serif; --heading-font: Comfortaa, sans-serif; }
body[data-font-theme="cabin"] { --body-font: "DM Sans", sans-serif; --heading-font: Fraunces, serif; }
body[data-font-theme="chic"] { --body-font: "Nunito Sans", sans-serif; --heading-font: Manrope, sans-serif; }
body[data-font-theme="sunny"] { --body-font: "DM Sans", sans-serif; --heading-font: Fredoka, sans-serif; }
body, button, input, select, textarea { font-family: var(--body-font); }
h1, h2, h3, .brand-name, .stat-card strong, .deadline-card strong, .listing-rent, .detail-empty h3, .detail-title, .detail-rent { font-family: var(--heading-font); }
.brand-name { font-family: Fredoka, sans-serif; font-weight: 600; letter-spacing: -.6px; }
.topbar { border-color: #e7e0f0; }
.nav-link { font-size: 13px; }
.eyebrow, .section-kicker { color: #8a7da4; }
.welcome-copy { color: #756c89; font-size: 13px; }
.stat-label { color: #766d89; font-size: 11px; }
.deadline-card { border-color: #e5dcf4; background: linear-gradient(115deg, #eee8ff, #fff0f2); }
.deadline-card strong { color: #624ba4; font-size: 18px; }
.deadline-caption { color: #756a91; font-size: 10px; }
.calendar-section { margin: 0 0 18px; padding: 24px; border-color: #e6dff0; background: linear-gradient(135deg, #fff 0%, #fff 72%, #fbf3ff 100%); box-shadow: 0 10px 32px #6c4aa20b; }
.calendar-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.calendar-heading .section-kicker { margin-bottom: 7px; }
.calendar-heading h2 { font-size: 24px; }
.calendar-heading p { margin: 7px 0 0; color: #7d748f; font-size: 13px; }
.target-date-field { display: grid; gap: 7px; min-width: 190px; color: #655b7b; font-size: 12px; font-weight: 800; }
.target-date-field input { min-height: 42px; padding: 8px 11px; border: 1px solid #e5def0; border-radius: 10px; color: #554773; background: #fcfaff; font-size: 13px; }
.target-date-field input:focus, .calendar-form input:focus, .calendar-form select:focus, .task-form input:focus { outline: 3px solid #eee8ff; border-color: #b6a4e0; }
.calendar-overview { display: grid; grid-template-columns: minmax(270px, 1fr) repeat(3, minmax(95px, 120px)); gap: 10px; margin-top: 21px; }
.countdown-card { min-height: 82px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border: 1px solid #eee7f6; border-radius: 13px; color: #75698c; background: #fcfaff; }
.countdown-card > strong { color: #644ca5; font-family: var(--heading-font); font-size: 25px; line-height: 1; }
.countdown-card > span:not(.countdown-emoji) { font-size: 11px; font-weight: 700; }
.countdown-main { flex-direction: row; justify-content: flex-start; gap: 13px; padding: 12px 17px; background: linear-gradient(120deg, #f1ecff, #fff1f2); }
.countdown-emoji { font-size: 26px; }
.countdown-main > div { display: grid; gap: 5px; }
.countdown-label { color: #766b8b; font-size: 11px; font-weight: 700; }
.countdown-main strong { color: #58427f; font-family: var(--heading-font); font-size: 16px; }
.calendar-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); gap: 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #f0ebf5; }
.subsection-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.subsection-heading .section-kicker { font-size: 9px; }
.subsection-heading h3 { margin: 5px 0 0; color: #403456; font-size: 19px; }
.suggested-label { margin: 0 0 9px; color: #82788f; font-size: 11px; }
.suggested-list { display: grid; gap: 0; margin: 0 0 15px 6px; padding: 0 0 0 15px; border-left: 2px solid #e9e1f4; list-style: none; }
.suggested-list li { position: relative; display: grid; gap: 2px; padding: 0 0 12px 8px; }
.suggested-list li:last-child { padding-bottom: 2px; }
.timeline-dot { position: absolute; top: 3px; left: -20px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #ab92df; box-shadow: 0 0 0 1px #d9cbed; }
.suggested-date, .event-date { color: #8a7c9f; font-size: 10px; font-weight: 700; }
.suggested-list strong { color: #514765; font-size: 12px; }
.calendar-form { display: grid; gap: 10px; padding: 14px; border: 1px solid #eee7f5; border-radius: 12px; background: #fcfaff; }
.calendar-form label { display: grid; gap: 5px; color: #645a77; font-size: 11px; font-weight: 800; }
.calendar-form input, .calendar-form select, .task-form input { width: 100%; min-width: 0; min-height: 37px; padding: 8px 9px; border: 1px solid #e9e2f0; border-radius: 8px; outline: none; color: #514765; background: #fff; font-size: 11px; font-weight: 500; }
.calendar-form input::placeholder, .task-form input::placeholder { color: #aaa1b5; }
.calendar-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.optional-label { color: #9c92a8; font-size: 9px; font-weight: 500; }
.calendar-submit { justify-self: start; padding: 9px 12px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; }
.calendar-submit:hover { background: var(--blue-dark); }
.calendar-error { display: none; margin: 0; color: #a64c63; font-size: 11px; line-height: 1.5; }
.calendar-error.visible { display: block; }
.event-list { margin-top: 15px; }
.event-list h4 { margin: 0 0 8px; color: #766c88; font-size: 11px; }
.event-list ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.event-item { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #eee8f3; border-radius: 10px; background: #fff; }
.event-check { flex: 0 0 auto; width: 21px; height: 21px; border: 1px solid #dcd2eb; border-radius: 7px; color: #fff; background: #fff; font-size: 12px; }
.event-item.done .event-check { border-color: #9d83d3; background: #9d83d3; }
.event-copy { display: grid; flex: 1; min-width: 0; gap: 2px; }
.event-copy strong { overflow: hidden; color: #4b405e; font-size: 12px; text-overflow: ellipsis; }
.event-item.done .event-copy strong { color: #91889d; text-decoration: line-through; }
.event-listing-link { justify-self: start; padding: 0; border: 0; color: #7658c8; background: none; font-size: 10px; font-weight: 700; text-align: left; }
.event-remove, .task-remove { flex: 0 0 auto; border: 0; color: #a28ea9; background: transparent; font-size: 17px; }
.empty-events { margin: 0; padding: 13px; border-radius: 9px; color: #8a8195; background: #faf8fc; font-size: 11px; line-height: 1.55; }
.checklist-column { padding-left: 20px; border-left: 1px solid #f0ebf5; }
.checklist-progress { padding: 5px 8px; border-radius: 20px; color: #7058a2; background: #f0eaff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.checklist { display: grid; gap: 7px; }
.checklist-item { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 8px; border: 1px solid #f0ebf5; border-radius: 9px; color: #594f6b; background: #fff; font-size: 11px; line-height: 1.4; cursor: pointer; }
.checklist-item input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #d9d0e7; border-radius: 5px; color: #fff; font-size: 11px; }
.checklist-item input:checked + .checkmark { border-color: #9d83d3; background: #9d83d3; }
.checklist-item input:checked + .checkmark::after { content: "✓"; }
.checklist-item:has(input:focus-visible) { outline: 3px solid #eee8ff; }
.checklist-item.done > span:last-of-type { color: #9b93a5; text-decoration: line-through; }
.task-form { display: flex; gap: 7px; margin-top: 10px; }
.task-form input { flex: 1; }
.task-form button { width: 37px; flex: 0 0 auto; border: 0; border-radius: 8px; color: #fff; background: #9b82d1; font-size: 19px; }
.checklist-note { margin: 9px 0 0; color: #93899f; font-size: 10px; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.app-footer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px 24px; margin: 24px 0 30px; padding: 23px 25px; overflow: hidden; border: 1px solid #e6dff0; border-radius: 20px; color: #675a7d; background: linear-gradient(125deg, #eee8ff, #fff1f2); font-size: 13px; }
.footer-main { display: grid; gap: 11px; }
.footer-greeting { display: flex; align-items: center; gap: 9px; color: #55466d; font-family: var(--heading-font); font-size: 17px; font-weight: 700; }
.footer-sparkle { color: #e88ea0; font-size: 23px; }
.footer-details-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid #d5c8e8; border-radius: 24px; color: #604b87; background: #fff; box-shadow: 0 5px 15px #6c4aa20b; font-size: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.footer-details-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #6c4aa21a; }
.footer-details-button span { color: #e88ea0; font-size: 18px; }
.footer-signoff { grid-column: 1 / -1; justify-self: end; color: #8d819c; font-size: 11px; }
.footer-signoff i { color: #ee969d; font-style: normal; }
.technical-modal { width: min(620px, 100%); }
.technical-modal-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #6d58bb; background: #eee8ff; }
.technical-modal-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.technical-detail-list { display: grid; gap: 12px; }
.technical-detail-list section { padding: 12px 14px; border: 1px solid #eee7f5; border-radius: 11px; background: #fcfaff; }
.technical-detail-list h3 { margin: 0 0 5px; color: #514765; font-size: 14px; }
.technical-detail-list p { margin: 0; color: #777087; font-size: 12px; line-height: 1.6; }
.technical-modal .modal-actions { margin-top: 15px; }

@media (max-width: 800px) {
  .calendar-section { padding: 18px; }
  .calendar-content { grid-template-columns: 1fr; gap: 20px; }
  .checklist-column { padding: 18px 0 0; border-top: 1px solid #f0ebf5; border-left: 0; }
}
@media (max-width: 700px) {
  .calendar-section { padding: 15px; }
  .calendar-heading { flex-direction: column; gap: 13px; }
  .calendar-heading h2 { font-size: 21px; }
  .calendar-heading p { font-size: 12px; }
  .target-date-field { width: 100%; }
  .calendar-overview { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 15px; }
  .countdown-main { grid-column: 1 / -1; min-height: 70px; }
  .countdown-card { min-height: 67px; }
  .countdown-card > strong { font-size: 22px; }
  .calendar-content { margin-top: 18px; padding-top: 17px; }
  .subsection-heading h3 { font-size: 17px; }
  .calendar-form-row { grid-template-columns: 1fr 1fr; }
  .app-footer { font-size: 11px; }
}

.topbar { border-color: #e7e0f0; }
.nav-link { font-size: 15px; }
.private-badge { font-size: 13px; }
.eyebrow, .section-kicker { font-size: 10px; }
h1 { font-size: clamp(34px, 3vw, 46px); }
.welcome-copy { max-width: 700px; font-size: 16px; line-height: 1.5; }
.primary-button { font-size: 14px; }
.stat-label { font-size: 12px; }
.stat-card strong { font-size: 22px; }
.deadline-card strong { font-size: 19px; }
.deadline-caption { font-size: 11px; }
h2 { font-size: 20px; }
.panel-heading { padding-right: 22px; padding-left: 22px; }
.panel-heading h2 { font-size: 20px; }
.search-box { height: 43px; }
.search-box input { font-size: 13px; }
kbd { font-size: 10px; }
.filter-chip { min-height: 31px; font-size: 11px; }
.empty-list strong { font-size: 14px; }
.empty-list p { font-size: 12px; }
.listing-card { padding: 14px; }
.listing-title { font-size: 13px; }
.listing-location { font-size: 11px; }
.listing-rent { font-size: 14px; }
.listing-rent small { font-size: 10px; }
.status-badge { font-size: 10px; }
.list-footer { font-size: 10px; }
.list-footer button { font-size: 10px; }
.map-title h2 { font-size: 18px; }
.region-pill { min-height: 31px; font-size: 11px; }
.map-loading, .map-note { font-size: 11px; }
.map-bottom { font-size: 10px; }
.detail-live { font-size: 10px; }
.detail-empty h3 { font-size: 19px; }
.detail-empty p, .detail-empty .detail-action { font-size: 12px; }
.detail-type { font-size: 11px; }
.detail-title { font-size: 19px; }
.detail-address { font-size: 11px; }
.detail-rent { font-size: 22px; }
.detail-rent small, .detail-notes { font-size: 11px; }
.detail-controls select { font-size: 11px; }
.detail-link { font-size: 11px; }
.privacy-note p { font-size: 10px; }
.modal-heading h2 { font-size: 21px; }
.modal-description { font-size: 13px; }
.field-label { font-size: 12px; }
.field-label input, .field-label select, .field-label textarea { font-size: 12px; }
.field-label small { font-size: 10px; }
.input-with-suffix span { font-size: 10px; }
.form-error { font-size: 11px; }
.modal-actions .primary-button, .secondary-button { font-size: 12px; }
.calendar-heading h2 { font-size: 28px; }
.calendar-heading p { font-size: 15px; }
.target-date-field { font-size: 14px; }
.target-date-field input { font-size: 15px; }
.countdown-card > strong { font-size: 30px; }
.countdown-card > span:not(.countdown-emoji), .countdown-label { font-size: 13px; }
.countdown-main strong { font-size: 18px; }
.subsection-heading h3 { font-size: 21px; }
.suggested-label, .suggested-list strong, .calendar-form label { font-size: 13px; }
.suggested-date, .event-date { font-size: 11px; }
.calendar-form input, .calendar-form select, .task-form input { min-height: 42px; font-size: 13px; }
.optional-label { font-size: 11px; }
.calendar-submit { font-size: 13px; }
.calendar-error, .event-list h4, .event-copy strong { font-size: 13px; }
.event-listing-link, .empty-events, .checklist-item { font-size: 12px; }
.checklist-progress { font-size: 12px; }
.checklist-note { font-size: 11px; }
.technical-detail-list h3 { font-size: 15px; }
.technical-detail-list p { font-size: 13px; }

@media (max-width: 1120px) {
  .nav-link { font-size: 13px; }
  .workspace-grid { min-height: 610px; }
}
@media (max-width: 700px) {
  .nav-link { font-size: 12px; }
  .private-badge { font-size: 0; }
  h1 { font-size: 32px; }
  .welcome-row { min-height: 0; align-items: flex-start; gap: 14px; padding: 22px 0; }
  .welcome-copy { font-size: 14px; }
  .add-listing-button { position: static; align-self: flex-start; padding: 11px 14px; font-size: 12px; }
  .stats-row { margin-top: 14px; }
  .stat-card, .deadline-card { min-height: 80px; height: auto; padding: 12px; }
  .stat-label { font-size: 10px; }
  .stat-card strong { font-size: 19px; }
  .deadline-card strong { font-size: 15px; }
  .panel-heading h2, h2 { font-size: 19px; }
  .list-footer { font-size: 10px; }
  .list-footer button { font-size: 10px; }
  .calendar-heading h2 { font-size: 25px; }
  .calendar-heading p { font-size: 14px; }
  .countdown-card > strong { font-size: 26px; }
  .countdown-main strong { font-size: 16px; }
  .subsection-heading h3 { font-size: 19px; }
  .calendar-form-row { grid-template-columns: 1fr; }
  .app-footer { grid-template-columns: 1fr; padding: 20px; }
  .footer-main { min-width: 0; }
  .footer-greeting { font-size: 16px; }
  .footer-details-button { justify-self: start; }
  .footer-signoff { grid-column: 1; justify-self: start; }
  .technical-modal { padding: 20px 17px; }
}
@media (max-width: 420px) {
  .nav-link { font-size: 11px; }
  h1 { font-size: 29px; }
  .welcome-copy { font-size: 13px; }
  .map-panel { min-height: 440px; }
  .region-pill { padding-right: 8px; padding-left: 8px; font-size: 10px; }
  .calendar-section { padding: 14px; }
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
.topbar { position: sticky; top: 0; z-index: 18; background: var(--canvas); box-shadow: 0 1px 0 #e7e0f0; }
#logements, #calendrier { scroll-margin-top: 92px; }
.top-actions { position: relative; }
.theme-toggle { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid #ded5eb; border-radius: 50%; color: #6751a3; background: linear-gradient(145deg, #fff, #f3edff); transition: transform .2s, box-shadow .2s; }
.theme-toggle:hover { transform: rotate(-8deg) scale(1.05); box-shadow: 0 5px 14px #6045ad24; }
.theme-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body[data-theme="light"] .theme-icon-sun { display: none; }
body[data-theme="dark"] .theme-icon-moon { display: none; }
.theme-status:not(:empty) { position: fixed; z-index: 40; top: 88px; right: 18px; max-width: 300px; padding: 11px 14px; border: 1px solid #d5c8e8; border-radius: 15px; color: #594772; background: #fff; box-shadow: 0 9px 28px #27143a24; font-size: 13px; }
.countdown-live-card { grid-column: 1 / -1; min-height: 154px; gap: 25px; padding: 20px 26px; }
.countdown-main .countdown-clock-art { width: 116px; height: 116px; display: block; flex: 0 0 auto; gap: 0; }
.countdown-main .countdown-main-copy { display: grid; flex: 1; gap: 9px; }
.countdown-clock-art svg { width: 100%; height: 100%; overflow: visible; }
.countdown-ring-track { fill: #ffffff66; stroke: #d7c9ea; stroke-width: 5; }
.countdown-ring-progress { fill: none; stroke: url(#countdown-ring-gradient); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset .45s ease; }
.countdown-home-icon { fill: none; stroke: #7257a5; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.countdown-orbit-spark { fill: #ed91aa; }
.countdown-main-copy { display: grid; flex: 1; gap: 9px; }
.countdown-digits { display: grid; grid-template-columns: repeat(4, minmax(68px, 1fr)); gap: 9px; max-width: 610px; }
.countdown-unit { display: grid; justify-items: center; gap: 2px; padding: 8px 7px; border: 1px solid #e8def5; border-radius: 16px; background: #ffffffa6; }
.countdown-unit strong { color: #5c468e; font-family: var(--heading-font); font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-unit small { color: #8a7b9f; font-size: 11px; font-weight: 700; }
#countdown-message { margin: 0; color: #80748e; font-size: 13px; }
.countdown-unit strong, #countdown-live-days { font-variant-numeric: tabular-nums; }
.countdown-unit { transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.countdown-unit.is-changing { border-color: #b49bdf; background: linear-gradient(145deg, #f3edff, #fff1f4); box-shadow: 0 5px 18px #9b77d52d; animation: countdown-change .62s ease-out; }
@keyframes countdown-change { 0% { transform: scale(1); } 38% { transform: scale(1.045); } 100% { transform: scale(1); } }
.back-to-top { position: fixed; z-index: 16; right: max(22px, calc((100vw - 1540px) / 2)); bottom: 24px; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #d8cbea; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #8b70d0, #644aa9); box-shadow: 0 8px 24px #35204d38; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s, box-shadow .2s; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 12px 28px #35204d50; }
.back-to-top svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

button { border-radius: 999px; }
.icon-button, .map-menu-button, .theme-toggle, .avatar, .favorite-toggle, .detail-heart, .detail-delete, .detail-edit, .event-check, .event-remove, .task-remove, .modal-close, .back-to-top { border-radius: 50%; }
.primary-button, .secondary-button, .filter-chip, .region-pill, .calendar-submit, .detail-link, .footer-details-button { border-radius: 999px; }
.panel, .calendar-section, .map-panel { border-radius: 24px; }
.stat-card, .deadline-card, .listing-card, .event-item, .checklist-item, .technical-detail-list section { border-radius: 17px; }
.search-box, .calendar-form, .privacy-note { border-radius: 16px; }
.field-label input, .field-label select, .field-label textarea, .calendar-form input, .calendar-form select, .task-form input, .target-date-field input { border-radius: 14px; }
.modal { border-radius: 25px; }
.app-footer { border-radius: 26px; }
.task-form button { border-radius: 50%; }

body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5efff;
  --muted: #c4b8db;
  --line: #453655;
  --paper: #21182f;
  --canvas: #171020;
  --blue: #b69af0;
  --blue-dark: #9c7cdd;
  --lavender: #39284e;
  --coral: #ff9db7;
  background: radial-gradient(ellipse at 12% -8%, #332247 0, #1d152b 38%, #130e1c 78%) fixed;
  color: var(--ink);
}
body[data-theme="dark"] .topbar { border-color: #41334f; background: rgb(25 18 38 / 94%); box-shadow: 0 1px 0 #41334f; }
body[data-theme="dark"] .brand-mark { background: linear-gradient(145deg, #3b2b52, #2c203f); }
body[data-theme="dark"] .brand-mark svg circle.brand-globe { fill: #291f3d; stroke: #b69af0; }
body[data-theme="dark"] .brand-mark svg .brand-globe-lines { stroke: #b69af0; }
body[data-theme="dark"] .nav-link, body[data-theme="dark"] .private-badge, body[data-theme="dark"] .section-kicker { color: #c4b8dc; }
body[data-theme="dark"] .nav-link.active, body[data-theme="dark"] h1, body[data-theme="dark"] h2, body[data-theme="dark"] h3 { color: #f4edff; }
body[data-theme="dark"] .nav-link span { background: #3a2a51; color: #cfbaff; }
body[data-theme="dark"] .theme-toggle { border-color: #675286; color: #ffe29a; background: linear-gradient(145deg, #382a4c, #241a35); }
body[data-theme="dark"] .theme-status:not(:empty) { border-color: #69547f; color: #f0e9fb; background: #251b35; }
body[data-theme="dark"] .panel, body[data-theme="dark"] .stat-card, body[data-theme="dark"] .list-panel, body[data-theme="dark"] .details-panel { border-color: #40314f; background: #21182f; }
body[data-theme="dark"] .calendar-section { border-color: #49365d; background: linear-gradient(135deg, #241a35, #1b1429 70%, #2d1d39); box-shadow: 0 12px 34px #08050d66; }
body[data-theme="dark"] .map-panel { border-color: #40314f; background: linear-gradient(145deg, #21182f, #191326); }
body[data-theme="dark"] .stat-card, body[data-theme="dark"] .deadline-card { border-color: #40314f; }
body[data-theme="dark"] .deadline-card { background: linear-gradient(120deg, #302342, #3a243c); }
body[data-theme="dark"] .deadline-card strong { color: #e2d4ff; }
body[data-theme="dark"] .deadline-caption, body[data-theme="dark"] .stat-label, body[data-theme="dark"] .welcome-copy { color: #b9adcf; }
body[data-theme="dark"] .search-box, body[data-theme="dark"] .calendar-form { border-color: #48385c; background: #1b1428; }
body[data-theme="dark"] .search-box input, body[data-theme="dark"] .field-label input, body[data-theme="dark"] .field-label select, body[data-theme="dark"] .field-label textarea, body[data-theme="dark"] .calendar-form input, body[data-theme="dark"] .calendar-form select, body[data-theme="dark"] .task-form input, body[data-theme="dark"] .target-date-field input, body[data-theme="dark"] .detail-controls select { border-color: #514064; color: #f0e9fb; background: #21182f; }
body[data-theme="dark"] .search-box input::placeholder, body[data-theme="dark"] .field-label input::placeholder, body[data-theme="dark"] .field-label textarea::placeholder, body[data-theme="dark"] .calendar-form input::placeholder, body[data-theme="dark"] .task-form input::placeholder { color: #9d90b5; }
body[data-theme="dark"] .address-suggestions { border-color: #514064; background: #21182f; }
body[data-theme="dark"] .address-suggestion { color: #d3c7e7; }
body[data-theme="dark"] .address-suggestion strong { color: #f0e9fb; }
body[data-theme="dark"] .address-suggestion span, body[data-theme="dark"] #address-status { color: #b7abc9; }
body[data-theme="dark"] .address-suggestion:hover, body[data-theme="dark"] .address-suggestion:focus-visible { background: #3a2c50; }
body[data-theme="dark"] .field-label input[type="file"]::file-selector-button { color: #f0e5ff; background: #4a3761; }
body[data-theme="dark"] #photo-status { color: #c2b5d5; }
body[data-theme="dark"] .icon-button, body[data-theme="dark"] .map-menu-button, body[data-theme="dark"] .filter-chip, body[data-theme="dark"] .region-pill, body[data-theme="dark"] kbd { border-color: #4a3a5d; color: #d3c7e7; background: #261d36; }
body[data-theme="dark"] .filter-menu-button.has-filter { border-color: #a58bd7; color: #f0e5ff; background: #4a3761; }
body[data-theme="dark"] .filter-chip.selected, body[data-theme="dark"] .region-pill.active, body[data-theme="dark"] .sort-option.selected, body[data-theme="dark"] .sort-option:hover { border-color: #806bb1; color: #e1d3ff; background: #3a2c50; }
body[data-theme="dark"] .sort-popover, body[data-theme="dark"] .filter-row { border-color: #514064; background: #21182f; }
body[data-theme="dark"] .listing-card, body[data-theme="dark"] .event-item, body[data-theme="dark"] .checklist-item { border-color: #40324f; color: #eee7fa; background: #281e38; }
body[data-theme="dark"] .listing-title, body[data-theme="dark"] .listing-rent, body[data-theme="dark"] .event-copy strong { color: #f0e9fb; }
body[data-theme="dark"] .listing-location, body[data-theme="dark"] .list-footer, body[data-theme="dark"] .empty-list p, body[data-theme="dark"] .detail-address, body[data-theme="dark"] .detail-type { color: #b7abc9; }
body[data-theme="dark"] .status-badge { color: #d5c8e8; background: #3a3048; }
body[data-theme="dark"] .status-application { color: #dacbff; background: #44345d; }
body[data-theme="dark"] .status-visit { color: #a4eadb; background: #1e453e; }
body[data-theme="dark"] .status-waiting { color: #f5d69c; background: #4a3c25; }
body[data-theme="dark"] .status-accepted { color: #a8ecd0; background: #21473a; }
body[data-theme="dark"] .status-rejected { color: #ffc0ca; background: #4c2938; }
body[data-theme="dark"] .listing-thumb, body[data-theme="dark"] .map-title-icon, body[data-theme="dark"] .privacy-icon { color: #cbb8ff; background: #392c50; }
body[data-theme="dark"] .globe-wrap { background: radial-gradient(ellipse at 50% 48%, #302347 0, #21182f 48%, #191326 82%); }
body[data-theme="dark"] .globe-halo { background: radial-gradient(ellipse, #9b75e72e, #e593ad12 53%, transparent 74%); }
body[data-theme="dark"] .map-note, body[data-theme="dark"] .map-bottom, body[data-theme="dark"] .map-loading { color: #c0b4d2; }
body[data-theme="dark"] .map-mode-switch { border-color: #4f3d63; background: #261b36; }
body[data-theme="dark"] .map-mode-button { color: #c8b9df; }
body[data-theme="dark"] .map-mode-button.active { border-color: #a38ad6; color: #f0e5ff; background: #4a3761; }
body[data-theme="dark"] .map-tooltip { border-color: #554269; background: #261d36; }
body[data-theme="dark"] .map-tooltip-copy > strong { color: #f3edff; }
body[data-theme="dark"] .map-tooltip-copy > span { color: #c4b8db; }
body[data-theme="dark"] .map-tooltip-copy .map-tooltip-meta, body[data-theme="dark"] .map-tooltip-copy .map-tooltip-action { color: #d3baff; }
body[data-theme="dark"] .flat-map-plane { border-color: #655273; box-shadow: 0 18px 48px #05030a; }
body[data-theme="dark"] .leaflet-control-attribution { color: #55496a; }
body[data-theme="dark"] .map-zoom-controls button { border-color: #6b5887; color: #f0e5ff; background: #2a203b; }
body[data-theme="dark"] .map-zoom-controls button:hover:not(:disabled) { color: #fff; background: #7658c8; }
body[data-theme="dark"] .detail-photo { background: radial-gradient(ellipse at 25% 15%, #65394d, transparent 50%), linear-gradient(145deg, #32264b, #261d3d 55%, #3b2637); }
body[data-theme="dark"] .photo-gallery-thumb, body[data-theme="dark"] .photo-cover-button { background: #352846; }
body[data-theme="dark"] .detail-photo-placeholder svg { stroke: #c0adf0; }
body[data-theme="dark"] .detail-heart, body[data-theme="dark"] .detail-delete, body[data-theme="dark"] .detail-edit { border-color: #514064; color: #d7c8ec; background: #2a203b; }
body[data-theme="dark"] .detail-notes, body[data-theme="dark"] .privacy-note { color: #c3b8d2; background: #2a203b; }
body[data-theme="dark"] .privacy-note strong { color: #eee5ff; }
body[data-theme="dark"] .detail-link { color: #fff; background: #7058ae; }
body[data-theme="dark"] .countdown-card { border-color: #49385d; color: #d2c5e4; background: #241a34; }
body[data-theme="dark"] .countdown-main { background: linear-gradient(115deg, #3b2b54, #40273d); }
body[data-theme="dark"] .countdown-unit { border-color: #5b456d; background: #251b37cc; }
body[data-theme="dark"] .countdown-ring-track { fill: #302541; stroke: #68547e; }
body[data-theme="dark"] .countdown-home-icon { stroke: #d0baff; }
body[data-theme="dark"] .countdown-unit.is-changing { border-color: #b69af0; background: linear-gradient(145deg, #403057, #422938); box-shadow: 0 5px 18px #bb96f02d; }
body[data-theme="dark"] .countdown-unit strong, body[data-theme="dark"] .countdown-card > strong { color: #e2d5ff; }
body[data-theme="dark"] .countdown-unit small, body[data-theme="dark"] .countdown-label, body[data-theme="dark"] #countdown-message { color: #c1b4d6; }
body[data-theme="dark"] .clock-face { fill: #2d2142; stroke: #9479c7; }
body[data-theme="dark"] .clock-ticks { stroke: #b49bdf; }
body[data-theme="dark"] .clock-center { fill: #ff9db7; stroke: #2d2142; }
body[data-theme="dark"] .calendar-heading p, body[data-theme="dark"] .suggested-label, body[data-theme="dark"] .suggested-date, body[data-theme="dark"] .event-date, body[data-theme="dark"] .calendar-form label, body[data-theme="dark"] .event-list h4, body[data-theme="dark"] .checklist-note { color: #c2b6d5; }
body[data-theme="dark"] .subsection-heading h3, body[data-theme="dark"] .suggested-list strong { color: #f0e8ff; }
body[data-theme="dark"] .suggested-list { border-color: #5b456d; }
body[data-theme="dark"] .timeline-dot { background: #c3a7f3; }
body[data-theme="dark"] .calendar-form input:focus, body[data-theme="dark"] .calendar-form select:focus, body[data-theme="dark"] .task-form input:focus, body[data-theme="dark"] .target-date-field input:focus { outline-color: #4a3965; border-color: #9f82d7; }
body[data-theme="dark"] .event-check { border-color: #635078; background: #241a34; }
body[data-theme="dark"] .event-item.done .event-check { border-color: #8e73c4; background: #8e73c4; }
body[data-theme="dark"] .empty-events { color: #c5b9d7; background: #2a203a; }
body[data-theme="dark"] .checkmark { border-color: #65547c; }
body[data-theme="dark"] .checklist-item input:checked + .checkmark { border-color: #9d83d3; background: #9d83d3; }
body[data-theme="dark"] .app-footer { border-color: #49375f; color: #d4c6e7; background: linear-gradient(125deg, #2f2345, #3a253c); }
body[data-theme="dark"] .footer-greeting { color: #f0e7ff; }
body[data-theme="dark"] .footer-signoff { color: #c2b5d5; }
body[data-theme="dark"] .footer-details-button { border-color: #64517c; color: #e7dbfa; background: #281e39; }
body[data-theme="dark"] .font-menu-toggle { border-color: #675286; color: #e6d9fc; background: linear-gradient(145deg, #382a4c, #241a35); }
body[data-theme="dark"] .font-menu-options { border-color: #524064; background: #21182f; box-shadow: 0 15px 40px #05030a90; }
body[data-theme="dark"] .font-menu-options > span { color: #d3c5e7; }
body[data-theme="dark"] .font-menu-options button { border-color: #4a3a5d; color: #e4d8f4; background: #2a203b; }
body[data-theme="dark"] .font-menu-options button[aria-pressed="true"] { border-color: #a58bd7; color: #f1e7ff; background: #4a3761; }
body[data-theme="dark"] .modal { border-color: #4d3b61; color: #f3ebff; background: #21182f; }
body[data-theme="dark"] .modal-heading-icon, body[data-theme="dark"] .technical-modal-icon { color: #d9c8ff; background: #3b2b52; }
body[data-theme="dark"] .modal-description, body[data-theme="dark"] .field-label { color: #d1c5e0; }
body[data-theme="dark"] .modal-close, body[data-theme="dark"] .secondary-button { border-color: #554269; color: #ded2ef; background: #2b203d; }
body[data-theme="dark"] .technical-detail-list section { border-color: #49385d; background: #2a203a; }
body[data-theme="dark"] .technical-detail-list h3 { color: #f0e7ff; }
body[data-theme="dark"] .technical-detail-list p { color: #c6b9d9; }
body[data-theme="dark"] .back-to-top { border-color: #a58bd7; color: #fff; background: linear-gradient(145deg, #a58bd7, #704eaa); }

@media (max-width: 1120px) {
  .top-actions { min-width: 0; gap: 10px; }
  .top-nav { gap: 18px; }
}
@media (max-width: 700px) {
  .topbar { position: sticky; }
  .top-actions { gap: 8px; }
  .theme-toggle { width: 38px; height: 38px; }
  .countdown-live-card { gap: 13px; min-height: 120px; padding: 14px; }
  .countdown-main .countdown-clock-art { width: 82px; height: 82px; }
  .countdown-digits { grid-template-columns: repeat(4, minmax(48px, 1fr)); gap: 5px; }
  .countdown-unit { padding: 7px 4px; }
  .countdown-unit strong { font-size: 19px; }
  .countdown-unit small { font-size: 9px; }
  #countdown-message { font-size: 11px; }
  .back-to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}
@media (max-width: 420px) {
  .countdown-live-card { gap: 9px; padding: 11px; }
  .countdown-main .countdown-clock-art { width: 68px; height: 68px; }
  .countdown-digits { gap: 3px; }
  .countdown-unit strong { font-size: 16px; }
  .countdown-unit small { font-size: 8px; }
  .countdown-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.app-shell { width: 100%; max-width: none; padding-right: clamp(10px, 1vw, 18px); padding-left: clamp(10px, 1vw, 18px); }
@media (max-width: 700px) {
  .app-shell { padding-right: 10px; padding-left: 10px; }
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; padding: 6px 12px 0; }
  .brand { order: 1; }
  .top-actions { order: 2; margin-left: auto; }
  .top-nav { order: 3; display: flex; flex: 1 0 100%; height: 38px; gap: 4px; overflow-x: auto; }
  .top-nav .nav-link, .top-nav .nav-link:nth-child(2) { display: flex; flex: 0 0 auto; height: 38px; padding: 0 5px; font-size: 12px; }
}
.topbar {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-right: clamp(12px, 2vw, 30px);
  padding-left: clamp(12px, 2vw, 30px);
}
.font-menu { position: relative; z-index: 22; flex: 0 0 auto; }
.font-menu-toggle { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid #ded5eb; border-radius: 50%; color: #6751a3; background: linear-gradient(145deg, #fff, #f3edff); cursor: pointer; list-style: none; transition: transform .2s, box-shadow .2s; }
.font-menu-toggle::-webkit-details-marker { display: none; }
.font-menu-toggle::marker { content: ""; }
.font-menu-toggle:hover, .font-menu[open] .font-menu-toggle { transform: translateY(-1px); box-shadow: 0 5px 14px #6045ad24; }
.font-menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.font-menu-options { position: absolute; top: calc(100% + 12px); right: 0; z-index: 25; display: grid; width: min(250px, calc(100vw - 24px)); max-height: min(70vh, 430px); gap: 7px; padding: 13px; overflow-y: auto; border: 1px solid #e2d9ed; border-radius: 19px; background: var(--paper); box-shadow: 0 15px 40px #27143a24; }
.font-menu-options > span { padding: 2px 6px 5px; color: #76698a; font-size: 12px; font-weight: 800; }
.font-menu-options button { min-height: 40px; padding: 8px 11px; border: 1px solid #e7e0ef; border-radius: 14px; color: #665a7b; background: #fff; font-size: 12px; font-weight: 700; text-align: left; }
.font-menu-options button[aria-pressed="true"] { border-color: #ad98da; color: #624ba4; background: #eee8ff; }
.font-menu-options button:focus-visible, .font-menu-toggle:focus-visible { outline: 3px solid #c6b3ec; outline-offset: 2px; }
@media (max-width: 700px) {
  .topbar { padding-right: 12px; padding-left: 12px; }
  .font-menu-toggle, .theme-toggle { width: 36px; height: 36px; }
  .font-menu-toggle svg, .theme-icon { width: 19px; height: 19px; }
}
#dashboard { display: flex; flex-direction: column; gap: 34px; margin-top: 24px; }
.workspace-grid { display: block; min-height: 0; margin: 0; }
.map-panel { width: 100%; height: min(78vh, 900px); min-height: 620px; border-radius: 28px; }
.map-head { align-items: center; gap: 18px; padding: 20px 24px 12px; }
.map-head .region-pills { flex: 1; min-width: 0; gap: 9px; padding: 0; }
.map-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.map-mode-switch { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid #e2d9ed; border-radius: 999px; background: var(--paper); }
.map-mode-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; color: #776a8d; background: transparent; }
.map-mode-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.map-mode-button.active { border-color: #b6a2dc; color: #6048a0; background: #eee8ff; }
.map-mode-button:focus-visible { outline: 3px solid #c6b3ec; outline-offset: 2px; }
.map-add-button { min-height: 44px; padding: 10px 17px; }
.map-panel .globe-wrap { min-height: 0; margin-top: 0; }
.map-panel .globe-wrap, #globeViz, #globeViz canvas { touch-action: none; }
.flat-map-surface { position: absolute; z-index: 1; inset: 0; display: grid; overflow: hidden; place-items: center; background: #11101b; perspective: 1300px; touch-action: none; cursor: grab; }
.street-map-surface { position: absolute; z-index: 1; inset: 0; overflow: hidden; background: #e9e4dc; }
.street-map-surface[hidden] { display: none !important; }
#street-map { width: 100%; height: 100%; background: #e9e4dc; font-family: "DM Sans", sans-serif; }
.leaflet-container { font-family: "DM Sans", sans-serif; }
.leaflet-control-attribution { padding: 2px 6px !important; border-radius: 6px 0 0 0; background: #ffffffd9 !important; font-size: 10px !important; }
.street-map-marker { cursor: pointer; transition: stroke-width .18s, filter .18s; }
.street-map-marker.marker-favorite { fill: #e77e9c; }
.street-map-marker.marker-accepted { fill: #42a98b; }
.street-map-marker.is-selected, .street-map-marker:hover { stroke-width: 4; filter: drop-shadow(0 2px 5px #18204488); }
.flat-map-surface.is-gesturing { cursor: grabbing; }
.flat-map-surface[hidden] { display: none !important; }
.flat-map-plane { --map-zoom: 1; --map-offset-x: 0px; --map-offset-y: 0px; position: absolute; inset: 5% -4%; overflow: hidden; border: 1px solid #665877; border-radius: 18px; background-color: #162538; background-image: linear-gradient(180deg, #12101a30, #090a1480), url("https://unpkg.com/three-globe/example/img/earth-blue-marble.jpg"); background-position: center; background-size: 100% 100%; box-shadow: 0 18px 48px #07061088; transform: translate(var(--map-offset-x), var(--map-offset-y)) perspective(1300px) rotateX(0deg) scale(var(--map-zoom)); transform-origin: center 52%; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.flat-map-surface.is-gesturing .flat-map-plane { transition: none; }
.flat-map-surface[data-projection="tilted"] .flat-map-plane { transform: translate(var(--map-offset-x), var(--map-offset-y)) perspective(1300px) rotateX(34deg) scale(1.15) scale(var(--map-zoom)); }
.flat-map-plane svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.flat-country { fill: #b59c7550; fill-rule: evenodd; stroke: #f0e9d8a8; stroke-width: .8; vector-effect: non-scaling-stroke; }
.flat-map-markers { position: absolute; inset: 0; }
.flat-map-marker { position: absolute; z-index: 2; width: 15px; height: 15px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px #fff3, 0 3px 9px #08061188; transform: translate(-50%, -50%); transition: width .18s, height .18s, box-shadow .18s; }
.flat-map-marker { cursor: pointer; }
.flat-map-marker:hover, .flat-map-marker.selected { width: 21px; height: 21px; box-shadow: 0 0 0 5px #fff4, 0 4px 12px #080611aa; }
.flat-map-marker.marker-default { background: #637fe8; }
.flat-map-marker.marker-favorite { background: #f18198; }
.flat-map-marker.marker-accepted { background: #4eb99a; }
.map-zoom-controls { position: absolute; right: 16px; bottom: 16px; z-index: 8; display: grid; gap: 7px; }
.map-zoom-controls button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #d5c8e8; border-radius: 50%; color: #604b87; background: #fff; box-shadow: 0 5px 16px #10091944; font-size: 25px; font-weight: 600; line-height: 1; }
.map-zoom-controls button:hover:not(:disabled) { color: #fff; background: #7658c8; }
.map-zoom-controls button:disabled { opacity: .42; cursor: default; }
.map-panel .map-bottom { justify-content: flex-end; min-height: 44px; padding: 0 24px 12px; }
.map-panel .map-legend { gap: 18px; font-size: 13px; }
.map-panel .legend-dot { width: 9px; height: 9px; }
.housing-support-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 28px; align-items: stretch; margin: 0; }
.housing-support-grid .list-panel, .housing-support-grid .details-panel { min-height: 520px; grid-column: auto; }
.housing-support-grid .detail-content { min-height: 250px; }
.stats-row, .calendar-section { margin: 0; }
.calendar-section { padding: 28px; }
.calendar-heading p { display: none; }
@media (max-width: 1120px) {
  .housing-support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .housing-support-grid .details-panel { grid-column: auto; }
}
@media (max-width: 800px) {
  #dashboard { gap: 26px; }
  .map-panel { height: min(72vh, 760px); min-height: 500px; }
  .map-head { flex-wrap: wrap; }
  .map-head .region-pills { flex-basis: 100%; }
  .map-actions { display: grid; grid-template-columns: 1fr auto; justify-content: initial; width: 100%; }
  .map-mode-switch { grid-column: 1 / -1; justify-self: start; }
  .map-mode-button { width: 36px; height: 36px; }
  .housing-support-grid { grid-template-columns: 1fr; gap: 20px; }
  .housing-support-grid .list-panel, .housing-support-grid .details-panel { min-height: 360px; }
}
@media (max-width: 700px) {
  #dashboard { gap: 22px; }
  #dashboard { margin-top: 16px; }
  .map-panel { height: min(70vh, 680px); min-height: 450px; }
  .map-head { padding: 14px 14px 10px; }
  .map-head .region-pills { flex-wrap: nowrap; overflow-x: auto; }
  .map-actions { grid-template-columns: 1fr auto; }
  .map-add-button { justify-self: start; }
  .map-panel .map-bottom { padding-right: 14px; padding-left: 14px; }
  .map-zoom-controls { right: 12px; bottom: 12px; }
  .map-zoom-controls button { width: 40px; height: 40px; font-size: 22px; }
  .calendar-section { padding: 20px 16px; }
  .housing-support-grid .details-panel { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  #globeViz canvas { animation: none; }
}

.stats-row { gap: 14px; margin: 18px 0 0; }
.stat-card, .deadline-card { position: relative; min-height: 88px; height: auto; overflow: hidden; border-radius: 20px; box-shadow: 0 8px 22px #2416380d; transition: transform .2s, box-shadow .2s, border-color .2s; }
.stat-card::after { position: absolute; right: -30px; bottom: -43px; width: 110px; height: 110px; border-radius: 50%; background: var(--stat-glow, #ac99e51a); content: ""; pointer-events: none; }
.stat-card > *, .deadline-card > * { position: relative; z-index: 1; }
.stat-card:hover, .deadline-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px #24163818; }
.stat-card-homes { --stat-glow: #8d9bf02b; --stat-accent: #7486e4; }
.stat-card-applications { --stat-glow: #ad8ce52b; --stat-accent: #9c79d1; }
.stat-card-visits { --stat-glow: #ef9b8b2b; --stat-accent: #e58b79; }
.stat-card.has-value { border-color: color-mix(in srgb, var(--stat-accent) 38%, transparent); }
.stat-card.has-value .stat-icon { box-shadow: 0 5px 14px color-mix(in srgb, var(--stat-accent) 24%, transparent); }
.stat-card strong { font-variant-numeric: tabular-nums; }
.deadline-card { border-radius: 20px; box-shadow: 0 8px 22px #24163810; }
.deadline-card::after { position: absolute; right: -28px; bottom: -42px; width: 116px; height: 116px; border-radius: 50%; background: #e893b52b; content: ""; }
.calendar-intro { display: block !important; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.calendar-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.countdown-live-card { grid-column: 1 / -1; }
.calendar-overview > .countdown-card:not(.countdown-live-card) { min-height: 104px; border-radius: 19px; background: linear-gradient(145deg, #fcfaff, #f8f3ff); box-shadow: inset 0 1px #fff, 0 7px 18px #30194d09; }
.calendar-overview > .countdown-card:not(.countdown-live-card):nth-child(3) { background: linear-gradient(145deg, #fffafd, #fff3f4); }
.calendar-overview > .countdown-card:not(.countdown-live-card):nth-child(4) { background: linear-gradient(145deg, #f8fcff, #f1f5ff); }
.calendar-overview > .countdown-card:not(.countdown-live-card) > strong { font-size: clamp(29px, 3vw, 40px); }
.calendar-overview > .countdown-card:not(.countdown-live-card) > span { font-size: 13px; letter-spacing: .02em; }
body[data-theme="dark"] .calendar-overview > .countdown-card:not(.countdown-live-card) { border-color: #514064; background: linear-gradient(145deg, #2a203b, #261c36); }
body[data-theme="dark"] .calendar-overview > .countdown-card:not(.countdown-live-card):nth-child(3) { background: linear-gradient(145deg, #32233b, #2b1d34); }
body[data-theme="dark"] .calendar-overview > .countdown-card:not(.countdown-live-card):nth-child(4) { background: linear-gradient(145deg, #242b43, #211d37); }
@media (max-width: 700px) {
  .stats-row { margin-top: 12px; gap: 9px; }
  .stat-card, .deadline-card { min-height: 74px; padding: 11px; border-radius: 16px; }
  .stat-icon { width: 33px; height: 33px; border-radius: 11px; }
  .stat-card .stat-label, .deadline-card .stat-label { font-size: 9px; }
  .stat-card strong { font-size: 18px; }
  .calendar-heading { align-items: flex-start; }
  .calendar-intro { max-width: 200px; font-size: 11px; }
  .calendar-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .countdown-live-card { grid-column: 1 / -1; }
  .calendar-overview > .countdown-card:not(.countdown-live-card) { min-height: 84px; border-radius: 14px; }
  .calendar-overview > .countdown-card:not(.countdown-live-card) > strong { font-size: 26px; }
  .countdown-live-card { flex-direction: column; gap: 14px; padding: 16px; }
  .countdown-main .countdown-clock-art { width: 84px; height: 84px; }
  .countdown-main .countdown-main-copy { width: 100%; flex: 0 1 auto; }
}
.countdown-live-card { align-items: center; justify-content: center; gap: clamp(22px, 5vw, 58px); }
.countdown-main .countdown-main-copy { flex: 0 1 740px; justify-items: center; text-align: center; }
.countdown-digits { width: 100%; max-width: 740px; margin: 0 auto; }
@media (max-width: 700px) {
  .countdown-live-card { gap: 14px; }
  .countdown-main .countdown-main-copy { flex: 0 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .countdown-unit.is-changing { animation: none; }
  .countdown-ring-progress { transition: none; }
}
.calendar-heading-tools { display: grid; justify-items: end; gap: 9px; }
.calendar-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.calendar-tool-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1px solid #e6deef; border-radius: 12px; color: #675481; background: #fff; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.calendar-tool-button:hover, .calendar-share-menu[open] > summary { border-color: #b6a1dc; color: #59427e; background: #f5f0ff; transform: translateY(-1px); }
.calendar-tool-icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-google-calendar { color: #4285f4; fill: currentColor; stroke: none; }
.calendar-share-menu { position: relative; }
.calendar-share-menu > summary { list-style: none; }
.calendar-share-menu > summary::-webkit-details-marker { display: none; }
.calendar-share-popover { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; width: min(320px, calc(100vw - 32px)); display: grid; gap: 7px; padding: 10px; border: 1px solid #e5dced; border-radius: 14px; background: var(--paper); box-shadow: 0 12px 30px #1c102a2b; }
.share-listing-field { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.share-listing-field select { width: 100%; min-width: 0; padding: 8px; border: 1px solid #e5dced; border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 11px; }
.share-address-toggle { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.share-address-toggle input { margin: 1px 0 0; accent-color: #8969bf; }
.share-card-preview-button { min-height: 38px; padding: 8px 10px; border: 1px solid #bca9de; border-radius: 9px; color: #60498d; background: #f3edff; font-size: 11px; font-weight: 800; cursor: pointer; }
.share-card-privacy-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.calendar-share-popover button { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.calendar-share-popover button:hover { background: #f1ecfa; }
.share-brand-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; }
.share-system-icon { color: #8873ae; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.share-whatsapp-icon { color: #25d366; }
.share-facebook-icon { color: #1877f2; }
.share-instagram-icon { color: #d94f8c; }
.brand-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.calendar-export-note, .calendar-share-status { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: right; }
.calendar-share-status:not(:empty) { max-width: 410px; padding: 7px 9px; border: 1px solid #ded2ef; border-radius: 9px; color: #6a538c; background: #f6f1ff; }
.checklist-progress-wrap { display: flex; align-items: center; gap: 9px; }
.checklist-progress-track { width: 84px; height: 7px; overflow: hidden; border-radius: 999px; background: #e8e1f1; }
#checklist-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9276cc, #ed91aa); transition: width .35s ease; }
.checklist-encouragement { margin: -4px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.timeline-caption { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.suggested-date small { display: block; margin-top: 2px; color: #ab9bbd; font-size: 9px; font-weight: 600; }
.timeline-empty { margin: 0 0 13px; padding: 12px; border-radius: 10px; color: var(--muted); background: #f5f0fa; font-size: 11px; line-height: 1.5; }
.event-timeline .timeline-empty { display: grid; justify-items: start; gap: 5px; padding: 16px; }
.event-timeline .timeline-empty > span { color: #9c7dc6; font-size: 18px; }
.event-timeline .timeline-empty > strong { color: var(--ink); font-size: 13px; }
.event-timeline .timeline-empty > p { margin: 0; }
.calendar-event-timeline li { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 5px 12px; padding-bottom: 17px; }
.calendar-timeline-copy { min-width: 0; display: grid; gap: 3px; }
.calendar-timeline-copy strong { color: var(--ink); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.calendar-timeline-copy p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.calendar-timeline-copy .timeline-listing { color: #8d72bc; font-size: 10px; font-weight: 700; line-height: 1.4; }
.calendar-timeline-event.done .calendar-timeline-copy strong { color: var(--muted); text-decoration: line-through; }
.calendar-timeline-actions { display: flex; align-items: center; gap: 5px; grid-column: 2; grid-row: 1 / span 2; }
.event-google-link { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #e5dced; border-radius: 50%; color: #7658a8; background: var(--paper); }
.event-google-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.event-google-link:hover { border-color: #b6a1dc; color: #60498d; background: #f3edff; }
.timeline-dot-visit { background: #e99186; }
.timeline-dot-followup { background: #9d83d3; }
.timeline-dot-milestone { background: #78aa9b; }
.calendar-form textarea { width: 100%; min-height: 58px; padding: 8px 9px; border: 1px solid #e9e2f0; border-radius: 8px; color: #514765; background: #fff; font-size: 11px; font-weight: 500; resize: vertical; }
.calendar-form textarea:focus { outline: 3px solid #eee8ff; border-color: #b6a4e0; }
.share-card-modal { width: min(720px, 100%); }
.share-card-preview-frame { display: grid; place-items: center; max-height: 56vh; overflow: auto; padding: 10px; border: 1px solid #e9e1f1; border-radius: 14px; background: #1b1428; }
.share-card-preview-frame img { display: block; width: auto; max-width: 100%; max-height: 52vh; object-fit: contain; border-radius: 7px; box-shadow: 0 8px 24px #0005; }
.share-card-network-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 12px 0 4px; }
.share-network-button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #e5dced; border-radius: 999px; color: var(--ink); background: var(--paper); font-size: 10px; font-weight: 700; cursor: pointer; }
.share-network-button:hover { border-color: #b6a1dc; background: #f4effb; }
.share-card-actions { flex-wrap: wrap; }
body[data-theme="dark"] .share-listing-field select { border-color: #514064; }
body[data-theme="dark"] .share-card-preview-button { border-color: #806bb1; color: #e1d3ff; background: #3a2c50; }
body[data-theme="dark"] .share-card-preview-frame { border-color: #514064; background: #171020; }
body[data-theme="dark"] .share-network-button { border-color: #514064; color: #eee7fa; background: #2a203b; }
body[data-theme="dark"] .share-network-button:hover { border-color: #806bb1; background: #3a2c50; }
button.stat-card, button.deadline-card { width: 100%; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
button.stat-card:focus-visible, button.deadline-card:focus-visible { outline: 3px solid #b69af0; outline-offset: 3px; }
body[data-theme="dark"] .calendar-tool-button { border-color: #514064; color: #ded2ef; background: #2a203b; }
body[data-theme="dark"] .calendar-tool-button:hover, body[data-theme="dark"] .calendar-share-menu[open] > summary { border-color: #a38ad6; color: #f0e5ff; background: #403052; }
body[data-theme="dark"] .calendar-share-popover { border-color: #514064; background: #21182f; }
body[data-theme="dark"] .calendar-share-popover button:hover { background: #3a2c50; }
body[data-theme="dark"] .calendar-export-note, body[data-theme="dark"] .calendar-share-status { color: #c4b8db; }
body[data-theme="dark"] .calendar-share-status:not(:empty) { border-color: #5b456d; color: #e1d3ff; background: #30243f; }
body[data-theme="dark"] .checklist-progress-track { background: #493a59; }
body[data-theme="dark"] .timeline-empty { background: #2a203b; }
@media (max-width: 900px) {
  .calendar-heading { flex-wrap: wrap; }
  .calendar-heading-tools { width: 100%; justify-items: stretch; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; }
  .calendar-toolbar { justify-content: flex-end; }
  .calendar-export-note, .calendar-share-status { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 600px) {
  .calendar-heading-tools { grid-template-columns: 1fr; }
  .calendar-toolbar { justify-content: flex-start; }
  .calendar-tool-button { min-height: 36px; padding: 7px 9px; font-size: 10px; }
  .calendar-share-popover { right: auto; left: 0; }
}
