#mvd-metar-widget{
  --mvd-ink:#0b1220; --mvd-ink2:#0f172a; --mvd-ink3:#334155;
  --mvd-line:#e5e7eb; --mvd-muted:#64748b;
  --mvd-card:#ffffff; --mvd-good:#16a34a; --mvd-warn:#f59e0b; --mvd-bad:#dc2626;
  --mvd-radius:14px; --mvd-chip:#eef2ff; --mvd-chip-dim:#f1f5f9;
  --mvd-focus:#2b587d;
  --tok-wind:#2b587d;
  --icao-h:44px; --ctrl-h:44px; --ctrl-bg:#f8fafc;
}
#mvd-metar-widget, #mvd-metar-widget *{ box-sizing:border-box; font-family:"Overpass",system-ui,-apple-system,Segoe UI,Roboto; }

/* Barra superior */
#mvd-metar-widget .bar{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; }
#mvd-metar-widget .ctrl{
  display:flex; align-items:center; gap:6px; padding:6px 10px;
  border:1px solid var(--mvd-line); border-radius:10px; background:var(--ctrl-bg);
  color:var(--mvd-ink3); font-size:14px; min-height:var(--ctrl-h);
}
#mvd-metar-widget .ctrl select, #mvd-metar-widget .ctrl input{
  border:0; outline:none; background:transparent; color:var(--mvd-ink2);
  font-size:14px; min-width:auto; height:30px; line-height:30px;
}
#mvd-metar-widget #metar-uy{ width:200px; }
#mvd-metar-widget #metar-icao{ width:110px; text-transform:uppercase; }
#mvd-metar-widget #metar-rwy{ width:100px; }
#mvd-metar-widget #metar-interval{ width:100px; }
#mvd-metar-widget .auto-chip{ font-size:11px; font-weight:900; padding:2px 6px; border-radius:999px; border:1px solid rgba(0,0,0,.08); background:#e5e7eb; color:#374151; }
#mvd-metar-widget .btn{
  border:1px solid var(--mvd-focus); color:#fff; background:var(--mvd-focus);
  border-radius:10px; padding:10px 14px; font-weight:800; cursor:pointer; min-height:var(--ctrl-h);
}
#mvd-metar-widget .btn:hover{ filter:brightness(1.05); }

#mvd-metar-widget [hidden]{ display:none !important; }
#mvd-metar-widget .btn.is-active{ background:#e9f0f6; color:var(--mvd-focus); border-color:var(--mvd-focus); }
#mvd-metar-widget .muted{ color:var(--mvd-muted); font-size:12px; padding-left:6px; }

/* Tarjetas base */
#mvd-metar-widget .card{ border:1px solid var(--mvd-line); border-radius:var(--mvd-radius); background:var(--mvd-card); box-shadow:0 6px 16px rgba(0,0,0,.06); padding:16px; }
#mvd-metar-widget .header-card{ margin-top:8px; }
#mvd-metar-widget .header{ display:block; }

/* Título */
#mvd-metar-widget .title{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
#mvd-metar-widget .icao-line{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#mvd-metar-widget .icao-chip{ display:inline-flex; align-items:center; height:var(--icao-h); padding:0 12px; border-radius:10px; background:var(--mvd-chip); color:var(--mvd-ink); font-size:28px; font-weight:800; letter-spacing:.5px; line-height:1; }
#mvd-metar-widget .name-block{ padding-left:2px; }
#mvd-metar-widget .name{ font-size:14px; color:var(--mvd-ink3); }
#mvd-metar-widget .coords{ font-size:12px; color:var(--mvd-muted); }

/* Chips de cabecera */
#mvd-metar-widget .h-chip{ display:inline-flex; align-items:center; height:var(--icao-h); padding:0 12px; border-radius:10px; font-weight:800; line-height:1; font-size:16px; }
#mvd-metar-widget .when{ border:1px solid var(--mvd-line); background:var(--mvd-chip-dim); color:var(--mvd-ink3); }
#mvd-metar-widget .when.fresh{ background:#dcfce7; color:#166534; border-color:rgba(22,101,52,.25); }
#mvd-metar-widget .when.stale{ background:#fef9c3; color:#854d0e; border-color:rgba(133,77,14,.25); }
#mvd-metar-widget .when.old{   background:#fde2e2; color:#9b1c1c; border-color:rgba(155,28,28,.28); }
#mvd-metar-widget .info-chip{ border:1px solid var(--mvd-line); background:#f1f5f9; color:#0f172a; }

/* Reglas de vuelo */
#mvd-metar-widget .lim-chip{ background:#dcfce7; color:#166534; border:2px solid rgba(22,101,52,.15); text-transform:uppercase; letter-spacing:.6px; }
#mvd-metar-widget .lim-chip.mvfr{ background:#dbeafe; color:#1e40af; border-color:rgba(30,64,175,.25); }
#mvd-metar-widget .lim-chip.ifr{  background:#fee2e2; color:#b91c1c; border-color:rgba(185,28,28,.18); }
#mvd-metar-widget .lim-chip.lifr{ background:#f5d0fe; color:#86198f; border-color:rgba(134,25,143,.25); }

/* Grid de tarjetas */
#mvd-metar-widget .right-card{ margin-top:12px; }
#mvd-metar-widget .right-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
@media (max-width:1100px){ #mvd-metar-widget .right-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ #mvd-metar-widget .right-grid{ grid-template-columns: 1fr; } }

#mvd-metar-widget .tile{ border:1px solid var(--mvd-line); border-radius:12px; padding:12px; display:flex; align-items:center; gap:12px; background:linear-gradient(180deg,#fff,#fafafa); position:relative; }
#mvd-metar-widget .tile .k{ font-size:12px; color:var(--mvd-ink3); margin:0; }
#mvd-metar-widget .tile .v{ font-size:20px; font-weight:900; color:var(--mvd-ink); line-height:1.1; margin:0; }
#mvd-metar-widget .tile .s{ font-size:12px; color:var(--mvd-muted); margin:0; }

/* Iconos (SVG máscara) */
#mvd-metar-widget .icon-mask{ display:inline-block; width:44px; height:44px; flex:0 0 auto; background-color: var(--mvd-focus); -webkit-mask: var(--ico) no-repeat 50% 50% / 100% 100%; mask: var(--ico) no-repeat 50% 50% / 100% 100%; }

/* Rosa + flecha viento */
#mvd-metar-widget .w-visual{ display:flex; align-items:center; gap:14px; }
#mvd-metar-widget .compass{ position:relative; width:92px; height:92px; flex:0 0 auto; }
#mvd-metar-widget .compass-ring{ position:absolute; inset:0; border-radius:999px; background: radial-gradient(circle at 50% 50%, rgba(43,88,125,.08), rgba(43,88,125,.04) 60%, transparent 61%), conic-gradient(from 0deg, rgba(0,0,0,0) 0 44.5deg, rgba(0,0,0,.06) 44.5deg 45deg, rgba(0,0,0,0) 45deg 89.5deg, rgba(0,0,0,.06) 89.5deg 90deg, rgba(0,0,0,0) 90deg 134.5deg, rgba(0,0,0,.06) 134.5deg 135deg, rgba(0,0,0,0) 135deg 179.5deg, rgba(0,0,0,.06) 179.5deg 180deg, rgba(0,0,0,0) 180deg 224.5deg, rgba(0,0,0,.06) 224.5deg 225deg, rgba(0,0,0,0) 225deg 269.5deg, rgba(0,0,0,.06) 269.5deg 270deg, rgba(0,0,0,0) 270deg 314.5deg, rgba(0,0,0,.06) 314.5deg 315deg, rgba(0,0,0,0) 315deg 359.5deg, rgba(0,0,0,.06) 359.5deg 360deg); border:2px solid var(--mvd-line); }
#mvd-metar-widget .cardinal{ position:absolute; font-size:11px; font-weight:800; color:#475569; user-select:none; pointer-events:none; }
#mvd-metar-widget .cardinal.n{ top:-2px; left:50%; transform:translateX(-50%); }
#mvd-metar-widget .cardinal.e{ right:-2px; top:50%; transform:translateY(-50%); }
#mvd-metar-widget .cardinal.s{ bottom:-2px; left:50%; transform:translateX(-50%); }
#mvd-metar-widget .cardinal.w{ left:-2px; top:50%; transform:translateY(-50%); }
#mvd-metar-widget .wind-arrow{ position:absolute; left:50%; top:50%; width:42px; height:42px; transform:translate(-50%,-50%); }
#mvd-metar-widget .rot{ transition: transform .35s cubic-bezier(.2,.8,.2,1); transform-origin:50% 50%; will-change: transform; }

/* Chips y medidor viento */
#mvd-metar-widget .wind-info{ flex-direction:column; align-items:stretch; border-width:2px; }
#mvd-metar-widget .w-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
#mvd-metar-widget .w-main{ font-size:22px; font-weight:900; color:var(--mvd-ink); }
#mvd-metar-widget .chip{ font-size:11px; font-weight:800; padding:2px 8px; border-radius:999px; background:#eef2ff; color:#1e40af; border:1px solid rgba(30,64,175,.2); }
#mvd-metar-widget .chip.dim{ background:#f1f5f9; color:#334155; border-color:rgba(51,65,85,.2); }
#mvd-metar-widget .chip.big{ font-size:13px; }
#mvd-metar-widget .xmeter{ position:relative; height:10px; border-radius:999px; background:linear-gradient(90deg,#16a34a 0%,#f59e0b 60%,#dc2626 100%); margin-top:8px; }
#mvd-metar-widget .xmarker{ position:absolute; top:-4px; width:2px; height:18px; background:#111827; border-radius:2px; }
#mvd-metar-widget .xlabels{ display:flex; justify-content:space-between; font-size:10px; color:#64748b; margin-top:4px; }
#mvd-metar-widget .badge-xw{ position:absolute; top:8px; right:8px; font-size:11px; font-weight:900; color:#991b1b; background:#fee2e2; border:1px solid rgba(153,27,27,.25); padding:3px 8px; border-radius:999px; display:none; }
#mvd-metar-widget .wind-info.x-ok{   border-color:var(--mvd-good); box-shadow:0 0 0 2px rgba(22,163,74,.08); }
#mvd-metar-widget .wind-info.x-warn{ border-color:var(--mvd-warn); box-shadow:0 0 0 2px rgba(245,158,11,.10); }
#mvd-metar-widget .wind-info.x-bad{  border-color:var(--mvd-bad);  box-shadow:0 0 0 2px rgba(220,38,38,.10); }

/* Mini charts base */
#mvd-metar-widget .mini-chart{ width:140px; height:36px; }
#mvd-metar-widget .mini-chart.v{ width:64px; height:90px; }
#mvd-metar-widget #qnh-chart{ display:none !important; }

/* Visibilidad */
#mvd-metar-widget .vis-box{ flex:1; display:flex; flex-direction:column; gap:2px; }
#mvd-metar-widget .mini-chart.vis{ width:100%; height:28px; margin-top:6px; display:block; }

/* Techo: contenedor a la derecha */
#mvd-metar-widget .ceil-right{ display:flex; align-items:center; justify-content:center; padding-right:4px; }

/* RAW + copiar */
#mvd-metar-widget .raw-wrap{ position:relative; margin-top:12px; padding-top:0; }
#mvd-metar-widget .raw{ padding:16px; border:1px solid var(--mvd-line); border-left:5px solid var(--mvd-focus); border-radius:12px; background:var(--mvd-card); color:var(--mvd-ink2); font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size:16px; line-height:1.35; white-space:pre-wrap; word-break:break-word; box-shadow:0 6px 16px rgba(0,0,0,.04); }
#mvd-metar-widget .copy-btn{
  position:static; top:auto; right:auto; z-index:auto;
  display:inline-flex; align-items:center; justify-content:center;
  height:var(--icao-h); padding:0 12px; border-radius:10px;
  border:1px solid var(--mvd-focus); background:var(--mvd-focus); color:#fff; font-weight:800; font-size:14px; cursor:pointer;
}
#mvd-metar-widget .tok.wind{color:var(--tok-wind);font-weight:800;} .tok.vis{color:#16a34a;font-weight:800;}
#mvd-metar-widget .tok.cloud{color:#7c3aed;font-weight:800;} .tok.qnh{color:#ea580c;font-weight:800;}
#mvd-metar-widget .tok.icao{color:var(--mvd-focus);font-weight:800;} .tok.time{color:var(--mvd-focus);}

#mvd-metar-widget #icao-notice{ margin-top:8px;padding:8px 10px;border:1px solid #f59e0b;background:#fff7ed;color:#7c2d12;border-radius:8px;font-size:13px;font-weight:700;display:none; }

/* ====== TAF addon (estilos) ====== */
#mvd-metar-widget .taf-card{ margin-top:12px; padding:0; }
#mvd-metar-widget .taf-head{
  display:flex; align-items:center; gap:10px; padding:12px 16px; cursor:pointer;
  border:1px solid var(--mvd-line); border-radius:12px; background:var(--mvd-card);
  user-select:none; box-shadow:0 6px 16px rgba(0,0,0,.06);
}
#mvd-metar-widget .taf-title{ font-weight:900; color:var(--mvd-ink2); }
#mvd-metar-widget .taf-when{ font-size:13px; color:#64748b; margin-left:6px; }
#mvd-metar-widget .taf-body{ display:none; padding:12px 16px 16px 16px; border:1px solid var(--mvd-line); border-top:0; border-radius:0 0 12px 12px; background:var(--mvd-card); box-shadow:0 6px 16px rgba(0,0,0,.06); }
#mvd-metar-widget .taf-open .taf-body{ display:block; }
#mvd-metar-widget .chev{ margin-left:auto; transition:transform .2s ease; }
#mvd-metar-widget .taf-open .chev{ transform:rotate(90deg); }

#mvd-metar-widget .taf-simple{ margin-top:8px; display:none; }
#mvd-metar-widget .taf-chip{ display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--mvd-line); background:#f1f5f9; border-radius:999px; font-weight:800; color:#0f172a; font-size:13px; }
#mvd-metar-widget .taf-sec{ padding:10px 0; border-bottom:1px solid var(--mvd-line); }
#mvd-metar-widget .taf-sec:last-child{ border-bottom:0; }
#mvd-metar-widget .taf-row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:6px; }
#mvd-metar-widget .taf-k{ font-size:12px; color:#64748b; margin-right:6px; }
#mvd-metar-widget .taf-v{ font-size:14px; color:#0f172a; font-weight:800; }

/* Timeline */
#mvd-metar-widget .taf-block{ margin-top:8px; }
#mvd-metar-widget .taf-block h4{ margin:6px 0 8px; font-size:14px; color:#334155; }
#mvd-metar-widget .timeline{ display:flex; gap:8px; flex-wrap:wrap; }
#mvd-metar-widget .tl-item{ padding:6px 10px; border-radius:10px; border:1px solid var(--mvd-line); background:#f8fafc; font-size:12px; font-weight:800; }
#mvd-metar-widget .tl-item small{ font-weight:700; color:#475569; margin-left:6px; }

/* Impact */
#mvd-metar-widget .impact-table{ width:100%; border-collapse:separate; border-spacing:0 6px; font-size:13px; }
#mvd-metar-widget .impact-table th{ text-align:left; color:#64748b; font-weight:800; padding:6px 8px; }
#mvd-metar-widget .impact-table td{ background:#f8fafc; border:1px solid var(--mvd-line); padding:8px; }
#mvd-metar-widget .pill{ display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:900; }
#mvd-metar-widget .sev-0{ background:#dcfce7; color:#166534; border:1px solid rgba(22,101,52,.25); }
#mvd-metar-widget .sev-1{ background:#fef9c3; color:#854d0e; border:1px solid rgba(133,77,14,.25); }
#mvd-metar-widget .sev-2{ background:#fee2e2; color:#b91c1c; border:1px solid rgba(185,28,28,.25); }
#mvd-metar-widget .sev-3{ background:#f5d0fe; color:#86198f; border:1px solid rgba(134,25,143,.25); }
#mvd-metar-widget .reasons{ color:#475569; font-size:12px; }
#mvd-metar-widget .narrativa{ font-size:13px; color:#0f172a; }
#mvd-metar-widget .narrativa li{ margin:4px 0; }

/* --- 0.4 mejoras --- */
#mvd-metar-widget .btn-secondary{
  background:#fff; color:var(--mvd-focus); border-color:var(--mvd-focus);
}
#mvd-metar-widget .ops-summary-card{ margin-top:12px; padding:0; overflow:hidden; }
#mvd-metar-widget .ops-head{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:14px 16px; cursor:pointer; user-select:none; }
#mvd-metar-widget .ops-head-main{ display:flex; flex-direction:column; gap:4px; min-width:180px; }
#mvd-metar-widget .ops-title{ font-size:18px; font-weight:800; color:var(--mvd-ink); }
#mvd-metar-widget .ops-subtitle{ font-size:12px; color:var(--mvd-muted); font-weight:700; }
#mvd-metar-widget .ops-body{ display:none; padding:0 16px 16px 16px; }
#mvd-metar-widget .ops-open .ops-body{ display:block; }
#mvd-metar-widget .ops-summary-card .chev{ margin-left:auto; transition:transform .2s ease; }
#mvd-metar-widget .ops-open .chev{ transform:rotate(90deg); }
#mvd-metar-widget .ops-chips{ display:flex; flex-wrap:wrap; gap:8px; }
#mvd-metar-widget .ops-chip{ display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:0 10px; border-radius:999px; border:1px solid var(--mvd-line); background:#f8fafc; color:var(--mvd-ink2); font-size:13px; font-weight:800; }
#mvd-metar-widget .source-chip.src-awc{ background:#e8f4ff; color:#174e88; border-color:rgba(23,78,136,.18); }
#mvd-metar-widget .source-chip.src-vatsim{ background:#fef3c7; color:#92400e; border-color:rgba(146,64,14,.18); }
#mvd-metar-widget .ops-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; }
@media (max-width:900px){ #mvd-metar-widget .ops-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ #mvd-metar-widget .ops-grid{ grid-template-columns:1fr; } #mvd-metar-widget .ops-head{ align-items:flex-start; } }
#mvd-metar-widget .ops-item{ border:1px solid var(--mvd-line); border-radius:12px; padding:10px 12px; background:linear-gradient(180deg,#fff,#fafafa); }
#mvd-metar-widget .ops-item-k{ font-size:12px; color:var(--mvd-ink3); margin-bottom:4px; }
#mvd-metar-widget .ops-item-v{ font-size:15px; color:var(--mvd-ink); font-weight:800; line-height:1.3; }

#mvd-metar-widget .runway-matrix-tile{ align-items:stretch; flex-direction:column; grid-column:1 / -1; padding:0; background:linear-gradient(180deg,#fff,#fbfdff); overflow:hidden; }
#mvd-metar-widget .runway-matrix-toggle{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; background:transparent; border:0; cursor:pointer; text-align:left; }
#mvd-metar-widget .runway-matrix-toggle:hover{ background:rgba(43,88,125,.03); }
#mvd-metar-widget .runway-matrix-toggle .chev{ transition:transform .2s ease; flex:0 0 auto; }
#mvd-metar-widget .runway-matrix-tile.is-open .runway-matrix-toggle .chev{ transform:rotate(90deg); }
#mvd-metar-widget .runway-matrix-head{ width:100%; display:flex; justify-content:space-between; gap:10px; margin:0; padding:0; border:0; }
#mvd-metar-widget .runway-matrix-head .k{ margin-bottom:2px; }
#mvd-metar-widget .runway-matrix-head .v{ font-size:18px; line-height:1.1; }
#mvd-metar-widget .runway-matrix-head .s{ font-size:12px; color:var(--mvd-muted); }
#mvd-metar-widget .runway-matrix-body{ display:none; width:100%; padding:0 14px 14px; border-top:1px solid rgba(43,88,125,.08); }
#mvd-metar-widget .runway-matrix-tile.is-open .runway-matrix-body{ display:block; }
#mvd-metar-widget .runway-matrix-list{ width:100%; display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; padding-top:12px; }
#mvd-metar-widget .runway-row{ display:flex; flex-direction:column; gap:8px; align-items:stretch; border:1px solid var(--mvd-line); border-radius:12px; padding:10px; background:#fff; min-height:0; box-shadow:0 2px 8px rgba(15,23,42,.04); transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease; cursor:pointer; }
#mvd-metar-widget .runway-row:hover{ border-color:rgba(43,88,125,.24); box-shadow:0 8px 18px rgba(15,23,42,.07); transform:translateY(-1px); }
#mvd-metar-widget .runway-row.is-best{ border-color:rgba(22,163,74,.35); background:linear-gradient(180deg,#f7fff9,#f0fdf4); }
#mvd-metar-widget .runway-row.is-selected{ box-shadow:inset 0 0 0 2px rgba(43,88,125,.14), 0 6px 14px rgba(15,23,42,.05); }
#mvd-metar-widget .runway-row-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:6px; }
#mvd-metar-widget .runway-name{ display:inline-flex; align-items:center; min-height:30px; padding:0 10px; border-radius:999px; background:#eef2ff; color:#1d4f84; font-weight:900; font-size:14px; letter-spacing:.2px; }
#mvd-metar-widget .runway-row.is-best .runway-name{ background:#dcfce7; color:#166534; }
#mvd-metar-widget .runway-flags{ display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
#mvd-metar-widget .runway-flag{ display:inline-flex; align-items:center; min-height:22px; padding:0 7px; border-radius:999px; border:1px solid var(--mvd-line); background:#f8fafc; color:var(--mvd-ink3); font-size:10px; font-weight:800; }
#mvd-metar-widget .runway-flag.best{ background:#ecfdf5; color:#166534; border-color:rgba(22,163,74,.22); }
#mvd-metar-widget .runway-flag.selected{ background:#e8f4ff; color:#174e88; border-color:rgba(23,78,136,.18); }
#mvd-metar-widget .runway-metrics{ display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-start; }
#mvd-metar-widget .runway-metrics span{ display:inline-flex; align-items:center; min-height:26px; font-size:11px; color:var(--mvd-ink3); background:#f8fafc; border:1px solid var(--mvd-line); border-radius:999px; padding:0 9px; white-space:normal; line-height:1.2; }
#mvd-metar-widget .runway-metrics .metric-head{ background:#eff6ff; color:#1d4f84; border-color:rgba(29,79,132,.14); }
#mvd-metar-widget .runway-metrics .metric-tail{ background:#fff7ed; color:#9a3412; border-color:rgba(154,52,18,.16); }
#mvd-metar-widget .runway-metrics .metric-cross{ background:#f8fafc; color:#334155; }
#mvd-metar-widget .runway-row-note{ font-size:11px; color:var(--mvd-muted); line-height:1.3; margin-top:auto; }
@media (max-width:640px){
  #mvd-metar-widget .runway-matrix-head .v{ font-size:16px; }
  #mvd-metar-widget .runway-matrix-toggle{ padding:12px; }
  #mvd-metar-widget .runway-matrix-body{ padding:0 12px 12px; }
}


#mvd-metar-widget.is-loading .card,
#mvd-metar-widget.is-loading .tile,
#mvd-metar-widget.is-loading .raw{
  position:relative; overflow:hidden;
}
#mvd-metar-widget.is-loading .card::after,
#mvd-metar-widget.is-loading .tile::after,
#mvd-metar-widget.is-loading .raw::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  transform:translateX(-100%); animation:mvd-skeleton 1.1s infinite;
}
@keyframes mvd-skeleton{ to{ transform:translateX(100%); } }

#mvd-metar-widget .xw-warn{ border-color:rgba(245,158,11,.35); background:linear-gradient(180deg,#fff,#fff7ed); }
#mvd-metar-widget .xw-bad{ border-color:rgba(220,38,38,.28); background:linear-gradient(180deg,#fff,#fef2f2); }


#mvd-metar-widget{ position:relative; }
#mvd-metar-widget .mvd-loading-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; background:rgba(255,255,255,.58); backdrop-filter:blur(1.5px); z-index:40; border-radius:14px;
}
#mvd-metar-widget .mvd-loading-overlay[hidden]{ display:none !important; }
#mvd-metar-widget .mvd-spinner{
  width:38px; height:38px; border-radius:999px; border:3px solid rgba(43,88,125,.18); border-top-color:var(--mvd-focus);
  animation:mvd-spin .8s linear infinite;
}
#mvd-metar-widget .mvd-loading-text{ font-size:13px; font-weight:800; color:var(--mvd-ink2); }
@keyframes mvd-spin{ to{ transform:rotate(360deg); } }


/* v0.6.0: sin overlay global de carga */
#mvd-metar-widget.is-loading .card,
#mvd-metar-widget.is-loading .tile,
#mvd-metar-widget.is-loading .raw{ opacity:1 !important; filter:none !important; }
#mvd-metar-widget.is-loading .card::after,
#mvd-metar-widget.is-loading .tile::after,
#mvd-metar-widget.is-loading .raw::after{ display:none !important; }
#mvd-metar-widget .mvd-loading-overlay{ display:none !important; }
#mvd-metar-widget .btn.is-busy{ opacity:.75; cursor:wait; }
