:root {
  --ink: #183735;
  --muted: #6c7f7d;
  --teal-950: #0b3432;
  --teal-900: #103f3d;
  --teal-800: #18514e;
  --teal-700: #126764;
  --teal-600: #0e7773;
  --teal-100: #dff1ef;
  --teal-50: #edf8f7;
  --orange: #ef8a2f;
  --orange-dark: #c96611;
  --orange-soft: #fff1e1;
  --red: #d9534f;
  --red-soft: #fff0ef;
  --blue: #3d72bc;
  --blue-soft: #edf3fc;
  --amber: #b77818;
  --amber-soft: #fff7e8;
  --surface: #ffffff;
  --canvas: #f3f6f5;
  --line: #dde6e4;
  --line-strong: #ccd9d7;
  --shadow-sm: 0 4px 14px rgba(17, 62, 59, 0.06);
  --shadow: 0 14px 36px rgba(17, 62, 59, 0.09);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --sidebar: 258px;
  color-scheme: light;
  font-family:
    Tahoma, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

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

button {
  color: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239, 138, 47, 0.24);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 24px 17px 18px;
  overflow-y: auto;
  background: var(--teal-950);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 7px 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50% 50% 48% 52%;
  background: var(--orange);
  color: var(--teal-950);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset -5px -5px 0 rgba(16, 63, 61, 0.12);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  letter-spacing: 2.4px;
  font-size: 18px;
}

.brand span {
  margin-top: -3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.main-nav {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  text-align: right;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(-2px);
}

.nav-item.active {
  background: var(--orange);
  color: var(--teal-950);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.13);
}

.nav-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 15px;
  font-weight: 800;
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.45);
}

.sidebar-foot {
  display: grid;
  gap: 15px;
  margin-top: auto;
  padding-top: 28px;
}

.shift-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.shift-card > * {
  display: block;
}

.shift-card strong {
  margin: 7px 0 4px;
  font-size: 13px;
}

.shift-card strong i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 5px;
  border-radius: 50%;
  background: #f4b24e;
  box-shadow: 0 0 0 4px rgba(244, 178, 78, 0.12);
}

.shift-card small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  line-height: 1.55;
}

.shift-card button {
  width: 100%;
  margin-top: 11px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.shift-card.is-ready {
  border-color: rgba(85, 201, 145, 0.38);
  background: rgba(85, 201, 145, 0.1);
}

.shift-card.is-ready strong i {
  background: #62d99e;
  box-shadow: 0 0 0 4px rgba(98, 217, 158, 0.14);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-800);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.user-row strong,
.user-row small {
  display: block;
}

.user-row strong {
  font-size: 12px;
}

.user-row small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.main-area {
  min-height: 100vh;
  margin-right: var(--sidebar);
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px clamp(20px, 3.5vw, 48px);
  border-bottom: 1px solid rgba(204, 217, 215, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.eyebrow {
  color: var(--teal-600);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.topbar-title .eyebrow {
  display: block;
  margin-bottom: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.customer-preview-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--teal-600);
  border-radius: 10px;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.customer-preview-link:hover {
  background: var(--teal-50);
}

.search-box {
  display: flex;
  width: min(27vw, 300px);
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--teal-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 119, 115, 0.09);
}

.search-box input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.icon-button,
.primary-action,
.menu-toggle {
  border: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 900;
}

.icon-button i {
  position: absolute;
  top: -6px;
  left: -5px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-style: normal;
}

.primary-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 7px 16px rgba(18, 103, 100, 0.2);
  font-size: 11px;
  font-weight: 800;
}

.primary-action:hover {
  background: var(--teal-800);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px clamp(20px, 3.5vw, 48px) 60px;
}

.view {
  display: none;
  animation: view-in 220ms ease;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel {
  position: relative;
  display: flex;
  min-height: 225px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 50px);
  border-radius: var(--radius-lg);
  background: var(--teal-900);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.hero-panel::before {
  top: -90px;
  left: 19%;
  width: 220px;
  height: 220px;
  border: 48px solid rgba(255, 255, 255, 0.035);
}

.hero-panel::after {
  right: -85px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-copy,
.hero-status {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 660px;
}

.hero-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(239, 138, 47, 0.16);
  color: #ffc17d;
  font-size: 10px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 13px 0 8px;
  font-size: clamp(27px, 3.4vw, 43px);
  line-height: 1.25;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.light {
  background: #fff;
  color: var(--teal-900);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--teal-700);
}

.button.submit {
  width: 100%;
  margin-top: auto;
  background: var(--teal-700);
  color: #fff;
}

.button.danger-button {
  background: var(--red);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hero-status {
  display: grid;
  min-width: 155px;
  justify-items: center;
}

.status-orbit {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border: 9px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--orange);
  border-right-color: var(--orange);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.status-orbit div {
  display: grid;
  place-items: center;
  transform: rotate(24deg);
}

.status-orbit strong {
  font-size: 28px;
  line-height: 1;
}

.status-orbit span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 9px;
}

.hero-status > small {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.section-heading,
.page-intro,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-heading {
  margin: 30px 0 15px;
}

.section-heading h2,
.page-intro h2,
.panel-head h3 {
  margin: 2px 0 0;
  line-height: 1.35;
}

.section-heading h2 {
  font-size: 21px;
}

.period-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.period-control button {
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
}

.period-control button.active {
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 800;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.kpi-card {
  position: relative;
  min-height: 137px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.kpi-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--teal-600);
  content: "";
}

.kpi-card.accent-orange::after {
  background: var(--orange);
}

.kpi-card.accent-blue::after {
  background: var(--blue);
}

.kpi-card.accent-red::after {
  background: var(--red);
}

.kpi-top,
.kpi-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-top {
  color: var(--muted);
  font-size: 10px;
}

.kpi-top i {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.kpi-card > strong {
  display: block;
  margin: 13px 0 10px;
  color: var(--teal-950);
  direction: ltr;
  text-align: right;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1;
}

.kpi-card > strong small {
  color: var(--muted);
  font-size: 9px;
}

.kpi-meta {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.positive {
  color: var(--teal-600) !important;
  font-weight: 800;
}

.negative,
.danger-text {
  color: var(--red) !important;
  font-weight: 800;
}

.muted-value {
  color: #91a09e !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.dashboard-grid.lower {
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.9fr);
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h3 {
  font-size: 15px;
}

.panel-note {
  max-width: 280px;
  color: var(--muted);
  font-size: 9px;
  text-align: left;
}

.sales-visual {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 28px;
  padding: 8px 3px 2px;
}

.donut {
  position: relative;
  display: grid;
  width: 135px;
  height: 135px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal-600) 0 71.1%, var(--orange) 71.1% 100%);
}

.donut::after {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.donut strong {
  font-size: 19px;
}

.donut span {
  color: var(--muted);
  font-size: 8px;
}

.bar-group {
  display: grid;
  gap: 17px;
}

.bar-group > div > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 10px;
}

.bar-group strong {
  direction: ltr;
  font-size: 11px;
}

.bar-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9efee;
}

.bar-track i {
  display: block;
  width: var(--size);
  height: 100%;
  border-radius: inherit;
  background: var(--teal-600);
}

.bars .bar-track i {
  background: var(--orange);
}

.checklist-mini,
.full-checklist,
.quality-list,
.alert-list,
.book-list,
.activity-list {
  display: grid;
  gap: 9px;
}

.checklist-mini label,
.full-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.checklist-mini label:has(input:checked),
.full-checklist label:has(input:checked) {
  border-color: #b3d9d5;
  background: var(--teal-50);
}

.full-checklist label > span {
  flex: 1;
}

.full-checklist label > b {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.checklist-mini input,
.full-checklist input,
.consent-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal-600);
}

.checklist-mini span,
.full-checklist span {
  font-size: 10px;
  font-weight: 700;
}

.checklist-mini small,
.full-checklist small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}

.alert-list > div,
.alert-list > button {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: right;
}

.alert-list > div:last-child,
.alert-list > button:last-child {
  border-bottom: 0;
}

.alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft);
}

.alert-dot.red {
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
}

.alert-dot.blue {
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}

.alert-dot.teal {
  background: var(--teal-600);
  box-shadow: 0 0 0 5px var(--teal-50);
}

.alert-list strong,
.alert-list small {
  display: block;
}

.alert-list strong {
  font-size: 10px;
}

.alert-list small {
  color: var(--muted);
  font-size: 8px;
}

.alert-list button,
.text-button {
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: var(--teal-600);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.alert-list > button > b {
  color: var(--muted);
  font-size: 8px;
}

.quick-panel {
  margin-top: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-grid button {
  display: grid;
  min-height: 115px;
  justify-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: right;
}

.quick-grid button:hover {
  border-color: #b7cecb;
  box-shadow: var(--shadow-sm);
}

.quick-grid strong {
  margin-top: 9px;
  font-size: 10px;
}

.quick-grid small {
  color: var(--muted);
  font-size: 8px;
}

.quick-icon,
.form-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 900;
}

.quick-icon {
  width: 30px;
  height: 30px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 12px;
}

.quick-icon.blue,
.form-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.quick-icon.red,
.form-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.quick-icon.orange,
.form-icon.orange {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.page-intro {
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-intro > div {
  max-width: 760px;
}

.page-intro h2 {
  font-size: clamp(23px, 3vw, 33px);
}

.page-intro p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.context-chip,
.soft-chip,
.risk-chip,
.danger-chip,
.count-badge,
.book-status,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.context-chip,
.soft-chip,
.status-pill {
  background: var(--teal-100);
  color: var(--teal-700);
}

.context-chip.warning,
.risk-chip,
.status-pill.warning,
.status-pill.amber,
.book-status.waiting {
  background: var(--amber-soft);
  color: var(--amber);
}

.danger-chip,
.status-pill.danger,
.status-pill.red,
.book-status.danger {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.success,
.context-chip.success,
.book-status.success {
  background: #e6f7ef;
  color: #25835e;
}

.status-pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-pill.teal {
  background: var(--teal-100);
  color: var(--teal-700);
}

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

.data-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    border 180ms ease,
    box-shadow 180ms ease;
}

.data-form.form-focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 138, 47, 0.13), var(--shadow);
}

.form-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 2px;
}

.form-title h3,
.form-title p {
  margin: 0;
}

.form-title h3 {
  font-size: 14px;
}

.form-title p {
  color: var(--muted);
  font-size: 8px;
}

.form-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: var(--teal-100);
  color: var(--teal-700);
}

.fields {
  display: grid;
  gap: 10px;
}

.fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-form label {
  display: grid;
  gap: 5px;
  color: #395452;
  font-size: 9px;
  font-weight: 800;
}

.data-form input,
.data-form select,
.data-form textarea {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fbfcfc;
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
}

.data-form textarea {
  resize: vertical;
}

.data-form input:focus,
.data-form select:focus,
.data-form textarea:focus {
  border-color: var(--teal-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 119, 115, 0.08);
}

.consent-row {
  display: flex !important;
  align-items: flex-start;
  gap: 8px !important;
}

.consent-row span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.activity-panel {
  margin-top: 14px;
}

.empty-state {
  display: grid;
  min-height: 145px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 39px;
  height: 39px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  font-size: 20px;
}

.empty-state strong {
  font-size: 10px;
}

.empty-state small {
  font-size: 8px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdfd;
}

.activity-item .activity-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 900;
}

.activity-item strong,
.activity-item small {
  display: block;
}

.activity-item strong {
  font-size: 10px;
}

.activity-item small,
.activity-time {
  color: var(--muted);
  font-size: 8px;
}

.activity-time {
  direction: ltr;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.summary-strip > div {
  padding: 16px 17px;
  border-left: 1px solid var(--line);
}

.summary-strip > div:last-child {
  border-left: 0;
}

.summary-strip span,
.summary-strip strong {
  display: block;
}

.summary-strip span {
  color: var(--muted);
  font-size: 8px;
}

.summary-strip strong {
  margin-top: 4px;
  direction: ltr;
  text-align: right;
  font-size: 16px;
}

.statement {
  display: grid;
  gap: 3px;
}

.statement > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 3px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.statement > div strong {
  direction: ltr;
}

.statement .total {
  margin-top: 5px;
  padding: 12px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--teal-50);
  color: var(--teal-800);
  font-weight: 900;
}

.statement .grand-total {
  padding: 14px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--teal-900);
  color: #fff;
  font-weight: 900;
}

.notice,
.danger-notice {
  margin-top: 13px;
  padding: 12px;
  border-radius: 10px;
  font-size: 9px;
}

.notice {
  border: 1px solid #f0d9b4;
  background: var(--amber-soft);
  color: #83570f;
}

.danger-notice {
  border: 1px solid #edc1be;
  background: var(--red-soft);
  color: #9d3c37;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-panel .panel-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  background: #f7f9f9;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

td {
  color: #38524f;
}

tbody tr:hover {
  background: #fbfdfc;
}

tr.highlight-row {
  background: var(--teal-50);
}

.context-link {
  text-decoration: none;
}

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

.request-status-select {
  min-width: 120px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--teal-700);
  font: inherit;
  font-weight: 800;
}

.request-status-select:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(14, 119, 115, 0.08);
}

.request-delivery-control {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.request-delivery-control .button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.request-delivery-control small {
  color: var(--muted);
  font-size: 0.72rem;
}

.web-empty-note {
  margin: 0;
  padding: 22px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.web-empty-note[hidden] {
  display: none;
}

.market-intel-panel {
  margin-top: 14px;
}

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

.market-intel-grid > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.market-intel-grid strong {
  color: var(--teal-800);
  font-size: 10px;
}

.market-intel-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  margin-top: 14px;
}

.integration-panel {
  position: relative;
  overflow: hidden;
}

.integration-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--amber);
  content: "";
}

.integration-panel.is-connected::before {
  background: var(--teal-600);
}

.integration-flow {
  display: grid;
  gap: 9px;
}

.integration-flow > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.integration-flow > div > b {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 10px;
}

.integration-flow span {
  display: grid;
  gap: 2px;
}

.integration-flow strong {
  color: var(--teal-900);
  font-size: 10px;
}

.integration-flow small {
  color: var(--muted);
  font-size: 8px;
}

.integration-error {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 8px;
}

.integration-error[hidden] {
  display: none;
}

.control-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.control-warning > span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.control-warning p {
  margin: 4px 0 0;
  line-height: 1.75;
}

.control-gaps {
  margin-top: 0;
  margin-bottom: 14px;
}

.control-gaps > .button {
  width: calc(100% - 32px);
  margin: 14px 16px 16px;
}

.whatsapp-safety-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.whatsapp-safety-notice > span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.whatsapp-safety-notice p {
  margin: 4px 0 0;
  line-height: 1.75;
}

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

.whatsapp-connection-card {
  position: relative;
  overflow: hidden;
}

.whatsapp-connection-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--amber);
  content: "";
}

.whatsapp-connection-body {
  display: grid;
  gap: 13px;
}

.whatsapp-number-card {
  display: grid;
  padding: 14px;
  border: 1px solid #cde2df;
  border-radius: 12px;
  background: var(--teal-50);
}

.whatsapp-number-card span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.whatsapp-number-card strong {
  margin: 3px 0;
  color: var(--teal-900);
  font-size: 20px;
  text-align: right;
}

.whatsapp-number-card small {
  color: var(--muted);
  font-size: 8px;
}

.whatsapp-connection-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.whatsapp-connection-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
}

.whatsapp-connection-steps li > b {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 9px;
}

.whatsapp-connection-steps li > span {
  display: grid;
}

.whatsapp-connection-steps strong,
.whatsapp-connection-steps small {
  display: block;
}

.whatsapp-connection-steps strong {
  font-size: 9px;
}

.whatsapp-connection-steps small {
  color: var(--muted);
  font-size: 8px;
}

.whatsapp-dry-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.whatsapp-dry-control > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.whatsapp-dry-control > div > span:last-child {
  display: grid;
}

.whatsapp-dry-control strong {
  color: var(--teal-800);
  font-size: 10px;
}

.whatsapp-dry-control small {
  color: var(--muted);
  font-size: 8px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft);
}

.status-dot.is-safe {
  background: #2f986c;
  box-shadow: 0 0 0 5px #e6f7ef;
}

.whatsapp-approval-list {
  display: grid;
}

.whatsapp-approval-list > div {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: #38524f;
  font-size: 9px;
  font-weight: 800;
}

.whatsapp-approval-list > div:last-child {
  border-bottom: 0;
}

.whatsapp-policy-card {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid #cde2df;
  border-radius: 10px;
  background: var(--teal-50);
}

.whatsapp-policy-card strong {
  color: var(--teal-800);
  font-size: 9px;
}

.whatsapp-policy-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.whatsapp-section-heading {
  margin-top: 28px;
}

.whatsapp-kpis {
  margin-bottom: 14px;
}

.whatsapp-automation-list {
  display: grid;
  gap: 8px;
}

.whatsapp-automation-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
  cursor: pointer;
}

.whatsapp-automation-list input,
.whatsapp-rule-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal-700);
}

.whatsapp-automation-list label > span {
  display: grid;
}

.whatsapp-automation-list strong {
  font-size: 9px;
}

.whatsapp-automation-list small {
  color: var(--muted);
  font-size: 8px;
}

.whatsapp-automation-list label > b {
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 7px;
}

.whatsapp-panel-note {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: #83570f;
  font-size: 8px;
}

.whatsapp-followup-list {
  display: grid;
  gap: 8px;
}

.whatsapp-followup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
}

.whatsapp-followup-item > div {
  min-width: 0;
}

.whatsapp-followup-item h4,
.whatsapp-followup-item p {
  margin: 0;
}

.whatsapp-followup-item h4 {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-followup-item p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.whatsapp-followup-item button,
.whatsapp-template-card button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-700);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.whatsapp-template-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.whatsapp-template-card {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.whatsapp-template-card.marketing {
  border-color: #f0d9b4;
  background: #fffdf8;
}

.whatsapp-template-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.whatsapp-template-card header span,
.whatsapp-template-card header b {
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 7px;
}

.whatsapp-template-card header span {
  background: var(--blue-soft);
  color: var(--blue);
}

.whatsapp-template-card header b {
  background: var(--amber-soft);
  color: var(--amber);
}

.whatsapp-template-card h3 {
  margin: 14px 0 6px;
  font-size: 12px;
}

.whatsapp-template-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 8px;
}

.whatsapp-template-card button {
  width: 100%;
  margin-top: auto;
}

.whatsapp-campaign-grid {
  margin-top: 14px;
}

.whatsapp-campaign-form {
  display: grid;
  gap: 11px;
}

.whatsapp-campaign-form label {
  display: grid;
  gap: 5px;
  color: #395452;
  font-size: 9px;
  font-weight: 800;
}

.whatsapp-campaign-form input,
.whatsapp-campaign-form select,
.whatsapp-campaign-form textarea {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
}

.whatsapp-campaign-form input:focus,
.whatsapp-campaign-form select:focus,
.whatsapp-campaign-form textarea:focus {
  border-color: var(--teal-700);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 119, 115, 0.08);
}

.whatsapp-campaign-form textarea {
  resize: vertical;
}

.whatsapp-rule-check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px !important;
  padding: 10px;
  border: 1px solid #f0d9b4;
  border-radius: 9px;
  background: var(--amber-soft);
  color: #83570f !important;
  font-size: 8px !important;
  font-weight: 500 !important;
}

.whatsapp-rule-check input {
  flex: 0 0 16px;
  margin-top: 2px;
}

.whatsapp-guardrails {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.whatsapp-guardrails li {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.whatsapp-guardrails li:last-child {
  border-bottom: 0;
}

.whatsapp-guardrails b {
  color: var(--teal-800);
  font-size: 9px;
}

.whatsapp-guardrails span {
  color: var(--muted);
  font-size: 8px;
}

.whatsapp-audience-summary {
  display: grid;
  justify-items: center;
  margin-top: 13px;
  padding: 14px;
  border-radius: 11px;
  background: var(--teal-900);
  color: #fff;
  text-align: center;
}

.whatsapp-audience-summary span,
.whatsapp-audience-summary small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 8px;
}

.whatsapp-audience-summary strong {
  margin: 3px 0;
  font-size: 27px;
  line-height: 1;
}

.whatsapp-log-panel {
  margin-top: 14px;
}

td[dir="ltr"],
.number {
  font-variant-numeric: tabular-nums;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.readiness-full .panel-head {
  align-items: flex-end;
}

.progress-number {
  color: var(--teal-700);
  direction: ltr;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.readiness-bar {
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efee;
}

.readiness-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition:
    width 240ms ease,
    background 240ms ease;
}

.readiness-bar i.is-complete {
  background: #39a675;
}

.approve-button {
  margin-top: 13px;
  background: var(--teal-700);
  color: #fff;
}

.incident-cards {
  display: grid;
  gap: 10px;
}

.incident-card,
.incident-cards > article {
  padding: 14px;
  border: 1px solid var(--line);
  border-right: 4px solid var(--amber);
  border-radius: 11px;
  background: #fff;
}

.incident-card.danger,
.incident-cards > article:has(.status-pill.red),
.incident-cards > article:has(.status-pill.danger) {
  border-right-color: var(--red);
}

.incident-card .incident-top,
.incident-cards > article > div,
.incident-cards > article > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.incident-card h4,
.incident-cards > article h4 {
  margin: 10px 0 5px;
  font-size: 11px;
}

.incident-card p,
.incident-cards > article p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.incident-card small,
.incident-cards > article time,
.incident-cards > article footer {
  color: var(--muted);
  font-size: 8px;
}

.incident-cards > article footer {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.incident-cards > article footer b {
  color: var(--red);
}

.manual-panel {
  margin-top: 14px;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.manual-grid section {
  min-height: 145px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
}

.manual-grid section > b {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-100);
  color: var(--teal-700);
  direction: ltr;
  font-size: 9px;
}

.manual-grid h4 {
  margin: 13px 0 7px;
  color: var(--teal-900);
  font-size: 11px;
}

.manual-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.manual-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.manual-rules span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 8px;
  font-weight: 800;
}

.quality-list > div {
  display: grid;
  grid-template-columns: 125px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 9px;
}

.quality-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7efed;
}

.quality-track i {
  display: block;
  width: var(--quality);
  height: 100%;
  border-radius: inherit;
  background: var(--teal-600);
}

.quality-track.danger i {
  background: var(--red);
}

.book-list > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.book-list > div:last-child {
  border-bottom: 0;
}

.book-list strong,
.book-list small {
  display: block;
}

.book-list strong {
  font-size: 10px;
}

.book-list small {
  color: var(--muted);
  font-size: 8px;
}

.count-badge {
  min-width: 27px;
  background: #eef3f2;
  color: var(--ink);
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: 14px;
}

.closing-score {
  display: grid;
  min-height: 265px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.big-score {
  display: grid;
  width: 124px;
  height: 124px;
  margin: 15px 0;
  place-items: center;
  border: 9px solid #f0e1c9;
  border-top-color: var(--orange);
  border-radius: 50%;
  color: var(--teal-900);
  font-size: 27px;
  font-weight: 900;
}

.closing-score p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.checks-table td:first-child {
  min-width: 190px;
  white-space: normal;
}

.mobile-scrim {
  display: none;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--teal-950);
  color: #fff;
  box-shadow: 0 16px 38px rgba(8, 40, 38, 0.22);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #9d3c37;
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .data-form:last-child {
    grid-column: 1 / -1;
  }

  .search-box {
    width: 220px;
  }
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(105%);
    box-shadow: -20px 0 45px rgba(8, 40, 38, 0.24);
    transition: transform 210ms ease;
  }

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

  .mobile-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    background: rgba(5, 30, 29, 0.48);
  }

  body.menu-open .mobile-scrim {
    display: block;
  }

  .main-area {
    margin-right: 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .operations-grid,
  .closing-layout,
  .web-request-grid,
  .control-grid,
  .market-intel-grid,
  .whatsapp-overview-grid,
  .whatsapp-workspace-grid,
  .whatsapp-campaign-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .topbar {
    min-height: 70px;
    padding: 10px 15px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .search-box,
  .icon-button {
    display: none;
  }

  .primary-action {
    padding: 8px 11px;
  }

  .content {
    padding: 18px 14px 45px;
  }

  .hero-panel {
    min-height: 0;
    padding: 25px;
  }

  .hero-copy h2 {
    font-size: 27px;
  }

  .hero-status {
    display: none;
  }

  .page-intro {
    align-items: flex-start;
  }

  .page-intro .context-chip {
    margin-top: 4px;
  }

  .dashboard-grid,
  .dashboard-grid.lower {
    grid-template-columns: 1fr;
  }

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

  .summary-strip > div:nth-child(2) {
    border-left: 0;
  }

  .summary-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .sales-visual {
    grid-template-columns: 120px 1fr;
    gap: 18px;
  }

  .donut {
    width: 115px;
    height: 115px;
  }

  .donut::after {
    width: 70px;
    height: 70px;
  }

  .whatsapp-dry-control {
    align-items: stretch;
    flex-direction: column;
  }

  .whatsapp-dry-control .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar-title .eyebrow {
    display: none;
  }

  .topbar-title h1 {
    font-size: 18px;
  }

  .primary-action {
    font-size: 0;
  }

  .customer-preview-link {
    display: none;
  }

  .primary-action span {
    font-size: 18px;
  }

  .hero-copy p {
    font-size: 11px;
  }

  .kpi-grid,
  .form-grid,
  .quick-grid,
  .summary-strip,
  .whatsapp-template-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-template-card {
    min-height: 0;
  }

  .whatsapp-automation-list label {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .whatsapp-automation-list label > b {
    grid-column: 2;
    justify-self: start;
  }

  .whatsapp-followup-item {
    grid-template-columns: 1fr;
  }

  .whatsapp-followup-item button {
    width: 100%;
  }

  .data-form:last-child {
    grid-column: auto;
  }

  .summary-strip > div {
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .summary-strip > div:last-child {
    border-bottom: 0;
  }

  .fields.two {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .page-intro,
  .panel-head {
    align-items: flex-start;
  }

  .section-heading,
  .page-intro {
    flex-direction: column;
  }

  .panel-head {
    gap: 10px;
  }

  .sales-visual {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .bar-group {
    width: 100%;
  }

  .quality-list > div {
    grid-template-columns: 100px 1fr 30px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
