.icon {
  background: url('../icon/icon marketing.png') center / contain no-repeat;
  position: relative;
  font-size: 8px;
  display: flex;
  top: 0px;
  left: 0px;
  height: 76px;
  width: 96px;
  border-radius: var(--zg-radius-lg);
  margin-bottom: 4px;
}


.sidebar{
  position:fixed;
  left:0;
  top:0;
  width:180px;
  height:100vh;
  padding:20px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  background:var(--zg-surface-sidebar);
  border-right:1px solid var(--zg-border-soft);
  z-index:1000;
}

.topbar{
  position:fixed;
  left:180px;
  top:0;
  right:0;
  height:64px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 24px;
  background:rgba(255,255,255,0.94);
  border-bottom:1px solid var(--border);
  overflow-x:auto;
  z-index:999;
}

.nav-btn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.sidebar-btn{
  width:100%;
  min-width:0;
  height:42px;
  border-radius:10px;
  font-size:14px;
  text-align:center;
  padding:8px 12px;
  background:transparent;
  color:var(--zg-text-secondary);
  border:1px solid transparent;
}

.topbar-btn{
  min-width:128px;
  height:40px;
  display:flex;
  padding:8px 14px;
  align-items:center;
  justify-content:center;
  background:var(--zg-surface-card);
  color:var(--zg-text-secondary);
  border:1px solid var(--zg-border-soft);
  border-radius:10px;
  font-size:14px;
  font-weight:600;
}


.sidebar-btn:hover,
.topbar-btn:hover{
  background:var(--zg-surface-hover);
  color:var(--zg-text-primary);
  border-color:var(--zg-border-default);
}

.sidebar-btn.active,
.topbar-btn.active{
  background:var(--zg-accent-secondary);
  color:var(--zg-accent-primary);
  border-color:var(--zg-accent-border);
}


.content{
  margin-left:180px;
  padding:88px 24px 32px;
  min-height:100vh;
  background:var(--zg-surface-page);
}

.topbar::-webkit-scrollbar{
  height:6px;
}

.topbar::-webkit-scrollbar-thumb{
  background:var(--zg-border-strong);
  border-radius:999px;
}

.content-box.settings-panel{
  display:block;
  align-items:unset;
  justify-content:unset;
  min-height:calc(100vh - 128px);
  padding:24px;
  overflow-y:auto;
  font-size:unset;
  font-weight:unset;
  color:unset;
}

.loading-screen{
  min-height:320px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  border:1px solid var(--border);
  border-radius:var(--zg-radius-lg);
  background:var(--white);
  color:var(--muted-text);
  box-shadow:var(--zg-shadow-soft);
}

.loading-spinner{
  width:38px;
  height:38px;
  border:4px solid rgba(15,23,42,0.12);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:loading-spin 0.9s linear infinite;
}

.loading-text{
  color:var(--headline-text);
  font-size:15px;
  font-weight:800;
}

@keyframes loading-spin{
  to{
    transform:rotate(360deg);
  }
}

.settings-form{
  width:min(1080px, 100%);
}

.settings-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:32px;
}

.settings-header h2{
  color:var(--headline-text);
  font-size:28px;
  line-height:1.25;
  font-weight:700;
}

.settings-header p{
  max-width:680px;
  margin-top:10px;
  color:var(--muted-text);
  font-size:16px;
  line-height:1.5;
}

.settings-save-state{
  min-width:170px;
  color:var(--muted-text);
  font-size:13px;
  font-weight:700;
  text-align:right;
}

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

.settings-field{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:10px;
}

.settings-field-full{
  grid-column:1 / -1;
}

.settings-field span{
  color:var(--headline-text);
  font-size:15px;
  font-weight:800;
}

.settings-field input,
.settings-field textarea,
.settings-field select{
  width:100%;
  border:1px solid var(--input-border);
  border-radius:8px;
  background:var(--white);
  color:var(--body-text);
  font:inherit;
  font-size:16px;
  line-height:1.45;
}

.settings-field input{
  min-height:56px;
  padding:0 16px;
}

.settings-field select{
  min-height:56px;
  padding:0 16px;
}

.settings-field textarea{
  min-height:220px;
  padding:16px;
  resize:vertical;
}

.settings-field input::placeholder,
.settings-field textarea::placeholder{
  color:var(--placeholder);
}

.settings-field input:focus,
.settings-field textarea:focus,
.settings-field select:focus{
  outline:none;
  border-color:rgba(225,29,72,0.45);
  box-shadow:0 0 0 3px rgba(225,29,72,0.1);
}

.settings-unit-input{
  display:flex;
  align-items:center;
  overflow:hidden;
  border:1px solid var(--input-border);
  border-radius:8px;
  background:var(--white);
}

.settings-unit-input input{
  min-width:0;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.settings-unit-input input:focus{
  box-shadow:none;
}

.settings-unit-input span{
  min-width:72px;
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  border-left:1px solid var(--border);
  background:var(--light-base);
  color:var(--muted-text);
  font-size:15px;
  font-weight:800;
}

.settings-unit-input:focus-within{
  border-color:rgba(225,29,72,0.45);
  box-shadow:0 0 0 3px rgba(225,29,72,0.1);
}

.settings-choice-group{
  min-width:0;
  border:1px solid var(--border);
  border-radius:8px;
  padding:18px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.settings-choice-group legend{
  padding:0 6px;
  color:var(--headline-text);
  font-size:15px;
  font-weight:800;
}

.settings-choice-group label{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:32px;
  color:var(--body-text);
  font-size:15px;
  font-weight:700;
}

.settings-choice-group input{
  width:18px;
  height:18px;
  accent-color:var(--primary);
  flex-shrink:0;
}

.search-options-form .settings-field textarea{
  min-height:170px;
}

.settings-toggle{
  display:flex;
  align-items:flex-start;
  gap:14px;
  border:1px solid var(--border);
  border-radius:8px;
  padding:18px;
  color:var(--body-text);
}

.settings-toggle input{
  width:20px;
  height:20px;
  margin-top:2px;
  accent-color:var(--primary);
  flex-shrink:0;
}

.settings-toggle span{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.settings-toggle strong{
  color:var(--headline-text);
  font-size:16px;
}

.settings-toggle small{
  color:var(--muted-text);
  font-size:14px;
  line-height:1.4;
}

.generated-newsletter-links,
.generated-report-settings{
  border:1px solid var(--border);
  border-radius:8px;
  padding:22px;
}

.generated-newsletter-links legend{
  color:var(--headline-text);
  font-size:15px;
  font-weight:800;
  padding:0 8px;
}

.generated-report-settings[hidden]{
  display:none;
}

.settings-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:28px;
}

.settings-primary-btn{
  min-height:50px;
  border-radius:8px;
  padding:0 20px;
  cursor:pointer;
  font-size:15px;
  font-weight:800;
  transition:background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.settings-primary-btn{
  border:1px solid rgba(225,29,72,0.25);
  background:var(--primary);
  color:var(--white);
}

.settings-primary-btn:hover{
  transform:translateY(-1px);
}

.holiday-events-dashboard{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px;
  width:100%;
}

.holiday-events-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--white);
  padding:18px;
}

.holiday-events-header h2{
  color:var(--headline-text);
  font-size:22px;
  margin-bottom:6px;
}

.holiday-events-header p{
  color:var(--muted-text);
  font-size:15px;
  line-height:1.45;
}

.holiday-events-count{
  flex-shrink:0;
  border:1px solid rgba(225,29,72,0.2);
  border-radius:999px;
  background:rgba(225,29,72,0.08);
  color:var(--primary);
  padding:8px 12px;
  font-size:13px;
  font-weight:800;
}

.holiday-events-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--white);
  padding:12px 14px;
}

.holiday-events-selected-count{
  color:var(--muted-text);
  font-size:13px;
  font-weight:800;
}

.holiday-events-generate-btn{
  min-height:42px;
  border:1px solid rgba(225,29,72,0.25);
  border-radius:8px;
  background:var(--primary);
  color:var(--white);
  padding:0 14px;
  cursor:pointer;
  font-size:14px;
  font-weight:800;
}

.holiday-events-generate-btn:disabled{
  cursor:not-allowed;
  opacity:0.55;
}

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

.holiday-events-column{
  min-width:0;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--white);
  padding:16px;
}

.holiday-events-column-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.holiday-events-column-header h3{
  color:var(--headline-text);
  font-size:18px;
}

.holiday-events-column-header span{
  min-width:32px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--light-base);
  color:var(--muted-text);
  font-size:13px;
  font-weight:800;
}

.holiday-events-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.holiday-event-card{
  position:relative;
  display:grid;
  grid-template-columns:72px minmax(0, 1fr);
  gap:12px;
  border:1px solid rgba(15,23,42,0.08);
  border-radius:8px;
  background:#f8fafc;
  padding:12px 44px 12px 12px;
  cursor:pointer;
  transition:border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.holiday-event-card:hover{
  border-color:rgba(225,29,72,0.28);
  transform:translateY(-1px);
}

.holiday-event-card:focus{
  outline:none;
  border-color:rgba(225,29,72,0.45);
  box-shadow:0 0 0 3px rgba(225,29,72,0.1);
}

.holiday-event-card-selected{
  border-color:rgba(225,29,72,0.45);
  box-shadow:0 0 0 3px rgba(225,29,72,0.08);
}

.holiday-event-selector{
  position:absolute;
  top:10px;
  right:10px;
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:4px;
  background:transparent;
  color:var(--white);
  cursor:pointer;
}

.holiday-event-card-selected .holiday-event-selector{
  color:var(--white);
}

.holiday-event-selector input{
  appearance:none;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border:1px solid #cbd5e1;
  border-radius:4px;
  background:#ffffff;
  cursor:pointer;
  transition:border-color 0.2s ease, background 0.2s ease;
}

.holiday-event-selector input:checked{
  border-color:var(--primary);
  background:var(--primary);
}

.holiday-event-selector input:checked::before{
  content:"✓";
  color:#ffffff;
  font-size:15px;
  font-weight:900;
  line-height:1;
}

.holiday-event-selector span{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}

.holiday-event-date{
  min-height:58px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--white);
  color:var(--headline-text);
  text-align:center;
  font-size:14px;
  font-weight:900;
}

.holiday-event-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.holiday-event-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.holiday-event-meta span{
  border-radius:999px;
  background:rgba(15,23,42,0.07);
  color:var(--muted-text);
  padding:4px 8px;
  font-size:12px;
  font-weight:800;
}

.holiday-event-body h4{
  color:var(--headline-text);
  font-size:16px;
  line-height:1.3;
}

.holiday-event-location{
  color:var(--muted-text);
  font-size:13px;
  font-weight:800;
}

.holiday-event-relevance{
  color:var(--body-text);
  font-size:14px;
  line-height:1.45;
}

.holiday-event-suggestions{
  display:grid;
  gap:6px;
  margin-top:2px;
  padding-left:18px;
  color:var(--body-text);
  font-size:13px;
  line-height:1.4;
}

.holiday-events-empty{
  border:1px dashed var(--border);
  border-radius:8px;
  color:var(--muted-text);
  padding:18px;
  text-align:center;
  font-weight:800;
}

.holiday-events-modal-overlay{
  position:fixed;
  inset:0;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,0.55);
  padding:24px;
}

.holiday-events-modal{
  width:min(720px, 100%);
  max-height:min(760px, calc(100vh - 48px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:10px;
  background:var(--white);
  box-shadow:0 24px 60px rgba(15,23,42,0.22);
}

.holiday-events-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--border);
  padding:16px 18px;
}

.holiday-events-modal-header h2{
  color:var(--headline-text);
  font-size:20px;
  line-height:1.25;
}

.holiday-events-modal-close{
  min-height:38px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--white);
  color:var(--body-text);
  padding:0 12px;
  cursor:pointer;
  font-size:13px;
  font-weight:800;
}

.holiday-events-modal-close:hover{
  background:var(--light-base);
}

.holiday-events-modal-content{
  overflow:auto;
  padding:18px;
}

.holiday-events-modal-content h3{
  color:var(--headline-text);
  font-size:18px;
  margin-bottom:10px;
}

.holiday-events-template-raw{
  overflow:auto;
  border-radius:8px;
  background:var(--light-base);
  color:var(--body-text);
  padding:12px;
  font-size:13px;
}

.holiday-events-post-card-grid{
  display:grid;
  gap:16px;
}

.holiday-events-post-card{
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--white);
  padding:18px;
  box-shadow:0 20px 40px rgba(15,23,42,0.06);
}

.holiday-events-post-card-title{
  font-size:17px;
  font-weight:800;
  color:var(--headline-text);
  margin-bottom:12px;
}

.holiday-events-post-card-section-label{
  margin-top:10px;
  margin-bottom:6px;
  color:var(--muted-text);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.holiday-events-post-edit-field{
  display:block;
}

.holiday-events-post-edit-input{
  width:100%;
  border:1px solid var(--input-border);
  border-radius:8px;
  background:var(--white);
  color:var(--body-text);
  padding:10px 12px;
  font-family:inherit;
  font-size:14px;
  line-height:1.55;
}

textarea.holiday-events-post-edit-input{
  min-height:44px;
  overflow:hidden;
  resize:none;
}

.holiday-events-post-edit-input:focus,
.holiday-events-post-tag-input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(225,29,72,0.12);
}

.holiday-events-post-tags-editor{
  margin-bottom:12px;
}

.holiday-events-post-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.holiday-events-post-card-tags span{
  background:rgba(225,29,72,0.08);
  color:var(--primary);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
}

.holiday-events-post-tag-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.holiday-events-post-tag-item button{
  border:none;
  border-radius:999px;
  background:rgba(225,29,72,0.12);
  color:var(--primary);
  width:18px;
  height:18px;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.holiday-events-post-tag-input-row{
  display:flex;
  gap:8px;
  align-items:center;
}

.holiday-events-post-tag-input{
  flex:1;
  min-width:0;
  border:1px solid var(--input-border);
  border-radius:8px;
  padding:9px 10px;
  font-size:13px;
}

.holiday-events-post-tag-add-btn{
  border:none;
  border-radius:8px;
  background:var(--dark-base);
  color:var(--white);
  padding:10px 12px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.holiday-events-post-card-actions{
  display:flex;
  align-items:center;
  gap:10px;
  padding-top:8px;
}

.holiday-events-post-save-btn{
  border:none;
  border-radius:8px;
  background:var(--primary);
  color:var(--white);
  padding:10px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.holiday-events-post-save-btn:disabled{
  cursor:not-allowed;
  opacity:0.7;
}

.holiday-events-post-save-status{
  color:var(--muted-text);
  font-size:13px;
  min-height:18px;
}

.campains-dashboard{
  display:grid;
  gap:16px;
  padding:18px;
}

.campains-actions{
  display:flex;
  justify-content:flex-end;
  padding:4px 4px 0;
}

.campains-refresh-btn{
  border:none;
  border-radius:8px;
  background:var(--primary);
  color:var(--white);
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;
}

.campains-context{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.campain-context-pill{
  display:flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  background:rgba(15,23,42,0.06);
  color:var(--muted-text);
  padding:7px 10px;
  font-size:12px;
}

.campain-context-pill strong{
  color:var(--headline-text);
}

.campains-grid{
  display:grid;
  gap:14px;
}

.campain-plan-goal{
  border:1px solid var(--border);
  border-left:3px solid var(--primary);
  border-radius:8px;
  background:var(--white);
  padding:14px 16px;
  box-shadow:0 14px 30px rgba(15,23,42,0.05);
}

.campain-plan-goal span{
  display:block;
  color:var(--muted-text);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  margin-bottom:6px;
}

.campain-plan-goal p{
  color:var(--headline-text);
  font-size:15px;
  line-height:1.55;
}

.campain-card,
.campains-empty,
.campains-loading{
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--white);
  padding:16px;
  box-shadow:0 14px 30px rgba(15,23,42,0.05);
}

.campain-eyebrow{
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  margin-bottom:6px;
}

.campain-card h3{
  color:var(--headline-text);
  font-size:17px;
  margin-bottom:8px;
}

.campain-description{
  color:var(--body-text);
  font-size:14px;
  line-height:1.6;
  margin-bottom:12px;
}

.campain-detail{
  border-top:1px solid var(--border);
  padding-top:10px;
  margin-top:10px;
}

.campain-detail span{
  display:block;
  color:var(--muted-text);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  margin-bottom:4px;
}

.campain-detail p{
  color:var(--body-text);
  font-size:14px;
  line-height:1.5;
}

.campain-detail-list{
  margin:0;
  padding-left:18px;
  color:var(--body-text);
  font-size:14px;
  line-height:1.55;
}

.campain-detail-list li{
  margin-bottom:6px;
}

.campains-empty,
.campains-loading{
  color:var(--muted-text);
}

.newsletter-dashboard{
  display:grid;
  gap:16px;
  padding:18px;
}

.newsletter-save-btn{
  border:none;
  border-radius:8px;
  background:var(--primary);
  color:var(--white);
  padding:10px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.newsletter-grid{
  display:grid;
  gap:16px;
}

.newsletter-draft-card,
.newsletter-empty,
.newsletter-loading{
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--white);
  padding:18px;
  box-shadow:0 14px 30px rgba(15,23,42,0.05);
}

.newsletter-draft-card{
  display:grid;
  gap:14px;
}

.newsletter-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.newsletter-meta-item{
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--light-base);
  padding:12px;
}

.newsletter-meta-item p{
  color:var(--body-text);
  font-size:14px;
  line-height:1.5;
  margin:0;
}

.newsletter-html-preview{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f6f3ee;
}

.newsletter-html-frame{
  display:block;
  width:100%;
  height:min(760px,70vh);
  min-height:520px;
  border:0;
  background:#ffffff;
}

.newsletter-field-label{
  display:block;
  color:var(--muted-text);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  margin-bottom:6px;
}

.newsletter-draft-actions{
  display:flex;
  align-items:center;
  gap:10px;
  padding-top:4px;
}

.newsletter-save-status,
.newsletter-empty,
.newsletter-loading{
  color:var(--muted-text);
  font-size:13px;
}

@media (max-width: 760px){
  .settings-header,
  .settings-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .settings-save-state{
    min-width:0;
    text-align:left;
  }

  .settings-grid{
    grid-template-columns:1fr;
  }

  .settings-choice-group{
    grid-template-columns:1fr;
  }

  .holiday-events-columns{
    grid-template-columns:1fr;
  }

  .newsletter-save-btn{
    width:100%;
  }

  .newsletter-meta{
    grid-template-columns:1fr;
  }

  .newsletter-html-frame{
    height:68vh;
    min-height:460px;
  }

  .holiday-events-header{
    flex-direction:column;
  }

  .holiday-events-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .holiday-events-generate-btn{
    width:100%;
  }

  .holiday-event-card{
    grid-template-columns:1fr;
    padding-right:44px;
  }

  .holiday-event-date{
    min-height:44px;
  }

  .holiday-events-modal-overlay{
    align-items:flex-end;
    padding:12px;
  }

  .holiday-events-modal{
    max-height:calc(100vh - 24px);
  }
}

@media (max-width: 760px){
  .sidebar{
    width:148px;
    padding:16px 10px;
  }

  .topbar{
    left:148px;
    height:60px;
    padding:0 12px;
  }

  .topbar-btn{
    min-width:112px;
  }

  .content{
    margin-left:148px;
    padding:76px 12px 20px;
  }

  .icon{
    width:82px;
    height:64px;
  }

  .sidebar-btn{
    height:40px;
    font-size:13px;
  }
}
