:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --paper: #ffffff;
  --panel: #fafafa;
  --ink: #101010;
  --soft-ink: #3a3a38;
  --muted: #777772;
  --line: #ddddda;
  --line-strong: #b8b8b2;
  --accent: #101010;
  --forecast: #7f2a24;
  --cool: #566f7d;
  --warm: #8b6b3e;
  --shadow: 0 18px 40px rgba(0, 0, 0, .055);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
.file-button,
input,
.month-picker select {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
.file-button {
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}

button:hover,
.file-button:hover {
  border-color: var(--ink);
  background: #f2f2f0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.file-button:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
}

input::placeholder {
  color: rgba(65, 65, 61, .62);
  font-size: 13px;
  font-weight: 500;
}

.global-titlebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: grid;
  place-items: center;
  background: #050505;
  color: #fff;
}

.global-titlebar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .18em;
  text-indent: .18em;
  line-height: 1;
  text-align: center;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 348px) minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

.sidebar {
  background: #f8f8f6;
  border-right: 1px solid var(--line);
  padding: 18px;
  overflow-y: auto;
}

.workspace {
  min-width: 0;
  padding: 22px 24px 30px;
}

.brand,
.brand-mark {
  display: none !important;
}

.panel,
.topbar,
.moodboard,
.metric-card,
.chart-section,
.planning-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.panel {
  padding: 13px;
  margin-bottom: 12px;
}

.panel-head,
.section-head,
.topbar,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.city-add-tools {
  gap: 6px;
}

.compact-head {
  margin-top: 4px;
}

.panel h2,
.section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.field span,
.city-item span,
.topbar p,
.section-head p,
.metric-card p {
  color: var(--muted);
}

.field span,
.metric-card span {
  font-size: 13px;
  font-weight: 500;
}

.form-grid,
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}

.wide { grid-column: 1 / -1; }

.primary-action {
  width: 100%;
  margin-top: 12px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  letter-spacing: .06em;
}

.primary-action:hover {
  background: #333;
  border-color: #333;
}

.file-button {
  display: inline-grid;
  place-items: center;
}

.file-button input { display: none; }

.tool-button,
.tool-icon {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.tool-icon {
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

.tool-icon input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.city-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.action-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.action-button:hover {
  background: #fff;
  border-color: #aaa69d;
  box-shadow: 0 8px 18px rgba(36, 33, 29, .06);
}

.action-query {
  background: rgba(247, 247, 244, .95);
}

.action-add {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.action-add:hover {
  background: #333;
  border-color: #333;
}

.icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
}

.city-list {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.city-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 6px 0 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.city-item.active {
  border-color: var(--ink);
  background: #fbfbfa;
  box-shadow: inset 3px 0 0 var(--ink);
}

.city-select {
  display: grid;
  grid-template-columns: minmax(74px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  text-align: left;
}

.city-item strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-item.active strong { font-weight: 700; }

.city-item span {
  margin: 0;
  font-size: 11px;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-actions {
  display: flex;
  justify-content: flex-end;
}

.city-actions .icon-button {
  width: 26px;
  min-height: 26px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
}

.city-map,
.city-map.leaflet-map {
  position: relative;
  height: 250px;
  margin-top: 10px;
  overflow: hidden;
  background: #ececea;
  border: 1px solid var(--line);
  isolation: isolate;
}

.city-search-panel,
.city-add-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.city-search-panel[hidden],
.city-add-panel[hidden] {
  display: none;
}

.city-search-panel .field {
  margin-top: 0;
}

@media (max-width: 680px) {
  .city-actions-row {
    grid-template-columns: 1fr;
  }
}

.city-map:before { display: none; }

.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.world-map-svg rect { fill: #ececea; }
.map-grid path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.map-land path { fill: #cacac4; stroke: #a8a8a2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-shore path { fill: none; stroke: rgba(70, 70, 67, .42); stroke-width: .8; vector-effect: non-scaling-stroke; }

.city-map-title {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 700;
}

.map-marker,
.leaflet-city-pin .pin-dot {
  background: var(--ink);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .22);
}

.map-marker {
  position: absolute;
  z-index: 3;
  width: 11px;
  height: 11px;
  min-width: 11px;
  min-height: 11px;
  padding: 0;
  line-height: 1;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-marker:after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
}

.map-marker:hover,
.map-marker.active {
  background: var(--forecast);
  transform: translate(-50%, -50%) scale(1.25);
}

.map-marker.active {
  z-index: 8;
  box-shadow: 0 0 0 5px rgba(127, 42, 36, .2), 0 9px 19px rgba(0, 0, 0, .26);
}

.map-marker-label,
.leaflet-city-pin .pin-label {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  padding: 4px 7px;
  white-space: nowrap;
  background: rgba(16, 16, 16, .9);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.map-marker:hover .map-marker-label,
.map-marker.active .map-marker-label,
.leaflet-city-pin:hover .pin-label,
.leaflet-city-pin.active .pin-label {
  opacity: 1;
}

.city-map:not(.leaflet-map) {
  background: #ececea url("https://tile.openstreetmap.org/0/0/0.png") center / cover no-repeat;
}

.city-map:not(.leaflet-map) .world-map-svg {
  opacity: .17;
  mix-blend-mode: multiply;
}

.city-map .leaflet-container {
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

.city-map .leaflet-tile {
  filter: grayscale(.88) saturate(.35) contrast(.95) brightness(1.05);
}

.city-map .leaflet-control-zoom {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.city-map .leaflet-control-zoom a {
  width: 26px;
  height: 26px;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  line-height: 24px;
}

.city-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 9px;
}

.leaflet-city-pin {
  position: relative;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  border: 0;
  background: transparent;
}

.leaflet-city-pin .pin-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
}

.leaflet-city-pin.active .pin-dot {
  width: 14px;
  height: 14px;
  background: var(--forecast);
  box-shadow: 0 0 0 5px rgba(127, 42, 36, .2), 0 9px 19px rgba(0, 0, 0, .26);
}

.topbar {
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.topbar h2,
.mood-copy h3,
.metric-card strong {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.topbar h2 {
  margin-top: 5px;
  font-size: clamp(25px, 3.2vw, 38px);
}

.topbar p {
  margin: 5px 0 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.month-picker {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.month-picker select {
  min-height: 36px;
  padding: 0 32px 0 12px;
}

.status-pill {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.moodboard {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(360px, 1.12fr);
  gap: 18px;
  padding: 18px;
  margin-bottom: 14px;
}

.mood-copy {
  display: flex;
  min-height: 312px;
  flex-direction: column;
  justify-content: space-between;
}

.mood-copy h3 {
  margin-top: 8px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
}

.mood-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--soft-ink);
  line-height: 1.75;
}

.temperature-ribbon {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.temperature-ribbon .ribbon-dot {
  appearance: none;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border-color: #cfcfcb;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.temperature-ribbon .ribbon-dot:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.temperature-ribbon .ribbon-dot.active {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  box-shadow: 0 0 0 2px #fff;
  transform: none;
}

.sketch-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.sketch-card,
.model-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.model-photo-wrap,
.look-thumb {
  position: relative;
  overflow: hidden;
  background: #efefed;
}

.model-photo-wrap {
  aspect-ratio: 3 / 4;
  margin-bottom: 10px;
}

.model-photo-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  pointer-events: none;
}

.model-photo,
.model-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.08) saturate(.86) contrast(1.03);
}

.model-card strong {
  padding: 0 2px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.model-card span {
  display: block;
  padding: 5px 2px 2px;
  color: var(--muted);
  font-size: 12px;
}

.look-thumb {
  width: 78px;
  aspect-ratio: 3 / 4;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card {
  min-height: 112px;
  padding: 15px;
}

.metric-card span {
  color: var(--muted);
  letter-spacing: .08em;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
}

.metric-card p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.chart-section,
.planning-section {
  padding: 16px;
  margin-bottom: 14px;
}

.legend {
  display: flex;
  gap: 14px;
  color: #666;
  font-size: 13px;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
}

.history { background: var(--ink); }
.forecast { background: var(--forecast); }

.chart-canvas-wrap {
  position: relative;
}

canvas {
  width: 100%;
  height: 360px;
  display: block;
}

.chart-section canvas {
  height: 232px;
  margin-top: 14px;
  background: #fff;
  border: 1px solid #ededeb;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  min-width: 150px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
  color: var(--ink);
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, -110%);
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.chart-tooltip span {
  display: block;
  color: var(--soft-ink);
  line-height: 1.45;
}

.table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #ececea;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f3f1;
  color: #50504d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

td {
  color: #222;
  line-height: 1.5;
}

.planning-section td:nth-child(6) {
  min-width: 96px;
}

.month-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.band-chip,
.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #f3f3f1;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.band-chip svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delta-hot { color: var(--forecast); }
.delta-cool { color: var(--cool); }
.delta-flat { color: #5d5d56; }

.temp-hot { color: var(--forecast); font-weight: 700; }
.temp-cool { color: var(--cool); font-weight: 700; }
.temp-mild { color: var(--warm); font-weight: 700; }

.band-freeze { --band: #637784; }
.band-cold { --band: #596b78; }
.band-cool { --band: #5e7772; }
.band-mild { --band: #777768; }
.band-warm { --band: #8b6b3e; }
.band-hot { --band: #7f2a24; }

.band-chip.band-freeze,
.band-chip.band-cold,
.band-chip.band-cool,
.band-chip.band-mild,
.band-chip.band-warm,
.band-chip.band-hot {
  color: var(--band);
}

@media (max-width: 1100px) {
  .moodboard {
    grid-template-columns: 1fr;
  }

  .mood-copy {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .global-titlebar {
    height: 52px;
  }

  .global-titlebar h1 {
    font-size: 16px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 52px);
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .city-list {
    max-height: 260px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .sidebar,
  .workspace {
    padding: 14px;
  }

  .topbar,
  .section-head,
  .button-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .form-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .month-picker {
    grid-template-columns: 1fr;
  }

  .city-select {
    grid-template-columns: minmax(84px, .85fr) minmax(0, 1fr);
  }

  .city-map,
  .city-map.leaflet-map {
    height: 210px;
  }

  .map-marker-label,
  .leaflet-city-pin .pin-label {
    display: none;
  }

  .moodboard {
    padding: 14px;
  }

  .sketch-wall {
    grid-template-columns: 1fr;
  }

  .temperature-ribbon .ribbon-dot {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .chart-section canvas {
    height: 210px;
  }
}

/* Modern light refinement */
:root {
  --bg: #f7f7f5;
  --paper: rgba(255, 255, 255, .86);
  --panel: #ffffff;
  --ink: #171715;
  --soft-ink: #454540;
  --muted: #81817a;
  --line: #e5e3de;
  --line-strong: #cecbc3;
  --accent: #171715;
  --forecast: #8a332d;
  --cool: #667d88;
  --warm: #8b744d;
  --shadow: 0 18px 42px rgba(36, 33, 29, .07);
}

body {
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .94) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #fafaf8 0%, #f3f3ef 52%, #f8f7f4 100%);
}

.global-titlebar {
  min-height: 78px;
  padding: 12px 18px 14px;
  background: rgba(8, 8, 8, .96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.title-bar-inner {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.global-titlebar h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: .22em;
  text-indent: .22em;
  line-height: 1.05;
  text-align: left;
}

.title-meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.title-subline,
.title-email {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.1;
}

.title-subline {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.title-email {
  font-size: 12px;
  letter-spacing: .06em;
}

.app-shell {
  grid-template-columns: minmax(304px, 352px) minmax(0, 1fr);
}

.sidebar {
  background: rgba(255, 255, 255, .42);
  border-right-color: rgba(0, 0, 0, .06);
  backdrop-filter: blur(18px);
}

.workspace {
  padding: 26px 30px 34px;
}

.panel,
.topbar,
.moodboard,
.metric-card,
.chart-section,
.planning-section {
  background: var(--paper);
  border-color: rgba(0, 0, 0, .075);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 15px;
}

button,
.file-button,
input,
.month-picker select {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

button:hover,
.file-button:hover {
  background: #fff;
  border-color: #aaa69d;
  box-shadow: 0 8px 18px rgba(36, 33, 29, .06);
}

.icon-button {
  border-radius: 999px;
}

.icon-button.is-active,
.icon-button[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 23, 21, .16);
}

.primary-action {
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(23, 23, 21, .12);
}

.city-search-panel,
.city-add-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, .055);
  border-radius: 8px;
  background: rgba(250, 250, 248, .86);
}

.city-list {
  gap: 6px;
}

.city-item {
  min-height: 38px;
  border-color: rgba(0, 0, 0, .055);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.city-item.active {
  border-color: rgba(23, 23, 21, .22);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--ink), 0 8px 18px rgba(36, 33, 29, .05);
}

.city-map,
.city-map.leaflet-map {
  border-radius: 8px;
  border-color: rgba(0, 0, 0, .06);
  background: #efefeb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .52);
}

.city-map .leaflet-tile {
  filter: grayscale(.75) saturate(.45) contrast(.96) brightness(1.06);
}

.topbar {
  padding: 22px 24px;
  margin-bottom: 16px;
}

.topbar h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.status-pill {
  border-radius: 999px;
}

.moodboard {
  padding: 22px;
  gap: 20px;
}

.mood-copy h3 {
  font-size: clamp(30px, 3.7vw, 48px);
}

.temperature-ribbon .ribbon-dot {
  border-color: rgba(0, 0, 0, .075);
  box-shadow: 0 7px 16px rgba(36, 33, 29, .055);
}

.temperature-ribbon .ribbon-dot.active {
  outline: 0;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 23, 21, .15);
}

.sketch-card,
.model-card {
  border-color: rgba(0, 0, 0, .065);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(36, 33, 29, .06);
}

.model-photo-wrap,
.look-thumb {
  border-radius: 6px;
}

.model-photo-wrap:after {
  border-radius: 6px;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  font-size: 30px;
}

.chart-section,
.planning-section {
  padding: 18px;
}

.chart-section canvas,
.table-wrap {
  border-color: rgba(0, 0, 0, .055);
  border-radius: 8px;
}

th {
  background: #f7f6f3;
}

.band-chip,
.delta-badge {
  border-radius: 999px;
  background: #f7f6f3;
}

@media (max-width: 980px) {
  .workspace {
    padding: 18px;
  }

  .global-titlebar {
    min-height: 74px;
  }

  .global-titlebar h1 {
    font-size: 24px;
  }

  .title-bar-inner {
    gap: 16px;
  }
}

@media (max-width: 680px) {
  .global-titlebar {
    min-height: 0;
    padding: 12px 14px 13px;
  }

  .title-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .global-titlebar h1 {
    font-size: 24px;
    letter-spacing: .18em;
    text-indent: .18em;
  }

  .title-meta {
    justify-items: start;
    text-align: left;
  }

  .title-subline,
  .title-email {
    font-size: 11px;
  }
}
