:root{
  --accent:#6d5dfc;
  --muted:#666;
  --bg:#f6f7fb;
  --card:#ffffff;
  --sidebar:#1f2937;
  --sidebar-width:220px;
  --text:#111;
  --gap:14px;
  --radius:10px;
  font-family: "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body,#app{height:100%;margin:0;background:var(--bg);color:var(--text)}
.layout{display:flex;height:100vh;gap:var(--gap);padding:18px;overflow:hidden}
.sidebar{
  width:var(--sidebar-width);background:linear-gradient(180deg,var(--sidebar),var(--sidebar));color:#fff;border-radius:12px;padding:18px;display:flex;flex-direction:column;
  min-width:180px;max-height:calc(100vh - 36px);overflow:hidden
}
.brand{font-weight:700;font-size:20px;margin-bottom:14px}
.brand-shell{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:16px;
  text-align:center;
  padding:8px 6px 4px;
}
.brand-logo-wrap{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px 0 2px;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  width:100%;
}
.brand-logo-mini{
  width:min(100%, 172px);
  min-height:54px;
  max-height:96px;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  overflow:visible;
  flex:0 0 auto;
  padding:0;
  box-shadow:none;
  border:none;
}
.brand-logo-mini img{
  width:100%;
  max-width:172px;
  max-height:96px;
  object-fit:contain;
  border-radius:0;
  display:block;
}
#brandTitle{
  font-family: Georgia, "Times New Roman", serif;
  font-weight:700;
  font-size:1.18rem;
  line-height:1.15;
  letter-spacing:.01em;
  max-width:100%;
  word-break:break-word;
}
#brandSubtitle{
  color:#d1d5db;
  font-size:.82rem;
  line-height:1.25;
}

#brandProduct{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:4px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#f8fafc;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.14);
}

.sidebar nav{display:flex;flex-direction:column;gap:8px;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent}
.sidebar nav::-webkit-scrollbar{width:6px}
.sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28);border-radius:999px}
.menu-btn{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  background:transparent;
  border:0;
  color:#ddd;
  padding:10px 12px;
  border-radius:8px;
  text-align:left;
  cursor:pointer;
  font-size:15px;
  overflow:visible;
  transition:background .12s ease, color .12s ease, transform .06s ease;
}
.menu-btn .icon{display:inline-flex;width:20px;height:20px;flex:0 0 20px;align-items:center;justify-content:center;color:rgba(255,255,255,0.95);overflow:visible}
.menu-btn .icon svg{width:18px;height:18px;display:block;overflow:visible}
.menu-btn .label{display:inline-block}
.menu-btn:hover{transform:translateY(-2px)}
.menu-btn.active, .menu-btn:hover{background:rgba(255,255,255,0.08);color:#fff}
.sidebar-footer{font-size:12px;color:#d1d5db;margin-top:12px;flex:0 0 auto}

.main{flex:1;display:flex;flex-direction:column}
.topbar{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.search input{padding:8px 12px;border-radius:8px;border:1px solid #e3e3e3;width:320px;background:#fff}
.clock{color:var(--muted);font-size:14px}

.content{flex:1;overflow:auto}
.card{background:var(--card);padding:16px;border-radius:12px;box-shadow:0 2px 8px rgba(20,20,20,0.04);margin-bottom:12px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.kv{display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:8px;background:linear-gradient(180deg,#fff,#fbfbfb);}

.trab-list {display:flex;flex-direction:column;gap:8px}
.trab-list .kv{padding:10px 12px;border-radius:10px;background:linear-gradient(180deg,#fff,#fcfcfc);box-shadow:0 1px 3px rgba(0,0,0,0.03)}
.avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#fafafa);border:1px solid #eee;font-size:20px;}
.worker-card h3{font-size:18px;margin:0}
.trab-item-name{font-weight:700}
.trab-item-meta{font-size:13px;color:var(--muted)}
.btn.small{padding:6px 8px;font-size:13px}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.chip{background:#f1f1f2;padding:6px 8px;border-radius:999px;font-size:13px;color:var(--muted)}

.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:8px 10px;border-bottom:1px solid #eee;text-align:left}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.btn{padding:8px 12px;border-radius:8px;border:0;cursor:pointer;background:var(--accent);color:#fff}
.btn.ghost{background:transparent;border:1px solid #ddd;color:var(--muted)}
.input,textarea,select{padding:8px;border-radius:8px;border:1px solid #ddd;width:100%}

.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.small{font-size:13px;color:var(--muted)}
.center{display:flex;align-items:center;justify-content:center}

.appt-item{display:flex;justify-content:space-between;align-items:center;padding:10px;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfbfb);border:1px solid #f3f3f4;cursor:pointer;transition:transform .08s ease, box-shadow .08s ease;}
.appt-item:hover{ transform:translateY(-3px); box-shadow:0 6px 18px rgba(12,12,12,0.06); }
.appt-left{display:flex;gap:12px;align-items:center}
.appt-avatar{width:48px;height:48px;border-radius:8px;background:#fafafa;border:1px solid #eee;display:flex;align-items:center;justify-content:center;font-weight:700}
.appt-title{font-weight:700}
.appt-right{display:flex;flex-direction:column;align-items:flex-end;min-width:140px}
.appt-meta{color:var(--muted)}

.service-row{padding:10px;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfbfb);border:1px solid #f3f3f4;transition:transform .08s ease,box-shadow .08s ease;cursor:default}
.service-row:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(12,12,12,0.06)}
.price-badge{background:linear-gradient(180deg,#fff,#fff7f7);border:1px solid #f5e9e9;padding:6px 10px;border-radius:999px;font-weight:700;color:#b55353;min-width:86px;text-align:center}
#servicesList.grid-view{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
#servicesList.list-view{display:flex;flex-direction:column;gap:8px}
#servicesList .card{box-shadow:0 2px 6px rgba(12,12,12,0.04)}
#viewGrid.active, #viewList.active{background:var(--accent);color:#fff;border:0}

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.no-spinner{ -moz-appearance:textfield; }

@media (max-width:900px){
  html,body,#app{min-height:100%;height:auto;overflow-x:hidden;overflow-y:auto}
  body{position:relative;-webkit-overflow-scrolling:touch}
  .layout{flex-direction:column;min-height:100dvh;height:auto;padding:8px;gap:8px;overflow:visible}
  .sidebar{width:100%;max-height:128px;display:flex;flex-direction:column;gap:8px;align-items:stretch;padding:8px;border-radius:10px;min-width:0;overflow:hidden;flex:0 0 auto}
  .brand-shell{flex-direction:row;justify-content:flex-start;text-align:left;margin-bottom:0;padding:0}
  .brand-logo-wrap{width:auto;padding:0}
  .brand-copy{align-items:flex-start}
  .brand-logo-mini{width:42px;min-height:42px;max-height:42px;font-size:24px}
  .brand-logo-mini img{max-width:42px;max-height:42px}
  #brandTitle{font-size:1rem}
  #brandSubtitle{font-size:.72rem}
  .sidebar nav{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:0 2px 6px;scroll-snap-type:x proximity;gap:6px}
  .menu-btn{flex:0 0 auto;min-width:92px;justify-content:center;scroll-snap-align:start;padding:9px 10px;font-size:14px;white-space:nowrap}
  .menu-btn .label{max-width:110px;overflow:hidden;text-overflow:ellipsis}
  .sidebar-footer{display:none}
  .main{min-height:0;padding-top:0;overflow:visible;display:block}
  .topbar{min-height:auto;display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:8px;align-items:start}
  .topbar .search{grid-column:1 / -1;order:3}
  .search input{width:100%;min-height:40px}
  .topbar-meta{justify-content:flex-end;gap:8px}
  #programMark{font-size:1rem;line-height:1.15;text-align:right}
  .clock{font-size:12px}
  .content{min-height:0;overflow:visible;padding-bottom:24px}
  .card{padding:12px;border-radius:10px;margin-bottom:10px}
  .form-row{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .worker-card .form-row{grid-template-columns:1fr;gap:8px}
  .avatar{width:40px;height:40px;font-size:18px}
  .toolbar,.topbar-meta,.sp-mkt-actions{flex-wrap:wrap}
  .btn{min-height:40px}
  .table{min-width:640px}
  .table-wrap,
  .sp-mkt-history-table-wrap,
  div[style*="overflow:auto"],
  div[style*="overflow: auto"]{-webkit-overflow-scrolling:touch}
  .content > .card,
  .content section.card{max-width:100%;overflow:hidden}
  .content .card > div[style*="display:grid"],
  .content .card > div[style*="grid-template-columns"],
  .content section > div[style*="display:grid"],
  .content section > div[style*="grid-template-columns"]{grid-template-columns:1fr !important}
  .content .card > div[style*="display:flex"],
  .content section > div[style*="display:flex"]{flex-wrap:wrap}
}

@media (max-width:560px){
  .layout{padding:6px;gap:6px}
  .sidebar{max-height:116px;padding:7px}
  .brand-logo-mini{width:36px;min-height:36px;max-height:36px;font-size:22px}
  .brand-logo-mini img{max-width:36px;max-height:36px}
  #brandTitle{font-size:.95rem}
  #brandSubtitle{font-size:.68rem}
  .menu-btn{min-width:76px;padding:8px 9px;font-size:12px;gap:6px;flex-direction:column}
  .menu-btn .icon,.menu-btn .icon svg{width:17px;height:17px}
  .menu-btn .label{max-width:72px}
  .topbar{grid-template-columns:1fr;align-items:stretch}
  .topbar-meta{justify-content:space-between}
  #programMark{text-align:left;font-size:.95rem}
  .card{padding:10px}
  .appt-item,.appt-left,.appt-right,.kv{align-items:flex-start}
  .appt-item,.kv{flex-direction:column;gap:8px}
  .appt-right{min-width:0;align-items:flex-start}
  .price-badge{min-width:0}
}

@media (max-height:760px) and (min-width:901px){
  .sidebar{padding:12px}
  .brand-shell{gap:6px;margin-bottom:10px}
  .brand-logo-mini{min-height:42px;max-height:58px;font-size:26px}
  .brand-logo-mini img{max-height:58px}
  #brandTitle{font-size:1rem}
  #brandSubtitle{font-size:.74rem}
  .sidebar nav{gap:6px}
  .menu-btn{padding:8px 9px;font-size:14px}
  .sidebar-footer{font-size:11px;margin-top:8px}
}


.license-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:20000}.license-card{width:min(720px,100%);background:#fff;border-radius:24px;padding:24px;box-shadow:0 30px 80px rgba(15,23,42,.25);border:1px solid rgba(15,23,42,.08)}.license-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:999px;background:rgba(79,70,229,.08);color:var(--accent,#4f46e5);font-weight:800;font-size:.82rem;margin-bottom:10px}.license-card h2{margin:0 0 8px 0}.license-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media (max-width:720px){.license-grid{grid-template-columns:1fr}.license-card{padding:18px;border-radius:18px}}


#providerMark{
  color:#cbd5e1;
  font-weight:600;
  letter-spacing:.01em;
}
#brandProduct{
  color:#cbd5e1;
  font-size:.78rem;
  line-height:1.2;
  margin-top:2px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}



.topbar-meta{
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:flex-end;
}
#programMark{
  font-family: Georgia, "Times New Roman", serif;
  font-size:1.18rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.01em;
  color:#334155;
  white-space:nowrap;
}



.dashboard-hero{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.dashboard-highlight-box{min-width:260px;padding:14px;border:1px solid #e8eefb;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff)}
.dashboard-metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.dashboard-metric-card{padding:12px;border:1px solid #e8eefb;border-radius:12px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.dashboard-metric-value{font-weight:800;font-size:22px;margin-top:4px;line-height:1.2}
.dashboard-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}
.dashboard-soft-card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff}
.dashboard-rank-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px;border:1px solid #eef2f7;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfcfe)}
.dashboard-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid #e8eefb;background:#fff}

.client-detail-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.client-detail-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}
.client-detail-ident{
  min-width:260px;
  flex:1 1 420px;
}
.client-segment-badge{
  margin-top:6px;
  font-weight:700;
}
.client-actions-card{
  width:min(100%, 280px);
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  padding:14px;
  border:1px solid #e8eefb;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfcfe);
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.client-actions-count{
  font-size:32px;
  line-height:1;
  font-weight:800;
  color:#475569;
}
.client-actions-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.client-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  width:100%;
  max-width:1000px;
}
.client-summary-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  padding:16px;
  border:1px solid #e8eefb;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
  overflow:hidden;
}
.client-summary-label{
  font-size:13px;
  color:var(--muted);
  line-height:1.35;
}
.client-summary-value{
  width:100%;
  font-weight:800;
  font-size:18px;
  line-height:1.2;
  color:#475569;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.client-summary-date{
  font-size:16px;
}
.client-summary-helper{
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
  overflow-wrap:anywhere;
}
.client-loyalty-block{
  width:100%;
  max-width:860px;
}
.client-loyalty-actions{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.client-history-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:48vh;
  overflow:auto;
}

@media (max-width:900px){
  .client-actions-card{
    width:100%;
    align-items:flex-start;
    margin-left:0;
  }
  .client-actions-row{
    justify-content:flex-start;
  }
  .client-summary-grid{
    grid-template-columns:1fr;
    max-width:none;
  }
}


/* ===== Studio Pro 1.5.8 CSS-safe config polish ===== */
.content .card h3{
  letter-spacing:.01em;
}
.content .card h4{
  margin:20px 0 10px !important;
  padding:9px 12px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  font-size:13px;
  letter-spacing:.06em;
}
.content .card .form-row{
  margin-bottom:14px !important;
  gap:14px;
}
.content .card .small{
  line-height:1.45;
}
.content .card .btn.ghost{
  border:1px solid #d0d5dd;
  background:#fff;
}
.content .card textarea{
  min-height:88px;
}
.content .card input[type="file"].input{
  padding:10px;
}
.content .card > div[style*="display:grid"][style*="360px"] > .card{
  box-shadow:0 2px 10px rgba(16,24,40,.05);
}


/* ===== Studio Pro 1.5.9 CSS-only config polish ===== */
.content .card{
  border:1px solid #eaecf0;
  box-shadow:0 4px 16px rgba(16,24,40,.05);
}

.content .card h3{
  margin-bottom:6px;
}

.content .card h4{
  margin:22px 0 12px !important;
  padding:10px 12px;
  border-radius:12px;
  background:linear-gradient(180deg,#fcfcfd 0%,#f8fafc 100%);
  border:1px solid #e4e7ec;
  font-size:13px;
  letter-spacing:.08em;
}

.content .card .form-row{
  margin-bottom:16px !important;
  gap:16px;
  align-items:flex-start;
}

.content .card .input,
.content .card textarea,
.content .card select{
  border-radius:12px;
}

.content .card textarea{
  min-height:96px;
}

.content .card .small{
  color:#667085;
  line-height:1.5;
}

.content .card .btn.ghost{
  border:1px solid #d0d5dd;
  background:#fff;
  border-radius:10px;
}

.content .card .btn.ghost:hover{
  background:#f8fafc;
}

.content .card label.small{
  font-weight:600;
  color:#344054;
}

.content .card input[type="file"].input{
  padding:10px;
  background:#fff;
}

.content .card > div[style*="display:grid"][style*="360px"] > .card{
  border:1px solid #e4e7ec;
  background:#fcfcfd;
}

.content .card h4 + .small{
  margin-bottom:10px;
}

.content .card hr{
  border:none;
  border-top:1px solid #eaecf0;
  margin:18px 0;
}

/* visual emphasis for WhatsApp-related fields without touching logic */
.content .card textarea[id*="whatsapp"],
.content .card input[id*="whatsapp"]{
  border-color:#b7ebc6;
  background:#f6fffa;
}

.content .card textarea[id*="whatsapp"]:focus,
.content .card input[id*="whatsapp"]:focus{
  outline:none;
  border-color:#73d13d;
  box-shadow:0 0 0 3px rgba(115,209,61,.12);
}

/* Studio Pro Business 1.7.1 - UI visual pro */
.license-overlay{
  background:
    radial-gradient(circle at top left, rgba(79,70,229,.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(16,185,129,.18), transparent 28%),
    rgba(15,23,42,.72) !important;
}
.sp-license-card-pro{
  overflow:hidden;
  padding:0 !important;
  border:1px solid rgba(99,102,241,.16) !important;
}
.sp-activation-hero{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:24px;
  background:linear-gradient(135deg,#f8fafc 0%,#eef2ff 100%);
  border-bottom:1px solid #e5e7eb;
}
.sp-activation-logo{
  width:54px;
  height:54px;
  flex:0 0 auto;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  letter-spacing:.02em;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  box-shadow:0 16px 35px rgba(79,70,229,.25);
}
.sp-form-section,
.sp-panel-connection,
.sp-tech-panel,
.sp-business-summary,
.sp-license-message,
.sp-footer-actions{ margin-left:24px; margin-right:24px; }
.sp-form-section{ margin-top:18px; }
.sp-section-title{
  font-weight:900;
  color:#0f172a;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
}
.sp-section-title:before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background:#4f46e5;
  box-shadow:0 0 0 4px rgba(79,70,229,.12);
}
.sp-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.sp-form-grid.one-col{ grid-template-columns:1fr; }
.sp-business-summary{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  background:#eef4ff;
  border:1px solid #c7d2fe;
  color:#344054;
  font-weight:700;
}
.sp-panel-connection{
  margin-top:14px;
  padding:14px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #d0d5dd;
}
.sp-panel-connection-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.sp-action-row{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.sp-primary-action{
  box-shadow:0 10px 24px rgba(79,70,229,.22);
}
.sp-tech-panel{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff;
  border:1px dashed #cbd5e1;
}
.sp-license-message{
  min-height:18px;
  margin-top:12px;
  padding:0 0 2px 0;
  color:#b42318;
  font-weight:700;
}
.sp-footer-actions{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:14px;
  margin-bottom:22px;
  flex-wrap:wrap;
}
.sp-license-status{
  margin:0 0 16px 0;
  padding:14px 16px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  border:1px solid #bbf7d0;
  background:linear-gradient(135deg,#f0fdf4,#ffffff);
  color:#166534;
  box-shadow:0 10px 25px rgba(15,23,42,.05);
}
.sp-license-status.is-warning{
  border-color:#fedf89;
  background:linear-gradient(135deg,#fffbeb,#ffffff);
  color:#92400e;
}
.sp-license-status.is-offline{
  border-color:#bae6fd;
  background:linear-gradient(135deg,#f0f9ff,#ffffff);
  color:#075985;
}
.sp-license-status__icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.06);
  font-weight:900;
}
.sp-license-status__body{ flex:1 1 260px; }
.sp-license-status__title{ font-weight:900; color:inherit; }
.sp-license-status__subtitle{ margin-top:3px; font-size:.9rem; opacity:.88; }
@media (max-width:720px){
  .sp-activation-hero{padding:18px;}
  .sp-form-section,.sp-panel-connection,.sp-tech-panel,.sp-business-summary,.sp-license-message,.sp-footer-actions{margin-left:18px;margin-right:18px;}
  .sp-form-grid{grid-template-columns:1fr;}
  .sp-action-row{justify-content:stretch;}
  .sp-action-row .btn{width:100%;}
}
.sp-plan-choice{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px;margin-top:12px}
.sp-plan-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (max-width:900px){.sp-plan-choice-grid{grid-template-columns:1fr 1fr}}
@media (max-width:540px){.sp-plan-choice-grid{grid-template-columns:1fr}}


/* Studio Pro Business 1.7.3 - escritorio compacto con animaciones */
@keyframes spFadeUp {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spSoftPulse {
  0%,100% { box-shadow: 0 16px 35px rgba(79,70,229,.22); }
  50% { box-shadow: 0 20px 46px rgba(79,70,229,.32); }
}
.sp-desktop-activation-card{
  width:min(760px, calc(100vw - 64px)) !important;
  max-height:calc(100vh - 44px);
  overflow:auto !important;
  animation:spFadeUp .28s ease-out;
}
.sp-license-card-pro .sp-activation-hero{ padding:18px 20px; }
.sp-license-card-pro .sp-activation-logo{ width:48px; height:48px; border-radius:16px; animation:spSoftPulse 3.6s ease-in-out infinite; }
.sp-license-card-pro h2{ font-size:1.35rem; line-height:1.2; }
.sp-license-card-pro .small{ font-size:.86rem; }
.sp-license-card-pro .sp-form-section,
.sp-license-card-pro .sp-panel-connection,
.sp-license-card-pro .sp-tech-panel,
.sp-license-card-pro .sp-business-summary,
.sp-license-card-pro .sp-license-message,
.sp-license-card-pro .sp-footer-actions,
.sp-license-card-pro .sp-offline-note{ margin-left:20px; margin-right:20px; }
.sp-license-card-pro .sp-form-section{ margin-top:14px; }
.sp-license-card-pro .sp-form-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.sp-license-card-pro .input{ padding:10px 12px; min-height:40px; }
.sp-license-card-pro .sp-panel-connection{ padding:12px; border-radius:16px; }
.sp-license-card-pro .sp-action-row{ margin-top:12px; }
.sp-license-card-pro .sp-primary-action,
.sp-license-card-pro .btn{ transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.sp-license-card-pro .btn:hover{ transform:translateY(-1px); }
.sp-license-card-pro .sp-business-summary{ margin-top:10px; padding:10px 12px; }
.sp-offline-note{ margin-top:12px; padding:10px 12px; border-radius:12px; background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; }
.sp-license-card-pro .sp-plan-choice{ animation:spFadeUp .24s ease-out; }
.sp-license-card-pro .sp-plan-choice-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-height:760px){
  .sp-license-card-pro .sp-activation-hero{padding:14px 18px;}
  .sp-license-card-pro .sp-form-section{margin-top:10px;}
  .sp-license-card-pro .sp-panel-connection{margin-top:10px;}
  .sp-license-card-pro .sp-footer-actions{margin-top:10px;margin-bottom:14px;}
}
@media (max-width:900px){
  .sp-desktop-activation-card{width:min(720px, calc(100vw - 36px)) !important;}
  .sp-license-card-pro .sp-plan-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:680px){
  .sp-license-card-pro .sp-form-grid{grid-template-columns:1fr;}
  .sp-license-card-pro .sp-action-row .btn{width:100%;}
}


.sp-payment-overlay{background:rgba(15,23,42,.55);backdrop-filter:blur(6px)}
.sp-payment-card{max-width:620px;animation:spFadeUp .22s ease-out}
.sp-payment-box{display:grid;grid-template-columns:1fr 180px;gap:16px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:16px;margin-top:14px}
.sp-payment-amount{font-size:1.9rem;font-weight:900;color:#0f172a;margin:6px 0 10px}
.sp-payment-qr{display:grid;place-items:center;background:white;border:1px solid #e5e7eb;border-radius:14px;padding:10px;min-height:180px}
.sp-payment-qr img{width:160px;height:160px;object-fit:contain}
@media (max-width:760px){.sp-payment-box{grid-template-columns:1fr}.sp-payment-card{max-width:520px}}


.sp-panel-connection-hidden{display:none!important}
.sp-activation-actions-clean{justify-content:flex-end;margin-top:16px;border-top:1px solid #e5e7eb;padding-top:16px}
.sp-bold-reference{display:grid;gap:8px;place-items:center;text-align:center;width:100%}
.sp-bold-reference img{width:100%;max-width:170px;height:auto;border-radius:14px;box-shadow:0 12px 30px rgba(15,23,42,.18);border:1px solid #e5e7eb;background:#fff}
.sp-payment-box-bold{grid-template-columns:1fr 220px}
@media (max-width:760px){.sp-payment-box-bold{grid-template-columns:1fr}.sp-bold-reference img{max-width:220px}}

.selected-plan-box{
  margin:18px 0;
  border:1px solid #c7d2fe;
  background:#eef2ff;
  border-radius:16px;
  padding:18px;
}
.selected-plan-title{
  font-weight:800;
  color:#1e1b4b;
  margin-bottom:8px;
}
.selected-plan-amount{
  font-size:22px;
  font-weight:900;
  color:#4338ca;
  margin-bottom:14px;
}


/* ===== Studio Pro 2.8.9 - Dashboard Inicio PRO ===== */
.sp-home-shell{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:4px 0 18px;
}
.sp-home-welcome{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.sp-home-welcome h1{
  margin:8px 0 4px;
  font-size:1.65rem;
  line-height:1.1;
  color:#0f172a;
}
.sp-home-welcome p{
  margin:0;
  color:#64748b;
  font-size:.94rem;
}
.sp-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(109,93,252,.10);
  color:#4f46e5;
  font-size:.82rem;
  font-weight:800;
}
.sp-home-actions-top{
  display:flex;
  align-items:center;
  gap:12px;
}
.sp-icon-btn{
  position:relative;
  width:46px;
  height:46px;
  border:none;
  border-radius:50%;
  background:#fff;
  box-shadow:0 10px 25px rgba(15,23,42,.06);
  color:#0f172a;
  cursor:pointer;
  font-weight:800;
}
.sp-icon-btn span{
  position:absolute;
  top:-5px;
  right:-3px;
  min-width:18px;
  height:18px;
  border-radius:999px;
  background:#4f46e5;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.7rem;
}
.sp-business-switch{
  min-height:48px;
  padding:0 16px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 10px 25px rgba(15,23,42,.05);
  cursor:pointer;
  color:#0f172a;
}
.sp-business-switch span{
  width:32px;
  height:32px;
  border-radius:10px;
  background:rgba(109,93,252,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.sp-setup-hero{
  display:grid;
  grid-template-columns:150px minmax(260px,1fr) minmax(180px,320px) 260px;
  align-items:center;
  gap:24px;
  padding:22px;
  border:1px solid #e8eefb;
  border-radius:18px;
  background:
    radial-gradient(circle at 74% 50%, rgba(109,93,252,.16), transparent 28%),
    linear-gradient(135deg,#fff 0%,#fbf9ff 100%);
  overflow:hidden;
}
.sp-progress-ring{
  width:116px;
  height:116px;
  border-radius:50%;
  background:conic-gradient(#5b4bff calc(var(--progress) * 1%), #e8e5ff 0);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:auto;
  box-shadow:inset 0 0 0 1px rgba(79,70,229,.08);
}
.sp-progress-ring > div{
  width:86px;
  height:86px;
  border-radius:50%;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.sp-progress-ring strong{
  font-size:1.85rem;
  color:#0f172a;
}
.sp-progress-ring small{
  color:#475569;
}
.sp-setup-content h2,
.sp-panel-card h2,
.sp-quick-section h2{
  margin:0;
  color:#0f172a;
  font-size:1.2rem;
}
.sp-setup-content p,
.sp-panel-header p{
  margin:6px 0 0;
  color:#64748b;
}
.sp-setup-list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.sp-home-step{
  display:flex;
  align-items:center;
  gap:10px;
  color:#334155;
  font-size:.94rem;
}
.sp-home-step span{
  width:26px;
  height:26px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex:0 0 26px;
}
.sp-home-step.done span{
  background:#22c55e;
  color:#fff;
}
.sp-home-step.pending span{
  background:#fff;
  color:#4f46e5;
  border:2px solid #4f46e5;
}
.sp-setup-illustration{
  min-height:145px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.sp-screen-card{
  width:150px;
  height:105px;
  border:5px solid #6d5dfc;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#f4f2ff);
  box-shadow:0 20px 45px rgba(79,70,229,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2.4rem;
  color:#6d5dfc;
  font-weight:900;
  transform:rotate(-2deg);
}
.sp-person-card{
  position:absolute;
  right:20px;
  bottom:-16px;
  font-size:4rem;
  filter:drop-shadow(0 18px 22px rgba(79,70,229,.18));
}
.sp-setup-cta{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  justify-content:center;
}
.sp-gradient-btn{
  width:100%;
  min-height:52px;
  border-radius:12px;
  background:linear-gradient(135deg,#6d5dfc,#4f46e5);
  box-shadow:0 18px 35px rgba(79,70,229,.24);
  font-weight:800;
}
.sp-link-btn{
  border:none;
  background:transparent;
  color:#64748b;
  cursor:pointer;
  font-weight:700;
}
.sp-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(180px,1fr));
  gap:14px;
}
.sp-metric-card{
  position:relative;
  min-height:128px;
  background:#fff;
  border:1px solid #e8eefb;
  border-radius:18px;
  padding:18px 18px 16px;
  display:flex;
  align-items:flex-start;
  gap:16px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  overflow:hidden;
}
.sp-metric-card:after{
  content:"";
  position:absolute;
  inset:auto -30px -35px auto;
  width:105px;
  height:105px;
  border-radius:50%;
  opacity:.12;
}
.sp-metric-card.green:after{background:#22c55e}
.sp-metric-card.blue:after{background:#3b82f6}
.sp-metric-card.purple:after{background:#6d5dfc}
.sp-metric-card.orange:after{background:#f59e0b}
.sp-metric-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.45rem;
  flex:0 0 54px;
}
.sp-metric-card.green .sp-metric-icon{background:#dcfce7}
.sp-metric-card.blue .sp-metric-icon{background:#dbeafe}
.sp-metric-card.purple .sp-metric-icon{background:#ede9fe}
.sp-metric-card.orange .sp-metric-icon{background:#fef3c7}
.sp-metric-card small{
  color:#64748b;
  display:block;
  font-weight:700;
}
.sp-metric-card strong{
  display:block;
  font-size:1.55rem;
  margin:6px 0;
  color:#0f172a;
}
.sp-metric-card em{
  display:block;
  font-style:normal;
  color:#64748b;
  font-size:.88rem;
}
.sp-metric-card b{
  position:absolute;
  right:16px;
  bottom:16px;
  padding:5px 10px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:.78rem;
}
.sp-quick-section{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.sp-quick-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(160px,1fr));
  gap:14px;
}
.sp-quick-card{
  border:1px solid #e8eefb;
  border-radius:18px;
  padding:18px;
  background:#fff;
  display:grid;
  grid-template-columns:54px 1fr;
  grid-template-rows:auto auto;
  column-gap:14px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sp-quick-card:hover{
  transform:translateY(-3px);
  border-color:#c7d2fe;
  box-shadow:0 18px 35px rgba(79,70,229,.12);
}
.sp-quick-card span{
  grid-row:1/3;
  width:54px;
  height:54px;
  border-radius:18px;
  background:#f3f0ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.45rem;
}
.sp-quick-card strong{
  color:#0f172a;
  align-self:end;
}
.sp-quick-card small{
  color:#64748b;
  align-self:start;
}
.sp-home-main-grid,
.sp-home-bottom-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:14px;
}
.sp-home-bottom-grid{
  grid-template-columns:1fr 1fr;
}
.sp-panel-card{
  border:1px solid #e8eefb;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.sp-panel-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.sp-panel-header .btn{
  white-space:nowrap;
  border-radius:10px;
}
.sp-agenda-box,
.sp-activity-list{
  border:1px dashed #cbd5e1;
  border-radius:16px;
  padding:14px;
  min-height:150px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.sp-agenda-box .small,
.sp-empty-state{
  color:#64748b;
  text-align:center;
  padding:30px 12px;
}
.sp-agenda-box .kv,
.sp-activity-list .kv{
  border:1px solid #e8eefb !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.sp-activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.sp-activity-extra{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sp-activity-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px solid #e8eefb;
  border-radius:14px;
  background:#fff;
}
.sp-activity-row strong{
  display:block;
  color:#0f172a;
}
.sp-activity-row small{
  display:block;
  color:#64748b;
  margin-top:2px;
}
.sp-activity-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dcfce7;
}
.sp-activity-icon.pink{
  background:#fce7f3;
}
.sp-tip-bar{
  margin-top:14px;
  padding:14px 16px;
  border-radius:14px;
  background:linear-gradient(90deg,#f0fdf4,#eff6ff);
  color:#166534;
  font-weight:800;
}
.sp-suggestion-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.sp-suggestion-mini{
  padding:14px;
  border:1px solid #e8eefb;
  border-radius:14px;
  background:#fff;
}
.sp-suggestion-mini strong{
  display:block;
  color:#0f172a;
}
.sp-suggestion-mini small{
  display:block;
  color:#64748b;
  margin-top:6px;
}

@media (max-width:1200px){
  .sp-setup-hero{grid-template-columns:130px 1fr;gap:18px}
  .sp-setup-illustration{display:none}
  .sp-setup-cta{grid-column:1 / -1;flex-direction:row}
  .sp-metric-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}
  .sp-quick-grid{grid-template-columns:repeat(2,minmax(170px,1fr))}
  .sp-home-main-grid,.sp-home-bottom-grid{grid-template-columns:1fr}
}
@media (max-width:700px){
  .sp-home-actions-top{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .sp-setup-hero{grid-template-columns:1fr;text-align:left}
  .sp-progress-ring{margin:0}
  .sp-setup-cta{flex-direction:column;align-items:stretch}
  .sp-metric-grid,.sp-quick-grid,.sp-suggestion-row{grid-template-columns:1fr}
  .sp-panel-header{flex-direction:column}
}

/* Dashboard PRO final: alertas y resumen limpio */
.sp-alert-list{display:grid;gap:10px}
.sp-alert-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px;border:1px solid #eef2f7;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfcfe)}
.sp-alert-row span{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:#fef3c7}
.sp-alert-row strong{font-size:14px;color:#0f172a}
.sp-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sp-summary-grid div{padding:14px;border:1px solid #eef2f7;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfcfe)}
.sp-summary-grid strong{display:block;font-size:26px;color:#0f172a;line-height:1}
.sp-summary-grid small{display:block;margin-top:8px;color:#64748b;font-weight:700}
.sp-empty-strong{text-align:center;padding:24px;border:1px dashed #cbd5e1;border-radius:16px;background:#fbfdff;color:#475569}
@media (max-width:700px){.sp-alert-row{grid-template-columns:1fr}.sp-summary-grid{grid-template-columns:1fr}}

/* Studio Pro 3.1.0 - Inicio gerencial premium */
.sp-home-pro{display:grid;gap:18px;padding:2px 0 18px}
.sp-pro-hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:stretch;padding:24px;border:1px solid color-mix(in srgb,var(--accent) 24%,#dbe4f0);border-radius:22px;background:linear-gradient(135deg,var(--sidebar),color-mix(in srgb,var(--sidebar) 82%,var(--accent)));color:#fff;box-shadow:0 20px 55px rgba(15,23,42,.14);overflow:hidden}
.sp-pro-hero-main h1{margin:8px 0 10px;font-size:clamp(2rem,4vw,3.4rem);line-height:1;letter-spacing:0;color:#fff}
.sp-pro-hero-main p{max-width:780px;margin:0;color:#cbd5e1;font-size:1rem;line-height:1.55}
.sp-pro-eyebrow{display:inline-flex;align-items:center;min-height:30px;padding:6px 11px;border:1px solid color-mix(in srgb,var(--accent) 44%,#ffffff);border-radius:999px;background:color-mix(in srgb,var(--accent) 28%,transparent);color:#fff;font-size:.78rem;font-weight:900;text-transform:uppercase}
.sp-pro-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.sp-pro-primary{background:var(--accent)!important;color:#fff!important;border:none!important}
.sp-pro-status-card{display:flex;flex-direction:column;justify-content:center;gap:8px;padding:20px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.08)}
.sp-pro-status-card span,.sp-pro-status-card small{color:#cbd5e1}.sp-pro-status-card strong{color:#fff;font-size:2rem;line-height:1}.sp-pro-progress{height:9px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden;margin-top:6px}.sp-pro-progress i{display:block;height:100%;border-radius:999px;background:var(--accent)}
.sp-pro-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.sp-pro-metrics article{padding:18px;border:1px solid color-mix(in srgb,var(--accent) 14%,#e2e8f0);border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.06)}.sp-pro-metrics small,.sp-pro-metrics span{display:block;color:#64748b;font-weight:700}.sp-pro-metrics strong{display:block;margin:8px 0 6px;color:#0f172a;font-size:1.65rem;line-height:1.1}
.sp-pro-grid,.sp-pro-insights{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.sp-pro-insights{grid-template-columns:repeat(3,minmax(0,1fr))}.sp-pro-card{border:1px solid color-mix(in srgb,var(--accent) 14%,#e2e8f0)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 32px rgba(15,23,42,.06)!important}
.sp-pro-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.sp-pro-card-head span{display:block;color:#64748b;font-size:.78rem;font-weight:900;text-transform:uppercase}.sp-pro-card-head h2{margin:4px 0 0;color:#0f172a;font-size:1.18rem}
.sp-pro-list{display:grid;gap:10px;min-height:150px;padding:12px;border:1px solid color-mix(in srgb,var(--accent) 12%,#e2e8f0);border-radius:16px;background:color-mix(in srgb,var(--bg) 72%,#ffffff)}.sp-pro-list .kv,.sp-pro-list .sp-empty-strong{border:1px solid color-mix(in srgb,var(--accent) 12%,#e2e8f0)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.sp-pro-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.sp-pro-action{padding:18px;border:1px solid color-mix(in srgb,var(--accent) 14%,#e2e8f0);border-radius:16px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 10px 28px rgba(15,23,42,.05);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.sp-pro-action:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 16px 34px color-mix(in srgb,var(--accent) 18%,transparent)}.sp-pro-action strong{display:block;color:#0f172a;font-size:1rem}.sp-pro-action small{display:block;margin-top:5px;color:#64748b;line-height:1.35}
.sp-pro-kv{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e2e8f0}.sp-pro-kv:last-child{border-bottom:none}.sp-pro-kv span{color:#64748b;font-weight:700}.sp-pro-kv strong{color:#0f172a;text-align:right}.sp-home-pro .sp-alert-row{grid-template-columns:1fr auto;background:#f8fafc}.sp-home-pro .sp-alert-row span{display:none}
@media(max-width:1200px){.sp-pro-hero,.sp-pro-grid,.sp-pro-insights{grid-template-columns:1fr}.sp-pro-metrics,.sp-pro-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.sp-pro-hero{padding:18px}.sp-pro-hero-actions{align-items:stretch}.sp-pro-hero-actions .btn{width:100%}.sp-pro-metrics,.sp-pro-actions{grid-template-columns:1fr}.sp-pro-card-head{flex-direction:column}.sp-pro-kv{flex-direction:column}.sp-pro-kv strong{text-align:left}}

@media(max-width:560px){
  .sp-home-pro{gap:12px;padding-bottom:12px}
  .sp-pro-hero{padding:14px;border-radius:16px}
  .sp-pro-hero-main h1{font-size:2rem;line-height:1.05}
  .sp-pro-hero-main p{font-size:.9rem}
  .sp-pro-status-card{padding:14px;border-radius:14px}
  .sp-pro-metrics article,.sp-pro-card,.sp-pro-action{border-radius:14px}
  .sp-pro-metrics strong{font-size:1.35rem}
  .sp-pro-actions{gap:8px}
}

/* Studio Pro Marketing Fase 2 */
.sp-mkt-page{display:grid;gap:18px}
.sp-mkt-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#fff,#f4f0ff)}
.sp-mkt-help{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:900;vertical-align:middle;margin-left:6px;cursor:help}
.sp-mkt-guide{background:linear-gradient(180deg,#fff,#fbfdff)}
.sp-mkt-guide-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.sp-mkt-guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.sp-mkt-guide-grid div{border:1px solid #e4e7ec;border-radius:14px;background:#fff;padding:12px;display:grid;gap:6px}
.sp-mkt-guide-grid span{width:30px;height:30px;border-radius:50%;background:#dcfce7;color:#15803d;display:grid;place-items:center;font-weight:900}
.sp-mkt-guide-grid strong{color:#101828}
.sp-mkt-guide-grid small{color:#667085;line-height:1.35}
.sp-mkt-grid-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.sp-mkt-stat{display:grid;gap:6px}.sp-mkt-stat span{font-size:28px}.sp-mkt-stat small{color:#667085}.sp-mkt-stat strong{font-size:30px}
.sp-mkt-segment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.sp-mkt-segment-card{border:1px solid #e4e7ec;border-radius:16px;background:#fff;padding:14px;text-align:left;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;cursor:pointer;transition:transform .08s ease,box-shadow .08s ease,border-color .08s ease}
.sp-mkt-segment-card:hover{transform:translateY(-2px);border-color:#c7d2fe;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.sp-mkt-segment-card span{width:38px;height:38px;border-radius:14px;background:#eef2ff;color:#3730a3;display:grid;place-items:center;font-weight:900}
.sp-mkt-segment-card strong{color:#101828}
.sp-mkt-segment-card em{font-style:normal;font-size:24px;font-weight:900;color:#0f172a}
.sp-mkt-segment-card small{grid-column:1 / -1;color:#667085;line-height:1.35}
.sp-mkt-reco-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.sp-mkt-reco-card{border:1px solid #e4e7ec;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);padding:14px;text-align:left;display:grid;gap:8px;cursor:pointer;transition:transform .08s ease,box-shadow .08s ease,border-color .08s ease}
.sp-mkt-reco-card:hover{transform:translateY(-2px);border-color:#86efac;box-shadow:0 10px 24px rgba(22,163,74,.12)}
.sp-mkt-reco-card strong{color:#101828}
.sp-mkt-reco-card span{font-size:22px;font-weight:900;color:#15803d}
.sp-mkt-reco-card small{color:#667085;line-height:1.35}
.sp-mkt-template-list{display:grid;gap:8px}
.sp-mkt-template-list div{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e4e7ec;border-radius:12px;padding:10px;background:#fff}
.sp-mkt-template-list strong{color:#101828;font-size:14px}
.sp-mkt-preview-box{border:1px solid #bbf7d0;border-radius:16px;background:linear-gradient(180deg,#f0fdf4,#fff);padding:14px;display:grid;gap:10px}
.sp-mkt-preview-box div{display:flex;justify-content:space-between;gap:12px;align-items:center}
.sp-mkt-preview-box strong{color:#14532d}
.sp-mkt-preview-box small{color:#15803d;font-weight:800}
.sp-mkt-preview-box p{margin:0;background:#fff;border:1px solid #dcfce7;border-radius:12px;padding:12px;color:#1f2937;line-height:1.5;white-space:pre-wrap}
.sp-mkt-automation-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.sp-mkt-rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.sp-mkt-rule{display:flex;align-items:center;gap:10px;border:1px solid #e4e7ec;border-radius:12px;padding:12px;background:#fff;color:#101828;font-weight:800}
.sp-mkt-rule input{width:18px;height:18px;accent-color:#16a34a}
.sp-mkt-main-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}
.sp-mkt-list{display:grid;gap:12px;max-height:460px;overflow:auto;padding-right:4px}
.sp-mkt-message-card,.sp-mkt-recipient-card{border:1px solid #e4e7ec;border-radius:16px;padding:14px;background:#fff;display:grid;gap:10px}
.sp-mkt-message-head,.sp-mkt-message-foot,.sp-mkt-recipient-card{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sp-mkt-message-body{background:#f8fafc;border-radius:12px;padding:12px;color:#344054;line-height:1.45}
.sp-mkt-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.sp-mkt-history-table-wrap{overflow:auto}
.sp-mkt-page .input{width:100%;border:1px solid #d0d5dd;border-radius:12px;padding:12px;background:#fff;font:inherit;color:#101828}
@media(max-width:800px){.sp-mkt-hero,.sp-mkt-message-head,.sp-mkt-message-foot,.sp-mkt-recipient-card,.sp-mkt-automation-head,.sp-mkt-guide-head{align-items:flex-start;flex-direction:column}.sp-mkt-actions{justify-content:flex-start}}

@media(max-width:560px){
  .sp-mkt-page{gap:12px}
  .sp-mkt-hero{padding:12px}
  .sp-mkt-grid-stats,
  .sp-mkt-guide-grid,
  .sp-mkt-segment-grid,
  .sp-mkt-reco-grid,
  .sp-mkt-rule-grid,
  .sp-mkt-main-grid{grid-template-columns:1fr !important}
  .sp-mkt-segment-card{grid-template-columns:auto 1fr}
  .sp-mkt-segment-card em{grid-column:1 / -1;font-size:22px}
  .sp-mkt-template-list div,
  .sp-mkt-preview-box div{align-items:flex-start;flex-direction:column}
  .sp-mkt-list{max-height:none}
}

/* Studio Pro 3.1.14 - Demo web comercial */
.demo-cta-bar{
  position:sticky;
  top:0;
  z-index:25;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 16px;
  border-bottom:1px solid color-mix(in srgb,var(--accent) 20%,#dbe4f0);
  background:linear-gradient(90deg,#ffffff,color-mix(in srgb,var(--accent) 8%,#ffffff));
  box-shadow:0 10px 28px rgba(15,23,42,.08);
}
.demo-cta-copy{display:grid;gap:2px;min-width:260px}
.demo-cta-copy strong{color:#0f172a;font-size:15px}
.demo-cta-copy span{color:#52637a;font-size:12px;font-weight:700;line-height:1.35}
.demo-cta-copy b{color:var(--accent)}
.demo-cta-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.demo-cta-actions .btn,
.demo-access-actions .btn,
.demo-expired-actions .btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.demo-cta-actions .btn{padding:8px 12px;min-height:36px;white-space:nowrap}
.demo-access-card{max-width:560px}
.demo-access-grid{display:grid;gap:10px;margin-top:14px}
.demo-access-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;flex-wrap:wrap}
.demo-expired-card{max-width:560px}
.demo-expired-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap}
.sp-floating-chat{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 15px;
  border-radius:999px;
  background:#25d366;
  color:#062b16;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 18px 38px rgba(0,0,0,.24);
}
.sp-floating-chat svg{
  width:20px;
  height:20px;
  flex:0 0 auto;
  fill:currentColor;
}
.sp-demo-guide{
  padding:18px;
  border-color:#c7d2fe;
  background:linear-gradient(135deg,#ffffff,#f8fbff);
}
.sp-demo-guide-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.sp-demo-guide-head span{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#4f46e5;
  font-size:12px;
  font-weight:900;
}
.sp-demo-guide-head h2{
  margin:8px 0 6px;
  color:#101828;
  font-size:24px;
}
.sp-demo-guide-head p{
  margin:0;
  max-width:760px;
  color:#52637a;
  line-height:1.45;
}
.sp-demo-guide-steps{
  display:grid;
  grid-template-columns:repeat(5,minmax(150px,1fr));
  gap:10px;
}
.sp-demo-step{
  display:grid;
  gap:8px;
  text-align:left;
  border:1px solid #dbe4f0;
  border-radius:16px;
  padding:14px;
  background:#fff;
  color:#101828;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.sp-demo-step b{
  display:inline-flex;
  width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#4f46e5;
  color:#fff;
}
.sp-demo-step strong{
  font-size:15px;
}
.sp-demo-step small{
  color:#52637a;
  line-height:1.4;
}
.sp-demo-step:hover{
  border-color:#a5b4fc;
  transform:translateY(-1px);
}
@media(max-width:820px){
  .demo-cta-bar{align-items:flex-start;flex-direction:column;padding:10px 12px}
  .demo-cta-actions{justify-content:flex-start;width:100%}
  .demo-cta-actions .btn{flex:1 1 140px;justify-content:center}
}
@media(max-width:520px){
  .demo-cta-copy{min-width:0}
  .demo-cta-actions{display:grid;grid-template-columns:1fr 1fr}
  .demo-cta-actions .btn{width:100%;font-size:13px;padding:8px}
  .demo-access-actions,
  .demo-expired-actions{align-items:stretch;flex-direction:column}
  .demo-access-actions .btn,
  .demo-expired-actions .btn{width:100%;justify-content:center}
  .sp-demo-guide-head{
    flex-direction:column;
  }
  .sp-demo-guide-head .btn{
    width:100%;
  }
  .sp-demo-guide-steps{
    grid-template-columns:1fr;
  }
  .sp-floating-chat{
    right:12px;
    bottom:12px;
    padding:12px;
  }
  .sp-floating-chat span{
    display:none;
  }
}
