@import url("global-tokens.css");

:root {
  --ph-burgundy: #4b0102;
  --ph-burgundy-2: #6d1516;
  --ph-gold: #b09c63;
  --ph-gold-soft: #eee8d8;
  --ph-ink: #201c1d;
  --ph-muted: #625b5c;
  --ph-line: #e8e2df;
  --ph-surface: #ffffff;
  --ph-canvas: #f7f5f3;
  --ph-green: #2f7553;
  --ph-purple: #5a3696;
  --ph-shadow: 0 18px 50px rgba(48, 29, 30, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ph-ink);
  background: var(--ph-canvas);
  font-family: Inter, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 270px;
  flex-direction: column;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 15% 5%, rgba(176, 156, 99, .25), transparent 26%),
    linear-gradient(180deg, #4b0102 0%, #350001 100%);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 25px 22px 22px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 13px;
  color: #2d1600;
  background: linear-gradient(135deg, #f4e8be, #b09c63);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-lockup strong { display: block; font-size: 23px; letter-spacing: .01em; }
.brand-lockup small { display: block; color: rgba(255,255,255,.6); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { display: grid; gap: 5px; padding: 8px 14px 18px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 10px;
  color: rgba(255,255,255,.72);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.nav-item span { width: 20px; color: var(--ph-gold); text-align: center; font-size: 23px; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.1); }
.lesson-progress { padding: 15px 14px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-label { display: flex; justify-content: space-between; padding: 0 9px 12px; color: rgba(255,255,255,.55); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-label strong { color: var(--ph-gold); }
.lesson-list { display: grid; gap: 2px; }
.lesson-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  color: rgba(255,255,255,.63);
  text-decoration: none;
}
.lesson-link:hover, .lesson-link.current { color: #fff; background: rgba(255,255,255,.08); }
.lesson-link.complete { color: rgba(255,255,255,.86); }
.lesson-number {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
}
.lesson-link.complete .lesson-number { border-color: var(--ph-gold); color: #351314; background: var(--ph-gold); }
.lesson-link.current .lesson-number { border-color: #fff; }
.lesson-link strong { display: block; max-width: 175px; overflow: hidden; font-size: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lesson-link small { display: block; color: rgba(255,255,255,.42); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-footer { margin-top: auto; padding: 20px 23px 25px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer small { display: block; color: rgba(255,255,255,.5); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-footer strong { display: block; margin-top: 4px; color: var(--ph-gold); font-size: 19px; }

.app-main { width: calc(100% - 270px); min-width: 0; max-width: calc(100% - 270px); flex: 0 0 auto; margin-left: 270px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 3vw, 46px);
  border-bottom: 1px solid rgba(89, 67, 67, .1);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
}
.topbar-context strong { display: block; font-size: 21px; }
.eyebrow { display: block; margin-bottom: 4px; color: var(--ph-burgundy-2); font-size: 16px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.topbar-actions, .hero-actions, .calendar-actions { display: flex; align-items: center; gap: 10px; }
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  color: var(--ph-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.account-button:hover { background: #f1edeb; }
.account-button strong, .account-button small { display: block; }
.account-button strong { font-size: 18px; }
.account-button small { color: var(--ph-muted); font-size: 16px; }
.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--ph-burgundy);
  font-size: 17px;
  font-weight: 700;
}
.mobile-menu { display: none; border: 0; background: transparent; font-size: 23px; cursor: pointer; }

.content { width: min(1500px, 100%); margin: 0 auto; padding: 34px clamp(20px, 3vw, 46px) 70px; }
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0 34px;
}
.hero h1 { max-width: 800px; margin: 0; color: #241d1e; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-size: clamp(34px, 4vw, 58px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.hero p { max-width: 760px; margin: 18px 0 0; color: var(--ph-muted); font-size: 22px; }
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: #fff; background: var(--ph-burgundy); box-shadow: 0 8px 20px rgba(75,1,2,.18); }
.button-primary:hover { background: var(--ph-burgundy-2); }
.button-secondary { border-color: var(--ph-line); color: var(--ph-ink); background: #fff; }
.button-secondary:hover, .button-ghost:hover { border-color: #cfc4bf; background: #faf8f6; }
.button-ghost { border-color: transparent; color: var(--ph-burgundy); background: transparent; }
.icon-button, .close-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ph-line);
  border-radius: 10px;
  color: var(--ph-ink);
  background: #fff;
  cursor: pointer;
}
.icon-button:hover, .close-button:hover { background: #f6f1ef; }
.alert { margin-bottom: 20px; padding: 13px 16px; border-radius: 10px; }
.alert-error { border: 1px solid #e5b8b8; color: #791d1d; background: #fff1f1; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 19px;
  border: 1px solid var(--ph-line);
  border-radius: 15px;
  background: var(--ph-surface);
  box-shadow: 0 6px 20px rgba(48, 29, 30, .035);
}
.stat-icon {width: 43px; height: 43px; flex: 20px 20px 43px; border-radius: 12px; font-size: 24px;text-align:center;padding-top:2px }
.stat-icon.burgundy { color: #fff; background: var(--ph-burgundy); }
.stat-icon.gold { color: #493a14; background: #eadfbf; }
.stat-icon.green { color: #fff; background: var(--ph-green); }
.stat-icon.purple { color: #fff; background: var(--ph-purple); }
.stat-card small, .stat-card span { display: block; }
.stat-card > div { min-width: 0; }
.stat-card small { color: var(--ph-muted); font-size: 16px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.stat-card strong { margin-right: 6px; font-size: 27px; line-height: 1.15; }
.stat-card div > span { overflow: hidden; color: #625b5c; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }

.workspace-card {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 18px;
  background: var(--ph-surface);
  box-shadow: var(--ph-shadow);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
}
.section-heading h2 { margin: 0; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
.section-heading p { margin: 5px 0 0; color: var(--ph-muted); font-size: 18px; }
.segmented-control { display: flex; padding: 3px; border: 1px solid var(--ph-line); border-radius: 10px; background: #f6f3f1; }
.segmented-control button { padding: 7px 12px; border: 0; border-radius: 7px; color: var(--ph-muted); background: transparent; font-size: 17px; font-weight: 700; cursor: pointer; }
.segmented-control button.active { color: #fff; background: var(--ph-burgundy); }
.filter-toolbar { display: flex; align-items: center; gap: 13px; padding: 14px 26px; border-block: 1px solid var(--ph-line); background: #fcfbfa; }
.search-box {
  display: flex;
  width: min(300px, 100%);
  flex: 0 0 min(300px, 30%);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--ph-line);
  border-radius: 9px;
  background: #fff;
}
.search-box input { width: 100%; height: 36px; border: 0; outline: 0; background: transparent; font-size: 18px; }
.thread-filters { display: flex; min-width: 0; flex: 1; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.filter-chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--ph-line);
  border-radius: 999px;
  color: var(--ph-muted);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.filter-chip.active { border-color: var(--ph-burgundy); color: #fff; background: var(--ph-burgundy); }

.calendar-panel { padding: 0 18px 22px; overflow-x: auto; }
.weekday-row, .calendar-grid { min-width: 840px; display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.weekday-row span { padding: 12px 10px 9px; color: #625b5c; font-size: 15px; font-weight: 700; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.calendar-grid { overflow: hidden; border-top: 1px solid var(--ph-line); border-left: 1px solid var(--ph-line); border-radius: 12px; }
.calendar-day {
  position: relative;
  min-height: 150px;
  padding: 9px;
  border-right: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
  background: #fff;
  cursor: pointer;
}
.calendar-day:hover { z-index: 1; background: #fffcf8; box-shadow: inset 0 0 0 1px var(--ph-gold); }
.calendar-day.outside-range { background: #faf9f8; }
.day-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.day-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #665e5f; font-size: 17px; font-weight: 700; }
.calendar-day.is-today .day-number { color: #fff; background: var(--ph-burgundy); }
.day-count { color: #625b5c; font-size: 15px; }
.calendar-task {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  padding: 7px 8px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid var(--thread-color, var(--ph-gold));
  border-radius: 6px;
  color: #3e3435;
  background: var(--thread-bg, #f6f1e6);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.calendar-task:hover { filter: brightness(.97); }
.more-tasks { padding: 2px 5px; color: var(--ph-burgundy); font-size: 15px; font-weight: 700; }
.calendar-empty { grid-column: 1 / -1; padding: 70px 20px; color: var(--ph-muted); text-align: center; }

.task-list-panel { padding: 0 25px 25px; }
.table-wrap { overflow-x: auto; }
.task-table { width: 100%; border-collapse: collapse; }
.task-table th { padding: 13px 12px; border-bottom: 1px solid var(--ph-line); color: #625b5c; font-size: 15px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.task-table td { padding: 14px 12px; border-bottom: 1px solid #f0ece9; vertical-align: middle; font-size: 17px; }
.task-table tr:hover td { background: #fcfaf8; }
.task-title-cell strong, .task-title-cell small { display: block; }
.task-title-cell strong { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.task-title-cell small { margin-top: 3px; color: var(--ph-muted); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; color: #693e12; background: #f4e8cc; font-size: 15px; font-weight: 700; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-badge[data-status="Live"], .status-badge[data-status="Analytics"] { color: #1f6849; background: #dff2e8; }
.table-action { border: 0; color: var(--ph-burgundy); background: transparent; font-weight: 700; cursor: pointer; }

.intelligence-section { padding-bottom: 25px; }
.intelligence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 0 25px; }
.intelligence-card { position: relative; min-width: 0; padding: 19px; border: 1px solid var(--ph-line); border-radius: 14px; background: linear-gradient(145deg, #fff, #fcfaf8); }
.intelligence-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 14px 0 0 14px; background: var(--ph-gold); content: ""; }
.intelligence-card small { color: var(--ph-burgundy); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.intelligence-card h3 { margin: 8px 0 5px; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-size: 24px; font-weight: 500; }
.intelligence-card p { display: -webkit-box; margin: 0 0 15px; overflow: hidden; color: var(--ph-muted); font-size: 17px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.empty-state { grid-column: 1 / -1; padding: 45px 20px; color: var(--ph-muted); text-align: center; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(23,13,14,.42); backdrop-filter: blur(2px); }
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  width: min(570px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid var(--ph-line);
  background: #fff;
  box-shadow: -20px 0 60px rgba(37, 20, 21, .18);
  transform: translateX(105%);
  transition: transform .25s ease;
}
.detail-drawer.open { transform: translateX(0); }
.day-drawer { width: min(440px, 100vw); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 25px; border-bottom: 1px solid var(--ph-line); }
.drawer-header h2 { margin: 0; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-size: 27px; font-weight: 500; line-height: 1.15; }
.drawer-header p { margin: 5px 0 0; color: var(--ph-muted); font-size: 17px; }
.close-button { width: 36px; height: 36px; flex: 0 0 36px; font-size: 23px; }
.drawer-body { flex: 1; padding: 24px; overflow-y: auto; }
.day-task-card { display: block; width: 100%; margin-bottom: 10px; padding: 16px; border: 1px solid var(--ph-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.day-task-card:hover { border-color: var(--ph-gold); box-shadow: 0 8px 20px rgba(48,29,30,.06); }
.day-task-card .task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.day-task-card h3 { margin: 8px 0 5px; font-size: 20px; }
.day-task-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ph-muted); font-size: 17px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.thread-label { color: var(--ph-burgundy); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.task-form { padding-bottom: 0; }
.campaign-builder { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:0 24px 20px; padding:20px; border:1px solid var(--ph-line); border-radius:14px; background:#fcfaf8; }
.campaign-builder > div:first-child { grid-column:1/-1; }
.campaign-builder h3 { margin:2px 0 4px; font:500 23px/1.2 "Montserrat", "Helvetica Neue", Arial, sans-serif; }
.campaign-builder p { margin:0; color:var(--ph-muted); }
.campaign-builder label { display:grid; gap:6px; color:#675e5f; font-size:14px; font-weight: 700; letter-spacing:.04em; text-transform:uppercase; }
.campaign-builder input,.campaign-builder select { width:100%; padding:10px; border:1px solid #dcd4d0; border-radius:8px; background:#fff; font:16px/1.2 Inter,"Avenir Next",Arial,sans-serif; text-transform:none; }
.campaign-builder-action { grid-column:1/-1; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
#campaignMessage { color:var(--ph-muted); font-weight: 700; }
.form-status-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-status-row { padding: 14px; border-radius: 12px; background: #f7f3ed; }
.task-form label { display: grid; gap: 5px; color: #675e5f; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.task-form input, .task-form textarea, .task-form select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #dcd4d0;
  border-radius: 8px;
  color: var(--ph-ink);
  background: #fff;
  outline: 0;
  font-size: 18px;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}
.task-form textarea { resize: vertical; line-height: 1.55; }
.task-form input:focus, .task-form textarea:focus, .task-form select:focus { border-color: var(--ph-gold); box-shadow: 0 0 0 3px rgba(176,156,99,.14); }
.form-grid { margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.lifecycle { display: flex; margin: 20px 0 8px; overflow-x: auto; padding-bottom: 8px; }
.lifecycle-step { position: relative; min-width: 75px; flex: 1; padding: 0; border: 0; color: #aaa1a2; background: transparent; text-align: center; cursor: pointer; }
.lifecycle-step::before { position: absolute; top: 10px; right: 50%; left: -50%; height: 2px; background: #e4dedb; content: ""; }
.lifecycle-step:first-child::before { display: none; }
.lifecycle-dot { position: relative; z-index: 1; display: grid; width: 21px; height: 21px; margin: 0 auto 7px; place-items: center; border: 2px solid #d9d1cd; border-radius: 50%; background: #fff; font-size: 15px; }
.lifecycle-step.complete { color: var(--ph-burgundy); }
.lifecycle-step.complete::before { background: var(--ph-gold); }
.lifecycle-step.complete .lifecycle-dot { border-color: var(--ph-gold); color: #fff; background: var(--ph-burgundy); }
.lifecycle-step span:last-child { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; }
.deliverable-panel, .activity-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ph-line); }
.subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.subsection-heading h3 { margin: 0; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-size: 19px; font-weight: 500; }
.subsection-heading span { color: var(--ph-muted); font-size: 15px; }
.text-button { border: 0; color: var(--ph-burgundy); background: transparent; font-size: 16px; font-weight: 700; cursor: pointer; }
.rich-copy { width: 100%; min-height: 250px; max-height: 420px; padding: 16px; overflow-y: auto; border: 1px solid var(--ph-line); border-radius: 10px; color: #4b4243; background: #fcfaf8; font: 12px/1.65 Inter, "Avenir Next", Arial, sans-serif; resize: vertical; white-space: pre-wrap; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-item { position: relative; margin-left: 8px; padding: 0 0 18px 22px; border-left: 1px solid #ddd4d0; }
.activity-item::before { position: absolute; top: 4px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ph-gold); content: ""; }
.activity-item:last-child { border-left-color: transparent; }
.activity-item strong { display: block; font-size: 17px; }
.activity-item p { margin: 3px 0; color: var(--ph-muted); font-size: 16px; }
.activity-item time { color: #9d9596; font-size: 15px; }
.drawer-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px -24px 0;
  padding: 15px 24px;
  border-top: 1px solid var(--ph-line);
  background: rgba(255,255,255,.95);
}
#saveMessage { color: var(--ph-muted); font-size: 16px; }
#saveMessage.error { color: #9b2727; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intelligence-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 900px) {
  .app-sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .app-sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.2); }
  .app-main { width: 100%; max-width: none; margin-left: 0; }
  .mobile-menu { display: block; }
  .topbar-context { margin-right: auto; margin-left: 12px; }
  .account-button span:not(.avatar), .account-button > span:last-child { display: none; }
}
@media (max-width: 680px) {
  .content { padding-inline: 13px; }
  .topbar { padding-inline: 13px; }
  .topbar .button-secondary { display: none; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 36px; }
  .stats-grid, .intelligence-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; padding-inline: 17px; }
  .calendar-actions { width: 100%; flex-wrap: wrap; }
  .filter-toolbar { align-items: stretch; flex-direction: column; padding-inline: 17px; }
  .search-box { width: 100%; flex-basis: auto; }
  .calendar-panel { padding-inline: 8px; }
  .intelligence-grid { padding-inline: 17px; }
  .form-status-row, .form-grid { grid-template-columns: 1fr; }
  .campaign-builder { grid-template-columns:1fr; margin-inline:12px; }
  .form-grid .full { grid-column: auto; }
  .drawer-body, .drawer-header { padding: 18px; }
  .drawer-footer { margin-inline: -18px; padding-inline: 18px; }
}

@media print {
  .app-sidebar, .topbar, .hero-actions, .calendar-actions, .filter-toolbar, .drawer-backdrop, .detail-drawer { display: none !important; }
  .app-main { width: 100%; max-width: none; margin: 0; }
  .workspace-card { box-shadow: none; }
}

/* The month you are looking at, large enough to read at a glance. */
.calendar-month-headline {
  margin: 22px 0 6px;
  padding: 0 16px;
  color: var(--ph-burgundy-2, #4b0102);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
@media (max-width: 760px) {
  .calendar-month-headline { font-size: 32px; }
}
