.f-weather-live{
  display:grid;
  gap:18px;
}
.f-weather-hero{
  display:grid;
  gap:18px;
  grid-template-columns:1.2fr .8fr;
}
.f-weather-hero__main,.f-weather-hero__side{min-width:0;}
.f-weather-kicker{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}
.f-weather-title{
  margin:10px 0 8px;
  font-size:clamp(1.8rem,3vw,2.4rem);
  line-height:1.05;
}
.f-weather-lead,.f-weather-summary{
  color:#d6e2f5;
  line-height:1.6;
}
.f-weather-status{
  color:var(--muted);
  margin-top:8px;
}
.f-weather-source{
  display:grid;
  gap:10px;
}
.f-weather-source-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:rgba(255,255,255,.03);
  padding:14px;
}
.f-weather-source-card .label{
  display:block;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
}
.f-weather-source-card .value{
  font-size:1.1rem;
  font-weight:700;
}
.f-weather-tabpanel[hidden]{display:none!important;}
.f-weather-grid{
  display:grid;
  gap:18px;
  grid-template-columns:1fr 1fr;
}
.f-weather-card-title{
  margin:0 0 12px;
  font-size:1.05rem;
}
.f-weather-metrics,.f-weather-opgrid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.f-weather-metric,.f-weather-opcard{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  padding:14px;
}
.f-weather-metric__label{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.f-weather-metric__value{
  margin-top:6px;
  font-size:1.15rem;
  font-weight:800;
}
.f-weather-metric__note{
  margin-top:4px;
  color:#d6e2f5;
  line-height:1.45;
}
.f-weather-grid--editor{grid-template-columns:1fr 1fr;}
.f-weather-form{display:grid;gap:12px;}
.f-weather-row{display:grid;gap:12px;grid-template-columns:1fr 1fr;}
.f-weather-label{display:grid;gap:6px;color:#cfe0ef;font-size:13px;}
.f-weather-input,.f-weather-btn{
  width:100%;
  box-sizing:border-box;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:#16344f;
  color:#f5fbff;
  padding:10px 12px;
  font-size:14px;
  font-family:inherit;
}
.f-weather-btn{cursor:pointer;font-weight:700;text-align:left;}
.f-weather-btn.secondary{background:#1a3c5c;}
.f-weather-btn[disabled]{opacity:.55;cursor:not-allowed;}
.f-weather-divider{height:1px;background:rgba(255,255,255,.10);margin:14px 0;}
.f-weather-edit-status{
  margin-bottom:10px;
  padding:8px 12px;
  border-radius:10px;
  background:rgba(127,196,255,.06);
  border:1px solid rgba(127,196,255,.16);
  color:#dff0ff;
  font-size:13px;
}
.f-weather-edit-status[data-state="error"]{
  background:rgba(255,127,127,.10);
  border-color:rgba(255,127,127,.30);
  color:#ffd6d6;
}
.f-weather-empty{color:#a8bdd2;font-size:13px;}
.f-weather-forecast-list{display:grid;gap:10px;}
.f-weather-forecast-row{
  display:grid;
  grid-template-columns:80px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}
.f-weather-forecast-row__hour{
  font-weight:800;
  color:#7fc4ff;
}
.f-weather-forecast-row__body{
  color:#dbe8f6;
  font-size:13px;
  line-height:1.45;
}
.f-weather-forecast-row__remove{
  border:1px solid rgba(255,127,127,.40);
  background:rgba(255,127,127,.10);
  color:#ffd6d6;
  border-radius:10px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
}

@media (max-width:980px){
  .f-weather-hero,.f-weather-grid,.f-weather-grid--editor,.f-weather-metrics,.f-weather-opgrid,.f-weather-row{
    grid-template-columns:1fr;
  }
  .f-weather-forecast-row{
    grid-template-columns:60px minmax(0,1fr) auto;
  }
}

/* ============================================================
   v3 redesign — facilitator weather editor (single page)
   ============================================================ */

.f-weather-live--v2 { padding: 14px; display: grid; gap: 14px; }
.f-weather-hide-legacy { display: none !important; }
.f-weather-toolbar-kicker { color: rgba(159,178,199,.85); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

#fWeatherSaveStatus {
  min-width: 92px;
  text-align: center;
  font-weight: 900;
  letter-spacing: .08em;
}
#fWeatherSaveStatus[data-save-state="idle"]    { color: #9fb2c7; }
#fWeatherSaveStatus[data-save-state="editing"] { color: #facc15; }
#fWeatherSaveStatus[data-save-state="saving"]  { color: #60a5fa; }
#fWeatherSaveStatus[data-save-state="saved"]   { color: #4ade80; }
#fWeatherSaveStatus[data-save-state="error"]   { color: #fb7185; }

/* Hero preview ----------------------------------------------- */
.f-weather-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .26);
  border-radius: 18px;
  min-height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 0;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(11, 22, 38, .65));
}
.f-weather-preview__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* Recolour the gray-on-white preset PNGs to fit the dark blue UI,
     same recipe used elsewhere on the project. */
  filter: invert(0.92) hue-rotate(190deg) saturate(0.55) brightness(0.95) contrast(1.05);
  mix-blend-mode: lighten;
  opacity: 0.55;
  z-index: 0;
}
.f-weather-preview__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 14% 30%, rgba(15, 23, 42, .55), transparent 56%),
    linear-gradient(90deg, rgba(15, 23, 42, .65) 0%, rgba(11, 22, 38, .25) 60%, rgba(11, 22, 38, .55) 100%);
  z-index: 1;
}
.f-weather-preview__body {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.f-weather-preview__kicker {
  color: rgba(203, 213, 225, .68);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.f-weather-preview__headline {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -.01em;
  max-width: 60ch;
}
.f-weather-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.f-weather-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(96, 165, 250, .25);
  color: #f8fafc;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.f-weather-chip .label {
  color: rgba(203, 213, 225, .65);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.f-weather-preview__assessment {
  position: relative;
  z-index: 2;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
  background: rgba(2, 6, 23, .35);
  border-left: 1px solid rgba(96, 165, 250, .18);
}
.f-weather-preview__assess-card {
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 12px;
  background: rgba(15, 23, 42, .55);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.f-weather-preview__assess-card .label {
  color: rgba(203, 213, 225, .66);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.f-weather-preview__assess-card strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

/* Generic editor card (mirror of the briefing editor look) ----- */
.f-edit-card {
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% -8%, rgba(59, 130, 246, .10), transparent 38%),
    rgba(15, 23, 42, .60);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .045);
}
.f-edit-card-title {
  color: rgba(203, 213, 225, .66);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.f-edit-row {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.f-edit-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-edit-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-edit-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-edit-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  min-width: 0;
}
.f-edit-label {
  color: rgba(203, 213, 225, .68);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}
.f-edit-field input,
.f-edit-field textarea,
.f-edit-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 10px;
  background: rgba(2, 6, 23, .55);
  color: #f8fafc;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.f-edit-field input:hover,
.f-edit-field textarea:hover {
  border-color: rgba(96, 165, 250, .42);
}
.f-edit-field input:focus,
.f-edit-field textarea:focus {
  border-color: #60a5fa;
  background: rgba(2, 6, 23, .75);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .18);
}

/* Preset gallery — 3×3 roster with small thumbnails ---------- */
.f-weather-presets-card { padding-bottom: 12px; }
.f-weather-presets {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}
.f-weather-preset {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 12px;
  background: rgba(2, 6, 23, .55);
  cursor: pointer;
  transition: transform .12s, border-color .12s, box-shadow .12s, background-color .12s;
  font-family: inherit;
  text-align: left;
  color: #e2e8f0;
  min-height: 76px;
}
.f-weather-preset:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, .55);
  background: rgba(2, 6, 23, .75);
  box-shadow: 0 8px 22px rgba(2, 6, 23, .32);
}
.f-weather-preset.is-active {
  border-color: #60a5fa;
  background: rgba(15, 35, 64, .92);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, .35), 0 10px 26px rgba(2, 6, 23, .32);
}
.f-weather-preset.is-active::after {
  content: "";
  position: absolute;
}
.f-weather-preset img {
  width: 64px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  filter: invert(0.92) hue-rotate(190deg) saturate(0.55) brightness(0.95) contrast(1.05);
  mix-blend-mode: lighten;
  opacity: 0.92;
  pointer-events: none;
  flex-shrink: 0;
}
.f-weather-preset__label {
  color: #f8fafc;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.15;
}
.f-weather-preset__desc {
  color: rgba(203, 213, 225, .68);
  font-size: 11px;
  letter-spacing: .02em;
  margin-top: 4px;
  line-height: 1.35;
}

/* Action button row used under each editor card */
.f-weather-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.f-weather-btn {
  border: 1px solid rgba(96, 165, 250, .42);
  background: rgba(59, 130, 246, .92);
  color: #0b1522;
  font: inherit;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: filter .15s;
}
.f-weather-btn:hover { filter: brightness(1.08); }
.f-weather-btn.secondary {
  background: rgba(2, 6, 23, .55);
  color: #cbd5e1;
  border-color: rgba(96, 165, 250, .22);
}

/* Forecast editor — preset gallery + quick-hour chips */
.f-weather-fc-help {
  margin: 8px 0 12px;
  color: rgba(203, 213, 225, .72);
  font-size: 13px;
  line-height: 1.5;
}
.f-weather-fc-help strong {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-right: 4px;
  border-radius: 50%;
  background: rgba(59, 130, 246, .92);
  color: #0b1522;
  font-size: 11px;
  font-weight: 900;
}
.f-weather-fc-help em {
  color: #93c5fd;
  font-style: normal;
  font-weight: 800;
}
.f-weather-presets--mini {
  margin-bottom: 10px;
  max-width: none;
}
.f-weather-quick-hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
}
.f-weather-quick-hours .f-edit-label {
  margin-right: 4px;
}
.f-weather-quick {
  border: 1px solid rgba(96, 165, 250, .35);
  background: rgba(2, 6, 23, .55);
  color: #cbd5e1;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background-color .12s, color .12s, border-color .12s;
}
.f-weather-quick:hover {
  background: rgba(15, 35, 64, .85);
  border-color: rgba(96, 165, 250, .55);
  color: #f8fafc;
}
.f-weather-quick.is-active {
  background: rgba(59, 130, 246, .92);
  border-color: rgba(96, 165, 250, .85);
  color: #0b1522;
}

/* Forecast editor polish — clearer rows + bigger touch targets */
.f-weather-forecast-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.f-weather-forecast-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 10px;
  background: rgba(15, 23, 42, .55);
  transition: border-color .15s, background-color .15s;
}
.f-weather-forecast-row:hover {
  border-color: rgba(96, 165, 250, .42);
  background: rgba(15, 23, 42, .75);
}
.f-weather-forecast-row__hour {
  color: #93c5fd;
  font-weight: 900;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.f-weather-forecast-row__hour .f-weather-metric__label {
  color: rgba(203, 213, 225, .60);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.f-weather-forecast-row__body {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.45;
}
.f-weather-forecast-row__remove {
  border: 1px solid rgba(251, 113, 133, .42);
  background: rgba(251, 113, 133, .10);
  color: #fecdd3;
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  transition: filter .12s;
}
.f-weather-forecast-row__remove:hover { filter: brightness(1.15); }
.f-weather-empty {
  padding: 14px;
  border: 1px dashed rgba(96, 165, 250, .25);
  border-radius: 10px;
  color: rgba(203, 213, 225, .58);
  font-size: 13px;
  text-align: center;
  background: rgba(2, 6, 23, .35);
}

/* Responsive collapse for the new layout */
@media (max-width: 1100px) {
  .f-edit-row--4       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .f-weather-preview   { grid-template-columns: 1fr; }
  .f-weather-preview__assessment { grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid rgba(96, 165, 250, .18); }
  .f-weather-presets   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-edit-row--3,
  .f-edit-row--4       { grid-template-columns: 1fr; }
  .f-weather-forecast-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
}
@media (max-width: 480px) {
  .f-weather-presets   { grid-template-columns: 1fr; }
}


/* OWGE Facilitator Weather — current hero + timeline sync */
.f-weather-current-hero-live {
  position: relative;
  overflow: hidden;
}

.f-weather-current-metric-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  max-width: 100%;
}

.f-weather-current-metric-bar span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, .22);
  background: rgba(2, 6, 23, .52);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}

.f-weather-current-metric-bar strong {
  color: rgba(203, 213, 225, .62);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.f-weather-current-kind {
  border-color: rgba(250, 204, 21, .42) !important;
  color: #f8fafc !important;
}

.f-weather-forecast-timeline-live {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% -8%, rgba(59, 130, 246, .10), transparent 38%),
    rgba(15, 23, 42, .60);
}

.f-weather-forecast-timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.f-weather-forecast-kicker,
.f-weather-forecast-note {
  color: rgba(203, 213, 225, .66);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.f-weather-forecast-timeline-head h2 {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.15;
}

.f-weather-forecast-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(2, 6, 23, .28);
}

.f-weather-timeline-point {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid rgba(96, 165, 250, .18);
  display: grid;
  gap: 9px;
  text-align: center;
}

.f-weather-timeline-point:last-child {
  border-right: 0;
}

.f-weather-timeline-time {
  color: #f8fafc;
  font-weight: 950;
  letter-spacing: .06em;
}

.f-weather-timeline-icon {
  font-size: 28px;
  line-height: 1;
}

.f-weather-timeline-label {
  min-height: 34px;
  color: #f87171;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.f-weather-timeline-point[data-weather-kind="calm"] .f-weather-timeline-label,
.f-weather-timeline-point[data-weather-kind="fair"] .f-weather-timeline-label {
  color: #86efac;
}

.f-weather-timeline-point[data-weather-kind="rough"] .f-weather-timeline-label {
  color: #fb923c;
}

.f-weather-timeline-point[data-weather-kind="foggy"] .f-weather-timeline-label {
  color: #facc15;
}

.f-weather-timeline-metrics {
  display: grid;
  gap: 6px;
}

.f-weather-timeline-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  padding-top: 6px;
  font-size: 12px;
}

.f-weather-timeline-metrics span {
  color: rgba(203, 213, 225, .58);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
}

.f-weather-timeline-metrics strong {
  color: #f8fafc;
}

.f-weather-timeline-empty {
  padding: 14px;
  color: rgba(203, 213, 225, .7);
}

@media (max-width: 1100px) {
  .f-weather-forecast-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .f-weather-forecast-timeline-grid {
    grid-template-columns: 1fr;
  }
}

