:root {
  color-scheme: light;
  --ink: #1d2541;
  --muted: #8b91a6;
  --line: #eceef4;
  --paper: #fff;
  --canvas: #f6f7fb;
  --blue: #4667e8;
  --blue-dark: #354fc5;
  --lavender: #eeedff;
  --coral: #ff8291;
  --mint: #58c9ac;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { 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 #e9ebf2; }
.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-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-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: flex; align-items: center; gap: 5px; padding: 0 15px 12px; overflow-x: auto; }
.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 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: 4; display: none; max-width: 185px; padding: 7px 9px; border: 1px solid #e9eaf4; border-radius: 8px; color: #5e6680; background: #fff; box-shadow: 0 5px 18px #36416b18; font-size: 9px; pointer-events: none; }
.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 { 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 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); }
.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 { width: 32px; height: 32px; border: 1px solid #eceef3; border-radius: 7px; color: #c5c8d3; background: #fff; }
.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; }
.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; }
.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: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: 145px; }
  .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: 130px; }
  .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; }
}
