/* Embedded Signup Panels - glass tabs, indicator, ripple, responsive select, staggered entry */
.tabs-bar {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 12px 30px rgba(2,6,23,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 18px;
  transition: all .28s ease;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s;
  position: relative;
  overflow: hidden;
}

.tab-btn:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(1,69,77,0.12);
}

.tab-btn:hover { transform: translateY(-4px); }

.tab-btn.is-active {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #01454f;
  box-shadow: 0 12px 30px rgba(1,69,77,0.08);
}

/* Ripple */
.tab-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(1,69,77,0.12);
  transform: scale(0);
  pointer-events: none;
  animation: ripple .56s ease-out;
}
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}

.tabs-indicator {
  position: absolute;
  bottom: 8px;
  left: var(--indicator-left, 50px);
  width: var(--indicator-width, 40px);
  height: 5px;
  background: linear-gradient(90deg, #01454f, #0097a7);
  border-radius: 6px;
  transform: translateX(-50%);
  transition: left .32s cubic-bezier(.2,.9,.2,1), width .32s cubic-bezier(.2,.9,.2,1), opacity .28s;
  box-shadow: 0 8px 24px rgba(1,69,77,0.12);
  pointer-events: none;
}

.panels {
  position: relative;
  width: 100%;
  min-height: 640px;
  display: flex;
  align-items: stretch;
}
.panel {
  display: none;
  width: 100%;
  min-height: 640px;
  padding: 1.4rem 1.25rem 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 50px rgba(2, 20, 30, 0.08), inset 0 1px 0 rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition: opacity .38s ease, transform .38s cubic-bezier(.2,.9,.2,1), box-shadow .38s ease;
  overflow: hidden;
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.03));
  pointer-events: none;
}
.panel.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.panel > * {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .36s ease, transform .36s ease;
}
.panel.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.panel.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.panel.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.panel.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.panel.is-visible > *:nth-child(4) { transition-delay: 0.16s; }
.panel.is-visible > *:nth-child(5) { transition-delay: 0.20s; }
.panel.is-visible > *:nth-child(6) { transition-delay: 0.24s; }

.panel h1,
.panel h2,
.panel h3 {
  color: #01454f;
  letter-spacing: -0.02em;
}
.panel .subtitle {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

/* responsive: show select in narrow view */
.tabs-select {
  display: none;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.9);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .tabs-bar { display: none; }
  .tabs-select { display: block; }
  .tabs-indicator { display: none; }
}

/* Layout variants kept to Split View and Segmented */
.layout-split #embedded-root {
  display:flex;
  gap:20px;
  align-items:flex-start;
}
.layout-split .tabs-bar {
  width: 280px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 12px;
}
.layout-split .tabs-bar .tab-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 14px;
}
.layout-split .panels {
  flex: 1;
  min-height: 640px;
}

.layout-segmented .tabs-bar {
  border-radius: 999px;
  padding:6px;
  display:flex;
  justify-content:center;
  gap:6px;
}
.layout-segmented .tab-btn {
  border-radius:999px;
  padding:8px 16px;
}

/* Active states for layout selector */
.layout-selector { margin-bottom: 14px; }
.layout-btn { background: transparent; border: 1px solid rgba(15,23,42,0.06); padding:6px 10px; border-radius:8px; cursor:pointer }
.layout-btn.is-active { background: linear-gradient(90deg,#e6fffc,#f0f9ff); border-color: rgba(1,69,77,0.12); box-shadow: 0 8px 20px rgba(1,69,77,0.06) }

@media (max-width:720px) {
  .layout-selector { gap:6px; }
}

/* Refined animations */
.panel { will-change: opacity, transform }
.tabs-bar, .layout-selector { will-change: transform, opacity }

/* Users list */
.users-list { display:flex; flex-direction:column; gap:12px; margin-top:12px }
.user-row { display:flex; align-items:center; gap:12px; padding:10px; border-radius:10px; background: linear-gradient(180deg,#fff,#fbfeff); box-shadow: 0 6px 18px rgba(2,6,23,0.04) }
.avatar { width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e6fffb;color:#01454f;font-weight:800 }
.user-info { display:flex; flex-direction:column }
.user-info .role { font-size:0.9rem; color:#01636a }
.user-info .email { font-size:0.8rem; color:#667085 }

/* Schedule cards */
.schedule-grid { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px }
.schedule-card {
  width: 160px;
  padding: 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(240,250,252,0.8));
  border: 1px solid rgba(1,69,77,0.08);
  box-shadow: 0 10px 24px rgba(2,6,23,0.04);
}

.schedule-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: #465264;
  font-size: 0.85rem;
}

.user-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(246,251,253,0.8));
  border: 1px solid rgba(1,69,77,0.08);
  box-shadow: 0 10px 20px rgba(2,6,23,0.04);
}

.Actions or .actions class may need clearer styling:
.actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn.btn-sm {
  border: 1px solid rgba(1,69,77,0.1);
  background: rgba(255,255,255,0.85);
  color: #01454f;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tab-btn, .panel, .step-item, .tabs-indicator, .sub-menu { transition: none !important; animation: none !important }
}

/* Workspace navigation: a calmer alternative to tabs */
#embedded-root {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  text-align: left;
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  padding: 1.35rem 0.9rem 1rem;
  background: #073b42;
  color: #e8fbf7;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(1, 70, 81, 0.18);
}

.workspace-kicker {
  padding: 0 0.85rem;
  color: #8ed9c9;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.workspace-title {
  margin: 0.45rem 0 0.3rem;
  padding: 0 0.85rem;
  color: #ffffff;
  font-size: 1.35rem;
}

.workspace-intro {
  margin: 0 0 1.3rem;
  padding: 0 0.85rem;
  color: #b7d7d2;
  font-size: 0.82rem;
  line-height: 1.5;
}

.workspace-links {
  display: grid;
  gap: 0.45rem;
}

.panel-nav-btn {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #c4e1dc;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.panel-nav-btn:hover,
.panel-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  outline: none;
}

.panel-nav-btn.is-active {
  background: #f4fbf8;
  color: #073b42;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.panel-nav-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(142, 217, 201, 0.14);
  color: #8ed9c9;
  font-size: 1.05rem;
}

.panel-nav-btn.is-active .panel-nav-icon {
  background: #d5f3eb;
  color: #087f75;
}

.panel-nav-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.panel-nav-copy strong { font-size: 0.86rem; }
.panel-nav-copy small { color: #8fb8b2; font-size: 0.68rem; }
.panel-nav-btn.is-active .panel-nav-copy small { color: #54817b; }
.panel-nav-arrow { opacity: 0.55; font-size: 1.1rem; }
.panel-nav-btn.is-active .panel-nav-arrow { opacity: 1; color: #087f75; }

.workspace-nav-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: auto 0.85rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8ed9c9;
  font-size: 0.72rem;
}

#embedded-root > .panels { min-width: 0; }
#embedded-root > .panels .panel { border-radius: 22px; text-align: center; }

@media (max-width: 760px) {
  #embedded-root { grid-template-columns: 1fr; gap: 14px; }
  .workspace-nav { min-height: 0; padding: 1rem; }
  .workspace-title, .workspace-intro, .workspace-kicker { padding-left: 0; padding-right: 0; }
  .workspace-intro { margin-bottom: 0.8rem; }
  .workspace-links { grid-template-columns: repeat(5, 1fr); }
  .panel-nav-btn { display: flex; justify-content: center; padding: 0.65rem 0.35rem; }
  .panel-nav-copy, .panel-nav-arrow, .workspace-nav-footer { display: none; }
  .panel-nav-icon { flex: 0 0 38px; }
  #embedded-root > .panels, #embedded-root > .panels .panel { min-height: 560px; }
}

.automation-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 900px; margin: 0 auto 1.5rem; padding: 1.15rem 1.25rem; border: 1px solid rgba(255,255,255,.78); border-radius: 18px; background: linear-gradient(115deg, rgba(255,255,255,.78), rgba(216,246,239,.42)); box-shadow: 0 16px 35px rgba(1,70,81,.08); text-align: left; }
.automation-panel-header h2 { margin: .18rem 0 .25rem; color: #164f54; font-size: 1.45rem; }
.automation-panel-header .subtitle { margin: 0; color: #67827f; font-size: .82rem; }
.automation-panel-controls { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.automation-rules-card { max-width: 900px; margin: 0 auto; padding: 1.35rem; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(235,249,245,.58)); box-shadow: 0 18px 38px rgba(1,70,81,.08), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); text-align: left; }
.automation-rules-card h5 { color: #014651 !important; }
.automation-rules-card .small { color: #67827f !important; }
.automation-rules-card #regrasList { display: grid; gap: .7rem; }
.automation-rules-card .regra-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin: 0; padding: .9rem 1rem; border: 1px solid rgba(185,227,215,.72); border-radius: 13px; background: rgba(255,255,255,.72); box-shadow: 0 8px 18px rgba(1,70,81,.05), inset 0 1px 0 rgba(255,255,255,.88); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.automation-rules-card .regra-item:hover { transform: translateY(-2px); border-color: #9bc9c0; box-shadow: 0 12px 24px rgba(1,70,81,.09), inset 0 1px 0 rgba(255,255,255,.95); }
.automation-rules-card .regra-item.inativa { background: rgba(244,248,247,.68); }
.automation-rules-card .regra-frase { min-width: 0; color: #376b69; font-size: .78rem; line-height: 1.45; }
.automation-rules-card .regra-frase > .small { display: block; overflow: hidden; color: #164f54 !important; font-size: .84rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.automation-rules-card .regra-actions { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.automation-rules-card .regra-actions .form-switch { margin: 0 .2rem 0 0; padding-left: 2.2em; }
.automation-rules-card .regra-actions .form-check-input { margin-top: .1rem; }
.automation-rules-card .regra-actions .btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; font-size: .78rem; }
.automation-rules-card .regra-actions .btn-outline-primary { color: #087f75; border-color: #a8d2c9; }
.automation-rules-card .regra-actions .btn-outline-primary:hover { background: #eaf6f2; color: #05665f; border-color: #087f75; }
.automation-rules-card .regra-actions .btn-outline-secondary { color: #527572; border-color: #c7ddda; }
.automation-rules-card .regra-actions .btn-outline-danger { color: #ad5c5c; border-color: #ebcaca; }
.automation-rules-card .regra-actions .btn-outline-danger:hover { background: #fff3f3; border-color: #c97878; }
.automation-rules-card .menu-badge { border: 1px solid #b9e3d7; background: rgba(233,255,248,.78); color: #087f75; font-size: .66rem; font-weight: 700; }
.automation-rules-card #regrasList > .hint { margin: 0; padding: 1.2rem; border: 1px dashed #b9d8d2; border-radius: 12px; background: rgba(255,255,255,.48); color: #78918e !important; text-align: center; }
.automation-panel-header .form-check-label { color: #376b69; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.automation-panel-header .form-check-input:checked { background-color: #087f75; border-color: #087f75; }
.automation-panel-header .btn { border-radius: 9px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.automation-panel-header .btn-primary { background: #087f75; border-color: #087f75; }
.automation-panel-header .btn-primary:hover { background: #05665f; border-color: #05665f; }
.automation-panel-header + #loading { max-width: 900px; margin: 0 auto; }
.automation-panel-header + #loading .text-muted { color: #67827f !important; }
.embedded-automation-modal { z-index: 2000; }
.modal-backdrop { z-index: 1990 !important; }
.embedded-automation-modal .modal-dialog { max-height: calc(100dvh - 2rem); margin: 1rem auto; }
.embedded-automation-modal .modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 56px rgba(1,70,81,.16); }
.embedded-automation-modal .modal-header { border-bottom-color: #e5efed; }
.embedded-automation-modal .modal-title { color: #164f54; font-weight: 700; }
.embedded-automation-modal .section-box { padding: 1rem; margin-bottom: 1rem; border: 1px solid #dcebea; border-radius: 14px; background: #f8fcfb; }
.embedded-automation-modal .section-box h6 { color: #087f75; font-weight: 800; }
.embedded-automation-modal .form-label,
.embedded-automation-modal .form-check-label { color: #376b69; font-size: .78rem; font-weight: 700; }
.embedded-automation-modal .form-control { border-color: #cfe1df; color: #164f54; }
.embedded-automation-modal .form-control:focus { border-color: #087f75; box-shadow: 0 0 0 3px rgba(8,127,117,.12); }
.embedded-automation-modal .rule-modal-resumo { padding: 1rem 1.25rem; border-top: 1px solid #e5efed; background: #f8fcfb; }
.embedded-automation-modal .review-box { padding: .8rem; border: 1px dashed #9bc9c0; border-radius: 10px; background: #eef8f5; color: #164f54; }
.embedded-automation-modal .modal-content { max-height: calc(100dvh - 2rem); overflow: hidden; background: rgba(255,255,255,.94); }
.embedded-automation-modal .modal-body { background: linear-gradient(135deg, rgba(248,253,252,.98), rgba(239,249,247,.9)); }
.embedded-automation-modal .rule-modal-body { max-height: calc(100dvh - 13rem); overflow-y: auto; }
.embedded-automation-modal .modal-footer { border-top-color: #e5efed; background: rgba(255,255,255,.96); }
.embedded-automation-modal .section-box { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(8,127,117,.04); }
.embedded-automation-modal .section-box h6 { display: flex; align-items: center; gap: .25rem; margin-bottom: .85rem; font-size: .86rem; }
.embedded-automation-modal .pick-card { margin-bottom: .65rem; border: 1px solid #d5e8e4; border-radius: 13px; background: rgba(255,255,255,.72); box-shadow: 0 8px 18px rgba(8,127,117,.05); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; overflow: hidden; }
.embedded-automation-modal .pick-card:hover { border-color: #8ecabd; background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: 0 11px 22px rgba(8,127,117,.08); }
.embedded-automation-modal .pick-card.selected { border-color: #087f75; background: linear-gradient(135deg, rgba(233,251,245,.96), rgba(242,251,250,.92)); box-shadow: inset 0 0 0 1px rgba(8,127,117,.18), 0 11px 24px rgba(8,127,117,.1); }
.embedded-automation-modal .pick-card-header { padding: .78rem .9rem; }
.embedded-automation-modal .pick-card.selected .pick-card-header { padding-bottom: .55rem; }
.embedded-automation-modal .pick-title { color: #164f54; font-size: .82rem; font-weight: 800; line-height: 1.35; }
.embedded-automation-modal .pick-card.selected .pick-title { color: #087f75; }
.embedded-automation-modal .pick-card-expand { padding: .8rem .9rem .9rem; border-top: 1px solid rgba(8,127,117,.12); background: rgba(255,255,255,.44); cursor: default; }
.embedded-automation-modal .chip-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.embedded-automation-modal .chip-toggle { display: inline-flex; align-items: center; min-height: 32px; padding: .35rem .7rem; border: 1px solid #cfe3df; border-radius: 999px; background: rgba(255,255,255,.8); color: #376b69; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.embedded-automation-modal .chip-toggle:hover { border-color: #087f75; color: #087f75; transform: translateY(-1px); }
.embedded-automation-modal .chip-toggle.selected { border-color: #087f75; background: linear-gradient(135deg, #087f75, #2b9d8f); color: #fff; box-shadow: 0 5px 12px rgba(8,127,117,.2); }
.embedded-automation-modal .form-control,
.embedded-automation-modal .form-select { min-height: 40px; border-radius: 9px; background-color: rgba(255,255,255,.86); font-size: .82rem; }
.embedded-automation-modal textarea.form-control { min-height: 76px; resize: vertical; }
.embedded-automation-modal .form-control::placeholder { color: #9bb1ae; }
.embedded-automation-modal .hint { color: #78918e !important; font-size: .7rem; line-height: 1.45; }
.embedded-automation-modal .menu-col-head { margin: .7rem 0 .35rem; color: #78918e; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.embedded-automation-modal #opcoesMenuContainer > .border { border: 1px solid #d5e8e4 !important; border-radius: 11px !important; background: rgba(255,255,255,.78) !important; box-shadow: 0 6px 14px rgba(8,127,117,.04); }
.embedded-automation-modal #opcoesMenuContainer code { display: inline-block; padding: .25rem .4rem; border-radius: 6px; background: #eaf6f2; color: #087f75; font-size: .66rem; font-weight: 700; }
.embedded-automation-modal .form-control-sm,
.embedded-automation-modal .form-select-sm { min-height: 34px; padding: .35rem .55rem; border-radius: 7px; font-size: .72rem; }
.embedded-automation-modal .opcao-acao-row { margin-top: .65rem; padding-top: .65rem; border-top: 1px dashed #cfe3df; }
.embedded-automation-modal .opcao-acao-label { margin-bottom: .45rem; color: #087f75; font-size: .68rem; font-weight: 800; }
.embedded-automation-modal .btn-outline-primary,
.embedded-automation-modal .btn-outline-secondary,
.embedded-automation-modal .btn-outline-danger,
.embedded-automation-modal .btn-success,
.embedded-automation-modal .btn-warning { border-radius: 8px; font-size: .72rem; font-weight: 700; }
.embedded-automation-modal .btn-outline-primary { color: #087f75; border-color: #9bc9c0; }
.embedded-automation-modal .btn-outline-primary:hover { background: #eaf6f2; color: #05665f; border-color: #087f75; }
.embedded-automation-modal .btn-success { background: #087f75; border-color: #087f75; }
.embedded-automation-modal .btn-success:hover { background: #05665f; border-color: #05665f; }
.embedded-automation-modal .form-check-input { border-color: #b8d5cf; }
.embedded-automation-modal .form-check-input:checked { background-color: #087f75; border-color: #087f75; }
.embedded-automation-modal .form-check-input:focus { border-color: #087f75; box-shadow: 0 0 0 3px rgba(8,127,117,.12); }

@media (max-width: 640px) {
  .automation-panel-header { align-items: stretch; flex-direction: column; }
  .automation-panel-controls { align-items: stretch; flex-direction: column; gap: .7rem; }
  .automation-panel-controls .form-check { display: flex; align-items: center; gap: .5rem; }
  .automation-panel-header .btn { justify-content: center; width: 100%; }
}

.schedule-layout { display: grid; gap: 1.25rem; max-width: 980px; margin: 2rem auto 0; text-align: left; }
.schedule-section { padding: 1.35rem; border: 1px solid #dcebea; border-radius: 16px; background: rgba(255,255,255,0.72); box-shadow: 0 10px 24px rgba(2,20,30,0.05); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h3 { margin: 0.18rem 0 0; font-size: 1.1rem; }
.section-eyebrow { color: #087f75; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; }
.schedule-days { display: grid; gap: 0.5rem; }
.schedule-day { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(270px, 1.1fr) 58px; align-items: center; gap: 1rem; padding: 0.75rem; border: 1px solid #e4eeee; border-radius: 12px; background: #fbfefd; }
.day-toggle { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.schedule-day-toggle { position: absolute; opacity: 0; pointer-events: none; }
.day-switch { width: 34px; height: 20px; border-radius: 999px; background: #bfd1d0; position: relative; transition: background .2s ease; }
.day-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.schedule-day-toggle:checked + .day-switch { background: #087f75; }
.schedule-day-toggle:checked + .day-switch::after { transform: translateX(14px); }
.day-name { display: grid; gap: 0.15rem; }
.day-name strong { color: #164f54; font-size: 0.88rem; }
.day-name small { color: #8aa6a3; font-size: 0.62rem; letter-spacing: .12em; }
.day-hours { display: flex; align-items: end; gap: 0.65rem; }
.schedule-field { display: grid; gap: 0.35rem; flex: 1; color: #63817e; font-size: 0.68rem; font-weight: 700; }
.schedule-time, #holiday-date, #holiday-name { width: 100%; min-height: 38px; padding: 0.5rem 0.65rem; border: 1px solid #cfe1df; border-radius: 9px; background: #fff; color: #164f54; font: inherit; font-size: 0.86rem; }
.schedule-time:focus, #holiday-date:focus, #holiday-name:focus { outline: 2px solid rgba(8,127,117,.2); border-color: #087f75; }
.time-separator { padding-bottom: 0.65rem; color: #9ab1af; font-size: 0.75rem; }
.day-closed { display: none; color: #9a6969; font-size: 0.72rem; font-weight: 700; text-align: right; }
.schedule-day:not(:has(.schedule-day-toggle:checked)) .day-hours { opacity: .4; pointer-events: none; }
.schedule-day:not(:has(.schedule-day-toggle:checked)) .day-closed { display: block; }
.schedule-save-btn, .schedule-add-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 38px; padding: .55rem .8rem; border: 0; border-radius: 9px; background: #087f75; color: #fff; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; }
.schedule-save-btn:hover, .schedule-add-btn:hover { background: #05665f; }
.section-description { margin: -.35rem 0 1rem; color: #67827f; font-size: .8rem; line-height: 1.5; }
.holiday-form { display: grid; grid-template-columns: 150px minmax(180px, 1fr) auto; align-items: end; gap: .75rem; }
.holiday-form .schedule-field { min-width: 0; }
.holiday-list { display: grid; gap: .5rem; margin-top: 1rem; }
.holiday-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-radius: 10px; background: #f5faf9; border: 1px solid #dcebea; }
.holiday-item-info { display: grid; gap: .15rem; }
.holiday-item-info strong { color: #164f54; font-size: .84rem; }
.holiday-item-info span { color: #78918e; font-size: .72rem; }
.holiday-remove { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #fff0f0; color: #b34f4f; cursor: pointer; }
.holiday-empty { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .85rem; border: 1px dashed #cfe1df; border-radius: 10px; color: #78918e; font-size: .78rem; }
.holiday-empty i { color: #087f75; font-size: 1rem; }
.holiday-count { color: #78918e; font-size: .7rem; }

@media (max-width: 640px) {
  .schedule-day { grid-template-columns: 1fr auto; gap: .7rem; }
  .day-hours { grid-column: 1 / -1; }
  .day-closed { grid-column: 2; grid-row: 1; }
  .holiday-form { grid-template-columns: 1fr 1fr; }
  .holiday-name-field { grid-column: 1 / -1; }
  .holiday-form .schedule-add-btn { grid-column: 1 / -1; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

.users-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 900px; margin: 2rem auto 1rem; padding: 1rem 1.1rem; border: 1px solid #dcebea; border-radius: 14px; background: rgba(255,255,255,.72); text-align: left; }
.users-summary { display: flex; align-items: center; gap: .7rem; }
.users-summary-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #d5f3eb; color: #087f75; font-size: 1.1rem; }
.users-summary div { display: grid; gap: .15rem; }
.users-summary strong { color: #164f54; font-size: .86rem; }
.users-summary small { color: #78918e; font-size: .7rem; }
.user-add-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .55rem .8rem; border: 0; border-radius: 9px; background: #087f75; color: #fff; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; }
.user-add-btn:hover, .user-submit-btn:hover { background: #05665f; }
.users-list { max-width: 900px; margin: 0 auto; }
.user-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: .8rem; padding: .85rem 1rem; }
.user-row.is-disabled { opacity: .62; }
.user-info strong { color: #164f54; font-size: .88rem; }
.user-info .role { font-size: .72rem; color: #087f75; }
.user-info .email { font-size: .74rem; color: #78918e; }
.user-status { display: inline-flex; align-items: center; gap: .35rem; color: #27785d; font-size: .7rem; font-weight: 700; }
.user-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #39a96b; }
.user-status.is-disabled { color: #9a6969; }
.user-status.is-disabled::before { background: #b9a1a1; }
.user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.user-action-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .42rem .6rem; border: 1px solid #d5e5e3; border-radius: 8px; background: #fff; color: #376b69; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 700; }
.user-action-btn:hover { border-color: #087f75; color: #087f75; }
.user-action-btn.danger { color: #a45454; border-color: #efd9d9; }
.user-action-btn.danger:hover { border-color: #c56a6a; background: #fff5f5; }
.users-empty { display: none; flex-direction: column; align-items: center; gap: .35rem; max-width: 900px; margin: 1rem auto; padding: 2rem; border: 1px dashed #cfe1df; border-radius: 14px; color: #78918e; font-size: .8rem; }
.users-empty i { color: #087f75; font-size: 1.5rem; }
.users-empty strong { color: #164f54; font-size: .9rem; }
.user-modal { position: fixed; inset: 0; z-index: 10010; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(1,32,35,.56); backdrop-filter: blur(5px); }
.user-modal.is-visible { display: flex; }
.user-modal { overflow-y: auto; }
.user-modal-card { position: relative; width: min(100%, 500px); padding: 1.6rem; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.2); text-align: left; }
.user-modal-card { max-height: calc(100dvh - 2rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #9bc9c0 transparent; }
.user-modal-card::-webkit-scrollbar { width: 7px; }
.user-modal-card::-webkit-scrollbar-thumb { border-radius: 999px; background: #9bc9c0; }
.user-modal-card h3 { margin: .25rem 0 .35rem; color: #164f54; font-size: 1.3rem; }
.user-modal-description { margin: 0 0 1.2rem; color: #67827f; font-size: .82rem; line-height: 1.5; }
.user-modal-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f1f7f6; color: #376b69; cursor: pointer; }
.user-modal-card #user-form { display: grid; gap: .8rem; margin-top: 1.1rem; }
.user-modal-card #user-form > .schedule-field { gap: .4rem; }
.user-modal-card #user-form > .schedule-field > span,
.user-modal-card #user-form .schedule-field > span { color: #376b69; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.user-modal-card #user-name,
.user-modal-card #user-email,
.user-modal-card #user-role,
.user-modal-card #user-password { display: block; width: 100%; min-height: 44px; padding: .72rem .8rem; border: 1px solid #cfe1df; border-radius: 10px; background: #fbfefd; color: #164f54; font: inherit; font-size: .86rem; line-height: 1.4; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.user-modal-card #user-name::placeholder,
.user-modal-card #user-email::placeholder,
.user-modal-card #user-password::placeholder { color: #9bb1ae; }
.user-modal-card #user-name:focus,
.user-modal-card #user-email:focus,
.user-modal-card #user-role:focus,
.user-modal-card #user-password:focus { outline: none; border-color: #087f75; background: #fff; box-shadow: 0 0 0 3px rgba(8,127,117,.12); }
.user-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.user-modal-card #user-form > .schedule-field { margin-bottom: .75rem; }
.user-modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; }
.user-cancel-btn, .user-submit-btn { min-height: 38px; padding: .55rem .85rem; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; }
.user-cancel-btn { background: #eef4f3; color: #376b69; }
.user-submit-btn { display: inline-flex; align-items: center; gap: .4rem; background: #087f75; color: #fff; }
body:has(.user-modal.is-visible) { overflow: hidden; }

@media (max-width: 640px) {
  .users-toolbar { align-items: stretch; flex-direction: column; }
  .user-add-btn { justify-content: center; }
  .user-row { grid-template-columns: 42px minmax(0, 1fr); }
  .user-status, .user-actions { grid-column: 2; justify-content: flex-start; }
  .user-form-grid { grid-template-columns: 1fr; }
}

.sector-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; max-width: 900px; margin: 0 auto; text-align: left; }
.sector-card { padding: 1rem; border: 1px solid #dcebea; border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 10px 22px rgba(2,20,30,.05); }
.sector-card-heading { display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; align-items: center; gap: .7rem; }
.sector-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #d5f3eb; color: #087f75; }
.sector-card-title { display: grid; gap: .15rem; min-width: 0; }
.sector-card-title strong { color: #164f54; font-size: .9rem; }
.sector-card-title small { overflow: hidden; color: #78918e; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.sector-card-actions { display: flex; gap: .35rem; }
.sector-edit, .sector-remove { width: 30px; height: 30px; border: 0; border-radius: 8px; cursor: pointer; }
.sector-edit { background: #eef5ff; color: #52709b; }
.sector-remove { background: #fff0f0; color: #a45454; }
.sector-members { display: flex; flex-wrap: wrap; gap: .35rem; margin: .85rem 0 0 3rem; }
.sector-member, .sector-no-members { padding: .3rem .5rem; border-radius: 6px; background: #f0f8f6; color: #47726e; font-size: .68rem; }
.sector-no-members { background: #f7f8f8; color: #91a4a2; }
.sector-members-label { display: block; margin: .9rem 0 .5rem; color: #63817e; font-size: .68rem; font-weight: 700; }
.sector-user-options { display: grid; gap: .45rem; max-height: 180px; overflow-y: auto; padding: .5rem; border: 1px solid #dcebea; border-radius: 10px; background: #f8fcfb; }
.sector-template-options { display: grid; gap: .45rem; max-height: 180px; overflow-y: auto; padding: .5rem; border: 1px solid #dcebea; border-radius: 10px; background: #f8fcfb; }
.sector-template-options .sector-user-option input { accent-color: #087f75; }
.sector-template-list { margin-top: .45rem; }
.template-member { background: #eef5ff; color: #52709b; }
.user-modal-card #sector-form { display: grid; gap: .8rem; margin-top: 1.1rem; }
.user-modal-card #sector-form > .schedule-field { gap: .4rem; }
.user-modal-card #sector-form > .schedule-field > span { color: #376b69; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.user-modal-card #sector-name,
.user-modal-card #sector-description { display: block; width: 100%; padding: .72rem .8rem; border: 1px solid #cfe1df; border-radius: 10px; background: #fbfefd; color: #164f54; font: inherit; font-size: .86rem; line-height: 1.4; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.user-modal-card #sector-name { min-height: 44px; }
.user-modal-card #sector-description { min-height: 82px; resize: vertical; }
.user-modal-card #sector-name::placeholder,
.user-modal-card #sector-description::placeholder { color: #9bb1ae; }
.user-modal-card #sector-name:focus,
.user-modal-card #sector-description:focus { outline: none; border-color: #087f75; background: #fff; box-shadow: 0 0 0 3px rgba(8,127,117,.12); }
.user-modal-card #sector-form .user-modal-actions { margin-top: .3rem; }
.user-modal-card #sector-form .user-modal-actions { position: sticky; bottom: -1.6rem; margin-right: -1.6rem; margin-left: -1.6rem; margin-bottom: -1.6rem; padding: .9rem 1.6rem 1.1rem; background: rgba(255,255,255,.96); border-top: 1px solid #e5efed; }
.sector-user-option { display: flex; align-items: center; gap: .55rem; padding: .45rem; border-radius: 7px; cursor: pointer; }
.sector-user-option:hover { background: #eaf6f2; }
.sector-user-option input { accent-color: #087f75; }
.sector-user-option span { display: grid; gap: .1rem; }
.sector-user-option strong { color: #164f54; font-size: .78rem; }
.sector-user-option small { color: #78918e; font-size: .67rem; }

/* Premium WhatsApp configuration surface */
#panel-embed { padding: 1.6rem; background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(231,249,245,.28)); }
.whatsapp-hero { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 1rem; max-width: 900px; margin: 0 auto 1.5rem; padding: 1rem 1.15rem; border: 1px solid rgba(255,255,255,.78); border-radius: 18px; background: linear-gradient(115deg, rgba(255,255,255,.72), rgba(216,246,239,.38)); box-shadow: 0 16px 35px rgba(1,70,81,.08), inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.whatsapp-hero-mark { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 19px; background: #087f75; color: #e9fff8; font-size: 2rem; box-shadow: 0 10px 24px rgba(8,127,117,.28), inset 0 1px 0 rgba(255,255,255,.3); }
.whatsapp-hero-copy { text-align: left; }
.whatsapp-hero-copy h1 { margin: .18rem 0 .25rem; color: #164f54; font-size: 1.55rem; letter-spacing: -.03em; }
.whatsapp-hero-copy .subtitle { margin: 0; color: #67827f; font-size: .82rem; }
.whatsapp-hero-status { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .65rem; border: 1px solid #b9e3d7; border-radius: 999px; background: rgba(233,255,248,.75); color: #087f75; font-size: .7rem; font-weight: 800; }
.whatsapp-hero-status i { font-size: .85rem; }
.whatsapp-setup-card { max-width: 620px; margin: 0 auto; padding: 1.5rem; border: 1px solid rgba(255,255,255,.84); border-radius: 20px; background: rgba(255,255,255,.54); box-shadow: 0 18px 50px rgba(1,70,81,.1), inset 0 1px 0 rgba(255,255,255,.94); backdrop-filter: blur(22px); }
.setup-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; text-align: left; }
.setup-card-heading h2 { margin: .18rem 0 0; color: #164f54; font-size: 1.05rem; }
.setup-step { padding-top: .15rem; color: #7da29d; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.setup-description { max-width: 480px; margin: .7rem 0 1.1rem; color: #67827f; font-size: .8rem; line-height: 1.5; text-align: left; }
#panel-embed .pin-field { margin: 1.1rem 0 1.25rem; }
#panel-embed .pin-field label { color: #376b69; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
#panel-embed .pin-inputs { gap: .6rem; }
#panel-embed .pin-input { width: 48px; height: 54px; border: 1px solid #c8e2dd; border-radius: 12px; background: rgba(255,255,255,.72); color: #164f54; box-shadow: inset 0 1px 2px rgba(1,70,81,.04); }
#panel-embed .pin-input:focus { border-color: #087f75; background: #fff; box-shadow: 0 0 0 4px rgba(8,127,117,.12), 0 8px 16px rgba(8,127,117,.08); }
#panel-embed .pin-input.filled { border-color: #49ad9c; background: #effbf7; }
#panel-embed .signup-button { display: flex; align-items: center; justify-content: center; gap: .5rem; max-width: none; margin-top: .4rem; border-radius: 11px; background: #164f54; box-shadow: 0 10px 20px rgba(22,79,84,.2); }
#panel-embed .signup-button:hover { background: #087f75; box-shadow: 0 13px 25px rgba(8,127,117,.25); }
#panel-embed .signup-button i { font-size: 1rem; }
#panel-embed .info { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: 1.1rem; padding: .75rem; border: 1px solid rgba(185,227,215,.65); border-radius: 11px; background: rgba(239,251,247,.65); box-shadow: none; text-align: left; }
#panel-embed .info p { display: flex; align-items: center; gap: .4rem; margin: 0; color: #54817b; font-size: .72rem; }
#panel-embed .info i { color: #087f75; }
#panel-embed .test-integration-section { max-width: 620px; margin: 1.5rem auto 0; padding: .75rem 1rem; border: 1px solid rgba(221,184,107,.38); border-radius: 12px; background: rgba(255,248,229,.58); text-align: left; }
#panel-embed .test-integration-section .signup-button { display: inline-flex; width: auto; min-height: 36px; margin: .5rem 0 0; padding: .5rem .8rem; background: #a56a24; box-shadow: none; font-size: .72rem; }
#panel-embed .test-integration-section p { margin: .35rem 0 0; color: #8f7449; font-size: .66rem; }
.test-section-label { display: flex; align-items: center; gap: .4rem; color: #86652f; font-size: .7rem; font-weight: 800; }
.connection-summary { display: grid; grid-template-columns: 1.3fr 1fr 1fr; max-width: 900px; margin: 0 auto 1.25rem; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 16px; background: rgba(255,255,255,.5); box-shadow: 0 14px 32px rgba(1,70,81,.08), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.connection-summary-primary, .connection-summary-item { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: 1rem 1.05rem; }
.connection-summary-item { border-left: 1px solid rgba(178,215,207,.48); }
.summary-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: #d5f3eb; color: #087f75; font-size: 1.05rem; }
.summary-icon.is-soft { background: rgba(216,246,239,.56); color: #4c8f87; }
.summary-copy { display: grid; min-width: 0; gap: .12rem; text-align: left; }
.summary-label { overflow: hidden; color: #6f918c; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.summary-copy strong { overflow: hidden; color: #164f54; font-size: 1.15rem; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.summary-copy small { overflow: hidden; color: #78918e; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.summary-status-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #b86b6b; box-shadow: 0 0 0 4px rgba(184,107,107,.12); }
.summary-status-dot.is-online { background: #3aab71; box-shadow: 0 0 0 4px rgba(58,171,113,.13); }
.credentials-section { max-width: 900px; margin: 0 auto 1.25rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.82); border-radius: 16px; background: rgba(255,255,255,.42); box-shadow: 0 14px 32px rgba(1,70,81,.07), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.credentials-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; text-align: left; }
.credentials-heading h3 { margin: .15rem 0 0; color: #164f54; font-size: .95rem; }
.credentials-secure { display: inline-flex; align-items: center; gap: .35rem; color: #6f918c; font-size: .67rem; }
.credentials-secure i { color: #087f75; }
.credentials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.credential-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-width: 0; padding: .7rem; border: 1px solid rgba(207,225,223,.85); border-radius: 11px; background: rgba(255,255,255,.58); }
.credential-item-heading { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.credential-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e4f6f1; color: #087f75; font-size: .8rem; }
.credential-item .detail-label { color: #57827e; font-size: .64rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.credential-value { min-width: 0; overflow: hidden; padding: .42rem .5rem; border-radius: 6px; background: rgba(227,245,240,.58); color: #164f54; font: 600 .72rem/1.2 'Courier New', monospace; text-overflow: ellipsis; white-space: nowrap; }
.credential-copy { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .5rem; border: 1px solid #cfe1df; border-radius: 7px; background: #fff; color: #087f75; cursor: pointer; font: inherit; font-size: .67rem; font-weight: 700; white-space: nowrap; }
.credential-copy:hover { border-color: #087f75; background: #effbf7; }
.credentials-grid > .detail-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; margin: 0; padding: .7rem; border-radius: 11px; box-shadow: none; background: rgba(255,255,255,.58); }
.credentials-grid > .detail-card::before, .credentials-grid > .detail-card::after { display: none; }
.integration-card { max-width: 900px; margin: 0 auto 1.1rem; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.84); border-radius: 18px; background: rgba(255,255,255,.48); box-shadow: 0 16px 38px rgba(1,70,81,.09), inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.integration-card::before { height: 3px; background: linear-gradient(90deg, #087f75, #72cbb7, #d2eee6); box-shadow: none; }
.integration-card::after { display: none; }
.integration-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 1.15rem 1.2rem; border-bottom: 1px solid rgba(178,215,207,.4); }
.integration-phone { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.integration-phone-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; background: #087f75; color: #e9fff8; font-size: 1.25rem; box-shadow: 0 7px 16px rgba(8,127,117,.2); }
.integration-phone-copy { display: grid; gap: .18rem; min-width: 0; text-align: left; }
.integration-overline { color: #6f918c; font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.integration-phone-copy strong { overflow: hidden; color: #164f54; font-size: 1.15rem; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.integration-card .phone-copy { display: grid; place-items: center; width: 32px; height: 32px; margin-left: .15rem; padding: 0; border-radius: 8px; background: rgba(216,246,239,.65); border: 1px solid #c4e4dc; color: #087f75; font-size: .82rem; }
.integration-status-section { display: grid; justify-items: end; gap: .3rem; }
.status-badge { gap: .35rem; padding: .42rem .7rem; border-radius: 999px; font-size: .7rem; box-shadow: none; animation: none; }
.status-badge.active { background: #e4f7ee; color: #287c5d; border: 1px solid #b8e2ce; }
.status-badge.inactive { background: #fff4e6; color: #a96927; border: 1px solid #f0d2a8; }
.integration-status-caption { color: #91aaa6; font-size: .65rem; }
.integration-card .integration-grid { display: none; }
.integration-card .integration-actions { justify-content: space-between; margin: 0; padding: .75rem 1.2rem; border-top: 0; }
.integration-card .delete-button { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border: 1px solid #efd9d9; border-radius: 8px; background: rgba(255,245,245,.7); color: #a45454; box-shadow: none; font-size: .72rem; }
.integration-card .delete-button:hover { background: #fff0f0; color: #8f3f3f; transform: none; }

@media (max-width: 640px) {
  #panel-embed { padding: 1rem; }
  .whatsapp-hero { grid-template-columns: 48px minmax(0, 1fr); padding: .85rem; }
  .whatsapp-hero-mark { width: 48px; height: 48px; border-radius: 14px; font-size: 1.45rem; }
  .whatsapp-hero-status { grid-column: 2; justify-self: start; }
  .whatsapp-hero-copy h1 { font-size: 1.15rem; }
  #panel-embed .pin-input { width: 42px; height: 48px; }
  #panel-embed .info { grid-template-columns: 1fr; }
  .whatsapp-setup-card { padding: 1.1rem; }
  .connection-summary { grid-template-columns: 1fr; }
  .connection-summary-item { border-top: 1px solid rgba(178,215,207,.48); border-left: 0; }
  .credentials-grid { grid-template-columns: 1fr; }
  .credential-item { grid-template-columns: auto minmax(0, 1fr); }
  .credential-copy { grid-column: 2; justify-self: start; }
  .integration-card-header { align-items: flex-start; flex-direction: column; }
  .integration-status-section { justify-items: start; margin-left: 3.45rem; }
  .integration-card .integration-actions { padding: .7rem 1rem; }
}
