:root {
  --bg: #f6f2ea;
  --bg-2: #eef3fb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(127, 138, 168, 0.16);
  --line-strong: rgba(87, 103, 143, 0.22);
  --ink: #232325;
  --muted: #57535f;
  --muted-soft: #6c6977;
  --accent: #ff7c67;
  --accent-strong: #ff6f5d;
  --accent-soft: #ffe1da;
  --nav-violet: linear-gradient(135deg, #6b6fd6, #8a83df);
  --nav-indigo: linear-gradient(135deg, #4c64d5, #5f43c8);
  --nav-plum: linear-gradient(135deg, #842e91, #5f2479);
  --nav-teal: linear-gradient(135deg, #1e7b86, #185a76);
  --ok: #1f7b57;
  --warn: #b39a1d;
  --danger: #a73d3d;
  --focus-ring: #215ac7;
  --focus-shadow: rgba(33, 90, 199, 0.28);
  --shadow-soft: 0 20px 60px rgba(73, 84, 118, 0.12);
  --shadow-panel: 0 14px 38px rgba(95, 107, 142, 0.14);
  --shadow-pill: 0 10px 20px rgba(90, 101, 156, 0.18);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 190, 154, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(127, 137, 228, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 221, 169, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f3ed 0%, #f6f8fb 55%, #f7f2ea 100%);
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.app-shell-client-offset {
  padding-top: 36px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(33, 90, 199, 0.35);
  box-shadow: 0 8px 20px rgba(33, 90, 199, 0.2);
  text-decoration: none;
  font-weight: 700;
}

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

.topbar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.topbar-client-offset {
  margin-top: 32px;
}

.topbar-brand {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #2e2e33;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 13px;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-title-small {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h4 {
  margin-bottom: 6px;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: 1.3fr .9fr;
}

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

.split {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.15fr .85fr;
}

.panel {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: var(--shadow-panel);
  padding: 20px;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.inner-panel { margin-top: 20px; }
.narrow { max-width: 460px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.flash-success {
  border-color: rgba(65, 179, 126, 0.22);
  background: rgba(232, 250, 241, 0.9);
  color: #15593e;
}

.flash-info {
  border-color: rgba(255, 136, 105, 0.22);
  background: rgba(255, 245, 240, 0.92);
  color: #8f4f33;
}

.stack { display: grid; gap: 16px; }

.kpi-row,
.actions,
.badge-row,
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-shortcuts {
  margin-top: 12px;
}

.cm-content-title {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.import-row-title {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.import-row-thumb {
  width: 44px;
  height: 55px;
  border-radius: 8px;
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px 26px;
}

.client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px 26px;
}

.client-hero-main p {
  max-width: 640px;
}

.client-hero-meta {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  align-content: stretch;
}

.client-hero-meta .kpi {
  flex: 0 0 20%;
  max-width: 20%;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
}

.client-hero-meta .kpi-value {
  font-size: 24px;
}

.client-hero-meta .kpi-label {
  margin-top: 2px;
  font-size: 11px;
}

.content-hero-main p {
  max-width: 680px;
}

.content-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 10px;
}

.pill-nav {
  justify-content: flex-end;
  align-items: center;
}

.pill-nav-floating-client {
  position: static;
  width: auto;
  max-width: 100%;
  justify-content: flex-end;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  flex-wrap: wrap;
  overflow: visible;
}

.topbar-cm-compact {
  position: relative;
}

.topbar-cm-compact .topbar-brand {
  padding-right: 320px;
}

.pill-nav-floating-cm {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  max-width: 100%;
  justify-content: flex-end;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  flex-wrap: nowrap;
  overflow: visible;
  z-index: 2;
}

.pill-nav-floating-cm .auth-label {
  width: auto;
  margin: 0;
  padding: 0 2px;
  white-space: nowrap;
}

.pill-nav-floating-client .auth-label {
  width: auto;
  margin: 0;
  padding: 0 2px;
  white-space: nowrap;
}

.pill-nav a,
.pill-nav .action {
  min-height: 42px;
}

.pill-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: #27272c;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px rgba(103, 116, 155, 0.12);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}

.pill-nav .nav-icon {
  min-width: 42px;
  padding-inline: 12px;
}

.icon-home {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-nav a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pill);
}

.pill-nav a.is-active,
.pill-nav .nav-dashboard,
.pill-nav .nav-clients,
.pill-nav .nav-client-space,
.pill-nav .nav-login {
  color: #fff;
  border-color: transparent;
}

.pill-nav .nav-dashboard { background: var(--nav-violet); }
.pill-nav .nav-clients { background: var(--nav-indigo); }
.pill-nav .nav-client-space { background: var(--nav-plum); }
.pill-nav .nav-login { background: var(--nav-teal); }

.pill-nav a:not(.is-active) {
  opacity: .94;
}

.auth-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 8px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(113, 129, 171, 0.18);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.icon-button:hover {
  border-color: rgba(255, 122, 105, 0.45);
  color: #b3392f;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-shadow);
}

.row-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.icon-approve {
  color: #8b8f9c;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.icon-approve:hover {
  color: #2d9a4c;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.icon-delete {
  color: #b55b52;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
}

.icon-delete:hover {
  color: #d25b50;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.icon-delete-bordered {
  border: 1px solid rgba(213, 123, 114, 0.4);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(140, 92, 86, 0.12);
}

.icon-delete-bordered:hover {
  border-color: rgba(213, 123, 114, 0.7);
  background: #fff;
  box-shadow: 0 10px 22px rgba(140, 92, 86, 0.18);
}

.icon-duplicate {
  color: #4f5f8f;
  border-color: rgba(113, 129, 171, 0.24);
  background: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1;
}

.icon-duplicate:hover {
  color: #324b97;
  border-color: rgba(82, 116, 211, 0.46);
  background: #fff;
}

.icon-check {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-thumb-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(236, 238, 245, 0.9);
}

.media-thumb-link img,
.media-thumb-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-media-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-media-list-thumb {
  flex-shrink: 0;
}

.icon-power {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  min-height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--panel-strong);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.badge-soft {
  color: #4d5570;
  border-color: rgba(105, 117, 156, 0.18);
  background: rgba(246, 248, 255, 0.8);
}

.channel-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.channel-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.channel-display-heading .channel-icon {
  width: 28px;
  height: 28px;
}

.channel-display-checkbox .channel-icon,
.channel-display-button .channel-icon {
  width: 44px;
  height: 44px;
}

.channel-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-accent {
  color: #b85a47;
  background: #ffe6dd;
}

.row-link {
  cursor: pointer;
}

.row-link:hover {
  background: rgba(248, 249, 255, 0.9);
}

.channel-icon-row {
  gap: 0;
}

.channel-icon-row .badge {
  padding: 0;
  min-height: auto;
  background: transparent;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.color-dot::after {
  content: attr(data-hex);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #2b3248;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(18, 30, 70, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.color-dot::before {
  content: "";
  position: absolute;
  bottom: 108%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  box-shadow: 0 10px 25px rgba(18, 30, 70, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.color-dot:hover::after,
.color-dot:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.badge-ok {
  color: var(--ok);
  background: #e8f6ef;
}

.badge-warn {
  color: #6f5d00;
  background: #fff1b5;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(113, 129, 171, 0.16);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: #2b3248;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(99, 112, 145, 0.12);
  transition: transform .14s ease, box-shadow .14s ease;
}

.action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(99, 112, 145, 0.18);
}

.action:disabled,
button.action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.action-small {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.1;
}

.action-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff8e7a, #ff6f61);
}

.action-blue {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #39b3ff, #3a63ff);
}

.action-soft {
  color: #2b3248;
  border-color: transparent;
  background: linear-gradient(135deg, #f6d2c5, #f9e2b8);
}

.action-blue-pale {
  color: #2f4f8d;
  border-color: rgba(88, 131, 208, 0.28);
  background: linear-gradient(135deg, #edf4ff, #dce9ff);
}

.action-blue-pale:hover {
  box-shadow: 0 12px 24px rgba(74, 116, 186, 0.2);
}

.action-plus {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #39b3ff, #3a63ff);
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 32px;
  line-height: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.action-plus span {
  display: block;
  transform: translateY(-1px);
}

.action-danger {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ef7f70, #d95a51);
}

.action-danger-icon {
  min-width: 38px;
  padding-inline: 0;
  font-size: 18px;
  line-height: 1;
}

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

.field-span-2 {
  grid-column: span 2;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: #44404a;
}

.field-title-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-title-actions .action {
  flex-shrink: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(113, 129, 171, 0.16);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.readonly-content {
  width: 100%;
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(113, 129, 171, 0.16);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.readonly-content-accent {
  background: #fff8f1;
  border-color: rgba(255, 146, 112, 0.22);
}

.error-text { color: #b3392f; font-size: 13px; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.channel-pills {
  gap: 12px;
}

.channel-pill {
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(248, 250, 255, 0.86);
  border: 1px solid rgba(113, 129, 171, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.list-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(113, 129, 171, 0.13);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(95, 107, 142, 0.08);
  color: inherit;
  text-decoration: none;
}

.notification-item {
  gap: 0;
}

.notifications-compact .list {
  gap: 8px;
}

.notification-item-compact {
  padding: 10px 12px;
}

.notification-link-compact {
  display: grid;
  gap: 2px;
}

.notification-title {
  font-size: 13px;
  line-height: 1.2;
}

.notification-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

.notification-item-unread {
  border-color: rgba(255, 124, 103, 0.22);
  box-shadow: 0 14px 28px rgba(255, 124, 103, 0.12);
}

.notification-item-read {
  opacity: .84;
}

.notification-link {
  color: inherit;
  text-decoration: none;
}

.notification-link:hover strong {
  text-decoration: underline;
}

.comment-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.comment-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-state {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(113, 129, 171, 0.18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.comment-state-unread {
  color: #7f5e00;
  background: #fff2be;
  border-color: rgba(177, 139, 35, 0.36);
}

.comment-state-read {
  color: #43606f;
  background: #eef6ff;
  border-color: rgba(96, 136, 166, 0.34);
}

.comment-state-handled {
  color: #1f7b57;
  background: #e9f8f0;
  border-color: rgba(63, 142, 109, 0.36);
}

.compact { padding: 10px 12px; }

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

.content-editor-panel {
  padding: 24px;
}

.client-show-layout {
  align-items: start;
}

.client-form-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px 26px;
}

.client-form-hero-main p {
  max-width: 640px;
}

.client-form-shell {
  max-width: 1040px;
}

.client-show-panel {
  padding: 20px;
}

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

.client-color-row {
  margin-top: 10px;
}

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

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

.client-channel-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-filter-groups {
  display: grid;
  gap: 8px;
}

.client-filter-groups.is-collapsed {
  display: none;
}

.client-publications-filters.is-collapsed {
  display: none;
}

.filter-toggle {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--muted-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.filter-toggle:hover {
  color: var(--muted);
}

.filter-toggle-pink {
  color: #d64f97;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.filter-toggle-pink:hover {
  color: #bf3f82;
}

.client-content-table td .badge-row {
  gap: 8px;
}

.client-content-table .client-table-date-compact {
  white-space: nowrap;
  font-size: 12px;
  padding-right: 8px;
}

.client-content-table tbody tr.row-client-status-pending,
.client-content-table tbody tr.row-client-status-pending:nth-child(even) {
  background: rgba(255, 227, 227, 0.96);
}

.client-content-table tbody tr.row-client-status-approved,
.client-content-table tbody tr.row-client-status-approved:nth-child(even) {
  background: rgba(228, 247, 235, 0.96);
}

.client-content-table tbody tr.row-client-status-pending.row-link:hover {
  background: rgba(255, 214, 214, 0.98);
}

.client-content-table tbody tr.row-client-status-approved.row-link:hover {
  background: rgba(212, 241, 223, 0.98);
}

.client-content-table .channel-icon-row {
  margin-top: 4px !important;
  gap: 2px;
}

.client-content-table .channel-icon-row .badge {
  padding: 0;
  min-height: auto;
}

.client-content-table .channel-icon-row .channel-icon {
  width: 24px;
  height: 24px;
}

.client-table-title-cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.client-table-thumb {
  width: 44px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: rgba(236, 238, 245, 0.9);
}

.client-table-thumb img,
.client-table-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-table-thumb-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 4px;
}

.client-content-table th,
.client-content-table td {
  font-size: 13px;
}

.client-content-table .badge {
  font-size: 12px;
}

.client-filter-groups {
  display: grid;
  gap: 10px;
}

.client-filter-groups-portal {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(113, 129, 171, 0.12);
  background: rgba(247, 249, 253, 0.72);
}

.client-filter-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.client-wall-panel {
  position: sticky;
  top: 24px;
}

.error-panel {
  max-width: 620px;
  margin: 40px auto 0;
  text-align: center;
  padding: 36px 28px;
}

.content-editor-form {
  gap: 18px;
}

.content-form-section {
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 249, 253, 0.62);
  border: 1px solid rgba(113, 129, 171, 0.12);
}

.content-form-section-soft {
  background: rgba(255, 246, 241, 0.66);
  border-color: rgba(255, 146, 112, 0.16);
}

.content-media-section {
  margin-top: 0;
}

.content-actions {
  position: sticky;
  bottom: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(113, 129, 171, 0.14);
  box-shadow: 0 16px 28px rgba(95, 107, 142, 0.14);
  z-index: 3;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  gap: 8px;
}

.content-actions form {
  margin: 0;
  flex: 0 0 auto;
}

.content-actions .action,
.content-actions .icon-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.content-actions-note {
  margin: 8px 0 0;
}

.content-side-stack {
  align-content: start;
}

.content-side-panel {
  padding: 18px;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.table thead th {
  text-align: left;
  padding: 0 16px 6px;
  color: #514d58;
  font-size: 14px;
}

.table tbody tr {
  background: rgba(244, 246, 252, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.94);
}

.table tbody td {
  padding: 16px;
  vertical-align: top;
  border: none;
}

.table tbody td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.table tbody td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.kpi {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(100, 110, 146, 0.12);
}

.kpi-value {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.kpi-label {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #302f35;
  font-weight: 700;
}

.kpi-coral { background: linear-gradient(135deg, #ffe9df, #fff3ee); }
.kpi-coral .kpi-value { color: #ef7b59; }
.kpi-mint { background: linear-gradient(135deg, #e6f9ef, #f3fff8); }
.kpi-mint .kpi-value { color: #2d946f; }
.kpi-lilac { background: linear-gradient(135deg, #f0e5ff, #faf5ff); }
.kpi-lilac .kpi-value { color: #9b62ca; }
.kpi-sun { background: linear-gradient(135deg, #fff6c8, #fffbe9); }
.kpi-sun .kpi-value { color: #b9a11e; }

.cm-dashboard {
  display: grid;
  gap: 12px;
}

.cm-dashboard .grid {
  gap: 12px;
}

.cm-dashboard .panel {
  padding: 14px 16px;
  border-radius: 18px;
}

.cm-dashboard .kpi {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
}

.cm-dashboard .kpi-value {
  font-size: clamp(24px, 2.7vw, 34px);
}

.cm-dashboard .kpi-label {
  margin-top: 2px;
  font-size: 12px;
}

.cm-dashboard .card-title {
  margin-bottom: 8px;
}

.cm-dashboard .card-title .muted {
  font-size: 12px;
}

.cm-dashboard .list {
  gap: 8px;
}

.cm-dashboard .list-item {
  padding: 10px 12px;
  border-radius: 12px;
}

.cm-dashboard .calendar-day-card {
  min-height: 112px;
  padding: 8px;
  border-radius: 14px;
  gap: 8px;
}

.cm-dashboard .dashboard-month-cell {
  min-height: 108px;
  padding: 6px;
  border-radius: 12px;
  gap: 6px;
}

.cm-dashboard-bottom-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.dashboard-week {
  display: block;
  margin-top: 16px;
}

.panel-week {
  padding-bottom: 10px;
}

.panel-week .dashboard-week {
  margin-top: 8px;
}

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

.calendar-day-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  min-height: 130px;
  border-radius: 18px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.calendar-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.calendar-day-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.calendar-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0 10px;
  color: var(--muted-soft);
  font-size: 13px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot,
.calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot-programmed,
.calendar-dot-programmed {
  background: #7f93d6;
  box-shadow: 0 0 0 3px rgba(127, 147, 214, 0.18);
}

.legend-dot-direct,
.calendar-dot-direct {
  background: #ff8a63;
  box-shadow: 0 0 0 3px rgba(255, 138, 99, 0.18);
}

.legend-dot-approval {
  background: #6e7fd8;
  box-shadow: 0 0 0 3px rgba(110, 127, 216, 0.18);
}

.legend-dot-review {
  background: #ff9b5b;
  box-shadow: 0 0 0 3px rgba(255, 155, 91, 0.18);
}

.calendar-entry-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.calendar-entry-action-form {
  margin-top: 4px;
}

.calendar-entry-action-form .action {
  width: 100%;
  min-height: 26px;
  padding: 5px 8px;
  font-size: 11px;
  justify-content: center;
}

.dashboard-month-label {
  margin-top: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.dashboard-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.dashboard-month-head-cell {
  padding: 6px 8px;
  text-align: center;
  color: var(--muted-soft);
  font-size: 13px;
}

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

.dashboard-week-panel,
.dashboard-month-panel {
  display: none;
}

.dashboard-week-panel.is-active,
.dashboard-month-panel.is-active {
  display: block;
}

.dashboard-month-cell {
  min-height: 126px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 8px;
  align-content: start;
}

.dashboard-month-date {
  font-weight: 700;
  font-size: 14px;
}

.calendar-date-number {
  display: inline;
}

.calendar-date-weekday {
  display: none;
}

.dashboard-month-list {
  display: grid;
  gap: 6px;
  align-content: start;
}

.calendar-entry {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: rgba(250, 251, 255, 0.96);
  color: inherit;
  text-decoration: none;
}

.calendar-entry:hover {
  border-color: rgba(255, 122, 105, 0.3);
  background: rgba(255, 247, 244, 0.98);
}

.calendar-entry-compact { padding: 6px; }

.calendar-entry-client {
  position: relative;
  border-color: var(--calendar-accent, #8A83DF);
  background:
    linear-gradient(90deg, var(--calendar-accent-soft, rgba(138,131,223,.16)) 0, var(--calendar-accent-soft, rgba(138,131,223,.16)) 10px, rgba(255,255,255,.96) 10px);
}

.calendar-entry-client:hover {
  border-color: var(--calendar-accent, #8A83DF);
  background:
    linear-gradient(90deg, var(--calendar-accent-soft, rgba(138,131,223,.16)) 0, var(--calendar-accent-soft, rgba(138,131,223,.16)) 10px, rgba(255,255,255,1) 10px);
}

.calendar-entry-approval {
  box-shadow: 0 0 0 2px rgba(110, 127, 216, 0.28);
}

.calendar-entry-review {
  box-shadow: 0 0 0 2px rgba(255, 155, 91, 0.3);
}

.calendar-entry-title {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-client-agenda-month .dashboard-month-cell {
  min-height: 148px;
}

.calendar-entry-agenda {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 6px;
}

.calendar-entry-agenda-thumb {
  position: relative;
  width: 44px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(234, 238, 246, 0.95);
  border: 1px solid rgba(113, 129, 171, 0.16);
}

.calendar-entry-agenda-thumb img,
.calendar-entry-agenda-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.calendar-entry-agenda-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 6px;
  text-align: center;
  color: var(--muted-soft);
  font-size: 10px;
  line-height: 1.2;
}

.calendar-entry-agenda-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.calendar-entry-agenda-status {
  font-size: 11px;
  line-height: 1.25;
  color: #4f5670;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-entry-agenda-status-approved {
  color: #0f8f3b;
  font-weight: 700;
}

.calendar-entry-agenda-status-pending {
  color: #d91d1d;
  font-weight: 700;
}

.calendar-entry-agenda-approved {
  border-color: #16b84c;
  background: linear-gradient(90deg, rgba(22, 184, 76, 0.45) 0, rgba(22, 184, 76, 0.45) 18px, rgba(233, 255, 241, 0.98) 18px);
  box-shadow: inset 0 0 0 1px rgba(22, 184, 76, 0.35), 0 2px 8px rgba(22, 184, 76, 0.2);
}

.calendar-entry-agenda-pending {
  border-color: #ea2f2f;
  background: linear-gradient(90deg, rgba(234, 47, 47, 0.45) 0, rgba(234, 47, 47, 0.45) 18px, rgba(255, 236, 236, 0.98) 18px);
  box-shadow: inset 0 0 0 1px rgba(234, 47, 47, 0.35), 0 2px 8px rgba(234, 47, 47, 0.2);
}

.calendar-entry-agenda .wall-media-badge {
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
}

.legend-dot-client-ok {
  background: #16b84c;
}

.legend-dot-client-ko {
  background: #ea2f2f;
}

.calendar-day-today {
  box-shadow: inset 0 0 0 2px rgba(122, 128, 224, 0.44);
}

.calendar-day-muted {
  background: rgba(242, 244, 248, 0.8);
  color: var(--muted-soft);
}

.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.wall-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: linear-gradient(180deg, #f7f8fb, #eef2f8);
  padding: 12px;
  display: flex;
  align-items: end;
}

.wall-portrait-preview .wall-tile { aspect-ratio: 4 / 5; }
.wall-tile-current { outline: 3px solid #ff836f; }

.wall-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall-video { background: #1d1612; }

.wall-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, #edf1f7, #ffffff);
}

.wall-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, rgba(19, 18, 22, 0), rgba(19, 18, 22, .68));
  color: #fff;
  padding-top: 22px;
  margin: -12px;
  padding: 56px 12px 12px;
}

.media-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7f8fb, #edf2f9);
  color: var(--muted);
}

.media-preview-compact {
  max-width: 160px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
}

.client-media-preview { max-width: 220px; }

.client-approval-reset {
  border: 1px solid rgba(255, 122, 105, 0.22);
  background: rgba(255, 246, 239, 0.9);
}

.client-summary-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.client-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  position: relative;
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 0;
  overflow: visible;
}

.client-summary-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #5f43c8;
}

.client-summary-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.client-summary-link:hover {
  color: #5f43c8;
}

.client-summary-hint {
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  right: 8px;
  z-index: 4;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(113, 129, 171, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 20px rgba(95, 107, 142, 0.14);
  font-size: 11px;
  line-height: 1.25;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease;
}

.client-summary-card:hover .client-summary-hint,
.client-summary-card:focus-within .client-summary-hint,
.client-summary-card:active .client-summary-hint {
  opacity: 1;
  transform: translateY(0);
}

.client-summary-card:hover,
.client-summary-card:focus-within,
.client-summary-card:active {
  z-index: 40;
}

.client-content-list {
  gap: 14px;
}

.client-focus-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.client-focus-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.client-publications-page .client-focus-list {
  gap: 8px;
}

.client-publications-page .list-item.client-focus-row {
  padding: 9px 10px;
  border-radius: 14px;
  gap: 10px;
}

.client-publications-page .client-focus-main {
  gap: 2px;
}

.client-publications-page .client-focus-main strong {
  font-size: 14px;
  line-height: 1.25;
}

.client-publications-page .client-focus-main .small {
  font-size: 12px;
  line-height: 1.2;
}

.client-publications-page .client-focus-row .badge-row {
  gap: 6px;
}

.client-publications-page .client-focus-row .badge {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
}

.client-publications-page .client-content-thumb {
  width: 62px;
  border-radius: 10px;
}

.client-publications-filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pagination-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.action-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.client-content-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.client-content-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(95, 107, 142, 0.14);
}

.client-content-card-todo {
  border-color: rgba(255, 124, 103, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.96), rgba(255, 255, 255, 0.96));
}

.client-content-card-done {
  border-color: rgba(71, 151, 111, 0.16);
}

.client-content-card-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.client-content-card-main {
  display: grid;
  gap: 8px;
}

.client-content-card-top,
.client-content-meta-row,
.client-media-item,
.client-detail-hero,
.client-detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.client-content-title {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.client-content-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(88, 99, 214, 0.08);
  color: #544fd0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.client-content-meta-row {
  align-items: center;
}

.client-content-thumb {
  position: relative;
  width: 72px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(113, 129, 171, 0.12);
  background: #eef2f8;
}

.client-content-thumb img,
.client-content-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-content-thumb-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.client-empty-state {
  padding: 20px;
}

.client-empty-state p {
  margin: 8px 0 0;
}

.client-detail-hero {
  margin-bottom: 20px;
  padding: 24px 26px;
}

.client-detail-hero .badge-soft {
  background: transparent;
}

.client-detail-hero-main p {
  max-width: 680px;
}

.client-publication-title {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.client-post-view {
  padding: 14px;
}

.client-post-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 420px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.client-post-media-col {
  background: #ffffff;
}

.client-post-media-title {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(113, 129, 171, 0.18);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
}

.client-post-title-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.client-post-title-left {
  display: grid;
  gap: 3px;
  flex: 1 1 75%;
  max-width: 75%;
  min-width: 0;
}

.client-post-title-text {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  word-break: break-word;
}

.client-post-title-date {
  display: block;
  font-size: 12px;
  font-style: italic;
  color: rgba(61, 74, 115, 0.78);
}

.client-post-media-title .muted {
  color: rgba(61, 74, 115, 0.72);
  margin: 0;
}

.client-post-title-side {
  display: grid;
  flex: 1 1 25%;
  max-width: 25%;
  justify-items: end;
  align-content: start;
  gap: 2px;
  min-width: 140px;
}

.client-post-title-side .badge-row {
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
}

.client-post-title-side .badge {
  font-size: 9px;
  line-height: 1;
  padding: 0;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(61, 74, 115, 0.88);
}

.client-post-title-side .client-post-status-badge {
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.client-post-title-side .client-post-status-badge-pending {
  background: #df4d4d !important;
  border: none !important;
  color: #fff !important;
}

.client-post-title-side .client-post-status-badge-approved {
  background: #2f9a53 !important;
  border: none !important;
  color: #fff !important;
}

.client-post-title-side .badge-soft,
.client-post-title-side .badge-accent,
.client-post-title-side .badge-ok,
.client-post-title-side .badge-warn {
  background: transparent !important;
  border: none !important;
}

.client-post-title-side .channel-icon {
  width: 22px;
  height: 22px;
}

.client-post-media-frame.client-media-preview {
  max-width: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 0;
  background: #0f1115;
}

.client-post-nav {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1d2433;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  border: 1px solid rgba(47, 61, 97, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.client-post-nav:hover {
  background: #fff;
}

.client-post-nav-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  padding: 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 56px;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.client-post-nav-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  padding: 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 56px;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.client-post-nav-list {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.client-post-nav-list svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-post-thumbs {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
}

.client-post-content-col {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-left: 1px solid rgba(113, 129, 171, 0.12);
  max-height: none;
  overflow: visible;
}

.client-post-header {
  display: grid;
  gap: 10px;
}

.client-post-meta-grid {
  display: grid;
  gap: 10px;
}

.client-post-media-list {
  margin-top: 12px;
  gap: 8px;
}

.client-post-download-note {
  margin-top: 10px;
}

.client-detail-meta {
  min-width: 280px;
  display: grid;
  gap: 12px;
}

.client-detail-stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(113, 129, 171, 0.12);
}

.client-detail-status-row {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-post-channel-row {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-detail-channel-row {
  margin-top: 4px;
  gap: 8px;
}

.client-detail-layout {
  align-items: start;
}

.client-media-list {
  gap: 10px;
}

.client-history-panel {
  padding: 18px;
}

.version-comparison-list {
  gap: 10px;
}

.status-history-list {
  gap: 10px;
}

.status-history-item {
  display: grid;
  gap: 8px;
}

.status-history-transition {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-history-arrow {
  color: rgba(61, 74, 115, 0.62);
  font-weight: 700;
}

.version-comparison-card {
  display: grid;
  gap: 10px;
}

.version-diff-stack {
  display: grid;
  gap: 10px;
}

.version-diff-field {
  display: grid;
  gap: 6px;
}

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

.diff-block {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: rgba(255, 255, 255, 0.88);
  white-space: pre-wrap;
  line-height: 1.38;
  font-size: 13px;
}

.diff-before {
  background: rgba(255, 248, 247, 0.92);
}

.diff-after {
  background: rgba(245, 253, 249, 0.92);
}

.diff-remove,
.diff-add {
  margin: 0;
  padding: 0 2px;
  border-radius: 4px;
}

.diff-remove {
  background: rgba(236, 93, 93, 0.2);
  color: #9a2f2f;
  text-decoration: line-through;
}

.diff-add {
  background: rgba(66, 179, 126, 0.24);
  color: #1d7a50;
}

.client-timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.client-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(113, 129, 171, 0.16);
}

.client-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.client-timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 6px;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(113, 129, 171, 0.16);
  background: #b6bed1;
  z-index: 1;
}

.client-timeline-item-accent .client-timeline-dot {
  background: #ff836f;
}

.client-timeline-item-ok .client-timeline-dot {
  background: #37a36d;
}

.client-timeline-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(113, 129, 171, 0.12);
}

.client-timeline-item-ok .client-timeline-card {
  border-color: rgba(55, 163, 109, 0.18);
  background: rgba(242, 251, 246, 0.94);
}

.client-timeline-card p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.client-readonly-block {
  min-height: 160px;
}

.client-readonly-scroll {
  max-height: clamp(180px, 34vh, 340px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.client-content-actions {
  margin-top: 4px;
}

.client-content-actions-inline {
  justify-content: flex-start;
}

.client-content-actions-floating {
  position: fixed;
  left: max(16px, calc((100vw - 1280px) / 2 + 32px));
  right: max(16px, calc((100vw - 1280px) / 2 + 32px));
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(113, 129, 171, 0.14);
  box-shadow: 0 12px 28px rgba(87, 99, 136, 0.16);
  z-index: 20;
  justify-content: center;
}

.client-detail-layout {
  padding-bottom: 96px;
}

.client-global-decision-bar {
  position: fixed;
  top: auto;
  left: max(16px, calc((100vw - 1280px) / 2 + 32px));
  right: max(16px, calc((100vw - 1280px) / 2 + 32px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 44;
  width: auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(113, 129, 171, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(87, 99, 136, 0.18);
}

.client-global-decision-bar .action {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.client-global-decision-bar-dual .action {
  max-width: 240px;
}

.client-global-decision-bar-single .action {
  flex: 0 1 320px;
  max-width: 320px;
}

.client-adjacent-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.client-adjacent-list-link {
  min-width: 40px;
  padding-inline: 10px;
}

.client-adjacent-list-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.preview-image,
.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-placeholder {
  padding: 24px;
  text-align: center;
}

.generated-text {
  text-align: left;
}

.media-note,
.wall-status-note { margin-top: 12px; }

.media-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-thumb {
  position: relative;
  width: 78px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(113, 129, 171, 0.14);
  border-radius: 12px;
  background: #eef2f8;
}

.media-thumb-current {
  outline: 2px solid #ff836f;
  outline-offset: 1px;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 11px;
}

.client-media-thumb {
  padding: 0;
  cursor: pointer;
}

.client-media-thumbs { align-items: flex-start; }

.media-thumb-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
}

.media-thumb-delete-button {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.crop-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.crop-launch-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

img.preview-image,
img.wall-image {
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-scale, 1));
  transform-origin: center;
}

.crop-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: #eff3f8;
  cursor: grab;
}

.crop-stage.is-dragging { cursor: grabbing; }

.crop-stage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-scale, 1));
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.crop-stage-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.crop-stage-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .84);
  box-shadow: inset 0 0 0 999px rgba(35, 27, 23, .12);
  pointer-events: none;
}

.wall-portrait-preview {
  gap: 2px;
  background: #fff;
  padding: 0;
  border: none;
  box-shadow: none;
}

.wall-portrait-preview .wall-tile {
  border: none;
  border-radius: 0;
  padding: 0;
  background: #f4f4f4;
}

.wall-portrait-preview .wall-tile-current {
  outline: 2px solid rgba(255, 131, 111, 0.9);
  outline-offset: -2px;
}

.wall-portrait-preview .wall-caption {
  opacity: 0;
  transition: opacity .18s ease;
  margin: 0;
  padding: 44px 10px 10px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0), rgba(10, 10, 10, .62));
  pointer-events: none;
}

.wall-portrait-preview .wall-tile:hover .wall-caption,
.wall-portrait-preview .wall-tile:focus-within .wall-caption {
  opacity: 1;
}

.wall-caption-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.wall-caption-link:hover { text-decoration: underline; }
.wall-portrait-preview .wall-empty { background: #f0f0f0; }

.wall-caption strong,
.wall-caption .small {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wall-media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
}

.wall-media-badge-image::before,
.wall-media-badge-image::after {
  content: "";
  position: absolute;
  border: 1.7px solid currentColor;
  border-radius: 2px;
  background: transparent;
}

.wall-media-badge-image::before { inset: 3px 2px 2px 3px; }
.wall-media-badge-image::after { inset: 1px 4px 4px 1px; background: rgba(255, 255, 255, .06); }

.wall-media-badge-video::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1.7px solid currentColor;
}

.wall-media-badge-video::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.wall-media-badge-pin {
  width: 20px;
  height: 20px;
  background: url("/assets/icons/pin-white.svg") center / contain no-repeat;
}

.media-library-dialog,
.crop-dialog,
.confirm-dialog {
  border: none;
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
}

.media-library-dialog {
  width: min(900px, calc(100vw - 48px));
}

.crop-dialog {
  width: min(680px, calc(100vw - 48px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.confirm-dialog {
  width: min(480px, calc(100vw - 48px));
}

.media-library-dialog::backdrop,
.crop-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(17, 15, 13, .48);
}

.confirm-dialog-body {
  display: grid;
  gap: 10px;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.media-library-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.crop-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.crop-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.crop-dialog .crop-panel {
  margin-top: 0;
  gap: 10px 12px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
}

.crop-dialog .crop-header {
  grid-column: 1 / -1;
}

.crop-dialog .crop-stage {
  grid-column: 1;
  grid-row: 2 / span 4;
  max-width: 280px;
}

.crop-dialog .field {
  grid-column: 2;
}

.crop-dialog .media-note {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 65vh;
  overflow: auto;
}

.media-library-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(113, 129, 171, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

.media-library-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 12px;
}

.media-library-thumb img,
.media-library-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-library-meta { display: grid; gap: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .grid-2,
  .split,
  .form-grid,
  .content-hero,
  .client-hero,
  .dashboard-week,
  .dashboard-month-head,
  .dashboard-month-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 12px;
  }

  .pill-nav {
    justify-content: flex-start;
  }

  .table {
    display: block;
    overflow-x: auto;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .content-hero-meta {
    justify-content: flex-start;
  }

  .client-detail-grid,
  .client-channel-grid {
    grid-template-columns: 1fr;
  }

  .client-summary-grid {
    grid-template-columns: 1fr;
  }

  .client-filter-row,
  .client-content-card-shell,
  .client-content-card-top,
  .client-content-meta-row,
  .client-media-item,
  .client-detail-hero,
  .client-detail-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .client-form-hero {
    flex-direction: column;
  }

  .content-actions {
    position: static;
  }

  .cm-dashboard-bottom-actions .action {
    width: 100%;
    justify-content: center;
  }

  .client-content-actions-floating {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: space-between;
  }

  .client-content-actions-floating .action {
    flex: 1 1 auto;
    min-width: 0;
  }

  .client-global-decision-bar {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
  }

  .client-global-decision-bar .action {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    padding: 8px 10px;
  }

  .client-wall-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding: 16px 12px calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell-client-offset {
    padding-top: 24px;
  }

  .topbar {
    margin-bottom: 16px;
    gap: 14px;
  }

  .topbar-client-offset {
    margin-top: 38px;
  }

  .topbar-brand {
    max-width: none;
  }

  h1 {
    margin-bottom: 6px;
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: -0.02em;
  }

  .page-title-small {
    font-size: clamp(22px, 6vw, 30px);
  }

  h2 {
    font-size: clamp(22px, 5.8vw, 30px);
  }

  h3 {
    font-size: 18px;
  }

  .muted {
    line-height: 1.35;
  }

  .panel,
  .client-show-panel,
  .content-editor-panel,
  .content-side-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .content-form-section,
  .client-timeline-card,
  .client-detail-stat {
    padding: 12px;
    border-radius: 14px;
  }

  .actions,
  .badge-row {
    gap: 8px;
  }

  .action {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .action-small {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .pill-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .topbar-cm-compact .topbar-brand {
    padding-right: 228px;
  }

  .pill-nav-floating-cm {
    width: auto;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    right: 0;
    flex-wrap: nowrap;
    padding: 0;
    border-radius: 0;
    gap: 6px;
  }

  .pill-nav-floating-cm .auth-label {
    width: auto;
    padding: 0 2px;
    font-size: 11px;
  }

  .pill-nav-floating-client {
    width: 100%;
    justify-content: flex-end;
    padding: 0;
    border-radius: 0;
  }

  .pill-nav-floating-client .auth-label {
    width: auto;
    padding: 0 2px;
    font-size: 11px;
  }

  .pill-nav a {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 13px;
  }

  .pill-nav .nav-icon {
    min-width: 38px;
    padding-inline: 10px;
  }

  .auth-label {
    width: 100%;
    padding: 2px 2px 0;
    font-size: 12px;
  }

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

  .grid,
  .stack {
    gap: 12px;
  }

  .split,
  .grid-2,
  .form-grid,
  .client-publications-filters,
  .client-summary-grid,
  .client-detail-grid,
  .client-channel-grid,
  .version-diff-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .client-hero-meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .client-hero-meta .kpi {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 0;
    padding: 8px 6px;
    border-radius: 10px;
  }

  .client-hero-meta .kpi-value {
    font-size: 18px;
  }

  .client-hero-meta .kpi-label {
    margin-top: 2px;
    font-size: 10px;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .field textarea {
    min-height: 108px;
  }

  .table {
    border-spacing: 0 6px;
    overflow-x: auto;
    display: block;
  }

  .table thead th {
    padding: 0 10px 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  .table tbody td {
    padding: 10px;
    min-width: 110px;
    font-size: 12px;
  }

  .client-content-table th,
  .client-content-table td {
    font-size: 12px;
  }

  .client-table-title-cell {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .client-table-thumb {
    width: 36px;
    border-radius: 8px;
  }

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

  .kpi {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .kpi-value {
    font-size: 26px;
  }

  .kpi-label {
    font-size: 12px;
    margin-top: 2px;
  }

  .calendar-legend {
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .dashboard-week,
  .dashboard-month {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .dashboard-week-panel,
  .dashboard-month-panel {
    min-width: 680px;
  }

  .dashboard-week-grid {
    grid-template-columns: repeat(7, minmax(92px, 1fr));
    gap: 6px;
  }

  .dashboard-month-head,
  .dashboard-month-grid {
    grid-template-columns: repeat(7, minmax(92px, 1fr));
    gap: 4px;
  }

  .calendar-day-card {
    min-height: 102px;
    padding: 8px;
    border-radius: 12px;
    gap: 8px;
  }

  .dashboard-month-cell {
    min-height: 94px;
    padding: 6px;
    border-radius: 10px;
    gap: 5px;
  }

  .dashboard-month-cell.calendar-cell-mobile-hidden {
    display: none;
  }

  .calendar-entry-mobile-hidden {
    display: none;
  }

  .dashboard-month[data-mobile-focus-mode="1"] {
    overflow: visible;
    padding-bottom: 0;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-panel {
    min-width: 0;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-head {
    display: none;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: none;
  }

  .cm-client-agenda-month[data-mobile-focus-mode="1"] .dashboard-month-cell.calendar-day-empty {
    display: none;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-cell {
    min-height: auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 8px;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
    padding-top: 2px;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .calendar-date-weekday {
    display: inline;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-list {
    display: grid;
    gap: 6px;
  }

  .calendar-entry {
    padding: 6px;
    border-radius: 10px;
    gap: 3px;
  }

  .calendar-entry-title {
    font-size: 11px;
  }

  .calendar-entry .small {
    font-size: 10px;
  }

  .wall {
    gap: 4px;
  }

  .wall-caption {
    padding: 44px 8px 8px;
  }

  .wall-portrait-preview {
    gap: 1px;
  }

  .wall-portrait-preview .wall-caption {
    padding: 38px 8px 8px;
  }

  .wall-portrait-preview .wall-caption strong {
    font-size: 11px;
    line-height: 1.2;
  }

  .wall-portrait-preview .wall-caption .small {
    font-size: 10px;
    line-height: 1.2;
  }

  .wall-portrait-preview .wall-media-badge {
    width: 15px;
    height: 15px;
    top: 5px;
    right: 5px;
  }

  .media-preview,
  .media-preview-compact,
  .client-media-preview {
    max-width: 100%;
  }

  .client-content-card-shell {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .client-content-thumb {
    width: 64px;
    border-radius: 10px;
  }

  .client-publications-page .client-content-thumb {
    width: 52px;
    border-radius: 8px;
  }

  .client-publication-title {
    font-size: clamp(20px, 5.8vw, 25px);
    line-height: 1.14;
  }

  .client-post-shell {
    grid-template-columns: 1fr;
  }

  .client-post-content-col {
    border-left: 0;
    border-top: 1px solid rgba(113, 129, 171, 0.12);
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .client-post-media-title strong {
    font-size: 12px;
  }

  .client-post-media-title {
    gap: 4px;
  }

  .client-post-title-left {
    flex: 1 1 75%;
    max-width: 75%;
  }

  .client-post-title-side {
    flex: 1 1 25%;
    max-width: 25%;
    justify-items: start;
    min-width: 0;
  }

  .client-post-title-side .badge-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
  }

  .client-post-nav {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .client-post-nav-prev {
    left: 8px;
    font-size: 44px;
  }

  .client-post-nav-next {
    right: 8px;
    font-size: 44px;
  }

  .client-post-nav-list {
    width: 30px;
    height: 30px;
    right: 8px;
    top: 8px;
  }

  .client-adjacent-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .client-adjacent-nav .action {
    flex: 1 1 100%;
    justify-content: center;
  }

  .client-adjacent-list-link {
    flex: 0 0 auto;
    min-width: 40px;
  }

  .content-actions,
  .client-content-actions-floating,
  .client-global-decision-bar {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .content-actions {
    position: fixed;
    z-index: 30;
    padding: 10px;
    border-radius: 12px;
  }

  .client-content-actions-floating,
  .client-global-decision-bar {
    padding: 10px;
    border-radius: 12px;
    gap: 6px;
  }

  .client-global-decision-bar {
    top: auto;
    position: fixed;
    display: flex;
    align-items: stretch;
  }

  .client-global-decision-bar .action {
    min-height: 38px;
    font-size: 12px;
    padding: 8px 9px;
  }

  .client-global-decision-bar-dual .action {
    flex: 1 1 calc(50% - 3px);
    max-width: none;
  }

  .client-global-decision-bar-single .action {
    flex: 1 1 auto;
    max-width: none;
  }

  .client-detail-layout {
    padding-bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  }

  .confirm-dialog,
  .media-library-dialog,
  .crop-dialog {
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 14px;
  }

  .crop-dialog .crop-panel {
    grid-template-columns: 1fr;
  }

  .crop-dialog .crop-stage,
  .crop-dialog .field,
  .crop-dialog .media-note {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
  }

  .media-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-inline: 10px;
  }

  .topbar-client-offset {
    margin-top: 42px;
  }

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

  .kpi-value {
    font-size: 22px;
  }

  .kpi-label {
    font-size: 11px;
  }

  .pill-nav {
    gap: 6px;
  }

  .topbar-cm-compact .topbar-brand {
    padding-right: 198px;
  }

  .pill-nav-floating-cm {
    gap: 5px;
  }

  .pill-nav-floating-client {
    width: 100%;
    justify-content: flex-end;
    padding: 0;
    gap: 5px;
  }

  .pill-nav a {
    font-size: 12px;
    padding: 8px 10px;
  }

  .dashboard-week-panel,
  .dashboard-month-panel {
    min-width: 620px;
  }

  .dashboard-week-grid {
    grid-template-columns: repeat(7, minmax(84px, 1fr));
  }

  .dashboard-month-head,
  .dashboard-month-grid {
    grid-template-columns: repeat(7, minmax(84px, 1fr));
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-head {
    display: none;
  }

  .dashboard-month[data-mobile-focus-mode="1"] .dashboard-month-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: none;
  }

  .cm-client-agenda-month[data-mobile-focus-mode="1"] .dashboard-month-cell.calendar-day-empty {
    display: none;
  }

  .calendar-day-card {
    min-height: 94px;
    padding: 6px;
    gap: 6px;
  }

  .dashboard-month-cell {
    min-height: 84px;
    padding: 5px;
  }

  .calendar-entry {
    padding: 5px;
  }

  .calendar-entry-title {
    font-size: 10px;
  }

  .client-content-card-shell {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .client-content-thumb {
    width: 56px;
  }

  .client-publications-page .client-content-thumb {
    width: 46px;
  }

  .client-content-title {
    font-size: 17px;
    margin-top: 6px;
  }

  .media-thumb {
    width: 62px;
    border-radius: 10px;
  }

  .wall-portrait-preview .wall-caption {
    padding: 34px 6px 6px;
  }

  .wall-portrait-preview .wall-caption strong {
    font-size: 10px;
  }

  .wall-portrait-preview .wall-caption .small {
    font-size: 9px;
  }
}

@media (hover: none), (pointer: coarse) {
  .wall-portrait-preview .wall-tile {
    cursor: pointer;
  }

  .wall-portrait-preview .wall-tile:active .wall-caption {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
