.mfc-dashboard {
  --mfc-ink: #17324a;
  --mfc-muted: #66798a;
  --mfc-blue: #167db2;
  --mfc-blue-dark: #0d557c;
  --mfc-orange: #ed9a2d;
  --mfc-green: #2b7b58;
  --mfc-line: #dce6ea;
  --mfc-paper: #f6f8f7;
  --mfc-white: #fff;
  width: 100%; max-width: 1180px; margin: 0 auto; color: var(--mfc-ink);
  font-family: "Segoe UI", Arial, sans-serif; box-sizing: border-box;
}
.mfc-dashboard *, .mfc-dashboard *::before, .mfc-dashboard *::after { box-sizing: border-box; }
.mfc-dashboard button { font: inherit; }
.mfc-dashboard-status { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e7c88f; border-radius: 10px; color: #7a581a; background: #fff8e9; font-size: 12px; }
.mfc-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 18px 0 28px; }
.mfc-page-heading h1 { margin: 10px 0 0; color: var(--mfc-ink); font-size: clamp(32px, 4.5vw, 46px); font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.mfc-page-heading p { margin: 12px 0 0; color: var(--mfc-muted); font-size: 16px; }
.mfc-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--mfc-blue-dark); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.mfc-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3dab70; box-shadow: 0 0 0 4px rgba(61,171,112,.13); }
.mfc-freshness { display: grid; gap: 4px; padding-bottom: 3px; text-align: right; }
.mfc-freshness strong { color: var(--mfc-green); font-size: 13px; }
.mfc-freshness strong.is-stale { color: #b37115; }
.mfc-freshness span { color: var(--mfc-muted); font-size: 11px; }
.mfc-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 14px; }
.mfc-facts article { min-height: 132px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; border: 1px solid var(--mfc-line); border-radius: 17px; background: var(--mfc-white); position: relative; }
.mfc-facts article::after { content: ""; width: 66px; height: 66px; position: absolute; right: -23px; top: -24px; border-radius: 50%; background: #eaf4f8; }
.mfc-facts article:first-child::after { background: #fff1d9; }
.mfc-facts article:last-child::after { background: #e6f3ed; }
.mfc-facts article > span, .mfc-map-temperature > span { color: var(--mfc-muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.mfc-facts article strong { margin-top: 11px; color: var(--mfc-ink); font-size: 25px; letter-spacing: -.035em; }
.mfc-facts article small { margin-top: auto; color: var(--mfc-muted); font-size: 10px; }
.mfc-airfield-map { width: 100%; aspect-ratio: 8 / 5; position: relative; overflow: hidden; border: 1px solid #bdcdbd; border-radius: 22px; background: #172027; box-shadow: 0 20px 50px rgba(41,75,93,.1); }
.mfc-map-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.mfc-map-mode { position: absolute; left: 20px; top: 24%; padding: 7px 9px; border-radius: 8px; color: #fff; background: rgba(16,44,61,.88); font-size: 9px; font-weight: 750; backdrop-filter: blur(6px); }
.mfc-map-wind { min-width: 255px; position: absolute; right: 20px; top: 20px; display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: 14px; color: #fff; background: rgba(16,44,61,.92); box-shadow: 0 10px 26px rgba(16,43,59,.28); backdrop-filter: blur(7px); }
.mfc-map-wind img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: #fff; }
.mfc-map-wind div, .mfc-map-temperature { display: grid; }
.mfc-map-wind small, .mfc-map-temperature span { color: #bcd2df; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.mfc-map-wind strong, .mfc-map-temperature strong { margin-top: 2px; color: #fff; font-size: 19px; }
.mfc-map-wind span, .mfc-map-temperature small { margin-top: 3px; color: #d8e6ec; font-size: 10px; }
.mfc-map-temperature { min-width: 180px; position: absolute; right: 20px; bottom: 20px; padding: 13px 15px; border-radius: 12px; background: rgba(16,44,61,.92); backdrop-filter: blur(7px); }
.mfc-map-caption { position: absolute; left: 20px; bottom: 18px; display: grid; padding: 9px 11px; border-radius: 9px; color: #fff; background: rgba(24,52,67,.82); backdrop-filter: blur(6px); }
.mfc-map-caption strong { font-size: 11px; }
.mfc-map-caption small { margin-top: 2px; color: #cee0e7; font-size: 9px; }
.mfc-condition { margin-top: 14px; padding: 17px 20px; border: 1px solid #cce6d7; border-radius: 16px; background: #edf7f1; }
.mfc-condition summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.mfc-condition summary::-webkit-details-marker { display: none; }
.mfc-condition summary > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--mfc-green); font-style: normal; font-weight: 800; }
.mfc-condition summary > span { display: grid; }
.mfc-condition summary strong { font-size: 14px; }
.mfc-condition summary small { margin-top: 3px; color: #567064; font-size: 11px; }
.mfc-condition summary b { padding: 8px 10px; border: 1px solid #9bc7ac; border-radius: 9px; color: var(--mfc-green); font-size: 10px; }
.mfc-condition > p { max-width: 760px; margin: 14px 0 0 50px; color: #567064; font-size: 11px; line-height: 1.55; }
.mfc-history { padding-top: 62px; }
.mfc-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 19px; }
.mfc-chart-toolbar { justify-content: flex-end; }
.mfc-section-heading > div:first-child > span { color: var(--mfc-blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mfc-section-heading h2 { margin: 6px 0 0; color: var(--mfc-ink); font-size: clamp(27px, 4vw, 38px); font-weight: 750; letter-spacing: -.04em; line-height: 1.05; }
.mfc-range { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--mfc-line); border-radius: 11px; background: #fff; }
.mfc-range button { margin: 0; padding: 8px 11px; border: 0; border-radius: 8px; color: var(--mfc-muted); background: transparent; box-shadow: none; text-shadow: none; font-size: 10px; font-weight: 750; cursor: pointer; }
.mfc-range button:hover { color: var(--mfc-ink); background: #eef3f5; }
.mfc-range button.is-active { color: #fff; background: var(--mfc-blue-dark); }
.mfc-chart-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.mfc-chart-card { padding: 18px 17px 10px; overflow: hidden; border: 1px solid var(--mfc-line); border-radius: 18px; background: #fff; }
.mfc-chart-card header { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 30px; }
.mfc-chart-card header span { color: var(--mfc-ink); font-size: 13px; font-weight: 800; }
.mfc-chart-card header b { padding: 5px 8px; border-radius: 7px; color: var(--mfc-muted); background: #f2f6f7; font-size: 9px; }
.mfc-chart-explanation { margin: 2px 0 0; color: var(--mfc-muted); font-size: 9px; line-height: 1.4; }
.mfc-chart-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-color: #b8cbd5 #eef3f5; scrollbar-width: thin; }
.mfc-chart-scroll:focus-visible { outline: 2px solid var(--mfc-blue); outline-offset: 2px; border-radius: 8px; }
.mfc-chart-card canvas { width: 100%; min-width: 100%; height: 270px; display: block; }
.mfc-chart-wide canvas { height: 300px; }
.mfc-source-note { margin: 10px 2px 0; color: var(--mfc-muted); font-size: 9px; }
.mfc-internal-heading { margin-top: 0; }
.mfc-refresh-controls { display: grid; grid-template-columns: auto auto; justify-items: end; align-items: center; gap: 7px 9px; }
.mfc-refresh-controls > label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--mfc-muted); font-size: 10px; cursor: pointer; }
.mfc-refresh-controls label input { position: absolute; opacity: 0; pointer-events: none; }
.mfc-refresh-controls label i { width: 34px; height: 20px; padding: 3px; border-radius: 18px; background: #b8c6cc; }
.mfc-refresh-controls label i::before { content: ""; width: 14px; height: 14px; display: block; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(30,59,73,.2); }
.mfc-refresh-controls label input:checked + i { background: var(--mfc-green); }
.mfc-refresh-controls label input:checked + i::before { transform: translateX(14px); }
.mfc-refresh-controls > button { margin: 0; padding: 9px 12px; border: 0; border-radius: 9px; color: #fff; background: var(--mfc-blue-dark); box-shadow: none; text-shadow: none; font-size: 10px; font-weight: 750; cursor: pointer; }
.mfc-refresh-controls > small { grid-column: 1 / -1; color: var(--mfc-muted); font-size: 9px; }
.mfc-camera-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.mfc-camera-card { overflow: hidden; border: 1px solid var(--mfc-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(23,50,74,.06); }
.mfc-camera-open { width: 100%; aspect-ratio: 4 / 3; display: block; position: relative; overflow: hidden; margin: 0; padding: 0; border: 0; border-radius: 0; background: #020403; box-shadow: none; cursor: zoom-in; }
.mfc-camera-open > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mfc-night-badge { position: absolute; left: 9px; top: 9px; padding: 5px 7px; border-radius: 6px; color: #dbeaf1; background: rgba(16,44,61,.82); font-size: 8px; font-weight: 750; backdrop-filter: blur(5px); }
.mfc-expand-label { position: absolute; left: 50%; top: 50%; padding: 8px 10px; border-radius: 8px; color: #fff; background: rgba(16,44,61,.9); opacity: 0; transform: translate(-50%,-45%); transition: opacity .2s, transform .2s; font-size: 9px; font-weight: 750; }
.mfc-camera-open:hover .mfc-expand-label, .mfc-camera-open:focus .mfc-expand-label { opacity: 1; transform: translate(-50%,-50%); }
.mfc-camera-card > footer { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 13px 14px; }
.mfc-camera-card > footer > div { display: grid; gap: 4px; }
.mfc-camera-card > footer strong { color: var(--mfc-ink); font-size: 12px; }
.mfc-camera-card > footer small { color: var(--mfc-muted); font-size: 8px; }
.mfc-camera-state { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 16px; color: var(--mfc-green); background: #edf7f1; font-size: 8px; font-weight: 750; white-space: nowrap; }
.mfc-camera-state i { width: 5px; height: 5px; border-radius: 50%; background: #40ac70; }
.mfc-camera-state.is-checking { color: #6e7e87; background: #f0f3f4; }
.mfc-camera-state.is-checking i { background: #91a0a8; }
.mfc-camera-state.is-stale { color: #9a6418; background: #fff6e8; }
.mfc-camera-state.is-stale i { background: #e6a23c; }
.mfc-camera-state.is-offline { color: #9a4e40; background: #fff0ec; }
.mfc-camera-state.is-offline i { background: #c45d4a; }
.mfc-weather-strip { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 13px; overflow: hidden; border-radius: 15px; color: #fff; background: var(--mfc-blue-dark); }
.mfc-weather-strip > div { min-height: 82px; display: grid; align-content: center; gap: 3px; padding: 14px 17px; border-right: 1px solid rgba(255,255,255,.12); }
.mfc-weather-strip > div:last-child { border: 0; }
.mfc-weather-strip span { color: #b8d4e2; font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.mfc-weather-strip strong { color: #fff; font-size: 15px; }
.mfc-weather-strip small { color: #d0e1e9; font-size: 8px; }
.mfc-internal-history { padding-top: 54px; }
.mfc-camera-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 24px; background: rgba(8,26,37,.88); backdrop-filter: blur(9px); }
.mfc-camera-modal[hidden] { display: none; }
.mfc-camera-modal > div { width: min(100%, 900px); overflow: hidden; border-radius: 17px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.mfc-camera-modal header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; }
.mfc-camera-modal header strong { color: var(--mfc-ink); font-size: 13px; }
.mfc-camera-modal header button { width: 33px; height: 33px; margin: 0; padding: 0; border: 1px solid var(--mfc-line); border-radius: 50%; color: var(--mfc-ink); background: #f4f7f7; box-shadow: none; text-shadow: none; font-size: 21px; cursor: pointer; }
.mfc-camera-modal img { width: 100%; height: auto; display: block; background: #000; }

@media (max-width: 820px) {
  .mfc-page-heading { display: block; }
  .mfc-freshness { margin-top: 15px; text-align: left; }
  .mfc-facts { grid-template-columns: repeat(2,1fr); }
  .mfc-map-wind { right: 10px; top: 10px; min-width: 200px; padding: 9px 11px; gap: 8px; }
  .mfc-map-wind img { width: 40px; height: 40px; }
  .mfc-map-wind strong, .mfc-map-temperature strong { font-size: 15px; }
  .mfc-map-temperature { right: 10px; bottom: 10px; min-width: 150px; padding: 8px 10px; }
  .mfc-map-caption { left: 10px; bottom: 10px; }
  .mfc-map-mode { left: 10px; }
  .mfc-section-heading { display: block; }
  .mfc-range { width: max-content; margin-top: 14px; }
  .mfc-chart-grid { grid-template-columns: 1fr; }
  .mfc-refresh-controls { margin-top: 18px; justify-items: start; justify-content: start; }
  .mfc-camera-grid { grid-template-columns: 1fr; }
  .mfc-camera-card { display: grid; grid-template-columns: minmax(230px,.9fr) 1fr; }
  .mfc-camera-card > footer { min-height: 100%; }
  .mfc-weather-strip { grid-template-columns: repeat(2,1fr); }
  .mfc-weather-strip > div { border-bottom: 1px solid rgba(255,255,255,.12); }
  .mfc-weather-strip > div:nth-child(even) { border-right: 0; }
  .mfc-weather-strip > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 500px) {
  .mfc-page-heading h1 { font-size: 34px; }
  .mfc-page-heading p { font-size: 13px; }
  .mfc-facts article { min-height: 116px; padding: 15px; }
  .mfc-facts article strong { font-size: 20px; }
  .mfc-map-wind { right: 7px; top: 7px; min-width: 165px; padding: 6px 8px; }
  .mfc-map-wind img { width: 32px; height: 32px; }
  .mfc-map-wind small, .mfc-map-wind span { font-size: 7px; }
  .mfc-map-wind strong { font-size: 13px; }
  .mfc-map-temperature { display: none; }
  .mfc-map-mode { left: 7px; top: 29%; padding: 5px 6px; font-size: 7px; }
  .mfc-map-caption { left: 7px; bottom: 7px; padding: 5px 7px; }
  .mfc-map-caption small { display: none; }
  .mfc-condition summary { grid-template-columns: auto 1fr; gap: 10px; }
  .mfc-condition summary b { grid-column: 2; justify-self: start; }
  .mfc-condition > p { margin-left: 46px; }
  .mfc-history { padding-top: 46px; }
  .mfc-range { width: 100%; }
  .mfc-range button { flex: 1; padding-inline: 6px; }
  .mfc-chart-card canvas, .mfc-chart-wide canvas { height: 220px; }
  .mfc-camera-card { display: block; }
  .mfc-refresh-controls { grid-template-columns: 1fr; }
  .mfc-refresh-controls > small { grid-column: 1; }
  .mfc-weather-strip { grid-template-columns: 1fr; }
  .mfc-weather-strip > div, .mfc-weather-strip > div:nth-child(even), .mfc-weather-strip > div:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .mfc-weather-strip > div:last-child { border-bottom: 0; }
  .mfc-camera-modal { padding: 10px; }
}
