/* Design tokens */
:root{
  --blue:#173fa8;
  --blue-2:#224fbe;
  --blue-3:#0f2e82;
  --red:#e11e2d;
  --red-2:#c81625;
  --ink:#162033;
  --text:#24324a;
  --muted:#6f7b91;
  --line:#d9e1f0;
  --bg:#eef3fb;
  --card:#ffffff;
  --soft:#f6f8fd;
  --success:#198754;
  --warning:#d97706;
  --danger:#c91d2e;
  --feedback-tone-1:#d73027;
  --feedback-tone-2:#f18f01;
  --feedback-tone-3:#d2a106;
  --feedback-tone-4:#e2c43b;
  --feedback-tone-5:#f5d94e;
  --feedback-tone-border:rgba(16,20,28,.7);
  --feedback-tone-text-dark:#13151a;
  --radius:18px;
  --radius-sm:14px;
  --shadow:0 16px 44px rgba(20,48,115,.10);
  --shadow-soft:0 8px 24px rgba(20,48,115,.08);
  --topbar-avatar-size:80px;
  --topbar-avatar-size-mobile:34px;
  --text-base:16px;
  --text-small:14px;
  --text-section:20px;
  --text-page:30px;
  --space-card:24px;
  --space-section:28px;
  --control-height:46px;
}
/* Base */
[hidden]{display:none !important}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(34,79,190,.10), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(225,30,45,.08), transparent 22%),
    linear-gradient(180deg,#f6f8fe 0%, #edf2fb 100%);
  font:var(--text-base)/1.6 "Inter","Segoe UI",Roboto,Arial,sans-serif;
}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.ui-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:"Material Symbols Rounded";
  font-weight:normal;
  font-style:normal;
  font-size:1.15em;
  line-height:1;
  letter-spacing:normal;
  text-transform:none;
  white-space:nowrap;
  direction:ltr;
  -webkit-font-smoothing:antialiased;
  font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24;
}
.ui-icon.icon-tight{font-size:1.05em}
.btn .ui-icon,
.nav-link .ui-icon,
.topbar-profile .ui-icon{font-size:1.1em}
.metric-label .ui-icon,
.section-title .ui-icon{font-size:1em}
code{
  background:#eff3fb;
  border:1px solid var(--line);
  border-radius:10px;
  padding:.16rem .42rem;
  font-size:.94em;
}

/* Layout and header */
.container{max-width:1380px;margin:0 auto;padding:18px 20px 40px}
.container.shell{padding-top:0}
.topbar{
  margin:0 0 12px;
  padding:10px 14px;
  background:linear-gradient(135deg,#173fa8 0%,#1e4fc2 48%,#0f2e82 100%);
  color:#fff;
  border-radius:0;
  box-shadow:0 18px 42px rgba(23,63,168,.26);
}
.topbar a{color:#fff}
.topbar-inner{display:grid;gap:8px;padding:0}
.topbar-shell{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}
.brand{display:flex;align-items:center;gap:14px}
.brand-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
  color:var(--blue);
  font-weight:900;
  box-shadow:0 0 0 6px rgba(255,255,255,.12);
}
.topbar-brand{
  display:inline-flex;align-items:center;gap:10px;
  padding:7px 13px;border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  border:1px solid rgba(255,255,255,.18)
}
.topbar-brand .brand-dot{width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.18)}
.topbar-copy{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.topbar-copy h1,.topbar-subtitle{display:none}
.topbar-actions,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.topbar-actions{justify-content:flex-end}
.topbar-nav{display:flex;gap:10px;flex-wrap:wrap}
.topbar-nav .btn{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);box-shadow:none}
.topbar-nav .btn:hover{background:rgba(255,255,255,.26)}
.topbar-nav .btn.active{background:rgba(255,255,255,.32);color:#fff;border-color:rgba(255,255,255,.38)}
.nav-link{position:relative}
.nav-badge{
  display:inline-flex;align-items:center;justify-content:center;margin-left:6px;
  padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.2);font-size:10px;font-weight:900;letter-spacing:.05em
}
.nav-link.is-locked{opacity:.92}
.nav-link.is-soon{opacity:1}
.nav-link.active .nav-badge{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.28);color:#fff}
.topbar-nav .nav-link.is-locked,
.topbar-mobile-links .nav-link.is-locked{background:rgba(255,255,255,.08)}
.topbar-nav .nav-link.is-soon,
.topbar-mobile-links .nav-link.is-soon{background:rgba(255,255,255,.16)}
.topbar-user{color:rgba(255,255,255,.84);font-weight:700}
.topbar-info{display:inline-flex;align-items:center;gap:10px;color:rgba(255,255,255,.84);font-size:13px;font-weight:700;white-space:nowrap}
.topbar-mobile{display:none}
.topbar-mobile[open]{position:relative}
.topbar-mobile-title,.topbar-mobile-account{display:none}
.topbar-mobile summary{
  list-style:none;display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);color:#fff;font-weight:800;cursor:pointer
}
.topbar-mobile summary::-webkit-details-marker{display:none}
.topbar-mobile-panel{
  margin-top:10px;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg,#214bb5 0%,#173fa8 100%);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 40px rgba(12,31,82,.34);
  display:grid;
  gap:10px
}
.topbar-mobile-links{display:grid;gap:10px}
.topbar-mobile-links .btn{width:100%}
.topbar-mobile-links .btn:hover{background:rgba(255,255,255,.26)}
.topbar-mobile-links .btn.active{background:rgba(255,255,255,.32);color:#fff;border-color:rgba(255,255,255,.38)}
.topbar-menu-toggle{
  display:block;
  margin:2px 0;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18)
}
.topbar-menu-toggle.desktop{
  min-width:280px;
  background:rgba(255,255,255,.1)
}
.toggle-field{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  color:#fff
}
.toggle-field input{
  position:absolute;
  opacity:0;
  pointer-events:none
}
.toggle-copy{display:grid;gap:2px;min-width:0}
.toggle-title{font-size:14px;font-weight:800;line-height:1.3}
.toggle-hint{font-size:12px;color:rgba(255,255,255,.78);line-height:1.35}
.toggle-switch{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  width:46px;
  height:26px;
  padding:3px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.26);
  transition:background .2s ease,border-color .2s ease
}
.toggle-switch-knob{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(15,46,130,.28);
  transition:transform .2s ease
}
.toggle-field input:checked + .toggle-switch{
  background:#fff;
  border-color:#fff
}
.toggle-field input:checked + .toggle-switch .toggle-switch-knob{
  transform:translateX(20px);
  background:var(--blue)
}
.topbar-mobile-title{
  min-width:0;
  font-size:clamp(18px,4.8vw,28px);
  font-weight:900;
  line-height:1.15;
  text-align:center;
  color:#fff;
  overflow:visible;
}
.topbar-mobile-title .cell-ellipsis{
  line-height:1.15;
  padding-bottom:2px;
}
.topbar-mobile-account{
  min-width:0;
  justify-content:flex-end;
  align-items:center;
}
.topbar-mobile-account-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  min-height:40px;
  padding:6px 10px;
  border-radius:14px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
  color:#fff;
  white-space:nowrap;
  text-decoration:none;
}
.topbar-mobile-account-pill:hover{text-decoration:none}
.topbar-mobile-plan-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.topbar-mobile-plan-user{
  display:inline-block;
  max-width:92px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,.86);
}
.shell{display:block}
.sidebar{display:none}
.content{display:block}
.content > * + *{margin-top:var(--space-section)}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap}
.page-head-copy{display:grid;gap:8px}
.page-head-inline{width:100%}
.page-head-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:nowrap}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--blue-3);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase
}
.h1{font-size:clamp(28px,3vw,var(--text-page));line-height:1.18;margin:0;color:var(--ink)}
.h2{font-size:clamp(20px,2.3vw,22px);line-height:1.24;margin:0;color:var(--ink)}
.muted{color:var(--muted)}
.hint,.small{font-size:var(--text-small);color:#4c5a74}
.card,.surface,.stat,.metric-card,.table-wrap{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(217,225,240,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card,.surface{padding:var(--space-card)}
.surface{background:linear-gradient(180deg,#fff,#f9fbff)}
.stack{display:grid;gap:14px}
.section-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.section-header.tight{margin-bottom:14px}
.section-title{display:grid;gap:6px}
.stats-grid,
.metric-grid,
.page-summary-grid,
.page-summary-grid.compact,
.dashboard-stats-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(0,1fr);
  grid-template-columns:none;
  gap:16px;
}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.stat,.metric-card{
  position:relative;
  overflow:hidden;
  padding:20px 20px 18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:120px;
}
.module-card{display:grid;gap:14px;align-content:start}
.module-card.locked{background:linear-gradient(180deg,#fbfcff,#f5f7fd);border-style:dashed}
.module-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.module-card-copy{display:grid;gap:6px}
.module-card-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.module-card .badge{align-self:flex-start}
.inline-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.info-box{
  padding:16px 18px;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#f2f6ff);
  border:1px solid #d7e3ff
}
.subsection-card{
  padding:20px;
  border-radius:16px;
  border:1px solid #e5ebf7;
  background:linear-gradient(180deg,#fcfdff,#f7faff);
  box-shadow:none;
}
.section-stack{
  display:grid;
  gap:20px;
}
.form-actions-primary{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.danger-zone{
  display:grid;
  gap:14px;
  padding:20px;
  border-radius:16px;
  border:1px solid rgba(201,29,46,.18);
  background:linear-gradient(180deg,#fff9fa,#fff4f5);
}
.danger-zone .h2{
  color:#7f1d1d;
}
.danger-zone-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.btn-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.bullet-list{margin:0;padding-left:18px;display:grid;gap:8px;color:var(--text)}
.site-footer{padding:0 0 28px}
.site-footer-inner{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 20px;border-radius:18px;background:rgba(255,255,255,.88);
  border:1px solid rgba(217,225,240,.95);box-shadow:var(--shadow-soft)
}
.site-footer-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.stat::before,.metric-card::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--blue),var(--red))}
.stat.is-selected{
  border-color:#9db6f5;
  box-shadow:0 14px 30px rgba(34,79,190,.14);
  background:linear-gradient(180deg,#ffffff,#f6f9ff);
}
a.stat,
a.metric-card,
.stat-link{
  text-decoration:none;
  transition:transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}
a.stat:hover,
a.metric-card:hover,
.stat-link:hover{
  text-decoration:none;
  transform:translateY(-2px);
  background:linear-gradient(180deg,#ffffff,#f7faff);
  box-shadow:0 18px 34px rgba(20,48,115,.12);
}
a.stat.is-selected:hover,
a.metric-card.is-selected:hover,
.stat-link.is-selected:hover{
  background:linear-gradient(180deg,#ffffff,#f6f9ff);
}
.metric-label{
  display:block;
  width:100%;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:800;
  text-align:center;
}
.value,.metric-value{
  font-size:24px;
  font-weight:900;
  color:var(--ink);
  line-height:1.1;
  margin-top:auto;
  padding-top:16px;
  text-align:center;
  align-self:center;
}
.value.compact,.metric-value.compact{font-size:24px}
.list-stack{display:grid;gap:12px}
.list-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}

/* Buttons, badges and notices */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--control-height);
  padding:11px 18px;border:0;border-radius:14px;font-weight:800;font-size:15px;cursor:pointer;
  text-decoration:none;transition:transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  background:linear-gradient(135deg,var(--blue) 0%, var(--blue-2) 100%);color:#fff;box-shadow:0 12px 24px rgba(23,63,168,.18);
  white-space:nowrap;
}
.btn .btn-label{display:inline;white-space:nowrap}
.btn:hover{text-decoration:none;transform:translateY(-1px);background:linear-gradient(135deg,#16398f 0%, #1b45a9 100%)}
.btn.secondary{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.22);box-shadow:none}
.topbar .btn.secondary:hover{background:rgba(255,255,255,.2)}
.content .btn.secondary,.card .btn.secondary,.table-wrap .btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}
.content .btn.secondary:hover,.card .btn.secondary:hover,.table-wrap .btn.secondary:hover{background:#f7faff}
.btn.ghost{background:#f5f7fb;color:#26447f;border:1px solid #dce4f4;box-shadow:none}
.btn.ghost:hover{background:#eef4ff}
.btn.danger{background:#fff;color:var(--red);box-shadow:none}
.content .btn.danger,.card .btn.danger{background:#182640;color:#fff}
.btn.small{min-height:44px;padding:8px 14px;border-radius:12px;font-size:14px}
.page-section{display:grid;gap:24px}
.page-section + .page-section{margin-top:4px}
.stats-grid > *,
.metric-grid > *,
.page-summary-grid > *,
.dashboard-stats-grid > *{
  min-width:0;
}
.notice{padding:14px 16px;border-radius:14px;border:1px solid transparent;margin-bottom:16px;font-weight:700}
.notice.success{background:#ecfdf3;border-color:#a8f1c4;color:#146c43}
.notice.error{background:#fff1f2;border-color:#fecdd3;color:#b42318}
.badge,.pill{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid transparent;white-space:nowrap}
.badge.ok,.pill.ok{background:#ecfdf3;border-color:#b7ebca;color:#146c43}
.badge.warn,.pill.warn{background:#fff4e5;border-color:#fed7aa;color:#b45309}
.badge.danger,.pill.danger{background:#fff1f2;border-color:#fecdd3;color:#b42318}
.badge.info,.pill.info{background:#eef5ff;border-color:#c7d8ff;color:#2146a1}
.status-dot{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:50%;
  vertical-align:middle;
  box-shadow:0 0 0 3px rgba(22,32,51,.06);
}
.status-dot.ok{background:var(--success)}
.status-dot.danger{background:var(--danger)}
.status-dot.warn{background:var(--warning)}

/* Filters and forms */
.filter-card{padding:20px}
.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(min(100%,180px),1fr));gap:14px;align-items:end}
.filter-grid.compact{grid-template-columns:minmax(220px,320px) auto}
.filter-panel summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;
  font-weight:800;color:var(--ink)
}
.filter-panel summary::-webkit-details-marker{display:none}
.filter-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#eef5ff;border:1px solid #c7d8ff;color:#2146a1;font-size:12px;font-weight:800}
.filter-body{margin-top:10px}
.filter-actions-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.form-grid{display:grid;gap:14px}
.form-row,.grid-2,.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field label,label{display:block;margin:0 0 8px;font-weight:800;color:var(--ink);font-size:14px}
.field label.field-label-danger{color:var(--danger)}
.field input,.field textarea,.field select,input[type="text"],input[type="url"],input[type="password"],input[type="date"],input[type="email"],select,textarea{
  width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--line);
  background:#fff;color:var(--ink);font:inherit;transition:border-color .2s, box-shadow .2s, transform .2s;
  min-height:var(--control-height);
}
.field textarea,textarea{min-height:120px;resize:vertical}
.field input:hover,.field textarea:hover,.field select:hover,input:hover,select:hover,textarea:hover{border-color:#b5c5e6}
.field input:focus,.field textarea:focus,.field select:focus,input:focus,select:focus,textarea:focus{outline:none;border-color:#5b7ed8;box-shadow:0 0 0 4px rgba(34,79,190,.12)}
.checkbox-row{display:flex;align-items:center;gap:10px;margin:14px 0 18px;font-weight:700;color:var(--ink)}
.checkbox-row input{width:auto;margin:0;accent-color:var(--blue)}
.campaign-status-badge{margin-left:8px;vertical-align:middle}
.campaign-limit-note{margin-top:8px}
.campaign-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.campaign-name-row input{flex:1 1 220px;min-width:0}
.campaign-state-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px}
.campaign-state-meta{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:var(--ink)}
.campaign-toggle-field{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  cursor:pointer;
}
.campaign-toggle-field input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.campaign-toggle-field .toggle-switch{
  background:#edf2ff;
  border-color:#c7d8ff;
}
.campaign-toggle-field .toggle-switch-knob{
  background:var(--blue);
}
.campaign-toggle-field input:checked + .toggle-switch{
  background:var(--blue);
  border-color:var(--blue);
}
.campaign-toggle-field input:checked + .toggle-switch .toggle-switch-knob{
  transform:translateX(20px);
  background:#fff;
}
.campaign-toggle-field.is-disabled{
  opacity:.58;
  cursor:not-allowed;
}
.campaign-toggle-text{font-size:14px;font-weight:700}
.campaign-toggle-field.compact{
  gap:8px;
}
.campaign-toggle-field.compact .campaign-toggle-text{
  display:none;
}
.table-row-input{
  min-width:0;
  width:100%;
  max-width:none;
}
.table-status-inline{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
}
.table-tags td{
  vertical-align:middle;
}
.table-tags th:nth-child(1),
.table-tags td:nth-child(1){
  width:24%;
}
.table-tags th:nth-child(2),
.table-tags td:nth-child(2){
  width:22%;
}
.table-tags th:nth-child(3),
.table-tags td:nth-child(3){
  width:14%;
  white-space:nowrap;
}
.table-tags th:nth-child(4),
.table-tags td:nth-child(4){
  width:8%;
  white-space:nowrap;
}
.table-tags th:nth-child(5),
.table-tags td:nth-child(5){
  width:16%;
  white-space:nowrap;
}
.table-tags th:nth-child(6),
.table-tags td:nth-child(6){
  width:16%;
}
.table-tags td:nth-child(1) input[type="text"]{
  width:100%;
  max-width:none;
  min-width:0;
}

.table-tags th:nth-child(1),
.table-tags td:nth-child(1){
  width:auto;
}

.table-tags th:nth-child(2),
.table-tags td:nth-child(2){
  width:10%;
  white-space:nowrap;
}

.table-tags th:nth-child(3),
.table-tags td:nth-child(3){
  width:7%;
  white-space:nowrap;
}

.table-tags th:nth-child(4),
.table-tags td:nth-child(4),
.table-tags th:nth-child(5),
.table-tags td:nth-child(5){
  width:1%;
  white-space:nowrap;
}

.table.table-tags td.actions-cell{
  display:table-cell;
  text-align:right;
  white-space:nowrap;
}
.table.table-tags td.actions-cell .row-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.tag-status-dot{
  flex:0 0 auto;
  background:var(--danger);
}
.campaign-toggle-field.compact input:checked + .toggle-switch + .tag-status-dot{
  background:var(--success);
}
.campaign-toggle-field.compact input:not(:checked) + .toggle-switch + .tag-status-dot{
  background:var(--danger);
}
.qr-preview-card{display:grid;gap:18px;justify-items:center;text-align:center}
.qr-preview-image{width:min(100%,220px);padding:14px;border-radius:20px;background:#fff;border:1px solid var(--line)}
.qr-preview-image img{display:block;width:100%;height:auto}
.key-value-item.full{grid-column:1/-1}
.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.inline-form input,.inline-form select{margin:0}
.inline-form.dense{gap:10px}

/* Tables */
.table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
}
.list-pagination{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}
.list-pagination-form{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-right:auto;
}
.inline-select{
  display:flex;
  align-items:center;
  gap:8px;
}
.inline-select select{
  min-width:84px;
}
.table{
  width:100%;
  max-width:100%;
  min-width:0;
  border-collapse:separate;
  border-spacing:0;
  table-layout:auto;
}
.table.table-compact{min-width:0}
.table.responsive-table{table-layout:auto}
.table.table-dashboard th,
.table.table-dashboard td{padding:12px 10px}
.table.table-dashboard th:last-child,
.table.table-dashboard td:last-child{max-width:220px;word-break:break-word}
.table.responsive-table th,
.table.responsive-table td{
  width:auto;
  word-break:normal;
  overflow-wrap:anywhere;
}
.table.responsive-table td::before{content:none}
.cell-ellipsis{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table.table-tags-mobile th,
.table.table-tags-mobile td{padding:12px 10px}
.table.table-tags-mobile td:nth-child(1),
.table.table-tags-mobile td:nth-child(2),
.table.table-tags-mobile td:nth-child(3),
.table.table-tags-mobile td:nth-child(4),
.table.table-tags-mobile td:nth-child(5),
.table.table-tags-mobile td:nth-child(6),
.table.table-tags-mobile td:nth-child(7){white-space:nowrap}
.table.table-tags-mobile td:nth-child(4){max-width:180px;overflow:hidden;text-overflow:ellipsis}
.table.table-tags-mobile .actions-cell{text-align:right}
.table th{
  position:sticky;top:0;z-index:2;
  text-align:left;font-size:13px;letter-spacing:.05em;text-transform:uppercase;font-weight:900;
  padding:15px 14px;color:#41506d;background:linear-gradient(180deg,#f8faff,#eef3fb);border-bottom:1px solid var(--line);
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
}
.table td{padding:14px;border-bottom:1px solid #edf2fb;vertical-align:middle}
.table td .actions,
.table td .campaign-actions,
.table td .inline-actions,
.table td .filter-actions-row{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  width:max-content;
  max-width:100%;
}
.table td .actions .btn,
.table td .campaign-actions .btn,
.table td .inline-actions .btn,
.table td .filter-actions-row .btn{
  flex:0 0 auto;
}
.table td.actions-cell,
.table td[data-label="Akcje"]{
  width:1%;
  white-space:nowrap;
}
.table td.actions-cell{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.table td.actions-cell .actions,
.table td[data-label="Akcje"] .actions{
  justify-content:flex-end;
}
.table tbody tr:hover td{background:#fbfdff}
.table tbody tr:last-child td{border-bottom:0}
.table td code,.code-block{
  display:inline-block;
  background:#eff3fb;
  border:1px solid var(--line);
  border-radius:10px;
  padding:.3rem .55rem;
}
.panel-table-actions{display:grid;gap:10px;min-width:280px}
.panel-table-actions .inline-form input[type="url"]{min-width:220px}

/* Public pages, landing, auth */
.key-value{display:grid;gap:14px}
.landing-page-card{display:grid;gap:22px}
.landing-hero{display:grid;gap:18px;align-items:center}
.landing-copy{display:grid;gap:10px}
.landing-subtitle{font-size:18px}
.landing-promo{
  padding:16px 18px;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#f2f6ff);
  border:1px solid #d7e3ff;color:var(--text)
}
.landing-logo{
  width:84px;height:84px;object-fit:cover;border-radius:20px;border:1px solid var(--line);
  box-shadow:var(--shadow-soft);background:#fff
}
.landing-brand{justify-content:flex-start}
.landing-actions{display:flex;gap:12px;flex-wrap:wrap}
.landing-secondary-btn{color:var(--ink)!important}
.landing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.landing-page-campaign-centered .landing-hero,
.landing-page-campaign-centered .landing-copy,
.landing-page-campaign-centered .landing-actions,
.landing-page-campaign-centered .landing-links,
.landing-page-campaign-centered .landing-grid{
  justify-items:center;
  text-align:center;
}
.landing-page-campaign-centered .landing-brand{
  justify-content:center;
}
.landing-page-campaign-centered .key-value{
  width:min(100%,520px);
  margin:0 auto;
}
.landing-page-campaign-centered .key-value-item{
  text-align:center;
}
.landing-page-campaign-centered .landing-promo{
  width:min(100%,640px);
}
.landing-section{padding:22px}
.landing-links{display:flex;gap:10px;flex-wrap:wrap}
.key-value-item{
  padding:14px;border-radius:16px;background:var(--soft);border:1px solid var(--line)
}
.key-value-item .muted{font-size:14px}
.key-value-item strong{display:block;margin-top:6px;font-size:15px;word-break:break-word;color:var(--ink)}
.public-shell{display:grid;gap:20px}
.public-card{width:min(760px,100%);margin:0 auto}
.hero{padding:24px 0 40px}
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:22px}
.auth-card{width:min(560px,100%);background:linear-gradient(180deg,#fff,#f8fbff)}
.auth-stack{gap:18px}
.auth-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}
.auth-heading .h1{margin:0}
.auth-placeholder-block{display:grid;gap:6px}
.visual-banner{
  padding:14px 15px;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#f1f6ff);border:1px solid #d9e5ff;color:#32508d
}
.status-hero{display:grid;gap:14px;justify-items:center;text-align:center}
.status-icon{
  width:68px;height:68px;border-radius:20px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(34,79,190,.12),rgba(225,30,45,.12));
  border:1px solid var(--line);font-size:28px;font-weight:800;color:var(--ink)
}
.redirect-card{text-align:center}
.redirect-theme{
  background:linear-gradient(160deg,var(--redirect-bg, #0d213f), #102543);
  color:var(--redirect-text, #fff);
}
.redirect-title{color:inherit}
.redirect-copy{color:inherit;opacity:.9}
.redirect-logo{max-width:180px;max-height:70px}
.redirect-brand{justify-content:center}
.redirect-progress > div{animation-duration:var(--redirect-delay, 2s)}
.redirect-powered{margin-top:16px}
.spinner{width:84px;height:84px;border-radius:50%;margin:14px auto 16px;position:relative}
.spinner::before,.spinner::after{content:"";position:absolute;inset:0;border-radius:50%}
.spinner::before{border:6px solid rgba(34,79,190,.12)}
.spinner::after{border:6px solid transparent;border-top-color:var(--blue);border-right-color:var(--red);animation:spin 1.05s linear infinite}
.progress{height:12px;border-radius:999px;background:#e9eef8;overflow:hidden;margin:18px auto 16px;max-width:480px;border:1px solid #d9e1ef}
.progress > div{height:100%;width:0;background:linear-gradient(90deg,var(--blue),var(--red));animation:progress 2s linear forwards}
.logo-preview{max-width:180px;max-height:70px}
.card-media{display:grid;gap:12px;justify-items:center;text-align:center}
.qr-image{max-width:320px;width:100%;height:auto}
.break-all{word-break:break-all}
.centered-stack{justify-items:center;text-align:center}
.narrow-stack{width:min(420px,100%);margin:0 auto}
.empty-state{padding:24px;border:1px dashed #c8d4eb;border-radius:18px;background:#f9fbff;text-align:center;color:var(--muted);font-size:15px}
.auth-links,.hero-links{display:flex;gap:14px;flex-wrap:wrap}
.topbar-title{display:none}
.topbar-subtitle-line{display:none}
.dashboard-actions{flex-wrap:nowrap}
.dashboard-actions .btn{flex:1}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes progress{from{width:0}to{width:100%}}

/* Responsive */
@media (max-width:1100px){
  .stats-grid,.metric-grid,.page-summary-grid,.page-summary-grid.compact,.dashboard-stats-grid{gap:14px}
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .module-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-grid{grid-template-columns:repeat(4,minmax(min(100%,170px),1fr))}
  .form-row,.grid-2,.split{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{
    position:sticky;
    top:0;
    z-index:90;
    margin:0 0 16px;
    padding:8px 12px;
    border-radius:0;
  }
  .topbar-nav-wrap,
  .topbar-brand-slot,
  .topbar-side{display:none}
  .topbar-mobile{display:block}
  .topbar-mobile-title,
  .topbar-mobile-account{display:flex}
  .topbar-shell{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
  .topbar-mobile-panel{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:248px;
    min-width:248px;
    margin-top:0;
    padding:18px 12px;
    border-radius:0;
    z-index:120;
    align-content:start;
    overflow-y:auto;
  }
  .topbar-mobile-links{
    gap:8px;
  }
  .topbar-mobile-links .btn{
    width:100%;
    min-height:46px;
    padding:10px 12px;
    justify-content:flex-start;
  }
  .topbar-mobile-links .nav-badge{
    display:none;
  }
  .topbar-mobile-links .nav-link .ui-icon{
    font-size:1.25em;
  }
}
@media (max-width:760px){
  .container{padding:14px 14px 28px}
  .topbar{padding:12px 14px}
  .topbar-shell{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
  .form-row,.grid-2,.split,.inline-form{display:grid;grid-template-columns:1fr}
  .topbar-actions{display:flex;justify-content:flex-end;min-width:0}
  .topbar-nav{display:none}
  .topbar-actions .btn{display:none}
  .topbar-mobile{display:block}
  .topbar-copy{min-width:0;flex:none}
  .topbar-brand{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar-mobile summary{min-width:46px;padding:8px 10px}
  .topbar-mobile-panel{position:absolute;left:0;top:100%;min-width:220px;z-index:5}
  .actions .btn,.inline-form .btn{width:100%}
  .dashboard-actions{display:flex;flex-wrap:nowrap;gap:8px}
  .dashboard-actions .btn{width:auto;min-width:0;flex:1;padding:10px 10px;font-size:13px}
  .campaign-tabs{padding-bottom:2px}
  .campaign-tab{min-height:48px;padding:10px 12px;font-size:13px}
  .table{min-width:0}
  .table.table-compact{min-width:0}
  .table.responsive-table{table-layout:auto}
  .table.responsive-table th,
  .table.responsive-table td{padding:10px 8px;font-size:12px}
  .table.responsive-table th{
    font-size:11px;
    letter-spacing:.03em;
    white-space:nowrap;
    word-break:keep-all;
    overflow-wrap:normal;
  }
  .stats-grid,.metric-grid,.page-summary-grid,.page-summary-grid.compact,.dashboard-stats-grid{gap:10px}
  .module-grid{grid-template-columns:1fr}
  .module-grid-compact{grid-template-columns:1fr}
  .stat,.metric-card{padding:14px 12px 12px;min-height:98px}
  .metric-label{font-size:10px;letter-spacing:.08em}
  .value,.metric-value{font-size:18px}
  .value.compact,.metric-value.compact{font-size:18px}
  .filter-grid{grid-template-columns:repeat(4,minmax(68px,1fr));gap:10px}
  .filter-grid .field label{font-size:11px;margin-bottom:5px}
  .filter-grid .field input,
  .filter-grid .field select{padding:10px 10px;font-size:13px;border-radius:12px}
  .filter-actions-row{grid-column:1 / -1}
  .table.table-tags-mobile{min-width:0}
  .table.table-tags-mobile th,
  .table.table-tags-mobile td{padding:10px 8px;font-size:12px}
  .table.table-tags-mobile td:nth-child(4){max-width:120px}
  .table.table-tags-mobile td:nth-child(7){width:1%}
  .table.table-tags-mobile .actions-cell{text-align:right}
  .table.table-tags-mobile .actions-cell .btn{padding:8px 10px;font-size:12px;min-height:34px}
  .table .btn.icon-collapse{min-width:38px;padding-inline:10px}
  .table .btn.icon-collapse .btn-label{display:none}
  .content > * + *{margin-top:20px}
  .page-head{
    display:block;
    margin:0;
    gap:0;
  }
  .page-head.page-head-copy-only,
  .page-head.page-head-copy-only > .page-head-copy{
    display:contents;
  }
  .page-head-copy{
    display:block;
    gap:0;
  }
  .page-head .muted{
    margin:0;
  }
  .page-head-row{gap:10px}
  .page-head .eyebrow,
  .page-head .h1{display:none}
  .site-footer-inner{padding:14px 16px}
  .landing-grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .stats-grid,.metric-grid,.page-summary-grid,.page-summary-grid.compact,.dashboard-stats-grid{gap:8px}
  .stat,.metric-card{padding:10px 8px 9px;min-height:86px}
  .metric-label{font-size:9px;letter-spacing:.05em}
  .value,.metric-value{font-size:16px;margin-top:auto;padding-top:10px}
  .value.compact,.metric-value.compact{font-size:16px}
  .filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .topbar-shell{grid-template-columns:auto minmax(0,1fr) auto}
  .topbar-user{display:none}
  .topbar-brand{font-size:11px;padding:7px 11px}
  .topbar-info{display:inline-flex;font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;justify-self:end;white-space:nowrap}
  .dashboard-actions .btn{padding:9px 8px;font-size:12px}
  .page-head-row{align-items:flex-start}
  .page-head-row .h1{font-size:22px}
  .site-footer-inner{flex-direction:column;align-items:flex-start}
  .table{min-width:0}
  .table.responsive-table th,
  .table.responsive-table td{padding:8px 6px;font-size:11px}
  .table.responsive-table th{
    font-size:10px;
    letter-spacing:.02em;
    white-space:nowrap;
    word-break:keep-all;
    overflow-wrap:normal;
  }
  .table.table-tags-mobile td:nth-child(4){max-width:92px}
  .table.table-tags-mobile .actions-cell .btn{padding:7px 8px;font-size:11px;min-height:30px}
  .table .btn.icon-collapse{min-width:34px;padding-inline:8px}
}

/* Shared topbar profile */
.topbar-nav-wrap{min-width:0}
.topbar-brand-slot{display:flex;align-items:center;min-width:0}
.topbar-side{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.topbar-profile{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#fff;
  text-decoration:none;
  min-height:38px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
}
.topbar-profile:hover{text-decoration:none}
.topbar-avatar{
  display:block;
  flex:0 0 var(--topbar-avatar-size);
  width:var(--topbar-avatar-size);
  height:var(--topbar-avatar-size);
  border-radius:50%;
  overflow:hidden;
  background:#fff;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  border:2px solid rgba(255,255,255,.92);
  box-shadow:0 0 0 3px rgba(255,255,255,.12);
}
.topbar-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}
.topbar-profile-copy{display:grid;gap:2px;min-width:0}
.topbar-user{
  color:#fff;
  font-weight:800;
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topbar-plan{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.9);
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.topbar-action.btn.small,
.topbar-action.btn{min-height:38px}

@media (max-width:1100px){
  .topbar-nav-wrap,
  .topbar-brand-slot,
  .topbar-side{
    display:none !important;
  }

  .topbar-mobile{
    display:block !important;
  }

  .topbar-mobile-title,
  .topbar-mobile-account{
    display:flex !important;
  }
}

.stat-link{display:block}
.stat-link:hover{text-decoration:none}
.section-link-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.table-sort{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:inherit;
  text-decoration:none;
  font:inherit;
  white-space:nowrap;
}
.table-sort:hover{text-decoration:none;color:inherit}
.filter-panel .hint{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
}
.filter-panel .hint::before{
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
}
.filter-panel[open] .hint::before{
  transform:rotate(-135deg) translateY(-1px);
}
.section-link-row .btn{margin-left:0}
.feedback-comment-trigger{
  display:block;
  width:100%;
  max-width:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.feedback-comment-trigger:hover{text-decoration:none;color:inherit}
.text-modal{
  position:fixed;
  inset:0;
  z-index:1250;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(8,20,53,.45);
}
.text-modal[hidden]{display:none !important}
.text-modal-card{
  width:min(680px,calc(100vw - 32px));
  max-height:min(80vh,760px);
  overflow:auto;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(217,225,240,.95);
  box-shadow:0 24px 80px rgba(10,24,63,.24);
  padding:18px 18px 20px;
}
.text-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.text-modal-body{
  white-space:pre-wrap;
  word-break:break-word;
  color:var(--text);
}
.text-modal-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#eef3ff;
  color:#0f234e;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

@media (max-width:760px){
  .container{padding:14px 14px 28px}
  .container.shell{padding-top:0}
  .topbar{
    position:sticky;
    top:0;
    z-index:90;
    margin:0 0 10px;
    padding:8px 12px;
    border-radius:0;
    min-height:44px;
  }
  .topbar-inner{padding:0}
  .topbar-shell{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
  .topbar-nav-wrap,
  .topbar-brand-slot,
  .topbar-side{display:none}
  .topbar-mobile{display:block}
  .topbar-mobile-title,
  .topbar-mobile-account{display:flex}
  .topbar-mobile summary{
    min-width:40px;
    min-height:40px;
    padding:7px 9px;
    border-radius:14px;
  }
  .topbar-mobile-panel{position:absolute;left:0;top:calc(100% + 10px);min-width:240px;z-index:95}
  .topbar-mobile-title{
    align-items:center;
    justify-content:center;
    min-height:40px;
    font-size:clamp(17px,5vw,24px);
    line-height:1.15;
  }
  .topbar-mobile-account{
    display:flex;
    align-items:center;
    min-height:40px;
  }
  .topbar-mobile-account-pill{min-height:40px;padding:6px 10px;gap:7px}
  .topbar-mobile-plan-user{max-width:84px}
}

@media (max-width:520px){
  .topbar{padding:7px 10px;min-height:40px;border-radius:0}
  .topbar-shell{grid-template-columns:auto minmax(0,1fr) auto;gap:12px}
  .topbar-mobile summary{min-width:38px;min-height:38px;padding:6px 8px;border-radius:12px}
  .topbar-mobile-title{min-height:38px;font-size:clamp(16px,5.4vw,21px);line-height:1.15}
  .topbar-mobile-account{min-height:38px}
  .topbar-mobile-account-pill{min-height:38px;gap:6px;padding:5px 8px}
  .topbar-mobile-plan-badge{min-height:22px;font-size:10px;padding:2px 7px}
  .topbar-mobile-plan-user{max-width:68px;font-size:10px}
}
.topbar-profile{
  align-items:center;
}

/* Feature-specific components */
.landing-preview-shell{padding-top:34px}
.landing-page-standalone{max-width:960px;margin:0 auto}
.landing-logo-full{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:150px;
  object-fit:contain;
  border-radius:18px;
}
.redirect-logo-picker{
  display:grid;
  gap:10px;
  cursor:pointer;
}
.redirect-logo-picker input[type="file"]{
  display:none;
}
.redirect-logo-thumb{
  display:block;
  width:auto;
  max-width:100%;
  height:100px;
  object-fit:contain;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  padding:8px;
}
.redirect-logo-thumb.small{
  height:72px;
  padding:6px;
}
.redirect-logo-picker.compact{
  gap:8px;
}
.feature-disabled{
  opacity:.6;
}
.feature-disabled input,
.feature-disabled textarea,
.feature-disabled select{
  cursor:not-allowed;
  background:#f3f5fa;
}

.feature-disabled .color-tile-input{
  background:#f3f5fa;
  border-color:rgba(15,35,78,.08);
  cursor:not-allowed;
}

.color-tile-input{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:56px;
  padding:10px 14px;
  border:1px solid rgba(53,97,214,.18);
  border-radius:18px;
  background:rgba(255,255,255,.96);
  cursor:pointer;
}

.color-tile-input input[type="color"]{
  width:0;
  height:0;
  opacity:0;
  position:absolute;
}

.color-tile-preview{
  display:block;
  width:38px;
  height:38px;
  border-radius:12px;
  border:2px solid rgba(255,255,255,.92);
  box-shadow:0 10px 24px rgba(15,35,78,.14);
  background:var(--tile-color,#0d213f);
  flex:0 0 auto;
}

.color-tile-value{
  font-weight:700;
  color:var(--ink);
  letter-spacing:.02em;
}

.redirect-logo-empty{
  display:grid;
  place-items:center;
  width:100px;
  height:100px;
  border-radius:22px;
  border:1px dashed rgba(53,97,214,.3);
  background:rgba(236,242,255,.9);
  color:var(--muted);
  font-weight:700;
}

.preview-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  background:rgba(8,20,53,.45);
}

.preview-modal[hidden]{
  display:none !important;
}

.preview-modal-card{
  position:relative;
  width:min(1180px,calc(100vw - 16px));
  max-width:1180px;
  max-height:calc(100vh - 16px);
  overflow:auto;
  border-radius:26px;
  background:#fff;
  padding:18px;
  box-shadow:0 24px 80px rgba(10,24,63,.24);
}

.preview-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
}

.preview-close-btn{
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#eef3ff;
  color:#0f234e;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.preview-frame{
  width:100%;
  min-height:84vh;
  border:0;
  border-radius:20px;
  background:#f5f8ff;
}

.preview-helper-card[hidden],
.feedback-preview-redirect[hidden]{
  display:none !important;
}

.feedback-preview-step[hidden],
.feedback-rating-grid[hidden]{
  display:none !important;
}

body.modal-open{
  overflow:hidden;
}

.redirect-settings-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:start;
}

.redirect-settings-row .field{
  min-width:0;
}

.inline-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.campaign-summary-grid{
  margin-bottom:18px;
}

.feedback-summary-grid,
.feedback-distribution-grid{
  margin-bottom:18px;
}

.feedback-step-card{
  padding:20px;
}

.feedback-form-section{
  display:grid;
  gap:4px;
  margin:4px 0 14px;
}

.feedback-form-section.compact{
  margin-top:0;
  margin-bottom:12px;
}

.feedback-form-section-title{
  font-weight:800;
  color:var(--ink);
}

.feedback-form-section-copy{
  font-size:13px;
  color:var(--muted);
}

.feedback-subsection-head{
  margin-top:6px;
}

.campaign-tabs-shell{
  display:grid;
  gap:0;
}

.campaign-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 2px;
  margin-bottom:-1px;
  align-items:end;
  scrollbar-width:thin;
}

.campaign-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  min-height:54px;
  padding:12px 16px;
  border:1px solid rgba(113,143,223,.26);
  border-bottom-color:rgba(113,143,223,.4);
  border-radius:18px 18px 0 0;
  background:linear-gradient(180deg,#eef4ff 0%,#f8fbff 100%);
  color:var(--ink);
  box-shadow:0 10px 18px rgba(18,39,94,.04);
}

.campaign-tab:hover{
  text-decoration:none;
  border-color:rgba(49,93,219,.34);
  background:linear-gradient(180deg,#f5f8ff 0%,#ffffff 100%);
}

.campaign-tab.is-active{
  position:relative;
  z-index:2;
  border-color:rgba(49,93,219,.45);
  border-bottom-color:#fff;
  background:#fff;
  box-shadow:0 14px 28px rgba(37,74,187,.10);
}

.campaign-tab-panel{
  display:grid;
  gap:18px;
}

.campaign-tab-panel[hidden]{
  display:none !important;
}

.module-grid-compact{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.campaign-main-form{
  display:grid;
  grid-template-columns:minmax(260px,1.6fr) minmax(220px,1fr) auto;
  gap:16px;
  align-items:end;
}

.campaign-main-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

.feedback-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 2px;
  margin-bottom:-1px;
  align-items:end;
  scrollbar-width:thin;
}

.feedback-tab{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  flex:0 0 120px;
  min-height:74px;
  padding:12px 12px;
  border:1px solid rgba(113,143,223,.26);
  border-bottom-color:rgba(113,143,223,.4);
  border-radius:18px 18px 0 0;
  background:linear-gradient(180deg,#eef4ff 0%,#f8fbff 100%);
  color:var(--ink);
  text-align:left;
  box-shadow:0 10px 18px rgba(18,39,94,.04);
}

.feedback-tab:hover{
  border-color:rgba(49,93,219,.34);
  background:linear-gradient(180deg,#f5f8ff 0%,#ffffff 100%);
}

.feedback-tab.is-active{
  position:relative;
  z-index:2;
  border-color:rgba(49,93,219,.45);
  border-bottom-color:#fff;
  background:#fff;
  box-shadow:0 14px 28px rgba(37,74,187,.10);
}

.feedback-tab-index{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:linear-gradient(135deg,#254cbc 0%, #1b43a8 100%);
  color:#fff;
  font-size:13px;
  font-weight:900;
  flex:0 0 auto;
}

.feedback-tab-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--feedback-tone-border);
  background:#fff;
  color:var(--ink);
  flex:0 0 auto;
}

.feedback-tab-icon .feedback-rating-face{
  width:22px;
  height:22px;
}

.feedback-tab.is-active .feedback-tab-icon{
  background:#f8fbff;
  box-shadow:0 6px 16px rgba(37,74,187,.10);
}

.feedback-step-panels{
  display:block;
}

.feedback-step-panels .feedback-step-card{
  border-top-left-radius:0;
  margin-top:0;
}

.feedback-editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:18px;
  align-items:start;
}

.feedback-live-preview-card{
  position:sticky;
  top:16px;
  display:grid;
  gap:14px;
}

.feedback-live-preview-frame{
  width:100%;
  min-height:620px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f7f9ff;
}

.feedback-step-toolbar{
  display:flex;
  justify-content:flex-start;
  margin:-4px 0 12px;
}

.feedback-step-toolbar-copy{
  display:grid;
  gap:6px;
}

.feedback-step-toolbar-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}

.compact-inline{
  align-items:center;
  gap:8px;
}

.compact-inline-copy-row{
  flex-wrap:nowrap;
}

.compact-inline-copy-row select{
  flex:1 1 auto;
  min-width:220px;
}

.compact-inline-copy-row .btn{
  flex:0 0 auto;
}

.compact-inline-copy .btn{
  min-height:36px;
  padding:8px 12px;
  font-size:13px;
}

.compact-inline-copy select{
  min-height:36px;
  padding-block:7px;
}

.feedback-card{
  display:grid;
  gap:20px;
}

.feedback-page-shell{
  min-height:calc(100vh - 240px);
  align-content:center;
}

.feedback-hero{
  justify-items:center;
}

.feedback-rating-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  width:100%;
}

.feedback-rating-btn{
  display:grid;
  gap:0;
  justify-items:center;
  padding:14px 8px;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  cursor:pointer;
  box-shadow:var(--shadow-soft);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.feedback-rating-btn:hover{
  transform:translateY(-2px);
  border-color:#9eb5ec;
  box-shadow:0 16px 36px rgba(20,48,115,.14);
}

.feedback-rating-icon{
  display:grid;
  place-items:center;
  width:84px;
  height:84px;
  border-radius:50%;
  color:#fff;
  border:1.5px solid var(--feedback-tone-border);
}

.feedback-rating-tone-1{
  background:var(--feedback-tone-1);
}

.feedback-rating-tone-2{
  background:var(--feedback-tone-2);
}

.feedback-rating-tone-3{
  background:var(--feedback-tone-3);
}

.feedback-rating-tone-4{
  background:var(--feedback-tone-4);
}

.feedback-rating-tone-5{
  background:var(--feedback-tone-5);
  color:var(--feedback-tone-text-dark);
}

.feedback-rating-icon-points{
  font-size:22px;
  font-weight:900;
}

.feedback-rating-number{
  display:block;
  font-size:22px;
  font-weight:900;
  line-height:1;
}

.feedback-rating-face{
  width:76px;
  height:76px;
  display:block;
}

.feedback-rating-face path{
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.feedback-notice{
  width:100%;
}

.compact-card{
  padding:16px 14px 14px;
}

.campaign-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:0;
}

.campaign-inline-stack{
  display:grid;
  gap:10px;
}

.tag-inline-stack{
  display:grid;
  gap:10px;
}

.campaign-base-label{
  display:flex;
  align-items:center;
}

.campaign-base-label .campaign-status-badge{
  margin-left:0;
}

.campaign-target-stack{
  display:block;
}

.tag-campaign-stack{
  display:block;
}

.campaign-target-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto auto;
  align-items:center;
  gap:6px;
  width:100%;
  max-width:100%;
}

.campaign-target-form select{
  min-width:0;
  width:100%;
  max-width:none;
}

.campaign-target-form input[type="url"],
.campaign-target-form input[type="text"]{
  min-width:0;
  width:100%;
  max-width:none;
}

.table-row-select,
.table-row-input{
  min-width:0;
  width:100%;
  max-width:none;
}

.campaign-rename-form{
  flex-wrap:wrap;
  gap:8px;
}

.campaign-rename-form input[type="text"]{
  min-width:220px;
}

.campaign-name-form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

.campaign-name-form input[type="text"]{
  min-width:220px;
  width:100%;
}

.table-campaigns th:nth-child(1),
.table-campaigns td:nth-child(1){
  width:auto;
}

.table-campaigns th:nth-child(2),
.table-campaigns td:nth-child(2){
  width:10%;
  white-space:nowrap;
}

.table-campaigns th:nth-child(3),
.table-campaigns td:nth-child(3){
  width:7%;
  white-space:nowrap;
}

.table-campaigns th:nth-child(4),
.table-campaigns td:nth-child(4),
.table-campaigns th:nth-child(5),
.table-campaigns td:nth-child(5){
  width:1%;
  white-space:nowrap;
}

.table-campaigns td{
  vertical-align:middle;
}

.table.table-campaigns tbody > tr:nth-of-type(odd) td{
  background:#ffffff;
}

.table.table-campaigns tbody > tr:nth-of-type(even) td{
  background:#eef4ff;
}

.table.table-campaigns tbody > tr:nth-of-type(even) td input[type="text"],
.table.table-campaigns tbody > tr:nth-of-type(even) td input[type="url"],
.table.table-campaigns tbody > tr:nth-of-type(even) td select{
  background:#f8fbff;
}

.table-campaigns td:nth-child(1) input[type="text"]{
  width:100%;
  max-width:none;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.table.table-tags tbody > tr:nth-of-type(odd) td{
  background:#ffffff;
}

.table.table-tags tbody > tr:nth-of-type(even) td{
  background:#eef4ff;
}

.table.table-tags tbody > tr:nth-of-type(even) td input[type="text"],
.table.table-tags tbody > tr:nth-of-type(even) td input[type="url"],
.table.table-tags tbody > tr:nth-of-type(even) td select{
  background:#f8fbff;
}

.admin-listing-stack{
  display:grid;
  gap:6px;
  min-width:0;
}

.admin-listing-title{
  display:block;
  font-size:16px;
  font-weight:800;
  line-height:1.3;
  color:var(--ink);
}

.admin-listing-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
  font-size:14px;
  color:var(--muted);
}

.admin-bulk-actions{
  margin-bottom:14px;
}

.table.table-admin-users tbody > tr:nth-of-type(odd) td,
.table.table-admin-tags tbody > tr:nth-of-type(odd) td{
  background:#ffffff;
}

.table.table-admin-users tbody > tr:nth-of-type(even) td,
.table.table-admin-tags tbody > tr:nth-of-type(even) td{
  background:#eef4ff;
}

.table.table-admin-users td.actions-cell,
.table.table-admin-tags td.actions-cell{
  display:table-cell;
  text-align:right;
  white-space:nowrap;
}

.table.table-admin-users td.actions-cell .row-actions,
.table.table-admin-tags td.actions-cell .row-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.table-admin-users th:nth-child(1),
.table-admin-users td:nth-child(1){
  width:auto;
}

.table-admin-users th:nth-child(2),
.table-admin-users td:nth-child(2),
.table-admin-users th:nth-child(3),
.table-admin-users td:nth-child(3),
.table-admin-users th:nth-child(4),
.table-admin-users td:nth-child(4),
.table-admin-tags th:nth-child(1),
.table-admin-tags td:nth-child(1),
.table-admin-tags th:nth-child(3),
.table-admin-tags td:nth-child(3),
.table-admin-tags th:nth-child(4),
.table-admin-tags td:nth-child(4){
  width:1%;
  white-space:nowrap;
}

.table-admin-tags th:nth-child(2),
.table-admin-tags td:nth-child(2){
  width:auto;
}

.table.table-campaigns td.actions-cell{
  display:table-cell;
  text-align:right;
  white-space:nowrap;
}

.table.table-campaigns td.actions-cell .row-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.table-campaigns .btn.small{
  padding-inline:8px;
}

@media (max-width:980px){
  .feedback-editor-layout{
    grid-template-columns:1fr;
  }

  .feedback-live-preview-card{
    position:static;
  }

  .campaign-actions{
    gap:6px;
  }

  .campaign-name-form input[type="text"]{
    min-width:160px;
  }

  .campaign-main-form{
    grid-template-columns:1fr;
  }

  .campaign-main-actions{
    flex-wrap:wrap;
  }
}

@media (max-width:760px){
  .table-wrap{
    overflow-x:hidden;
  }

  .table.responsive-table{
    width:100%;
    table-layout:auto;
  }

  .table.responsive-table th,
  .table.responsive-table td{
    overflow:hidden;
  }

  .table-tags th:nth-child(1),
  .table-tags td:nth-child(1),
  .table-tags th:nth-child(2),
  .table-tags td:nth-child(2),
  .table-tags th:nth-child(3),
  .table-tags td:nth-child(3),
  .table-tags th:nth-child(4),
  .table-tags td:nth-child(4),
  .table-tags th:nth-child(5),
  .table-tags td:nth-child(5){
    width:auto;
  }

  .table.table-tags td.actions-cell .row-actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    width:100%;
  }

  .table.table-tags td.actions-cell .row-actions .btn{
    width:100%;
    justify-content:center;
  }

  .table.table-admin-users td.actions-cell .row-actions,
  .table.table-admin-tags td.actions-cell .row-actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    width:100%;
  }

  .table.table-admin-users td.actions-cell .row-actions .btn,
  .table.table-admin-tags td.actions-cell .row-actions .btn{
    width:100%;
    justify-content:center;
  }

  .table-campaigns th:nth-child(1),
  .table-campaigns td:nth-child(1),
  .table-campaigns th:nth-child(2),
  .table-campaigns td:nth-child(2),
  .table-campaigns th:nth-child(3),
  .table-campaigns td:nth-child(3),
  .table-campaigns th:nth-child(4),
  .table-campaigns td:nth-child(4),
  .table-campaigns th:nth-child(5),
  .table-campaigns td:nth-child(5){
    width:auto;
  }

  .table-campaigns td:nth-child(2),
  .table-campaigns th:nth-child(2),
  .table-campaigns td:nth-child(3),
  .table-campaigns th:nth-child(3),
  .table-campaigns td:nth-child(4),
  .table-campaigns th:nth-child(4),
  .table-campaigns td:nth-child(5),
  .table-campaigns th:nth-child(5){
    white-space:nowrap;
  }

  .table-campaigns th:nth-child(1),
  .table-campaigns td:nth-child(1){
    white-space:nowrap;
  }

  .table-campaigns td:nth-child(1) input[type="text"]{
    width:100%;
    max-width:none;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .campaign-target-stack select{
    width:100%;
    max-width:none;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .campaign-target-stack input[type="url"],
  .campaign-target-stack input[type="text"]{
    width:100%;
    max-width:none;
    min-width:0;
  }

  .table.table-campaigns td.actions-cell .row-actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    width:100%;
  }

  .table.table-campaigns td.actions-cell .row-actions .btn{
    width:100%;
    justify-content:center;
  }

  .admin-listing-meta{
    display:grid;
    gap:4px;
  }

  .feedback-tabs{
    gap:6px;
    justify-content:space-between;
  }

  .feedback-tab{
    flex:1 1 0;
    min-width:0;
    min-height:62px;
    padding:10px 8px;
    gap:8px;
  }

  .feedback-tab-index{
    width:24px;
    height:24px;
    font-size:11px;
  }

  .feedback-tab-icon{
    width:28px;
    height:28px;
  }

  .feedback-tab-icon .feedback-rating-face{
    width:18px;
    height:18px;
  }

  .feedback-step-toolbar{
    justify-content:stretch;
  }

  .compact-inline{
    display:grid;
    grid-template-columns:1fr auto;
  }

  .compact-inline-copy-row{
    flex-wrap:wrap;
  }

  .compact-inline-copy-row select{
    min-width:0;
  }

  .feedback-live-preview-card{
    display:none;
  }
}

@media (max-width:520px){
  .feedback-tabs{
    gap:4px;
  }

  .feedback-tab{
    min-height:54px;
    padding:8px 6px;
    gap:6px;
    border-radius:14px 14px 0 0;
  }

  .feedback-tab-index{
    width:20px;
    height:20px;
    font-size:10px;
  }

  .feedback-tab-icon{
    width:24px;
    height:24px;
  }

  .feedback-tab-icon .feedback-rating-face{
    width:15px;
    height:15px;
  }
}

.redirect-logo-empty.small{
  width:72px;
  height:72px;
  border-radius:18px;
}

@media (max-width:980px){
  .redirect-settings-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:620px){
  .redirect-settings-row{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .feedback-rating-grid{
    grid-template-columns:repeat(5,minmax(54px,1fr));
    gap:8px;
  }

  .feedback-rating-btn{
    padding:14px 8px;
  }

  .feedback-rating-icon{
    width:68px;
    height:68px;
  }

  .feedback-rating-face{
    width:60px;
    height:60px;
  }

  .feedback-rating-number{
    font-size:18px;
  }

  .topbar-avatar{
    flex:0 0 42px;
    width:42px;
    height:42px;
  }
}

@media (max-width:520px){
  .feedback-rating-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }

  .feedback-page-shell{
    min-height:calc(100vh - 210px);
  }

  .topbar-avatar{
    flex:0 0 34px;
    width:34px;
    height:34px;
  }
}

@media (max-width:1100px){
  .topbar{
    overflow:visible;
  }

  .topbar-mobile,
  .topbar-mobile[open]{
    position:static;
  }

  .topbar-mobile-panel{
    position:fixed !important;
    left:0;
    top:0;
    bottom:0;
    width:248px;
    min-width:248px;
    height:100vh;
    margin:0;
    padding:18px 12px;
    border-radius:0;
    border:0;
    z-index:220;
    align-content:start;
    overflow-y:auto;
    overflow-x:hidden;
    box-shadow:0 0 0 1px rgba(255,255,255,.08), 0 18px 44px rgba(12,31,82,.42);
  }

  .topbar-mobile-links{
    display:grid;
    gap:8px;
  }

  .topbar-mobile-links .btn{
    width:100%;
    min-height:46px;
    padding:10px 12px;
    justify-content:flex-start;
  }

  .topbar-mobile-links .nav-badge{
    display:none;
  }

  .topbar-mobile-links .nav-link .ui-icon{
    font-size:1.25em;
  }
}

@media (max-width:760px){
  .filter-card,
  .filter-panel{padding:14px}
  .filter-body{margin-top:8px}
  .section-link-row .btn{margin-left:0;width:100%}
}

.batch-print-sheet{
  width:min(100%, calc(var(--batch-page-width, 210mm) - 16mm));
  min-height:auto;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(var(--batch-qr-size, 50mm), 1fr));
  gap:10mm;
  justify-items:center;
  align-content:start;
  padding:0;
  box-sizing:border-box;
}

.batch-print-page{
  display:grid;
  gap:4mm;
  justify-items:center;
  break-after:page;
  page-break-after:always;
}

.batch-print-page:last-child{
  break-after:auto;
  page-break-after:auto;
}

.batch-print-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3mm;
  width:var(--batch-qr-size, 50mm);
  min-height:calc(var(--batch-qr-size, 50mm) + 8mm);
  padding:0;
  box-sizing:border-box;
  break-inside:avoid;
}

.batch-print-card img{
  width:var(--batch-qr-size, 50mm);
  height:var(--batch-qr-size, 50mm);
  display:block;
}

.batch-print-pin{
  font-size:.95rem;
  letter-spacing:.12em;
  font-weight:700;
}

.batch-print-signature{
  text-align:center;
  font-weight:700;
  padding:0;
  line-height:1.1;
}

@media print{
  .topbar,
  .site-footer,
  .flash-stack,
  .no-print{
    display:none !important;
  }

  .container.shell{
    max-width:none;
    padding:0;
  }

  .content{
    display:block;
  }

  .batch-print-sheet{
    width:calc(var(--batch-page-width, 210mm) - 16mm);
    min-height:auto;
  }

  .batch-print-signature{
    padding:0;
  }
}

.icon-with-optional-label{display:inline-flex;align-items:center;gap:8px}
.optional-desktop-label{display:inline}
@media (max-width:760px){
  .optional-desktop-label{display:none}
  .icon-with-optional-label{min-width:42px;padding-inline:10px}
}

.panel-demo-shell-page{
  min-height:100vh;
}

.panel-demo-shell{
  padding-block:24px 40px;
}

.panel-demo-shell-grid{
  display:grid;
  grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.panel-demo-sidebar,
.panel-demo-toolbar{
  display:grid;
  gap:18px;
}

.panel-demo-sidebar-section{
  display:grid;
  gap:12px;
}

.panel-demo-link-list,
.panel-demo-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.panel-demo-link-list .nav-link,
.panel-demo-chip-list .btn{
  text-decoration:none;
}

.panel-demo-chip-list .btn.is-active,
.panel-demo-link-list .nav-link.active{
  background:linear-gradient(135deg,#2347b7 0%,#2f63da 100%);
  color:#fff;
  border-color:rgba(47,99,218,.75);
}

.panel-demo-preview-area{
  display:grid;
  gap:18px;
}

.panel-demo-viewport{
  display:flex;
  justify-content:center;
}

.panel-demo-screen{
  width:min(100%,1440px);
  border-radius:28px;
  padding:14px;
  background:rgba(18,44,118,.1);
  box-shadow:0 20px 60px rgba(16,31,84,.14);
}

.panel-demo-frame{
  display:block;
  width:100%;
  min-height:980px;
  border:0;
  border-radius:22px;
  background:#fff;
}

.panel-demo-viewport.is-tablet .panel-demo-screen{
  width:min(100%,920px);
}

.panel-demo-viewport.is-mobile .panel-demo-screen{
  width:min(100%,390px);
  padding:10px;
  border-radius:24px;
}

.panel-demo-viewport.is-mobile .panel-demo-frame{
  border-radius:20px;
}

@media (max-width:1100px){
  .panel-demo-shell-grid{
    grid-template-columns:1fr;
  }
}


