:root {
  --bg: #111827;
  --bg2: #182235;
  --panel: #202d42;
  --panel2: #273449;
  --panel3: #334155;
  --text: #f9fafb;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --border: rgba(148, 163, 184, .28);
  --accent: #f2cc83;
  --accent2: #f59e0b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #38bdf8;
  --violet: #8b5cf6;
  --shadow: 0 18px 40px rgba(0, 0, 0, .22);
  --radius: 20px;
  --radius-sm: 14px;
  --topbar-h: 82px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  --bg: #f7ecd4;
  --bg2: #faefdc;
  --panel: #fff7e7;
  --panel2: #f2cc83;
  --panel3: #f8e4b8;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #374151;
  --border: rgba(41, 97, 23, .22);
  --accent: #296117;
  --accent2: #b7791f;
  --shadow: 0 18px 40px rgba(92, 64, 24, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 204, 131, .16), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, .10), transparent 36rem),
    linear-gradient(135deg, var(--bg), var(--bg2));
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  transition: top .18s ease;
}

.skip-link:focus {
  top: 12px;
}

.appShell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr) 322px;
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar topbar"
    "sidebar main aside";
}

.topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, .84);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .topbar {
  background: rgba(247, 236, 212, .88);
}

.homeLink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.homeLogo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.arrow {
  margin-left: 5px;
}

.brandBlock {
  min-width: 220px;
}

.brandTitle {
  margin: 0;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.012em;
  font-weight: 850;
}

.brandSub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .005em;
}

.activeCampaignBox {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
}

.activeCampaignBox strong {
  display: block;
  font-size: 13px;
  letter-spacing: .005em;
}

.activeCampaignBox span {
  color: var(--muted);
  font-size: 12px;
}

.topActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn,
.fileBtn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .012em;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  user-select: none;
}

.btn:hover,
.fileBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 204, 131, .55);
  background: rgba(242, 204, 131, .10);
}

.btn:focus-visible,
.fileBtn:focus-visible,
.navItem:focus-visible,
.iconBtn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.suggestionChip:focus-visible {
  outline: 3px solid rgba(242, 204, 131, .45);
  outline-offset: 2px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111827;
  border-color: transparent;
}

.btn.danger {
  color: #fecaca;
  border-color: rgba(239, 68, 68, .36);
  background: rgba(239, 68, 68, .10);
}

html[data-theme="light"] .btn.danger {
  color: #991b1b;
}

.btn.full {
  width: 100%;
}

.iconBtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.sidebar {
  grid-area: sidebar;
  min-height: 0;
  overflow: auto;
  padding: 22px 16px 24px 22px;
  border-right: 1px solid var(--border);
}

.navGroup {
  margin-bottom: 21px;
}

.navLabel {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.navItem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  margin: 4px 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--soft);
  text-align: left;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .006em;
}

.navItem span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
  font-size: 12px;
}

.navItem.active {
  color: var(--text);
  background: rgba(242, 204, 131, .12);
  border-color: rgba(242, 204, 131, .34);
}

.navItem.active span {
  background: var(--accent);
  color: #111827;
}

.navItem:hover {
  background: rgba(255, 255, 255, .055);
  border-color: var(--border);
}

.sidebarFooter {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .045);
}

.sidebarFooter p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sidebarFooter p strong {
  color: var(--text);
}

.copyright {
  margin: 14px 0 0 !important;
  opacity: .82;
}

.main {
  grid-area: main;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.statusAside {
  grid-area: aside;
  min-height: 0;
  overflow: auto;
  padding: 22px 22px 24px 16px;
  border-left: 1px solid var(--border);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 204, 131, .18), rgba(56, 189, 248, .06)),
    rgba(255, 255, 255, .05);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(242, 204, 131, .12);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero h2,
.pageTitle {
  margin: 0;
  max-width: 900px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.016em;
}

.heroText,
.pageIntro {
  margin: 14px 0 0;
  max-width: 820px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

.heroMeta,
.actionRow,
.filterRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, .045);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .006em;
  white-space: nowrap;
}

.badge.success {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .10);
}

.badge.warning {
  color: #fed7aa;
  border-color: rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .12);
}

.badge.danger {
  color: #fecaca;
  border-color: rgba(239, 68, 68, .36);
  background: rgba(239, 68, 68, .12);
}

.badge.info {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .12);
}

html[data-theme="light"] .badge.success {
  color: #166534;
}

html[data-theme="light"] .badge.warning {
  color: #92400e;
}

html[data-theme="light"] .badge.danger {
  color: #991b1b;
}

html[data-theme="light"] .badge.info {
  color: #075985;
}

.kpiGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.kpi {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
}

.kpi small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.kpi strong {
  display: block;
  font-size: 24px;
  letter-spacing: -.008em;
}

.kpi span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .6fr);
  gap: 18px;
  margin-top: 18px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  overflow: hidden;
}

.panel + .panel {
  margin-top: 18px;
}

.panelHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.panelHead h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.panelHead p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.panelBody {
  padding: 18px;
}

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

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

.field {
  display: grid;
  gap: 7px;
}

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

label,
.label {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .006em;
}

.helpText {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  outline: none;
  letter-spacing: 0;
}

select option {
  color: #111827;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

textarea.tall {
  min-height: 170px;
}

.suggestionChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.suggestionChip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .045);
  color: var(--soft);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .006em;
}

.suggestionChip:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 204, 131, .55);
  background: rgba(242, 204, 131, .10);
  color: var(--text);
}

.tableTools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .025);
}

.tableTools input,
.tableTools select {
  width: auto;
  min-width: 180px;
}

.tableWrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-weight: 850;
  background: rgba(255, 255, 255, .06);
}

td {
  color: var(--soft);
}

td strong {
  color: var(--text);
}

.rowActions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.smallBtn {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .01em;
}

.smallBtn:hover {
  border-color: rgba(242, 204, 131, .55);
}

.statusPill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
}

.statusPill.idea,
.statusPill.entwurf {
  color: var(--soft);
}

.statusPill.planned,
.statusPill.geplant {
  color: #bae6fd;
  background: rgba(56, 189, 248, .12);
  border-color: rgba(56, 189, 248, .35);
}

.statusPill.work,
.statusPill.inarbeit,
.statusPill.in-arbeit {
  color: #ffedd5;
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .35);
}

.statusPill.check,
.statusPill.pruefung,
.statusPill.inprüfung,
.statusPill.in-pruefung {
  color: #e0e7ff;
  background: rgba(99, 102, 241, .18);
  border-color: rgba(99, 102, 241, .35);
}

.statusPill.done,
.statusPill.erledigt,
.statusPill.freigegeben,
.statusPill.veröffentlicht {
  color: #dcfce7;
  background: rgba(34, 197, 94, .16);
  border-color: rgba(34, 197, 94, .32);
}

.statusPill.critical,
.statusPill.kritisch,
.statusPill.ueberfaellig {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
}

html[data-theme="light"] .statusPill.planned,
html[data-theme="light"] .statusPill.geplant {
  color: #075985;
}

html[data-theme="light"] .statusPill.work,
html[data-theme="light"] .statusPill.inarbeit,
html[data-theme="light"] .statusPill.in-arbeit {
  color: #92400e;
}

html[data-theme="light"] .statusPill.check,
html[data-theme="light"] .statusPill.pruefung,
html[data-theme="light"] .statusPill.inprüfung,
html[data-theme="light"] .statusPill.in-pruefung {
  color: #3730a3;
}

html[data-theme="light"] .statusPill.done,
html[data-theme="light"] .statusPill.erledigt,
html[data-theme="light"] .statusPill.freigegeben,
html[data-theme="light"] .statusPill.veröffentlicht {
  color: #166534;
}

html[data-theme="light"] .statusPill.critical,
html[data-theme="light"] .statusPill.kritisch,
html[data-theme="light"] .statusPill.ueberfaellig {
  color: #991b1b;
}

.asideCard {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
}

.asideCard h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0;
}

.progressRing {
  width: 112px;
  height: 112px;
  margin: 6px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent) 0 0%, rgba(148,163,184,.2) 0% 100%);
  position: relative;
}

.progressRing::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--panel);
}

.progressRing strong {
  position: relative;
  font-size: 25px;
  letter-spacing: -.008em;
}

.asideText {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.checkList,
.miniList {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkList li,
.miniList li {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.checkList li.ok {
  border-color: rgba(34, 197, 94, .32);
}

.checkList li.missing {
  border-color: rgba(245, 158, 11, .32);
}

.noteArea {
  min-height: 130px;
}

.phaseList {
  display: grid;
  gap: 12px;
}

.phaseRow {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.phaseRow strong {
  font-size: 13px;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .20);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.phaseRow em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

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

.infoCard {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
}

.infoCard h4 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.infoCard p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.riskMatrix {
  display: grid;
  grid-template-columns: 86px repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
}

.matrixLabel {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.matrixCell {
  min-height: 72px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}

.matrixCell strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.006em;
}

.matrixCell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.matrixCell.low {
  border-color: rgba(34, 197, 94, .28);
}

.matrixCell.mid {
  border-color: rgba(245, 158, 11, .35);
}

.matrixCell.high {
  border-color: rgba(239, 68, 68, .35);
}

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

.exportCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}

.exportCard h3 {
  margin: 0;
  letter-spacing: 0;
}

.exportCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
}

.modalOverlay.open {
  display: flex;
}

.modal {
  width: min(900px, 100%);
  max-height: min(86vh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modalHead,
.modalFoot {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.modalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modalHead h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.008em;
}

.modalBody {
  overflow: auto;
  padding: 18px;
}

.modalFoot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-bottom: 0;
  border-top: 1px solid var(--border);
}

.toastStack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
}

.toast {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.4;
}

.toast.success {
  border-color: rgba(34, 197, 94, .35);
}

.toast.warning {
  border-color: rgba(245, 158, 11, .35);
}

.toast.danger {
  border-color: rgba(239, 68, 68, .35);
}

.emptyState {
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.emptyState h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -.006em;
}

.emptyState p {
  margin: 0 auto 16px;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1320px) {
  .appShell {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas:
      "topbar topbar"
      "sidebar main";
  }

  .statusAside {
    display: none;
  }

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

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

@media (max-width: 980px) {
  :root {
    --topbar-h: auto;
  }

  .appShell {
    display: block;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
  }

  .activeCampaignBox {
    order: 3;
    flex-basis: 100%;
    border-radius: 18px;
  }

  .topActions {
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }

  .navGroup {
    margin-bottom: 14px;
  }

  .navGroup {
    display: grid;
  }

  .navItem {
    display: inline-flex;
  }

  .main {
    padding: 18px;
  }

  .grid2,
  .grid3,
  .formGrid,
  .formGrid.cols3,
  .cardGrid,
  .exportGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .kpiGrid {
    grid-template-columns: 1fr 1fr;
  }

  .brandBlock {
    min-width: 0;
  }

  .btn,
  .fileBtn {
    min-height: 39px;
  }

  .topActions .btn,
  .topActions .fileBtn {
    flex: 1;
    text-align: center;
  }

  .phaseRow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .phaseRow em {
    text-align: left;
  }

  .modalOverlay {
    align-items: flex-end;
    padding: 10px;
  }

  .modal {
    max-height: 92vh;
    border-radius: 20px;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .topbar,
  .sidebar,
  .statusAside,
  .toastStack,
  .modalOverlay,
  .btn,
  .tableTools,
  .suggestionChips {
    display: none !important;
  }

  .appShell,
  .main {
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .panel,
  .hero,
  .kpi,
  .infoCard {
    break-inside: avoid;
    box-shadow: none !important;
    border-color: #ccc !important;
    background: #fff !important;
  }

  table {
    min-width: 0;
    font-size: 10px;
  }

  th,
  td {
    color: #111 !important;
    border-color: #ddd !important;
  }
}