@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;400;500;700;900&family=Outfit:wght@200;300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f5f1eb;
  --surface: #fffdf9;
  --surface-2: #ebe5dc;
  --ink: #242424;
  --muted: #667784;
  --line: #d6d1c9;
  --line-strong: #8494a0;
  --green: #7b8e9e;
  --green-dark: #242424;
  --coral: #d6d1c9;
  --blue: #7b8e9e;
  --gold: #667784;
  --red: #9b4d4d;
  --cloud: #f5f1eb;
  --shadow: none;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

.approval-page {
  min-height: 100vh;
  padding: clamp(20px, 6vw, 72px) 18px;
  display: grid;
  place-items: start center;
}

.approval-review-panel {
  width: min(680px, 100%);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow);
}

.approval-review-panel h1 {
  margin: 0;
}

.review-preview {
  min-height: 180px;
  padding: 18px;
  display: grid;
  align-items: end;
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(47, 111, 94, 0.17), rgba(214, 106, 84, 0.16)), #eef2ee;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: #242424;
  color: #efecec;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand-mark,
.avatar,
.client-logo,
.small-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #6c818f;
  font-family: "League Spartan", sans-serif;
  letter-spacing: -0.08em;
}

.brand-title {
  margin: 0;
  font-family: "League Spartan", sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.brand-subtitle,
.sidebar-label,
.muted,
.metric-label,
.field-hint,
.table-note {
  color: var(--muted);
}

.sidebar .brand-subtitle,
.sidebar .sidebar-label {
  color: rgba(248, 246, 240, 0.67);
}

.sidebar-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.client-switcher,
.side-nav {
  display: grid;
  gap: 7px;
}

.side-client,
.side-nav button {
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: var(--radius);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-client:hover,
.side-client.active,
.side-nav button:hover,
.side-nav button.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.13);
}

.small-logo {
  width: 28px;
  height: 28px;
  font-size: 0.76rem;
}

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

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  font-family: "League Spartan", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h2 {
  font-family: "League Spartan", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h3 {
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button,
.ghost-button,
.danger-button,
.icon-button,
.pill-button {
  border: 1px solid var(--line);
  min-height: 38px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button:hover {
  background: var(--green-dark);
}

.ghost-button:hover,
.icon-button:hover,
.pill-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.danger-button {
  color: var(--red);
  border-color: rgba(179, 77, 70, 0.28);
}

.icon-button {
  width: 38px;
  padding: 0;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, auto));
  gap: 10px;
  margin-bottom: 16px;
}

.field,
.check-field,
.toggle-field {
  display: grid;
  gap: 7px;
}

.field label,
.check-field,
.toggle-field {
  font-weight: 750;
  font-size: 0.86rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 14px;
}

.card,
.panel,
.client-card,
.metric-card,
.post-card,
.connection-card,
.notification-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.client-card,
.panel,
.post-card,
.notification-card {
  padding: 16px;
}

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

.client-card-head,
.client-meta-row,
.platform-row,
.list-row,
.post-head,
.section-head,
.modal-header,
.confirmation-row,
.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.client-logo {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

.client-name {
  margin: 0 0 3px;
  font-weight: 850;
}

.badge-row,
.tabbar,
.platform-selector,
.quick-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.status,
.platform-chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.instagram {
  color: #c24c70;
}

.facebook {
  color: #2c63ad;
}

.tiktok {
  color: #111;
}

.connected {
  color: var(--green);
}

.expired,
.failed {
  color: var(--red);
}

.scheduled {
  color: var(--blue);
}

.draft {
  color: var(--gold);
}

.awaiting-review,
.changes-requested,
.awaiting-approval {
  color: var(--gold);
}

.published {
  color: var(--green);
}

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

.metric-card {
  padding: 13px;
  min-height: 82px;
}

.metric-value {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 850;
}

.metric-delta {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 750;
}

.workspace-layout {
  display: grid;
  gap: 16px;
}

.workspace-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #e9efe8;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.tabbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tabbar button,
.pill-button {
  min-height: 34px;
  padding: 7px 10px;
}

.tabbar button.active,
.pill-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

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

.connection-grid,
.post-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.connection-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  font-size: 0.86rem;
}

.post-composer {
  display: grid;
  gap: 14px;
}

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

.platform-selector label,
.check-field,
.toggle-field {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-selector label.selected {
  border-color: var(--green);
  background: rgba(47, 111, 94, 0.08);
}

.upload-zone {
  min-height: 126px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.variant-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.phone-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.preview-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.15), rgba(214, 106, 84, 0.14)),
    #eef2ee;
  color: var(--muted);
  font-weight: 750;
}

.preview-body {
  padding: 11px;
}

.caption-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-list,
.notification-list,
.settings-list,
.approval-list,
.inbox-list {
  display: grid;
  gap: 10px;
}

.post-card {
  display: grid;
  gap: 11px;
}

.approval-card,
.inbox-summary,
.inbox-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.approval-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.approval-card-full {
  align-items: flex-start;
}

.approval-card-main {
  min-width: 0;
}

.inbox-summary p,
.inbox-card p,
.approval-card p {
  margin-bottom: 0;
}

.inbox-card.unread {
  border-left: 4px solid var(--green);
}

.reply-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.reply-row input {
  min-width: 0;
}

.integration-note,
.feedback-note {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding: 9px 11px;
  background: #fbf7ea;
  color: #5b4b1d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.feedback-note {
  margin-top: 10px;
  border-left-color: var(--coral);
  background: #fff0ec;
  color: #7a3c2e;
}

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

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

.calendar-day {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.calendar-day.drag-over {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}

.day-number {
  font-size: 0.78rem;
  font-weight: 850;
  color: var(--muted);
}

.calendar-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 6px;
  font-size: 0.78rem;
  cursor: grab;
}

.chart-card {
  padding: 14px;
}

.chart {
  width: 100%;
  height: 190px;
  display: block;
}

.bar {
  fill: var(--green);
}

.bar.alt {
  fill: var(--coral);
}

.bar.third {
  fill: var(--blue);
}

.line {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
}

.pie-legend,
.heatmap {
  display: grid;
  gap: 7px;
}

.heatmap {
  grid-template-columns: repeat(14, minmax(12px, 1fr));
}

.heat {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.heat.level-1 {
  background: #dce8dc;
}

.heat.level-2 {
  background: #9fc3aa;
}

.heat.level-3 {
  background: #5a9178;
}

.heat.level-4 {
  background: #2f6f5e;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 18px;
  background: rgba(32, 35, 31, 0.42);
  display: grid;
  place-items: center;
}

.modal {
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-header {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
}

.modal-body {
  padding: 16px;
}

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

.confirmation-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-2);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: 360px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.schema-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-2);
}

.schema-table strong {
  display: block;
  margin-bottom: 6px;
}

.schema-table span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.sidebar {
  top: 0;
  height: 100vh;
  padding: 28px 20px 22px;
  border-right: 1px solid rgba(245, 241, 235, 0.18);
  background: #242424;
}

.brand-wordmark {
  min-height: 65px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(239, 236, 236, 0.25);
}

.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  display: block;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  color: var(--ink);
  background: var(--cloud);
}

.brand-type { min-width: 0; }

.brand-title {
  font-size: 1.12rem;
  line-height: 0.9;
}

.brand-subtitle {
  margin: 7px 0 0;
  font-size: 0.59rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar-label {
  margin-top: 11px;
  font-family: "League Spartan", sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.side-nav { gap: 3px; }

.side-client,
.side-nav button {
  min-height: 39px;
  padding: 8px 7px;
  border: 0;
  border-bottom: 1px solid rgba(239, 236, 236, 0.12);
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.side-client:hover,
.side-client.active,
.side-nav button:hover,
.side-nav button.active {
  color: #fff;
  background: transparent;
  border-color: var(--blue);
}

.side-nav button.active::before,
.side-client.active::before {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.small-logo { border-radius: 50%; }

.main {
  padding: 0;
  background: var(--bg);
}

.dashboard-main { padding-bottom: 38px; }

.wavehaus-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 64px);
  color: var(--cloud);
  background: #7b8e9e;
  isolation: isolate;
}

.hero-topline,
.hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-topline p,
.hero-footer p { margin: 0; }
.hero-index { color: rgba(244, 240, 240, 0.75); }
.hero-kicker { font-family: "League Spartan", sans-serif; font-weight: 700; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: clamp(52px, 9vw, 110px);
}

.wavehaus-hero .eyebrow { color: var(--cloud); }

.wavehaus-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--cloud);
  font-size: clamp(3.4rem, 8.6vw, 8.9rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.wavehaus-hero h1 span,
.wavehaus-hero h1 em { display: block; }

.wavehaus-hero h1 em {
  width: fit-content;
  margin-left: clamp(18px, 7vw, 92px);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-size: 0.48em;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.065em;
}

.wavehaus-hero-compact {
  display: flex;
  align-items: end;
  min-height: 210px;
  padding-bottom: 37px;
}

.wavehaus-hero-compact h1 {
  margin: 0;
  font-size: clamp(4rem, 8.8vw, 8rem);
  line-height: 0.75;
}

.hero-copy {
  max-width: 430px;
  margin: 22px 0 0;
  color: rgba(244, 240, 240, 0.86);
  font-size: 0.97rem;
  line-height: 1.45;
}

.wavehaus-hero .top-actions {
  position: absolute;
  z-index: 2;
  top: clamp(26px, 4.5vw, 64px);
  right: clamp(26px, 4.5vw, 64px);
}

.wavehaus-hero .ghost-button {
  border-color: rgba(244, 240, 240, 0.55);
  color: var(--cloud);
  background: transparent;
}

.wavehaus-hero .button {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--cloud);
  box-shadow: none;
}

.wavehaus-hero .button:hover {
  color: var(--cloud);
  background: var(--ink);
  box-shadow: 0 0 0 var(--ink);
}

.hero-footer {
  position: absolute;
  right: clamp(26px, 4.5vw, 64px);
  bottom: 23px;
  left: clamp(26px, 4.5vw, 64px);
  padding-top: 15px;
  border-top: 1px solid rgba(244, 240, 240, 0.47);
}

.hero-footer strong { font-size: 1rem; }

.hero-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 25px;
}

.hero-wave span {
  width: 4px;
  background: var(--cloud);
}

.hero-wave span:nth-child(1), .hero-wave span:nth-child(9) { height: 5px; }
.hero-wave span:nth-child(2), .hero-wave span:nth-child(8) { height: 11px; }
.hero-wave span:nth-child(3), .hero-wave span:nth-child(7) { height: 18px; }
.hero-wave span:nth-child(4), .hero-wave span:nth-child(6) { height: 12px; }
.hero-wave span:nth-child(5) { height: 25px; }

.dashboard-main > .controls,
.dashboard-main > .dashboard-grid {
  width: min(1240px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.controls {
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(120px, auto));
  margin-top: 28px;
  margin-bottom: 21px;
}

.button,
.ghost-button,
.danger-button,
.icon-button,
.pill-button {
  min-height: 0;
  padding: 11px 15px;
  border-radius: 999px;
  font-family: Outfit, sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button {
  border-color: var(--blue);
  color: var(--cloud);
  background: var(--blue);
}

.button:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: transparent;
}

.ghost-button,
.pill-button {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.ghost-button:hover,
.pill-button:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(108, 129, 143, 0.08);
}

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

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button,
.ghost-button,
.danger-button,
.icon-button,
.pill-button {
  border-radius: 0;
}

input,
textarea,
select {
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.8);
}

.dashboard-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

.client-card {
  min-height: 255px;
  padding: 19px;
  gap: 17px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.client-card:hover { background: var(--surface); }
.client-logo { border-radius: 50%; font-family: "League Spartan", sans-serif; font-size: 1.15rem; }
.client-name { font-family: "League Spartan", sans-serif; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.04em; text-transform: none; }

.metric-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric-card { min-height: 82px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.metric-value { font-family: "League Spartan", sans-serif; font-size: 1.75rem; letter-spacing: -0.055em; }
.metric-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.status, .platform-chip, .badge, .tag { border-radius: 999px; font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase; }

.workspace-main { padding: 30px; }
.workspace-main .topbar { padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.workspace-main .workspace-banner { padding: 0; border: 0; background: transparent; }
.workspace-main .workspace-banner h1 { font-size: clamp(2.4rem, 4vw, 4.5rem); line-height: 0.82; }
.workspace-main .tabbar { border-width: 0 0 1px; border-radius: 0; background: rgba(245, 241, 235, 0.94); }
.workspace-main .tabbar button.active, .pill-button.active { color: var(--cloud); border-color: var(--blue); background: var(--blue); }
.panel, .post-card, .connection-card, .approval-card, .inbox-summary, .inbox-card, .phone-preview { border-radius: 16px; box-shadow: none; }
.panel { background: rgba(255, 253, 249, 0.58); }
.empty-state { border-radius: 16px; background: var(--surface); }

.modal { border-radius: 18px; border: 1px solid var(--line-strong); }
.modal-backdrop { background: rgba(23, 23, 23, 0.76); }

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .side-nav,
  .client-switcher {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .controls,
  .topbar,
  .workspace-banner,
  .two-col,
  .three-col,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .main {
    padding: 14px;
  }

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

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

  .top-actions {
    justify-content: stretch;
  }

  .top-actions > *,
  .button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  table {
    min-width: 540px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .top-actions,
  .tabbar,
  .controls,
  .filter-row,
  button,
  input,
  select {
    display: none !important;
  }

  .app-shell,
  .two-col,
  .three-col,
  .analytics-grid {
    display: block;
  }

  .main {
    padding: 0;
  }

  .panel,
  .card,
  .metric-card,
  .chart-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
