:root{
  --mag-bg:#f5f7fb;
  --mag-surface:#ffffff;
  --mag-surface-2:#f9fbff;
  --mag-line:#e4e9f2;
  --mag-text:#172033;
  --mag-muted:#718097;
  --mag-primary:#2563eb;
  --mag-primary-2:#06b6d4;
  --mag-success:#10b981;
  --mag-warning:#f59e0b;
  --mag-danger:#ef4444;
  --mag-shadow:0 18px 50px rgba(24,37,63,.08);
  --mag-sidebar:292px;
  --mag-topbar:82px;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(37,99,235,.10), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(6,182,212,.12), transparent 24rem),
    var(--mag-bg);
  color:var(--mag-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
}

a{color:var(--mag-primary);text-decoration:none}
a:hover{color:#1747b8;text-decoration:none}

.mag-shell{
  min-height:100vh;
  display:flex;
}

.mag-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--mag-sidebar);
  background:rgba(255,255,255,.88);
  border-right:1px solid rgba(226,232,240,.9);
  backdrop-filter:blur(18px);
  z-index:1040;
  display:flex;
  flex-direction:column;
  padding:22px 18px;
  box-shadow:8px 0 40px rgba(15,23,42,.06);
}

.mag-main{
  width:100%;
  min-width:0;
  padding-left:var(--mag-sidebar);
}

.mag-brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.mag-brand-mark{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--mag-text);
  min-width:0;
}

.mag-brand-mark:hover{color:var(--mag-text)}

.mag-brand-logo{
  display:block;
  width:auto;
  max-width:210px;
  height:46px;
  object-fit:contain;
}

.mag-brand-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,var(--mag-primary),var(--mag-primary-2));
  box-shadow:0 12px 24px rgba(37,99,235,.22);
}

.mag-brand strong{
  display:block;
  font-size:17px;
  line-height:1.1;
  letter-spacing:0;
}

.mag-brand small{
  display:block;
  color:var(--mag-muted);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-top:3px;
  font-size:10px;
}

.mag-nav{
  overflow:auto;
  padding-right:3px;
}

.mag-nav-label{
  display:block;
  color:#9aa7b8;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:20px 12px 8px;
}

.mag-nav-link{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:10px 12px;
  border-radius:13px;
  color:#3c485d;
  font-weight:700;
  margin-bottom:4px;
  position:relative;
}

.mag-nav-link i{
  width:22px;
  text-align:center;
  color:#7c8aa0;
}

.mag-nav-link span{
  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mag-nav-link em{
  flex:0 0 auto;
  font-style:normal;
  font-size:10px;
  font-weight:700;
  color:#0f766e;
  background:#ccfbf1;
  border-radius:999px;
  padding:3px 7px;
}

.mag-nav-link:hover{
  color:var(--mag-primary);
  background:#f3f7ff;
}

.mag-nav-link:hover i{color:var(--mag-primary)}

.mag-nav-link.active{
  color:#fff;
  background:linear-gradient(135deg,var(--mag-primary),#0ea5e9);
  box-shadow:0 12px 26px rgba(37,99,235,.20);
}

.mag-nav-link.active i{color:#fff}
.mag-nav-link.active em{background:rgba(255,255,255,.22);color:#fff}

.mag-topbar{
  position:sticky;
  top:0;
  z-index:1030;
  min-height:var(--mag-topbar);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 28px;
  background:rgba(245,247,251,.86);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(226,232,240,.72);
}

.mag-topbar-left,
.mag-topbar-actions{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.mag-topbar-left strong{
  display:block;
  font-size:18px;
  line-height:1.2;
}

.mag-kicker{
  display:block;
  color:var(--mag-muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:2px;
}

.mag-icon-button{
  width:42px;
  height:42px;
  border:1px solid var(--mag-line);
  border-radius:14px;
  background:#fff;
  color:#475569;
  display:grid;
  place-items:center;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}

.mag-icon-button:hover{
  color:var(--mag-primary);
  border-color:#bfd1ff;
}

.mag-create-button{
  border:0;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:14px;
  padding-inline:16px;
  font-weight:700;
  background:linear-gradient(135deg,var(--mag-primary),#0ea5e9);
  box-shadow:0 12px 24px rgba(37,99,235,.20);
}

.mag-create-button .fa-chevron-down{
  font-size:11px;
  opacity:.9;
}

.mag-create-dropdown{
  width:310px;
  border:1px solid var(--mag-line);
  border-radius:20px;
  padding:10px;
  box-shadow:var(--mag-shadow);
}

.mag-create-dropdown .dropdown-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:11px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  color:var(--mag-text);
}

.mag-create-dropdown .dropdown-item:hover{
  background:#f4f8ff;
  color:var(--mag-primary);
}

.mag-create-dropdown .dropdown-item > i{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border-radius:14px;
  background:linear-gradient(135deg,var(--mag-primary),#0ea5e9);
  box-shadow:0 10px 22px rgba(37,99,235,.16);
}

.mag-create-dropdown .dropdown-item strong,
.mag-create-dropdown .dropdown-item small{
  display:block;
  min-width:0;
}

.mag-create-dropdown .dropdown-item strong{
  font-weight:700;
  line-height:1.2;
}

.mag-create-dropdown .dropdown-item small{
  margin-top:3px;
  color:var(--mag-muted);
  font-size:12px;
  line-height:1.35;
  white-space:normal;
}

.mag-user-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:6px 8px 6px 6px;
  background:#fff;
  border:1px solid var(--mag-line);
  border-radius:18px;
  color:var(--mag-text);
  box-shadow:0 10px 26px rgba(15,23,42,.06);
}

.mag-avatar{
  width:36px;
  height:36px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:700;
  background:linear-gradient(135deg,#111827,#475569);
}

.mag-avatar-lg{
  width:44px;
  height:44px;
  border-radius:16px;
}

.mag-user-copy{
  display:block;
  max-width:170px;
  min-width:0;
}

.mag-user-copy strong,
.mag-user-copy small{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mag-user-copy strong{font-size:13px}
.mag-user-copy small{font-size:11px;color:var(--mag-muted)}

.asset-manager-control{
  display:flex;
  gap:8px;
  align-items:stretch;
}

.asset-manager-control .form-control{
  flex:1 1 auto;
  min-width:0;
}

.asset-manager-open{
  white-space:nowrap;
  border-color:#dbe5f3;
}

.asset-manager-modal .modal-content{
  border:0;
  border-radius:20px;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}

.asset-manager-modal .modal-header{
  align-items:flex-start;
  border-bottom:1px solid #e7eef8;
  padding:20px 22px;
}

.asset-manager-modal .modal-title{
  color:#111827;
  font-weight:700;
  margin:0;
}

.asset-manager-modal small{
  color:#7b8aa0;
  font-weight:600;
}

.asset-manager-tabs{
  gap:8px;
  margin-bottom:18px;
}

.asset-manager-tabs .nav-link{
  border-radius:12px;
  color:#64748b;
  font-weight:700;
}

.asset-manager-tabs .nav-link.active{
  background:#2563eb;
  color:#fff;
}

.asset-manager-content{
  min-height:280px;
}

.asset-manager-status{
  color:#718096;
  font-size:13px;
  font-weight:600;
  margin-bottom:12px;
}

.asset-manager-status.error{
  color:#dc2626;
}

.asset-manager-status.success{
  color:#059669;
}

.asset-manager-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:14px;
}

.asset-manager-item{
  appearance:none;
  background:#fff;
  border:1px solid #e1e9f5;
  border-radius:14px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:8px;
  text-align:left;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.asset-manager-item:hover{
  border-color:#2563eb;
  box-shadow:0 14px 30px rgba(37,99,235,.14);
  transform:translateY(-1px);
}

.asset-manager-item img{
  aspect-ratio:1.2 / 1;
  border-radius:10px;
  display:block;
  object-fit:cover;
  width:100%;
}

.asset-manager-item span{
  color:#334155;
  display:block;
  font-size:12px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.asset-manager-upload{
  align-items:center;
  background:#f8fbff;
  border:1px dashed #c9d7eb;
  border-radius:16px;
  display:grid;
  gap:12px;
  grid-template-columns:1fr auto;
  padding:16px;
}

.mag-user-dropdown{
  width:286px;
  border:1px solid var(--mag-line);
  border-radius:20px;
  padding:10px;
  box-shadow:var(--mag-shadow);
}

.mag-user-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:16px;
  background:var(--mag-surface-2);
  margin-bottom:8px;
}

.mag-user-card strong,
.mag-user-card small{
  display:block;
  word-break:break-word;
}

.mag-user-card small{color:var(--mag-muted)}

.mag-user-dropdown .dropdown-item{
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:12px;
  padding:10px;
  font-weight:700;
}

.mag-page{
  padding:28px;
}

.mag-page-inner{
  width:100%;
  max-width:1240px;
  margin:0 auto;
}

.mag-token-alert{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  margin:0 0 18px;
  padding:15px 16px;
  border-radius:18px;
  border:1px solid #fde68a;
  background:linear-gradient(180deg,#fffbeb,#fff7ed);
  color:#78350f;
  box-shadow:0 14px 34px rgba(120,53,15,.08);
}

.mag-token-alert.danger{
  border-color:#fecaca;
  background:linear-gradient(180deg,#fff7f7,#fff1f2);
  color:#7f1d1d;
}

.mag-token-alert span{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.mag-token-alert.danger span{
  background:rgba(239,68,68,.12);
  color:#dc2626;
}

.mag-token-alert strong,
.mag-token-alert p{
  display:block;
}

.mag-token-alert strong{
  font-size:14px;
  font-weight:700;
}

.mag-token-alert p{
  margin:3px 0 0;
  font-size:13px;
}

.mag-token-alert .btn{
  white-space:nowrap;
}

.mag-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 28px 28px;
  color:var(--mag-muted);
}

.mag-account-footer{
  margin:0 28px 28px;
  padding:14px 16px;

  border-radius:20px;

}

.mag-account-footer .footer-brand{
  display:flex;
  align-items:center;
  min-width:0;
  gap:11px;
}

.mag-account-footer .footer-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  color:#fff;
  border-radius:14px;
  background:linear-gradient(135deg,var(--mag-primary),#0ea5e9);
  box-shadow:0 10px 22px rgba(37,99,235,.18);
}

.mag-account-footer strong,
.mag-account-footer small{
  display:block;
}

.mag-account-footer strong{
  color:var(--mag-text);
  font-size:13px;
  font-weight:700;
  line-height:1.25;
}

.mag-account-footer small{
  margin-top:2px;
  color:var(--mag-muted);
  font-size:12px;
  line-height:1.35;
}

.mag-footer nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.mag-account-footer .footer-links a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:8px 11px;
  border:1px solid transparent;
  border-radius:12px;
  color:#64748b;
  font-size:13px;
  font-weight:700;
}

.mag-account-footer .footer-links a:hover{
  color:var(--mag-primary);
  border-color:#dbeafe;
  background:#f4f8ff;
}

.mag-public-footer{
  padding:18px 18px 24px;
  color:#64748b;
  background:transparent;
  border-top:1px solid rgba(219,229,242,.7);
}

.mag-public-footer .footer-inner{
  width:min(1120px,100%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.mag-public-footer .footer-brand{
  display:grid;
  gap:3px;
  min-width:0;
  color:#64748b;
  font-size:13px;
  line-height:1.4;
}

.mag-public-footer .footer-powered{
  color:#94a3b8;
  font-size:12px;
}

.mag-public-footer .footer-powered a,
.mag-account-footer small a{
  color:inherit;
  font-weight:700;
}

.mag-public-footer .footer-powered a:hover,
.mag-account-footer small a:hover{
  color:#2563eb;
}

.mag-public-footer .footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.mag-public-footer .footer-links a{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 0;
  color:#64748b;
  font-size:13px;
  font-weight:600;
}

.mag-public-footer .footer-links a:hover{
  color:#2563eb;
}

[data-bs-theme="dark"] .mag-public-footer{
  color:#c6d3e1;
  background:#090f1c;
  border-top-color:rgba(36,50,68,.78);
}

[data-bs-theme="dark"] body{
  background:#090f1c;
}

[data-bs-theme="dark"] .mag-public-footer .footer-brand,
[data-bs-theme="dark"] .mag-public-footer .footer-links a{
  color:#9fb0c3;
}

[data-bs-theme="dark"] .mag-public-footer .footer-powered{
  color:#74859a;
}

[data-bs-theme="dark"] .mag-public-footer .footer-links a:hover{
  color:#93c5fd;
}

.mag-error-page{
  min-height:calc(100vh - 72px);
  display:grid;
  place-items:center;
  padding:76px 18px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.mag-error-page .error-wrap{
  width:min(720px,100%);
  margin:0 auto;
  padding:48px;
  text-align:center;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(226,232,240,.95);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(15,23,42,.1);
}

.mag-error-page .error-mark{
  width:68px;
  height:68px;
  margin:0 auto 18px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:26px;
  border-radius:20px;
  background:linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow:0 18px 34px rgba(37,99,235,.24);
}

.mag-error-page .eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:5px 12px;
  color:#2563eb;
  font-size:13px;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
  background:#eef5ff;
  border:1px solid #dbeafe;
  border-radius:999px;
}

.mag-error-page h1{
  margin:18px 0 10px;
  color:#111827;
  font-size:clamp(34px, 5vw, 58px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:0;
}

.mag-error-page p{
  width:min(520px,100%);
  margin:0 auto;
  color:#64748b;
  font-size:17px;
  line-height:1.7;
}

.mag-error-page .actions{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.mag-error-page .btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:11px 18px;
  border-radius:14px;
  font-weight:700;
  box-shadow:none;
}

.mag-error-page .btn-primary{
  border-color:#2563eb;
  background:linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

.mag-error-page .btn-light{
  color:#334155;
  background:#fff;
  border-color:#dbe5f2;
}

.mag-error-page .btn-light:hover{
  color:#2563eb;
  border-color:#bfdbfe;
  background:#f8fbff;
}

[data-bs-theme="dark"] .mag-error-page{
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 34%),
    linear-gradient(180deg, #090f1c 0%, #101827 100%);
}

[data-bs-theme="dark"] .mag-error-page .error-wrap{
  background:rgba(17,24,39,.9);
  border-color:rgba(51,65,85,.82);
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}

[data-bs-theme="dark"] .mag-error-page .eyebrow{
  color:#93c5fd;
  background:rgba(37,99,235,.16);
  border-color:rgba(147,197,253,.24);
}

[data-bs-theme="dark"] .mag-error-page h1{
  color:#f8fafc;
}

[data-bs-theme="dark"] .mag-error-page p{
  color:#aab8c8;
}

[data-bs-theme="dark"] .mag-error-page .btn-light{
  color:#dbeafe;
  background:#172033;
  border-color:#26354b;
}

[data-bs-theme="dark"] .mag-error-page .btn-light:hover{
  color:#fff;
  background:#1d2a42;
  border-color:#3b82f6;
}

.mag-public-page{
  min-height:calc(100vh - 70px);
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.12), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(6,182,212,.12), transparent 24rem),
    linear-gradient(180deg,#f8fbff 0%,#eef3f9 100%);
  color:#172033;
}

.mag-public-page .page-hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:280px;
  padding:74px 18px 46px;
  background:
    radial-gradient(circle at 82% 8%, rgba(6,182,212,.24), transparent 34%),
    linear-gradient(135deg,#2563eb 0%,#0ea5e9 100%);
  background-position:center;
  background-size:cover;
  overflow:hidden;
}

.mag-public-page .page-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(15,23,42,.34),rgba(15,23,42,.06));
  opacity:0;
}

.mag-public-page .page-hero.has-banner:before{
  opacity:1;
}

.mag-public-page .hero-inner{
  position:relative;
  z-index:1;
  width:min(1120px,100%);
  margin:0 auto;
  color:#fff;
}

.mag-public-page .breadcrumb-link,
.mag-public-page .breadcrumb-divider,
.mag-public-page .hero-inner > span{
  display:inline-flex;
  align-items:center;
  margin-bottom:12px;
  color:rgba(255,255,255,.86);
  font-size:13px;
  font-weight:700;
}

.mag-public-page .breadcrumb-link:hover{
  color:#fff;
}

.mag-public-page .breadcrumb-divider{
  margin-inline:8px;
}

.mag-public-page h1{
  width:min(780px,100%);
  margin:0;
  color:#fff;
  font-size:clamp(36px,5.5vw,64px);
  font-weight:700;
  line-height:1.03;
  letter-spacing:0;
}

.mag-public-page .page-body{
  padding:42px 18px 56px;
}

.mag-public-page .page-card{
  width:min(1120px,100%);
  margin:0 auto;
  padding:38px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.95);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(15,23,42,.1);
}

.mag-public-page .page-content{
  width:min(860px,100%);
  color:#24334a;
  font-size:16px;
  line-height:1.8;
}

.mag-public-page .page-content > *:first-child{
  margin-top:0;
}

.mag-public-page .page-content > *:last-child{
  margin-bottom:0;
}

.mag-public-page .page-content h1,
.mag-public-page .page-content h2,
.mag-public-page .page-content h3,
.mag-public-page .page-content h4{
  margin:28px 0 12px;
  color:#111827;
  font-weight:700;
  line-height:1.18;
  letter-spacing:0;
}

.mag-public-page .page-content h1{
  font-size:34px;
}

.mag-public-page .page-content h2{
  font-size:28px;
}

.mag-public-page .page-content h3{
  font-size:23px;
}

.mag-public-page .page-content h4{
  font-size:19px;
}

.mag-public-page .page-content p,
.mag-public-page .page-content ul,
.mag-public-page .page-content ol,
.mag-public-page .page-content table,
.mag-public-page .page-content blockquote{
  margin-bottom:18px;
}

.mag-public-page .page-content ul,
.mag-public-page .page-content ol{
  padding-left:22px;
}

.mag-public-page .page-content li{
  margin-bottom:8px;
}

.mag-public-page .page-content a{
  color:#2563eb;
  font-weight:700;
  text-decoration:none;
}

.mag-public-page .page-content a:hover{
  color:#1747b8;
  text-decoration:underline;
}

.mag-public-page .page-content img{
  max-width:100%;
  height:auto;
  border-radius:16px;
}

.mag-public-page .page-content blockquote{
  padding:18px 20px;
  color:#334155;
  background:#f8fbff;
  border-left:4px solid #2563eb;
  border-radius:0 16px 16px 0;
}

.mag-public-page .page-content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid #dfe7f2;
  border-radius:14px;
}

.mag-public-page .page-content th,
.mag-public-page .page-content td{
  padding:12px 14px;
  border-bottom:1px solid #edf2f8;
}

.mag-public-page .page-content th{
  color:#64748b;
  background:#f8fbff;
  font-weight:700;
}

.mag-public-page .page-content tr:last-child td{
  border-bottom:0;
}

.mag-public-page .page-content iframe,
.mag-public-page .page-content video{
  max-width:100%;
  border-radius:16px;
}

[data-bs-theme="dark"] .mag-public-page{
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.18), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(6,182,212,.14), transparent 24rem),
    linear-gradient(180deg,#090f1c 0%,#101827 100%);
}

[data-bs-theme="dark"] .mag-public-page .page-card{
  background:rgba(17,24,39,.92);
  border-color:rgba(51,65,85,.82);
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}

[data-bs-theme="dark"] .mag-public-page .page-content,
[data-bs-theme="dark"] .mag-public-page .page-content blockquote{
  color:#c6d3e1;
}

[data-bs-theme="dark"] .mag-public-page .page-content h1,
[data-bs-theme="dark"] .mag-public-page .page-content h2,
[data-bs-theme="dark"] .mag-public-page .page-content h3,
[data-bs-theme="dark"] .mag-public-page .page-content h4{
  color:#f8fafc;
}

[data-bs-theme="dark"] .mag-public-page .page-content blockquote,
[data-bs-theme="dark"] .mag-public-page .page-content th{
  background:#0f172a;
}

[data-bs-theme="dark"] .mag-public-page .page-content table{
  border-color:#26354b;
}

[data-bs-theme="dark"] .mag-public-page .page-content th,
[data-bs-theme="dark"] .mag-public-page .page-content td{
  border-bottom-color:#243244;
}

.content-1,
.main-content{
  max-width:none;
  width:100%;
  margin:0 auto 22px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(226,232,240,.92);
  border-radius:24px;
  box-shadow:var(--mag-shadow);
  padding:24px;
}

.top-title-1,
.main-content h1{
  margin:0;
  color:var(--mag-text);
  font-size:24px;
  font-weight:700;
  letter-spacing:0;
}

.top-subtitle-1,
.main-content h2{
  margin:8px 0 22px;
  padding:0 0 16px;
  color:var(--mag-muted);
  border-bottom:1px solid var(--mag-line);
  font-size:14px;
  font-weight:500;
}

.toolbar,
.pull-right{float:right}

.table{
  color:#263248;
  vertical-align:middle;
}

.table thead th{
  color:#64748b;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  border-bottom:1px solid var(--mag-line);
}

.table td,
.table th{
  border-color:#edf1f7;
  padding:14px 12px;
}

.table-striped>tbody>tr:nth-of-type(odd)>*{
  --bs-table-bg-type:#fbfdff;
}

.btn{
  border-radius:12px;
  font-weight:700;
}

.btn-success{
  --bs-btn-bg:#10b981;
  --bs-btn-border-color:#10b981;
  --bs-btn-hover-bg:#059669;
  --bs-btn-hover-border-color:#059669;
}

.btn-info{
  --bs-btn-color:#fff;
  --bs-btn-bg:#0ea5e9;
  --bs-btn-border-color:#0ea5e9;
  --bs-btn-hover-color:#fff;
  --bs-btn-hover-bg:#0284c7;
  --bs-btn-hover-border-color:#0284c7;
}

.btn-light,
.btn-default{
  border:1px solid var(--mag-line);
  background:#fff;
  color:#475569;
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single{
  border-color:#dbe3ef;
  border-radius:13px;
  min-height:42px;
}

.form-control:focus{
  border-color:#93b4ff;
  box-shadow:0 0 0 .22rem rgba(37,99,235,.12);
}

.select2-container--default .select2-selection--single{
  display:flex;
  align-items:center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
  height:40px;
}

.account-section-title,
.content-1 h5{
  color:#334155;
  font-size:15px;
  font-weight:700;
  margin:24px 0 16px;
}

.user-store-logo,
.bot-avatar{
  display:block;
  max-width:220px;
  max-height:100px;
  border-radius:14px;
  border:1px solid var(--mag-line);
  background:#fff;
  padding:6px;
  margin-bottom:10px;
}

.messages-list{
  list-style:none;
  margin:0;
  padding:0;
}

.messages-list li{
  border:1px solid var(--mag-line);
  border-radius:16px;
  padding:12px;
  margin-bottom:10px;
  background:#fff;
}

.messages-list li.active{
  border-color:#b7c9ff;
  background:#f4f8ff;
}

.messages-list .item{
  display:block;
  color:var(--mag-text);
}

.messages-list .title{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}

.messages-list .message{
  color:var(--mag-muted);
  font-size:12px;
}

.messages-reply{
  min-height:360px;
}

.conversations-page{
  max-width:1320px;
  margin-inline:auto;
}

.conversations-page .header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:22px;
  border-bottom:1px solid var(--mag-line);
}

.conversations-page .eyebrow{
  display:block;
  margin-bottom:5px;
  color:var(--mag-primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
}

.conversations-page .header p{
  max-width:650px;
  margin:8px 0 0;
  color:var(--mag-muted);
}

.conversations-page .actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.conversations-page .summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:22px 0;
}

.conversations-page .summary div{
  min-width:0;
  padding:18px;
  border:1px solid rgba(219,227,239,.9);
  border-radius:18px;
  background:linear-gradient(145deg,#ffffff,#f8fbff);
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.conversations-page .summary i{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  color:#fff;
  border-radius:13px;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
}

.conversations-page .summary strong{
  display:block;
  color:var(--mag-text);
  font-size:26px;
  line-height:1;
}

.conversations-page .summary span{
  display:block;
  margin-top:6px;
  color:var(--mag-muted);
  font-size:13px;
  font-weight:700;
}

.conversations-layout{
  display:grid;
  grid-template-columns:minmax(310px,380px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.conversation-sidebar,
.conversation-detail{
  min-width:0;
  border:1px solid var(--mag-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 42px rgba(15,23,42,.06);
}

.conversation-sidebar{
  padding:14px;
}

.conversation-search{
  padding:6px 4px 14px;
  border-bottom:1px solid var(--mag-line);
}

.conversation-search label{
  display:block;
  margin-bottom:8px;
  color:var(--mag-text);
  font-size:13px;
  font-weight:700;
}

.conversation-search div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 46px;
  gap:8px;
}

.conversation-search .btn{
  border-radius:13px;
}

.conversation-search .clear-search{
  display:inline-block;
  margin-top:8px;
  color:var(--mag-muted);
  font-size:12px;
  font-weight:700;
}

.conversation-list{
  max-height:720px;
  overflow:auto;
  padding:12px 4px 0;
}

.conversation-list li{
  position:relative;
  padding:0;
  overflow:hidden;
  border-radius:18px;
}

.conversation-list li.active{
  border-color:#9fb8ff;
  background:#f5f8ff;
  box-shadow:0 12px 30px rgba(37,99,235,.09);
}

.conversation-list .item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:11px;
  padding:13px 13px 9px;
}

.conversation-list .avatar{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border-radius:15px;
  background:linear-gradient(135deg,#172033,#2563eb);
  font-weight:700;
}

.conversation-list .content{
  min-width:0;
}

.conversation-list .title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.conversation-list .message{
  display:block;
  line-height:1.45;
}

.conversation-list .message em{
  display:block;
  margin-top:4px;
  color:#94a3b8;
  font-style:normal;
}

.conversation-list .buttons{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 13px 12px 66px;
}

.conversation-list .buttons .btn{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin-left:auto;
  border-radius:10px;
}

.conversation-pagination{
  padding:12px 4px 0;
}

.conversation-detail{
  padding:0;
  overflow:hidden;
}

.conversation-panel{
  display:flex;
  flex-direction:column;
  min-height:580px;
}

.conversation-panel .conversation-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px;
  border-bottom:1px solid var(--mag-line);
  background:linear-gradient(145deg,#ffffff,#f8fbff);
}

.conversation-panel .conversation-head h2{
  margin:0;
  color:var(--mag-text);
  font-size:22px;
  font-weight:700;
}

.conversation-panel .conversation-head p{
  margin:6px 0 0;
  color:var(--mag-muted);
  font-size:13px;
}

.conversation-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 12px;
  color:var(--mag-text);
  border:1px solid var(--mag-line);
  border-radius:14px;
  background:#fff;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}

.conversation-toggle input{
  width:17px;
  height:17px;
  accent-color:var(--mag-primary);
}

.conversation-thread{
  flex:1;
  min-height:420px;
  max-height:620px;
  margin:0;
  padding:24px;
  overflow:auto;
  list-style:none;
  background:linear-gradient(180deg,#f8fbff,#ffffff);
}

.conversation-message{
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin-bottom:16px;
}

.conversation-message.agent{
  flex-direction:row-reverse;
}

.conversation-message .avatar{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border-radius:13px;
  background:#334155;
  font-size:13px;
  font-weight:700;
}

.conversation-message.agent .avatar{
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
}

.conversation-message.visitor .avatar{
  background:linear-gradient(135deg,#10b981,#14b8a6);
}

.conversation-message .body{
  max-width:min(680px,78%);
}

.conversation-message .meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:5px;
  color:#94a3b8;
  font-size:12px;
}

.conversation-message.agent .meta{
  justify-content:flex-end;
}

.conversation-message .meta strong{
  color:#475569;
  font-weight:700;
}

.conversation-message .message{
  display:block;
  padding:13px 15px;
  border:1px solid #dbeafe;
  border-radius:18px 18px 18px 6px;
  background:#fff;
  color:var(--mag-text);
  line-height:1.55;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
}

.conversation-message.agent .message{
  color:#fff;
  border-color:transparent;
  border-radius:18px 18px 6px 18px;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
}

.conversation-message .message a{
  font-weight:700;
}

.conversation-message.agent .message a{
  color:#fff;
  text-decoration:underline;
}

.conversation-empty-message{
  padding:30px;
  color:var(--mag-muted);
  text-align:center;
}

.reply-static{
  padding:18px 22px 22px;
  border-top:1px solid var(--mag-line);
  background:#fff;
}

.reply-static textarea{
  min-height:108px;
  resize:vertical;
}

.reply-static .reply-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
}

.reply-status{
  color:var(--mag-muted);
  font-size:13px;
}

.conversation-empty{
  min-height:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:34px;
  color:var(--mag-muted);
  text-align:center;
}

.conversation-empty i{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  color:#fff;
  border-radius:20px;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
  font-size:24px;
}

.conversation-empty h3{
  margin:0 0 8px;
  color:var(--mag-text);
  font-size:21px;
  font-weight:700;
}

.inside-modal{
  width:min(620px, calc(100vw - 34px));
  padding:22px;
}

.fancybox-skin{
  border-radius:22px;
}

.mag-sidebar-backdrop{
  display:none;
}

body.mag-sidebar-open{
  overflow:hidden;
}

.bot-editor{
  max-width:1280px;
  margin-inline:auto;
}

.bots-dashboard{
  max-width:1280px;
  margin-inline:auto;
}

.bots-dashboard .header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:22px;
  border-bottom:1px solid var(--mag-line);
}

.bots-dashboard .eyebrow{
  display:block;
  margin-bottom:5px;
  color:var(--mag-primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
}

.bots-dashboard .header p{
  max-width:640px;
  margin:8px 0 0;
  color:var(--mag-muted);
  font-size:14px;
}

.bots-dashboard .actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.bots-dashboard .actions .btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.bots-dashboard .summary{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin:22px 0;
}

.bots-dashboard .summary div{
  position:relative;
  min-width:0;
  padding:18px;
  border:1px solid var(--mag-line);
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 14%,rgba(8,182,216,.16),transparent 28%),
    linear-gradient(180deg,#fff,#fbfdff);
  overflow:hidden;
}

.bots-dashboard .summary strong{
  display:block;
  color:var(--mag-text);
  font-size:26px;
  line-height:1;
  font-weight:700;
}

.bots-dashboard .summary span{
  display:block;
  margin-top:8px;
  color:var(--mag-muted);
  font-size:12px;
  font-weight:700;
}

.bots-dashboard .toolbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:4px 0 18px;
  padding:14px;
  border:1px solid #e7eef8;
  border-radius:18px;
  background:#f8fbff;
}

.bots-dashboard .search-form{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.bots-dashboard .search-form .field{
  position:relative;
  min-width:260px;
}

.bots-dashboard .search-form .field i{
  position:absolute;
  top:50%;
  left:14px;
  color:#94a3b8;
  transform:translateY(-50%);
}

.bots-dashboard .search-form .form-control{
  padding-left:40px;
  background:#fff;
}

.bots-dashboard .result-count{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

.bots-dashboard .result-count i{
  color:var(--mag-primary);
}

.bots-dashboard .monitors{
  overflow-x:auto;
}

.bots-dashboard .bots-table{
  margin:0;
}

.bots-dashboard .bots-table thead th{
  padding-top:18px;
  padding-bottom:18px;
}

.bots-dashboard .bots-table tbody tr{
  transition:background-color .18s ease, transform .18s ease;
}

.bots-dashboard .bots-table tbody tr:hover>*{
  --bs-table-bg-type:#f8fbff;
  background:#f8fbff;
}

.bots-dashboard .bot-cell{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.bots-dashboard .bot-icon{
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 46px;
  border-radius:16px;
  background:linear-gradient(135deg,#2563eb,#08b6d8);
  color:#fff;
  font-size:16px;
  font-weight:700;
  box-shadow:0 12px 24px rgba(37,99,235,.18);
  overflow:hidden;
}

.bots-dashboard .bot-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.bots-dashboard .bot-cell b,
.bots-dashboard .bot-cell small{
  display:block;
}

.bots-dashboard .bot-cell b{
  color:var(--mag-text);
  font-size:15px;
  font-weight:700;
}

.bots-dashboard .bot-cell small{
  margin-top:4px;
  color:#7b8798;
  font-size:12px;
  line-height:1.4;
}

.bots-dashboard .bot-cell small a{
  color:var(--mag-primary);
  font-weight:700;
}

.bots-dashboard .metric-pill{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  border-radius:999px;
  background:#e8f6ff;
  color:#0284c7;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}

.bots-dashboard .metric-pill.muted{
  background:#f1f5f9;
  color:#64748b;
}

.bots-dashboard .row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
  min-width:260px;
}

.bots-dashboard .row-actions .btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.bots-dashboard .row-actions .icon-btn{
  width:40px;
  padding-inline:0;
}

.command-center{
  max-width:1320px;
  margin-inline:auto;
}

.command-center .hero{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  overflow:hidden;
  border:1px solid rgba(191,219,254,.9);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(239,246,255,.98),rgba(240,253,250,.92)),#fff;
}

.command-center .hero:before{
  content:"";
  position:absolute;
  right:22px;
  bottom:-70px;
  width:260px;
  height:260px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(14,165,233,.18));
  filter:blur(6px);
}

.command-center .hero > *{
  position:relative;
}

.command-center .eyebrow{
  display:block;
  margin-bottom:6px;
  color:var(--mag-primary);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}

.command-center .hero h1{
  margin:0;
  color:var(--mag-text);
  font-size:34px;
  line-height:1.1;
  font-weight:700;
}

.command-center .hero p{
  max-width:620px;
  margin:10px 0 0;
  color:var(--mag-muted);
  font-size:15px;
}

.command-center .hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.command-center .overview-grid,
.command-center .toolkit-grid,
.command-center .recent-grid{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.command-center .overview-grid,
.command-center .toolkit-grid,
.command-center .recent-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.command-center .dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:14px;
  margin-top:18px;
}

.command-center .overview-card,
.command-center .tool-card,
.command-center .panel{
  min-width:0;
  border:1px solid var(--mag-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.command-center .overview-card{
  padding:18px;
}

.command-center .overview-card span,
.command-center .tool-card i,
.command-center .mini-list a span,
.command-center .conversation-card span{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border-radius:14px;
  background:linear-gradient(135deg,var(--mag-primary),#0ea5e9);
}

.command-center .overview-card.primary{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
}

.command-center .overview-card.primary span{
  background:rgba(255,255,255,.18);
}

.command-center .overview-card strong{
  display:block;
  margin-top:14px;
  color:var(--mag-text);
  font-size:30px;
  line-height:1;
  font-weight:700;
}

.command-center .overview-card.primary strong,
.command-center .overview-card.primary small{
  color:#fff;
}

.command-center .overview-card small{
  display:block;
  margin-top:6px;
  color:var(--mag-muted);
  font-weight:700;
}

.command-center .tool-card{
  display:block;
  padding:18px;
  color:var(--mag-text);
}

.command-center .tool-card:hover{
  border-color:#bfdbfe;
  transform:translateY(-1px);
}

.command-center .tool-card strong,
.command-center .tool-card small{
  display:block;
}

.command-center .tool-card strong{
  margin-top:14px;
  font-size:16px;
  font-weight:700;
}

.command-center .tool-card small{
  margin-top:5px;
  color:var(--mag-muted);
  line-height:1.45;
}

.command-center .panel{
  padding:18px;
}

.command-center .panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.command-center .panel-head h2{
  margin:0;
  color:var(--mag-text);
  font-size:17px;
  font-weight:700;
}

.command-center .panel-head p{
  margin:4px 0 0;
  color:var(--mag-muted);
  font-size:13px;
}

.command-center .panel-head a{
  color:var(--mag-primary);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

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

.command-center .signal-list div{
  padding:14px;
  border:1px solid var(--mag-line);
  border-radius:14px;
  background:#f8fbff;
}

.command-center .signal-list span,
.command-center .signal-list strong{
  display:block;
}

.command-center .signal-list span{
  color:var(--mag-muted);
  font-size:13px;
  font-weight:700;
}

.command-center .signal-list strong{
  margin-top:8px;
  color:var(--mag-text);
  font-size:22px;
  font-weight:700;
}

.command-center .conversation-card,
.command-center .mini-list a{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:11px;
  align-items:center;
  padding:12px;
  border:1px solid var(--mag-line);
  border-radius:15px;
  color:var(--mag-text);
  background:#fff;
}

.command-center .mini-list{
  display:grid;
  gap:9px;
}

.command-center .mini-list a:hover,
.command-center .conversation-card:hover{
  border-color:#bfdbfe;
  background:#f8fbff;
}

.command-center .mini-list strong,
.command-center .mini-list small,
.command-center .conversation-card strong,
.command-center .conversation-card small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.command-center .mini-list strong,
.command-center .conversation-card strong{
  font-size:13px;
  font-weight:700;
}

.command-center .mini-list small,
.command-center .conversation-card small{
  margin-top:3px;
  color:var(--mag-muted);
  font-size:12px;
}

.command-center .empty-state{
  padding:18px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  color:var(--mag-muted);
  background:#f8fafc;
  font-size:13px;
}

.reseller-accounts{
  color:#172033;
}

.reseller-accounts .header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}

.reseller-accounts .eyebrow{
  display:block;
  margin-bottom:4px;
  color:#71809b;
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
}

.reseller-accounts .header p{
  margin:8px 0 0;
  color:#71809b;
}

.reseller-accounts .actions{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.reseller-accounts .summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.reseller-accounts .summary div,
.reseller-accounts .usage-card,
.reseller-accounts .section{
  border:1px solid #e4ebf5;
  border-radius:8px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}

.reseller-accounts .summary div{
  padding:18px;
}

.reseller-accounts .summary strong{
  display:block;
  color:#172033;
  font-size:26px;
  font-weight:700;
  line-height:1.05;
}

.reseller-accounts .summary span{
  display:block;
  margin-top:6px;
  color:#71809b;
  font-size:13px;
  font-weight:700;
}

.reseller-accounts .usage-card{
  display:grid;
  grid-template-columns:minmax(160px,.26fr) minmax(0,1fr);
  align-items:center;
  gap:18px;
  padding:18px;
  margin-bottom:18px;
}

.reseller-accounts .usage-card strong,
.reseller-accounts .usage-card span{
  display:block;
}

.reseller-accounts .usage-card strong{
  color:#172033;
  font-size:18px;
  font-weight:700;
}

.reseller-accounts .usage-card span{
  margin-top:3px;
  color:#71809b;
  font-weight:600;
}

.reseller-accounts .usage-track{
  height:12px;
  overflow:hidden;
  border-radius:999px;
  background:#eaf1ff;
}

.reseller-accounts .usage-track span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
}

.reseller-accounts .toolbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.reseller-accounts .search-form{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.reseller-accounts .search-form .field{
  position:relative;
  min-width:280px;
}

.reseller-accounts .search-form .field i{
  position:absolute;
  left:13px;
  top:50%;
  color:#94a3b8;
  transform:translateY(-50%);
}

.reseller-accounts .search-form .field .form-control{
  padding-left:36px;
}

.reseller-accounts .search-form .form-select{
  width:auto;
  min-width:190px;
}

.reseller-accounts .result-count{
  color:#71809b;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

.reseller-accounts .monitors{
  overflow-x:auto;
}

.reseller-accounts .monitors table{
  min-width:760px;
}

.reseller-accounts .client-cell{
  display:flex;
  align-items:center;
  gap:12px;
}

.reseller-accounts .client-cell > span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 42px;
  color:#fff;
  border-radius:14px;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  font-weight:700;
}

.reseller-accounts .client-cell b,
.reseller-accounts .client-cell small{
  display:block;
}

.reseller-accounts .client-cell b{
  color:#172033;
  font-weight:700;
}

.reseller-accounts .client-cell small,
.reseller-accounts .muted{
  color:#71809b;
}

.reseller-accounts .metric-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:6px 10px;
  border-radius:999px;
  color:#2563eb;
  background:#eaf1ff;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.reseller-accounts .metric-pill.muted{
  color:#42526a;
  background:#f3f7fb;
}

.reseller-accounts .row-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
}

.reseller-accounts .row-actions .icon-btn{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.reseller-accounts .empty-state{
  margin-top:14px;
  padding:18px;
  color:#718097;
  border:1px dashed #d8e2ef;
  border-radius:8px;
  background:#fbfdff;
}

.reseller-accounts .form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.reseller-accounts .section{
  padding:22px;
}

.reseller-accounts .danger-section{
  border-color:#fecaca;
}

.reseller-accounts .section-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.reseller-accounts .section-head span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 42px;
  color:#2563eb;
  border-radius:14px;
  background:#eaf1ff;
}

.reseller-accounts .danger-section .section-head span{
  color:#dc2626;
  background:#fee2e2;
}

.reseller-accounts .section-head h5{
  margin:0;
  color:#172033;
  font-size:17px;
  font-weight:700;
}

.reseller-accounts .section-head p{
  margin:3px 0 0;
  color:#71809b;
}

.reseller-accounts .grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.reseller-accounts .field.wide{
  grid-column:1 / -1;
}

.reseller-accounts .field label{
  display:block;
  margin-bottom:6px;
  color:#334155;
  font-size:13px;
  font-weight:700;
}

.reseller-accounts .package-options{
  display:grid;
  gap:10px;
}

.reseller-accounts .package-options label{
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px;
  border:1px solid #dce5f2;
  border-radius:8px;
  background:#fbfdff;
  cursor:pointer;
  transition:border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.reseller-accounts .package-options label:hover{
  border-color:#bfdbfe;
  background:#f4f8ff;
  box-shadow:0 10px 22px rgba(37,99,235,.08);
}

.reseller-accounts .package-options label:has(input:checked){
  border-color:#2563eb;
  background:#eff6ff;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.reseller-accounts .package-options input{
  width:18px;
  height:18px;
  flex:0 0 18px;
  accent-color:#2563eb;
}

.reseller-accounts .package-options b,
.reseller-accounts .package-options small{
  display:block;
}

.reseller-accounts .package-options b{
  color:#172033;
  font-weight:700;
}

.reseller-accounts .package-options small{
  margin-top:2px;
  color:#71809b;
}

.reseller-accounts .save-bar{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}

.bot-editor .header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:22px;
  border-bottom:1px solid var(--mag-line);
}

.bot-editor .eyebrow{
  display:block;
  margin-bottom:5px;
  color:var(--mag-primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
}

.bot-editor .header h1{
  margin:0;
}

.bot-editor .header p{
  max-width:620px;
  margin:8px 0 0;
  color:var(--mag-muted);
  font-size:14px;
}

.bot-editor .actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.bot-editor .actions .btn,
.bot-editor .save-bar .btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.bot-editor .tabs{
  margin-top:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--mag-line);
}

.bot-editor .tabs .nav{
  gap:8px;
}

.bot-editor .tabs .nav-link{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:12px;
  color:#637083;
  font-weight:700;
  padding:9px 13px;
}

.bot-editor .tabs .nav-link.active{
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#12a7df);
  box-shadow:0 12px 28px rgba(37,99,235,.2);
}

.bot-editor .settings-form{
  margin-top:22px;
}

.bot-editor .section{
  padding:20px;
  margin-bottom:16px;
  border:1px solid var(--mag-line);
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}

.bot-editor .section-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.bot-editor .section-head span{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  border-radius:13px;
  color:var(--mag-primary);
  background:#eef5ff;
}

.bot-editor .section-head h5{
  margin:0;
  color:var(--mag-text);
  font-size:16px;
  font-weight:700;
}

.bot-editor .section-head p{
  margin:4px 0 0;
  color:var(--mag-muted);
  font-size:13px;
}

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

.bot-editor .grid.compact{
  padding:16px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid #e7eef8;
}

.bot-editor .field{
  min-width:0;
}

.bot-editor .field.wide{
  grid-column:1 / -1;
}

.bot-editor .field label{
  display:block;
  margin-bottom:7px;
  color:#273449;
  font-size:13px;
  font-weight:700;
}

.bot-editor .form-control,
.bot-editor .form-select{
  min-height:44px;
  border-color:#dbe5f2;
  border-radius:12px;
  color:var(--mag-text);
  box-shadow:none;
}

.bot-editor .color-input{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:8px;
}

.bot-editor .color-input .form-control-color{
  width:54px;
  min-height:44px;
  padding:6px;
}

.bot-editor textarea.form-control{
  min-height:94px;
  resize:vertical;
}

.bot-editor .form-control:focus,
.bot-editor .form-select:focus{
  border-color:#8db7ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.1);
}

.bot-editor .form-text{
  margin-top:6px;
  color:#7b8798;
  font-size:12px;
}

.bot-editor .avatar-preview{
  width:74px;
  height:74px;
  margin-top:12px;
  padding:5px;
  border:1px solid #dbe5f2;
  border-radius:18px;
  background:#fff;
}

.bot-editor .avatar-preview img,
.bot-editor .bot-avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
}

.bot-editor .save-bar{
  position:sticky;
  bottom:18px;
  z-index:5;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px;
  margin-top:20px;
  border:1px solid rgba(219,229,242,.95);
  border-radius:18px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
  backdrop-filter:blur(12px);
}

.bot-editor .qr-preview{
  width:180px;
  max-width:100%;
  padding:12px;
  border:1px solid #dbe5f2;
  border-radius:18px;
  background:#fff;
}

.bot-editor .qr-preview img{
  display:block;
  width:100%;
  height:auto;
}

.bot-editor .stats-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

.bot-editor .stats-grid div{
  min-width:0;
  padding:16px;
  border:1px solid #dbe5f2;
  border-radius:16px;
  background:#fff;
}

.bot-editor .stats-grid strong{
  display:block;
  color:var(--mag-text);
  font-size:28px;
  line-height:1;
  font-weight:700;
}

.bot-editor .stats-grid span{
  display:block;
  margin-top:8px;
  color:var(--mag-muted);
  font-size:12px;
  line-height:1.4;
}

.ad-builder,
.book-builder{
  max-width:1280px;
  margin-inline:auto;
}

.ad-builder .header,
.ad-builder .campaign-head,
.book-builder .header,
.book-builder .campaign-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:22px;
  border-bottom:1px solid var(--mag-line);
}

.ad-builder .eyebrow,
.book-builder .eyebrow{
  display:block;
  margin-bottom:5px;
  color:var(--mag-primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
}

.ad-builder .header h1,
.ad-builder .campaign-head h2,
.book-builder .header h1,
.book-builder .campaign-head h2{
  margin:0;
}

.ad-builder .header p,
.ad-builder .campaign-head p,
.book-builder .header p,
.book-builder .campaign-head p{
  max-width:650px;
  margin:8px 0 0;
  color:var(--mag-muted);
  font-size:14px;
}

.ad-builder .actions,
.book-builder .actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.ad-builder .actions .btn,
.ad-builder .save-bar .btn,
.book-builder .actions .btn,
.book-builder .save-bar .btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.ad-builder .tabs,
.book-builder .tabs{
  margin-top:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--mag-line);
}

.ad-builder .tabs .nav,
.book-builder .tabs .nav{
  gap:8px;
}

.ad-builder .tabs .nav-link,
.book-builder .tabs .nav-link{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:12px;
  color:#637083;
  font-weight:700;
  padding:9px 13px;
}

.ad-builder .tabs .nav-link.active,
.book-builder .tabs .nav-link.active{
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#12a7df);
  box-shadow:0 12px 28px rgba(37,99,235,.2);
}

.ad-builder .summary,
.book-builder .summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:22px 0;
}

.ad-builder .summary div,
.book-builder .summary div{
  padding:18px;
  border:1px solid var(--mag-line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}

.ad-builder .summary strong,
.book-builder .summary strong{
  display:block;
  color:var(--mag-text);
  font-size:24px;
  font-weight:700;
}

.ad-builder .summary span,
.book-builder .summary span{
  color:var(--mag-muted);
  font-size:13px;
}

.ad-builder .settings-form,
.book-builder .settings-form{
  margin-top:22px;
}

.ad-builder .section,
.book-builder .section{
  padding:20px;
  margin-bottom:16px;
  border:1px solid var(--mag-line);
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}

.ad-builder .section-head,
.book-builder .section-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.ad-builder .section-head span,
.book-builder .section-head span{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  border-radius:13px;
  color:var(--mag-primary);
  background:#eef5ff;
}

.ad-builder .section-head h5,
.book-builder .section-head h5{
  margin:0;
  color:var(--mag-text);
  font-size:16px;
  font-weight:700;
}

.ad-builder .section-head p,
.book-builder .section-head p{
  margin:4px 0 0;
  color:var(--mag-muted);
  font-size:13px;
}

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

.ad-builder .field.wide,
.book-builder .field.wide{
  grid-column:1 / -1;
}

.ad-builder .field label,
.book-builder .field label{
  display:block;
  margin-bottom:7px;
  color:#273449;
  font-size:13px;
  font-weight:700;
}

.ad-builder .form-control,
.ad-builder .form-select,
.book-builder .form-control,
.book-builder .form-select{
  min-height:44px;
  border-color:#dbe5f2;
  border-radius:12px;
  color:var(--mag-text);
  box-shadow:none;
}

.ad-builder .form-control:focus,
.ad-builder .form-select:focus,
.book-builder .form-control:focus,
.book-builder .form-select:focus{
  border-color:#8db7ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.1);
}

.ad-builder .form-text,
.book-builder .form-text{
  margin-top:6px;
  color:#7b8798;
  font-size:12px;
}

.ad-builder .brand-color-field,
.book-builder .brand-color-field{
  --bs-gutter-x:8px;
  align-items:center;
}

.ad-builder .brand-color-field .form-control-color,
.book-builder .brand-color-field .form-control-color{
  width:46px;
  min-height:44px;
  padding:5px;
}

.ad-builder .brand-color-field .btn,
.book-builder .brand-color-field .btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
}

.ad-builder .reference-preview,
.book-builder .reference-preview{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin-top:12px;
  padding:10px;
  border:1px solid #dbe5f2;
  border-radius:14px;
  background:#fff;
  color:#526173;
  font-size:13px;
}

.ad-builder .reference-preview img,
.book-builder .reference-preview img{
  width:54px;
  height:54px;
  object-fit:contain;
  border-radius:10px;
  background:#f8fbff;
  border:1px solid #edf2f7;
}

.ad-builder .save-bar,
.book-builder .save-bar{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:6px;
}

.ad-builder .campaign-meta,
.book-builder .campaign-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 22px;
}

.ad-builder .campaign-meta span,
.book-builder .campaign-meta span{
  padding:9px 12px;
  border:1px solid var(--mag-line);
  border-radius:999px;
  background:#fff;
  color:#526173;
  font-size:13px;
}

.ad-builder .variations{
  display:grid;
  gap:16px;
}

.ad-builder .variation{
  display:block;
  padding:20px;
  border:1px solid var(--mag-line);
  border-radius:20px;
  background:#fff;
}

.ad-builder .variation-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.ad-builder .variation .label{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--mag-primary);
  font-size:12px;
  font-weight:700;
}

.ad-builder .variation-toolbar .btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.ad-builder .variation h3{
  margin:0 0 10px;
  font-size:20px;
  font-weight:700;
  color:var(--mag-text);
}

.ad-builder .variation p{
  color:#344256;
  margin-bottom:10px;
}

.ad-builder .variation small{
  display:block;
  color:var(--mag-muted);
}

.ad-builder .variation .cta{
  display:inline-flex;
  margin-top:14px;
  padding:8px 12px;
  border-radius:12px;
  background:#e8fff7;
  color:#047857;
  font-size:13px;
  font-weight:700;
}

.ad-builder .prompt{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid #e7eef8;
}

.ad-builder .prompt b,
.ad-builder .prompt span{
  display:block;
}

.ad-builder .prompt b{
  margin-bottom:5px;
  color:#273449;
  font-size:13px;
}

.ad-builder .prompt span{
  color:#64748b;
  font-size:13px;
}

.ad-builder .creative{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,220px));
  gap:12px;
  align-items:start;
  margin-top:14px;
}

.ad-builder .image-item{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.ad-builder .creative img,
.ad-builder .image-empty,
.ad-builder .image-error{
  width:100%;
  aspect-ratio:1;
  border-radius:18px;
  object-fit:cover;
}

.ad-builder .image-empty,
.ad-builder .image-error{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  border:1px dashed #cbd5e1;
  background:#f8fbff;
  color:#7b8798;
  text-align:center;
  padding:18px;
}

.ad-builder .creative .generate-image{
  min-height:44px;
  align-self:start;
  justify-content:center;
}

.ad-builder .image-empty i{
  font-size:26px;
  color:#9aa8bb;
}

.book-builder .pages-board{
  margin-top:18px;
}

.book-builder .pages-list{
  display:grid;
  gap:10px;
}

.book-builder .page-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid var(--mag-line);
  border-radius:16px;
  background:#fff;
}

.book-builder .page-row .drag{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#f1f5f9;
  color:#64748b;
  cursor:grab;
}

.book-builder .page-row b,
.book-builder .page-row small{
  display:block;
}

.book-builder .page-row small{
  color:var(--mag-muted);
  font-size:12px;
}

.book-builder .page-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.book-builder .editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:18px;
  align-items:start;
  margin-top:20px;
}

.book-builder .book-editor-pager{
  align-items:center;
  background:#fff;
  border:1px solid #e3ebf6;
  border-radius:16px;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-top:18px;
  padding:12px 14px;
}

.book-builder .book-editor-pager span,
.book-builder .book-editor-pager strong{
  display:block;
}

.book-builder .book-editor-pager span{
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.book-builder .book-editor-pager strong{
  color:#172033;
  font-size:14px;
  font-weight:700;
}

.book-builder .book-editor-pager-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.book-builder .editor-side{
  position:sticky;
  top:96px;
}

.book-builder .action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.book-builder .action-grid .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
}

.book-builder .asset-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.book-builder .asset-card{
  display:grid;
  gap:8px;
}

.book-builder .asset-grid img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--mag-line);
}

.book-builder .asset-card .btn{
  justify-content:center;
}

.book-builder .book-image{
  margin:22px 0;
}

.book-builder .book-image img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:14px;
}

.book-builder .book-image figcaption{
  min-height:1px;
  margin-top:8px;
  color:#64748b;
  font-size:12px;
  text-align:center;
}

.book-builder .preview-shell{
  margin-top:20px;
  padding:20px;
  border-radius:20px;
  background:#eef2f7;
  overflow:auto;
}

.book-builder .book-document{
  max-width:794px;
  margin:0 auto;
}

.book-builder .book-page{
  box-sizing:border-box;
  position:relative;
  aspect-ratio:210 / 297;
  min-height:0;
  margin:0 0 18px;
  padding:48px;
  border-radius:10px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.10);
  overflow:hidden;
}

.book-builder .book-preview-edit{
  position:absolute;
  top:14px;
  right:14px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(219,229,242,.95);
  border-radius:12px;
  background:rgba(255,255,255,.94);
  color:#172033;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(15,23,42,.12);
}

.book-builder .book-preview-edit:hover{
  color:#2563eb;
  border-color:#bcd2ff;
}

.book-builder .book-page h1,
.book-builder .book-page h2,
.book-builder .book-page h3{
  font-weight:700;
  letter-spacing:0;
}

.book-builder .book-cover{
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  color:#fff;
}

.book-builder .book-cover.has-cover{
  position:relative;
  padding:0;
  overflow:hidden;
  background:#fff;
}

.book-builder .book-cover h1,
.book-builder .book-cover h2{
  color:#fff;
}

.book-builder .book-logo{
  max-width:140px;
  max-height:70px;
  object-fit:contain;
  margin-bottom:24px;
}

.book-builder .book-cover .cover{
  width:100%;
  max-height:430px;
  object-fit:contain;
  border-radius:18px;
  margin-top:22px;
}

.book-builder .book-cover.has-cover .cover{
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  margin:0;
  border-radius:0;
  object-fit:contain;
  background:#fff;
}

.book-builder .book-meta{
  margin-top:26px;
  color:#94a3b8;
  font-size:12px;
}

.book-builder .book-cover.has-cover .book-meta{
  display:none;
}

.book-builder .flipbook{
  margin-top:20px;
}

.book-builder .flipbook-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-bottom:14px;
}

.book-builder .flipbook-page{
  box-sizing:border-box;
  display:none;
  width:min(794px,100%);
  aspect-ratio:210 / 297;
  min-height:0;
  margin:0 auto;
  padding:48px;
  border:1px solid var(--mag-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--mag-shadow);
}

.book-builder .flipbook-page.active{
  display:block;
}

.book-builder .flipbook-page.cover-page{
  padding:0;
  overflow:hidden;
}

.book-builder .flipbook-page.cover-page img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.lead-magnet-builder{
  color:#172033;
}

.lead-magnet-builder .header,
.lead-magnet-builder .campaign-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:22px;
}

.lead-magnet-builder .eyebrow{
  display:block;
  color:#71809b;
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
  margin-bottom:4px;
}

.lead-magnet-builder .header h1,
.lead-magnet-builder .campaign-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
  font-weight:700;
}

.lead-magnet-builder .header p,
.lead-magnet-builder .campaign-head p{
  color:#71809b;
  margin:8px 0 0;
}

.lead-magnet-builder .actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.lead-magnet-builder .tabs{
  margin-bottom:18px;
}

.lead-magnet-builder .tabs .nav{
  gap:8px;
}

.lead-magnet-builder .tabs .nav-link{
  color:#64748b;
  border-radius:8px;
  font-weight:700;
}

.lead-magnet-builder .tabs .nav-link.active{
  color:#fff;
  background:#2563eb;
}

.lead-magnet-builder .summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.lead-magnet-builder .summary div,
.lead-magnet-builder .section,
.lead-magnet-builder .lead-block-card{
  background:#fff;
  border:1px solid #e4ebf5;
  border-radius:8px;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}

.lead-magnet-builder .summary div{
  padding:18px;
}

.lead-magnet-builder .summary strong{
  display:block;
  font-size:24px;
  font-weight:700;
}

.lead-magnet-builder .summary span{
  color:#71809b;
  font-size:13px;
  font-weight:700;
}

.lead-magnet-builder .settings-form{
  display:block;
}

.lead-magnet-builder .section{
  padding:22px;
  margin-bottom:18px;
}

.lead-magnet-builder .section-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.lead-magnet-builder .section-head span{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#2563eb;
  background:#eaf1ff;
}

.lead-magnet-builder .section-head h5{
  margin:0;
  font-size:17px;
  font-weight:700;
}

.lead-magnet-builder .section-head p{
  margin:3px 0 0;
  color:#71809b;
}

.lead-magnet-builder .grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.lead-magnet-builder .field.wide{
  grid-column:1 / -1;
}

.lead-magnet-builder .field label{
  display:block;
  margin-bottom:6px;
  color:#334155;
  font-size:13px;
  font-weight:700;
}

.lead-magnet-builder .form-control,
.lead-magnet-builder .form-select{
  border:1px solid #dce5f2;
  border-radius:8px;
  min-height:42px;
}

.lead-magnet-builder .form-control:focus,
.lead-magnet-builder .form-select:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 .2rem rgba(37,99,235,.12);
}

.lead-magnet-builder .form-text{
  color:#71809b;
}

.lead-magnet-builder .save-bar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin:14px 0 22px;
}

.lead-magnet-builder .lead-builder-toolbar{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  justify-content:start;
  gap:10px;
  margin-bottom:16px;
}

.lead-magnet-builder .lead-builder-toolbar .toolbar-group{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  min-width:0;
}

.lead-magnet-builder .lead-block-card{
  margin-bottom:12px;
  overflow:hidden;
  box-shadow:none;
}

.lead-magnet-builder .lead-block-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  background:#f8fafc;
  border-bottom:1px solid #e4ebf5;
}

.lead-magnet-builder .lead-block-card-head b,
.lead-magnet-builder .lead-block-card-head small{
  display:block;
}

.lead-magnet-builder .lead-block-card-head small{
  color:#71809b;
  font-size:12px;
}

.lead-magnet-builder .lead-block-tools{
  display:flex;
  gap:6px;
}

.lead-magnet-builder .lead-block-card-body{
  padding:16px;
}

.lead-magnet-builder .lead-field-row{
  padding:10px 0;
  border-bottom:1px solid #eef3fa;
}

.lead-magnet-builder .lead-check{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:5px;
  font-weight:700;
  color:#334155;
}

.lead-public{
  --lead-primary:#2563eb;
  --lead-accent:#06b6d4;
  --lead-bg:#f4f7fb;
  --lead-card:#ffffff;
  --lead-card-soft:#f8fafc;
  --lead-border:#e4ebf5;
  --lead-text:#172033;
  --lead-muted:#526174;
  --lead-shadow:0 16px 42px rgba(15,23,42,.08);
  font-family:Inter,Arial,sans-serif;
  color:var(--lead-text);
  background:var(--lead-bg);
  min-height:calc(100vh - 82px);
  padding:34px 16px;
}

.lead-public.theme-dark{
  --lead-bg:#090f1c;
  --lead-card:#111827;
  --lead-card-soft:#0f172a;
  --lead-border:#243244;
  --lead-text:#f8fafc;
  --lead-muted:#c6d3e1;
  --lead-shadow:0 18px 48px rgba(0,0,0,.32);
}

.lead-public .lead-block,
.lead-public .lead-public-success{
  max-width:1040px;
  margin:0 auto 18px;
  padding:34px;
  background:var(--lead-card);
  border:1px solid var(--lead-border);
  border-radius:8px;
  box-shadow:var(--lead-shadow);
}

.lead-public .lead-hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(240px,.9fr);
  gap:30px;
  align-items:center;
  min-height:420px;
}

.lead-public h1,
.lead-public h2{
  letter-spacing:0;
  font-weight:700;
}

.lead-public h1{
  font-size:48px;
  line-height:1.04;
  margin:0 0 14px;
}

.lead-public h2{
  font-size:28px;
  margin:0 0 16px;
}

.lead-public p{
  color:var(--lead-muted);
  font-size:17px;
}

.lead-public img{
  max-width:100%;
  border-radius:8px;
}

.lead-public .lead-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:8px;
  background:var(--lead-primary);
  color:#fff;
  font-weight:700;
  text-decoration:none;
}

.lead-public .lead-benefits,
.lead-public .lead-testimonials{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.lead-public .lead-benefits div,
.lead-public blockquote,
.lead-public details{
  padding:16px;
  border:1px solid var(--lead-border);
  border-radius:8px;
  background:var(--lead-card-soft);
}

.lead-public .lead-benefits i{
  color:var(--lead-accent);
  margin-right:8px;
}

.lead-public .lead-capture-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.lead-public .lead-capture-form label{
  display:block;
  color:var(--lead-text);
  font-weight:700;
}

.lead-public .lead-capture-form label span{
  display:block;
  margin-bottom:6px;
}

.lead-public .lead-capture-form input,
.lead-public .lead-capture-form select{
  width:100%;
  min-height:44px;
  border:1px solid var(--lead-border);
  border-radius:8px;
  padding:0 12px;
  background:var(--bs-body-bg,#fff);
  color:var(--bs-body-color,var(--lead-text));
}

.lead-public .lead-capture-form input:focus,
.lead-public .lead-capture-form select:focus{
  border-color:var(--lead-primary);
  outline:0;
  box-shadow:0 0 0 .22rem rgba(37,99,235,.14);
}

.lead-public .lead-capture-form .lead-button{
  grid-column:1 / -1;
}

.lead-public .lead-hp{
  position:absolute;
  left:-9999px;
  opacity:0;
}

.lead-public .lead-video{
  aspect-ratio:16 / 9;
  width:100%;
  overflow:hidden;
  border-radius:8px;
  background:#0f172a;
}

.lead-public .lead-video iframe{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  border:0 !important;
  border-radius:8px;
}

.lead-public-alert{
  max-width:1040px;
  margin:24px auto 0;
  padding:14px 18px;
  border-radius:8px;
  color:#991b1b;
  background:#fee2e2;
}

@media (max-width: 900px){
  .bots-dashboard .header{
    display:block;
  }

  .bots-dashboard .actions{
    justify-content:flex-start;
    margin-top:14px;
  }

  .bots-dashboard .summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .bots-dashboard .toolbar-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .bots-dashboard .search-form,
  .bots-dashboard .search-form .field{
    width:100%;
  }

  .command-center .hero{
    display:block;
  }

  .command-center .hero-actions{
    justify-content:flex-start;
    margin-top:16px;
  }

  .command-center .overview-grid,
  .command-center .toolkit-grid,
  .command-center .recent-grid,
  .command-center .dashboard-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .reseller-accounts .header{
    display:block;
  }

  .reseller-accounts .actions{
    justify-content:flex-start;
    margin-top:14px;
  }

  .reseller-accounts .summary,
  .reseller-accounts .form-grid{
    grid-template-columns:1fr;
  }

  .reseller-accounts .toolbar-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .reseller-accounts .search-form,
  .reseller-accounts .search-form .field{
    width:100%;
  }

  .lead-magnet-builder .header,
  .lead-magnet-builder .campaign-head{
    display:block;
  }

  .lead-magnet-builder .actions{
    justify-content:flex-start;
    margin-top:14px;
  }

  .lead-magnet-builder .summary,
  .lead-magnet-builder .grid,
  .lead-public .lead-hero,
  .lead-public .lead-benefits,
  .lead-public .lead-testimonials,
  .lead-public .lead-capture-form{
    grid-template-columns:1fr;
  }

  .lead-magnet-builder .lead-builder-toolbar{
    grid-template-columns:1fr;
  }

  .lead-magnet-builder .lead-builder-toolbar .toolbar-group{
    grid-template-columns:1fr;
  }

  .lead-public{
    padding:18px 10px;
  }

  .lead-public .lead-block,
  .lead-public .lead-public-success{
    padding:22px;
  }

  .lead-public h1{
    font-size:34px;
  }

  .lead-public h2{
    font-size:23px;
  }

  .conversations-page .header{
    display:block;
  }

  .conversations-page .actions{
    justify-content:flex-start;
    margin-top:14px;
  }

  .conversations-page .summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .conversations-layout{
    grid-template-columns:1fr;
  }

  .conversation-list{
    max-height:430px;
  }
}

.content-auth{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:32px 0;
}

.content-auth .container{
  max-width:1120px;
}

.content-auth .media{
  display:flex;
  width:100%;
  gap:34px;
}

.content-auth .media-body{
  flex:1;
  min-width:0;
  padding:36px;
  border-radius:28px;
  background:linear-gradient(145deg,#eef6ff,#ffffff);
  border:1px solid rgba(226,232,240,.9);
  box-shadow:var(--mag-shadow);
}

.sign-wrapper{
  width:420px;
  max-width:100%;
  display:flex;
  align-items:center;
  padding:34px;
  border-radius:28px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(226,232,240,.92);
  box-shadow:var(--mag-shadow);
}

.sign-wrapper h3,
.sign-wrapper h4{
  font-weight:700;
  color:var(--mag-text);
}

.tx-color-03{color:var(--mag-muted)}
.tx-16{font-size:16px}
.tx-13{font-size:13px}
.tx-12{font-size:12px}
.tx-center{text-align:center}
.mg-b-5{margin-bottom:5px}
.mg-b-40{margin-bottom:40px}
.mg-t-20{margin-top:20px}
.pd-t-20{padding-top:20px}
.wd-100p{width:100%}
.ht-100p{min-height:100%}
.pos-relative{position:relative}
.align-items-stretch{align-items:stretch}
.btn-brand-02{
  --bs-btn-color:#fff;
  --bs-btn-bg:var(--mag-primary);
  --bs-btn-border-color:var(--mag-primary);
  --bs-btn-hover-color:#fff;
  --bs-btn-hover-bg:#1747b8;
  --bs-btn-hover-border-color:#1747b8;
}
.btn-block{width:100%}
.divider-text{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--mag-muted);
  margin:22px 0;
  font-size:13px;
}
.divider-text:before,
.divider-text:after{
  content:"";
  flex:1;
  height:1px;
  background:var(--mag-line);
}

.auth-page{
  min-height:calc(100vh - 68px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(37,99,235,.12), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgba(6,182,212,.12), transparent 28rem),
    linear-gradient(180deg,#f8fbff,#eef4fb);
}

.auth-shell{
  width:min(1120px,100%);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,440px);
  gap:22px;
  align-items:stretch;
}

.auth-shell .auth-card:first-child.auth-card-wide{
  grid-column:auto;
}

.auth-panel,
.auth-card{
  border:1px solid rgba(219,229,242,.95);
  border-radius:24px;
  background:rgba(255,255,255,.92);
  box-shadow:0 24px 70px rgba(15,23,42,.10);
}

.auth-panel{
  min-height:560px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:44px;
  overflow:hidden;
  position:relative;
  background:
    linear-gradient(135deg,rgba(37,99,235,.94),rgba(8,182,216,.86)),
    #2563eb;
  color:#fff;
}

.auth-panel:after{
  content:"";
  position:absolute;
  right:-88px;
  bottom:-110px;
  width:280px;
  height:280px;
  border:44px solid rgba(255,255,255,.16);
  border-radius:999px;
}

.auth-logo{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:240px;
  margin-bottom:42px;
}

.auth-logo img{
  display:block;
  width:auto;
  max-width:220px;
  height:48px;
  object-fit:contain;
}

.auth-panel .auth-logo{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.94);
}

.auth-eyebrow{
  display:block;
  margin-bottom:10px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
}

.auth-panel h1{
  max-width:520px;
  margin:0;
  color:#fff;
  font-size:42px;
  line-height:1.05;
  font-weight:700;
}

.auth-panel p{
  max-width:560px;
  margin:16px 0 0;
  color:rgba(255,255,255,.86);
  font-size:16px;
  line-height:1.7;
}

.auth-highlights{
  display:grid;
  gap:10px;
  margin-top:34px;
  position:relative;
  z-index:1;
}

.auth-highlights span{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:12px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-weight:700;
}

.auth-highlights i{
  width:20px;
  text-align:center;
}

.auth-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:34px;
}

.auth-card-wide{
  min-width:0;
}

.auth-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}

.auth-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  flex:0 0 48px;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#08b6d8);
}

.auth-card h2,
.auth-success h3{
  margin:0;
  color:#172033;
  font-weight:700;
}

.auth-card h2{
  font-size:26px;
}

.auth-card-head p,
.auth-success p{
  margin:4px 0 0;
  color:#64748b;
  line-height:1.5;
}

.auth-form{
  display:grid;
  gap:15px;
}

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

.auth-grid .wide{
  grid-column:1 / -1;
}

.auth-form .field label,
.auth-form .label-row label{
  display:block;
  margin-bottom:7px;
  color:#273449;
  font-size:13px;
  font-weight:700;
}

.auth-form .label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.auth-form .label-row a,
.auth-alt a{
  color:#2563eb;
  font-weight:700;
}

.auth-form .form-control{
  min-height:48px;
  border:1px solid #dbe5f2;
  border-radius:12px;
  color:#172033;
  background:#fff;
  box-shadow:none;
}

.auth-form .form-control:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 .22rem rgba(37,99,235,.12);
}

.auth-check{
  display:flex;
  align-items:center;
  gap:9px;
  color:#64748b;
  font-size:13px;
  font-weight:600;
}

.auth-check input,
.auth-choice input{
  accent-color:#2563eb;
}

.auth-choice{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.auth-choice label{
  display:flex !important;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin:0 !important;
  padding:10px 12px;
  border:1px solid #dbe5f2;
  border-radius:12px;
  background:#f8fbff;
  color:#273449 !important;
}

.auth-recaptcha{
  min-height:0;
}

.auth-recaptcha:empty{
  display:none;
}

.auth-recaptcha .cf-turnstile{
  max-width:100%;
  overflow:hidden;
}

.auth-submit{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:12px;
  font-weight:700;
  background:linear-gradient(135deg,#2563eb,#08b6d8);
  box-shadow:0 16px 34px rgba(37,99,235,.22);
}

.auth-terms{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
}

.auth-alt{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #edf2f7;
  color:#64748b;
  text-align:center;
}

.auth-success{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:18px;
  border:1px solid #bbf7d0;
  border-radius:16px;
  background:#f0fdf4;
}

.auth-success > span{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:0 0 36px;
  border-radius:999px;
  color:#fff;
  background:#10b981;
}

@media (max-width:1199px){
  .mag-user-copy{display:none}
}

@media (max-width:991.98px){
  .auth-page{
    align-items:flex-start;
    padding:22px 14px;
  }

  .auth-shell{
    grid-template-columns:1fr;
  }

  .auth-card{
    order:1;
  }

  .auth-panel{
    order:2;
    min-height:auto;
    padding:28px;
  }

  .auth-panel h1{
    font-size:32px;
  }

  .auth-logo{
    margin-bottom:24px;
  }

  .mag-sidebar{
    transform:translateX(-104%);
    transition:transform .22s ease;
  }

  body.mag-sidebar-open .mag-sidebar{
    transform:translateX(0);
  }

  .mag-sidebar-backdrop{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.36);
    backdrop-filter:blur(3px);
    z-index:1035;
  }

  body.mag-sidebar-open .mag-sidebar-backdrop{
    display:block;
  }

  .mag-main{
    padding-left:0;
  }

  .mag-topbar{
    padding:14px 16px;
  }

  .mag-page{
    padding:18px 14px;
  }

  .content-1,
  .main-content{
    border-radius:20px;
    padding:18px;
  }

  .bot-editor .header{
    flex-direction:column;
    gap:16px;
  }

  .bot-editor .actions{
    justify-content:flex-start;
  }

  .ad-builder .header,
  .ad-builder .campaign-head,
  .book-builder .header,
  .book-builder .campaign-head{
    flex-direction:column;
    gap:16px;
  }

  .ad-builder .actions,
  .book-builder .actions{
    justify-content:flex-start;
  }

  .book-builder .editor-layout{
    grid-template-columns:1fr;
  }

  .book-builder .editor-side{
    position:static;
  }

  .book-builder .book-editor-pager{
    align-items:flex-start;
    flex-direction:column;
  }

  .book-builder .book-editor-pager-actions{
    justify-content:flex-start;
    width:100%;
  }

}

@media (max-width:575.98px){
  .auth-card,
  .auth-panel{
    padding:22px;
    border-radius:20px;
  }

  .auth-card-head{
    align-items:flex-start;
  }

  .auth-grid,
  .auth-choice{
    grid-template-columns:1fr;
  }

  .auth-panel h1{
    font-size:28px;
  }

  .auth-panel p{
    font-size:15px;
  }

  .auth-logo img{
    max-width:190px;
    height:42px;
  }

  .mag-public-page .page-hero{
    min-height:220px;
    padding:48px 14px 32px;
  }

  .mag-public-page .page-body{
    padding:22px 10px 34px;
  }

  .mag-public-page .page-card{
    padding:24px 18px;
    border-radius:20px;
  }

  .mag-public-page .page-content{
    font-size:15px;
    line-height:1.75;
  }

  .mag-public-page .page-content h1{
    font-size:28px;
  }

  .mag-public-page .page-content h2{
    font-size:24px;
  }

  .mag-public-page .page-content h3{
    font-size:20px;
  }

  .mag-public-page .page-content table{
    display:block;
    overflow-x:auto;
  }

  .mag-error-page{
    min-height:calc(100vh - 56px);
    padding:42px 14px;
  }

  .mag-error-page .error-wrap{
    padding:30px 18px;
    border-radius:20px;
  }

  .mag-error-page .error-mark{
    width:58px;
    height:58px;
    border-radius:18px;
    font-size:22px;
  }

  .mag-error-page p{
    font-size:15px;
  }

  .mag-error-page .actions,
  .mag-error-page .btn{
    width:100%;
  }

  .bots-dashboard .summary{
    grid-template-columns:1fr;
  }

  .bots-dashboard .actions .btn,
  .bots-dashboard .search-form .btn{
    width:100%;
  }

  .bots-dashboard .search-form{
    display:grid;
    grid-template-columns:1fr;
  }

  .command-center .hero{
    padding:20px;
  }

  .command-center .hero h1{
    font-size:27px;
  }

  .command-center .hero-actions .btn{
    width:100%;
  }

  .command-center .overview-grid,
  .command-center .toolkit-grid,
  .command-center .recent-grid,
  .command-center .dashboard-grid,
  .command-center .signal-list{
    grid-template-columns:1fr;
  }

  .reseller-accounts .summary,
  .reseller-accounts .usage-card,
  .reseller-accounts .grid{
    grid-template-columns:1fr;
  }

  .reseller-accounts .actions .btn,
  .reseller-accounts .search-form .btn,
  .reseller-accounts .search-form .form-select,
  .reseller-accounts .save-bar .btn{
    width:100%;
  }

  .reseller-accounts .save-bar{
    justify-content:stretch;
  }

  .conversations-page .summary{
    grid-template-columns:1fr;
  }

  .conversations-page .actions .btn{
    width:100%;
  }

  .conversation-panel .conversation-head{
    display:block;
  }

  .conversation-toggle{
    margin-top:12px;
    width:100%;
    justify-content:center;
  }

  .conversation-thread{
    padding:16px;
  }

  .conversation-message .body{
    max-width:86%;
  }

  .reply-static .reply-footer{
    align-items:stretch;
    flex-direction:column;
  }

  .reply-static .btn{
    width:100%;
  }

  .mag-topbar{
    align-items:flex-start;
  }

  .mag-topbar-left strong{
    font-size:16px;
  }

  .mag-create-button span{
    display:none;
  }

  .mag-user-toggle{
    padding:5px;
  }

  .mag-user-toggle .fa-chevron-down{
    display:none;
  }

  .asset-manager-control,
  .asset-manager-upload{
    grid-template-columns:1fr;
  }

  .asset-manager-control{
    flex-direction:column;
  }

  .mag-page{
    padding-inline:10px;
  }

  .mag-footer{
    flex-direction:column;
    align-items:stretch;
    padding-inline:16px;
  }

  .mag-account-footer{
    margin:0 10px 18px;
  }

  .mag-account-footer .footer-links{
    justify-content:flex-start;
  }

  .mag-account-footer .footer-links a{
    flex:1 1 auto;
    justify-content:center;
  }

  .mag-public-footer{
    padding:22px 10px;
  }

  .mag-public-footer .footer-inner{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }

  .mag-public-footer .footer-links{
    justify-content:flex-start;
  }

  .mag-public-footer .footer-links a{
    min-height:auto;
  }

  .content-auth{
    padding:18px 0;
  }

  .sign-wrapper{
    width:100%;
    padding:24px;
  }

  .table{
    min-width:720px;
  }

  .monitors,
  .portlet-body{
    overflow-x:auto;
  }

  .bot-editor .grid{
    grid-template-columns:1fr;
  }

  .bot-editor .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .bot-editor .section{
    padding:16px;
    border-radius:16px;
  }

  .bot-editor .section-head{
    gap:10px;
  }

  .bot-editor .tabs .nav{
    display:grid;
    grid-template-columns:1fr;
  }

  .bot-editor .tabs .nav-link{
    justify-content:center;
  }

  .bot-editor .actions,
  .bot-editor .save-bar{
    width:100%;
  }

  .bot-editor .actions .btn,
  .bot-editor .save-bar .btn{
    flex:1 1 auto;
  }

  .bot-editor .save-bar{
    bottom:10px;
  }

  .ad-builder .summary,
  .ad-builder .grid,
  .book-builder .summary,
  .book-builder .grid{
    grid-template-columns:1fr;
  }

  .ad-builder .section,
  .ad-builder .variation,
  .book-builder .section{
    padding:16px;
    border-radius:16px;
  }

  .ad-builder .tabs .nav,
  .book-builder .tabs .nav{
    display:grid;
    grid-template-columns:1fr;
  }

  .ad-builder .tabs .nav-link,
  .book-builder .tabs .nav-link{
    justify-content:center;
  }

  .ad-builder .actions,
  .ad-builder .save-bar,
  .book-builder .actions,
  .book-builder .save-bar{
    width:100%;
  }

  .ad-builder .actions .btn,
  .ad-builder .save-bar .btn,
  .book-builder .actions .btn,
  .book-builder .save-bar .btn{
    flex:1 1 auto;
  }

  .book-builder .page-row{
    grid-template-columns:1fr;
  }

  .book-builder .page-row .drag{
    display:none;
  }

  .book-builder .page-actions{
    justify-content:flex-start;
  }

  .book-builder .book-editor-pager-actions .btn{
    flex:1 1 auto;
  }

  .book-builder .book-page,
  .book-builder .flipbook-page{
    min-height:0;
    padding:24px;
  }
}
