*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,Arial,sans-serif}:root{--bg:#edf3fa;--text:#0f172a;--muted:#61718a;--blue:#0b5ed7;--line:#d9e5f2}body{background:var(--bg);color:var(--text)}.app-shell{display:grid;grid-template-columns:320px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:24px;position:sticky;top:0;height:100vh;overflow-y:auto;box-shadow:8px 0 30px rgba(15,23,42,.05)}.brand{display:flex;align-items:center;gap:16px;margin-bottom:18px}.brand-mark{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--blue),#00c2ff);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 12px 30px rgba(11,94,215,.28)}.brand h1{font-size:20px;line-height:1.1}.brand p{font-size:13px;color:var(--muted);font-weight:600;margin-top:5px}.profile-box{background:#f8fbff;border:1px solid #cfe0f4;border-radius:18px;padding:14px;margin-bottom:18px}.profile-box strong{display:block;color:#0b5ed7}.profile-box span{font-weight:900;color:#64748b;font-size:12px}.search-wrap{display:flex;gap:10px;border:1px solid #cfe0f4;background:#f8fbff;border-radius:18px;padding:12px 14px;margin-bottom:20px}.search-wrap input{border:0;outline:0;background:transparent;width:100%;font-size:14px}.side-menu{display:flex;flex-direction:column;gap:9px}.side-menu a{display:flex;align-items:center;gap:14px;text-decoration:none;color:#163760;font-weight:800;padding:15px 16px;border-radius:18px;border:1px solid transparent;transition:.25s}.side-menu a:hover,.side-menu a.active{background:#eef6ff;border-color:#c9defb;color:#064bb5;box-shadow:0 10px 22px rgba(11,94,215,.08)}.admin-link{background:#fff7ed!important;color:#9a3412!important}.main-area{padding:30px 38px}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:26px}.topbar h2{font-size:38px;letter-spacing:-.04em}.topbar p{font-size:18px;color:var(--muted);margin-top:8px}.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.user-pill,.role-pill,.logout-pill,.back-pill{border-radius:999px;padding:12px 18px;font-size:14px;font-weight:900;text-decoration:none;white-space:nowrap}.user-pill{background:#e8f2ff;color:#0754bf}.role-pill{background:linear-gradient(135deg,var(--blue),#1b8df2);color:#fff}.logout-pill{background:#f1f5f9;color:#334155}.back-pill{background:#fff;color:#0b5ed7;border:1px solid #cfe0f4}.home-banner{min-height:420px;border-radius:34px;background:linear-gradient(120deg,#03133a 0%,#075fc7 48%,#10d4e5 100%);display:flex;align-items:center;padding:58px;color:#fff;box-shadow:0 22px 55px rgba(15,23,42,.18);position:relative;overflow:hidden;margin-bottom:26px}.home-banner:after{content:'';position:absolute;right:-120px;top:-80px;width:520px;height:520px;border-radius:50%;background:rgba(255,255,255,.08)}.banner-copy{max-width:720px;position:relative;z-index:1}.banner-badge{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:12px 18px;border-radius:999px;font-weight:900;margin-bottom:25px}.home-banner h1{font-size:66px;line-height:1.02;letter-spacing:-.05em;margin-bottom:24px}.home-banner p{font-size:22px;line-height:1.55;color:#e8f5ff}.banner-actions{display:flex;gap:14px;margin-top:28px;flex-wrap:wrap}.banner-actions a{background:#0b6df4;color:#fff;text-decoration:none;border-radius:999px;padding:14px 24px;font-weight:900}.banner-actions a.light{background:#eaf4ff;color:#064bb5}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:34px}.stats-row div{background:#fff;border-radius:24px;padding:24px;box-shadow:0 16px 36px rgba(15,23,42,.06);border:1px solid #dbeafe}.stats-row strong{display:block;font-size:34px;color:#064bb5}.stats-row span{font-size:15px;font-weight:800}.section-heading{margin:30px 0 18px}.section-heading h2{font-size:34px;letter-spacing:-.03em}.section-heading p{font-size:18px;color:var(--muted);margin-top:8px}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:24px}.access-card,.admin-form-card,.editable-block,.mini-card,.script-card,.product-grid article{background:#fff;border-radius:26px;padding:26px;box-shadow:0 18px 38px rgba(15,23,42,.07);border:1px solid rgba(217,229,242,.75);position:relative;overflow:hidden}.access-card:before,.mini-card:before,.product-grid article:before{content:'';position:absolute;right:-55px;top:-55px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,#c9fbff 0,#e3fbff 35%,transparent 70%)}.access-card:hover{transform:translateY(-6px);box-shadow:0 24px 50px rgba(15,23,42,.12)}.icon-badge{width:56px;height:56px;border-radius:18px;background:#e7faff;display:grid;place-items:center;font-size:28px;margin-bottom:22px}.icon-badge.large{width:76px;height:76px;font-size:38px;margin:0}.access-card h3{font-size:23px;margin-bottom:16px}.access-card p{color:var(--muted);font-weight:700;margin-bottom:18px;line-height:1.45}.access-card a,.admin-form-card button,.login-card button,.secondary-action,.product-grid a{background:linear-gradient(135deg,var(--blue),#157eea);color:#fff;text-decoration:none;border:0;border-radius:13px;padding:12px 18px;font-weight:900;display:inline-block;cursor:pointer}.section-html-wrapper{display:grid;gap:24px}.section-title{display:flex;gap:24px;align-items:center;background:#fff;border-radius:28px;padding:28px;box-shadow:0 18px 38px rgba(15,23,42,.07);border:1px solid rgba(217,229,242,.75)}.section-title h3{font-size:36px;margin-bottom:8px}.section-title p,.editable-block p,.mini-card p,.script-card p,.product-grid p{color:var(--muted);font-weight:700;line-height:1.55}.editable-block h3,.mini-card h4,.admin-form-card h3,.script-card h3,.product-grid h3{font-size:24px;margin-bottom:14px}.cards-mini,.speech-layout,.product-grid,.video-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-bottom:30px}.feature-grid article{background:#fff;border-radius:24px;padding:26px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.feature-grid span{font-size:32px}.feature-grid h3{font-size:22px;margin:18px 0 10px}.feature-grid p{color:var(--muted);font-weight:700}.media-showcase{display:grid;grid-template-columns:2fr 1fr;gap:24px}.media-wide,.media-card,.media-video{height:230px;border-radius:30px;padding:28px;display:flex;align-items:flex-end;box-shadow:0 18px 42px rgba(15,23,42,.08);position:relative;overflow:hidden}.media-wide{background:linear-gradient(135deg,#0b5ed7,#0fd9e9)}.media-card.teal{background:linear-gradient(135deg,#0f766e,#38bdf8)}.media-card.pink{background:linear-gradient(135deg,#7c3aed,#f472b6)}.media-card.dark,.media-video{background:linear-gradient(135deg,#0f172a,#0b5ed7)}.media-showcase span,.media-video span{background:rgba(255,255,255,.88);color:#111827;border-radius:999px;padding:12px 18px;font-weight:900}.media-video{justify-content:center;align-items:center;flex-direction:column;gap:18px}.play{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.3);font-size:28px}.product-img{height:160px;border-radius:20px;background:linear-gradient(135deg,#dbeafe,#fff);display:grid;place-items:center;color:#0b5ed7;font-weight:900;margin-bottom:18px;font-size:42px}.video-gallery article{height:220px;background:linear-gradient(135deg,#061a44,#0b5ed7);color:#fff;border-radius:28px;display:grid;place-items:center;box-shadow:0 18px 40px rgba(15,23,42,.1)}input,select,textarea{width:100%;border:1px solid #cbdced;background:#f8fbff;border-radius:14px;padding:13px 14px;font-size:15px;margin-bottom:12px}label{font-weight:800;color:#334155}.form-grid{display:grid;gap:10px}.checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:10px 0}.checks input{width:auto}.user-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px}.danger{background:#dc2626!important;margin-top:10px}.alert{background:#dcfce7;color:#166534;padding:12px 14px;border-radius:14px;font-weight:800;margin-bottom:16px}.code-editor{font-family:Consolas,monospace;font-size:14px;line-height:1.45}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 25% 20%,#dbeafe,transparent 30%),linear-gradient(135deg,#edf3fa,#fff)}.login-card{width:min(470px,92vw);background:#fff;border-radius:30px;padding:34px;box-shadow:0 30px 70px rgba(15,23,42,.16);border:1px solid #dbeafe}.login-brand{margin-bottom:24px}.demo-users{margin-top:20px;background:#f8fbff;border:1px solid #dbeafe;border-radius:18px;padding:16px;color:#61718a;font-size:14px;line-height:1.6}@media(max-width:1200px){.dashboard-grid,.feature-grid{grid-template-columns:repeat(2,1fr)}.app-shell{grid-template-columns:280px 1fr}.media-showcase{grid-template-columns:1fr}.stats-row{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;width:100%;height:auto}.main-area{padding:22px}.topbar{flex-direction:column}.dashboard-grid,.cards-mini,.speech-layout,.product-grid,.video-gallery,.feature-grid,.stats-row{grid-template-columns:1fr}.topbar h2{font-size:30px}.section-title{flex-direction:column;align-items:flex-start}.home-banner{padding:34px}.home-banner h1{font-size:42px}}
.product-toolbar{display:flex;gap:16px;background:#fff;border:1px solid rgba(217,229,242,.75);border-radius:24px;padding:18px;box-shadow:0 14px 30px rgba(15,23,42,.06)}.product-toolbar input,.product-toolbar select{margin:0}.product-grid.enhanced{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.product-card{padding:0!important;overflow:hidden}.product-card img{width:100%;height:190px;object-fit:cover;display:block}.product-card .product-body{padding:22px;position:relative;z-index:2}.product-card span{display:inline-block;color:#0b5ed7;background:#e8f2ff;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;margin-bottom:12px}.product-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.product-actions a.light{background:#eaf4ff;color:#064bb5}


.tools-panel{
  background:#fff;
  border-radius:28px;
  padding:26px;
  box-shadow:0 18px 38px rgba(15,23,42,.07);
  border:1px solid rgba(217,229,242,.75);
}
.tools-toolbar{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-bottom:22px;
}
.tools-toolbar input{
  width:100%;
  border:1px solid #cbdced;
  background:#f8fbff;
  border-radius:18px;
  padding:16px 18px;
  font-size:16px;
  margin:0;
}
.tools-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tool-tab{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:900;
  cursor:pointer;
  background:#e8f2ff;
  color:#0754bf;
}
.tool-tab.active{
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:#fff;
}
.tools-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:18px;
}
.tool-card{
  background:#fff;
  border:1px solid #d9e5f2;
  border-radius:24px;
  padding:22px;
  box-shadow:0 14px 30px rgba(15,23,42,.06);
  position:relative;
  overflow:hidden;
  transition:.22s;
}
.tool-card:before{
  content:'';
  position:absolute;
  right:-45px;
  top:-45px;
  width:135px;
  height:135px;
  border-radius:50%;
  background:radial-gradient(circle,#c9fbff 0,#e3fbff 35%,transparent 70%);
}
.tool-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 45px rgba(15,23,42,.1);
}
.tool-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:#e7faff;
  font-size:27px;
  margin-bottom:14px;
  position:relative;
  z-index:1;
}
.tool-card small{
  display:inline-block;
  font-weight:900;
  color:#0b5ed7;
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.04em;
  margin-bottom:9px;
  position:relative;
  z-index:1;
}
.tool-card h3{
  font-size:22px;
  margin-bottom:10px;
  position:relative;
  z-index:1;
}
.tool-card p{
  color:#61718a;
  font-weight:700;
  line-height:1.45;
  margin-bottom:16px;
  position:relative;
  z-index:1;
}
.tool-card a{
  display:inline-block;
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:white;
  text-decoration:none;
  border-radius:13px;
  padding:10px 15px;
  font-weight:900;
  position:relative;
  z-index:1;
}
.tools-empty{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:900;
  border:1px solid #fed7aa;
}


.tools-panel{
  background:#fff;
  border-radius:28px;
  padding:26px;
  box-shadow:0 18px 38px rgba(15,23,42,.07);
  border:1px solid rgba(217,229,242,.75);
}
.tools-toolbar{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-bottom:22px;
}
.tools-toolbar input{
  width:100%;
  border:1px solid #cbdced;
  background:#f8fbff;
  border-radius:18px;
  padding:16px 18px;
  font-size:16px;
  margin:0;
}
.tools-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tool-tab{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:900;
  cursor:pointer;
  background:#e8f2ff;
  color:#0754bf;
}
.tool-tab span{
  opacity:.75;
  margin-left:4px;
}
.tool-tab.active{
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:#fff;
}
.tools-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:20px;
}
.tools-summary div{
  background:#f8fbff;
  border:1px solid #d9e5f2;
  border-radius:20px;
  padding:16px;
}
.tools-summary strong{
  display:block;
  font-size:28px;
  color:#064bb5;
}
.tools-summary span{
  color:#61718a;
  font-weight:800;
}
.tools-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:18px;
}
.tool-card{
  background:#fff;
  border:1px solid #d9e5f2;
  border-radius:24px;
  padding:22px;
  box-shadow:0 14px 30px rgba(15,23,42,.06);
  position:relative;
  overflow:hidden;
  transition:.22s;
}
.tool-card:before{
  content:'';
  position:absolute;
  right:-45px;
  top:-45px;
  width:135px;
  height:135px;
  border-radius:50%;
  background:radial-gradient(circle,#c9fbff 0,#e3fbff 35%,transparent 70%);
}
.tool-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 45px rgba(15,23,42,.1);
}
.tool-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:#e7faff;
  font-size:27px;
  margin-bottom:14px;
  position:relative;
  z-index:1;
}
.tool-card small{
  display:inline-block;
  font-weight:900;
  color:#0b5ed7;
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.04em;
  margin-bottom:9px;
  position:relative;
  z-index:1;
}
.tool-card h3{
  font-size:22px;
  margin-bottom:10px;
  position:relative;
  z-index:1;
}
.tool-card p{
  color:#61718a;
  font-weight:700;
  line-height:1.45;
  margin-bottom:16px;
  position:relative;
  z-index:1;
}
.tool-card a{
  display:inline-block;
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:white;
  text-decoration:none;
  border-radius:13px;
  padding:10px 15px;
  font-weight:900;
  position:relative;
  z-index:1;
}
.tools-empty{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:900;
  border:1px solid #fed7aa;
}
@media(max-width:850px){
  .tools-summary{grid-template-columns:1fr;}
}


.product-tools-v14{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:18px;
  align-items:center;
  background:#fff;
  border:1px solid rgba(217,229,242,.75);
  border-radius:26px;
  padding:22px;
  box-shadow:0 18px 38px rgba(15,23,42,.07);
}
.product-tools-v14 input{
  margin:0;
  border-radius:18px;
  padding:16px 18px;
}
.product-counter-v14{
  background:#eef6ff;
  border:1px solid #c9defb;
  border-radius:18px;
  padding:14px;
}
.product-counter-v14 strong{
  display:block;
  color:#064bb5;
  font-size:30px;
}
.product-counter-v14 span{
  color:#61718a;
  font-weight:900;
}
.product-grid-v14{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}
.product-card-v14{
  background:#fff;
  border-radius:26px;
  overflow:hidden;
  border:1px solid rgba(217,229,242,.75);
  box-shadow:0 18px 38px rgba(15,23,42,.07);
  display:flex;
  flex-direction:column;
}
.product-image-v14{
  height:180px;
  background:linear-gradient(135deg,#dbeafe,#f8fbff);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.product-image-v14 img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-img-placeholder{
  font-size:48px;
}
.product-content-v14{
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.product-content-v14 small{
  color:#0b5ed7;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.product-content-v14 h3{
  font-size:22px;
}
.product-content-v14 p{
  color:#61718a;
  font-weight:700;
  line-height:1.45;
  flex:1;
}
.speech-badge{
  display:inline-flex;
  width:max-content;
  background:#dcfce7;
  color:#166534;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
}
.product-actions-v14{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}
.product-actions-v14 a{
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:#fff;
  text-decoration:none;
  border-radius:13px;
  padding:10px 14px;
  font-weight:900;
}
.product-actions-v14 a.secondary-product-link{
  background:#e8f2ff;
  color:#0754bf;
}
@media(max-width:850px){
  .product-tools-v14{grid-template-columns:1fr;}
}


/* v15 herramientas layout fix */
.app-shell{align-items:start;}
.sidebar{z-index:10;}
.side-menu{overflow:visible;}
.side-menu > .tool-card,
.sidebar .tool-card,
.sidebar .tools-panel,
.sidebar .tools-grid{display:none !important;}
.tools-page-fixed{width:100%;max-width:100%;}
.tools-page-fixed .tools-panel{width:100%;overflow:hidden;}
.tools-page-fixed .tools-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
  align-items:stretch;
}
.tools-page-fixed .tool-card{min-width:0;height:auto;}
.tools-page-fixed .tool-card p{overflow-wrap:anywhere;}
@media(max-width:1100px){.tools-page-fixed .tools-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));}}
@media(max-width:850px){.tools-page-fixed .tools-grid{grid-template-columns:1fr;}}


/* v17 video gallery and product resource pages */
.video-hero-v17{
  min-height:220px;
  border-radius:32px;
  padding:38px;
  color:#fff;
  display:flex;
  align-items:flex-end;
  background:
    radial-gradient(circle at 85% 10%,rgba(255,255,255,.18),transparent 26%),
    linear-gradient(120deg,#03133a 0%,#075fc7 52%,#10d4e5 100%);
  box-shadow:0 22px 55px rgba(15,23,42,.15);
}
.video-hero-v17 span{
  display:inline-flex;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  font-weight:900;
  margin-bottom:14px;
}
.video-hero-v17 h3{
  font-size:34px;
  margin-bottom:10px;
}
.video-hero-v17 p{
  color:#e8f5ff;
  font-weight:800;
}
.video-gallery-v17{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}
.video-card-v17{
  background:#fff;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(217,229,242,.8);
  box-shadow:0 18px 38px rgba(15,23,42,.08);
  transition:.25s;
}
.video-card-v17:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 52px rgba(15,23,42,.14);
}
.video-card-v17.featured{
  grid-column:span 2;
}
.video-shell-v17{
  background:linear-gradient(135deg,#03133a,#0b5ed7);
  padding:16px;
}
.video-shell-v17 video{
  width:100%;
  aspect-ratio:16/9;
  display:block;
  border-radius:18px;
  background:#000;
  object-fit:cover;
}
.video-info-v17{
  padding:22px;
}
.video-info-v17 span{
  color:#0b5ed7;
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.04em;
}
.video-info-v17 h3{
  font-size:24px;
  margin:8px 0;
}
.video-info-v17 p{
  color:#61718a;
  font-weight:700;
  margin-bottom:14px;
}
.video-info-v17 a{
  display:inline-flex;
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:#fff;
  text-decoration:none;
  border-radius:13px;
  padding:10px 14px;
  font-weight:900;
}
.product-tools-v17{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:18px;
  align-items:center;
  background:#fff;
  border:1px solid rgba(217,229,242,.75);
  border-radius:26px;
  padding:22px;
  box-shadow:0 18px 38px rgba(15,23,42,.07);
}
.product-tools-v17 input{
  margin:0;
  border-radius:18px;
  padding:16px 18px;
}
.product-counter-v17{
  background:#eef6ff;
  border:1px solid #c9defb;
  border-radius:18px;
  padding:14px;
}
.product-counter-v17 strong{
  display:block;
  color:#064bb5;
  font-size:30px;
}
.product-counter-v17 span{
  color:#61718a;
  font-weight:900;
}
.product-grid-v17{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:24px;
}
.product-card-v17{
  background:#fff;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(217,229,242,.75);
  box-shadow:0 18px 38px rgba(15,23,42,.07);
  display:flex;
  flex-direction:column;
  transition:.25s;
}
.product-card-v17:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 52px rgba(15,23,42,.13);
}
.product-image-v17{
  height:230px;
  background:linear-gradient(135deg,#dbeafe,#f8fbff);
  overflow:hidden;
}
.product-image-v17 img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-content-v17{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.product-content-v17 small{
  color:#0b5ed7;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.product-content-v17 h3{
  font-size:25px;
  line-height:1.1;
}
.product-content-v17 p{
  color:#61718a;
  font-weight:700;
  line-height:1.45;
}
.resource-badge,
.speech-badge{
  display:inline-flex;
  width:max-content;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:900;
}
.speech-badge{
  background:#dcfce7;
  color:#166534;
}
.resource-badge{
  background:#e8f2ff;
  color:#0754bf;
}
.product-route-list{
  display:grid;
  gap:5px;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid #d9e5f2;
  color:#61718a;
  font-size:12px;
  font-weight:800;
}
.product-actions-v17{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
}
.product-actions-v17 a{
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:#fff;
  text-decoration:none;
  border-radius:13px;
  padding:10px 14px;
  font-weight:900;
}
.product-actions-v17 a:nth-child(2){
  background:#e8f2ff;
  color:#0754bf;
}
.product-actions-v17 a:nth-child(3){
  background:#0f172a;
  color:#fff;
}
.resource-page{
  min-height:100vh;
  background:#edf3fa;
}
.resource-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:24px 36px;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid #d9e5f2;
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(10px);
}
.resource-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.resource-brand h1{
  font-size:20px;
  line-height:1.1;
}
.resource-brand p{
  color:#61718a;
  font-weight:700;
  font-size:13px;
}
.resource-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.resource-nav a{
  text-decoration:none;
  background:#e8f2ff;
  color:#0754bf;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
}
.resource-hero{
  margin:28px auto;
  width:min(1180px,calc(100% - 44px));
  min-height:330px;
  border-radius:34px;
  padding:46px;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background-size:cover;
  background-position:center;
  box-shadow:0 22px 55px rgba(15,23,42,.18);
}
.resource-hero span{
  width:max-content;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
  margin-bottom:14px;
}
.resource-hero h2{
  font-size:28px;
  margin-bottom:4px;
}
.resource-hero h3{
  font-size:48px;
  line-height:1.02;
  margin-bottom:12px;
}
.resource-hero p{
  max-width:760px;
  font-size:18px;
  color:#e8f5ff;
  font-weight:700;
  line-height:1.45;
}
.resource-viewer-card{
  width:min(1180px,calc(100% - 44px));
  margin:0 auto 40px;
  background:#fff;
  border-radius:28px;
  padding:26px;
  border:1px solid rgba(217,229,242,.8);
  box-shadow:0 18px 38px rgba(15,23,42,.08);
}
.resource-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.resource-actions a{
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:#fff;
  text-decoration:none;
  border-radius:13px;
  padding:11px 16px;
  font-weight:900;
}
.resource-actions a.secondary-product-link{
  background:#e8f2ff;
  color:#0754bf;
}
.resource-frame{
  width:100%;
  min-height:70vh;
  border:0;
  border-radius:18px;
  background:#f8fbff;
}
.resource-video-shell{
  background:linear-gradient(135deg,#03133a,#0b5ed7);
  border-radius:24px;
  padding:18px;
}
.resource-video{
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border-radius:16px;
  display:block;
}
.resource-note{
  margin-top:14px;
  color:#61718a;
  font-weight:800;
}
@media(max-width:1050px){
  .video-card-v17.featured{grid-column:span 1;}
}
@media(max-width:850px){
  .product-tools-v17{grid-template-columns:1fr;}
  .resource-topbar{align-items:flex-start;flex-direction:column;}
  .resource-hero{padding:30px;}
  .resource-hero h3{font-size:34px;}
}


/* v18 fixes */
.product-route-list{display:none !important;}
.external-resource-card{
  min-height:360px;
  border-radius:22px;
  background:linear-gradient(135deg,#eef6ff,#fff);
  border:1px solid #cfe0f4;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  padding:28px;
}
.external-resource-card h3{font-size:28px;color:#0f172a;}
.external-resource-card p{max-width:620px;color:#61718a;font-weight:800;}
.external-resource-card a{
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  color:white;
  text-decoration:none;
  border-radius:14px;
  padding:12px 18px;
  font-weight:900;
}


/* v19 upload validation and admin cleanup */
.upload-card-v19{max-width:100%;}
.upload-form-v19{display:grid;gap:12px;}
.upload-alert{padding:14px 18px;border-radius:16px;margin-bottom:18px;font-weight:900;border:1px solid;}
.upload-alert.ok{background:#dcfce7;color:#166534;border-color:#86efac;}
.upload-alert.error{background:#fee2e2;color:#991b1b;border-color:#fecaca;}
.upload-info{margin:0 0 8px;padding:13px 15px;border-radius:14px;background:#eef6ff;border:1px solid #c9defb;color:#0754bf;font-weight:900;}
.rules-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-top:18px;}
.rule-card{background:#fff;border:1px solid #d9e5f2;border-radius:20px;padding:18px;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.rule-card strong{display:block;color:#0f172a;font-size:18px;margin-bottom:6px;}
.rule-card p{color:#61718a;font-weight:800;margin-bottom:8px;}
.rule-card small{color:#0b5ed7;font-weight:900;}


/* v20 product image route and upload redesign */
.product-image-v17{
  position:relative;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#e8f2ff,#f8fbff);
}
.product-image-v17 img{
  display:block;
}
.image-missing-label{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#61718a;
  font-weight:900;
  background:linear-gradient(135deg,#e8f2ff,#f8fbff);
}
.upload-page-v20{
  min-height:100vh;
  padding:34px;
  background:
    radial-gradient(circle at 12% 8%,rgba(11,94,215,.08),transparent 28%),
    linear-gradient(135deg,#edf3fa,#f8fbff);
}
.upload-hero-v20{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  border-radius:32px;
  padding:34px;
  color:#fff;
  background:linear-gradient(120deg,#03133a,#075fc7 55%,#10d4e5);
  box-shadow:0 22px 55px rgba(15,23,42,.16);
  margin-bottom:24px;
}
.upload-hero-v20 span{
  display:inline-flex;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  padding:8px 13px;
  font-weight:900;
  margin-bottom:14px;
}
.upload-hero-v20 h1{
  font-size:44px;
  line-height:1;
  margin-bottom:10px;
}
.upload-hero-v20 p{
  color:#e8f5ff;
  font-weight:800;
  font-size:18px;
}
.upload-hero-v20 a{
  background:#fff;
  color:#0754bf;
  text-decoration:none;
  border-radius:999px;
  padding:13px 18px;
  font-weight:900;
  white-space:nowrap;
}
.upload-alert-v20{
  border-radius:22px;
  padding:18px 22px;
  margin-bottom:22px;
  border:1px solid;
  display:grid;
  gap:6px;
  font-weight:900;
}
.upload-alert-v20.ok{
  background:#dcfce7;
  color:#166534;
  border-color:#86efac;
}
.upload-alert-v20.error{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.upload-alert-v20 span{
  font-weight:800;
}
.upload-layout-v20{
  display:grid;
  grid-template-columns:minmax(360px,1fr) minmax(320px,520px);
  gap:24px;
}
.upload-card-main-v20,
.upload-help-v20{
  background:#fff;
  border:1px solid rgba(217,229,242,.8);
  border-radius:30px;
  padding:28px;
  box-shadow:0 18px 38px rgba(15,23,42,.08);
}
.upload-form-v20{
  display:grid;
  gap:16px;
}
.upload-form-v20 label{
  font-weight:900;
  color:#0f172a;
}
.upload-form-v20 select{
  border-radius:18px;
  padding:15px 16px;
  margin:0;
}
.upload-drop-v20{
  position:relative;
  border:2px dashed #c9defb;
  background:#f8fbff;
  border-radius:24px;
  padding:30px;
  display:grid;
  place-items:center;
  text-align:center;
  min-height:180px;
}
.upload-drop-v20 input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.upload-drop-v20 strong{
  display:block;
  color:#0754bf;
  font-size:22px;
  margin-bottom:8px;
}
.upload-drop-v20 span{
  color:#61718a;
  font-weight:800;
}
.upload-info-v20{
  border-radius:18px;
  background:#eef6ff;
  border:1px solid #c9defb;
  color:#0754bf;
  padding:15px 16px;
  font-weight:900;
}
.upload-btn-v20{
  border:0;
  border-radius:16px;
  padding:15px 20px;
  color:#fff;
  background:linear-gradient(135deg,#0b5ed7,#157eea);
  font-weight:900;
  cursor:pointer;
  font-size:16px;
}
.upload-help-v20 h3{
  font-size:26px;
  margin-bottom:18px;
}
.rules-grid-v20{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.rule-card-v20{
  border:1px solid #d9e5f2;
  border-radius:20px;
  padding:16px;
  background:#f8fbff;
}
.rule-card-v20 span{
  font-size:26px;
}
.rule-card-v20 strong{
  display:block;
  font-size:17px;
  margin:8px 0 4px;
}
.rule-card-v20 p{
  color:#61718a;
  font-weight:800;
  margin-bottom:6px;
}
.rule-card-v20 small{
  color:#0b5ed7;
  font-weight:900;
}
@media(max-width:980px){
  .upload-layout-v20{grid-template-columns:1fr;}
  .upload-hero-v20{align-items:flex-start;flex-direction:column;}
}
@media(max-width:620px){
  .upload-page-v20{padding:18px;}
  .rules-grid-v20{grid-template-columns:1fr;}
  .upload-hero-v20 h1{font-size:34px;}
}
