:root {
  color-scheme: light;
  --bg: #f2f4f6;
  --panel: #ffffff;
  --ink: #151a20;
  --muted: #66717e;
  --line: #dce2e8;
  --red: #c1121f;
  --red-dark: #8f0f18;
  --black: #10161d;
  --charcoal: #202832;
  --steel: #e9eef2;
  --green: #1c7c54;
  --amber: #b7791f;
  --shadow: 0 18px 45px rgba(22, 29, 37, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--black);
  color: #f8fafc;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-block {
  min-height: 84px;
  display: grid;
  align-items: center;
  padding: 0 2px 8px;
}

.brand-block img {
  width: min(220px, 100%);
  height: auto;
  display: block;
}

.login-panel,
.sync-panel {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-size: 0.88rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(193, 18, 31, 0.28);
  overflow: hidden;
  flex: 0 0 auto;
}

.profile-avatar.has-photo {
  background: #20262d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(193, 18, 31, 0.22);
  color: #ffd7da;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-label,
.eyebrow,
.stat-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .panel-label,
.sidebar .eyebrow {
  color: #aeb8c4;
}

.email-field,
.search-box,
.select-box,
.outcome-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.email-field {
  color: #c9d3df;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  text-transform: none;
}

.login-panel input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.quick-logins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.quick-logins[hidden] {
  display: none;
}

.auth-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-logins button,
.google-button,
.ghost-button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
}

.google-button {
  min-height: 40px;
  border-color: white;
  background: white;
  color: var(--black);
}

.google-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.ghost-button {
  color: #dce4ec;
}

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

.nav-section-title {
  margin: 2px 4px -6px;
  color: #7f8b99;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce4ec;
  text-align: left;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.095);
  color: white;
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(193, 18, 31, 0.28), rgba(255, 255, 255, 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 30px rgba(0, 0, 0, 0.18);
}

.nav-item.is-active::before {
  background: var(--red);
}

.nav-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(193, 18, 31, 0.16);
  color: #ffccd1;
}

.nav-icon svg,
.unit-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.is-active .nav-icon {
  background: var(--red);
  color: white;
}

.nav-label {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  line-height: 1;
}

.nav-label-full,
.nav-label-short {
  white-space: nowrap;
}

.nav-sublabel {
  color: #9da9b6;
  font-size: 0.7rem;
  font-weight: 800;
}

.nav-count {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e7edf4;
  font-size: 0.74rem;
  font-weight: 950;
}

.nav-item.is-active .nav-count {
  background: white;
  color: var(--red-dark);
}

.nav-utility-item {
  margin-top: 4px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.nav-utility-item .nav-icon {
  background: rgba(255, 255, 255, 0.11);
  color: #e7edf4;
}

.nav-utility-item:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.nav-label-short {
  display: none;
}

.sync-panel {
  margin-top: auto;
}

.sync-row,
.sync-meta,
.topbar,
.top-actions,
.section-heading,
.message-heading,
.detail-header {
  display: flex;
  align-items: center;
}

.sync-row {
  gap: 8px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52d273;
  box-shadow: 0 0 0 4px rgba(82, 210, 115, 0.15);
}

.sync-meta {
  justify-content: space-between;
  margin-top: 12px;
  color: #b9c4cf;
  font-size: 0.8rem;
}

.main-area {
  min-width: 0;
  padding: 22px;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.topbar h1,
.hero-copy h2,
.section-heading h2,
.detail-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
}

.top-actions {
  gap: 10px;
}

.icon-button,
.primary-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  font-weight: 950;
}

.icon-button.small {
  width: 34px;
  min-height: 32px;
}

.primary-button {
  padding: 0 15px;
  border-color: var(--red);
  background: var(--red);
  color: white;
  font-weight: 900;
}

.department-hero {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.department-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 25, 0.86), rgba(12, 18, 25, 0.52) 42%, rgba(12, 18, 25, 0.12)),
    linear-gradient(0deg, rgba(12, 18, 25, 0.46), transparent 54%);
}

.hero-logo {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 270px;
  max-width: 52%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(10, 14, 18, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero-logo img {
  width: 100%;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  max-width: 730px;
  min-height: 370px;
  padding: 150px 24px 28px;
  color: white;
}

.hero-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
}

.hero-copy h2 {
  max-width: 690px;
  font-size: clamp(2.35rem, 3.8vw, 4rem);
  line-height: 1.03;
}

.hero-copy p:last-child {
  max-width: 660px;
  margin: 13px 0 0;
  color: #e7edf3;
  font-size: 1.02rem;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat-card,
.department-card,
.workflow-callout,
.detail-panel,
.queue-card,
.activity-card,
.activity-note-card,
.cleanup-panel,
.customer-profile-card,
.relationship-notes-card,
.customer-history-card,
.message-box,
.timeline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.9rem;
  line-height: 1;
}

.stat-card small,
.department-card span,
.workflow-callout span,
.queue-main span,
.queue-meta,
.unit-plate span,
.message-box p,
.timeline span {
  color: var(--muted);
}

.department-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  margin-bottom: 16px;
}

.manager-dashboard {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.dashboard-total {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: white;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.dashboard-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-metric:hover,
.dashboard-metric:focus-visible {
  border-color: rgba(193, 18, 31, 0.38);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-metric.is-hot {
  border-color: rgba(193, 18, 31, 0.34);
  background: #fff7f7;
}

.dashboard-metric.is-warn {
  border-color: rgba(138, 90, 0, 0.26);
  background: #fffaf0;
}

.dashboard-metric span,
.mini-section-head span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--charcoal);
  font-size: 1.8rem;
  line-height: 1;
}

.dashboard-metric small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.25;
}

.dashboard-lanes {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  margin-top: 12px;
}

.dashboard-lanes > section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mini-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-section-head strong {
  color: var(--charcoal);
}

.department-pressure-list,
.recent-work-list {
  display: grid;
  gap: 8px;
}

.pressure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  width: 100%;
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.pressure-row:hover,
.pressure-row:focus-visible {
  color: var(--red-dark);
  outline: none;
}

.pressure-row:last-child {
  border-bottom: 0;
}

.pressure-name {
  color: var(--charcoal);
  font-weight: 900;
}

.pressure-row span:not(.pressure-name) {
  justify-self: end;
  font-weight: 950;
}

.recent-work-row {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: #fbfcfd;
}

.recent-work-row strong,
.recent-work-row span,
.recent-work-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.recent-work-row span {
  color: var(--muted);
  line-height: 1.3;
}

.recent-work-row small {
  color: var(--muted);
  font-weight: 780;
}

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

.department-card,
.workflow-callout {
  display: grid;
  gap: 7px;
  padding: 15px;
}

.department-card strong,
.workflow-callout strong {
  font-size: 1rem;
}

.workflow-callout {
  border-color: rgba(193, 18, 31, 0.35);
  background: #fff7f8;
}

.campaign-panel {
  margin: 16px 0;
}

.campaign-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.campaign-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-actions > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 0.76rem;
  font-weight: 950;
}

.campaign-controls {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(220px, 1.2fr) minmax(240px, 1.35fr) minmax(170px, 0.9fr);
  gap: 10px;
}

.campaign-ai-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.campaign-idea-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.campaign-idea-card.is-selected {
  border-color: rgba(193, 18, 31, 0.45);
  background: #fff7f7;
  box-shadow: 0 8px 22px rgba(193, 18, 31, 0.08);
}

.campaign-idea-card.is-selected .ghost-light-button {
  border-color: var(--red);
  background: var(--red);
  color: white;
  box-shadow: 0 8px 18px rgba(193, 18, 31, 0.16);
}

.campaign-idea-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.campaign-idea-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.campaign-idea-head strong {
  color: var(--charcoal);
  line-height: 1.15;
}

.campaign-idea-head span,
.campaign-idea-card p,
.campaign-idea-card small {
  color: var(--muted);
  line-height: 1.28;
}

.campaign-idea-head b {
  display: inline-flex;
  min-width: 42px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-size: 0.95rem;
}

.campaign-idea-card p {
  margin: 0;
}

.campaign-selected-chip {
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(193, 18, 31, 0.1);
  color: var(--red);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.campaign-idea-card blockquote {
  margin: 0;
  padding: 10px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: white;
  color: var(--charcoal);
  line-height: 1.32;
}

.campaign-idea-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-idea-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
}

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

.campaign-summary article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.campaign-summary span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.campaign-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--charcoal);
  font-size: 1.15rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.campaign-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.25;
}

.campaign-draft-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(193, 18, 31, 0.3);
  border-radius: 8px;
  background: white;
}

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

.campaign-draft-head h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.campaign-draft-head > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

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

.campaign-draft-grid article,
.campaign-draft-copy > div,
.campaign-draft-warning {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.campaign-draft-grid span,
.campaign-draft-copy span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.campaign-draft-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--charcoal);
  line-height: 1.2;
}

.campaign-draft-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.campaign-draft-copy p {
  margin: 0;
  color: var(--charcoal);
  line-height: 1.35;
}

.campaign-draft-warning {
  border-color: rgba(193, 18, 31, 0.22);
  background: #fff7f7;
}

.campaign-draft-warning strong {
  display: block;
  margin-bottom: 7px;
}

.campaign-draft-warning ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.3;
}

.campaign-callout {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(193, 18, 31, 0.28);
  border-radius: 8px;
  background: #fff7f7;
}

.campaign-callout span {
  color: var(--muted);
  line-height: 1.32;
}

.campaign-preview-list {
  display: grid;
  gap: 8px;
}

.campaign-preview-row {
  display: grid;
  grid-template-columns: 112px minmax(190px, 1fr) minmax(250px, 1.25fr) 118px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.campaign-preview-row:hover,
.campaign-preview-row:focus-visible {
  border-color: rgba(193, 18, 31, 0.45);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
  outline: none;
}

.campaign-preview-main,
.campaign-preview-context {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.campaign-preview-main strong,
.campaign-preview-context strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--charcoal);
}

.campaign-preview-main small,
.campaign-preview-context small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 1.25;
}

.campaign-preview-status {
  justify-self: start;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 950;
}

.activity-panel {
  margin: 16px 0;
}

.activity-shell {
  display: grid;
  gap: 12px;
}

.activity-summary,
.activity-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.activity-summary span,
.activity-count {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.finder-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: min(100%, 580px);
}

.finder-search {
  display: grid;
  gap: 5px;
  width: min(100%, 520px);
}

.finder-search span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.finder-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--charcoal);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  outline: none;
}

.finder-search input:focus {
  border-color: rgba(193, 18, 31, 0.55);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12);
}

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

.activity-card {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(360px, 1.25fr) minmax(190px, 0.8fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.activity-card:hover,
.activity-card:focus-visible {
  border-color: rgba(193, 18, 31, 0.45);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.activity-main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.activity-main div,
.activity-opportunity,
.finder-match {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-main strong,
.activity-main span,
.activity-opportunity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-main span,
.activity-opportunity small {
  color: var(--muted);
}

.contact-quality {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.contact-quality.ready {
  background: #e2f4ec;
  color: #0f6844;
}

.contact-quality.partial {
  background: #fff4d6;
  color: #8a5a00;
}

.contact-quality.missing {
  background: #ffe8ea;
  color: var(--red-dark);
}

.activity-main div span {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.finder-match > span {
  display: grid;
  gap: 2px;
  color: var(--charcoal);
  font-size: 0.93rem;
  font-weight: 860;
}

.finder-match b {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.finder-match small {
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.28;
}

.activity-opportunity small {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.activity-status {
  display: inline-flex;
  justify-content: center;
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.activity-status.current {
  background: #ffe8ea;
  color: var(--red-dark);
}

.activity-status.warm {
  background: #fff4d6;
  color: #8a5a00;
}

.activity-status.aging {
  background: #e2f4ec;
  color: #0f6844;
}

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

.activity-dates span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 760;
}

.activity-dates b {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.activity-opportunity {
  justify-items: start;
}

.activity-opportunity span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 950;
}

.activity-opportunity span.is-muted {
  color: var(--muted);
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.queue-tools {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 160px;
  gap: 10px;
}

.queue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.queue-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 900;
}

.queue-tab b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--steel);
  color: var(--muted);
  font-size: 0.72rem;
}

.queue-tab.is-active {
  border-color: rgba(193, 18, 31, 0.36);
  background: var(--red);
  color: white;
  box-shadow: 0 10px 24px rgba(193, 18, 31, 0.18);
}

.queue-tab.is-active b {
  background: white;
  color: var(--red-dark);
}

.queue-list {
  display: grid;
  gap: 10px;
}

.queue-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(170px, 1.1fr) minmax(150px, 0.9fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 86px;
  padding: 14px;
  text-align: left;
}

.queue-card:hover,
.queue-card.is-selected {
  border-color: rgba(193, 18, 31, 0.58);
  box-shadow: 0 8px 25px rgba(31, 41, 55, 0.08);
}

.priority-pill,
.status-badge,
.value-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}

.priority-pill.high {
  background: #ffe8ea;
  color: var(--red-dark);
}

.priority-pill.medium {
  background: #fff4d6;
  color: #8a5a00;
}

.priority-pill.watch {
  background: #e2f4ec;
  color: #0f6844;
}

.queue-main,
.queue-meta,
.unit-plate div,
.timeline {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.queue-main strong,
.queue-main span,
.queue-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.queue-meta {
  font-size: 0.88rem;
}

.queue-main b,
.queue-meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.value-chip,
.status-badge {
  background: var(--steel);
  color: var(--charcoal);
}

.queue-work-summary {
  margin-top: 4px;
  padding: 8px 9px;
  border-left: 3px solid rgba(193, 18, 31, 0.42);
  border-radius: 6px;
  background: #fff7f7;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.queue-work-summary.cleanup {
  border-left-color: rgba(183, 121, 31, 0.52);
  background: #fffaf0;
}

.queue-chip-stack {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.work-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  background: #edf7f2;
  color: #0f6844;
  font-size: 0.74rem;
  font-weight: 950;
  text-align: center;
  white-space: normal;
}

.work-chip.is-overdue {
  background: #ffe8ea;
  color: var(--red-dark);
}

.detail-panel {
  position: sticky;
  top: 22px;
  min-width: 0;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  padding-bottom: 24px;
}

.detail-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.unit-plate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--steel);
}

.unit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 950;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.detail-grid div {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 780;
}

.message-box,
.timeline {
  padding: 14px;
  background: #fbfcfd;
}

.activity-note-card {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(193, 18, 31, 0.24);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff7f7;
}

.cleanup-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border-color: rgba(183, 121, 31, 0.32);
  background: #fffaf0;
}

.cleanup-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.cleanup-head strong {
  display: block;
  color: var(--charcoal);
  font-size: 1rem;
}

.cleanup-head > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: white;
  color: #8a5a00;
  font-size: 0.74rem;
  font-weight: 950;
}

.cleanup-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cleanup-issue-list span,
.work-chip.is-cleanup {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 0.74rem;
  font-weight: 950;
}

.cleanup-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.customer-profile-card {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  background: #fbfcfd;
}

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

.profile-heading h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.18rem;
  letter-spacing: 0;
}

.profile-heading > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #edf7f2;
  color: #0f6844;
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

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

.profile-tile {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.profile-tile span,
.profile-note-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-tile strong,
.profile-note-strip strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--charcoal);
  line-height: 1.18;
}

.profile-tile small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.24;
}

.profile-next-action,
.profile-note-strip {
  min-width: 0;
  border-radius: 8px;
  padding: 11px;
}

.profile-next-action {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--red);
  background: #fff7f7;
}

.profile-next-action strong,
.profile-next-action span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-next-action span {
  color: var(--muted);
  line-height: 1.3;
}

.profile-note-strip {
  background: white;
  border: 1px solid var(--line);
}

.relationship-notes-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: white;
}

.relationship-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.relationship-heading h4 {
  margin: 0;
  color: var(--charcoal);
  font-size: 1rem;
  letter-spacing: 0;
}

.relationship-heading > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  background: var(--steel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-strip span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.relationship-note-list {
  display: grid;
  gap: 7px;
}

.relationship-note {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.relationship-note strong {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.relationship-note p {
  margin: 5px 0;
  color: var(--charcoal);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.relationship-note small,
.relationship-note-form small {
  color: var(--muted);
  line-height: 1.3;
}

.relationship-note-form .category-helper {
  margin-top: -2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.78rem;
}

.relationship-note-form {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.relationship-note-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.relationship-note-form select,
.relationship-note-form textarea {
  width: 100%;
  border: 1px solid #cad3dc;
  border-radius: 8px;
  background: white;
  color: var(--charcoal);
  font: inherit;
  font-size: 0.84rem;
  text-transform: none;
}

.relationship-note-form select {
  min-height: 40px;
  padding: 0 10px;
}

.relationship-note-form textarea {
  min-height: 84px;
  padding: 10px;
  resize: vertical;
}

.finder-profile-section {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.finder-profile-section span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.finder-profile-section div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.finder-profile-section strong {
  display: inline-flex;
  min-height: 28px;
  min-width: 0;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--charcoal);
  font-size: 0.8rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.customer-history-card {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  background: #fbfcfd;
}

.history-heading h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.history-section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.history-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-section-head strong {
  color: var(--charcoal);
  font-size: 0.94rem;
}

.history-section-head span {
  display: grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--steel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.history-row-list {
  display: grid;
  gap: 6px;
}

.history-row,
.history-empty {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px;
}

.history-row {
  display: grid;
  gap: 3px;
}

.history-row strong,
.history-row span,
.history-row small,
.history-empty {
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-row strong {
  color: var(--charcoal);
  line-height: 1.18;
}

.history-row span,
.history-row small,
.history-empty {
  color: var(--muted);
  line-height: 1.28;
}

.history-row small {
  font-weight: 760;
}

.activity-note-card strong {
  display: block;
  margin-top: 2px;
  color: var(--charcoal);
  font-size: 1rem;
}

.activity-note-card p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.42;
}

.follow-up-line {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-top: 10px;
  border-radius: 8px;
  padding: 0 10px;
  background: white;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.activity-note-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 760;
}

.activity-note-history {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(193, 18, 31, 0.18);
}

.activity-note-history span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.32;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.review-actions span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
}

.decision-panel {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.decision-panel summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--charcoal);
  font-weight: 950;
  cursor: pointer;
}

.decision-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.decision-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.decision-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.decision-body label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
}

.ghost-light-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--charcoal);
  font-weight: 900;
}

.ghost-light-button:hover {
  border-color: rgba(193, 18, 31, 0.38);
  color: var(--red-dark);
}

.message-heading {
  justify-content: space-between;
  gap: 10px;
}

.message-box p {
  margin: 10px 0 0;
  line-height: 1.45;
}

.outcome-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.timeline strong {
  margin-bottom: 4px;
}

.timeline span {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
}

.timeline span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--black);
  color: white;
  font-weight: 850;
  transition: 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .login-panel,
  .nav-section-title,
  .nav-label,
  .nav-count,
  .sync-panel {
    display: none;
  }

  .brand-block {
    width: 54px;
    height: 54px;
    min-height: 54px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
  }

  .brand-block img {
    display: block;
    width: 225px;
    max-width: none;
    height: auto;
    transform: translate(-2px, -7px);
  }

  .sidebar {
    align-items: center;
    padding: 16px;
  }

  .nav-item {
    justify-content: center;
    width: 54px;
    min-height: 54px;
    padding: 8px;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
  }

  .department-pages,
  .activity-card,
  .workbench {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 780px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 14px;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .brand-block {
    flex: 0 0 64px;
    width: 64px;
    height: 58px;
    min-height: 58px;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .brand-block img {
    width: 250px;
    transform: translate(-2px, -8px);
  }

  .login-panel {
    display: block;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .login-panel .panel-label,
  .login-panel .profile-avatar,
  .login-panel .profile-role,
  .login-panel .email-field,
  .login-panel .quick-logins {
    display: none !important;
  }

  .login-panel .profile-head {
    margin: 0;
  }

  .login-panel .auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .login-panel .google-button,
  .login-panel .ghost-button {
    width: 66px;
    min-height: 46px;
    padding: 0 8px;
    border-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    font-size: 0;
    line-height: 1.05;
    white-space: nowrap;
  }

  .login-panel .google-button::after {
    content: "Login";
    font-size: 0.7rem;
  }

  .login-panel .ghost-button::after {
    content: "Exit";
    font-size: 0.7rem;
  }

  .login-panel .ghost-button {
    background: rgba(255, 255, 255, 0.08);
  }

  .login-panel button[hidden] {
    display: none;
  }

  .nav-list {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 92px;
    min-height: 58px;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
  }

  .nav-icon {
    display: grid;
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .nav-label {
    display: grid;
    line-height: 1;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: block;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .nav-sublabel,
  .nav-count {
    display: none;
  }

  .nav-item.is-active {
    border-color: rgba(255, 255, 255, 0.92);
    background: white;
    color: var(--black);
    box-shadow: inset 0 4px 0 var(--red);
  }

  .main-area {
    padding: 14px;
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .queue-tools {
    grid-template-columns: 1fr;
  }

  .finder-actions,
  .finder-search {
    justify-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .activity-summary {
    justify-content: flex-start;
  }

  .department-hero,
  .hero-copy {
    min-height: 430px;
  }

  .hero-logo {
    width: 205px;
    max-width: 72%;
    left: 16px;
    top: 16px;
  }

  .hero-copy {
    padding: 148px 16px 20px;
  }

  .hero-copy h2 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }

  .stats-grid,
  .dashboard-grid,
  .department-card-grid,
  .campaign-controls,
  .campaign-summary,
  .campaign-idea-grid,
  .campaign-draft-grid,
  .campaign-draft-copy,
  .campaign-preview-row,
  .activity-dates,
  .detail-grid,
  .outcome-row,
  .review-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .mini-section-head,
  .profile-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

  .queue-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .queue-chip-stack {
    grid-column: 1;
  }
}
