:root {
  color-scheme: dark;
  --bg: #030304;
  --panel: #111112;
  --panel-2: #17131d;
  --line: #28232f;
  --line-strong: #45384f;
  --text: #f4f0ff;
  --muted: #8d8798;
  --soft: #c8bfd5;
  --green: #1fd15d;
  --actual: #ff5ba7;
  --red: #ff477e;
  --yellow: #f4d34e;
  --cyan: #caa7ff;
  --blue: #5e83d8;
  --orange: #c98b32;
  --purple: #9f62ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior-x: none;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  min-width: 1080px;
  background:
    radial-gradient(circle at 18% 0%, rgba(159, 98, 255, 0.14), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(244, 211, 78, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
a {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, #1d1b21, #121114);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
  text-decoration: none;
}

button:hover,
a:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(159, 98, 255, 0.22);
}

.app-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 100vh;
}

.city-sidebar {
  background: linear-gradient(180deg, rgba(13, 12, 16, 0.98), rgba(5, 5, 7, 0.98));
  border-right: 1px solid rgba(69, 56, 79, 0.72);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  padding: 16px 10px;
  position: sticky;
  touch-action: none;
  top: 0;
  user-select: none;
}

.city-sidebar.swiping {
  cursor: grabbing;
}

.city-sidebar-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 4px;
}

.city-sidebar-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 6px;
  text-transform: uppercase;
}

.city-edit-button {
  border-color: rgba(69, 56, 79, 0.76);
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  min-width: 44px;
  padding: 5px 8px;
}

.city-edit-button[aria-pressed="true"] {
  border-color: rgba(255, 91, 167, 0.62);
  color: var(--text);
}

.city-tabs {
  align-content: start;
  display: grid;
  gap: 5px;
  min-height: 0;
}

.city-tab {
  background: transparent;
  border-color: transparent;
  column-gap: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  overflow: hidden;
  padding: 6px;
  text-align: left;
  white-space: nowrap;
  width: 100%;
}

.city-tab span {
  align-self: center;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
}

.city-tab small {
  align-self: end;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  justify-self: end;
  line-height: 1;
}

.city-tab.active {
  background: linear-gradient(180deg, rgba(34, 24, 40, 0.95), rgba(14, 12, 17, 0.95));
  border-color: rgba(255, 91, 167, 0.56);
  box-shadow: inset 3px 0 0 var(--actual), 0 0 18px rgba(255, 91, 167, 0.08);
}

.city-tab.active span {
  color: var(--text);
}

.city-tabs.editing .city-tab {
  border-color: rgba(69, 56, 79, 0.82);
  cursor: grab;
  position: relative;
}

.city-tabs.editing .city-tab::after {
  background-image: radial-gradient(circle, var(--muted) 1.3px, transparent 1.5px);
  background-size: 6px 6px;
  content: "";
  height: 18px;
  opacity: 0.72;
  position: absolute;
  right: 10px;
  top: 9px;
  width: 12px;
}

.city-tabs.editing .city-tab:active {
  cursor: grabbing;
}

.city-tab.dragging {
  opacity: 0.48;
}

.city-tab[hidden] {
  display: none;
}

.city-pagination {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  min-height: 20px;
  padding: 0 10px 8px;
}

.city-page-dot {
  background: #4a4551;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  height: 7px;
  min-width: 0;
  padding: 0;
  transition: background 120ms ease, transform 120ms ease;
  width: 7px;
}

.city-page-dot:hover {
  background: var(--soft);
  border: 0;
  box-shadow: none;
}

.city-page-dot.active {
  background: var(--text);
  transform: scale(1.25);
  transform-origin: left center;
}

.shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100vh;
  padding: 16px;
}

.topbar,
.overview-grid,
.workspace,
.debug-grid {
  width: 100%;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(69, 56, 79, 0.7);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding-bottom: 12px;
}

.eyebrow {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  font-weight: 760;
  line-height: 1.15;
}

h2 {
  font-size: 14px;
  font-weight: 740;
}

.top-actions {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 10px;
}

.pm-personal-button {
  border-color: rgba(69, 198, 142, 0.5);
  color: #8ee3bb;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-personal-button.bound {
  background: rgba(34, 168, 102, 0.12);
  border-color: rgba(34, 168, 102, 0.72);
  color: #a8efca;
}

.status-dot {
  background: var(--yellow);
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.status-dot.ok {
  background: var(--green);
}

.status-dot.bad {
  background: var(--red);
}

.overview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  height: 158px;
}

.weather-overview,
.pm-monitor {
  background: linear-gradient(180deg, rgba(24, 22, 27, 0.98), rgba(10, 9, 12, 0.98));
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  min-width: 0;
  overflow: hidden;
}

.weather-overview {
  border-color: rgba(255, 91, 167, 0.46);
  box-shadow: 0 0 18px rgba(255, 91, 167, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  padding: 12px 14px;
}

.weather-live-overview {
  display: grid;
  column-gap: 14px;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
}

.weather-live-overview .weather-overview-head {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
}

.weather-overview-head {
  align-items: flex-end;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.weather-temperature > span,
.weather-meta-row > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.weather-temperature > strong {
  color: var(--actual);
  display: block;
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.08;
  margin-top: 2px;
  white-space: nowrap;
}

.weather-temperature {
  align-self: start;
}

.weather-time-grid {
  border-top: 1px solid rgba(69, 56, 79, 0.44);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 8px;
  width: 100%;
}

.weather-meta-row {
  min-width: 0;
}

.weather-meta-row strong {
  line-height: 1.25;
}

.weather-meta-row strong {
  color: var(--text);
  display: block;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-meta-row > span {
  font-size: 10px;
}

.pm-monitor {
  display: flex;
  flex-direction: column;
}

.pm-monitor-head {
  align-items: center;
  border-bottom: 1px solid rgba(69, 56, 79, 0.62);
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 7px 10px;
}

.pm-monitor-head h2 {
  font-size: 14px;
}

.pm-monitor-head span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 1px;
}

.pm-monitor-head button {
  font-size: 11px;
  padding: 4px 8px;
}

.pm-activity-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pm-feed-empty {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  min-height: 100%;
  place-items: center;
  padding: 12px;
  text-align: center;
}

.pm-activity-row {
  align-items: center;
  border-bottom: 1px solid rgba(69, 56, 79, 0.45);
  display: grid;
  gap: 7px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 38px;
  padding: 5px 9px;
}

.pm-activity-row:last-child {
  border-bottom: 0;
}

.pm-account-avatar {
  align-items: center;
  background: #28232f;
  border: 1px solid rgba(200, 191, 213, 0.18);
  border-radius: 50%;
  color: var(--soft);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  object-fit: cover;
  overflow: hidden;
  width: 34px;
}

.pm-activity-row .pm-account-avatar {
  font-size: 10px;
  height: 24px;
  width: 24px;
}

.pm-activity-copy {
  align-items: baseline;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.pm-activity-copy strong,
.pm-activity-copy span {
  flex: 0 0 auto;
  font-size: 11px;
}

.pm-activity-user {
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-activity-copy .pm-buy {
  color: var(--green);
}

.pm-activity-copy .pm-sell {
  color: var(--actual);
}

.pm-activity-copy .pm-activity-notional {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pm-activity-meta {
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.pm-settings-dialog {
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  width: min(520px, calc(100vw - 28px));
}

.pm-settings-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.pm-settings-shell {
  background: #111012;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 0;
  max-height: min(620px, calc(100vh - 40px));
  overflow: hidden;
}

.pm-settings-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.pm-settings-head span,
.pm-account-add label,
.pm-account-form-status {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.icon-button {
  font-size: 18px;
  height: 30px;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.pm-account-add {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 14px 16px;
}

.pm-account-add > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pm-account-add input {
  background: #080709;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  font: inherit;
  min-width: 0;
  padding: 8px 10px;
}

.pm-account-add input:focus {
  border-color: var(--actual);
  outline: 0;
}

.pm-account-form-status.error {
  color: var(--red);
}

.pm-account-list {
  min-height: 80px;
  overflow-y: auto;
  padding: 4px 16px 12px;
}

.pm-personal-account-state:not(:empty) {
  border-bottom: 1px solid var(--line);
  padding: 4px 16px;
}

.pm-personal-account-state .pm-account-item {
  border-bottom: 0;
}

.pm-personal-account-state .pm-account-remove {
  border-color: rgba(227, 79, 112, 0.54);
  color: #ff9bb2;
}

.pm-account-item {
  align-items: center;
  border-bottom: 1px solid rgba(69, 56, 79, 0.5);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 10px 0;
}

.pm-account-item-copy {
  min-width: 0;
}

.pm-account-item-copy strong,
.pm-account-item-copy span {
  display: block;
}

.pm-account-item-copy strong {
  font-size: 12px;
}

.pm-account-item-copy span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-account-remove {
  color: var(--soft);
  font-size: 11px;
  padding: 6px 8px;
}

.nearby-stations {
  align-content: start;
  display: grid;
  gap: 4px;
  margin-top: 1px;
  min-height: 0;
  overflow: auto;
}

.weather-overview-side {
  display: grid;
  gap: 10px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
}

.metar-summary {
  align-items: center;
  color: var(--soft);
  display: flex;
  font-size: 11px;
  gap: 6px;
  margin-top: 0;
  position: relative;
}

.metar-summary > span {
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 4px;
}

.metar-summary-label,
.metar-summary-time {
  color: var(--soft);
}

.metar-summary-temperature {
  color: var(--actual);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.metar-history-button {
  align-items: center;
  background: rgba(5, 5, 7, 0.5);
  border-color: rgba(69, 56, 79, 0.8);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 22px;
}

.metar-doc-icon {
  border: 1px solid var(--soft);
  border-radius: 2px;
  display: block;
  height: 13px;
  position: relative;
  width: 10px;
}

.metar-doc-icon::after {
  background: var(--soft);
  content: "";
  height: 1px;
  left: 2px;
  position: absolute;
  top: 4px;
  width: 5px;
  box-shadow: 0 3px 0 var(--soft), 0 6px 0 var(--soft);
}

.metar-popover {
  background: linear-gradient(180deg, rgba(23, 20, 28, 0.98), rgba(8, 7, 10, 0.98));
  border: 1px solid rgba(69, 56, 79, 0.9);
  border-radius: 7px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
  left: 12px;
  max-height: min(280px, calc(100vh - 24px));
  overflow: auto;
  padding: 10px;
  position: fixed;
  top: 12px;
  width: min(360px, calc(100vw - 24px));
  z-index: 120;
}

.metar-popover-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metar-popover-head strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.metar-popover-head button {
  height: 24px;
  line-height: 1;
  padding: 0;
  width: 24px;
}

.metar-history-list {
  display: grid;
  gap: 7px;
}

.metar-history-item {
  border-top: 1px solid rgba(69, 56, 79, 0.58);
  display: grid;
  gap: 5px;
  padding-top: 7px;
}

.metar-history-item div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.metar-history-item strong,
.metar-history-item span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.2;
}

.metar-history-item code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.metar-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0 2px;
}

.nearby-station-row {
  align-items: center;
  color: var(--soft);
  display: grid;
  font-size: 11px;
  gap: 6px;
  grid-template-columns: 8px minmax(58px, auto) auto auto;
  justify-content: start;
  line-height: 1.25;
}

.nearby-dot {
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

.nearby-station-row strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.nearby-station-row em {
  color: var(--muted);
  font-style: normal;
}

.runway-summary-row {
  display: contents;
}

.nearby-stations.runway-summaries {
  align-items: baseline;
  column-gap: 12px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  row-gap: 6px;
}

.runway-summary-label {
  color: var(--soft);
  font-size: 12px;
  text-align: right;
}

.runway-summary-values {
  font-variant-numeric: tabular-nums;
  justify-self: start;
  text-align: left;
  white-space: nowrap;
}

.current-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  margin-top: 0;
  width: 100%;
}

.current-details span {
  background: rgba(5, 5, 7, 0.48);
  border: 1px solid rgba(69, 56, 79, 0.7);
  border-radius: 5px;
  color: var(--soft);
  font-size: 11px;
  padding: 4px 6px;
}

.workspace {
  display: grid;
  flex: 1;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 312px;
  min-height: 640px;
}

.chart-wrap,
.market-panel,
.debug-grid article {
  background: linear-gradient(180deg, rgba(18, 17, 20, 0.98), rgba(8, 7, 10, 0.98));
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.chart-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chart-toolbar {
  align-items: center;
  border-bottom: 1px solid rgba(69, 56, 79, 0.62);
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 12px;
}

.series-toolbar {
  align-items: stretch;
  border-bottom: 1px solid rgba(69, 56, 79, 0.62);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 62px;
  overflow: hidden;
  padding: 5px 9px;
}

.series-control-group,
.series-control-head,
.series-toggle-row {
  align-items: center;
  display: flex;
}

.series-control-group {
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.model-control-group {
  flex: 0 0 25px;
}

.station-control-group {
  flex: 0 0 25px;
  overflow: hidden;
}

.series-control-head {
  flex: 0 0 auto;
  gap: 5px;
  justify-content: space-between;
  width: 76px;
}

.series-control-head strong {
  color: var(--muted);
  font-size: 10px;
  flex: 0 0 auto;
  text-transform: uppercase;
  white-space: nowrap;
}

.series-toggle-row {
  gap: 3px;
}

.chart-heading,
.chart-summary,
.today-high-summary {
  align-items: center;
  display: flex;
}

.chart-heading {
  gap: 10px;
  min-width: 0;
}

.chart-view-tabs {
  align-items: center;
  background: #0d0c0f;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 62px);
  height: 32px;
  padding: 2px;
}

.chart-view-tab {
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: var(--muted);
  font-size: 11px;
  height: 26px;
  padding: 0 8px;
}

.chart-view-tab:hover {
  border: 0;
  box-shadow: none;
  color: var(--text);
}

.chart-view-tab.active {
  background: #242029;
  box-shadow: inset 0 0 0 1px rgba(202, 167, 255, 0.48);
  color: var(--text);
}

.chart-heading h2 {
  min-width: 58px;
  white-space: nowrap;
}

.chart-summary {
  gap: 14px;
  min-width: 0;
}

.today-high-summary {
  border-left: 1px solid rgba(69, 56, 79, 0.58);
  color: var(--muted);
  font-size: 11px;
  gap: 5px;
  padding-left: 14px;
  white-space: nowrap;
}

.today-high-summary strong {
  color: var(--actual);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.today-high-summary small {
  color: var(--muted);
  font-size: 10px;
}

.chart-stats {
  align-items: center;
  display: flex;
  gap: 8px;
}

.trade-visibility-toggle {
  align-items: center;
  background: #111014;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  height: 34px;
  padding: 0 9px;
  white-space: nowrap;
}

.trade-visibility-toggle:has(input:checked) {
  border-color: rgba(34, 168, 102, 0.68);
  color: #a8efca;
}

.trade-visibility-toggle input {
  accent-color: #22a866;
  height: 13px;
  margin: 0;
  width: 13px;
}

.camera-source-link {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.date-input {
  background: #111014;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  font-size: 12px;
  padding: 6px 8px;
}

.date-input {
  color-scheme: dark;
  font: inherit;
  height: 34px;
}

.date-picker {
  position: relative;
}

.date-trigger {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-width: 132px;
  text-align: center;
}

.date-calendar-icon {
  color: var(--muted);
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.date-calendar {
  background: #111014;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.54);
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 280px;
  z-index: 30;
}

.date-calendar-head {
  align-items: center;
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  margin-bottom: 8px;
  text-align: center;
}

.date-calendar-head strong {
  font-size: 12px;
}

.calendar-month-button {
  align-items: center;
  display: flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 10px;
  padding: 4px 0 6px;
  text-align: center;
}

.calendar-day,
.calendar-day-spacer {
  aspect-ratio: 1;
  height: 34px;
  width: 34px;
}

.calendar-day {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 2px;
  justify-content: center;
  padding: 2px;
}

.calendar-day:hover:not(:disabled) {
  background: rgba(159, 98, 255, 0.1);
  box-shadow: none;
}

.calendar-day.selected {
  background: rgba(159, 98, 255, 0.22);
  border-color: var(--purple);
  color: var(--text);
}

.calendar-day.today:not(.selected) {
  border-color: rgba(255, 255, 255, 0.2);
}

.calendar-day:disabled {
  color: #4f4a58;
  cursor: default;
}

.calendar-note-dot {
  background: var(--actual);
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.temperature-chart-view {
  display: flex;
  flex: 1;
  min-height: 500px;
  min-width: 0;
}

.chart {
  flex: 1;
  min-height: 500px;
  cursor: crosshair;
}

.chart * {
  cursor: crosshair !important;
}

#temperatureChart .modebar,
#temperatureChart .modebar-container,
#temperatureChart .modebar-group,
#temperatureChart .modebar-btn {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.camera-view {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 500px;
  min-width: 0;
  padding: 12px;
}

.camera-stage {
  aspect-ratio: 16 / 9;
  background: #000;
  border-bottom: 1px solid rgba(69, 56, 79, 0.62);
  display: grid;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  position: relative;
  width: 100%;
}

.camera-video {
  background: #000;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

.camera-state {
  align-items: center;
  background: rgba(3, 3, 4, 0.86);
  display: flex;
  flex-direction: column;
  gap: 8px;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
  z-index: 1;
}

.camera-state strong {
  font-size: 15px;
}

.camera-state span {
  color: var(--muted);
  font-size: 12px;
}

.camera-retry-button {
  margin-top: 5px;
}

.camera-caption {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 34px;
  padding: 8px 2px 0;
  width: 100%;
}

.camera-caption strong {
  font-size: 12px;
}

.camera-caption span {
  color: var(--muted);
  font-size: 10px;
}

.model-strip {
  border-top: 1px solid rgba(69, 56, 79, 0.62);
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px 12px;
}

.model-strip-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.model-strip-legend {
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 12px;
}

.model-strip-body {
  display: grid;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.model-strip-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}

.model-weather-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(0, 1fr);
}

@media (max-width: 600px) {
  .model-weather-row {
    min-width: 534px;
  }
}

.model-weather-name {
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-weather-track {
  min-width: 0;
}

.model-weather-hours,
.model-weather-cells {
  display: grid;
  grid-template-columns: repeat(24, minmax(18px, 1fr));
}

.model-weather-hours span {
  color: #777083;
  font-size: 9px;
  line-height: 1;
  min-height: 10px;
}

.model-weather-cell {
  border-left: 1px solid rgba(69, 56, 79, 0.48);
  min-width: 0;
}

.cloud-chip {
  height: 10px;
  overflow: hidden;
  position: relative;
}

.precipitation-bar {
  background: #3bb8ff;
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.wind-chip {
  align-items: center;
  background: rgba(5, 5, 7, 0.46);
  display: flex;
  gap: 2px;
  height: 20px;
  justify-content: center;
}

.wind-arrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform-origin: center;
}

.wind-chip span:last-child {
  color: var(--soft);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
}

.panel-section {
  border-bottom: 1px solid rgba(69, 56, 79, 0.62);
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 14px;
}

.panel-section:last-child {
  border-bottom: 0;
}

.panel-section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panel-section-head h2 {
  margin: 0;
}

.meteologix-link {
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meteologix-link:hover,
.meteologix-link:focus-visible {
  color: var(--text);
}

.station-toggle-all {
  border-color: rgba(69, 56, 79, 0.76);
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  min-width: 52px;
  padding: 4px 8px;
}

.station-toggle-all[aria-pressed="true"] {
  border-color: rgba(255, 91, 167, 0.62);
  color: var(--text);
}

.station-toggles {
  display: grid;
  gap: 9px;
}

.check-row {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--soft);
  display: grid;
  gap: 9px;
  grid-template-columns: 18px 18px 1fr;
  min-height: 33px;
  padding: 6px 7px;
}

.check-row.active {
  background: linear-gradient(180deg, rgba(30, 25, 37, 0.9), rgba(15, 13, 18, 0.92));
  border-color: var(--line);
}

.check-row.disabled {
  color: #625c6d;
}

.check-row input {
  accent-color: var(--purple);
}

.check-row.fixed input {
  cursor: not-allowed;
  opacity: 0.78;
}

.swatch {
  border-radius: 999px;
  display: inline-block;
  height: 4px;
  width: 18px;
}

.swatch.actual {
  background: var(--actual);
  height: 5px;
}

.swatch.consensus {
  background: var(--yellow);
  height: 5px;
}

.swatch.ecmwf {
  background: #6f86a6;
}

.swatch.gfs {
  background: #5f9499;
}

.swatch.icon {
  background: #8b7ca8;
}

.swatch.aifs {
  background: #7d8799;
}

.station-dot {
  background: var(--purple);
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.station-dot.airport {
  background: var(--actual);
}

.station-dot.akyurt {
  background: #ffae00;
}

.station-dot.pursaklar {
  background: #ff6b1a;
}

.station-dot.muted {
  background: #5d5667;
}

.kv {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.kv strong {
  color: var(--soft);
  font-size: 12px;
}

.series-toolbar .meteologix-link {
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
  font-size: 9px;
  padding: 0;
}

.series-toolbar .station-toggle-all {
  font-size: 9px;
  min-width: 40px;
  padding: 2px 5px;
}

.series-toolbar .station-toggles {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.series-toolbar .check-row {
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  gap: 4px;
  grid-template-columns: none;
  min-height: 25px;
  padding: 3px 5px;
  white-space: nowrap;
}

.series-toolbar .check-row input {
  height: 12px;
  margin: 0;
  width: 12px;
}

.series-toolbar .swatch {
  height: 3px;
  width: 12px;
}

.series-toolbar .station-dot {
  height: 7px;
  width: 7px;
}

.market-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.market-panel-head {
  align-items: center;
  border-bottom: 1px solid rgba(69, 56, 79, 0.62);
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 11px;
}

.market-panel-head span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.market-link {
  font-size: 10px;
  padding: 5px 7px;
}

.market-board {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.market-board-empty {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  min-height: 220px;
  padding: 16px;
  place-items: center;
  text-align: center;
}

.market-contract-row {
  border-bottom: 1px solid rgba(69, 56, 79, 0.42);
  padding: 9px 11px 8px;
}

.market-contract-row:last-child {
  border-bottom: 0;
}

.market-contract-head,
.market-contract-meta,
.market-refresh-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.market-contract-head {
  gap: 8px;
}

.market-contract-label {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-contract-probability {
  color: #8290a7;
  flex: 0 0 auto;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.market-contract-row.leader .market-contract-probability {
  color: #20d7a0;
}

.market-contract-row.contender .market-contract-probability {
  color: #ffb11a;
}

.market-probability-track {
  background: #202a3b;
  border-radius: 999px;
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
}

.market-probability-bar {
  background: #52627c;
  border-radius: inherit;
  height: 100%;
  min-width: 2px;
}

.market-contract-row.leader .market-probability-bar {
  background: #18bd8b;
}

.market-contract-row.contender .market-probability-bar {
  background: #f6a814;
}

.market-contract-meta {
  color: #6f7b91;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.market-panel-footer {
  border-top: 1px solid rgba(69, 56, 79, 0.62);
  color: var(--muted);
  display: grid;
  gap: 6px;
  padding: 8px 10px 9px;
}

.market-refresh-row {
  font-size: 9px;
}

.market-system-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
}

.market-system-meta span {
  color: #696273;
  font-size: 9px;
}

.debug-shell {
  min-width: 980px;
}

.debug-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 420px minmax(0, 1fr);
}

.debug-grid article {
  overflow: hidden;
  padding: 14px;
}

table {
  border-collapse: collapse;
  color: var(--soft);
  font-size: 12px;
  width: 100%;
}

td {
  border-bottom: 1px solid var(--line);
  padding: 8px 4px;
  vertical-align: top;
}

td:first-child {
  color: var(--muted);
  width: 44%;
}

pre {
  background: #050506;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding: 12px;
}

#temperatureChart .actual-glow {
  filter: drop-shadow(0 0 5px rgba(255, 91, 167, 0.9)) drop-shadow(0 0 14px rgba(159, 98, 255, 0.36));
}

#temperatureChart .annotation,
#temperatureChart .annotation text,
#temperatureChart .annotation path {
  cursor: move !important;
}

#temperatureChart .hoverlayer .hovertext path[style*="stroke: rgb(34, 168, 102)"],
#temperatureChart .hoverlayer .hovertext path[style*="stroke: rgb(227, 79, 112)"] {
  fill-opacity: 0.52;
}

.chart-nearest-tooltip,
.chart-nearest-node,
.chart-hover-guide {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 90ms ease;
  z-index: 50;
}

.chart-hover-guide {
  border-left: 1px dashed rgba(212, 224, 248, 0.86);
  transform: translateX(-0.5px);
  width: 0;
}

.chart-nearest-tooltip {
  background: rgba(11, 10, 14, 0.68);
  border: 1px solid rgba(202, 167, 255, 0.28);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  color: var(--text);
  display: grid;
  font-size: 12px;
  gap: 3px;
  min-width: 166px;
  padding: 7px 9px;
}

.chart-nearest-tooltip strong {
  font-size: 13px;
  line-height: 1.15;
}

.chart-nearest-tooltip span {
  color: rgba(244, 240, 255, 0.82);
  line-height: 1.2;
}

.chart-nearest-tooltip.unified {
  gap: 6px;
  min-width: 190px;
  padding: 10px 12px;
}

.chart-hover-time {
  border-bottom: 1px solid rgba(202, 167, 255, 0.2);
  padding-bottom: 5px;
}

.chart-nearest-tooltip .chart-hover-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 9px minmax(34px, 1fr) auto;
}

.chart-hover-row i {
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.chart-hover-row b,
.chart-hover-row strong {
  font-size: 12px;
  line-height: 1.2;
}

.chart-hover-row b {
  color: var(--soft);
}

.chart-hover-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.chart-nearest-node {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #ff5ba7;
  border-radius: 999px;
  height: 12px;
  transform: translate(-50%, -50%);
  width: 12px;
}

.chart-nearest-tooltip.show,
.chart-nearest-node.show,
.chart-hover-guide.show {
  opacity: 1;
}

.annotation-menu,
.annotation-editor {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transform: translateY(4px);
  transition: opacity 90ms ease, transform 90ms ease;
  z-index: 70;
}

.annotation-menu.show,
.annotation-editor.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.annotation-menu {
  background: rgba(13, 12, 16, 0.96);
  border: 1px solid rgba(202, 167, 255, 0.42);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  padding: 5px;
}

.annotation-menu button,
.annotation-editor button {
  border-radius: 5px;
  padding: 7px 10px;
}

.annotation-editor {
  background: rgba(13, 12, 16, 0.97);
  border: 1px solid rgba(255, 91, 167, 0.62);
  border-radius: 7px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 8px;
  padding: 10px;
  width: 280px;
}

.annotation-editor textarea {
  background: #09080b;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  min-height: 78px;
  outline: none;
  padding: 8px;
  resize: vertical;
}

.annotation-editor textarea:focus {
  border-color: var(--actual);
}

.annotation-editor div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  body {
    min-width: 0;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .city-sidebar {
    border-bottom: 1px solid rgba(69, 56, 79, 0.72);
    border-right: 0;
    height: auto;
    overflow: visible;
    padding: 10px 16px;
    position: static;
  }

  .city-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace,
  .debug-grid {
    grid-template-columns: 1fr;
  }

  .market-panel {
    min-height: 560px;
  }
}

@media (max-width: 820px) {
  .overview-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .weather-overview,
  .pm-monitor {
    height: 164px;
  }
}

@media (max-width: 600px) {
  .shell {
    gap: 12px;
    padding: 12px;
  }

  .topbar,
  .model-strip-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .top-actions,
  .chart-stats {
    flex-wrap: wrap;
    width: 100%;
  }

  .top-actions #refreshText {
    flex: 1 1 170px;
  }

  .weather-live-overview {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .weather-live-overview .weather-overview-head,
  .weather-overview-side {
    grid-template-rows: auto auto;
  }

  .weather-temperature {
    align-self: start;
  }

  .weather-temperature > strong {
    font-size: 38px;
  }

  .weather-overview {
    height: auto;
    min-height: 250px;
  }

  .chart-toolbar {
    align-items: stretch;
    gap: 8px;
  }

  .series-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .model-control-group,
  .station-control-group {
    width: 100%;
  }

  .series-toggle-row {
    min-width: max-content;
    overflow-x: auto;
  }

  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .chart-heading h2 {
    display: none;
  }

  .chart-summary {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .today-high-summary {
    padding-left: 12px;
  }

  .nearby-stations.runway-summaries {
    column-gap: 9px;
  }

  .runway-summary-values {
    font-size: 11px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .date-input {
    white-space: nowrap;
  }

  .date-calendar {
    max-width: calc(100vw - 24px);
  }

  .temperature-chart-view,
  .chart,
  .camera-view {
    min-height: 420px;
  }

  .model-strip-legend {
    flex-wrap: wrap;
  }
}
