:root{
  --ew-bg:#f4f7fb;
  --ew-bg-soft:#f8fafc;
  --ew-surface:#ffffff;
  --ew-surface-muted:#f8fafc;
  --ew-border:#e5e7eb;
  --ew-border-strong:#cfd8e3;
  --ew-text:#111827;
  --ew-text-soft:#667085;
  --ew-title:#0f172a;
  --ew-brand:var(--brand, #6d5efc);
  --ew-brand-soft:rgba(var(--brand-rgb, 109,94,252), .10);
  --ew-brand-line:rgba(var(--brand-rgb, 109,94,252), .20);
  --ew-shadow-soft:0 10px 30px rgba(15,23,42,.05);
  --ew-shadow-card:0 18px 44px rgba(15,23,42,.06);
  --ew-radius-xl:28px;
  --ew-radius-lg:20px;
  --ew-radius-md:14px;
  --ew-page:1240px;
  --ew-sidebar-w:360px;
  --ew-topbar-h:70px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  height:auto;
  min-height:100%;
  background:var(--ew-bg);
  color:var(--ew-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

body{padding:0}

#external-web-app{
  display:flex;
  flex-direction:column;
  height:auto;
  min-height:100dvh;
}

.ew-shell{
  display:flex;
  flex-direction:column;
  flex:1;
  height:auto;
  min-height:100dvh;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.92), rgba(255,255,255,0) 32%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

/* ─── Main layout ─────────────────────────────────────── */

.ew-page{
  flex:1;
  width:100%;
  max-width:var(--ew-page);
  margin:0 auto;
  padding:34px 22px 40px;
}

.ew-layout{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,var(--ew-sidebar-w));
  gap:28px;
}

.ew-layout-single{
  grid-template-columns:minmax(0,1fr);
}

.ew-content{
  min-width:0;
  align-self:start;
}

.ew-sidebar{
  min-width:0;
}

.ew-sticky{
  position:sticky;
  top:calc(var(--ew-topbar-h) + 16px);
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* ─── Header block / hero ─────────────────────────────── */

.ew-page-head{
  margin-bottom:24px;
  padding:0 0 8px;
}

.ew-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--ew-brand-line);
  background:var(--ew-brand-soft);
  color:var(--ew-brand);
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
}

.ew-title{
  margin:14px 0 10px;
  color:var(--ew-title);
  font-size:44px;
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:800;
  max-width:900px;
}

.ew-sub{
  margin:0;
  color:var(--ew-text-soft);
  max-width:760px;
  font-size:16px;
  line-height:1.7;
}


.ew-runtime-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 0;
}

.ew-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 11px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  border:1px solid transparent;
}

.ew-chip-warning{
  background:#fffbeb;
  color:#92400e;
  border-color:#fcd34d;
}

.ew-chip-success{
  background:#ecfdf3;
  color:#166534;
  border-color:#86efac;
}

.ew-chip-muted{
  background:#eef2ff;
  color:#4338ca;
  border-color:#c7d2fe;
}

.ew-chip-outline{
  background:#fff;
  color:#334155;
  border-color:var(--ew-border-strong);
}

/* ─── Cards ───────────────────────────────────────────── */

.ew-card{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.06);
  border-radius:var(--ew-radius-lg);
  padding:24px;
  margin-bottom:18px;
  box-shadow:var(--ew-shadow-card);
}

.ew-sidebar .ew-card{
  margin-bottom:0;
}

.ew-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.ew-card-title{
  margin:0;
  font-size:19px;
  line-height:1.32;
  font-weight:700;
  color:var(--ew-title);
}

.ew-card-sub{
  margin:8px 0 0;
  color:var(--ew-text-soft);
  font-size:14px;
  line-height:1.65;
}

/* ─── Grids ───────────────────────────────────────────── */

.ew-grid{ display:grid; gap:16px; }
.ew-grid-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.ew-grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.ew-grid-1{ grid-template-columns:minmax(0,1fr); }

.ew-reservation-controls{ margin-top:20px; }
.ew-reservation-controls-grid{ gap:16px; }

.ew-reservation-controls-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-top:14px;
}

/* ─── Fields ──────────────────────────────────────────── */

.ew-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.ew-field label{
  font-size:13px;
  color:#334155;
  font-weight:600;
  line-height:1.35;
}

.ew-field-action{ justify-content:flex-end; }

.ew-input,
.ew-select,
.ew-textarea{
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:48px;
  height:48px;
  border:1px solid var(--ew-border-strong);
  background:#fff;
  color:var(--ew-text);
  border-radius:var(--ew-radius-md);
  padding:13px 14px;
  font:inherit;
  font-size:16px;
  line-height:1.2;
  outline:none;
  box-sizing:border-box;
  transition:border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.ew-textarea{
  min-height:118px;
  height:auto;
  resize:vertical;
}

.ew-reservation-controls-grid{
  gap:16px;
  align-items:start;
}

.ew-reservation-controls-grid > *{
  min-width:0;
  width:100%;
}

.ew-input-date{
  -webkit-appearance:none;
  appearance:none;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  height:48px;
  min-height:48px;
  padding:0 14px;
  line-height:48px;
  overflow:hidden;
}

.ew-input-date::-webkit-date-and-time-value{
  text-align:left;
}

.ew-input-date::-webkit-datetime-edit{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0;
  line-height:1;
}

.ew-input-date::-webkit-datetime-edit-fields-wrapper{
  display:flex;
  align-items:center;
  min-width:0;
}

.ew-input-date::-webkit-calendar-picker-indicator{
  margin:0;
  padding:0;
  opacity:1;
  flex:0 0 auto;
}

.ew-input[type="number"]{
  appearance:textfield;
  -moz-appearance:textfield;
}

.ew-input:focus,
.ew-select:focus,
.ew-textarea:focus{
  border-color:var(--ew-brand);
  box-shadow:0 0 0 4px var(--ew-brand-soft);
}


.ew-date-split{
  display:grid;
  grid-template-columns:minmax(72px,.78fr) minmax(0,1.08fr) minmax(86px,.92fr);
  gap:10px;
  width:100%;
  min-width:0;
}

.ew-date-split .ew-select{
  width:100%;
  min-width:0;
  max-width:100%;
}

.ew-unit,
.ew-inline-help{
  color:var(--ew-text-soft);
  font-size:12px;
  line-height:1.5;
}

.ew-static-value{
  display:flex;
  align-items:center;
  min-height:48px;
  width:100%;
  padding:13px 14px;
  border:1px solid var(--ew-border);
  background:var(--ew-surface-muted);
  border-radius:var(--ew-radius-md);
  color:#334155;
  font-size:14px;
  font-weight:600;
  line-height:1.45;
}

/* ─── Badges / pills ──────────────────────────────────── */

.ew-inline-badges,
.ew-pill-row,
.ew-option-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ew-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--ew-border);
  background:var(--ew-surface-muted);
  color:#334155;
  font-size:12px;
  font-weight:600;
}

.ew-pill{
  border:1px solid var(--ew-border);
  background:transparent;
  color:#334155;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  font:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, color .16s ease;
}

.ew-pill:hover{ border-color:var(--ew-border-strong); }

.ew-pill.active{
  background:var(--ew-brand-soft);
  border-color:var(--ew-brand-line);
  color:var(--ew-brand);
}

/* ─── Section header ──────────────────────────────────── */

.ew-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 14px;
}

.ew-section-head h4{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:#334155;
}

/* ─── Slots ───────────────────────────────────────────── */

.ew-slots{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.ew-slot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--ew-border);
  background:#fff;
  color:#1f2937;
  font-size:14px;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  transition:border-color .16s, background .16s, color .16s, transform .16s, box-shadow .16s;
}

.ew-slot:hover{ transform:translateY(-1px); border-color:var(--ew-border-strong); }

.ew-slot.active{
  background:var(--ew-brand);
  border-color:var(--ew-brand);
  color:#fff;
  box-shadow:0 14px 28px rgba(var(--brand-rgb,109,94,252), .18);
}

/* ─── Actions ─────────────────────────────────────────── */

.ew-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:8px;
}

.ew-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid transparent;
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  transition:transform .16s, box-shadow .16s, border-color .16s, background .16s, color .16s;
}

.ew-btn:hover{ transform:translateY(-1px); }
.ew-btn:disabled{ opacity:.65; cursor:not-allowed; transform:none; }

.ew-btn-primary{
  background:var(--ew-brand);
  color:#fff;
  box-shadow:0 14px 28px rgba(var(--brand-rgb,109,94,252), .18);
}

.ew-btn-secondary{
  background:#fff;
  color:var(--ew-text);
  border-color:var(--ew-border-strong);
}

.ew-reservation-controls-actions .ew-btn{ min-width:220px; }

/* ─── Form / summary ──────────────────────────────────── */

.ew-form-stack{ display:flex; flex-direction:column; gap:16px; }

.ew-summary{ display:flex; flex-direction:column; gap:12px; margin-top:14px; }

.ew-summary-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  font-size:14px;
}

.ew-summary-row span{ color:var(--ew-text-soft); }
.ew-summary-row strong{ color:var(--ew-title); text-align:right; }

.ew-summary-row-total{ padding-top:10px; border-top:1px solid var(--ew-border); }

.ew-summary-row-total strong,
.ew-summary-row-total span{ color:var(--ew-title); font-size:15px; font-weight:800; }

/* ─── Feedback ────────────────────────────────────────── */

.ew-empty,.ew-error,.ew-success,.ew-playground-note,.ew-runtime-note{
  padding:14px 16px;
  border-radius:16px;
  font-size:14px;
  line-height:1.55;
}

.ew-empty{ background:#f8fafc; color:var(--ew-text-soft); border:1px dashed var(--ew-border-strong); }
.ew-error{ background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.ew-success{ background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.ew-playground-note,
.ew-runtime-note{
  display:flex;
  flex-direction:column;
  gap:4px;
  background:#fffbeb;
  color:#92400e;
  border:1px solid #fcd34d;
}

.ew-playground-note,
.ew-runtime-note{
  margin-bottom: 8px;
}

.ew-feedback-inline-tag{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:#fffbeb;
  color:#92400e;
  border:1px solid #fcd34d;
}

/* ─── Notes ───────────────────────────────────────────── */

.ew-note-block{
  margin-top:16px;
  padding:16px;
  border:1px solid var(--ew-border);
  background:var(--ew-surface-muted);
  border-radius:16px;
}

.ew-note-block pre{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  font:inherit;
  color:#334155;
  line-height:1.65;
}

.ew-note-rich{ color:#334155; }
.ew-note-rich p,.ew-note-rich ul{ margin:0; }
.ew-note-rich p+p,.ew-note-rich p+ul,.ew-note-rich ul+p,.ew-note-rich ul+ul{ margin-top:12px; }
.ew-note-rich ul{ padding-left:18px; }
.ew-note-rich li+li{ margin-top:8px; }
.ew-note-rich strong{ color:var(--ew-title); font-weight:800; }
.ew-note-rich em{ font-style:italic; }

/* ─── Catalog ─────────────────────────────────────────── */

.ew-list{ display:grid; gap:16px; }

/*
 * auto-fill: se adapta al ancho disponible del iframe
 * sin necesidad de breakpoints manuales para columnas.
 * Cada tarjeta ocupa mínimo 420px → 2 cols >860px, 1 col <860px.
 */
.ew-catalog-grid{
  grid-template-columns:repeat(auto-fill, minmax(420px, 1fr));
}

.ew-catalog-card{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:18px;
}

.ew-catalog-media{
  min-height:180px;
  border-radius:18px;
  overflow:hidden;
  background:var(--ew-surface-muted);
  border:1px solid var(--ew-border);
}

.ew-catalog-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.ew-catalog-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ew-brand);
  font-size:34px;
  font-weight:800;
  background:var(--ew-brand-soft);
}

.ew-catalog-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

.ew-price{ font-size:24px; font-weight:800; color:var(--ew-title); }

/* ─── Options ─────────────────────────────────────────── */

.ew-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--ew-border);
  background:#fff;
  color:#334155;
  font-size:14px;
}

.ew-check input{ margin:0; }

.ew-option-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

/* ─── Footer ──────────────────────────────────────────── */

.ew-foot{
  width:100%;
  max-width:var(--ew-page);
  margin:4px auto 0;
  padding:0 22px 24px;
}

.ew-foot-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  text-align:center;
  color:var(--ew-text-soft);
  font-size:12px;
  line-height:1.6;
}

.ew-foot-copy,.ew-foot-year{ color:var(--ew-text-soft); }
.ew-foot-sep{ color:#cbd5e1; }

.ew-foot-link{
  color:#334155;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(51,65,85,.22);
  transition:color .16s,border-color .16s,opacity .16s;
}

.ew-foot-link:hover,
.ew-foot-link:focus-visible{
  color:var(--ew-title);
  border-bottom-color:rgba(15,23,42,.45);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — breakpoints pensados para iframe ~1000px
   ═══════════════════════════════════════════════════════ */

/* 900px: sidebar layout comprime columna derecha */
@media (max-width:900px){
  .ew-layout{
    grid-template-columns:minmax(0,1fr) minmax(260px,300px);
    gap:20px;
  }

  .ew-title{ font-size:38px; }
}

/* 780px: layout sidebar pasa a columna única */
@media (max-width:780px){
  .ew-layout{
    grid-template-columns:1fr;
    gap:16px;
  }

  .ew-sidebar{ order:2; }

  .ew-sticky{
    position:static;
    gap:14px;
  }

  .ew-title{ font-size:32px; }
}

/* 700px: catalog → 1 columna + card colapsa imagen arriba */
@media (max-width:700px){
  :root{ --ew-topbar-h:64px; }

  .ew-page{ padding:22px 18px 28px; }

  .ew-title{ font-size:28px; letter-spacing:-.03em; }

  .ew-sub{ font-size:15px; }

  .ew-catalog-grid{
    grid-template-columns:1fr;
  }

  .ew-catalog-card{
    grid-template-columns:1fr;
  }

  .ew-catalog-media{ min-height:200px; }

  .ew-grid-2,.ew-grid-3{ grid-template-columns:1fr; }

  .ew-date-split{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

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

  .ew-option-list{ grid-template-columns:1fr; }

  .ew-reservation-controls-actions .ew-btn{ width:100%; min-width:0; }

  .ew-foot{ padding:0 18px 18px; }
  .ew-foot-inner{ gap:6px; font-size:11.5px; }
}

/* 480px: ajustes de detalle móvil */
@media (max-width:480px){
  :root{ --ew-topbar-h:56px; }

  .ew-page{ padding:16px 14px 24px; }

  .ew-title{ font-size:24px; line-height:1.1; }

  .ew-card{ padding:16px; border-radius:16px; overflow-x:hidden; }

  .ew-date-split{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

  .ew-date-split .ew-select{
    padding-left:10px;
    padding-right:10px;
    font-size:16px;
  }

  .ew-btn{ width:100%; }

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

  .ew-card-top,
  .ew-section-head,
  .ew-summary-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .ew-summary-row strong{ text-align:left; }

  .ew-summary-actions .ew-btn{ width:100%; min-width:0; }
}

/* ─── Header — cápsula flotante ───────────────────────── */

.ew-topbar{
  position:sticky;
  top:0;
  z-index:40;
  height:var(--ew-topbar-h);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 22px;
  background:transparent;
  border:none;
  box-shadow:none;
  pointer-events:none;
}

.ew-topbar-inner{
  pointer-events:all;
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:44px;
  padding:0 20px 0 8px;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(15,23,42,.07);
  border-radius:999px;
  box-shadow:
    0 2px 12px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.ew-brand{ display:flex; align-items:center; gap:10px; min-width:0; }

.ew-brand-mark{
  width:30px;
  height:30px;
  border-radius:50%;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--ew-brand) 0%, rgba(var(--brand-rgb,109,94,252),.65) 100%);
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  box-shadow:0 2px 8px rgba(var(--brand-rgb,109,94,252),.30);
  overflow:hidden;
}

.ew-brand-mark-logo{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 2px 8px rgba(15,23,42,.10);
}

.ew-brand-logo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ew-brand-mark-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--ew-brand) 0%, rgba(var(--brand-rgb,109,94,252),.65) 100%);
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
}

.ew-brand-name{
  display:block;
  font-size:13px;
  font-weight:600;
  color:#1e293b;
  letter-spacing:-.015em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:220px;
}

.ew-topbar-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#fffbeb;
  border:1px solid #fcd34d;
  color:#92400e;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  flex:0 0 auto;
}

.ew-brand-sub{ display:none; }

.ew-badge-strong{
  border-color:var(--ew-brand-line);
  background:var(--ew-brand-soft);
  color:var(--ew-brand);
}

.ew-badge-success{
  border-color:#86efac;
  background:#ecfdf3;
  color:#166534;
}

.ew-badge-warning{
  border-color:#fcd34d;
  background:#fffbeb;
  color:#92400e;
}

.ew-badge-danger{
  border-color:#fecaca;
  background:#fef2f2;
  color:#b91c1c;
}

.ew-note-block-progress{
  border:1px solid rgba(15,23,42,.06);
  background:linear-gradient(180deg,#ffffff 0%, #f8fafc 100%);
}

.ew-cost-progress-head{
  margin-bottom:14px;
}

.ew-progress-block{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ew-progress-track{
  position:relative;
  width:100%;
  height:12px;
  overflow:hidden;
  border-radius:999px;
  background:#e9eef5;
  border:1px solid rgba(15,23,42,.05);
}

.ew-progress-track.is-live::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(var(--brand-rgb,109,94,252), .07);
  pointer-events:none;
}

.ew-progress-bar{
  position:relative;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--ew-brand) 0%, rgba(var(--brand-rgb,109,94,252), .82) 100%);
  box-shadow:0 10px 22px rgba(var(--brand-rgb,109,94,252), .20);
  transition:width .55s cubic-bezier(.22,1,.36,1);
}

.ew-progress-bar.is-animated::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg, transparent 0%, rgba(255,255,255,.16) 25%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.16) 75%, transparent 100%);
  animation:ew-progress-sheen 1.2s linear infinite;
}

.ew-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--ew-text-soft);
  font-size:13px;
  line-height:1.5;
}

.ew-progress-meta strong{
  color:var(--ew-title);
  font-size:13px;
  font-weight:800;
}

@keyframes ew-progress-sheen{
  from{ transform:translateX(-100%); }
  to{ transform:translateX(100%); }
}

.ew-card-top-stack-mobile{ align-items:flex-start; }

.ew-summary-actions{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.ew-summary-actions .ew-btn{ min-width:220px; }

@media (max-width:700px){
  .ew-topbar{ padding:0 16px; }
  .ew-topbar-inner{ height:40px; padding:0 16px 0 7px; }
  .ew-brand-mark{ width:27px; height:27px; font-size:9px; }
  .ew-brand-name{ font-size:12px; max-width:160px; }
  .ew-card-top-stack-mobile{ flex-direction:column; }
}

@media (max-width:480px){
  .ew-topbar{ padding:0 14px; }
  .ew-topbar-inner{ height:38px; padding:0 14px 0 6px; gap:8px; }
  .ew-brand-mark{ width:25px; height:25px; font-size:8px; }
  .ew-brand-name{ font-size:12px; max-width:130px; }
}

@media (max-width:360px){
  .ew-brand-name{ max-width:100px; }
}

@supports (-webkit-touch-callout: none) {
  .ew-input-date{
    font-size:16px;
    height:48px;
    min-height:48px;
    padding-top:0;
    padding-bottom:0;
  }
}

/* ─── Cost Control upload area ───────────────────────── */
.ew-upload-dropzone{
  margin-top:16px;
  min-height:220px;
  border:1.5px dashed var(--ew-border-strong);
  background:linear-gradient(180deg,#fbfdff 0%, #f8fafc 100%);
  border-radius:20px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ew-upload-dropzone:hover,
.ew-upload-dropzone.is-dragover,
.ew-upload-dropzone.has-file{
  border-color:var(--ew-brand);
  box-shadow:0 0 0 4px var(--ew-brand-soft);
  background:linear-gradient(180deg,#ffffff 0%, #f7f8ff 100%);
}

.ew-upload-input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.ew-upload-copy{
  display:flex;
  align-items:flex-start;
  gap:16px;
  min-width:0;
}

.ew-upload-icon{
  width:52px;
  height:52px;
  flex:0 0 auto;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--ew-brand-soft);
  color:var(--ew-brand);
  font-size:26px;
  font-weight:800;
  line-height:1;
}

.ew-upload-title{
  color:var(--ew-title);
  font-size:20px;
  line-height:1.28;
  font-weight:800;
  word-break:break-word;
}

.ew-upload-sub{
  margin-top:8px;
  color:var(--ew-text-soft);
  font-size:14px;
  line-height:1.6;
}

.ew-upload-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

@media (max-width:700px){
  .ew-upload-dropzone{ min-height:0; padding:18px; }
  .ew-upload-copy{ flex-direction:column; gap:12px; }
  .ew-upload-title{ font-size:18px; }
}

@media (max-width:480px){
  .ew-upload-actions .ew-btn{ width:100%; }
  .ew-progress-meta{ flex-direction:column; align-items:flex-start; }
}
