@font-face {
  font-family: "Arc Display";
  src: url("/assets/arc-brand/fonts/WeddingGothicATF-Bold.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Ops Sans";
  src: url("/fonts/geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Ops Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Arc Body";
  src: url("/assets/arc-brand/fonts/Archivo-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --soft-veil: #f1f2f3;
  --soft-veil-light: #ffffff;
  --deep-reserve: #151718;
  --still-stone: #686e72;
  --earthen-muse: #a7adb1;
  --sage-shift: #60676b;
  --silver-relief: #d5d9dc;
  --golden-ease: #b6babd;
  --white: #ffffff;
  --error: #8b3e3e;
  --line: rgba(21, 23, 24, 0.13);
  --soft-shadow: 0 18px 48px rgba(34, 39, 42, 0.08);
  --focus: 0 0 0 3px rgba(73, 79, 83, 0.2);
  --tenant-accent: #151718;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--deep-reserve);
  background: var(--soft-veil);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--soft-veil);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 58% -12%, rgba(255, 255, 255, 0.98), transparent 34rem),
    linear-gradient(145deg, #f6f7f7, #e4e7e9);
  overflow-x: hidden;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

[hidden] {
  display: none !important;
}

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

.ambient-mark {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  top: -22rem;
  right: -12rem;
  border: 1px solid rgba(62, 56, 53, 0.1);
  border-radius: 48% 52% 60% 40% / 42% 58% 42% 58%;
  transform: rotate(18deg);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--still-stone);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(2.15rem, 5vw, 5rem);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: none;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.button {
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease,
    border-color 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  color: var(--soft-veil-light);
  background: var(--deep-reserve);
}

.button-primary:hover {
  background: #2f2a28;
}

.button-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  border-color: rgba(62, 56, 53, 0.22);
  color: #211f1e;
  background: #fff;
}

.button-google:hover {
  background: #f6f6f6;
}

.button-google,
.registration-form .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.google-mark {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1px solid rgba(32, 33, 36, 0.2);
  border-radius: 50%;
  color: #4285f4;
  font-size: 0.78rem;
  font-weight: 800;
}

.google-mark-inverse {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.auth-mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin: 1.8rem 0 1.2rem;
  padding: 0.3rem;
  border: 1px solid rgba(15, 18, 24, 0.1);
  border-radius: 0.8rem;
  background: #f1f3f6;
}

.auth-mode-switcher button {
  min-height: 2.85rem;
  border: 0;
  border-radius: 0.55rem;
  color: #676d76;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 680;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-mode-switcher button[aria-selected="true"] {
  color: #111419;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(20, 24, 31, 0.09);
}

.auth-mode-panel {
  animation: auth-panel-in 220ms ease both;
}

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

.auth-help {
  margin-top: 0.9rem;
  color: #6a7078;
  font-size: 0.76rem;
}

.auth-help summary {
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(32, 38, 47, 0.25);
  text-underline-offset: 0.22rem;
}

.auth-help summary::marker {
  content: "";
}

.auth-help div {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 18, 24, 0.09);
  border-radius: 0.65rem;
  background: #f8f9fb;
  line-height: 1.5;
}

.auth-help p {
  margin: 0 0 0.45rem;
}

.auth-help p:last-child {
  margin: 0.45rem 0 0;
}

.auth-help a {
  color: #1d4ed8;
  font-weight: 650;
}

.invitation-callout {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(103, 116, 255, 0.16);
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 183, 218, 0.36), transparent 48%),
    linear-gradient(135deg, rgba(222, 243, 255, 0.7), rgba(248, 247, 255, 0.92));
}

.invitation-callout span {
  display: block;
  margin-bottom: 0.35rem;
  color: #323849;
  font-size: 0.73rem;
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invitation-callout p,
.registration-note {
  margin: 0;
  color: #656b75;
  font-size: 0.78rem;
  line-height: 1.5;
}

.registration-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.15rem 0;
  color: #828791;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-divider::before,
.registration-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(15, 18, 24, 0.1);
}

.button-demo {
  position: relative;
  overflow: hidden;
  border-color: rgba(101, 112, 255, 0.18);
  color: #202637;
  background: linear-gradient(110deg, #e5f7ff, #f6e9ff 52%, #fff2df);
}

.button-demo:hover {
  border-color: rgba(101, 112, 255, 0.3);
  box-shadow: 0 8px 24px rgba(94, 105, 215, 0.13);
}

.registration-note {
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  color: var(--still-stone);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.invite-form h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.invite-form .text-button {
  justify-self: center;
}

.button-secondary {
  color: var(--deep-reserve);
  border-color: rgba(62, 56, 53, 0.34);
  background: transparent;
}

.button-secondary:hover {
  background: rgba(255, 253, 250, 0.7);
}

.button-quiet {
  color: var(--still-stone);
  background: transparent;
}

.button-wide {
  width: 100%;
}

.login-shell {
  width: min(1320px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(28rem, 1fr) minmax(28rem, 32rem);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding: 3rem 0;
}

.login-brand {
  position: relative;
  min-height: 40rem;
  display: flex;
  align-items: center;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 4% 7% 4% -10%;
  border: 1px solid rgba(62, 56, 53, 0.14);
  border-radius: 49% 51% 38% 62% / 58% 42% 58% 42%;
  transform: rotate(-7deg);
}

.login-brand img {
  position: relative;
  width: min(90%, 34rem);
  height: auto;
  object-fit: contain;
}

.studio-mark {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 2rem;
}

.studio-mark span {
  font-family: "Arc Display", "Arc Body", sans-serif;
  font-size: clamp(5rem, 12vw, 10rem);
  letter-spacing: -0.055em;
  line-height: 0.78;
}

.studio-mark small {
  color: var(--still-stone);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.login-panel {
  width: 100%;
  max-width: 32rem;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid rgba(62, 56, 53, 0.14);
  background: rgba(247, 245, 242, 0.74);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.login-panel h1 {
  max-width: 11ch;
  font-size: clamp(2.65rem, 3.4vw, 3.65rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.login-intro {
  max-width: 26rem;
  margin: 1.7rem 0 2rem;
  color: var(--still-stone);
  font-size: 0.98rem;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.access-type {
  min-width: 0;
  padding: 0;
  border: 0;
}

.access-type legend {
  margin-bottom: 0.48rem;
  color: var(--still-stone);
  font-size: 0.78rem;
  font-weight: 630;
}

.access-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #f2f3f4;
}

.login-form .access-type-options label {
  display: block;
  gap: 0;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}

.login-form .access-type-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.access-type-options span {
  min-height: 2.35rem;
  display: grid;
  place-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0.22rem;
  color: var(--still-stone);
  font-size: 0.76rem;
  font-weight: 680;
  text-align: center;
}

.access-type-options input:checked + span {
  color: #ffffff;
  background: #17191c;
}

.access-type-options input:focus-visible + span {
  box-shadow: var(--focus);
}

.login-form label,
.feedback-field {
  display: grid;
  gap: 0.48rem;
  color: var(--still-stone);
  font-size: 0.78rem;
  font-weight: 630;
}

.login-form input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid rgba(62, 56, 53, 0.22);
  border-radius: 0.2rem;
  color: var(--deep-reserve);
  background: rgba(255, 253, 250, 0.82);
}

.login-form input {
  min-height: 3.1rem;
  padding: 0.75rem 0.85rem;
}

.form-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--error);
  font-size: 0.78rem;
  line-height: 1.4;
}

.privacy-note {
  margin: 1.25rem 0 0;
  color: var(--still-stone);
  font-size: 0.72rem;
  text-align: center;
}

.app-shell {
  width: min(1520px, calc(100% - 2rem));
  margin: 0 auto;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 5.7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(239, 237, 234, 0.88);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--deep-reserve);
  text-decoration: none;
}

.brand-lockup img {
  width: 4.8rem;
  height: 2.6rem;
  object-fit: contain;
}

.brand-lockup span {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  color: var(--still-stone);
  font-size: 0.72rem;
  font-weight: 610;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-lockup .brand-text-logo {
  max-width: 10rem;
  padding: 0;
  border: 0;
  color: var(--deep-reserve);
  font-family: "Arc Display", "Arc Body", sans-serif;
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1;
}

.primary-nav {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.52);
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar { display: none; }

.nav-item {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--still-stone);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-item.is-active {
  color: var(--soft-veil-light);
  background: var(--deep-reserve);
}

.nav-count {
  min-width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  padding: 0 0.28rem;
  border-radius: 999px;
  color: var(--deep-reserve);
  background: var(--golden-ease);
  font-size: 0.64rem;
}

.reviewer-menu {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-trigger {
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.38rem 0.28rem 0.28rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.account-trigger:hover,
.account-menu[open] .account-trigger {
  border-color: var(--line);
  background: rgba(255, 253, 250, 0.56);
}

.account-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.account-chevron {
  color: var(--still-stone);
  font-size: 0.78rem;
  transition: transform 160ms ease;
}

.account-menu[open] .account-chevron {
  transform: rotate(180deg);
}

.account-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 15rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.98);
  box-shadow: 0 18px 45px rgba(33, 29, 27, 0.15);
}

.account-popover-header {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.35rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.account-popover-header > span:last-child {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.account-popover-header strong {
  overflow: hidden;
  color: var(--deep-reserve);
  font-size: 0.78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover-header small,
.brand-switcher-label > span,
.account-actions small {
  color: var(--still-stone);
  font-size: 0.61rem;
  font-weight: 520;
  line-height: 1.35;
}

.account-popover .text-button {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 0.65rem;
  text-align: left;
}

.brand-switcher-label {
  display: grid;
  gap: 0.35rem;
  padding: 0.72rem 0.35rem 0.55rem;
}

.brand-switcher {
  width: 100%;
  min-height: 2.35rem;
  max-width: none;
  padding: 0.45rem 1.8rem 0.45rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--deep-reserve);
  background: rgba(255, 253, 250, 0.72);
  font-size: 0.7rem;
  font-weight: 620;
}

.account-actions {
  display: grid;
  gap: 0.18rem;
  padding: 0.2rem 0;
}

.account-actions button {
  width: 100%;
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 0.8fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.65rem;
  border: 0;
  color: var(--deep-reserve);
  background: transparent;
  text-align: left;
}

.account-actions button:hover,
.account-actions button:focus-visible {
  background: rgba(255, 253, 250, 0.82);
}

.account-actions button:focus-visible,
.account-signout:focus-visible,
.brand-switcher:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.account-actions button > span:first-child {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1.25;
}

.account-actions small {
  text-align: right;
}

.account-action-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.account-signout {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.62rem 0.65rem 0.42rem;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--still-stone);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 580;
  text-align: left;
}

.account-signout:hover {
  color: var(--error);
}

.reviewer-initial {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--soft-veil-light);
  background: var(--tenant-accent);
  font-size: 0.72rem;
  font-weight: 720;
}

.reviewer-name,
.text-button {
  font-size: 0.72rem;
  font-weight: 600;
}

.text-button {
  width: 100%;
  padding: 0.75rem 0.65rem;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--still-stone);
  background: transparent;
  text-align: left;
}

.text-button:hover {
  color: var(--deep-reserve);
  background: rgba(255, 253, 250, 0.82);
}

main {
  padding: clamp(2.4rem, 6vw, 6rem) 0 5rem;
}

.view-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.view-heading h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.view-summary {
  max-width: 24rem;
  margin: 0;
  color: var(--still-stone);
  font-size: 0.88rem;
  line-height: 1.6;
}

.review-queue {
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.changes-list {
  display: grid;
  gap: 1rem;
}

.change-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(20rem, 1fr);
  border: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.78);
}

.change-card-media {
  min-height: 17rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: rgba(140, 147, 132, 0.12);
}

.change-card-media img,
.change-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.change-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.change-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--still-stone);
  font-size: 0.68rem;
}

.change-card h2 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.rework-stage-label {
  color: var(--still-stone);
  font-size: 0.68rem;
  font-weight: 680;
}

.rework-stage-label.status-in_progress,
.rework-stage-label.status-ready {
  color: var(--sage-shift);
}

.rework-stage-label.status-blocked {
  color: var(--error);
}

.rework-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}

.rework-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--still-stone);
  font-size: 0.64rem;
}

.rework-step i {
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.rework-step.is-complete,
.rework-step.is-active {
  border-color: var(--sage-shift);
  color: var(--sage-shift);
}

.rework-step.is-complete i,
.rework-step.is-active i {
  border-color: var(--sage-shift);
  background: var(--sage-shift);
}

.rework-step.is-active {
  font-weight: 680;
}

.rework-step.is-blocked {
  border-color: var(--error);
  color: var(--error);
}

.brand-rework-summary {
  margin: 0.9rem 0 1.1rem;
  color: var(--still-stone);
  font-size: 0.7rem;
  line-height: 1.6;
}

.change-feedback {
  padding: 1rem;
  border-left: 2px solid var(--earthen-muse);
  background: rgba(255, 253, 250, 0.52);
}

.change-feedback span {
  color: var(--still-stone);
  font-size: 0.64rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.change-feedback p {
  margin: 0.55rem 0 0;
  color: var(--deep-reserve);
  font-size: 0.83rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.feedback-history {
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.feedback-history summary {
  width: fit-content;
  color: var(--deep-reserve);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.feedback-history p {
  max-height: 18rem;
  overflow: auto;
  padding-right: 0.5rem;
  color: var(--still-stone);
  font-size: 0.76rem;
}

.change-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--still-stone);
  font-size: 0.67rem;
}

.change-card-footer > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.change-card-footer .grid-card-link {
  margin-top: 0;
}

.change-card-footer .button {
  min-height: 2.6rem;
  padding: 0.65rem 0.85rem;
}

.agency-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1px;
  background: var(--line);
}

.agency-summary article {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  background: rgba(247, 245, 242, 0.78);
}

.agency-summary span {
  color: var(--still-stone);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-summary strong {
  font-family: "Arc Display", "Arc Body", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.brand-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.brand-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(9rem, 0.65fr) minmax(16rem, 1fr);
  border: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.78);
}

.brand-card-mark {
  min-height: 18rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: rgba(140, 147, 132, 0.12);
}

.brand-card-mark img {
  width: min(70%, 9rem);
  max-height: 7rem;
  object-fit: contain;
}

.brand-card-mark span {
  font-family: "Arc Display", "Arc Body", sans-serif;
  font-size: 4rem;
}

.brand-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.brand-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--still-stone);
  font-size: 0.66rem;
}

.brand-card h2 {
  margin: 1rem 0 1.5rem;
  font-size: 1.65rem;
}

.brand-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.brand-card-metrics span {
  display: grid;
  gap: 0.18rem;
  color: var(--still-stone);
  font-size: 0.65rem;
}

.brand-card-metrics strong {
  color: var(--deep-reserve);
  font-size: 1.05rem;
}

.brand-card .button {
  width: fit-content;
  margin-top: auto;
}

.agency-skeleton {
  min-height: 24rem;
}

.review-card {
  scroll-margin-top: 7rem;
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(25rem, 1fr);
  border: 1px solid rgba(62, 56, 53, 0.14);
  background: rgba(247, 245, 242, 0.78);
  box-shadow: var(--soft-shadow);
}

.queue-position {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  color: var(--still-stone);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-media-column {
  position: relative;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 2.2rem);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(183, 173, 161, 0.2), transparent 45%),
    rgba(201, 201, 195, 0.17);
}

.media-stage {
  min-height: 38rem;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
}

.media-viewport {
  width: 100%;
  min-height: 34rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.review-media-track {
  width: 100%;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--earthen-muse) transparent;
  scrollbar-width: thin;
}

.review-media-slide {
  min-width: 100%;
  min-height: 34rem;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 0.6rem;
  margin: 0;
  scroll-snap-align: start;
}

.review-media-slide figcaption {
  color: var(--still-stone);
  font-size: 0.64rem;
  font-weight: 620;
}

.media-unavailable {
  width: min(22rem, calc(100% - 2rem));
  min-height: 13rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 1rem;
  color: var(--still-stone);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.media-unavailable[hidden] {
  display: none;
}

.media-unavailable strong {
  color: var(--deep-reserve);
  font-size: 0.86rem;
}

.media-unavailable span {
  font-size: 0.72rem;
}

.media-viewport img,
.media-viewport video {
  max-width: 100%;
  max-height: min(68vh, 46rem);
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(62, 56, 53, 0.13));
}

.media-viewport img {
  animation: media-arrive 360ms ease both;
}

.media-scroll-hint {
  margin: 0.7rem 0 0;
  color: var(--still-stone);
  font-size: 0.66rem;
  text-align: center;
}

.media-controls {
  min-width: 9.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--still-stone);
  background: rgba(255, 253, 250, 0.7);
  font-size: 0.72rem;
}

.media-arrow {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  color: var(--deep-reserve);
  background: transparent;
}

.media-arrow:hover {
  background: var(--soft-veil);
}

.journey-strip {
  width: min(100%, 27rem);
  margin: 1rem auto 0;
  padding: 0.2rem 0 0;
}

.journey-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0.31rem;
  left: 16.666%;
  right: 16.666%;
  height: 1px;
  background: #cfd4dc;
}

.journey-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.48rem;
  min-width: 0;
  color: #7a818c;
  font-size: 0.58rem;
  font-weight: 620;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.journey-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid #aeb5bf;
  border-radius: 50%;
  background: #fff;
}

.journey-steps li.is-current {
  color: #1e2530;
}

.journey-steps li.is-current .journey-dot {
  border-color: #2674f2;
  background: #2674f2;
  box-shadow: 0 0 0 0.3rem #eaf2ff;
}

.review-copy-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.post-title-block {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.post-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.soft-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 680;
  line-height: 1;
}

.soft-pill {
  color: var(--deep-reserve);
  background: rgba(216, 198, 165, 0.65);
}

.revision-label {
  color: var(--still-stone);
  font-size: 0.7rem;
}

.post-title-block h2 {
  max-width: 36rem;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.platform-chip {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--still-stone);
  font-size: 0.66rem;
  font-weight: 580;
}

.copy-section {
  min-height: 19rem;
  padding: 2rem 0;
}

.caption-tabs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.caption-tab {
  flex: 0 0 auto;
  padding: 0 0 0.6rem;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--still-stone);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 640;
}

.caption-tab.is-active {
  border-color: var(--deep-reserve);
  color: var(--deep-reserve);
}

.caption-text {
  max-height: 22rem;
  overflow: auto;
  padding: 1.4rem 0.4rem 0 0;
  color: #514a46;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.readiness-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--sage-shift);
  color: var(--still-stone);
  background: rgba(140, 147, 132, 0.08);
  font-size: 0.76rem;
  line-height: 1.55;
}

.readiness-note::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  margin-top: 0.32rem;
  border-radius: 50%;
  background: var(--sage-shift);
}

.decision-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.decision-bar > p {
  max-width: 18rem;
  margin: 0;
  color: var(--still-stone);
  font-size: 0.72rem;
  line-height: 1.45;
}

.decision-actions {
  display: flex;
  gap: 0.65rem;
}

.review-skeleton {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 1px;
  min-height: 42rem;
  background: var(--line);
}

.skeleton {
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%) 0 0 / 200% 100%,
    rgba(255, 253, 250, 0.5);
  animation: skeleton 1.4s infinite;
}

.quiet-empty {
  min-height: 35rem;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 4rem 1.5rem;
  border: 1px solid var(--line);
  text-align: center;
  background: rgba(255, 253, 250, 0.46);
}

.quiet-empty.compact {
  min-height: 18rem;
}

.quiet-empty h2 {
  margin-bottom: 0.7rem;
}

.quiet-empty > p:not(.eyebrow) {
  color: var(--still-stone);
}

.empty-orbit {
  width: 4rem;
  height: 2.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sage-shift);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.grid-tools {
  display: flex;
  gap: 0.5rem;
}

.grid-section + .grid-section {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 0.42rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.section-heading > p {
  max-width: 22rem;
  margin: 0;
  color: var(--still-stone);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
}

.select-label select,
.icon-button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  color: var(--deep-reserve);
  background: rgba(255, 253, 250, 0.6);
}

.select-label select {
  min-width: 10rem;
  padding: 0.65rem 2.2rem 0.65rem 0.8rem;
  border-radius: 0.2rem;
  font-size: 0.74rem;
  font-weight: 620;
}

.icon-button {
  width: 2.75rem;
  border-radius: 50%;
  font-size: 1.05rem;
}

.sync-notice {
  min-height: 1.4rem;
  margin-top: -2.75rem;
  margin-bottom: 1.3rem;
  color: var(--still-stone);
  font-size: 0.7rem;
}

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

.publishing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.publishing-grid-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  color: var(--soft-veil-light);
  background: rgba(201, 201, 195, 0.3);
  text-decoration: none;
}

.publishing-grid-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.publishing-grid-tile:hover > img {
  transform: scale(1.018);
}

.publishing-grid-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 31, 29, 0.03) 42%, rgba(35, 31, 29, 0.7));
}

.publishing-grid-status,
.publishing-grid-title {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
}

.publishing-grid-status {
  top: 1rem;
  width: fit-content;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(62, 56, 53, 0.2);
  backdrop-filter: blur(8px);
  font-size: 0.6rem;
  font-weight: 650;
}

.publishing-grid-title {
  bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 620;
  line-height: 1.35;
}

.grid-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.76);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(62, 56, 53, 0.08);
}

.grid-card-media {
  aspect-ratio: 1.25 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(201, 201, 195, 0.22);
}

.grid-card-media img,
.grid-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-card-placeholder {
  width: 5.5rem;
  opacity: 0.42;
}

.grid-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

.grid-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.status-pill.status-review {
  color: #574d41;
  background: rgba(216, 198, 165, 0.72);
}

.status-pill.status-upcoming {
  color: #455044;
  background: rgba(140, 147, 132, 0.22);
}

.status-pill.status-published {
  color: #f8f7f4;
  background: var(--sage-shift);
}

.status-pill.status-attention {
  color: #70423c;
  background: rgba(183, 169, 154, 0.42);
}

.grid-card-id {
  color: var(--still-stone);
  font-size: 0.64rem;
}

.grid-card h2 {
  min-height: 2.5em;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 520;
  line-height: 1.25;
}

.grid-sync-warning {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, #e3654f 28%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, #fff0ec 72%, white);
  color: #7f2f21;
  font-size: 0.78rem;
  line-height: 1.35;
}

.grid-sync-warning strong {
  color: #501d16;
  font-size: 0.76rem;
}

.grid-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--still-stone);
  font-size: 0.7rem;
}

.grid-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(62, 56, 53, 0.09);
}

.grid-meta-row strong {
  color: var(--deep-reserve);
  font-weight: 570;
  text-align: right;
}

.grid-platform-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.platform-result {
  padding: 0.3rem 0.46rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--still-stone);
  font-size: 0.6rem;
}

.platform-result.is-live {
  border-color: transparent;
  color: #f8f7f4;
  background: var(--sage-shift);
}

.platform-result.is-failed {
  color: var(--error);
  border-color: rgba(126, 67, 61, 0.3);
}

.grid-card-link {
  width: fit-content;
  color: var(--deep-reserve);
  font-size: 0.7rem;
  font-weight: 650;
  text-underline-offset: 0.2rem;
}

.grid-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  margin-top: 1rem;
}

button.grid-card-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 2.5rem;
  background: var(--line);
}

.connected-accounts {
  margin-bottom: 1.5rem;
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  border: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.78);
}

.connected-accounts-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.connected-accounts-heading h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.connected-accounts-heading > span {
  color: var(--still-stone);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connected-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.connected-account {
  min-width: 0;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  color: var(--deep-reserve);
  background: rgba(255, 253, 250, 0.46);
  text-decoration: none;
}

.connected-account:hover {
  background: rgba(255, 253, 250, 0.82);
}

.connected-account img,
.connected-account-initial {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.connected-account-initial {
  display: grid;
  place-items: center;
  color: var(--soft-veil-light);
  background: var(--tenant-accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.connected-account-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.connected-account-copy small,
.connected-account-followers {
  color: var(--still-stone);
  font-size: 0.6rem;
}

.connected-account-copy strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-account-followers {
  text-align: right;
}

.connected-account-empty {
  margin: 0;
  color: var(--still-stone);
  font-size: 0.76rem;
}

.brand-connected-accounts {
  color: var(--deep-reserve) !important;
}

.metric-card {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  background: rgba(247, 245, 242, 0.78);
}

.metric-label {
  color: var(--still-stone);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  font-family: "Arc Display", "Arc Body", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.analytics-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1px;
  background: var(--line);
}

.analytics-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 1rem;
}

.analytics-actions .view-summary {
  max-width: 32rem;
}

.analytics-actions .text-button {
  flex: 0 0 auto;
}

.analytics-story,
.performance-list {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: rgba(247, 245, 242, 0.78);
}

.analytics-story h2 {
  max-width: 22rem;
  margin-bottom: 1rem;
}

.analytics-story p {
  color: var(--still-stone);
  line-height: 1.65;
}

.performance-list h2 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.performance-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.performance-row span:last-child {
  color: var(--still-stone);
}

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

.performance-row small {
  margin-top: 0.22rem;
  color: var(--still-stone);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agency-performance {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.78);
}

.agency-performance-head,
.agency-performance-row {
  min-width: 52rem;
  display: grid;
  grid-template-columns: minmax(12rem, 1.7fr) repeat(5, minmax(5rem, 0.55fr));
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
}

.agency-performance-head {
  color: var(--still-stone);
  font-size: 0.62rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-performance-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--deep-reserve);
  background: transparent;
  font-size: 0.8rem;
  text-align: left;
}

.agency-performance-row:hover:not(:disabled) {
  background: rgba(255, 253, 250, 0.62);
}

.agency-performance-row > span:first-child {
  display: grid;
  gap: 0.22rem;
}

.agency-performance-row strong {
  font-size: 0.86rem;
}

.agency-performance-row small {
  color: var(--still-stone);
  font-size: 0.62rem;
}

.connection-empty {
  min-height: 26rem;
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  border: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.76);
}

.connection-mark {
  position: relative;
  min-height: 18rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: rgba(140, 147, 132, 0.1);
}

.connection-mark::before,
.connection-mark::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 7rem;
  border: 1px solid var(--sage-shift);
  border-radius: 50%;
}

.connection-mark::before {
  transform: translate(-2.8rem, -1.2rem) rotate(-16deg);
}

.connection-mark::after {
  transform: translate(3.2rem, 1rem) rotate(18deg);
}

.connection-copy {
  align-self: center;
  max-width: 34rem;
  padding: clamp(2rem, 6vw, 5rem);
}

.connection-copy h2 {
  margin-bottom: 1rem;
}

.connection-copy p {
  color: var(--still-stone);
  line-height: 1.65;
}

.modal {
  width: min(38rem, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  color: var(--deep-reserve);
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(62, 56, 53, 0.44);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--soft-veil-light);
  box-shadow: 0 35px 100px rgba(33, 29, 27, 0.28);
}

.modal-card-small {
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  color: var(--still-stone);
  background: transparent;
  font-size: 1.35rem;
}

.modal-intro {
  max-width: 31rem;
  margin: 1rem 0 1.5rem;
  color: var(--still-stone);
  font-size: 0.84rem;
  line-height: 1.6;
}

.modal-card-small .modal-intro {
  margin-right: auto;
  margin-left: auto;
}

.feedback-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
}

.feedback-categories legend {
  width: 100%;
  margin-bottom: 0.35rem;
  color: var(--still-stone);
  font-size: 0.72rem;
  font-weight: 630;
}

.feedback-categories input {
  position: absolute;
  opacity: 0;
}

.feedback-categories span {
  display: block;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--still-stone);
  font-size: 0.7rem;
  font-weight: 620;
  cursor: pointer;
}

.feedback-categories input:checked + span {
  border-color: var(--deep-reserve);
  color: var(--soft-veil-light);
  background: var(--deep-reserve);
}

.feedback-categories input:focus-visible + span {
  box-shadow: var(--focus);
}

.feedback-field textarea {
  min-height: 9rem;
  padding: 0.85rem;
  resize: vertical;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.approval-seal {
  width: 5rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin: 2rem auto;
  border: 1px solid var(--sage-shift);
  border-radius: 50%;
  color: var(--sage-shift);
  font-family: "Arc Display", sans-serif;
  font-size: 1.45rem;
  transform: rotate(-7deg);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: min(24rem, calc(100% - 2.4rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.2rem;
  color: var(--soft-veil-light);
  background: var(--deep-reserve);
  box-shadow: 0 15px 40px rgba(33, 29, 27, 0.24);
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@keyframes skeleton {
  to { background-position: -200% 0, 0 0; }
}

@keyframes media-arrive {
  from { opacity: 0; transform: translateY(0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .review-card {
    grid-template-columns: minmax(18rem, 0.75fr) minmax(21rem, 1fr);
  }

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

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

  .connected-account-grid {
    grid-template-columns: 1fr;
  }

  .brand-overview {
    grid-template-columns: 1fr;
  }

  .reviewer-name {
    display: none;
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 1rem, 54rem);
  }

  .app-header {
    min-height: 4.5rem;
    grid-template-columns: auto 1fr auto;
  }

  .brand-lockup img {
    width: 3.75rem;
  }

  .brand-lockup .brand-room-label,
  .reviewer-name,
  .account-chevron {
    display: none;
  }

  .primary-nav {
    justify-self: center;
  }

  .brand-switcher-label {
    display: none;
  }

  .nav-item {
    min-height: 2.2rem;
    padding: 0.52rem 0.72rem;
  }

  main {
    padding-top: 2.2rem;
  }

  .view-heading {
    display: grid;
    align-items: start;
    margin-bottom: 2rem;
  }

  .view-summary {
    max-width: 34rem;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .review-media-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .media-stage {
    min-height: 28rem;
  }

  .media-viewport {
    min-height: 24rem;
  }

  .review-media-slide {
    min-height: 24rem;
  }

  .media-viewport img,
  .media-viewport video {
    max-height: 60vh;
  }

  .copy-section {
    min-height: 14rem;
  }

  .decision-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .decision-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .change-card {
    grid-template-columns: minmax(9rem, 0.4fr) minmax(18rem, 1fr);
  }

  .change-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-panel,
  .connection-empty {
    grid-template-columns: 1fr;
  }

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

  .connection-mark {
    min-height: 13rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-shell {
    width: min(100% - 1.5rem, 32rem);
    grid-template-columns: 1fr;
    place-items: center;
    padding: 1.5rem 0;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    padding: clamp(1.5rem, 8vw, 3rem);
  }

  .login-panel h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }
}

@media (max-width: 560px) {
  .app-header {
    gap: 0.4rem;
  }

  .brand-lockup img {
    width: 3.1rem;
  }

  .primary-nav {
    max-width: calc(100vw - 7.8rem);
    gap: 0;
  }

  .nav-item {
    padding: 0.48rem 0.58rem;
    font-size: 0.7rem;
  }

  .nav-count {
    display: none;
  }

  .review-heading h1,
  .changes-heading h1,
  .grid-heading h1,
  .analytics-heading h1 {
    font-size: 2.35rem;
  }

  .view-summary {
    font-size: 0.8rem;
  }

  .review-copy-column {
    padding: 1.25rem;
  }

  .review-media-column {
    padding: 0.75rem;
  }

  .media-stage {
    min-height: 21rem;
  }

  .media-viewport {
    min-height: 18rem;
  }

  .review-media-slide {
    min-height: 18rem;
  }

  .decision-actions {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .analytics-metrics,
  .publishing-grid {
    grid-template-columns: 1fr;
  }

  .connected-accounts-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .section-heading > p {
    text-align: left;
  }

  .agency-summary,
  .brand-overview {
    grid-template-columns: 1fr;
  }

  .brand-card {
    grid-template-columns: 1fr;
  }

  .change-card {
    grid-template-columns: 1fr;
  }

  .change-card-media {
    min-height: 15rem;
    max-height: 24rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .change-card-footer > div {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-card-mark {
    min-height: 10rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .grid-tools {
    justify-content: space-between;
  }

  .select-label {
    flex: 1;
  }

  .select-label select {
    width: 100%;
  }

  .sync-notice {
    margin-top: 0;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

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

/* Agency queue scope ---------------------------------------------------- */
.agency-queue-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -.25rem 0 1.25rem;
  padding: .7rem .75rem .7rem 1rem;
  border: 1px solid rgba(22, 29, 42, .08);
  border-radius: .9rem;
  background: linear-gradient(110deg, rgba(239, 249, 255, .82), rgba(255,255,255,.94) 42%, rgba(255,244,249,.7));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 12px 30px rgba(31, 42, 68, .05);
}

.agency-queue-filter[hidden] { display: none !important; }
.agency-queue-scope { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.agency-queue-scope > span { display: inline-flex; align-items: center; gap: .4rem; color: #737b88; font: 500 .56rem/1 "Ops Mono", ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.agency-queue-scope > span i { width: .42rem; height: .42rem; border-radius: 50%; background: #54d1aa; box-shadow: 0 0 0 .24rem rgba(84,209,170,.1), 0 0 14px rgba(84,209,170,.34); }
.agency-queue-scope strong { overflow: hidden; color: #11151b; font-size: .83rem; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.agency-queue-filter label { display: flex; align-items: center; gap: .65rem; }
.agency-queue-filter label > span { color: #7d8490; font-size: .62rem; white-space: nowrap; }
.agency-queue-filter select { min-width: 12.5rem; min-height: 2.45rem; padding: .55rem 2.15rem .55rem .75rem; border: 1px solid rgba(22,29,42,.11); border-radius: .72rem; color: #15191f; background-color: rgba(255,255,255,.9); font-family: inherit; font-size: .72rem; font-weight: 600; line-height: 1.2; box-shadow: 0 4px 14px rgba(31,42,68,.04); }
.agency-queue-filter select:focus-visible { outline: 2px solid rgba(70,116,255,.42); outline-offset: 2px; }

@media (max-width: 720px) {
  .agency-queue-filter { align-items: stretch; flex-direction: column; }
  .agency-queue-filter label { justify-content: space-between; }
  .agency-queue-filter select { min-width: min(14rem, 62vw); }
}

/* Agency product shell -----------------------------------------------------
   Client workspaces keep their own brand treatment. The agency and sign-in
   surfaces use a separate operational identity so no client brand becomes
   the identity of the product itself. */

body[data-role="agency"],
body[data-role="guest"] {
  --soft-veil: #f2f3f4;
  --soft-veil-light: #ffffff;
  --deep-reserve: #17191c;
  --still-stone: #686d73;
  --earthen-muse: #a1a5aa;
  --sage-shift: #555b62;
  --silver-relief: #dfe2e5;
  --golden-ease: #c4c7ca;
  --white: #ffffff;
  --error: #a4473d;
  --line: rgba(23, 25, 28, 0.14);
  --soft-shadow: 0 14px 38px rgba(15, 18, 22, 0.08);
  --focus: 0 0 0 3px rgba(23, 25, 28, 0.18);
  --tenant-accent: #17191c;
  color-scheme: light;
  color: var(--deep-reserve);
  background: var(--soft-veil);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body[data-role="agency"]::before,
body[data-role="guest"]::before {
  content: none;
}

body[data-role="agency"] .ambient-mark,
body[data-role="guest"] .ambient-mark {
  display: none;
}

body[data-role="agency"] h1,
body[data-role="agency"] h2,
body[data-role="guest"] h1,
body[data-role="guest"] h2,
body[data-role="agency"] .agency-summary strong,
body[data-role="agency"] .brand-card-mark span,
body[data-role="guest"] .studio-mark span {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body[data-role="agency"] h1,
body[data-role="guest"] h1 {
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-transform: none;
}

body[data-role="agency"] .eyebrow,
body[data-role="guest"] .eyebrow {
  color: #555b62;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.12em;
}

body[data-role="agency"] .app-header {
  min-height: 4.9rem;
  border: 1px solid rgba(23, 25, 28, 0.12);
  border-top: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 18, 22, 0.06);
  backdrop-filter: blur(18px);
}

body[data-role="agency"] .app-header::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: -1px;
  left: 1.25rem;
  height: 1px;
  background: #17191c;
  opacity: 0.18;
}

body[data-role="agency"] .brand-lockup .brand-text-logo {
  max-width: none;
  color: #17191c;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

body[data-role="agency"] .brand-room-label {
  color: #747980;
}

body[data-role="agency"] .primary-nav {
  border-color: rgba(23, 25, 28, 0.12);
  border-radius: 0.4rem;
  background: #f2f3f4;
}

body[data-role="agency"] .nav-item {
  border-radius: 0.25rem;
  color: #686d73;
}

body[data-role="agency"] .nav-item.is-active {
  color: #ffffff;
  background: #17191c;
  box-shadow: none;
}

body[data-role="agency"] .nav-count {
  color: #17191c;
  background: #ffffff;
}

body[data-role="agency"] .account-trigger:hover,
body[data-role="agency"] .account-menu[open] .account-trigger,
body[data-role="agency"] .primary-nav,
body[data-role="agency"] .brand-switcher,
body[data-role="agency"] .account-popover {
  background-color: rgba(255, 255, 255, 0.96);
}

body[data-role="agency"] main {
  padding-top: clamp(2.2rem, 4vw, 4.5rem);
}

body[data-role="agency"] .view-heading {
  border-bottom-color: rgba(23, 25, 28, 0.14);
}

body[data-role="agency"] .view-heading h1 {
  max-width: 10ch;
  color: #17191c;
  background: none;
}

body[data-role="agency"] :is(
  .agency-summary article,
  .brand-card,
  .review-card,
  .change-card,
  .grid-card,
  .quiet-empty,
  .connected-accounts,
  .metric-card,
  .agency-performance,
  .connection-empty,
  .analytics-table,
  .sync-notice
) {
  border-color: rgba(23, 25, 28, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 18, 22, 0.06);
}

body[data-role="agency"] .agency-summary {
  gap: 0.8rem;
  background: transparent;
}

body[data-role="agency"] .agency-summary article {
  position: relative;
  min-height: 8.3rem;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 28, 0.12);
  border-radius: 0.45rem;
}

body[data-role="agency"] .agency-summary article::after {
  content: "";
  position: absolute;
  width: 5rem;
  height: 1px;
  right: 1.25rem;
  bottom: 1.2rem;
  background: #17191c;
  opacity: 0.16;
}

body[data-role="agency"] .agency-summary strong {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  font-weight: 520;
  line-height: 0.9;
}

body[data-role="agency"] .brand-overview {
  gap: 1rem;
}

body[data-role="agency"] .brand-card {
  overflow: hidden;
  border-radius: 0.5rem;
}

body[data-role="agency"] .brand-card-mark {
  border-right-color: rgba(23, 25, 28, 0.12);
  background: #eceef0;
}

body[data-role="agency"] .brand-card-mark img {
  filter: grayscale(1);
}

body[data-role="agency"] .brand-card-metrics strong,
body[data-role="agency"] .brand-card h2 {
  color: #17191c;
}

body[data-role="agency"] .button-primary {
  color: #ffffff;
  background: #17191c;
}

body[data-role="agency"] .button-secondary {
  color: #30343a;
  border-color: rgba(23, 25, 28, 0.24);
  background: #ffffff;
}

body[data-role="agency"] .button-secondary:hover {
  background: #eceef0;
}

body[data-role="guest"] .login-brand::before {
  inset: 2% 4% 2% -8%;
  border-color: rgba(23, 25, 28, 0.16);
  border-radius: 0;
  box-shadow: none;
}

body[data-role="guest"] .studio-mark span {
  color: #17191c;
  font-size: clamp(4.5rem, 11vw, 9rem);
  font-weight: 570;
  letter-spacing: -0.075em;
}

body[data-role="guest"] .studio-mark small {
  color: #686d73;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

body[data-role="guest"] .login-panel {
  border-color: rgba(23, 25, 28, 0.14);
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 18, 22, 0.1);
}

body[data-role="guest"] .login-form input {
  border-color: rgba(23, 25, 28, 0.2);
  border-radius: 0.35rem;
  color: #17191c;
  background: #ffffff;
}

body[data-role="guest"] .button-primary {
  border-radius: 0.35rem;
  color: #ffffff;
  background: #17191c;
}

/* Messages, requests and idea intake */
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(24rem, 1.2fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: start;
}

.request-composer,
.request-inbox {
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.58);
}

.request-composer {
  position: sticky;
  top: 7rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--soft-shadow);
}

.request-composer-heading,
.request-submit-row,
.request-card-topline,
.request-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.request-composer-heading {
  margin-bottom: 1.5rem;
}

.request-composer-heading h2,
.request-inbox h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.research-boundary {
  flex: 0 0 auto;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(140, 147, 132, 0.38);
  border-radius: 999px;
  color: var(--sage-shift);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-field {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.request-field > span {
  font-size: 0.78rem;
  font-weight: 700;
}

.request-field small {
  color: var(--still-stone);
  font-weight: 450;
}

.request-field :is(input, textarea, select) {
  width: 100%;
  border: 1px solid rgba(62, 56, 53, 0.2);
  border-radius: 0.2rem;
  color: var(--deep-reserve);
  background: rgba(255, 253, 250, 0.74);
}

.request-field :is(input, select) {
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
}

.request-field textarea {
  resize: vertical;
  padding: 0.85rem;
  line-height: 1.5;
}

.request-submit-row {
  align-items: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.request-submit-row p {
  max-width: 31rem;
  margin: 0;
  color: var(--still-stone);
  font-size: 0.72rem;
  line-height: 1.5;
}

.request-submit-row .button {
  flex: 0 0 auto;
}

.request-inbox {
  min-height: 26rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.request-inbox .section-heading {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.request-list {
  display: grid;
  gap: 0.75rem;
}

.request-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.66);
}

.request-type {
  color: var(--still-stone);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.request-card h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.request-card > p {
  margin-bottom: 0.75rem;
  color: var(--still-stone);
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.request-card > a {
  display: inline-flex;
  gap: 0.35rem;
  color: var(--deep-reserve);
  font-size: 0.78rem;
  font-weight: 700;
}

.request-card footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--still-stone);
  font-size: 0.7rem;
}

.request-card footer span + span::before {
  content: "·";
  margin-right: 1rem;
}

body[data-role="agency"] :is(.request-composer, .request-inbox, .request-card) {
  border-color: rgba(23, 25, 28, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 18, 22, 0.06);
}

body[data-role="agency"] .request-card {
  box-shadow: none;
}

body[data-role="agency"] .request-field :is(input, textarea, select) {
  border-color: rgba(23, 25, 28, 0.2);
  border-radius: 0.35rem;
  color: #17191c;
  background: #ffffff;
}

body[data-role="agency"] .request-card h3,
body[data-role="agency"] .request-card > a,
body[data-role="agency"] .request-field > span {
  color: #17191c;
}

body[data-role="agency"] .request-composer,
body[data-role="agency"] .request-inbox,
body[data-role="agency"] .request-card,
body[data-role="agency"] .request-inbox .section-heading,
body[data-role="agency"] .request-submit-row,
body[data-role="agency"] .request-card footer {
  border-color: rgba(23, 25, 28, 0.12);
}

body[data-role="agency"] .research-boundary {
  border-color: rgba(23, 25, 28, 0.24);
  color: #555b62;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

body[data-role="client"] .billing-layout {
  grid-template-columns: 1fr;
}

.billing-upload,
.billing-records {
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.72);
}

.billing-upload {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.billing-upload h2,
.billing-records h2 {
  margin: 0.25rem 0 0;
}

.billing-upload > div:first-child > p:last-child {
  margin: 0.7rem 0 0;
  color: var(--still-stone);
  font-size: 0.8rem;
  line-height: 1.55;
}

.billing-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.billing-records {
  min-height: 24rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.billing-records .section-heading {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.billing-list {
  display: grid;
  gap: 0.75rem;
}

.billing-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.66);
}

.billing-document-icon {
  display: grid;
  width: 2.8rem;
  aspect-ratio: 0.82;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--still-stone);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.billing-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--still-stone);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-status {
  padding: 0.22rem 0.42rem;
  border: 1px solid var(--line);
}

.billing-card h3 {
  margin: 0.45rem 0 0;
  font-size: 1rem;
}

.billing-card p {
  margin: 0.45rem 0 0;
  color: var(--still-stone);
  font-size: 0.78rem;
  line-height: 1.5;
}

.billing-card footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  color: var(--still-stone);
  font-size: 0.7rem;
}

.billing-card footer span + span::before,
.billing-card footer strong::before {
  content: "·";
  margin-right: 0.65rem;
  color: var(--still-stone);
}

body[data-role="agency"] :is(.billing-upload, .billing-records, .billing-card) {
  border-color: rgba(23, 25, 28, 0.12);
  background: #ffffff;
}

body[data-role="agency"] .billing-card {
  background: #f7f8f9;
}

body[data-role="agency"] :is(.billing-upload, .billing-records, .billing-card, .billing-records .section-heading) {
  border-color: rgba(23, 25, 28, 0.12);
}

body[data-role="agency"] .billing-card h3,
body[data-role="agency"] .billing-upload h2,
body[data-role="agency"] .billing-records h2 {
  color: #17191c;
}

.engagement-toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.65);
}

.engagement-toolbar > span {
  margin-left: auto;
  color: var(--still-stone);
  font-size: 0.7rem;
}

.engagement-tab {
  padding: 0.65rem 0.85rem;
  border: 0;
  color: var(--still-stone);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.engagement-tab.is-active {
  color: var(--paper);
  background: var(--deep-reserve);
}

.engagement-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  min-height: 34rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.72);
}

.engagement-list-panel {
  padding: 0.75rem;
  border-right: 1px solid var(--line);
}

.engagement-list {
  display: grid;
  gap: 0.45rem;
}

.engagement-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.engagement-item:hover,
.engagement-item.is-active {
  border-color: var(--line);
  background: rgba(255, 253, 250, 0.9);
}

.engagement-item > img,
.engagement-platform-mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  object-fit: cover;
}

.engagement-platform-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--still-stone);
  font-size: 0.72rem;
  font-weight: 800;
}

.engagement-item-copy {
  display: grid;
  min-width: 0;
}

.engagement-item-copy small {
  color: var(--still-stone);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engagement-item-copy strong,
.engagement-item-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engagement-item-copy strong {
  margin: 0.15rem 0;
  font-size: 0.86rem;
}

.engagement-item-copy > span,
.engagement-item > span:last-child {
  color: var(--still-stone);
  font-size: 0.7rem;
}

.engagement-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.6rem);
}

.engagement-thread-heading {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.engagement-thread-heading h2 {
  max-width: 42rem;
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.engagement-thread-heading > span {
  color: var(--still-stone);
  font-size: 0.7rem;
}

.engagement-messages,
.engagement-comments {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1rem 0;
}

.engagement-message {
  width: min(80%, 34rem);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
}

.engagement-message.is-outgoing {
  justify-self: end;
  background: var(--deep-reserve);
  color: var(--paper);
}

.engagement-message p,
.engagement-comment p {
  margin: 0;
  white-space: pre-wrap;
}

.engagement-message small,
.engagement-comment small {
  display: block;
  margin-top: 0.45rem;
  color: var(--still-stone);
  font-size: 0.62rem;
}

.engagement-comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.engagement-comment > div {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.engagement-comment > div small {
  margin: 0;
}

.engagement-comment .text-button {
  margin-top: 0.65rem;
}

.engagement-reply-bar {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: right;
}
.engagement-item-copy em { color: #7c7168; font-size: .55rem; font-style: normal; font-weight: 750; text-transform: capitalize; }
.engagement-work-controls { display: grid; gap: .7rem; padding: .8rem; border-bottom: 1px solid var(--line, #e3ded7); background: #faf8f4; }
.engagement-work-controls > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.engagement-work-controls > header div { display: grid; gap: .12rem; }
.engagement-work-controls > header span { color: #7b7269; font-size: .56rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.engagement-work-controls > header strong { font-size: .78rem; }
.engagement-work-controls > header button, .engagement-internal-notes > button { border: 0; color: #6654bd; background: transparent; font: inherit; font-size: .64rem; font-weight: 850; cursor: pointer; }
.engagement-work-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .5rem; align-items: end; }
.engagement-work-fields label, .engagement-internal-notes label { display: grid; gap: .3rem; color: #746b62; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.engagement-work-fields :is(select,input), .engagement-internal-notes textarea { width: 100%; min-height: 2.35rem; border: 1px solid #dcd6ce; border-radius: 8px; padding: .48rem .55rem; background: #fff; font: inherit; font-size: .7rem; text-transform: none; }
.engagement-internal-notes { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; }
.engagement-internal-notes ol { grid-column: 1 / -1; display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.engagement-internal-notes li { padding: .55rem; border-left: 2px solid #9588d8; background: #fff; }
.engagement-internal-notes li p { margin: 0 0 .2rem; font-size: .7rem; }
.engagement-internal-notes li small { color: #817970; font-size: .56rem; }
@media (max-width: 900px) { .engagement-work-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .engagement-work-fields { grid-template-columns: 1fr; } }

body[data-role="agency"] :is(.engagement-toolbar, .engagement-layout, .engagement-item:hover, .engagement-item.is-active) {
  border-color: rgba(23, 25, 28, 0.12);
  background: #ffffff;
}

body[data-role="agency"] :is(.engagement-list-panel, .engagement-thread-heading, .engagement-comment, .engagement-reply-bar) {
  border-color: rgba(23, 25, 28, 0.12);
}

body[data-role="agency"] .engagement-message.is-incoming {
  border-color: rgba(23, 25, 28, 0.12);
  background: #f2f3f4;
}

@media (max-width: 920px) {
  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .billing-layout {
    grid-template-columns: 1fr;
  }

  .engagement-layout {
    grid-template-columns: 1fr;
  }

  .engagement-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .request-composer {
    position: static;
  }
}

@media (max-width: 560px) {
  html,
  body,
  .app-shell,
  .app-header,
  main,
  .view-panel,
  .inbox-layout,
  .request-composer,
  .request-inbox,
  .request-field {
    min-width: 0;
    max-width: 100%;
  }

  .app-header,
  body[data-role="agency"] .app-header {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand account"
      "nav nav";
    gap: 0.65rem;
    padding: 0.7rem;
  }

  .brand-lockup {
    grid-area: brand;
  }

  .reviewer-menu {
    grid-area: account;
    min-width: 0;
    justify-self: end;
  }

  .primary-nav,
  body[data-role="agency"] .primary-nav {
    grid-area: nav;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .inbox-heading h1 {
    font-size: 2.35rem;
  }

  .request-field :is(input, textarea, select) {
    min-width: 0;
    max-width: 100%;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .request-composer-heading,
  .request-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .research-boundary {
    align-self: flex-start;
  }

  .request-submit-row .button {
    width: 100%;
  }

  .billing-field-row,
  .billing-card {
    grid-template-columns: 1fr;
  }

  .billing-card .button {
    width: 100%;
  }

  .engagement-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .engagement-toolbar > span {
    width: 100%;
    margin: 0;
  }

  .engagement-message {
    width: 92%;
  }

  .request-card footer {
    display: grid;
    gap: 0.35rem;
  }

  .request-card footer span + span::before {
    content: none;
  }
}

/* Liquid Silver product skin ---------------------------------------------
   The portal shell stays neutral across tenants. Client identity appears as
   workspace context, never as the product's typography or background. */
body[data-role="client"],
body[data-role="agency"],
body[data-role="guest"] {
  --soft-veil: #f1f2f3;
  --soft-veil-light: #ffffff;
  --deep-reserve: #151718;
  --still-stone: #686e72;
  --earthen-muse: #a7adb1;
  --sage-shift: #60676b;
  --silver-relief: #d5d9dc;
  --golden-ease: #b6babd;
  --white: #ffffff;
  --line: rgba(21, 23, 24, 0.13);
  --soft-shadow: 0 18px 48px rgba(34, 39, 42, 0.08);
  --focus: 0 0 0 3px rgba(73, 79, 83, 0.2);
  --tenant-accent: #151718;
  color-scheme: light;
  color: var(--deep-reserve);
  background:
    radial-gradient(circle at 58% -12%, rgba(255, 255, 255, 0.98), transparent 34rem),
    linear-gradient(145deg, #f6f7f7, #e4e7e9);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-role] :is(h1, h2, .studio-mark span, .brand-text-logo, .agency-summary strong) {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body[data-role] h1 {
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: none;
}

body[data-role] h2 {
  font-weight: 400;
  letter-spacing: -0.03em;
}

body[data-role="guest"] .studio-mark span {
  font-weight: 400;
}

body[data-role] .app-header {
  border-color: rgba(21, 23, 24, 0.11);
  border-radius: 0 0 0.65rem 0.65rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 9px 26px rgba(34, 39, 42, 0.055);
  backdrop-filter: blur(22px);
}

body[data-role] .primary-nav {
  border-color: rgba(21, 23, 24, 0.1);
  border-radius: 0.55rem;
  background: rgba(235, 238, 239, 0.82);
}

body[data-role] .nav-item {
  border-radius: 0.38rem;
  color: #646b6f;
}

body[data-role] .nav-item.is-active {
  color: #ffffff;
  background: #17191a;
  box-shadow: 0 7px 16px rgba(25, 29, 31, 0.13);
}

body[data-role] .nav-count {
  color: #17191a;
  background: #ffffff;
}

body[data-role] :is(
  .login-panel,
  .agency-summary article,
  .brand-card,
  .review-card,
  .change-card,
  .grid-card,
  .quiet-empty,
  .connected-accounts,
  .metric-card,
  .agency-performance,
  .connection-empty,
  .analytics-table,
  .sync-notice,
  .request-composer,
  .request-inbox,
  .request-card,
  .billing-upload,
  .billing-records,
  .billing-card,
  .engagement-toolbar,
  .engagement-layout
) {
  border-color: rgba(21, 23, 24, 0.11);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(34, 39, 42, 0.065);
  backdrop-filter: blur(18px);
}

body[data-role] :is(
  .review-card,
  .change-card,
  .grid-card,
  .brand-card,
  .metric-card,
  .request-card,
  .billing-card
) {
  border-radius: 0.75rem;
}

body[data-role] .brand-card-mark {
  border-color: rgba(21, 23, 24, 0.11);
  background: linear-gradient(145deg, #dfe2e4, #a4aaae);
}

body[data-role] .button-primary {
  color: #ffffff;
  background: #17191a;
}

body[data-role] .button-primary:hover {
  background: #303437;
}

body[data-role] .button-secondary {
  color: #303437;
  border-color: rgba(21, 23, 24, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

body[data-role] .button-secondary:hover {
  background: #e7e9ea;
}

body[data-role] :is(.login-form input, .feedback-field textarea, .request-field input, .request-field textarea, .request-field select) {
  color: #17191a;
  border-color: rgba(21, 23, 24, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

/* Precision White ---------------------------------------------------------
   Product UI, not a client moodboard: optical white, graphite, cool chrome,
   and restrained signal blue. Depth comes from spacing and light, not tint. */
body[data-role="client"],
body[data-role="agency"],
body[data-role="guest"] {
  --soft-veil: #f6f7f9;
  --soft-veil-light: #ffffff;
  --deep-reserve: #0b0d10;
  --still-stone: #69707b;
  --earthen-muse: #aab0b9;
  --sage-shift: #2563eb;
  --silver-relief: #e4e7ec;
  --golden-ease: #e9edf2;
  --white: #ffffff;
  --error: #c2414a;
  --line: rgba(15, 18, 24, 0.105);
  --line-strong: rgba(15, 18, 24, 0.19);
  --soft-shadow: 0 1px 2px rgba(10, 12, 16, 0.03), 0 18px 50px rgba(10, 12, 16, 0.065);
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.2);
  --tenant-accent: #2563eb;
  color: var(--deep-reserve);
  background: #f6f7f9;
  font-family: "Ops Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-variation-settings: "wght" 450;
}

body[data-role]::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #f6f7f9;
  pointer-events: none;
}

body[data-role] .ambient-mark {
  display: none;
}

body[data-role] :is(h1, h2, .studio-mark span, .brand-text-logo, .agency-summary strong) {
  font-family: "Ops Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-role] h1 {
  color: #080a0d;
  font-weight: 575;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

body[data-role] h2 {
  color: #0b0d10;
  font-weight: 560;
  letter-spacing: -0.035em;
}

body[data-role] .eyebrow,
body[data-role] :is(.queue-position, .request-type, .billing-meta) {
  color: #737b87;
  font-family: "Ops Mono", ui-monospace, monospace;
  font-weight: 590;
  letter-spacing: 0.105em;
}

body[data-role] .app-shell {
  width: min(1560px, calc(100% - 2rem));
}

body[data-role] .app-header {
  top: 0.75rem;
  min-height: 4.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(15, 18, 24, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(10, 12, 16, 0.04), 0 12px 34px rgba(10, 12, 16, 0.07);
  backdrop-filter: blur(24px) saturate(140%);
}

body[data-role="agency"] .app-header::after {
  content: none;
}

body[data-role] .brand-lockup .brand-text-logo {
  color: #0b0d10;
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.075em;
}

body[data-role] .brand-room-label {
  color: #878e98;
  font-size: 0.68rem;
  letter-spacing: 0.015em;
  text-transform: none;
}

body[data-role] .primary-nav {
  gap: 0.15rem;
  padding: 0.24rem;
  border: 1px solid rgba(15, 18, 24, 0.07);
  border-radius: 0.8rem;
  background: #f2f4f7;
}

body[data-role] .nav-item {
  min-height: 2.35rem;
  padding: 0.58rem 0.9rem;
  border-radius: 0.6rem;
  color: #666e79;
  font-size: 0.73rem;
  font-weight: 580;
}

body[data-role] .nav-item:hover:not(.is-active) {
  color: #111318;
  background: rgba(255, 255, 255, 0.88);
}

body[data-role] .nav-item.is-active {
  color: #ffffff;
  background: #0b0d10;
  box-shadow: 0 4px 12px rgba(10, 12, 16, 0.17);
}

body[data-role] .nav-count {
  color: #0b0d10;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 18, 24, 0.06);
}

body[data-role] .account-trigger {
  border-radius: 0.72rem;
}

body[data-role] .account-trigger:hover,
body[data-role] .account-menu[open] .account-trigger {
  border-color: rgba(15, 18, 24, 0.1);
  background: #f5f6f8;
}

body[data-role] .reviewer-initial {
  border-radius: 0.58rem;
  color: #ffffff;
  background: #0b0d10;
}

body[data-role] .account-popover {
  width: 20rem;
  padding: 0.7rem;
  border-color: rgba(15, 18, 24, 0.11);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(10, 12, 16, 0.16);
}

body[data-role] .brand-switcher {
  border-color: rgba(15, 18, 24, 0.12);
  border-radius: 0.65rem;
  background: #f6f7f9;
}

body[data-role] .account-actions button {
  border-radius: 0.65rem;
}

body[data-role] .account-actions button:hover,
body[data-role] .account-actions button:focus-visible {
  background: #f4f6f8;
}

body[data-role] :is(.agency-preview-bar, .agency-scope-bar) {
  width: min(72rem, calc(100% - 1rem));
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem auto -1.4rem;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border: 1px solid rgba(15, 18, 24, 0.09);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 34px rgba(10, 12, 16, 0.06);
  backdrop-filter: blur(22px) saturate(135%);
}

body[data-role] .agency-preview-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #747b85;
}

body[data-role] .agency-preview-context strong {
  color: #101318;
  font-size: 0.76rem;
  font-weight: 630;
  white-space: nowrap;
}

body[data-role] .agency-preview-context small {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-role] .agency-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #3a4658;
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-role] .agency-preview-status i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #83a9ff;
  box-shadow: 0 0 0 0.23rem rgba(131, 169, 255, 0.14);
}

body[data-role] .agency-preview-divider {
  width: 1px;
  height: 1.1rem;
  background: rgba(15, 18, 24, 0.1);
}

body[data-role] :is(.agency-preview-bar, .agency-scope-bar) button {
  min-height: 2.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(15, 18, 24, 0.1);
  border-radius: 0.58rem;
  color: #ffffff;
  background: #0b0d10;
  font-size: 0.69rem;
  font-weight: 620;
}

body[data-role] :is(.agency-preview-bar, .agency-scope-bar) button:hover {
  background: #252a32;
}

body[data-role] :is(.agency-preview-bar, .agency-scope-bar) button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(131, 169, 255, 0.28);
}

body[data-role] :is(.agency-preview-bar, .agency-scope-bar) button svg {
  width: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body:not([data-auth-role="agency"]) .agency-preview-bar,
body:not([data-auth-role="agency"]) .agency-scope-bar,
.agency-preview-bar[hidden],
.agency-scope-bar[hidden] {
  display: none !important;
}

body[data-role] .agency-scope-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
}

body[data-role] .agency-scope-bar button.is-quiet {
  color: #3a4658;
  background: #f4f6f8;
}

body[data-role] .agency-scope-bar button.is-quiet:hover {
  background: #e9edf2;
}

body:not([data-auth-role="agency"]) .workspace-switcher,
body:not([data-auth-role="agency"]) #returnToStudioMenuButton,
#returnToStudioMenuButton[hidden] {
  display: none !important;
}

body[data-role] .account-actions .return-to-studio-menu {
  margin-bottom: .36rem;
  border: 1px solid rgba(31, 92, 255, .18);
  background: #f4f7ff;
  color: #111318;
}

body[data-role] .account-actions .return-to-studio-menu:hover,
body[data-role] .account-actions .return-to-studio-menu:focus-visible {
  border-color: rgba(31, 92, 255, .34);
  background: #eaf0ff;
}

body[data-role] main {
  padding-top: clamp(3.6rem, 6vw, 6.2rem);
}

body[data-role] .view-heading {
  margin-bottom: clamp(2rem, 4vw, 3.8rem);
  padding: 0 0.2rem clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(15, 18, 24, 0.09);
}

body[data-role] .view-heading h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
}

body[data-role] .view-summary {
  color: #69707b;
  font-size: 0.83rem;
}

body[data-role] :is(
  .login-panel,
  .agency-summary article,
  .brand-card,
  .review-card,
  .change-card,
  .grid-card,
  .quiet-empty,
  .connected-accounts,
  .metric-card,
  .agency-performance,
  .connection-empty,
  .analytics-table,
  .sync-notice,
  .request-composer,
  .request-inbox,
  .request-card,
  .billing-upload,
  .billing-records,
  .billing-card,
  .engagement-toolbar,
  .engagement-layout
) {
  border-color: rgba(15, 18, 24, 0.095);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  backdrop-filter: none;
}

body[data-role] :is(
  .review-card,
  .change-card,
  .grid-card,
  .brand-card,
  .metric-card,
  .request-card,
  .billing-card,
  .connected-accounts,
  .agency-performance,
  .analytics-table,
  .quiet-empty
) {
  border-radius: 1rem;
  overflow: hidden;
}

body[data-role] :is(.review-card, .change-card, .grid-card, .brand-card, .metric-card) {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body[data-role] :is(.grid-card, .brand-card, .metric-card):hover {
  transform: translateY(-2px);
  border-color: rgba(15, 18, 24, 0.16);
  box-shadow: 0 1px 2px rgba(10, 12, 16, 0.03), 0 24px 58px rgba(10, 12, 16, 0.095);
}

body[data-role] .review-media-column {
  border-color: rgba(15, 18, 24, 0.09);
  background: #f0f2f5;
}

body[data-role] :is(.change-card-media, .brand-card-mark, .grid-card-media) {
  border-color: rgba(15, 18, 24, 0.09);
  background: #f0f2f5;
}

body[data-role] .brand-card-mark {
  background: #eef1f5;
}

body[data-role] .brand-card-mark img {
  filter: none;
}

body[data-role] .button {
  border-radius: 0.68rem;
  font-size: 0.78rem;
  font-weight: 620;
}

body[data-role] .button-primary {
  color: #ffffff;
  background: #0b0d10;
  box-shadow: 0 6px 18px rgba(10, 12, 16, 0.16);
}

body[data-role] .button-primary:hover {
  background: #24272d;
}

body[data-role] .button-secondary {
  color: #181b20;
  border-color: rgba(15, 18, 24, 0.14);
  background: #ffffff;
}

body[data-role] .button-secondary:hover {
  border-color: rgba(15, 18, 24, 0.24);
  background: #f4f6f8;
}

body[data-role] :is(
  .login-form input,
  .feedback-field textarea,
  .request-field input,
  .request-field textarea,
  .request-field select,
  .select-label select
) {
  color: #111318;
  border-color: rgba(15, 18, 24, 0.13);
  border-radius: 0.68rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(10, 12, 16, 0.03);
}

body[data-role] :is(.readiness-note, .change-feedback) {
  border-color: #2563eb;
  background: #f3f7ff;
}

body[data-role] :is(.rework-stage-label.status-in_progress, .rework-stage-label.status-ready),
body[data-role] :is(.rework-step.is-complete, .rework-step.is-active) {
  color: #2563eb;
}

body[data-role] :is(.rework-step.is-complete, .rework-step.is-active) {
  border-color: #2563eb;
}

body[data-role] :is(.rework-step.is-complete, .rework-step.is-active) i,
body[data-role] .readiness-note::before {
  border-color: #2563eb;
  background: #2563eb;
}

body[data-role] .status-pill.status-review {
  color: #1d4ed8;
  background: #eaf1ff;
}

body[data-role] .status-pill.status-upcoming {
  color: #4338ca;
  background: #eeedff;
}

body[data-role] .status-pill.status-published,
body[data-role] .platform-result.is-live {
  color: #ffffff;
  background: #0b0d10;
}

body[data-role] .status-pill.status-attention {
  color: #a1490b;
  background: #fff1df;
}

body[data-role] .analytics-metrics,
body[data-role] .agency-summary {
  gap: 0.85rem;
  background: transparent;
}

body[data-role] :is(.metric-card, .agency-summary article) {
  position: relative;
  border: 1px solid rgba(15, 18, 24, 0.095);
}

body[data-role] :is(.metric-card, .agency-summary article)::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: #2563eb;
}

body[data-role] :is(.metric-card, .agency-summary article):nth-child(2)::before {
  background: #06a6c9;
}

body[data-role] :is(.metric-card, .agency-summary article):nth-child(3)::before {
  background: #7c5ce7;
}

body[data-role] :is(.metric-card, .agency-summary article):nth-child(4)::before {
  background: #e35d6a;
}

body[data-role] .publishing-grid {
  gap: 0.6rem;
  padding: 0.6rem;
  border: 1px solid rgba(15, 18, 24, 0.095);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

body[data-role] .publishing-grid-tile {
  border-radius: 0.65rem;
  background: #eef1f5;
}

body[data-role] .sync-notice {
  box-shadow: none;
  background: transparent;
}

body[data-role="guest"] .login-panel {
  border-radius: 1.2rem;
  box-shadow: 0 30px 90px rgba(10, 12, 16, 0.12);
}

body[data-role="guest"] .login-brand::before {
  inset: 7% 2% 7% -5%;
  border: 1px solid rgba(15, 18, 24, 0.08);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(127, 232, 255, 0.9), transparent 34%),
    radial-gradient(circle at 76% 24%, rgba(255, 120, 157, 0.72), transparent 38%),
    radial-gradient(circle at 62% 82%, rgba(255, 182, 92, 0.78), transparent 38%),
    #eef2f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 28px 80px rgba(10, 12, 16, 0.08);
  transform: none;
}

body[data-role="guest"] .studio-mark {
  padding: clamp(2rem, 5vw, 4rem);
}

body[data-role="guest"] .studio-mark span {
  font-family: "Ops Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 590;
  letter-spacing: -0.075em;
}

@media (max-width: 920px) {
  body[data-role] .app-header {
    top: 0.5rem;
  }

  body[data-role] .app-shell {
    width: min(100% - 1rem, 1560px);
  }
}

@media (max-width: 560px) {
  body[data-role] .app-header,
  body[data-role="agency"] .app-header {
    padding: 0.65rem;
    border-radius: 0.9rem;
  }

  body[data-role] .account-popover {
    width: min(20rem, calc(100vw - 1.5rem));
  }

  body[data-role] .view-heading h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  body[data-role] :is(.agency-preview-bar, .agency-scope-bar) {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 1rem;
    padding: 0.7rem;
  }

  body[data-role] .agency-scope-actions {
    width: 100%;
  }

  body[data-role] .agency-scope-actions button {
    flex: 1 1 0;
    justify-content: center;
  }

  body[data-role] .agency-preview-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.22rem;
  }

  body[data-role] .agency-preview-context small,
  body[data-role] .agency-preview-divider {
    display: none;
  }
}

/* Chromatic glass moments inspired by the supplied product references. */
body[data-role] .nav-count {
  background: #dfff00;
  box-shadow: none;
}

body[data-role] :is(.metric-card, .agency-summary article) {
  min-height: 10.5rem;
  isolation: isolate;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 1.25rem;
}

body[data-role] :is(.metric-card, .agency-summary article)::before {
  content: none;
}

body[data-role] .metric-card::after,
body[data-role] .agency-summary article::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 13rem;
  height: 9rem;
  right: -3.5rem;
  bottom: -4rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.72;
  pointer-events: none;
}

body[data-role] .metric-card.tone-jade::after,
body[data-role] .agency-summary article:nth-child(1)::after {
  background: #7fe8ff;
}

body[data-role] .metric-card.tone-amber::after,
body[data-role] .agency-summary article:nth-child(2)::after {
  background: #ffb65c;
}

body[data-role] .metric-card.tone-coral::after,
body[data-role] .agency-summary article:nth-child(3)::after {
  background: #ff789d;
}

body[data-role] .metric-card.tone-plum::after,
body[data-role] .agency-summary article:nth-child(4)::after {
  background: #a996ff;
}

body[data-role] .metric-card.tone-jade {
  background: linear-gradient(145deg, #ffffff 48%, #ecfbff 76%, #d9f7ff 100%);
}

body[data-role] .metric-card.tone-amber {
  background: linear-gradient(145deg, #ffffff 48%, #fff7e9 76%, #ffe7c2 100%);
}

body[data-role] .metric-card.tone-coral {
  background: linear-gradient(145deg, #ffffff 48%, #fff0f4 76%, #ffd6e0 100%);
}

body[data-role] .metric-card.tone-plum {
  background: linear-gradient(145deg, #ffffff 48%, #f5f1ff 76%, #e8ddff 100%);
}

body[data-role] .metric-value,
body[data-role] .agency-summary strong {
  position: relative;
  z-index: 1;
  color: #0b0d10;
  font-size: clamp(2.7rem, 4vw, 4.2rem);
  font-weight: 510;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

body[data-role] :is(.metric-label, .metric-context, .agency-summary span) {
  position: relative;
  z-index: 1;
}

body[data-role] .metric-label {
  color: #262a31;
  font-weight: 620;
}

body[data-role] .metric-context {
  color: #737b87;
}

body[data-role] .brand-overview .brand-card:nth-child(4n + 1) .brand-card-mark {
  background: linear-gradient(145deg, #f7fbff 15%, #d9edff 60%, #b8d7ff 100%);
}

body[data-role] .brand-overview .brand-card:nth-child(4n + 2) .brand-card-mark {
  background: linear-gradient(145deg, #fff8f3 15%, #ffd9c1 62%, #ffae8e 100%);
}

body[data-role] .brand-overview .brand-card:nth-child(4n + 3) .brand-card-mark {
  background: linear-gradient(145deg, #fff7fb 15%, #ffd4e9 62%, #ff9fc8 100%);
}

body[data-role] .brand-overview .brand-card:nth-child(4n + 4) .brand-card-mark {
  background: linear-gradient(145deg, #f7f5ff 15%, #ddd4ff 62%, #bcaaff 100%);
}

body[data-role] .research-boundary,
body[data-role] .billing-status,
body[data-role] .platform-result {
  border-radius: 999px;
}

body[data-role] .research-boundary {
  border-color: transparent;
  color: #202408;
  background: #dfff00;
}

body[data-role] .engagement-tab.is-active {
  border-radius: 0.6rem;
  color: #ffffff;
  background: #0b0d10;
}

body[data-role] .engagement-message {
  border-radius: 1rem 1rem 1rem 0.28rem;
}

body[data-role] .engagement-message.is-outgoing {
  border-radius: 1rem 1rem 0.28rem 1rem;
}

@media (max-width: 760px) {
  body[data-role] :is(.metric-card, .agency-summary article) {
    min-height: 8.75rem;
  }
}

/* Luminous Rail -----------------------------------------------------------
   A product-scale shell: quiet white canvas, icon-led navigation, compact
   hierarchy and selective chromatic light. */
body[data-role="client"],
body[data-role="agency"],
body[data-role="guest"] {
  --soft-veil: #fbfbfa;
  --soft-veil-light: #ffffff;
  --line: rgba(13, 15, 18, 0.075);
  --soft-shadow: 0 1px 2px rgba(13, 15, 18, 0.025), 0 12px 36px rgba(13, 15, 18, 0.045);
  background: #fbfbfa;
}

body[data-role]::before {
  background: #fbfbfa;
}

.nav-icon,
.account-action-icon,
.account-chevron {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.nav-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.52rem;
}

.nav-icon svg,
.account-action-icon svg,
.account-chevron svg {
  width: 1rem;
  height: 1rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-action-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.48rem;
  color: #5f6670;
  background: #f5f5f3;
}

.account-action-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.account-chevron svg {
  width: 0.85rem;
  height: 0.85rem;
}

body[data-role] .nav-item.is-active .nav-icon {
  color: #0b0d10;
  background: #dfff00;
}

body[data-role] .view-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 2rem;
  padding: 0 0 1.5rem;
}

body[data-role] .view-heading > * {
  min-width: 0;
}

body[data-role] .view-heading h1 {
  max-width: 17ch;
  font-size: clamp(2.2rem, 3.5vw, 3.45rem);
  font-weight: 590;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

body[data-role] .view-summary {
  max-width: 28rem;
  font-size: 0.8rem;
  line-height: 1.55;
}

body[data-role] .analytics-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

body[data-role] #downloadAnalytics {
  width: auto;
  min-height: 2.65rem;
  padding: 0.66rem 1rem;
  border: 1px solid rgba(13, 15, 18, 0.1);
  border-radius: 999px;
  color: #0b0d10;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(13, 15, 18, 0.03);
  white-space: nowrap;
}

body[data-role] #downloadAnalytics:hover {
  background: #f7f7f5;
}

body[data-role] :is(
  .agency-summary article,
  .brand-card,
  .review-card,
  .change-card,
  .grid-card,
  .quiet-empty,
  .connected-accounts,
  .metric-card,
  .agency-performance,
  .connection-empty,
  .analytics-table,
  .request-composer,
  .request-inbox,
  .request-card,
  .billing-upload,
  .billing-records,
  .billing-card,
  .engagement-toolbar,
  .engagement-layout
) {
  border-color: rgba(13, 15, 18, 0.07);
  box-shadow: var(--soft-shadow);
}

body[data-role] :is(.review-media-column, .change-card-media, .grid-card-media) {
  background: #fafafa;
}

body[data-role] .connected-account,
body[data-role] .analytics-table,
body[data-role] .billing-card,
body[data-role] .request-card {
  border-color: rgba(13, 15, 18, 0.07);
}

body[data-role] .metric-card,
body[data-role] .agency-summary article {
  border: 0;
}

body[data-role] .button {
  min-height: 2.65rem;
  padding: 0.68rem 1rem;
  border-radius: 999px;
}

body[data-role] .button-primary {
  box-shadow: none;
}

@media (min-width: 1100px) {
  body[data-role] .app-shell {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body[data-role] .app-header {
    position: fixed;
    z-index: 30;
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: 13.75rem;
    height: calc(100vh - 2rem);
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0;
    padding: 1rem;
    border: 1px solid rgba(13, 15, 18, 0.075);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 2px rgba(13, 15, 18, 0.025), 0 20px 60px rgba(13, 15, 18, 0.055);
    backdrop-filter: blur(24px) saturate(130%);
  }

  body[data-role] .brand-lockup {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.22rem 0.65rem;
    align-items: center;
    padding: 0.3rem 0.35rem 1.2rem;
  }

  body[data-role] .brand-lockup img {
    grid-row: 1 / 3;
    width: 2.1rem;
    height: 2.1rem;
  }

  body[data-role] .brand-lockup .brand-text-logo {
    max-width: 100%;
    align-self: end;
    font-size: 0.68rem;
  }

  body[data-role] .brand-room-label {
    align-self: start;
    padding: 0;
    border: 0;
    font-size: 0.61rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-role] .primary-nav {
    width: 100%;
    max-width: none;
    display: grid;
    align-content: start;
    gap: 0.22rem;
    padding: 1rem 0;
    border: 0;
    border-top: 1px solid rgba(13, 15, 18, 0.07);
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  body[data-role] .nav-item {
    width: 100%;
    min-height: 2.85rem;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.75rem;
    color: #626872;
    font-size: 0.76rem;
  }

  body[data-role] .nav-item:hover:not(.is-active) {
    color: #0b0d10;
    background: #f7f7f5;
  }

  body[data-role] .nav-item.is-active {
    color: #0b0d10;
    background: #f1f2ef;
    box-shadow: none;
  }

  body[data-role] .nav-count {
    min-width: 1.3rem;
    margin-left: auto;
  }

  body[data-role] .reviewer-menu {
    width: 100%;
    min-width: 0;
    align-self: end;
    justify-self: stretch;
  }

  body[data-role] .account-menu,
  body[data-role] .account-trigger {
    width: 100%;
  }

  body[data-role] .account-trigger {
    min-height: 3rem;
    gap: 0.55rem;
    padding: 0.35rem;
    border-color: transparent;
    border-radius: 0.8rem;
  }

  body[data-role] .account-trigger-copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
    text-align: left;
  }

  body[data-role] .account-trigger-copy :is(strong, small) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-role] .account-chevron {
    margin-left: auto;
  }

  body[data-role] .account-popover {
    top: auto;
    right: auto;
    bottom: 0;
    left: calc(100% + 0.75rem);
  }

  body[data-role] main {
    width: min(1240px, calc(100vw - 17rem));
    margin: 0 auto 0 15.6rem;
    padding: 2.5rem 1.5rem 5rem;
  }

  body[data-role] .review-card {
    scroll-margin-top: 2rem;
  }
}

@media (max-width: 1099px) {
  body[data-role] .app-shell {
    width: min(100% - 1rem, 1560px);
    margin: 0 auto;
  }

  body[data-role] .app-header,
  body[data-role="agency"] .app-header {
    position: sticky;
    top: 0.5rem;
    width: 100%;
    height: auto;
    min-height: 4.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand account"
      "nav nav";
    gap: 0.55rem;
    padding: 0.65rem;
    border-radius: 1rem;
  }

  body[data-role] .brand-lockup {
    grid-area: brand;
  }

  body[data-role] .reviewer-menu {
    grid-area: account;
  }

  body[data-role] .primary-nav {
    grid-area: nav;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    overflow-x: auto;
  }

  body[data-role] .nav-item {
    flex: 0 0 auto;
    gap: 0.42rem;
    padding: 0.42rem 0.62rem;
  }

  body[data-role] .nav-icon {
    width: 1.65rem;
    height: 1.65rem;
  }

  body[data-role] main {
    width: 100%;
    margin: 0;
    padding: 2.5rem 0 5rem;
  }
}

/* DreamClient.ai identity -------------------------------------------------
   Product identity stays consistent while each client brand remains the
   workspace context. The signal blue marks decisions and active routes. */
body[data-role="client"],
body[data-role="agency"],
body[data-role="guest"] {
  --dreamclient-ink: #0c1018;
  --dreamclient-blue: #355cff;
  --dreamclient-sky: #7eb5ff;
  --dreamclient-violet: #7667f5;
  --dreamclient-mist: #edf3ff;
}

body[data-role="guest"] {
  background:
    radial-gradient(circle at 18% 16%, rgba(126, 181, 255, 0.12), transparent 27rem),
    radial-gradient(circle at 78% 86%, rgba(118, 103, 245, 0.08), transparent 24rem),
    #f4f7fb;
}

body[data-role="guest"] .login-brand {
  isolation: isolate;
}

body[data-role="guest"] .login-brand::before {
  inset: 5% 1% 5% -6%;
  border-color: rgba(30, 44, 78, 0.09);
  background:
    radial-gradient(circle at 17% 20%, rgba(126, 181, 255, 0.92), transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(151, 130, 255, 0.62), transparent 34%),
    radial-gradient(circle at 65% 84%, rgba(255, 181, 129, 0.5), transparent 34%),
    linear-gradient(145deg, #edf5ff 0%, #f4f1ff 48%, #fff7ef 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 32px 90px rgba(24, 40, 78, 0.1);
}

body[data-role="guest"] .login-brand::after {
  content: "REQUEST  →  REVIEW  →  PUBLISH";
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 10%;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(12, 16, 24, 0.12);
  border-radius: 999px;
  color: rgba(12, 16, 24, 0.62);
  background: rgba(255, 255, 255, 0.62);
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  backdrop-filter: blur(14px);
}

body[data-role="guest"] .studio-mark {
  z-index: 1;
  max-width: min(100%, 45rem);
}

body[data-role="guest"] .studio-mark .dreamclient-wordmark {
  display: block;
  color: var(--dreamclient-ink);
  font-family: "Ops Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3.1rem, 6.5vw, 6.6rem);
  font-weight: 625;
  letter-spacing: -0.083em;
  line-height: 0.86;
  white-space: nowrap;
}

body[data-role="guest"] .studio-mark .dreamclient-wordmark b {
  color: var(--dreamclient-blue);
  font-weight: inherit;
}

body[data-role="guest"] .studio-mark small {
  margin-top: 1.15rem;
  color: rgba(12, 16, 24, 0.68);
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: 650;
  letter-spacing: 0.17em;
}

body[data-role="guest"] .login-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(30, 44, 78, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 90px rgba(25, 40, 72, 0.12);
}

body[data-role="guest"] .login-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dreamclient-blue), var(--dreamclient-sky) 48%, var(--dreamclient-violet));
}

body[data-role="guest"] .login-panel .eyebrow {
  color: #55627a;
}

body[data-role="guest"] .button-primary {
  background: var(--dreamclient-ink);
}

body[data-role="guest"] .button-primary:hover {
  background: #18233a;
}

body[data-role] .brand-lockup .brand-text-logo {
  color: var(--dreamclient-ink);
  font-family: "Ops Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: -0.035em;
  text-transform: none;
}

body[data-role] .brand-lockup .brand-text-logo b {
  color: var(--dreamclient-blue);
  font-weight: inherit;
}

body[data-role] .nav-item.is-active::before,
body[data-role="agency"] .nav-item.is-active::before {
  background: var(--dreamclient-blue);
}

body[data-role="agency"] .brand-room-label {
  color: #65708a;
}

/* Exclusive cloud portal -------------------------------------------------
   The public entrance is a single invitation-only portal floating above an
   atmospheric cloud field. The signed-in product remains a quiet control room. */
body[data-role="guest"] {
  min-height: 100vh;
  color: #f8faff;
  background:
    radial-gradient(circle at 50% -16%, rgba(116, 145, 255, 0.3), transparent 36rem),
    linear-gradient(180deg, #070a13 0%, #11172a 42%, #303954 72%, #7f88a6 100%);
}

body[data-role="guest"] .login-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  margin: 0;
  padding: clamp(8rem, 16vh, 11rem) 1.25rem 4rem;
  overflow: hidden;
}

body[data-role="guest"] .login-shell::before,
body[data-role="guest"] .login-shell::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

body[data-role="guest"] .login-shell::before {
  width: 140%;
  height: 48%;
  right: -20%;
  bottom: -13%;
  background:
    radial-gradient(circle at 4% 61%, rgba(179, 192, 222, 0.92) 0 11%, transparent 11.7%),
    radial-gradient(circle at 14% 43%, rgba(204, 214, 237, 0.94) 0 14%, transparent 14.7%),
    radial-gradient(circle at 27% 65%, rgba(158, 174, 209, 0.9) 0 15%, transparent 15.7%),
    radial-gradient(circle at 42% 45%, rgba(213, 220, 240, 0.96) 0 16%, transparent 16.7%),
    radial-gradient(circle at 58% 66%, rgba(164, 180, 215, 0.92) 0 15%, transparent 15.7%),
    radial-gradient(circle at 73% 42%, rgba(211, 219, 239, 0.96) 0 16%, transparent 16.7%),
    radial-gradient(circle at 88% 61%, rgba(169, 184, 217, 0.92) 0 14%, transparent 14.7%),
    radial-gradient(circle at 99% 43%, rgba(216, 223, 241, 0.95) 0 15%, transparent 15.7%),
    linear-gradient(to top, rgba(193, 204, 229, 0.98) 0 28%, transparent 29%);
  filter: blur(11px);
  opacity: 0.88;
  transform: translate3d(0, 0, 0);
  animation: dreamclient-cloud-drift 18s ease-in-out infinite alternate;
}

body[data-role="guest"] .login-shell::after {
  width: 150%;
  height: 82%;
  top: -34%;
  left: -25%;
  background: repeating-conic-gradient(
    from 158deg at 50% 0%,
    rgba(163, 188, 255, 0.13) 0deg 5deg,
    transparent 5deg 14deg
  );
  filter: blur(10px);
  opacity: 0.58;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.82) 52%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.82) 52%, transparent 100%);
  animation: dreamclient-haze-drift 26s ease-in-out infinite alternate;
}

@keyframes dreamclient-cloud-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -2%, 0) scale(1.035); }
}

@keyframes dreamclient-haze-drift {
  from { transform: translate3d(-3%, 0, 0) scale(1.02); }
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

body[data-role="guest"] .login-brand {
  position: absolute;
  z-index: 2;
  inset: 0;
  min-height: 0;
  display: block;
  pointer-events: none;
}

body[data-role="guest"] .login-brand::before {
  content: none;
}

body[data-role="guest"] .login-brand::after {
  content: none;
}

body[data-role="guest"] .studio-mark {
  position: absolute;
  width: min(100% - 2rem, 42rem);
  max-width: none;
  top: clamp(2.2rem, 6vh, 4.5rem);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 0;
  text-align: center;
  transform: translateX(-50%);
}

body[data-role="guest"] .studio-mark .dreamclient-wordmark {
  color: #f8faff;
  font-size: clamp(2.05rem, 4.4vw, 3.7rem);
  font-weight: 610;
  letter-spacing: -0.075em;
  line-height: 1;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

body[data-role="guest"] .studio-mark .dreamclient-wordmark b {
  color: transparent;
  background: linear-gradient(120deg, #a8cbff 10%, #789fff 48%, #a98cff 92%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-role="guest"] .studio-mark small {
  margin: 0;
  color: rgba(226, 233, 250, 0.7);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
}

body[data-role="guest"] .login-panel {
  position: relative;
  z-index: 3;
  width: min(100%, 30rem);
  max-width: 30rem;
  margin: 0 auto;
  padding: clamp(1.55rem, 4vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgba(220, 228, 255, 0.2);
  border-radius: 1.5rem;
  color: #f8faff;
  background: linear-gradient(145deg, rgba(15, 21, 38, 0.86), rgba(8, 12, 24, 0.72));
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(32px) saturate(135%);
  text-align: center;
}

body[data-role="guest"] .login-panel::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 181, 255, 0.95) 35%, rgba(146, 119, 255, 0.9) 65%, transparent);
}

body[data-role="guest"] .login-panel h1 {
  max-width: 12ch;
  margin-inline: auto;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 540;
  letter-spacing: -0.062em;
  line-height: 0.96;
}

body[data-role="guest"] .login-panel .eyebrow {
  color: #9eb8ef;
}

body[data-role="guest"] .login-intro {
  margin-inline: auto;
  margin-block: 0.9rem 1.2rem;
  color: rgba(224, 230, 244, 0.7);
}

body[data-role="guest"] .auth-mode-switcher {
  margin: 0 0 0.85rem;
}

body[data-role="guest"] .button-google {
  margin-top: 0;
}

body[data-role="guest"] .auth-help {
  margin-top: 0.55rem;
}

body[data-role="guest"] .auth-divider {
  margin-top: 0.8rem;
}

body[data-role="guest"] .access-code-entry {
  margin-top: 0.75rem;
}

body[data-role="guest"] .access-code-entry > summary {
  width: fit-content;
  margin: 0 auto;
  color: rgba(226, 232, 245, 0.76);
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: rgba(174, 195, 244, 0.42);
  text-underline-offset: 0.22rem;
}

body[data-role="guest"] .access-code-entry > summary::-webkit-details-marker {
  display: none;
}

body[data-role="guest"] .access-code-entry[open] > summary {
  margin-bottom: 0.85rem;
}

body[data-role="guest"] .access-code-entry[data-only-option="true"] > summary {
  display: none;
}

body[data-role="guest"] .access-code-entry[data-only-option="true"] .login-form {
  margin-top: 0;
}

body[data-role="guest"] .login-form {
  gap: 0.78rem;
}

body[data-role="guest"] .login-form input {
  min-height: 2.85rem;
}

body[data-role="guest"] :is(.login-form, .access-type, .auth-help div, .invite-form) {
  text-align: left;
}

body[data-role="guest"] :is(.login-form label > span, .access-type legend) {
  color: rgba(226, 232, 245, 0.72);
}

body[data-role="guest"] :is(.login-form input, .invite-form input) {
  border-color: rgba(222, 230, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body[data-role="guest"] :is(.login-form input, .invite-form input)::placeholder {
  color: rgba(222, 230, 245, 0.42);
}

body[data-role="guest"] :is(.login-form input, .invite-form input):focus {
  border-color: rgba(145, 181, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(86, 119, 255, 0.18);
}

body[data-role="guest"] .access-type-options,
body[data-role="guest"] .auth-mode-switcher {
  border-color: rgba(222, 230, 255, 0.11);
  background: rgba(255, 255, 255, 0.065);
}

body[data-role="guest"] .access-type-options label,
body[data-role="guest"] .auth-mode-switcher button {
  color: rgba(226, 232, 245, 0.62);
}

body[data-role="guest"] .access-type-options label:has(input:checked),
body[data-role="guest"] .auth-mode-switcher button[aria-selected="true"] {
  color: #101522;
  background: #f5f8ff;
}

body[data-role="guest"] .button-primary {
  color: #0c1018;
  background: linear-gradient(135deg, #ffffff, #dce7ff);
  box-shadow: 0 12px 34px rgba(80, 111, 231, 0.2);
}

body[data-role="guest"] .button-primary:hover {
  color: #0c1018;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(86, 119, 255, 0.28);
}

body[data-role="guest"] .button-google {
  border-color: rgba(255, 255, 255, 0.18);
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
}

body[data-role="guest"] :is(.auth-divider, .auth-help, .registration-note, .privacy-note) {
  color: rgba(221, 228, 244, 0.58);
}

body[data-role="guest"] .auth-divider::before,
body[data-role="guest"] .auth-divider::after {
  background: rgba(222, 230, 255, 0.13);
}

body[data-role="guest"] .auth-help div,
body[data-role="guest"] .invitation-callout {
  border-color: rgba(222, 230, 255, 0.12);
  color: rgba(226, 232, 245, 0.72);
  background: rgba(255, 255, 255, 0.055);
}

body[data-role="guest"] .invitation-callout span {
  color: #dbe6ff;
}

body[data-role="guest"] .invitation-callout p {
  color: rgba(226, 232, 245, 0.64);
}

@media (max-width: 620px) {
  body[data-role="guest"] .login-shell {
    min-height: 100svh;
    padding: 7.2rem 0.85rem 1.5rem;
    overflow: hidden;
  }

  body[data-role="guest"] .studio-mark {
    top: 1.75rem;
  }

  body[data-role="guest"] .studio-mark .dreamclient-wordmark {
    font-size: clamp(1.7rem, 9vw, 2.25rem);
  }

  body[data-role="guest"] .studio-mark small {
    font-size: 0.48rem;
  }

  body[data-role="guest"] .login-panel {
    padding: 1.5rem 1.1rem;
    border-radius: 1.15rem;
  }

  body[data-role="guest"] .login-panel h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }
}

@media (max-width: 1180px) and (min-width: 921px) {
  body[data-role="guest"] .studio-mark .dreamclient-wordmark {
    font-size: clamp(3rem, 5.7vw, 4.8rem);
  }
}

@media (max-width: 920px) {
  body[data-role="guest"] .login-brand::after {
    display: none;
  }
}

@media (max-width: 620px) {
  body[data-role] .nav-item {
    min-height: 2.35rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.68rem;
  }

  body[data-role] .nav-icon {
    display: none;
  }

  body[data-role] .view-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  body[data-role] .analytics-actions {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  body[data-role] .view-heading h1 {
    font-size: clamp(2rem, 10.5vw, 2.8rem);
  }
}

/* Clear application hierarchy --------------------------------------------
   One page title, compact section titles, and content-led cards. */
body[data-role] main {
  padding-top: clamp(2.25rem, 4vw, 3.75rem);
}

body[data-role] .view-heading {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.68fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.15rem;
}

body[data-role] .view-heading > div > .eyebrow {
  display: none;
}

body[data-role] .view-heading h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 2.7vw, 2.55rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1;
}

body[data-role] :is(.section-heading, .connected-accounts-heading, .format-performance-heading) {
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
}

body[data-role] :is(.section-heading, .connected-accounts-heading, .format-performance-heading) .eyebrow {
  display: none;
}

body[data-role] :is(.section-heading, .connected-accounts-heading, .format-performance-heading) h2,
body[data-role] :is(.analytics-story, .performance-list) h2 {
  font-size: 1.08rem;
  font-weight: 630;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

body[data-role] .grid-section + .grid-section {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

/* Client dashboard */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dashboard-metrics a {
  min-height: 9rem;
  display: grid;
  align-content: space-between;
  padding: 1.05rem;
  border: 1px solid rgba(13, 15, 18, 0.07);
  border-radius: 1.15rem;
  color: #111318;
  background: linear-gradient(145deg, #fff 50%, #ebfaff 100%);
  box-shadow: var(--soft-shadow);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-metrics a:nth-child(2) { background: linear-gradient(145deg, #fff 50%, #fff0f5 100%); }
.dashboard-metrics a:nth-child(3) { background: linear-gradient(145deg, #fff 50%, #fff4e6 100%); }
.dashboard-metrics a:nth-child(4) { background: linear-gradient(145deg, #fff 50%, #f0edff 100%); }
.dashboard-metrics a:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(13, 15, 18, 0.08); }
.dashboard-metrics span { color: #626a75; font-size: 0.7rem; font-weight: 620; }
.dashboard-metrics strong { font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 540; letter-spacing: -0.06em; line-height: 0.9; }
.dashboard-metrics small { color: #818893; font-size: 0.62rem; }

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  gap: 0.75rem;
}

.dashboard-card {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid rgba(13, 15, 18, 0.07);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.dashboard-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-card > header h2 { font-size: 1rem; font-weight: 640; letter-spacing: -0.025em; }
.dashboard-card > header button {
  padding: 0;
  border: 0;
  color: #626a75;
  background: transparent;
  font-size: 0.68rem;
  cursor: pointer;
}
.dashboard-card > header button:hover { color: #111318; }
.dashboard-grid-card { grid-column: 1 / -1; }

.dashboard-approval-item {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(13, 15, 18, 0.07);
  color: #111318;
  text-decoration: none;
}
.dashboard-approval-item:first-child { border-top: 0; padding-top: 0; }
.dashboard-approval-media { width: 3.2rem; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 0.72rem; background: #f2f3f5; }
.dashboard-approval-media img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-approval-media i { font-style: normal; font-weight: 650; }
.dashboard-approval-item > span:nth-child(2) { min-width: 0; display: grid; gap: 0.2rem; }
.dashboard-approval-item strong { overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-approval-item small { color: #7a828d; font-size: 0.62rem; }
.dashboard-approval-item b { color: #4f5660; font-size: 0.63rem; font-weight: 620; }

.dashboard-performance-card { background: linear-gradient(145deg, #fff 40%, #f2f9ff 100%); }
.dashboard-signal { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.72rem 0; border-top: 1px solid rgba(13, 15, 18, 0.07); }
.dashboard-signal:first-child { border-top: 0; padding-top: 0; }
.dashboard-signal span { color: #69717c; font-size: 0.68rem; }
.dashboard-signal strong { font-size: 1.7rem; font-weight: 540; letter-spacing: -0.05em; }
.dashboard-performance-card p { margin: 0.85rem 0 0; color: #7a828d; font-size: 0.64rem; }

.dashboard-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.28rem; }
.dashboard-grid a { min-width: 0; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 0.55rem; color: #555e68; background: #f0f2f5; text-decoration: none; }
.dashboard-grid img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-empty { min-height: 8rem; display: grid; place-content: center; gap: 0.35rem; color: #707883; text-align: center; }
.dashboard-empty strong { color: #22262c; font-size: 0.78rem; }
.dashboard-empty span { font-size: 0.67rem; }

/* Social profile preview */
.social-profile-stage {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  border: 1px solid rgba(13, 15, 18, 0.07);
  border-radius: 1.3rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(127, 232, 255, 0.22), transparent 32%),
    radial-gradient(circle at 82% 76%, rgba(255, 120, 157, 0.16), transparent 34%),
    #f5f6f7;
}

.social-phone {
  width: min(100%, 28rem);
  overflow: hidden;
  border: 0.48rem solid #0d0f12;
  border-radius: 2.2rem;
  background: #fff;
  box-shadow: 0 32px 70px rgba(13, 15, 18, 0.18);
}
.social-phone-bar { height: 2.25rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 1.05rem; font-size: 0.56rem; font-weight: 650; }
.social-phone-bar > :last-child { text-align: right; }
.social-phone-island { width: 5rem; height: 1.25rem; border-radius: 999px; background: #0d0f12; }
.social-profile-header { padding: 0.25rem 1rem 0.85rem; }
.social-profile-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; font-size: 0.76rem; }
.social-profile-summary { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); align-items: center; gap: 1rem; }
.social-profile-avatar { width: 4.4rem; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(13,15,18,.1); border-radius: 50%; background: linear-gradient(145deg, #e5f9ff, #ffe5ef); font-size: 0.75rem; font-weight: 680; }
.social-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.social-profile-stats span { display: grid; gap: 0.08rem; }
.social-profile-stats strong { font-size: 0.75rem; }
.social-profile-stats small { color: #59616c; font-size: 0.55rem; }
.social-profile-copy { display: grid; gap: 0.14rem; margin-top: 0.65rem; font-size: 0.63rem; line-height: 1.4; }
.social-profile-bio { margin: 0; white-space: pre-line; }
.social-profile-link { color: #24507a; font-weight: 620; text-decoration: none; }
.social-profile-open { display: block; margin-top: 0.7rem; padding: 0.55rem; border: 1px solid rgba(13,15,18,.1); border-radius: 0.5rem; color: #111318; font-size: 0.6rem; font-weight: 630; text-align: center; text-decoration: none; }
.social-highlights { display: flex; gap: 0.75rem; margin-top: 0.8rem; overflow-x: auto; }
.social-highlight { flex: 0 0 3.15rem; display: grid; justify-items: center; gap: 0.25rem; }
.social-highlight-ring { width: 2.75rem; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; outline: 1px solid rgba(13,15,18,.14); background: #f0f2f5; }
.social-highlight-ring img { width: 100%; height: 100%; object-fit: cover; }
.social-highlight-ring i { font-size: 0.65rem; font-style: normal; }
.social-highlight small { max-width: 100%; overflow: hidden; font-size: 0.5rem; text-overflow: ellipsis; white-space: nowrap; }
.social-profile-tabs { height: 2.2rem; display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; border-top: 1px solid rgba(13,15,18,.08); color: #89909a; font-size: 0.85rem; }
.social-profile-tabs .is-active { width: 100%; height: 100%; display: grid; place-items: center; border-bottom: 1.5px solid #111318; color: #111318; }
.social-phone .publishing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.social-phone .publishing-grid-tile { border-radius: 0; }
.social-phone .publishing-grid-status,
.social-phone .publishing-grid-title,
.social-phone .publishing-grid-shade { display: none; }

@media (max-width: 820px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid-card { grid-column: auto; }
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body[data-role] .view-heading { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  body[data-role] .view-heading h1 { font-size: clamp(1.75rem, 8vw, 2.15rem); }
  body[data-role] .section-heading { align-items: start; gap: 0.6rem; }
  body[data-role] .section-heading > p { text-align: left; }
  .dashboard-metrics a { min-height: 7.5rem; }
  .social-profile-stage { padding: 0; border: 0; background: transparent; }
  .social-phone { border-width: 0.3rem; border-radius: 1.6rem; }
}

/* Workflow clarity additions */
.compact-select {
  display: grid;
  gap: 0.28rem;
  color: #737b86;
  font-size: 0.58rem;
  font-weight: 620;
}
.compact-select select,
.decision-scope-field select {
  min-height: 2.45rem;
  padding: 0.55rem 2rem 0.55rem 0.72rem;
  border: 1px solid rgba(13,15,18,.1);
  border-radius: 0.68rem;
  color: #171a1f;
  background: #fff;
}

.approval-schedule-field,
.approval-exact-field {
  margin-top: 0.85rem;
}

.approval-schedule-field select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.58rem 2rem 0.58rem 0.72rem;
  border: 1px solid rgba(13,15,18,.1);
  border-radius: 0.68rem;
  color: #171a1f;
  background: #fff;
}

.approval-schedule-field small {
  display: block;
  margin-top: 0.42rem;
  color: #747b85;
  font-size: 0.68rem;
  line-height: 1.45;
}

.approval-exact-field input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(15,18,24,.12);
  border-radius: 0.65rem;
  color: #111318;
  background: #f7f8fa;
  font: inherit;
}
.analytics-actions { grid-template-columns: minmax(0, 1fr) auto auto !important; }

.platform-decisions {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.7rem;
  padding: 0.7rem;
  border: 1px solid rgba(13,15,18,.08);
  border-radius: 0.72rem;
  background: #f8f9fa;
}
.platform-decisions > span { color: #6f7782; font-size: 0.58rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.platform-decisions p { margin: 0; font-size: 0.68rem; line-height: 1.5; white-space: pre-line; }
.rework-now { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .2rem .7rem; margin: .9rem 0; padding: .8rem; border-radius: .8rem; background: #f6f7f9; }
.rework-now span { color: #737b86; font-size: .58rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.rework-now strong { font-size: .72rem; text-align: right; }
.rework-now p { grid-column: 1 / -1; margin: .25rem 0 0; color: #606874; font-size: .66rem; line-height: 1.45; }

.engagement-toolbar { display: grid !important; grid-template-columns: auto minmax(10rem, 13rem) auto minmax(14rem, 1fr); align-items: end !important; gap: .7rem !important; }
.engagement-tabs { display: flex; gap: .3rem; }
.engagement-toolbar .icon-button { width: 2.45rem; height: 2.45rem; min-height: 2.45rem; border-radius: .65rem; }
.engagement-toolbar #engagementReplyNotice { align-self: center; justify-self: end; text-align: right; }

.settings-layout { display: grid; grid-template-columns: minmax(14rem,.65fr) minmax(0,1.35fr); gap: .75rem; }
.settings-profile-card,
.settings-panel { border: 1px solid rgba(13,15,18,.075); border-radius: 1.1rem; background: #fff; box-shadow: var(--soft-shadow); }
.settings-profile-card { min-height: 12rem; display: flex; align-items: flex-end; gap: .85rem; padding: 1.1rem; background: linear-gradient(145deg,#fff 45%,#edfaff 100%); }
.settings-profile-initial { width: 3.4rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #111318; font-size: 1.1rem; font-weight: 650; }
.settings-profile-card h2 { font-size: 1rem !important; }
.settings-profile-card p { margin: .2rem 0 0; color: #747c87; font-size: .65rem; }
.settings-panel { padding: 1.1rem; }
.settings-panel > header { margin-bottom: 1rem; }
.settings-panel > header h2 { font-size: 1rem !important; font-weight: 640; }
.settings-panel > header p { margin: .25rem 0 0; color: #747c87; font-size: .65rem; }
.settings-rows { margin: 0; }
.settings-rows > div { display: grid; grid-template-columns: minmax(8rem,.7fr) minmax(0,1fr); gap: 1rem; padding: .85rem 0; border-top: 1px solid rgba(13,15,18,.07); }
.settings-rows dt { color: #747c87; font-size: .65rem; }
.settings-rows dd { margin: 0; font-size: .7rem; font-weight: 620; text-align: right; }
.settings-status { display: inline-flex; align-items: center; gap: .4rem; color: #16734a; }
.settings-status i { width: .45rem; aspect-ratio: 1; border-radius: 50%; background: #25be79; }
.settings-workflow-panel { grid-column: 1 / -1; }
.settings-permissions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.settings-permissions span { display: flex; align-items: center; gap: .55rem; padding: .75rem; border-radius: .72rem; color: #4f5762; background: #f7f8f9; font-size: .68rem; }
.settings-permissions i { width: 1.25rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #166b47; background: #e8f8f0; font-style: normal; font-size: .58rem; }

.agreement-overview {
  display: grid;
  grid-template-columns: minmax(15rem, .62fr) minmax(0, 1.38fr);
  gap: .8rem;
  margin-bottom: 1rem;
}

.agreement-value-card,
.agreement-scope-card,
.agreement-empty {
  border: 1px solid rgba(13,15,18,.075);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.agreement-value-card {
  position: relative;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 1.25rem;
}

.agreement-value-card::before {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  top: -6rem;
  right: -3rem;
  border-radius: 50%;
  background: #ffb7d5;
  filter: blur(30px);
  opacity: .54;
}

.agreement-value-card::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  top: 1rem;
  right: 4rem;
  border-radius: 50%;
  background: #8fc8ff;
  filter: blur(36px);
  opacity: .42;
}

.agreement-value-card > * { position: relative; z-index: 1; }
.agreement-value-card strong { margin-top: .55rem; color: #0b0d10; font-size: clamp(2rem,4vw,3.4rem); font-weight: 570; letter-spacing: -.06em; line-height: .95; }
.agreement-value-card > span { margin-top: .55rem; color: #4f5762; font-size: .72rem; text-transform: capitalize; }
.agreement-value-card > small { margin-top: .25rem; color: #7a828d; font-size: .64rem; }

.agreement-scope-card { padding: 1.25rem; }
.agreement-scope-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(13,15,18,.07); }
.agreement-scope-card > header h2 { margin: .25rem 0 0; font-size: 1.2rem !important; }
.agreement-scope-card > header > span { padding: .38rem .58rem; border-radius: 999px; color: #5f6670; background: #f5f6f8; font-size: .62rem; white-space: nowrap; }
.agreement-summary { max-width: 64ch; margin: 1rem 0; color: #5e6671; font-size: .73rem; line-height: 1.6; }
.agreement-deliverables { display: grid; gap: .5rem; }
.agreement-deliverables article { display: grid; grid-template-columns: minmax(0,1fr) minmax(6rem,.45fr); align-items: center; gap: 1rem; padding: .75rem; border-radius: .75rem; background: #f7f8fa; }
.agreement-deliverables article > div:first-child { display: grid; gap: .18rem; }
.agreement-deliverables strong { color: #171a1f; font-size: .7rem; font-weight: 630; }
.agreement-deliverables span { color: #747c87; font-size: .61rem; }
.agreement-progress { height: .36rem; overflow: hidden; border-radius: 999px; background: #e5e8ed; }
.agreement-progress i { display: block; height: 100%; border-radius: inherit; background: #699eff; }
.agreement-included { justify-self: end; padding: .3rem .5rem; border-radius: 999px; color: #7142a2; background: #f3eaff; font-size: .58rem; font-style: normal; font-weight: 650; }
.agreement-scope-card > footer { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(13,15,18,.07); }
.agreement-scope-card > footer span { color: #828995; font-size: .58rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.agreement-scope-card > footer p { margin: .3rem 0 0; color: #646c77; font-size: .66rem; line-height: 1.5; }
.agreement-no-deliverables { margin: 1rem 0 0; color: #737b86; font-size: .7rem; }

.agreement-empty { min-height: 10rem; grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.agreement-empty .agreement-mark { width: 3rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #5f7fbb; background: #edf4ff; font-size: 1.2rem; }
.agreement-empty h2 { margin: .25rem 0 0; font-size: 1.1rem !important; }
.agreement-empty p:last-child { margin: .35rem 0 0; color: #737b86; font-size: .7rem; }

.billing-agency-tools { display: grid; gap: 1rem; }
.billing-agency-tools[hidden] { display: none; }
.agreement-editor { border-radius: 1.05rem; }
.billing-records { border-radius: 1.05rem; }

@media (max-width: 820px) {
  .analytics-actions { grid-template-columns: minmax(0,1fr) auto !important; }
  .analytics-actions .view-summary { grid-column: 1 / -1; }
  .engagement-toolbar { grid-template-columns: 1fr auto !important; }
  .engagement-tabs { grid-column: 1 / -1; }
  .engagement-toolbar #engagementReplyNotice { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .settings-layout { grid-template-columns: minmax(0,1fr); }
  .settings-workflow-panel { grid-column: auto; }
  .agreement-overview { grid-template-columns: minmax(0,1fr); }
  .agreement-empty { grid-column: auto; }
}

@media (max-width: 520px) {
  .analytics-actions { grid-template-columns: minmax(0,1fr) !important; }
  .settings-permissions { grid-template-columns: minmax(0,1fr); }
  .agreement-deliverables article { grid-template-columns: minmax(0,1fr); }
  .agreement-progress { width: 100%; }
  .agreement-included { justify-self: start; }
}

/* Quiet Control Room ------------------------------------------------------
   Authoritative product layer. White architecture, exact hierarchy and
   spectral state cues. Color communicates workflow; it does not decorate. */
body[data-role="client"],
body[data-role="agency"],
body[data-role="guest"] {
  --ops-canvas: #f6f7f9;
  --ops-surface: #ffffff;
  --ops-ink: #101216;
  --ops-muted: #6e7580;
  --ops-faint: #969ca6;
  --ops-line: #e7e9ee;
  --ops-line-strong: #d9dde5;
  --ops-decision: #8b6cff;
  --ops-publishing: #5b83ff;
  --ops-results: #31b887;
  --ops-messages: #ff826f;
  --ops-warning: #f4a62a;
  --soft-shadow: 0 1px 2px rgba(16,18,22,.025), 0 10px 34px rgba(16,18,22,.045);
  color: var(--ops-ink);
  background: var(--ops-canvas);
  font-family: "Ops Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body[data-role]::before { display: none; }

body[data-role] :is(button, input, textarea, select) { font: inherit; }

body[data-role] .app-header {
  border-color: var(--ops-line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 2px rgba(16,18,22,.025), 0 16px 46px rgba(16,18,22,.055);
}

body[data-role] .brand-text-logo {
  color: var(--ops-ink);
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
}

body[data-role] .brand-room-label {
  color: var(--ops-muted);
  font-size: .64rem;
}

body[data-role] .primary-nav {
  border-color: var(--ops-line);
  background: transparent;
}

body[data-role] .nav-item {
  position: relative;
  min-height: 2.8rem;
  border-radius: .72rem;
  color: #666d78;
  background: transparent;
  font-size: .76rem;
  font-weight: 590;
  letter-spacing: -.01em;
  box-shadow: none;
}

body[data-role] .nav-item:hover:not(.is-active) {
  color: var(--ops-ink);
  background: #f5f6f8;
}

body[data-role] .nav-item.is-active {
  color: var(--ops-ink);
  background: #f0f2f5;
  box-shadow: inset 0 0 0 1px rgba(16,18,22,.035);
}

body[data-role] .nav-item.is-active::before {
  content: "";
  position: absolute;
  top: .72rem;
  bottom: .72rem;
  left: -.38rem;
  width: 3px;
  border-radius: 99px;
  background: var(--ops-publishing);
}

body[data-role="agency"] .nav-item.is-active::before { background: var(--ops-decision); }
body[data-role="agency"] .brand-room-label { color: #654fd0; }

body[data-role] .nav-item.is-active .nav-icon {
  color: var(--ops-ink);
  background: var(--ops-surface);
  box-shadow: inset 0 0 0 1px var(--ops-line);
}

body[data-role] .nav-count {
  min-width: 1.3rem;
  min-height: 1.3rem;
  padding: 0 .36rem;
  border: 0;
  color: #fff;
  background: var(--ops-ink);
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: .56rem;
}

body[data-role] main {
  max-width: 1320px;
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

body[data-role] .view-panel.is-active {
  animation: ops-enter 240ms cubic-bezier(.2,.75,.25,1) both;
}

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

body[data-role] .view-heading {
  grid-template-columns: minmax(0,1fr) minmax(18rem,.62fr);
  align-items: end;
  gap: clamp(1.25rem,3vw,3rem);
  margin-bottom: 1.35rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--ops-line);
}

body[data-role] .view-heading > div > .eyebrow {
  display: block;
  margin: 0 0 .45rem;
  color: var(--ops-faint);
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: .58rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-role] .view-heading h1 {
  max-width: none;
  margin: 0;
  color: var(--ops-ink);
  font-size: clamp(2rem,3.1vw,3rem);
  font-weight: 580;
  letter-spacing: -.055em;
  line-height: .98;
}

body[data-role] .view-summary {
  max-width: 34rem;
  justify-self: end;
  margin: 0;
  color: var(--ops-muted);
  font-size: .76rem;
  line-height: 1.55;
}

body[data-role] :is(.section-heading,.connected-accounts-heading,.format-performance-heading) {
  align-items: end;
  margin-bottom: .85rem;
  padding-bottom: .7rem;
  border-color: var(--ops-line);
}

body[data-role] :is(.section-heading,.connected-accounts-heading,.format-performance-heading) .eyebrow {
  display: block;
  margin: 0 0 .28rem;
  color: var(--ops-faint);
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: .54rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-role] :is(.section-heading,.connected-accounts-heading,.format-performance-heading) h2,
body[data-role] :is(.analytics-story,.performance-list) h2 {
  margin: 0;
  color: var(--ops-ink);
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -.025em;
}

body[data-role] .section-heading > p {
  color: var(--ops-muted);
  font-size: .68rem;
}

body[data-role] :is(
  .agency-summary article,.brand-card,.review-card,.change-card,.grid-card,
  .quiet-empty,.connected-accounts,.metric-card,.agency-performance,
  .connection-empty,.analytics-table,.request-composer,.request-inbox,
  .request-card,.billing-upload,.billing-records,.billing-card,
  .engagement-toolbar,.engagement-layout,.settings-profile-card,.settings-panel,
  .agreement-value-card,.agreement-scope-card,.agreement-empty
) {
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: var(--ops-surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: none;
}

body[data-role] :is(.button,.text-button,.icon-button) {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

body[data-role] .button {
  min-height: 2.6rem;
  border-radius: .7rem;
  font-size: .7rem;
  font-weight: 650;
}

body[data-role] .button-primary {
  color: #fff;
  background: var(--ops-ink);
}

body[data-role] .button-primary:hover { background: #2b2e34; }

body[data-role] .button-secondary {
  color: var(--ops-ink);
  border-color: var(--ops-line-strong);
  background: #fff;
}

body[data-role] :is(input,textarea,select) {
  border-color: var(--ops-line-strong) !important;
  border-radius: .65rem !important;
  color: var(--ops-ink) !important;
  background: #fff !important;
  box-shadow: 0 1px 1px rgba(16,18,22,.02);
}

body[data-role] :is(button,a,input,textarea,select,summary):focus-visible {
  outline: 3px solid rgba(91,131,255,.28);
  outline-offset: 2px;
}

/* Signature command strip */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin: 0 0 .85rem;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.dashboard-metrics a {
  min-width: 0;
  min-height: 5rem;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border: 0;
  border-right: 1px solid var(--ops-line);
  border-radius: 0;
  color: var(--ops-ink);
  background: #fff;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.dashboard-metrics a:last-child { border-right: 0; }
.dashboard-metrics a:nth-child(n) { background: #fff; }
.dashboard-metrics a:hover { transform: none; background: #fafbfc; box-shadow: none; }
.dashboard-metrics a > i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 5px color-mix(in srgb,var(--tone) 12%,transparent); }
.dashboard-metrics a > span { min-width: 0; display: grid; gap: .16rem; }
.dashboard-metrics a small { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .54rem; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-metrics a strong { overflow: hidden; color: var(--ops-ink); font-size: .76rem; font-weight: 630; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-metrics a > b { color: #a1a6ae; font-size: .72rem; font-weight: 500; }
.dashboard-metrics [data-tone="decision"] { --tone: var(--ops-decision); }
.dashboard-metrics [data-tone="publishing"] { --tone: var(--ops-publishing); }
.dashboard-metrics [data-tone="results"] { --tone: var(--ops-results); }
.dashboard-metrics [data-tone="messages"] { --tone: var(--ops-messages); }

.dashboard-command-skeleton {
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border-right: 1px solid var(--ops-line);
}
.dashboard-command-skeleton:last-child { border-right: 0; }
.dashboard-command-skeleton i { width: .55rem; height: .55rem; border-radius: 50%; background: #e8ebf0; }
.dashboard-command-skeleton b { width: 58%; height: .7rem; border-radius: 99px; background: #edf0f4; }

.dashboard-loading { display: grid; gap: .65rem; padding: .2rem 0; }
.dashboard-loading i { width: 100%; height: 3.25rem; border-radius: .7rem; background: #f0f2f5; }
.dashboard-loading i:nth-child(2) { width: 82%; }
.dashboard-loading i:nth-child(3) { width: 64%; }

.dashboard-layout {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .85rem;
}

.dashboard-card,
.dashboard-grid-card {
  position: relative;
  min-width: 0;
  min-height: 19rem;
  grid-column: auto;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--card-tone) 28%, transparent) 8%,
    var(--card-tone) 28%,
    var(--card-tone) 72%,
    color-mix(in srgb, var(--card-tone) 28%, transparent) 92%,
    transparent 100%
  );
  filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--card-tone) 16%, transparent));
}

.dashboard-card[data-dashboard-tone="decision"] { --card-tone: var(--ops-decision); }
.dashboard-card[data-dashboard-tone="publishing"] { --card-tone: var(--ops-publishing); }
.dashboard-card[data-dashboard-tone="results"] { --card-tone: var(--ops-results); }
.dashboard-card[data-dashboard-tone="messages"] { --card-tone: var(--ops-messages); }

.dashboard-card > header {
  min-height: 3.2rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--ops-line);
}

.dashboard-card > header > div { display: grid; gap: .24rem; }
.dashboard-card > header span { color: var(--card-tone); font-family: "Ops Mono",ui-monospace,monospace; font-size: .54rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-card > header h2 { margin: 0; color: var(--ops-ink); font-size: 1.05rem; font-weight: 620; letter-spacing: -.03em; }
.dashboard-card > header button { padding: .35rem 0; color: var(--ops-muted); font-size: .62rem; font-weight: 610; }
.dashboard-card > header button:hover { color: var(--ops-ink); }

.dashboard-approval-item,
.dashboard-publishing-item,
.dashboard-message-item {
  min-height: 4.15rem;
  display: grid;
  grid-template-columns: 3rem minmax(0,1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .55rem 0;
  border-top: 1px solid var(--ops-line);
  color: var(--ops-ink);
  text-decoration: none;
}

:is(.dashboard-approval-item,.dashboard-publishing-item,.dashboard-message-item):first-child { border-top: 0; padding-top: 0; }
:is(.dashboard-approval-item,.dashboard-publishing-item,.dashboard-message-item) > span:nth-child(2) { min-width: 0; display: grid; gap: .18rem; }
:is(.dashboard-approval-item,.dashboard-publishing-item,.dashboard-message-item) strong { overflow: hidden; color: var(--ops-ink); font-size: .72rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
:is(.dashboard-approval-item,.dashboard-publishing-item,.dashboard-message-item) small { color: var(--ops-muted); font-size: .6rem; }
:is(.dashboard-approval-item,.dashboard-publishing-item) > b { color: var(--ops-muted); font-size: .58rem; font-weight: 620; }

.dashboard-approval-media,
.dashboard-publishing-media,
.dashboard-message-mark {
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: .72rem;
  background: #f1f3f6;
}

:is(.dashboard-approval-media,.dashboard-publishing-media) img { width: 100%; height: 100%; object-fit: cover; }
:is(.dashboard-approval-media,.dashboard-publishing-media) i { color: #616975; font-size: .72rem; font-style: normal; font-weight: 650; }
.dashboard-message-mark { color: #d95f51; background: #fff0ed; font-family: "Ops Mono",ui-monospace,monospace; font-size: .65rem; font-weight: 700; }
.dashboard-message-item time { max-width: 6.5rem; color: var(--ops-faint); font-size: .55rem; text-align: right; }

.dashboard-performance-card { background: #fff; }
.dashboard-signal { min-height: 4.1rem; padding: .75rem 0; border-color: var(--ops-line); }
.dashboard-signal span { color: var(--ops-muted); font-size: .65rem; }
.dashboard-signal strong { color: var(--ops-ink); font-size: 1.85rem; font-weight: 560; letter-spacing: -.055em; }
.dashboard-performance-card p { color: var(--ops-muted); font-size: .62rem; }
.dashboard-empty { min-height: 11rem; }
.dashboard-empty strong { color: var(--ops-ink); font-size: .75rem; }
.dashboard-empty span { color: var(--ops-muted); font-size: .63rem; }
.dashboard-grid { display: block; }
.dashboard-grid .dashboard-publishing-item {
  width: 100%;
  min-width: 0;
  aspect-ratio: auto;
  display: grid;
  place-items: initial;
  overflow: visible;
  border-radius: 0;
  color: var(--ops-ink);
  background: transparent;
}

body[data-role] .agency-summary article {
  min-height: 8.5rem;
  padding: 1rem;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
}

body[data-role] .agency-summary article::after {
  z-index: 0;
  right: 1rem;
  bottom: .85rem;
  width: 2.25rem;
  height: .34rem;
  border-radius: 99px;
  filter: none;
  opacity: .55;
}

body[data-role] .agency-summary article > * { position: relative; z-index: 1; }
body[data-role] .agency-summary strong { font-size: clamp(2.2rem,3.5vw,3.2rem); }
body[data-role] .brand-overview .brand-card:nth-child(n) .brand-card-mark { background: #f1f3f6; }
body[data-role] .brand-overview .brand-card:nth-child(4n + 1) .brand-card-mark { background: #edf4ff; }
body[data-role] .brand-overview .brand-card:nth-child(4n + 2) .brand-card-mark { background: #fff1eb; }
body[data-role] .brand-overview .brand-card:nth-child(4n + 3) .brand-card-mark { background: #fff0f6; }
body[data-role] .brand-overview .brand-card:nth-child(4n + 4) .brand-card-mark { background: #f2efff; }

body[data-role] .metric-card.tone-jade,
body[data-role] .metric-card.tone-amber,
body[data-role] .metric-card.tone-coral,
body[data-role] .metric-card.tone-plum { background: #fff; }

body[data-role] .metric-card::after {
  right: 1rem;
  bottom: .85rem;
  width: 2.25rem;
  height: .34rem;
  border-radius: 99px;
  filter: none;
  opacity: .55;
}

.brand-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.brand-card-actions .button { flex: 1 1 8rem; }

.agency-alerts {
  margin: .85rem 0;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.agency-alerts:empty { display: none; }
.agency-alerts > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--ops-line); }
.agency-alerts > header div { display: grid; gap: .18rem; }
.agency-alerts > header span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }
.agency-alerts > header h2 { margin: 0; font-size: 1rem; font-weight: 620; letter-spacing: -.025em; }
.agency-alerts > header > strong { padding: .34rem .5rem; border-radius: 999px; color: #6448c8; background: #f0ecff; font-family: "Ops Mono",ui-monospace,monospace; font-size: .56rem; }
.agency-alert-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.agency-alert-list > button { min-width: 0; min-height: 5.2rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 0; border-right: 1px solid var(--ops-line); border-bottom: 1px solid var(--ops-line); color: var(--ops-ink); background: #fff; text-align: left; cursor: pointer; }
.agency-alert-list > button:nth-child(2n) { border-right: 0; }
.agency-alert-list > button:hover { background: #fafbfc; }
.agency-alert-list > button > i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--alert-tone,var(--ops-decision)); box-shadow: 0 0 0 5px color-mix(in srgb,var(--alert-tone,var(--ops-decision)) 11%,transparent); }
.agency-alert-list [data-alert-tone="critical"] { --alert-tone: var(--ops-messages); }
.agency-alert-list [data-alert-tone="work"] { --alert-tone: var(--ops-warning); }
.agency-alert-list [data-alert-tone="decision"] { --alert-tone: var(--ops-decision); }
.agency-alert-list button > span { min-width: 0; display: grid; gap: .14rem; }
.agency-alert-list button b { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; font-weight: 620; letter-spacing: .07em; text-transform: uppercase; }
.agency-alert-list button strong { overflow: hidden; font-size: .7rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.agency-alert-list button small { overflow: hidden; color: var(--ops-muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.agency-alert-list button em { color: var(--ops-faint); font-size: .7rem; font-style: normal; }
.agency-alert-clear { grid-column: 1 / -1; display: flex; align-items: center; gap: .7rem; padding: 1rem; }
.agency-alert-clear > i { width: 2rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #167453; background: #eaf8f2; font-style: normal; }
.agency-alert-clear > span { display: grid; gap: .15rem; }
.agency-alert-clear strong { font-size: .7rem; }
.agency-alert-clear small { color: var(--ops-muted); font-size: .58rem; }

.agency-operation-card {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: 3.4rem minmax(0,1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: .75rem;
  border: 1px solid var(--ops-line);
  border-radius: .9rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.agency-operation-card + .agency-operation-card { margin-top: .55rem; }
.agency-operation-media { width: 3.4rem; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: .72rem; color: #5f6671; background: #f0f2f5; }
.agency-operation-media img { width: 100%; height: 100%; object-fit: cover; }
.agency-operation-media i { font-family: "Ops Mono",ui-monospace,monospace; font-size: .6rem; font-style: normal; font-weight: 700; }
.agency-operation-copy { min-width: 0; display: grid; gap: .2rem; }
.agency-operation-topline { display: flex; align-items: center; gap: .5rem; }
.agency-operation-topline b { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; letter-spacing: .07em; text-transform: uppercase; }
.agency-operation-topline em { font-style: normal; }
.agency-operation-copy > strong { overflow: hidden; font-size: .74rem; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.agency-operation-copy > small { overflow: hidden; color: var(--ops-muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.agency-operation-card > button { min-height: 2.35rem; padding: .5rem .7rem; border: 1px solid var(--ops-line-strong); border-radius: .62rem; color: var(--ops-ink); background: #fff; font-size: .6rem; font-weight: 620; cursor: pointer; }
.agency-operation-card > button:hover { background: #f5f6f8; }

.decision-bar-protected {
  border-color: #ded9ff;
  background: #f8f6ff;
}
.decision-bar-protected p { max-width: 40rem; color: #5d5870; }
.decision-bar-protected p strong { color: #33276c; }

.engagement-sync-status {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .75rem 0;
  padding: .72rem .82rem;
  border: 1px solid var(--ops-line);
  border-radius: .8rem;
  background: #fff;
}
.engagement-sync-status:empty { display: none; }
.engagement-sync-status > i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ops-results); box-shadow: 0 0 0 5px color-mix(in srgb,var(--ops-results) 12%,transparent); }
.engagement-sync-status.has-error > i { background: var(--ops-messages); box-shadow: 0 0 0 5px color-mix(in srgb,var(--ops-messages) 12%,transparent); }
.engagement-sync-status > span { display: grid; gap: .1rem; }
.engagement-sync-status strong { color: var(--ops-ink); font-size: .66rem; }
.engagement-sync-status small { color: var(--ops-muted); font-size: .56rem; }

.agency-portfolio-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(12rem,18rem);
  align-items: end;
  gap: .8rem 1rem;
  margin-bottom: .85rem;
  padding: .9rem 1rem;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
}
.agency-portfolio-controls > div { display: grid; gap: .18rem; }
.agency-portfolio-controls > div span,
.agency-portfolio-controls label span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; }
.agency-portfolio-controls > div strong { font-size: .9rem; font-weight: 630; letter-spacing: -.02em; }
.agency-portfolio-controls label { display: grid; gap: .3rem; }
.agency-portfolio-controls select { width: 100%; min-height: 2.5rem; padding: .55rem .7rem; border: 1px solid var(--ops-line-strong); border-radius: .65rem; color: var(--ops-ink); background: #fff; }
.agency-portfolio-controls > small { grid-column: 1 / -1; color: var(--ops-muted); font-size: .56rem; }
.metric-value-revenue { font-size: clamp(1.4rem,2.4vw,2.25rem) !important; }
.agency-performance-head,
.agency-performance-row { min-width: 60rem; grid-template-columns: minmax(12rem,1.7fr) repeat(6,minmax(5rem,.55fr)); }
.agency-delivery-cell { display: grid; gap: .08rem; }
.agency-delivery-cell strong { font-size: .72rem; }
.agency-delivery-cell small { font-size: .5rem; }
.agency-delivery-cell[data-delivery-tone="missing"] strong { color: #b04b38; }
.agency-delivery-cell[data-delivery-tone="complete"] strong { color: #147057; }

.change-card-topline > span { margin-left: auto; color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; }
.rework-stage-label { display: inline-flex; align-items: center; gap: .45rem; }
.rework-stage-label > i { width: .48rem; height: .48rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb,currentColor 11%,transparent); }
.rework-flow { display: grid; gap: .75rem; padding: .8rem 0 0; border-top: 1px solid var(--ops-line); }
.rework-flow-heading { display: grid; gap: .2rem; }
.rework-flow-heading span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; }
.rework-flow-heading strong { color: var(--ops-muted); font-size: .62rem; font-weight: 520; }

@media (max-width: 720px) {
  .agency-portfolio-controls { grid-template-columns: minmax(0,1fr); }
  .agency-portfolio-controls > small { grid-column: 1; }
}

body[data-role="agency"] .review-queue,
body[data-role="agency"] .changes-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }

/* Agency creative systems */
.automation-control {
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.automation-control > header {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(22rem,30rem);
  align-items: end;
  gap: 1.25rem;
  padding: 1.1rem;
  border-bottom: 1px solid var(--ops-line);
}
.automation-control > header > div:first-child { display: grid; gap: .18rem; }
.automation-control > header h2 { margin: 0; font-size: 1.15rem; font-weight: 650; letter-spacing: -.035em; }
.automation-control > header p:last-child { max-width: 42rem; margin: .15rem 0 0; color: var(--ops-muted); font-size: .62rem; line-height: 1.5; }
.automation-control-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.automation-control-filters label { display: grid; gap: .28rem; }
.automation-control-filters label > span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .48rem; letter-spacing: .08em; text-transform: uppercase; }
.automation-control-filters select { min-height: 2.45rem; padding: .5rem .65rem; border: 1px solid var(--ops-line-strong); border-radius: .68rem; color: var(--ops-ink); background: #fff; }

.native-automation-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--ops-line); }
.native-automation-summary article { min-height: 5.15rem; display: grid; align-content: center; gap: .15rem; padding: .75rem 1rem; border-right: 1px solid var(--ops-line); }
.native-automation-summary article:last-child { border-right: 0; }
.native-automation-summary span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .47rem; letter-spacing: .08em; text-transform: uppercase; }
.native-automation-summary strong { font-size: 1.2rem; font-weight: 660; letter-spacing: -.04em; }
.native-automation-summary small { color: var(--ops-muted); font-size: .52rem; }
.native-automation-summary article[data-summary-tone="hold"] strong { color: #a7493d; }
.native-automation-summary article[data-summary-tone="ready"] strong { color: #137054; }

.native-automation-list { display: grid; }
.native-automation-row {
  --decision-ink: #5e6570;
  display: grid;
  grid-template-columns: 5.5rem minmax(16rem,1.05fr) minmax(18rem,.95fr) 8rem;
  align-items: start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--ops-line);
  box-shadow: inset 3px 0 0 var(--decision-ink);
}
.native-automation-row:last-child { border-bottom: 0; }
.native-automation-row[data-readiness="active"] { --decision-ink: #20a575; }
.native-automation-row[data-readiness="recommended"] { --decision-ink: #20a575; }
.native-automation-row[data-readiness="replace_trigger"] { --decision-ink: #4677d5; }
.native-automation-row[data-readiness="review"] { --decision-ink: #8a65d6; }
.native-automation-row[data-readiness="hold"] { --decision-ink: #d26552; }
.native-automation-state { display: flex; align-items: center; gap: .45rem; padding-top: .15rem; color: var(--ops-muted); font-size: .55rem; font-weight: 620; }
.native-automation-state i { width: .5rem; height: .5rem; border-radius: 50%; background: #b3b8c0; }
.native-automation-state i[data-native-status="active"] { background: #20a575; box-shadow: 0 0 0 4px #e9f7f2; }
.native-automation-state i[data-native-status="paused"] { background: #e2a641; box-shadow: 0 0 0 4px #fff6e6; }
.native-automation-main { min-width: 0; display: grid; gap: .38rem; }
.native-automation-topline { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.native-automation-topline span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .47rem; letter-spacing: .075em; text-transform: uppercase; }
.native-automation-topline code { max-width: 11rem; overflow: hidden; color: #777e88; font-size: .46rem; text-overflow: ellipsis; white-space: nowrap; }
.native-automation-main h3 { margin: 0; font-size: .78rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.native-automation-main > p { margin: 0; color: var(--ops-muted); font-size: .57rem; line-height: 1.46; }
.native-automation-reason { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .48rem; align-items: start; margin-top: .12rem; }
.native-automation-reason strong { padding: .27rem .42rem; border-radius: 999px; color: var(--decision-ink); background: color-mix(in srgb,var(--decision-ink) 10%,#fff); font-size: .48rem; font-weight: 670; white-space: nowrap; }
.native-automation-reason span { color: #5e6570; font-size: .52rem; line-height: 1.45; }
.native-automation-meta { min-width: 0; display: grid; gap: .42rem; margin: 0; }
.native-automation-meta > div { display: grid; grid-template-columns: 4.2rem minmax(0,1fr); gap: .55rem; }
.native-automation-meta dt { color: var(--ops-faint); font-size: .5rem; }
.native-automation-meta dd { margin: 0; color: #505762; font-size: .52rem; line-height: 1.4; }
.native-automation-meta dd[data-pipeline-state] { width: max-content; max-width: 100%; padding: .24rem .4rem; border-radius: 999px; font-weight: 650; }
.native-automation-meta dd[data-pipeline-state="connected"] { color: #137054; background: #eaf8f2; }
.native-automation-meta dd[data-pipeline-state="partial"] { color: #315ec9; background: #edf3ff; }
.native-automation-meta dd[data-pipeline-state="parallel"] { color: #6c4fc1; background: #f0ecff; }
.native-automation-meta dd[data-pipeline-state="legacy"] { color: #a7493d; background: #fff0ed; }
.native-automation-meta dd[data-risk="high"] { color: #a7493d; font-weight: 630; }
.native-automation-row > .button { align-self: center; min-height: 2.2rem; padding-inline: .6rem; font-size: .51rem; }

.creative-systems-toolbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(11rem,16rem) auto;
  align-items: end;
  gap: .9rem;
  margin-bottom: .8rem;
  padding: 1rem;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.creative-systems-toolbar > div { display: grid; gap: .18rem; }
.creative-systems-toolbar > div > span,
.creative-systems-toolbar label > span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; letter-spacing: .09em; text-transform: uppercase; }
.creative-systems-toolbar strong { font-size: .86rem; font-weight: 640; letter-spacing: -.02em; }
.creative-systems-toolbar small { color: var(--ops-muted); font-size: .58rem; }
.creative-systems-toolbar label { display: grid; gap: .3rem; }
.creative-systems-toolbar select { min-height: 2.55rem; padding: .55rem .7rem; border: 1px solid var(--ops-line-strong); border-radius: .68rem; color: var(--ops-ink); background: #fff; }
.creative-systems-toolbar .button { min-height: 2.55rem; }

.creative-systems-summary {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: hidden;
  margin-bottom: .8rem;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
}
.creative-systems-summary:empty { display: none; }
.creative-systems-summary article { min-height: 5.5rem; display: grid; align-content: center; gap: .16rem; padding: .85rem 1rem; border-right: 1px solid var(--ops-line); }
.creative-systems-summary article:last-child { border-right: 0; }
.creative-systems-summary span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .48rem; letter-spacing: .08em; text-transform: uppercase; }
.creative-systems-summary strong { font-size: 1.15rem; font-weight: 640; letter-spacing: -.025em; }
.creative-systems-summary small { color: var(--ops-muted); font-size: .52rem; }

.creative-systems-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.creative-system-card { --creative-tint: #edf3ff; min-width: 0; overflow: hidden; border: 1px solid var(--ops-line); border-radius: 1rem; background: #fff; box-shadow: var(--soft-shadow); }
.creative-system-card[data-creative-type="brand_kit"] { --creative-tint: #f1efff; }
.creative-system-card[data-creative-type="carousel"] { --creative-tint: #fff1ea; }
.creative-system-card[data-creative-type="static"] { --creative-tint: #edf8f4; }
.creative-system-card[data-creative-type="cover"] { --creative-tint: #fff0f5; }
.creative-system-card[data-creative-type="reel"] { --creative-tint: #edf3ff; }
.creative-system-preview { position: relative; min-height: 9rem; display: grid; place-items: center; overflow: hidden; background: var(--creative-tint); }
.creative-system-preview::after { content: ""; position: absolute; right: 1rem; bottom: 1rem; width: 2.5rem; height: .38rem; border-radius: 99px; background: rgba(255,255,255,.86); }
.creative-system-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creative-system-preview > span { position: relative; z-index: 1; display: grid; justify-items: center; gap: .35rem; }
.creative-system-preview > span i { width: 3.1rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: .85rem; color: #22262d; background: rgba(255,255,255,.8); box-shadow: 0 8px 30px rgba(25,28,34,.06); font-size: 1rem; font-style: normal; font-weight: 680; }
.creative-system-preview > span small { color: #626a75; font-family: "Ops Mono",ui-monospace,monospace; font-size: .48rem; letter-spacing: .08em; text-transform: uppercase; }
.creative-system-preview > em { position: absolute; z-index: 2; top: .7rem; left: .7rem; padding: .35rem .5rem; border-radius: 999px; font-size: .5rem; font-style: normal; font-weight: 650; }
.creative-system-preview > em[data-review-tone="approved"] { color: #167453; background: #eaf8f2; }
.creative-system-preview > em[data-review-tone="candidate"] { color: #6448c8; background: #f0ecff; }
.creative-system-preview > em[data-review-tone="changes"] { color: #bd5144; background: #fff0ed; }
.creative-system-body { display: grid; gap: .7rem; padding: .9rem; }
.creative-system-topline { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.creative-system-topline span,.creative-system-topline strong { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .48rem; font-weight: 620; letter-spacing: .07em; text-transform: uppercase; }
.creative-system-body h2 { margin: -.15rem 0 0; font-size: .9rem; font-weight: 640; letter-spacing: -.025em; line-height: 1.15; }
.creative-system-body > p { min-height: 2.6rem; margin: 0; color: var(--ops-muted); font-size: .61rem; line-height: 1.45; }
.creative-system-meta { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--ops-line); }
.creative-system-meta > div { min-width: 0; display: grid; grid-template-columns: 5.7rem minmax(0,1fr); gap: .65rem; padding: .5rem 0; border-bottom: 1px solid var(--ops-line); }
.creative-system-meta dt { color: var(--ops-faint); font-size: .53rem; }
.creative-system-meta dd { min-width: 0; overflow: hidden; margin: 0; color: #4a515c; font-size: .54rem; font-weight: 590; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.creative-system-meta dd[data-automation-tone] { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.creative-system-meta dd[data-automation-tone] i { width: .42rem; height: .42rem; border-radius: 50%; background: #a2a8b1; }
.creative-system-meta dd[data-automation-tone="running"] i { background: #25b77b; box-shadow: 0 0 0 4px #eaf8f2; }
.creative-system-meta dd[data-automation-tone="paused"] i { background: #e9a73e; box-shadow: 0 0 0 4px #fff6e8; }
.creative-system-body footer { display: flex; gap: .45rem; }
.creative-system-body footer .button { flex: 1; min-height: 2.35rem; }

.creative-system-modal { width: min(72rem,calc(100vw - 2rem)); }
.creative-system-editor { width: min(72rem,calc(100vw - 2rem)); max-width: none; max-height: min(92vh,70rem); overflow: auto; }
.creative-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-right: 2rem; }
.creative-editor-heading h2 { margin-top: .25rem; font-size: 1.35rem; }
.creative-editor-heading > span { padding: .38rem .52rem; border-radius: 999px; color: #6448c8; background: #f0ecff; font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; }
.creative-editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-top: 1rem; }
.creative-editor-wide { grid-column: 1 / -1; }
.creative-system-editor :is(input,select,textarea) { border-color: var(--ops-line-strong); border-radius: .68rem; color: var(--ops-ink); background: #fff; }
.creative-markdown-editor { margin: .8rem 0; overflow: hidden; border: 1px solid var(--ops-line-strong); border-radius: .8rem; background: #fff; }
.creative-markdown-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-bottom: 1px solid var(--ops-line); background: #f8f9fa; }
.creative-markdown-editor > header > div:first-child { display: grid; gap: .12rem; }
.creative-markdown-editor > header span { font-size: .64rem; font-weight: 650; }
.creative-markdown-editor > header small { color: var(--ops-muted); font-size: .54rem; }
.creative-markdown-editor > header > div:last-child { display: flex; gap: .4rem; }
.creative-upload-button { position: relative; overflow: hidden; cursor: pointer; }
.creative-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.creative-markdown-editor textarea { width: 100%; min-height: 25rem; padding: .9rem; border: 0; border-radius: 0; outline: 0; resize: vertical; color: #303640; background: #fff; font-family: "Ops Mono",ui-monospace,monospace; font-size: .65rem; line-height: 1.55; }

@media (max-width: 1050px) {
  .automation-control > header { grid-template-columns: minmax(0,1fr); }
  .native-automation-row { grid-template-columns: 5rem minmax(0,1fr) minmax(16rem,.8fr); }
  .native-automation-row > .button { grid-column: 2; justify-self: start; }
  .creative-systems-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .creative-systems-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .creative-systems-summary article:nth-child(2) { border-right: 0; }
  .creative-systems-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--ops-line); }
}

@media (max-width: 720px) {
  .automation-control-filters,.native-automation-summary { grid-template-columns: minmax(0,1fr); }
  .native-automation-summary article { border-right: 0; border-bottom: 1px solid var(--ops-line); }
  .native-automation-summary article:last-child { border-bottom: 0; }
  .native-automation-row { grid-template-columns: minmax(0,1fr); gap: .7rem; }
  .native-automation-row > .button { grid-column: 1; }
  .native-automation-topline { align-items: flex-start; flex-direction: column; }
  .native-automation-meta > div { grid-template-columns: 4.5rem minmax(0,1fr); }
  .creative-systems-toolbar { grid-template-columns: minmax(0,1fr); }
  .creative-systems-grid,.creative-systems-summary,.creative-editor-grid { grid-template-columns: minmax(0,1fr); }
  .creative-systems-summary article { border-right: 0; border-bottom: 1px solid var(--ops-line); }
  .creative-systems-summary article:last-child { border-bottom: 0; }
  .creative-editor-wide { grid-column: 1; }
  .creative-markdown-editor > header { align-items: flex-start; flex-direction: column; }
}

/* One shared workflow language */
body[data-role] .status-pill {
  border: 0;
  border-radius: 999px;
  font-family: "Ops Mono",ui-monospace,monospace;
  font-size: .54rem;
  font-weight: 650;
  letter-spacing: .035em;
}

body[data-role] :is(.status-review,.status-pending,.status-rebuilding) { color: #6448c8; background: #f0ecff; }
body[data-role] :is(.status-attention,.status-failed,.status-changes) { color: #bd5144; background: #fff0ed; }
body[data-role] :is(.status-upcoming,.status-scheduled,.status-publishing) { color: #315ec9; background: #edf3ff; }
body[data-role] :is(.status-published,.status-live,.status-completed) { color: #167453; background: #eaf8f2; }

/* Account popover behaves like a compact utility menu, not another page. */
body[data-role] .account-trigger {
  border-color: transparent;
  background: transparent;
}

body[data-role] .account-trigger:hover { background: #f5f6f8; }

body[data-role] .account-popover {
  width: min(20rem,calc(100vw - 1.5rem));
  padding: .75rem;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16,18,22,.14);
}

body[data-role] .account-popover-header {
  margin: 0;
  padding: .35rem .35rem .8rem;
  border-bottom: 1px solid var(--ops-line);
}

body[data-role] .brand-switcher-label {
  margin: .7rem 0;
  padding: 0 .2rem;
}

body[data-role] .brand-switcher-label > span {
  color: var(--ops-faint);
  font-family: "Ops Mono",ui-monospace,monospace;
  font-size: .53rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-role] .brand-switcher { min-height: 2.6rem; margin-top: .35rem; }
body[data-role] .account-actions { display: grid; gap: .16rem; }

body[data-role] .account-actions button {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: .4rem .5rem;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  text-align: left;
}

body[data-role] .account-actions button:hover,
body[data-role] .account-actions button:focus-visible { background: #f5f6f8; }
body[data-role] .account-actions button > small { display: none; }
body[data-role] .account-action-label { color: #3f454e; font-size: .68rem; font-weight: 590; }
body[data-role] .account-action-icon { color: #68707b; background: #f0f2f5; }
body[data-role] .account-signout { margin-top: .55rem; padding: .7rem .5rem .2rem; border-top: 1px solid var(--ops-line); color: #8a4040; font-size: .66rem; }

/* Quiet secondary pages */
.settings-profile-card { min-height: 11rem; background: #fff; }
.settings-panel,.billing-records,.billing-upload { padding: 1.1rem; }
.settings-permissions span { color: #555d68; background: #f6f7f9; }
.social-profile-stage { border-color: var(--ops-line); background: #eef0f4; }
.social-profile-avatar { background: #eef1ff; }
.agreement-value-card::before { width: 7rem; height: 7rem; top: -2rem; right: -1.5rem; background: rgba(255,130,111,.18); filter: none; }
.agreement-value-card::after { width: 5rem; height: 5rem; top: 2.5rem; right: 4rem; background: rgba(91,131,255,.14); filter: none; }
.agreement-progress i { background: var(--ops-publishing); }
.agreement-included { color: #6448c8; background: #f0ecff; }

.analytics-grid .metric-card,
.analytics-metrics .metric-card { position: relative; overflow: hidden; }
.analytics-grid .metric-card::before,
.analytics-metrics .metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--metric-tone,var(--ops-publishing)); }
.analytics-grid .metric-card:nth-child(2),.analytics-metrics .metric-card:nth-child(2) { --metric-tone: var(--ops-decision); }
.analytics-grid .metric-card:nth-child(3),.analytics-metrics .metric-card:nth-child(3) { --metric-tone: var(--ops-results); }
.analytics-grid .metric-card:nth-child(4),.analytics-metrics .metric-card:nth-child(4) { --metric-tone: var(--ops-messages); }

.agency-rework-review { display: grid; gap: .7rem; margin-top: 1rem; padding: 1rem; border: 1px solid #d9dbe0; border-radius: .85rem; background: #f8f9fa; }
.agency-rework-heading { display: flex; align-items: start; justify-content: space-between; gap: .7rem; }
.agency-rework-heading span,.agency-rework-review label { display: grid; gap: .28rem; color: #616975; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.agency-rework-heading strong { display: block; margin-top: .2rem; color: #242931; font-size: .88rem; letter-spacing: normal; text-transform: none; }
.agency-rework-heading em { flex: 0 0 auto; padding: .28rem .45rem; border-radius: 999px; color: #49674f; background: #e4f0e6; font-size: .62rem; font-style: normal; font-weight: 700; }
.agency-rework-review textarea,.agency-rework-review select { width: 100%; border: 1px solid #cfd4dc; border-radius: .55rem; background: #fff; color: #29303a; font: inherit; font-size: .78rem; letter-spacing: normal; line-height: 1.45; text-transform: none; }
.agency-rework-review textarea { min-height: 9rem; padding: .7rem; resize: vertical; }
.agency-rework-review select { min-height: 2.55rem; padding: 0 .65rem; }
.agency-rework-note { margin: 0; color: #5e6670; font-size: .74rem; line-height: 1.45; }
.agency-rework-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.agency-rework-actions .button { min-height: 2.5rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.rework-path-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.rework-path { min-width: 0; display: flex; flex-direction: column; gap: .7rem; padding: .85rem; border: 1px solid #dfe2e7; border-radius: .75rem; background: #fff; }
.rework-path[data-path-tone="upload"] { border-color: rgba(70,116,255,.28); background: linear-gradient(145deg,#fff 0%,#f6f8ff 100%); }
.rework-path > div { display: grid; gap: .24rem; }
.rework-path > div > span { color: #737b87; font: 650 .54rem/1 "Ops Mono",ui-monospace,monospace; letter-spacing: .09em; text-transform: uppercase; }
.rework-path > div > strong { color: #20252c; font-size: .8rem; line-height: 1.25; }
.rework-path > div > p { margin: 0; color: #68707c; font-size: .64rem; line-height: 1.45; }
.rework-path > label { margin-top: auto; font-size: .56rem; }
.rework-path > .button { width: 100%; min-height: 2.55rem; margin-top: auto; white-space: normal; }
.rework-path .rework-production-grid { grid-template-columns: minmax(0,1fr); }

/* Rework console: one source, one preflight, one guarded generation. */
.change-card-visual { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--ops-line); background: #fbfbfc; }
.change-card-visual .change-card-media { flex: 1 1 auto; border-right: 0; }
.rework-assets { display: grid; gap: .45rem; padding: .75rem; border-top: 1px solid var(--ops-line); }
.rework-assets > span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .5rem; letter-spacing: .09em; text-transform: uppercase; }
.rework-asset-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(3.7rem,1fr)); gap: .42rem; }
.rework-asset-strip > span { position: relative; min-height: 3.7rem; overflow: hidden; border: 1px solid var(--ops-line); border-radius: .55rem; background: #eef0f4; }
.rework-asset-strip :is(img,video) { width: 100%; height: 100%; min-height: 3.7rem; display: block; object-fit: cover; }
.rework-asset-strip i { position: absolute; right: .22rem; bottom: .22rem; padding: .16rem .25rem; border-radius: .3rem; color: #fff; background: rgba(11,14,18,.72); font-size: .45rem; font-style: normal; }
.rework-assets-empty { margin: 0; color: #9a4c42; font-size: .64rem; line-height: 1.4; }
.rework-production-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; }
.rework-preflight-empty,.rework-preflight { display: grid; gap: .65rem; padding: .75rem; border: 1px solid var(--ops-line); border-radius: .7rem; background: #fff; }
.rework-preflight-empty { grid-template-columns: auto minmax(0,1fr); align-items: center; color: #69717c; }
.rework-preflight-empty > i { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: #f0f2f5; font-style: normal; }
.rework-preflight-empty span { display: grid; gap: .12rem; }
.rework-preflight-empty strong { color: #303640; font-size: .7rem; }
.rework-preflight-empty small { font-size: .62rem; line-height: 1.35; }
.rework-preflight { border-left: 3px solid #9aa2ad; }
.rework-preflight[data-preflight-tone="ready"] { border-left-color: #2b7f61; }
.rework-preflight[data-preflight-tone="active"] { border-left-color: #376ee6; }
.rework-preflight[data-preflight-tone="blocked"] { border-left-color: #c35c4e; }
.rework-preflight[data-preflight-tone="complete"] { border-left-color: #6d52d2; }
.rework-preflight-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.rework-preflight-head > span { display: inline-flex; align-items: center; gap: .42rem; color: #343a44; font-size: .7rem; font-weight: 700; }
.rework-preflight-head > span i { width: .48rem; height: .48rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb,currentColor 10%,transparent); }
.rework-preflight-head > strong { color: #5e6671; font-size: .62rem; font-weight: 620; }
.rework-preflight dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin: 0; }
.rework-preflight dl > div { display: grid; gap: .12rem; padding: .5rem; border-radius: .5rem; background: #f5f6f8; }
.rework-preflight dt { color: #7a828e; font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; }
.rework-preflight dd { margin: 0; color: #343a44; font-size: .64rem; font-weight: 620; }
.rework-preflight > p { margin: 0; color: #6c7480; font-size: .64rem; line-height: 1.4; }
.rework-credit-consent { grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .45rem; padding: .6rem; border-radius: .55rem; color: #434a54 !important; background: #f7f8fa; font-size: .64rem !important; font-weight: 560 !important; letter-spacing: normal !important; line-height: 1.4; text-transform: none !important; }
.rework-credit-consent input { width: 1rem; height: 1rem; margin: .08rem 0 0; accent-color: #11151a; }
.rework-preflight > .button { justify-self: start; min-height: 2.35rem; }

/* Agency home is an operating surface; navigation already names the page. */
body[data-role="agency"] [data-panel="brands"] > .view-heading { display: none; }
body[data-role="agency"] [data-panel="brands"] { padding-top: .15rem; }
body[data-role="agency"] .agency-summary strong { font-size: clamp(1.8rem,2.6vw,2.55rem); line-height: .95; }
body[data-role="agency"] .brand-overview { gap: .75rem; margin-top: .9rem; }
body[data-role="agency"] .brand-card { display: block; overflow: hidden; border-radius: 1rem; background: #fff; }
body[data-role="agency"] .brand-card-open { width: 100%; min-height: 12rem; display: grid; grid-template-columns: minmax(7rem,.48fr) minmax(0,1fr); padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
body[data-role="agency"] .brand-card-open:disabled { cursor: not-allowed; opacity: .55; }
body[data-role="agency"] .brand-card-open:focus-visible { outline: 3px solid rgba(55,110,230,.28); outline-offset: -3px; }
body[data-role="agency"] .brand-card-open:hover .brand-card-cta i { transform: translateX(.22rem); }
body[data-role="agency"] .brand-card-mark { min-height: 12rem; }
body[data-role="agency"] .brand-card-body { min-width: 0; padding: .9rem 1rem; }
body[data-role="agency"] .brand-card h2 { margin: .65rem 0 .85rem; font-size: 1.15rem; font-weight: 630; letter-spacing: -.035em; }
body[data-role="agency"] .brand-card-metrics { gap: .45rem; margin-bottom: .7rem; }
body[data-role="agency"] .brand-card-metrics strong { font-size: .9rem; }
body[data-role="agency"] .brand-rework-summary { margin: 0 0 .6rem; font-size: .58rem; }
.brand-card-cta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; padding-top: .65rem; border-top: 1px solid var(--ops-line); color: #4d5561; font-size: .64rem; font-weight: 620; }
.brand-card-cta i { font-size: .85rem; font-style: normal; transition: transform .2s ease; }

@media (min-width: 1100px) {
  body[data-role] .app-header { left: .8rem; top: .8rem; bottom: .8rem; width: 14rem; height: calc(100vh - 1.6rem); border-radius: 1.1rem; }
  body[data-role] main { width: min(1320px,calc(100vw - 17rem)); margin-left: 15.4rem; padding-right: 1.2rem; padding-left: 1.2rem; }
}

@media (max-width: 900px) {
  .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-metrics a:nth-child(2) { border-right: 0; }
  .dashboard-metrics a:nth-child(-n+2) { border-bottom: 1px solid var(--ops-line); }
  .dashboard-layout { grid-template-columns: minmax(0,1fr); }
  .agency-alert-list { grid-template-columns: minmax(0,1fr); }
  .agency-alert-list > button { border-right: 0; }
  .rework-path-grid { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 620px) {
  body[data-role] .app-shell { width: 100%; }
  body[data-role] .app-header,
  body[data-role="agency"] .app-header { position: static; margin: .5rem; width: calc(100% - 1rem); border-radius: .9rem; }
  body[data-role] main { padding: 1.5rem .75rem 6.8rem; }
  body[data-role] .view-heading { grid-template-columns: minmax(0,1fr); gap: .6rem; margin-bottom: 1rem; }
  body[data-role] .view-heading h1 { font-size: 2.15rem; }
  body[data-role] .view-summary { justify-self: start; font-size: .7rem; }
  body[data-role] .primary-nav { position: fixed; z-index: 45; right: .5rem; bottom: .5rem; left: .5rem; width: auto; display: flex; justify-content: space-around; gap: .1rem; padding: .38rem; overflow-x: auto; border: 1px solid var(--ops-line); border-radius: 1rem; background: rgba(255,255,255,.96); box-shadow: 0 16px 44px rgba(16,18,22,.16); backdrop-filter: blur(18px); }
  body[data-role] .nav-item { flex: 1 0 3.75rem; min-width: 3.75rem; min-height: 3rem; display: grid; justify-items: center; gap: .12rem; padding: .28rem .2rem; font-size: .54rem; }
  body[data-role] .nav-icon { display: grid; width: 1.5rem; height: 1.5rem; }
  body[data-role] .nav-icon svg { width: .9rem; height: .9rem; }
  body[data-role] .nav-item.is-active::before { top: auto; right: .7rem; bottom: -.15rem; left: .7rem; width: auto; height: 2px; }
  body[data-role] .nav-count { position: absolute; top: .1rem; right: .15rem; min-width: 1rem; min-height: 1rem; padding: 0 .25rem; font-size: .47rem; }
  .rework-production-grid,.rework-preflight dl { grid-template-columns: minmax(0,1fr); }
  .change-card-visual { border-right: 0; border-bottom: 1px solid var(--ops-line); }
  body[data-role="agency"] .brand-card-open { grid-template-columns: minmax(0,1fr); }
  body[data-role="agency"] .brand-card-mark { min-height: 7rem; border-right: 0; border-bottom: 1px solid var(--ops-line); }
  .dashboard-metrics { grid-template-columns: minmax(0,1fr); }
  .dashboard-metrics a { min-height: 4.25rem; border-right: 0; border-bottom: 1px solid var(--ops-line); }
  .dashboard-metrics a:nth-child(-n+2) { border-bottom: 1px solid var(--ops-line); }
  .dashboard-metrics a:last-child { border-bottom: 0; }
  .dashboard-card { min-height: 0; }
  .dashboard-message-item time { display: none; }
  .agency-operation-card { grid-template-columns: 3rem minmax(0,1fr); }
  .agency-operation-card > button { grid-column: 1 / -1; width: 100%; }
  .account-popover { position: fixed !important; right: .5rem !important; bottom: 5.2rem !important; left: .5rem !important; width: auto !important; }
}

/* Signal room: live analytics + refined motion ------------------------- */
body[data-role] [data-panel="analytics"] .view-heading { margin-bottom: 1.15rem; }
body[data-role] [data-panel="analytics"] .analytics-actions { align-self: end; }

.analytics-live-hero {
  position: relative;
  isolation: isolate;
  min-height: 20rem;
  display: grid;
  grid-template-columns: minmax(16rem,.8fr) minmax(24rem,1.2fr);
  align-items: stretch;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 8% 8%, rgba(130,225,255,.34), transparent 32%),
    radial-gradient(circle at 70% 15%, rgba(197,171,255,.28), transparent 30%),
    radial-gradient(circle at 92% 86%, rgba(255,176,196,.3), transparent 34%),
    radial-gradient(circle at 32% 100%, rgba(255,211,142,.27), transparent 33%),
    linear-gradient(#fbfcff,#f7f8fc) padding-box,
    linear-gradient(120deg,#d9f7ff,#f3dfff,#fff,#ffc9dc,#ffe5bd) border-box;
  box-shadow: 0 1px 2px rgba(16,18,22,.03), 0 24px 70px rgba(67,80,116,.11);
}
.analytics-live-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 26%;
  height: 180%;
  top: -40%;
  left: -38%;
  transform: rotate(16deg);
  background: rgba(255,255,255,.58);
  filter: blur(18px);
  animation: analytics-sheen 9s ease-in-out infinite;
}
.analytics-live-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem,2.5vw,1.8rem);
}
.analytics-live-status { display: flex; align-items: center; gap: .42rem; margin-bottom: auto; color: #535c68; font-size: .57rem; font-weight: 630; }
.analytics-live-status i { width: .48rem; aspect-ratio: 1; border-radius: 50%; background: #20b77d; box-shadow: 0 0 0 5px rgba(32,183,125,.12); animation: analytics-pulse 2.6s ease-in-out infinite; }
.analytics-live-status em { margin-left: auto; padding: .3rem .45rem; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; color: #626b77; background: rgba(255,255,255,.52); font-style: normal; backdrop-filter: blur(12px); }
.analytics-live-copy > .eyebrow { margin-top: 2rem; }
.analytics-live-copy h2 { display: grid; gap: .25rem; margin: .35rem 0 .8rem; }
.analytics-live-copy h2 strong { color: #0c0e12; font-size: clamp(3.6rem,7vw,6.5rem); font-weight: 540; letter-spacing: -.075em; line-height: .86; }
.analytics-live-copy h2 span { color: #303742; font-size: .78rem; font-weight: 630; }
.analytics-live-copy > p:not(.eyebrow) { max-width: 34rem; margin: 0; color: #646d79; font-size: .66rem; line-height: 1.55; }
.analytics-freshness { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid rgba(28,34,44,.08); }
.analytics-freshness span { color: #7a828d; font-size: .53rem; }
.analytics-freshness strong { color: #444c57; font-size: .55rem; font-weight: 620; }

.analytics-live-hero .connected-accounts {
  align-self: stretch;
  margin: 0;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.68) !important;
  border-radius: 1rem;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 16px 42px rgba(51,62,91,.08) !important;
  backdrop-filter: blur(20px) saturate(130%);
}
.analytics-live-hero .connected-accounts-heading { margin-bottom: .75rem; }
.analytics-live-hero .connected-accounts-heading h2 { font-size: 1rem !important; letter-spacing: -.025em; }
.analytics-live-hero .connected-account-grid { grid-template-columns: minmax(0,1fr); gap: .45rem; }
.analytics-live-hero .connected-account {
  min-height: 4.2rem;
  padding: .65rem;
  border-color: rgba(31,38,50,.075);
  border-radius: .78rem;
  background: rgba(255,255,255,.64);
  box-shadow: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.analytics-live-hero .connected-account:hover { transform: translateY(-2px); border-color: rgba(91,131,255,.25); background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(49,61,91,.09); }

body[data-role] [data-panel="analytics"] .analytics-metrics {
  gap: .7rem;
  margin: .85rem 0;
  background: transparent;
}
body[data-role] [data-panel="analytics"] .metric-card {
  min-height: 10.2rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--ops-line) !important;
  border-radius: 1.05rem;
  background: rgba(255,255,255,.92);
  box-shadow: var(--soft-shadow);
  animation: analytics-card-in .5s cubic-bezier(.22,.8,.25,1) both;
  transition: transform .28s cubic-bezier(.22,.8,.25,1), box-shadow .28s ease, border-color .28s ease;
}
body[data-role] [data-panel="analytics"] .metric-card:nth-child(2) { animation-delay: .04s; }
body[data-role] [data-panel="analytics"] .metric-card:nth-child(3) { animation-delay: .08s; }
body[data-role] [data-panel="analytics"] .metric-card:nth-child(4) { animation-delay: .12s; }
body[data-role] [data-panel="analytics"] .metric-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--metric-tone) 36%,#fff) !important; box-shadow: 0 22px 46px rgba(42,51,71,.11), 0 0 30px color-mix(in srgb,var(--metric-tone) 10%,transparent); }
body[data-role] [data-panel="analytics"] .metric-card::before { inset: 0 1rem auto !important; width: auto !important; height: 2px; border-radius: 0 0 999px 999px; }
body[data-role] [data-panel="analytics"] .metric-card::after { width: 7rem; height: 7rem; top: -3.5rem; right: -2rem; opacity: .22; filter: blur(16px); transition: transform .35s ease, opacity .35s ease; }
body[data-role] [data-panel="analytics"] .metric-card:hover::after { transform: scale(1.18); opacity: .32; }
body[data-role] [data-panel="analytics"] .metric-value { font-family: "Ops Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: clamp(2.4rem,4vw,4rem); font-weight: 560; letter-spacing: -.065em; line-height: .9; }
body[data-role] [data-panel="analytics"] .metric-context { max-width: 18rem; color: #747c87; font-size: .59rem; line-height: 1.4; }

.analytics-insight-grid { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: .75rem; }
.analytics-insight-panel { min-width: 0; padding: 1.15rem; border: 1px solid var(--ops-line); border-radius: 1.1rem; background: #fff; box-shadow: var(--soft-shadow); }
.analytics-insight-panel > header,.analytics-insight-panel .format-performance-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--ops-line); }
.analytics-insight-panel > header h2,.analytics-insight-panel .format-performance-heading h2 { margin: .2rem 0 0; font-size: 1.05rem !important; font-weight: 640; letter-spacing: -.03em; }
.analytics-insight-panel > header > span { padding: .3rem .45rem; border-radius: 999px; color: #5d6672; background: #f2f4f7; font-size: .54rem; font-weight: 630; }
.analytics-insight-panel .format-performance-heading > p { max-width: 17rem; margin: 0; color: #7a828d; font-size: .57rem; line-height: 1.45; text-align: right; }
.analytics-insight-panel .format-performance-grid { display: grid; gap: .55rem; }
.analytics-insight-panel .format-card { padding: .75rem; border: 1px solid var(--ops-line); border-radius: .8rem; background: #fafbfc; }
.analytics-insight-panel.performance-list { padding: 1.15rem; background: #fff; }
.analytics-insight-panel .performance-row { padding: .8rem 0; }
.analytics-insight-panel .performance-row:last-child { padding-bottom: 0; }

.analytics-awaiting { position: relative; min-height: 13.5rem; display: grid; align-content: end; gap: .35rem; overflow: hidden; padding: 1rem; border: 1px solid #edf0f4; border-radius: .9rem; color: #636c78; background: linear-gradient(180deg,#fbfcfe,#f6f8fb); }
.analytics-awaiting.compact { min-height: 13.5rem; }
.analytics-awaiting strong { color: #242a33; font-size: .72rem; font-weight: 640; }
.analytics-awaiting p { max-width: 30rem; margin: 0; font-size: .6rem; line-height: 1.5; }
.analytics-scan { position: absolute; top: 1.1rem; right: 1rem; bottom: 4.8rem; left: 1rem; overflow: hidden; border-radius: .65rem; background: repeating-linear-gradient(0deg,transparent 0 1.35rem,rgba(61,72,91,.055) 1.35rem calc(1.35rem + 1px)); }
.analytics-scan::before { content: ""; position: absolute; right: 0; left: 0; top: 50%; height: 2px; background: linear-gradient(90deg,transparent,#7ddfff 22%,#ac8cff 52%,#ff9dba 78%,transparent); box-shadow: 0 0 18px rgba(125,191,255,.45); animation: analytics-scan 3.8s ease-in-out infinite; }
.analytics-method-note { display: flex; align-items: center; gap: .8rem; margin-top: .75rem; padding: .75rem 1rem; border: 1px solid var(--ops-line); border-radius: .85rem; color: #6e7681; background: rgba(255,255,255,.72); font-size: .57rem; }
.analytics-method-note span { flex: 0 0 auto; color: #4f5762; font-family: "Ops Mono",ui-monospace,monospace; font-size: .48rem; letter-spacing: .07em; text-transform: uppercase; }
.analytics-method-note p { margin: 0; line-height: 1.45; }
.agency-analytics-hero { margin-bottom: .85rem; }
.agency-analytics-hero .analytics-live-copy h2 strong { font-size: clamp(2.65rem,5.2vw,5.2rem); line-height: .92; }
.agency-pulse-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; align-content: stretch; padding: .2rem; }
.agency-pulse-grid article { position: relative; min-height: 8.4rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1rem; border: 1px solid rgba(255,255,255,.76); border-radius: .9rem; background: rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.92),0 12px 32px rgba(57,69,98,.07); backdrop-filter: blur(16px); transition: transform .28s cubic-bezier(.22,.8,.25,1),box-shadow .28s ease; }
.agency-pulse-grid article:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95),0 18px 42px rgba(57,69,98,.11); }
.agency-pulse-grid span { color: #67707c; font-family: "Ops Mono",ui-monospace,monospace; font-size: .49rem; letter-spacing: .07em; text-transform: uppercase; }
.agency-pulse-grid strong { color: #111419; font-size: clamp(2rem,3.3vw,3.25rem); font-weight: 550; letter-spacing: -.06em; line-height: .9; }
.agency-pulse-grid small { color: #7b838e; font-size: .54rem; }
.agency-pulse-grid article:nth-child(1)::after,.agency-pulse-grid article:nth-child(2)::after,.agency-pulse-grid article:nth-child(3)::after,.agency-pulse-grid article:nth-child(4)::after { content:""; position:absolute; width:4.5rem; height:4.5rem; top:-2.4rem; right:-1.5rem; border-radius:50%; background:rgba(109,209,255,.2); filter:blur(12px); }
.agency-pulse-grid article:nth-child(2)::after { background:rgba(176,143,255,.19); }
.agency-pulse-grid article:nth-child(3)::after { background:rgba(255,150,183,.19); }
.agency-pulse-grid article:nth-child(4)::after { background:rgba(255,193,115,.2); }

/* Accurate social profile surface */
.social-profile-stage { background: radial-gradient(circle at 14% 12%,rgba(123,222,255,.23),transparent 30%),radial-gradient(circle at 86% 82%,rgba(255,143,182,.2),transparent 31%),#f4f6fa; }
.social-phone { border-color: #171a20; box-shadow: 0 34px 80px rgba(25,31,45,.22),-22px 16px 58px rgba(116,207,255,.12),22px 16px 58px rgba(255,133,178,.1); transition: transform .45s cubic-bezier(.22,.8,.25,1),box-shadow .45s ease; }
.social-phone:hover { transform: translateY(-5px) rotateX(.35deg); box-shadow: 0 42px 95px rgba(25,31,45,.25),-28px 18px 70px rgba(116,207,255,.16),28px 18px 70px rgba(255,133,178,.14); }
.social-profile-data-status { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: 0 -.15rem .7rem; padding: .4rem .5rem; border-radius: .55rem; color: #69727e; background: #f5f7fa; font-size: .48rem; }
.social-profile-data-status span { display: flex; align-items: center; gap: .35rem; font-weight: 630; }
.social-profile-data-status i { width: .38rem; aspect-ratio: 1; border-radius: 50%; background: #22b77d; box-shadow: 0 0 0 4px rgba(34,183,125,.11); animation: analytics-pulse 2.6s ease-in-out infinite; }
.social-profile-data-status time { color: #858d98; font-size: .46rem; }
.social-profile-unavailable { min-height: 10rem; display: grid; place-content: center; justify-items: center; gap: .35rem; padding: 1rem; color: #727b87; text-align: center; }
.social-profile-unavailable > span { width: 2.2rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #596573; background: #eef1f5; }
.social-profile-unavailable strong { color: #2f353e; font-size: .68rem; }
.social-profile-unavailable p { max-width: 18rem; margin: 0; font-size: .54rem; line-height: 1.45; }
.social-profile-feed-empty { min-height: 12rem; display: grid; place-content: center; gap: .3rem; padding: 1rem; color: #7a828d; text-align: center; background: #fafbfc; }
.social-profile-feed-empty[hidden] { display: none; }
.social-profile-feed-empty strong { color: #343a44; font-size: .64rem; }
.social-profile-feed-empty span { max-width: 18rem; font-size: .52rem; line-height: 1.45; }

/* Global microinteractions remain quiet outside the signal surfaces. */
body[data-role] :is(.button,.icon-button,.text-button,.nav-item,.dashboard-metrics a,.dashboard-card,.brand-card,.request-card,.billing-card,.grid-card) { transition: transform .24s cubic-bezier(.22,.8,.25,1),box-shadow .24s ease,border-color .24s ease,background-color .24s ease,color .24s ease; }
body[data-role] :is(.button,.icon-button,.text-button):hover { transform: translateY(-1px); }
body[data-role] .nav-item:hover { transform: translateX(2px); }
body[data-role] :is(.dashboard-card,.brand-card,.request-card,.billing-card,.grid-card):hover { transform: translateY(-2px); }
body[data-role] :is(.button,.icon-button,.text-button,.nav-item,a):focus-visible { outline: 2px solid rgba(91,131,255,.58); outline-offset: 3px; }

@keyframes analytics-sheen { 0%,18% { left:-38%; opacity:0; } 38%,62% { opacity:.72; } 82%,100% { left:118%; opacity:0; } }
@keyframes analytics-pulse { 0%,100% { transform:scale(.92); opacity:.8; } 50% { transform:scale(1.08); opacity:1; } }
@keyframes analytics-card-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes analytics-scan { 0%,100% { top:18%; opacity:.45; } 50% { top:78%; opacity:1; } }

@media (max-width: 900px) {
  .analytics-live-hero,.analytics-insight-grid { grid-template-columns: minmax(0,1fr); }
  .analytics-live-copy { min-height: 17rem; }
  .analytics-live-hero .connected-account-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .analytics-live-hero { padding: .6rem; border-radius: 1rem; }
  .analytics-live-copy { min-height: 15rem; padding: .9rem; }
  .analytics-live-copy h2 strong { font-size: 4rem; }
  .analytics-live-hero .connected-account-grid,body[data-role] [data-panel="analytics"] .analytics-metrics { grid-template-columns: minmax(0,1fr); }
  .analytics-insight-panel > header,.analytics-insight-panel .format-performance-heading { align-items: flex-start; flex-direction: column; }
  .analytics-insight-panel .format-performance-heading > p { text-align: left; }
  .analytics-method-note { align-items: flex-start; flex-direction: column; }
  .agency-pulse-grid { grid-template-columns: minmax(0,1fr); }
  body[data-role] .nav-item:hover { transform: none; }
}

/* Governed inline caption editing */
.caption-editor { min-width: 0; }
.caption-editor .caption-text { min-height: 10rem; }
.caption-edit-input {
  width: 100%;
  min-height: 12rem;
  resize: vertical;
  padding: 1rem;
  border: 1px solid rgba(42, 91, 255, .28);
  border-radius: .85rem;
  color: #171a20;
  background: #fbfcff;
  font: 400 .78rem/1.7 "Ops Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(78, 121, 255, .07);
}
.caption-edit-input[hidden] { display: none; }
.caption-edit-input:focus { outline: 2px solid rgba(78,121,255,.4); outline-offset: 2px; }
.caption-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .7rem; padding-top: .65rem; border-top: 1px solid rgba(20,26,38,.08); }
.caption-editor-footer > span { color: #7c8490; font-size: .55rem; line-height: 1.4; }
.caption-edit-trigger,.caption-edit-actions button { min-height: 2rem; padding: .42rem .65rem; border: 1px solid rgba(20,26,38,.11); border-radius: .62rem; color: #252b34; background: rgba(255,255,255,.92); font-size: .6rem; font-weight: 650; cursor: pointer; transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.caption-edit-trigger:hover,.caption-edit-actions button:hover { transform: translateY(-1px); border-color: rgba(78,121,255,.25); box-shadow: 0 7px 18px rgba(39,52,83,.08); }
.caption-edit-actions { display: flex; gap: .4rem; }
.caption-edit-actions[hidden] { display: none; }
.caption-edit-actions button:last-child { border-color: #161a20; color: #fff; background: #161a20; }
.caption-edit-error { min-height: 1rem; margin: .45rem 0 0; color: #b43c4c; font-size: .58rem; }
.caption-editor.is-editing .caption-editor-footer > span { color: #4b63a4; }

.platform-setup-warning { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .55rem; margin-top: .75rem; padding: .65rem .75rem; border: 1px solid rgba(224,150,45,.18); border-radius: .72rem; background: rgba(255,247,230,.72); }
.platform-setup-warning span { padding: .2rem .35rem; border-radius: 999px; color: #8a601e; background: rgba(224,150,45,.12); font: 650 .48rem/1 "Ops Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.platform-setup-warning p { margin: 0; color: #6f6250; font-size: .58rem; line-height: 1.45; }

/* Workspace is page context; account utilities stay in the sidebar profile menu. */
body[data-role] .workspace-switcher {
  width: max-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(11rem, 15rem);
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem auto;
  padding: .28rem .3rem .28rem .72rem;
  border: 1px solid var(--ops-line);
  border-radius: .82rem;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(20,26,38,.055);
  backdrop-filter: blur(18px) saturate(135%);
}

body[data-role] .workspace-switcher[hidden] { display: none !important; }
body[data-role] .workspace-switcher > span {
  color: var(--ops-faint);
  font: 650 .52rem/1 "Ops Mono",ui-monospace,monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-role] .workspace-switcher .brand-switcher {
  min-height: 2.35rem;
  margin: 0;
  padding: .48rem 2rem .48rem .7rem;
  border: 0;
  border-radius: .62rem;
  color: var(--ops-ink);
  background-color: #f3f5f7;
  font-size: .68rem;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(20,26,38,.055);
}

body[data-role] .workspace-switcher .brand-switcher:focus-visible {
  outline: 2px solid rgba(37,99,235,.38);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .caption-editor-footer { align-items: flex-start; flex-direction: column; }
  body[data-role] .workspace-switcher { width: 100%; grid-template-columns: auto minmax(0,1fr); margin-bottom: .8rem; }
}

/* Unified page mastheads: page context stays with its title; the right edge is
   reserved for controls only. */
body[data-role] .view-panel > .view-heading > .page-heading-copy > .eyebrow { display: none !important; }
body[data-role] .view-panel > .view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--ops-line);
}
body[data-role] .view-panel > .view-heading .page-heading-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 48rem);
}
body[data-role] .view-panel > .view-heading h1 {
  margin: 0;
  white-space: nowrap;
}
body[data-role] .view-panel > .view-heading .view-summary {
  width: 100%;
  max-width: 46rem;
  margin: .42rem 0 0;
  overflow: hidden;
  color: var(--ops-muted);
  font-size: .7rem;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body[data-role] [data-panel="analytics"] .analytics-actions {
  display: flex;
  flex: 0 0 auto;
  width: auto !important;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .65rem;
}
body[data-role] [data-panel="grid"] .grid-tools {
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}
body[data-role] [data-panel="grid"] .sync-notice {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 1rem;
  margin: .48rem 0 0;
  padding: 0;
  border: 0;
  color: var(--ops-muted);
  background: transparent;
  box-shadow: none;
  font-family: "Ops Mono", ui-monospace, monospace;
  font-size: .58rem;
  letter-spacing: .01em;
  line-height: 1.35;
}
body[data-role] [data-panel="grid"] .sync-notice::before {
  content: "";
  width: .42rem;
  height: .42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22b77d;
  box-shadow: 0 0 0 4px rgba(34,183,125,.1);
}
body[data-role] [data-panel="grid"] .sync-notice[data-state="loading"]::before {
  background: #7f8a98;
  box-shadow: 0 0 0 4px rgba(127,138,152,.1);
}
body[data-role] [data-panel="grid"] .sync-notice[data-state="attention"]::before {
  background: #e38755;
  box-shadow: 0 0 0 4px rgba(227,135,85,.12);
}
body[data-role] [data-panel="grid"] .sync-notice[data-state="offline"]::before {
  background: #a0a7b2;
  box-shadow: 0 0 0 4px rgba(160,167,178,.1);
}
body[data-role] .app-header .workspace-switcher {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0,1fr);
  gap: .35rem;
  margin: .15rem 0 .3rem;
  padding: .65rem;
  border-radius: .78rem;
  background: #f7f8fa;
  box-shadow: inset 0 0 0 1px rgba(20,26,38,.035);
}
body[data-role] .app-header .workspace-switcher > span { padding-inline: .1rem; }
body[data-role] .app-header .workspace-switcher .brand-switcher {
  width: 100%;
  min-width: 0;
  margin: 0;
  background-color: #fff;
}
@media (min-width: 1100px) {
  body[data-role] .app-header { grid-template-rows: auto auto minmax(0,1fr) auto; }
}
@media (max-width: 1099px) {
  body[data-role] .app-header { grid-template-areas: "brand account" "workspace workspace" "nav nav"; }
  body[data-role] .app-header .workspace-switcher { grid-area: workspace; }
}
.notification-center { position: relative; }
.notification-center > summary { list-style: none; }
.notification-center > summary::-webkit-details-marker { display: none; }
.notification-trigger {
  position: relative;
  width: 2.55rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ops-line);
  border-radius: .78rem;
  color: #59616d;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20,26,38,.045);
}
.notification-trigger svg { width: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-trigger > span { position: absolute; top: -.35rem; right: -.35rem; min-width: 1.25rem; height: 1.25rem; display: grid; place-items: center; padding: 0 .28rem; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #e45d75; font-size: .53rem; font-weight: 700; }
.notification-popover { position: absolute; z-index: 40; top: calc(100% + .65rem); right: 0; width: min(24rem, calc(100vw - 2rem)); overflow: hidden; border: 1px solid var(--ops-line); border-radius: 1rem; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(24,31,44,.16); backdrop-filter: blur(20px) saturate(130%); }
.notification-popover > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--ops-line); }
.notification-popover h2 { margin: .15rem 0 0; font-size: 1rem; letter-spacing: -.03em; }
.notification-popover > header > span { color: var(--ops-muted); font-size: .57rem; }
.notification-list { max-height: 25rem; overflow-y: auto; padding: .35rem; }
.notification-list > button { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .75rem; border: 0; border-radius: .75rem; color: var(--ops-ink); background: transparent; text-align: left; cursor: pointer; }
.notification-list > button:hover { background: #f6f7f9; }
.notification-list > button > i { width: .52rem; aspect-ratio: 1; border-radius: 50%; background: #6f8dff; box-shadow: 0 0 0 5px rgba(111,141,255,.1); }
.notification-list > button[data-tone="critical"] > i { background: #e45d75; box-shadow: 0 0 0 5px rgba(228,93,117,.1); }
.notification-list > button[data-tone="work"] > i { background: #ed9f55; box-shadow: 0 0 0 5px rgba(237,159,85,.1); }
.notification-list > button > span { min-width: 0; display: grid; gap: .2rem; }
.notification-list strong { font-size: .66rem; font-weight: 650; }
.notification-list small { color: var(--ops-muted); font-size: .56rem; line-height: 1.4; }
.notification-list b { color: var(--ops-faint); font-size: .7rem; }
.notification-empty { min-height: 9rem; display: grid; place-content: center; gap: .25rem; padding: 1rem; text-align: center; }
.notification-empty strong { color: var(--ops-ink); font-size: .7rem; }
.notification-empty span { color: var(--ops-muted); font-size: .58rem; }
.notification-popover > button { width: 100%; padding: .78rem 1rem; border: 0; border-top: 1px solid var(--ops-line); color: #4f5967; background: #fafbfc; font-size: .6rem; font-weight: 650; text-align: left; cursor: pointer; }
.decision-bar-actions-only { justify-content: flex-end; padding-top: 1rem; }

.dashboard-calendar-card { margin-top: .85rem; padding: 1.1rem; border: 1px solid var(--ops-line); border-radius: 1rem; background: #fff; box-shadow: var(--soft-shadow); }
.dashboard-calendar-card > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ops-line); }
.dashboard-calendar-card > header div { display: grid; gap: .22rem; }
.dashboard-calendar-card > header span { color: #6b74de; font-family: "Ops Mono",ui-monospace,monospace; font-size: .52rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-calendar-card > header h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.03em; }
.dashboard-calendar-card > header button { border: 0; color: var(--ops-muted); background: transparent; font-size: .61rem; font-weight: 650; cursor: pointer; }
.dashboard-calendar { display: grid; grid-template-columns: repeat(14,minmax(5.25rem,1fr)); gap: .35rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.dashboard-calendar-day { min-height: 8.8rem; overflow: hidden; border: 1px solid #edf0f4; border-radius: .78rem; background: #fafbfc; }
.dashboard-calendar-day.is-today { border-color: rgba(102,125,255,.25); background: #f7f8ff; box-shadow: inset 0 0 0 1px rgba(102,125,255,.06); }
.dashboard-calendar-day > header { display: flex; align-items: center; justify-content: space-between; padding: .55rem; border-bottom: 1px solid #edf0f4; }
.dashboard-calendar-day > header span { color: var(--ops-muted); font-size: .5rem; text-transform: uppercase; }
.dashboard-calendar-day > header strong { font-size: .72rem; }
.dashboard-calendar-day > div { min-height: 5.8rem; display: grid; align-content: start; gap: .3rem; padding: .4rem; }
.dashboard-calendar-day a { display: grid; grid-template-columns: 1.75rem minmax(0,1fr); align-items: center; gap: .35rem; color: var(--ops-muted); text-decoration: none; }
.dashboard-calendar-day a > span { width: 1.75rem; aspect-ratio: 1; overflow: hidden; border-radius: .35rem; background: #edf0f4; }
.dashboard-calendar-day a img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-calendar-day a small { font-size: .49rem; white-space: nowrap; }
.calendar-open-slot { margin: auto; color: #c5cad2; font-size: .7rem; }

[data-panel="grid"] > .view-heading { margin-bottom: .9rem; }
.publishing-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .55rem; margin: .75rem 0 1rem; }
.publishing-summary article { position: relative; min-height: 7.4rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: .85rem; border: 1px solid var(--ops-line); border-radius: .9rem; background: #fff; box-shadow: 0 10px 30px rgba(25,31,45,.045); }
.publishing-summary article::after { content:""; position:absolute; top:-2.6rem; right:-2rem; width:5.5rem; height:5.5rem; border-radius:50%; background:#d9e7ff; filter:blur(14px); opacity:.5; }
.publishing-summary article[data-tone="scheduled"]::after { background:#dce0ff; }
.publishing-summary article[data-tone="attention"]::after { background:#ffd8dc; }
.publishing-summary article[data-tone="live"]::after { background:#d7f6e8; }
.publishing-summary article[data-tone="channel"]::after { background:#ffe3cb; }
.publishing-summary span { color: var(--ops-muted); font-family:"Ops Mono",ui-monospace,monospace; font-size:.49rem; letter-spacing:.07em; text-transform:uppercase; }
.publishing-summary strong { position:relative; z-index:1; overflow:hidden; color:var(--ops-ink); font-size:clamp(1.4rem,2.4vw,2.25rem); font-weight:560; letter-spacing:-.055em; line-height:.95; text-overflow:ellipsis; }
.publishing-summary small { color:var(--ops-faint); font-size:.53rem; }
[data-panel="grid"] .grid-section { margin-top: 0; padding: 1rem; border: 1px solid var(--ops-line); border-radius: 1rem; background: #fff; box-shadow: var(--soft-shadow); }
[data-panel="grid"] .grid-section + .grid-section { margin-top: .8rem; }
[data-panel="grid"] .section-heading { margin-bottom: .9rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ops-line); }
[data-panel="grid"] .grid-section > .quiet-empty.compact { min-height: 10rem; padding: 1.5rem; }
#upcomingGrid[data-layout="cards"] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
#upcomingGrid[data-layout="operations"] { display:grid; grid-template-columns:minmax(0,1fr); gap:.5rem; }
#upcomingGrid[data-layout="cards"] .grid-card { height:100%; border-radius:.9rem; box-shadow:none; }
#upcomingGrid[data-layout="cards"] .grid-card-media { aspect-ratio:16/10; }
#upcomingGrid[data-layout="cards"] .grid-card-body { padding:.85rem; }
.publishing-grid-section .social-profile-stage { min-height: 0; padding: 1.25rem; border-radius: .9rem; background: linear-gradient(145deg,#f8f9fc 0%,#f2f5fa 55%,#fff7f5 100%); }
.publishing-grid-section .social-phone { width:min(100%,22rem); border-width:.38rem; border-radius:1.8rem; box-shadow:0 24px 60px rgba(25,31,45,.16); }
.publishing-grid-section .social-phone:hover { transform:translateY(-3px); }

.learning-loop { margin-top: .85rem; padding: 1.1rem; border: 1px solid var(--ops-line); border-radius: 1rem; background: #fff; box-shadow: var(--soft-shadow); }
.learning-loop > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ops-line); }
.learning-loop > header h2 { margin: .15rem 0 0; font-size: 1.05rem; letter-spacing: -.03em; }
.learning-loop > header > span { padding: .35rem .5rem; border-radius: 999px; color: #5f55a4; background: #f1efff; font-size: .52rem; font-weight: 650; }
.learning-loop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; }
.learning-loop-grid article { min-height: 7.5rem; display: flex; flex-direction: column; justify-content: space-between; padding: .8rem; border: 1px solid #edf0f4; border-radius: .8rem; background: #fafbfc; }
.learning-loop-grid span { color: var(--ops-muted); font-family: "Ops Mono",ui-monospace,monospace; font-size: .49rem; letter-spacing: .07em; text-transform: uppercase; }
.learning-loop-grid strong { overflow: hidden; color: var(--ops-ink); font-size: clamp(1.35rem,2.2vw,2rem); font-weight: 560; letter-spacing: -.05em; text-overflow: ellipsis; white-space: nowrap; }
.learning-loop-grid small { color: var(--ops-faint); font-size: .53rem; }
.learning-loop-notes { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: .75rem; margin-top: .7rem; }
.learning-loop-notes > div,.learning-loop-notes > ul { margin: 0; padding: .85rem; border: 1px solid #edf0f4; border-radius: .8rem; background: #fff; }
.learning-loop-notes strong { color: var(--ops-ink); font-size: .67rem; }
.learning-loop-notes p { margin: .3rem 0 0; color: var(--ops-muted); font-size: .57rem; line-height: 1.5; }
.learning-loop-notes ul { display: grid; gap: .55rem; list-style: none; }
.learning-loop-notes li + li { padding-top: .55rem; border-top: 1px solid #edf0f4; }
.learning-loop-notes li span { color: #626b77; font-size: .53rem; font-weight: 650; }
.learning-loop-empty { display: grid; place-content: center; color: var(--ops-muted); font-size: .58rem; text-align: center; }

@media (max-width: 820px) {
  .publishing-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #upcomingGrid[data-layout="cards"] { grid-template-columns:minmax(0,1fr); }
}

@media (max-width: 620px) {
  body[data-role] .view-panel > .view-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: start;
    gap: .75rem;
    padding-bottom: .9rem;
  }
  body[data-role] .view-panel > .view-heading h1 { font-size: clamp(1.8rem, 9vw, 2.15rem); }
  body[data-role] .view-panel > .view-heading .view-summary { font-size: .65rem; }
  body[data-role] [data-panel="analytics"] .analytics-actions { width: 100% !important; justify-content: flex-start; }
  body[data-role] [data-panel="grid"] > .view-heading { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  body[data-role] [data-panel="grid"] .grid-tools { grid-column: 2; grid-row: 1; width: auto; justify-content: flex-end; }
  body[data-role] .app-header .primary-nav {
    position: static;
    inset: auto;
    grid-area: nav;
    width: 100%;
    padding: .35rem;
    border-radius: .8rem;
    box-shadow: none;
  }
  .notification-popover { position:fixed; top:4.5rem; right:.75rem; left:.75rem; width:auto; }
  .publishing-summary { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .publishing-summary article { min-height:6.6rem; }
  [data-panel="grid"] .grid-section { padding:.75rem; }
  .publishing-grid-section .social-profile-stage { padding:.5rem; }
  .learning-loop-grid,.learning-loop-notes { grid-template-columns:minmax(0,1fr); }
}

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

/* Production layout lock -------------------------------------------------
   These rules intentionally sit last: they resolve legacy overrides from the
   iterative prototype without changing the product's feature structure. */
body[data-role] .view-panel > .view-heading {
  min-height: 4.75rem;
  align-items: center;
}

body[data-role] .view-panel > .view-heading h1 {
  max-width: none;
  font-size: clamp(1.8rem, 2.55vw, 2.4rem);
  line-height: .96;
}

body[data-role] .agency-operation-card > button {
  min-height: 2rem;
  padding: .4rem .58rem;
  border-color: transparent;
  color: #66707d;
  background: #f6f7f9;
  font-size: .55rem;
}

body[data-role] .agency-operation-card > button:hover,
body[data-role] .agency-operation-card > button:focus-visible {
  color: var(--ops-ink);
  background: #eef1f5;
}

body[data-role] .agency-rework-review.is-status-only {
  padding: .75rem;
  background: #fafbfc;
}

body[data-role] .change-card-media {
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: .65rem;
  background: #f5f6f8;
}

body[data-role] .change-card-media :is(img, video) {
  width: 100%;
  height: 100%;
  max-height: 30rem;
  object-fit: contain;
  border-radius: .65rem;
  background: #fff;
}

body[data-role] .analytics-live-hero {
  min-height: 17rem;
  grid-template-columns: minmax(17rem, .92fr) minmax(21rem, 1.08fr);
}

body[data-role] .analytics-live-copy {
  min-height: 15rem;
  padding: clamp(.9rem, 2vw, 1.4rem);
}

body[data-role] .analytics-live-copy > .eyebrow { margin-top: 1.15rem; }
body[data-role] .analytics-live-copy h2 strong { font-size: clamp(3rem, 5.6vw, 5.25rem); }

body[data-role] .modal-card {
  max-height: min(90vh, 54rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.agency-alert-list [data-retry-runtime-job] em {
  padding: .34rem .5rem;
  border: 1px solid rgba(180, 60, 76, .18);
  border-radius: 999px;
  color: #a63f50;
  background: #fff3f5;
  font-size: .52rem;
  font-weight: 700;
}

.settings-invite-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) minmax(10rem, 1fr) 5rem 7rem auto;
  align-items: end;
  gap: .65rem;
}
.settings-invite-form label { display: grid; gap: .35rem; color: var(--ops-muted); font-size: .58rem; }
.settings-invite-form :is(select,input) { min-width: 0; min-height: 2.65rem; padding: .62rem .7rem; border: 1px solid var(--ops-line); border-radius: .7rem; color: var(--ops-ink); background: #fff; font: inherit; }
.invite-result { margin-top: .8rem; padding: .85rem; border: 1px solid rgba(73,110,236,.2); border-radius: .8rem; background: #f5f7ff; }
.invite-result strong { display: block; margin-bottom: .3rem; font: 650 .78rem/1.4 "Ops Mono",ui-monospace,monospace; letter-spacing: .06em; }
.invite-result p { margin: 0; color: var(--ops-muted); font-size: .58rem; }
.active-invite-list { display: grid; gap: .45rem; margin-top: .9rem; }
.active-invite-list > h3 { margin: 0 0 .25rem; font-size: .7rem; }
.active-invite-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid var(--ops-line); border-radius: .72rem; background: #fafbfc; }
.active-invite-row span { min-width: 0; display: grid; gap: .18rem; }
.active-invite-row strong { font-size: .65rem; }
.active-invite-row small { overflow: hidden; color: var(--ops-muted); font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.active-invite-row button { border: 0; color: #a44251; background: transparent; font-size: .56rem; font-weight: 650; cursor: pointer; }

.media-unavailable {
  width: 100%;
  min-height: 5rem;
  display: grid;
  place-content: center;
  gap: .2rem;
  padding: .75rem;
  color: #68707d;
  background:
    radial-gradient(circle at 22% 12%, rgba(94, 117, 255, .13), transparent 42%),
    radial-gradient(circle at 82% 92%, rgba(255, 154, 92, .14), transparent 44%),
    #f5f6f8;
  text-align: center;
}
.media-unavailable b { font-size: .58rem; font-weight: 650; }
.media-unavailable small { font-size: .48rem; line-height: 1.35; }

@media (max-width: 900px) {
  .settings-invite-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-invite-form .button { grid-column: 1 / -1; }
  body[data-role] .analytics-live-hero { grid-template-columns: minmax(0, 1fr); }
  body[data-role] .analytics-live-copy { min-height: 12rem; }
  body[data-role] .change-card { grid-template-columns: minmax(0, 1fr); }
  body[data-role] .change-card-media { min-height: 15rem; border-right: 0; border-bottom: 1px solid var(--ops-line); }
}

@media (max-width: 620px) {
  .settings-invite-form { grid-template-columns: minmax(0,1fr); }
  .settings-invite-form .button { grid-column: auto; }
  body[data-role] main { padding: 1.15rem .75rem 6.75rem; }

  body[data-role] .view-panel > .view-heading,
  body[data-role] [data-panel="grid"] > .view-heading {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
  }

  body[data-role] .view-panel > .view-heading .page-heading-copy { width: 100%; }
  body[data-role] .view-panel > .view-heading h1 {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.95rem, 10vw, 2.35rem);
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body[data-role] .view-panel > .view-heading .view-summary {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-role] [data-panel="grid"] .grid-tools,
  body[data-role] [data-panel="analytics"] .analytics-actions {
    grid-column: 1;
    grid-row: auto;
    width: 100% !important;
    display: flex;
    justify-content: flex-start;
  }

  body[data-role] [data-panel="grid"] .grid-tools .select-label,
  body[data-role] [data-panel="grid"] .grid-tools select { min-width: 0; width: 100%; }
  body[data-role] [data-panel="analytics"] .analytics-actions label { flex: 1 1 auto; }

  body[data-role] .app-header .primary-nav,
  body[data-role] .primary-nav {
    position: fixed;
    z-index: 45;
    inset: auto .5rem .5rem;
    grid-area: auto;
    width: auto;
    display: flex;
    justify-content: flex-start;
    gap: .12rem;
    padding: .38rem;
    overflow-x: auto;
    border: 1px solid var(--ops-line);
    border-radius: 1rem;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 44px rgba(16,18,22,.16);
    backdrop-filter: blur(18px) saturate(125%);
  }

  body[data-role] .nav-item { flex: 1 0 3.75rem; min-width: 3.75rem; }
  body[data-role] .analytics-live-copy { min-height: 11rem; }
  body[data-role] .analytics-live-copy h2 strong { font-size: clamp(2.7rem, 17vw, 4rem); }
  body[data-role] .change-card-media { min-height: 12rem; padding: .4rem; }
  body[data-role] .modal { padding: .55rem; }
  body[data-role] .modal-card { width: 100%; max-height: calc(100dvh - 1.1rem); padding: 1.15rem; }
  body[data-role] .modal-actions { position: sticky; bottom: -1.15rem; margin: .75rem -1.15rem -1.15rem; padding: .8rem 1.15rem 1.1rem; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
}

/* Persistent navigation hierarchy ---------------------------------------
   Messaging is operational work. Settings, billing and workspace context
   stay visible at the bottom of the left rail instead of hiding in profile. */
body[data-role] .sidebar-utilities {
  display: grid;
  gap: .16rem;
  padding: .65rem 0 .55rem;
  border-top: 1px solid var(--ops-line);
}

body[data-role] .utility-nav-item {
  position: relative;
  width: 100%;
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  gap: .58rem;
  padding: .42rem .55rem;
  border: 0;
  border-radius: .68rem;
  color: var(--ops-muted);
  background: transparent;
  font-size: .66rem;
  font-weight: 590;
  text-align: left;
  cursor: pointer;
}

body[data-role] .utility-nav-item:hover,
body[data-role] .utility-nav-item:focus-visible {
  color: var(--ops-ink);
  background: #f5f6f8;
}

body[data-role] .utility-nav-item.is-active {
  color: var(--ops-ink);
  background: #f0f2f5;
  box-shadow: inset 0 0 0 1px rgba(16,18,22,.035);
}

body[data-role] .utility-nav-item .nav-icon {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  color: #707783;
  background: #f4f5f7;
}

body[data-role] .utility-nav-item.is-active .nav-icon {
  color: var(--ops-ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ops-line);
}

body[data-role] .settings-sections {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: .2rem;
  margin: 0 0 1rem;
  padding: .24rem;
  border: 1px solid var(--ops-line);
  border-radius: .8rem;
  background: #f5f6f8;
}

body[data-role] .settings-section-tab {
  min-height: 2.25rem;
  padding: .5rem .8rem;
  border: 0;
  border-radius: .62rem;
  color: var(--ops-muted);
  background: transparent;
  font-size: .65rem;
  font-weight: 620;
  cursor: pointer;
}

body[data-role] .settings-section-tab:hover,
body[data-role] .settings-section-tab:focus-visible {
  color: var(--ops-ink);
}

body[data-role] .settings-section-tab:focus-visible {
  outline: 2px solid rgba(37,99,235,.38);
  outline-offset: 2px;
}

body[data-role] .settings-section-tab.is-active {
  color: var(--ops-ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,18,22,.08);
}

body[data-role] .sidebar-return-to-studio {
  width: 100%;
  min-height: 3.2rem;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: .6rem;
  padding: .55rem .65rem;
  border: 1px solid rgba(91,76,184,.14);
  border-radius: .75rem;
  color: #40376f;
  background: #f4f2ff;
  text-align: left;
  cursor: pointer;
}

body[data-role] .sidebar-return-to-studio[hidden] { display: none !important; }
body[data-role] .sidebar-return-to-studio > span:first-child { font-size: .9rem; }
body[data-role] .sidebar-return-to-studio > span:last-child { min-width: 0; display: grid; gap: .12rem; }
body[data-role] .sidebar-return-to-studio strong { font-size: .63rem; }
body[data-role] .sidebar-return-to-studio small { overflow: hidden; color: #746b9a; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
body[data-role] .sidebar-return-to-studio:hover { color: #292044; background: #eeebff; }
body[data-role] .sidebar-return-to-studio:focus-visible { outline: 2px solid rgba(91,76,184,.35); outline-offset: 2px; }

/* Messaging remains structured for workflow routing, but reads as a familiar
   shared inbox to the client and Studio teams. */
body[data-role] .inbox-presence-bar {
  min-height: 4.4rem;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .75rem;
  padding: .75rem .9rem;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: linear-gradient(120deg,#fff 68%,#f2f6ff 100%);
  box-shadow: var(--soft-shadow);
}

body[data-role] .studio-inbox-avatar,
body[data-role] .request-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #111419;
  font-weight: 680;
}

body[data-role] .studio-inbox-avatar { width: 2.65rem; aspect-ratio: 1; border-radius: .78rem; font-size: .8rem; }
body[data-role] .inbox-presence-bar > span:nth-child(2) { min-width: 0; display: grid; gap: .15rem; }
body[data-role] .inbox-presence-bar strong { font-size: .76rem; }
body[data-role] .inbox-presence-bar small { color: var(--ops-muted); font-size: .61rem; }
body[data-role] .inbox-availability { display: inline-flex; align-items: center; gap: .38rem; color: #4f5967; font-size: .59rem; font-weight: 630; }
body[data-role] .inbox-availability i { width: .45rem; aspect-ratio: 1; border-radius: 50%; background: #22b77d; box-shadow: 0 0 0 4px rgba(34,183,125,.1); }

body[data-role] .inbox-layout { grid-template-columns: minmax(18rem,.76fr) minmax(27rem,1.24fr); gap: .75rem; }
body[data-role] .request-inbox,
body[data-role] .request-composer { border-color: var(--ops-line); border-radius: 1rem; background: #fff; box-shadow: var(--soft-shadow); }
body[data-role] .request-inbox { min-height: 28rem; padding: 1rem; }
body[data-role] .request-composer { top: 1rem; padding: 1.15rem; }
body[data-role] .request-composer-heading { margin-bottom: .45rem; }
body[data-role] .request-composer-heading h2,
body[data-role] .request-inbox h2 { font-size: 1.05rem; letter-spacing: -.03em; }
body[data-role] .request-composer-intro { max-width: 36rem; margin: 0 0 .7rem; color: var(--ops-muted); font-size: .64rem; line-height: 1.5; }

body[data-role] .request-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: .7rem;
  padding: .8rem;
  border-color: var(--ops-line);
  border-radius: .78rem;
  background: #fff;
  box-shadow: none;
}

body[data-role] .request-avatar { width: 2rem; height: 2rem; border-radius: .62rem; font-size: .64rem; }
body[data-role] .request-card-copy { min-width: 0; }

body[data-role] .video-intake-status {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .55rem;
  margin-top: .65rem;
  padding: .62rem .68rem;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: .72rem;
  background: #f5f8ff;
}

body[data-role] .video-intake-mark {
  width: 1.45rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #3158a4;
  background: #e7efff;
  font-size: .64rem;
  font-weight: 760;
}

body[data-role] .video-intake-status > span:nth-child(2) { min-width: 0; display: grid; gap: .15rem; }
body[data-role] .video-intake-status strong { font-size: .58rem; }
body[data-role] .video-intake-status small { color: var(--ops-muted); font-size: .52rem; line-height: 1.45; }
body[data-role] .video-intake-status > b { color: #3158a4; font-size: .56rem; }
body[data-role] .video-intake-status.is-accepted { border-color: rgba(31,130,91,.14); background: #f2faf6; }
body[data-role] .video-intake-status.is-accepted .video-intake-mark { color: #176d4a; background: #dff3e9; }
body[data-role] .video-intake-status.is-accepted > b { color: #176d4a; }
body[data-role] .video-intake-status.is-held { border-color: rgba(175,116,24,.14); background: #fff9ef; }
body[data-role] .video-intake-status.is-held .video-intake-mark { color: #8a5a0e; background: #f7e9ca; }
body[data-role] .video-intake-status.is-held > b { color: #8a5a0e; }
body[data-role] .video-intake-status.is-rejected { border-color: rgba(174,66,66,.13); background: #fff6f6; }
body[data-role] .video-intake-status.is-rejected .video-intake-mark { color: #9b3f3f; background: #f7e2e2; }
body[data-role] .video-intake-status.is-rejected > b { color: #9b3f3f; }
body[data-role] .request-card-copy h3 { margin: .45rem 0 .25rem; font-size: .74rem; }
body[data-role] .request-card-copy > p { display: -webkit-box; overflow: hidden; margin: 0 0 .4rem; color: var(--ops-muted); font-size: .62rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body[data-role] .request-card-copy > a { color: #4c62b8; font-size: .59rem; font-weight: 650; }
body[data-role] .request-card-copy footer { margin-top: .55rem; padding-top: .5rem; font-size: .54rem; }
body[data-role] .request-type { font-size: .52rem; letter-spacing: .08em; }
body[data-role] .request-composer .research-boundary { border-color: rgba(95,116,214,.16); color: #5968a8; background: #f2f4ff; font-size: .5rem; }

/* Connected channels are compact analytics context, not a competing card
   wall. The client hero reserves a narrow left rail for line icons. */
body[data-role] .client-analytics-hero { grid-template-columns: minmax(10rem,.3fr) minmax(0,1fr); }
body[data-role] .client-analytics-hero .connected-accounts { grid-column: 1; grid-row: 1; padding: .75rem; }
body[data-role] .client-analytics-hero .analytics-live-copy { grid-column: 2; grid-row: 1; }
body[data-role] .client-analytics-hero .connected-accounts-heading { align-items: center; margin-bottom: .5rem; padding-bottom: .55rem; }
body[data-role] .client-analytics-hero .connected-accounts-heading .eyebrow { display: none; }
body[data-role] .client-analytics-hero .connected-accounts-heading h2 { font-size: .72rem !important; }
body[data-role] .client-analytics-hero .connected-accounts-heading > span { padding: .2rem .35rem; font-size: .46rem; }
body[data-role] .client-analytics-hero .connected-account-grid { gap: .3rem; }
body[data-role] .client-analytics-hero .connected-account {
  min-height: 3rem;
  display: grid;
  grid-template-columns: 1.75rem minmax(0,1fr) auto;
  gap: .45rem;
  padding: .42rem;
  border: 0;
  border-radius: .62rem;
  background: rgba(255,255,255,.45);
}
body[data-role] .connected-account-icon { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border: 1px solid rgba(34,42,56,.09); border-radius: .55rem; color: #4f5968; background: rgba(255,255,255,.7); }
body[data-role] .connected-account-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
body[data-role] .client-analytics-hero .connected-account-copy { min-width: 0; }
body[data-role] .client-analytics-hero .connected-account-copy small { font-size: .43rem; }
body[data-role] .client-analytics-hero .connected-account-copy strong { overflow: hidden; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
body[data-role] .client-analytics-hero .connected-account-followers { font-size: .48rem; white-space: nowrap; }
body[data-role] .client-analytics-hero .connected-account > span:last-child[aria-hidden="true"] { display: none; }

body[data-role] .client-approval-guidance {
  color: var(--ops-muted);
  background: #f7f8fa;
}

@media (min-width: 1100px) {
  body[data-role] .app-header {
    grid-template-rows: auto minmax(0,1fr) auto auto auto auto;
  }

  body[data-role] .brand-lockup {
    max-width: calc(100% - 2.9rem);
  }

  body[data-role] .app-header > .sidebar-notifications {
    position: absolute;
    top: .75rem;
    right: .75rem;
  }

  body[data-role] .app-header > .sidebar-notifications .notification-popover {
    top: 0;
    right: auto;
    left: calc(100% + .7rem);
  }

  body[data-role] .primary-nav {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  body[data-role] .primary-nav::-webkit-scrollbar { display: none; }

  body[data-role] .app-header .workspace-switcher {
    margin: 0 0 .45rem;
  }
}

@media (max-width: 1099px) {
  body[data-role] .app-header,
  body[data-role="agency"] .app-header {
    grid-template-areas:
      "brand notifications account"
      "return return return"
      "utilities utilities utilities"
      "workspace workspace workspace"
      "nav nav nav";
    grid-template-columns: minmax(0,1fr) auto auto;
  }

  body[data-role] .sidebar-utilities {
    grid-area: utilities;
    grid-template-columns: minmax(0,1fr);
    padding: .25rem 0 0;
    border-top: 0;
  }

  body[data-role] .sidebar-return-to-studio { grid-area: return; }

  body[data-role] .utility-nav-item {
    min-height: 2.35rem;
    justify-content: center;
    border: 1px solid var(--ops-line);
    background: #fff;
  }

  body[data-role] .app-header > .sidebar-notifications {
    grid-area: notifications;
    position: relative;
    inset: auto;
    align-self: center;
    justify-self: end;
  }
}

@media (max-width: 620px) {
  body[data-role] .settings-sections {
    width: 100%;
  }

  body[data-role] .settings-section-tab {
    flex: 1 1 0;
  }

  body[data-role] .inbox-presence-bar { grid-template-columns: auto minmax(0,1fr); }
  body[data-role] .inbox-availability { grid-column: 2; }

  body[data-role] .client-analytics-hero { grid-template-columns: minmax(0,1fr); }
  body[data-role] .client-analytics-hero .connected-accounts,
  body[data-role] .client-analytics-hero .analytics-live-copy { grid-column: 1; grid-row: auto; }

  body[data-role] .app-header .primary-nav,
  body[data-role] .primary-nav {
    position: static;
    inset: auto;
    grid-area: nav;
    width: 100%;
    box-shadow: none;
  }

  body[data-role] .sidebar-utilities {
    gap: .4rem;
  }

  body[data-role] .utility-nav-item {
    min-height: 2.5rem;
    padding-inline: .45rem;
    font-size: .6rem;
  }

  body[data-role] .utility-nav-item .nav-icon {
    width: 1.4rem;
    height: 1.4rem;
  }
}

@media (max-width: 800px) {
  body[data-role] .inbox-layout { grid-template-columns: minmax(0,1fr); }
  body[data-role] .request-composer { position: static; }
  body[data-role] .request-inbox { min-height: 14rem; }
}

/* Settings control room --------------------------------------------------
   Account context stays compact on the left; permissions and Studio-only
   operations remain explicit on the right. */
body[data-role] [data-panel="settings"] {
  max-width: 72rem;
}

body[data-role] [data-panel="settings"] .settings-heading,
body[data-role] [data-panel="billing"] .billing-heading {
  margin-bottom: .7rem;
}

body[data-role] .settings-layout {
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
}

body[data-role] .settings-profile-card {
  position: sticky;
  top: 1rem;
  min-height: 0;
  display: grid;
  align-items: start;
  gap: .85rem;
  padding: 1rem;
  border-color: var(--ops-line);
  background:
    radial-gradient(circle at 18% 4%, rgba(112,136,255,.12), transparent 34%),
    radial-gradient(circle at 96% 92%, rgba(255,163,105,.1), transparent 33%),
    #fff;
  box-shadow: 0 18px 46px rgba(28,35,49,.065);
}

body[data-role] .settings-profile-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: .7rem;
}

body[data-role] .settings-profile-initial {
  width: 2.75rem;
  border: 1px solid rgba(255,255,255,.8);
  background: #11151b;
  box-shadow: 0 8px 20px rgba(15,18,24,.14);
  font-size: .9rem;
}

body[data-role] .settings-profile-card h2 {
  overflow: hidden;
  margin: 0;
  font-size: .78rem !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-role] .settings-profile-card p { margin: .16rem 0 0; }

body[data-role] .settings-mode-badge {
  width: fit-content;
  padding: .32rem .48rem;
  border: 1px solid rgba(95,111,205,.12);
  border-radius: 999px;
  color: #5260a5;
  background: rgba(240,243,255,.82);
  font: 650 .49rem/1.2 "Ops Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-role] .settings-scope-note {
  margin: 0 !important;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--ops-line);
  color: var(--ops-muted);
  font-size: .59rem;
  line-height: 1.55;
}

body[data-role] .settings-profile-signals { display: grid; gap: .52rem; }
body[data-role] .settings-profile-signals span { display: flex; align-items: center; gap: .5rem; color: #4e5662; }
body[data-role] .settings-profile-signals i { width: .52rem; height: .52rem; border-radius: 50%; }
body[data-role] .settings-profile-signals i.is-secure { background: #31b77c; box-shadow: 0 0 0 5px rgba(49,183,124,.1); }
body[data-role] .settings-profile-signals i.is-account { background: #6f83ff; box-shadow: 0 0 0 5px rgba(111,131,255,.1); }
body[data-role] .settings-profile-signals b { font-size: .57rem; font-weight: 610; }

body[data-role] .settings-message-link {
  display: grid;
  gap: .3rem;
  margin-top: .1rem;
  padding: .72rem;
  border: 1px solid rgba(37,43,54,.07);
  border-radius: .72rem;
  color: var(--ops-ink);
  background: rgba(248,249,252,.88);
  text-align: left;
  cursor: pointer;
}
body[data-role] .settings-message-link:hover,
body[data-role] .settings-message-link:focus-visible { border-color: rgba(91,111,222,.2); background: #f4f6ff; }
body[data-role] .settings-message-link span { color: var(--ops-muted); font-size: .52rem; line-height: 1.4; }
body[data-role] .settings-message-link strong { display: flex; justify-content: space-between; gap: .5rem; font-size: .6rem; }
body[data-role] .settings-message-link i { color: #6578df; font-style: normal; }

body[data-role] .settings-panel {
  min-width: 0;
  padding: 1rem;
  border-color: var(--ops-line);
  box-shadow: 0 14px 38px rgba(28,35,49,.05);
}

body[data-role] .settings-account-panel,
body[data-role] .settings-workflow-panel { grid-column: 2; }

body[data-role] .settings-panel-heading {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: .72rem;
  margin-bottom: .8rem !important;
}

body[data-role] .settings-panel-heading h2 { margin: 0; font-size: .82rem !important; }
body[data-role] .settings-panel-heading p { margin-top: .16rem; font-size: .57rem; line-height: 1.45; }

body[data-role] .settings-panel-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: .62rem;
}
body[data-role] .settings-panel-mark svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
body[data-role] .settings-panel-mark.is-security { color: #25795b; background: #eaf7f1; }
body[data-role] .settings-panel-mark.is-permissions { color: #5769c8; background: #eff1ff; }
body[data-role] .settings-panel-mark.is-storage { color: #9a5f24; background: #fff3e5; }
body[data-role] .settings-panel-mark.is-invite { color: #8a4f78; background: #f9edf6; }

body[data-role] .settings-rows > div {
  grid-template-columns: minmax(7rem,.58fr) minmax(0,1fr);
  padding: .68rem 0;
}
body[data-role] .settings-rows dt { font-size: .57rem; }
body[data-role] .settings-rows dd { font-size: .61rem; }

body[data-role] .settings-permissions { gap: .42rem; }
body[data-role] .settings-permissions span {
  min-height: 2.55rem;
  padding: .58rem .65rem;
  border: 1px solid #f0f1f4;
  border-radius: .65rem;
  color: #505863;
  background: #fafbfc;
  font-size: .57rem;
  line-height: 1.4;
}
body[data-role] .settings-permissions i { width: 1.05rem; font-size: .5rem; }

body[data-role] .settings-invite-form {
  grid-template-columns: minmax(10rem,1.35fr) minmax(9rem,1fr) 4.75rem 6.5rem auto;
  gap: .5rem;
  padding-top: .8rem;
  border-top: 1px solid var(--ops-line);
}
body[data-role] .settings-invite-form :is(select,input) { min-height: 2.35rem; border-radius: .62rem; font-size: .58rem; }
body[data-role] .settings-invite-form .button { min-height: 2.35rem; padding: .55rem .78rem; }

body[data-role] .billing-tool-disclosure {
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: .9rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
body[data-role] .billing-tool-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;
}
body[data-role] .billing-tool-disclosure > summary::-webkit-details-marker { display: none; }
body[data-role] .billing-tool-disclosure > summary span { display: grid; gap: .18rem; }
body[data-role] .billing-tool-disclosure > summary strong { font-size: .67rem; }
body[data-role] .billing-tool-disclosure > summary small { color: var(--ops-muted); font-size: .53rem; }
body[data-role] .billing-tool-disclosure > summary i { color: #6d7580; font-size: .85rem; font-style: normal; transition: transform .2s ease; }
body[data-role] .billing-tool-disclosure[open] > summary i { transform: rotate(45deg); }
body[data-role] .billing-tool-disclosure .billing-upload { border: 0; border-top: 1px solid var(--ops-line); border-radius: 0; box-shadow: none; }

/* Platform color is a small recognition cue, not a decorative card wall. */
body[data-role] .connected-account-icon {
  position: relative;
  color: var(--channel-ink, #4f5968);
  background: var(--channel-wash, rgba(255,255,255,.7));
  box-shadow: 0 8px 18px var(--channel-glow, rgba(35,44,61,.06));
}
body[data-role] .connected-account-icon.is-instagram { --channel-ink: #fff; --channel-wash: linear-gradient(135deg,#ffbd66 0%,#ee5c86 48%,#7168ef 100%); --channel-glow: rgba(221,77,134,.2); border-color: transparent; }
body[data-role] .connected-account-icon.is-facebook { --channel-ink: #1877f2; --channel-wash: #eaf3ff; --channel-glow: rgba(24,119,242,.16); }
body[data-role] .connected-account-icon.is-linkedin { --channel-ink: #0a66c2; --channel-wash: #e8f4ff; --channel-glow: rgba(10,102,194,.16); }
body[data-role] .connected-account-icon.is-youtube { --channel-ink: #f12626; --channel-wash: #fff0f0; --channel-glow: rgba(241,38,38,.15); }
body[data-role] .connected-account-icon.is-tiktok { --channel-ink: #15181e; --channel-wash: linear-gradient(135deg,#e7fbfb,#fff 50%,#fff0f5); --channel-glow: rgba(40,201,205,.16); }
body[data-role] .connected-account-icon.is-x { --channel-ink: #fff; --channel-wash: #17191d; --channel-glow: rgba(17,19,23,.16); border-color: transparent; }
body[data-role] .connected-account-icon.is-channel { --channel-ink: #7365d8; --channel-wash: #f0eeff; --channel-glow: rgba(115,101,216,.14); }

/* Approval cards prioritize the asset and decision copy without repeating its lane. */
body[data-role] .review-card {
  grid-template-columns: minmax(19rem,.8fr) minmax(26rem,1fr);
}
body[data-role] .review-media-column { padding: clamp(1.25rem,2vw,1.75rem); }
body[data-role] .media-stage { min-height: 29rem; }
body[data-role] .media-viewport,
body[data-role] .review-media-slide { min-height: 26rem; }
body[data-role] .media-viewport :is(img,video) { max-height: 26rem; }
body[data-role] .media-scroll-hint { margin-top: .7rem; font-size: .58rem; }
body[data-role] .review-copy-column { padding: clamp(1.6rem,3vw,2.75rem); }
body[data-role] .post-title-block { padding-bottom: 1.45rem; }
body[data-role] .post-kicker-row { margin-bottom: 1rem; }
body[data-role] .post-title-block h2 { margin: 0; max-width: 28rem; font-size: clamp(1.45rem,2.2vw,2rem); line-height: 1.08; }
body[data-role] .platform-list { margin-top: 1rem; }
body[data-role] .copy-section { min-height: 0; padding: 1.45rem 0 1rem; }
body[data-role] .caption-tabs { gap: 1rem; padding-bottom: .75rem; }
body[data-role] .caption-text { max-height: 16rem; padding: 1.05rem .35rem .35rem 0; font-size: .77rem; line-height: 1.68; }
body[data-role] .caption-editor-footer { margin-top: 1rem; padding-top: .85rem; }
body[data-role] :is(.governed-editor,.revision-comparison,.media-annotations) { margin-top: 1rem; }
body[data-role] .decision-bar { padding-top: 1.35rem; }
body[data-role] .decision-actions { gap: .65rem; }
body[data-role] .decision-actions .button { min-height: 2.55rem; padding: .65rem .9rem; font-size: .62rem; }

@media (max-width: 900px) {
  body[data-role] .settings-layout { grid-template-columns: minmax(0,1fr); }
  body[data-role] .settings-profile-card { position: static; }
  body[data-role] .settings-account-panel,
  body[data-role] .settings-workflow-panel { grid-column: 1; }
  body[data-role] .settings-invite-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-role] .settings-invite-form .button { grid-column: 1 / -1; }
  body[data-role] .review-card { grid-template-columns: minmax(0,1fr); }
  body[data-role] .review-media-column { border-right: 0; border-bottom: 1px solid var(--ops-line); }
}

@media (max-width: 560px) {
  body[data-role] .settings-sections { position: sticky; top: .35rem; z-index: 5; }
  body[data-role] .settings-section-tab { padding-inline: .45rem; font-size: .56rem; }
  body[data-role] .settings-permissions { grid-template-columns: minmax(0,1fr); }
  body[data-role] .settings-invite-form { grid-template-columns: minmax(0,1fr); }
  body[data-role] .settings-invite-form .button { grid-column: auto; }
  body[data-role] .media-stage { min-height: 22rem; }
  body[data-role] .media-viewport,
  body[data-role] .review-media-slide { min-height: 19.5rem; }
  body[data-role] .media-viewport :is(img,video) { max-height: 19.5rem; }
  body[data-role] .review-media-column,
  body[data-role] .review-copy-column { padding: 1.15rem; }
  body[data-role] .copy-section { padding-block: 1.2rem .85rem; }
  body[data-role] .decision-actions { width: 100%; display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-role] .billing-tool-disclosure > summary i { transition: none; }
}

/* Billing is a settings utility, so its editor uses the same compact scale. */
body[data-role] [data-panel="billing"] .agreement-empty { min-height: 7rem; }
body[data-role] [data-panel="billing"] .billing-layout { gap: .75rem; }
body[data-role] [data-panel="billing"] .billing-agency-tools { gap: .65rem; }
body[data-role] .billing-tool-disclosure .billing-upload {
  gap: .72rem;
  padding: 1rem;
}
body[data-role] .billing-tool-disclosure .billing-upload > div:first-child { display: grid; gap: .18rem; }
body[data-role] .billing-tool-disclosure .billing-upload > div:first-child h2 {
  margin: 0;
  font-size: .82rem !important;
  font-weight: 640;
  letter-spacing: -.025em;
  line-height: 1.2;
}
body[data-role] .billing-tool-disclosure .billing-upload > div:first-child > p:last-child {
  margin: 0;
  font-size: .56rem;
  line-height: 1.45;
}
body[data-role] .billing-tool-disclosure .billing-upload .eyebrow { font-size: .47rem; }
body[data-role] .billing-tool-disclosure .request-field { gap: .28rem; }
body[data-role] .billing-tool-disclosure .request-field > span { font-size: .55rem; }
body[data-role] .billing-tool-disclosure .request-field :is(input,select,textarea) {
  min-height: 2.35rem;
  padding: .58rem .65rem;
  border-radius: .62rem;
  font-size: .61rem;
}
body[data-role] .billing-tool-disclosure .request-field textarea { min-height: 4.5rem; }
body[data-role] .billing-tool-disclosure .billing-field-row { gap: .55rem; }
body[data-role] .billing-tool-disclosure .button { width: fit-content; min-height: 2.35rem; padding: .55rem .78rem; font-size: .57rem; }
body[data-role] [data-panel="billing"] .billing-records { min-height: 12rem; padding: 1rem; }
body[data-role] [data-panel="billing"] .billing-records .section-heading { margin-bottom: .7rem; padding-bottom: .7rem; }
body[data-role] [data-panel="billing"] .billing-records .section-heading h2 { font-size: .86rem !important; }

@media (max-width: 1080px) {
  body[data-role] [data-panel="billing"] .billing-layout { grid-template-columns: minmax(0,1fr); }
}

/* Studio home already has a persistent workspace label in the shell. Keep the
   content area focused on status and actions instead of repeating "Brands". */
body[data-role="agency"] [data-panel="brands"] > .view-heading {
  display: none;
}

/* Studio command centre — operational work stays dense, legible and calm. */
.calendar-view-switcher {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line, #d9d5cf);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.calendar-view-switcher button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted, #6c675f);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-view-switcher button.is-active {
  color: #fff;
  background: #28241f;
}

.calendar-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
  padding: 14px;
  border: 1px solid var(--line, #ded9d1);
  border-radius: 16px;
  background: #fbfaf7;
}

.calendar-filters label,
.request-work-controls label,
.request-composer-meta label,
.request-reply-options label {
  display: grid;
  gap: 5px;
  color: var(--muted, #6d675f);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calendar-filters select,
.request-work-controls :is(select, input),
.request-composer-meta :is(select, input),
.request-reply-options select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line, #d9d5cf);
  border-radius: 10px;
  padding: 0 10px;
  color: #28241f;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  text-transform: none;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: .7rem 0 0;
}
.calendar-navigation button {
  min-height: 2.15rem;
  padding: 0 .72rem;
  border: 1px solid var(--line, #ded9d1);
  border-radius: 9px;
  background: #fff;
  color: var(--ink, #26221f);
  font: inherit;
  font-size: .7rem;
  font-weight: 750;
  cursor: pointer;
}
.calendar-navigation strong { margin-left: .35rem; font-family: var(--font-display, serif); font-size: 1rem; }
.calendar-grid[data-layout="calendar-board"] {
  display: grid;
  grid-template-columns: repeat(7, minmax(7.5rem, 1fr));
  gap: 1px;
  margin-right: 260px;
  overflow: auto;
  border: 1px solid var(--line, #ded9d1);
  border-radius: 14px;
  background: var(--line, #ded9d1);
}
.calendar-day-cell { min-height: 9.5rem; background: #fff; transition: background .16s ease, box-shadow .16s ease; }
.calendar-day-cell.is-outside { background: #f8f6f2; color: #8c857c; }
.calendar-day-cell.is-today { box-shadow: inset 0 0 0 2px rgba(96, 112, 225, .35); }
.calendar-day-cell.is-drop-target { background: #f1f3ff; box-shadow: inset 0 0 0 2px #6674d9; }
.calendar-day-cell > header { display: flex; align-items: center; justify-content: space-between; padding: .55rem .6rem; border-bottom: 1px solid #eeeae4; }
.calendar-day-cell > header span { color: #847d75; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.calendar-day-cell > header strong { font-size: .74rem; }
.calendar-day-cell > div { display: grid; align-content: start; gap: .35rem; padding: .42rem; }
.calendar-day-empty { padding: .55rem .3rem; color: #aaa39a; font-size: .58rem; line-height: 1.35; }
.calendar-day-item { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: .4rem; width: 100%; padding: .42rem; border: 0; border-radius: 7px; text-align: left; background: #f7f6f3; cursor: pointer; }
.calendar-day-item i { width: 5px; height: 100%; min-height: 1.85rem; border-radius: 4px; background: #8992df; }
.calendar-day-item i[data-phase="attention"] { background: #d87d62; }
.calendar-day-item i[data-phase="published"] { background: #5f9a79; }
.calendar-day-item span { min-width: 0; display: grid; gap: .1rem; }
.calendar-day-item strong, .calendar-day-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day-item strong { font-size: .62rem; }
.calendar-day-item small { color: #817a72; font-size: .53rem; }

@media (max-width: 980px) {
  .calendar-grid[data-layout="calendar-board"] { margin-right: 0; grid-template-columns: repeat(7, minmax(6.5rem, 1fr)); }
}

@media (max-width: 680px) {
  .calendar-navigation { flex-wrap: wrap; }
  .calendar-navigation strong { width: 100%; margin: .25rem 0 0; }
  .calendar-grid[data-layout="calendar-board"] { grid-template-columns: repeat(7, minmax(7.25rem, 1fr)); }
}

.cadence-warnings {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-left: 3px solid #bf8f59;
  background: #f8f2e9;
  color: #54473b;
}

.cadence-warnings strong { font-size: .82rem; }
.cadence-warnings span { font-size: .78rem; color: #74685c; }

.calendar-workspace { position: relative; }
.calendar-workspace .section-heading { padding-right: 270px; }
.calendar-grid { margin-right: 260px; }
.calendar-grid[data-calendar-view="month"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calendar-grid[data-calendar-view="week"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calendar-grid[data-calendar-view="list"] { grid-template-columns: 1fr; }
.calendar-grid[data-layout="calendar-board"][data-calendar-view] { grid-template-columns: repeat(7, minmax(7.25rem, 1fr)); }
.calendar-grid[data-calendar-view="list"] .grid-card { grid-template-columns: 180px 1fr; }

.unscheduled-rail {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  padding: 16px;
  border: 1px solid var(--line, #ded9d1);
  border-radius: 16px;
  background: #f4f1eb;
}

.unscheduled-rail h3 { margin: 2px 0 14px; font-family: var(--font-display, serif); }
.unscheduled-rail > div:last-child { display: grid; gap: 8px; }
.unscheduled-rail button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 11px;
  border: 1px solid #ddd6cb;
  border-radius: 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.unscheduled-rail button strong { font-size: .82rem; }
.unscheduled-rail button small { color: #766f66; }

.agency-calendar-card { border: 1px solid var(--line, #ded9d1); border-radius: 14px; overflow: hidden; background: #fff; }
.agency-calendar-card > button { display: grid; gap: 10px; width: 100%; padding: 14px; border: 0; text-align: left; background: transparent; cursor: pointer; }
.agency-calendar-card > button > div { display: flex; align-items: center; gap: 10px; }
.agency-calendar-card img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; }
.agency-calendar-card h3 { margin: 0; font-family: var(--font-display, serif); font-size: 1rem; }
.agency-calendar-brand { color: #817970; font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }

.distribution-integrity {
  margin: 12px 0 18px;
  border: 1px solid var(--line, #ded9d1);
  border-radius: 14px;
  background: #fff;
}
.distribution-integrity > summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
}
.distribution-integrity > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line, #ded9d1);
  background: var(--line, #ded9d1);
}
.distribution-integrity article { display: grid; gap: 5px; min-height: 106px; padding: 14px; background: #fbfaf7; }
.distribution-integrity article span { color: #776f66; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.distribution-integrity article strong { font-size: .95rem; }
.distribution-integrity article small { color: #746d65; line-height: 1.45; }

.request-work-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line, #ded9d1);
  background: #f8f6f1;
}
.request-work-controls .button { align-self: end; }
.request-work-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line, #ded9d1);
}
.request-work-summary span { display: grid; gap: 2px; min-width: 110px; }
.request-work-summary small { color: #827b72; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.request-work-summary strong { font-size: .76rem; }
.request-work-summary b { align-self: center; padding: 4px 8px; border-radius: 999px; color: #654f3b; background: #eee4d7; font-size: .66rem; }
.request-conversions { display: flex; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line, #ded9d1); overflow-x: auto; }
.request-conversions button { white-space: nowrap; border: 1px solid #d4cdc3; border-radius: 999px; padding: 7px 10px; color: #514b44; background: #fff; font: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; }
.request-thread-message.is-internal { border: 1px dashed #b59466; background: #fbf3e8; }
.request-thread-message em { display: inline-block; margin-bottom: 4px; color: #8d633a; font-size: .65rem; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.request-thread-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.request-thread-attachments a { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; padding: 10px; border: 1px solid #d9d3ca; border-radius: 10px; color: inherit; background: #fff; text-decoration: none; }
.request-thread-attachments a span { grid-row: 1 / 3; align-self: center; padding: 5px; border-radius: 6px; color: #fff; background: #62584f; font-size: .6rem; text-transform: uppercase; }
.request-thread-attachments a strong { font-size: .75rem; }
.request-thread-attachments a small { color: #7b746b; }
.request-card.is-unread { box-shadow: inset 3px 0 #9e6f42; }
.request-card.is-unread h3 { font-weight: 850; }
.request-card footer .is-overdue { color: #9b473b; font-weight: 850; }
.request-composer-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.request-reply-options { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.request-reply-options label { min-width: 180px; }
.request-attachment-control input { max-width: 230px; font-size: .72rem; text-transform: none; }

.governed-editor,
.revision-comparison,
.media-annotations {
  margin-top: 12px;
  border: 1px solid var(--line, #ded9d1);
  border-radius: 12px;
  background: #fbfaf7;
}
.governed-editor > summary,
.revision-comparison > summary,
.media-annotations > summary { display: flex; justify-content: space-between; padding: 13px; cursor: pointer; font-size: .76rem; font-weight: 800; }
.governed-editor > summary strong,
.revision-comparison > summary strong,
.media-annotations > summary strong { color: #875f3f; font-size: .68rem; }
.governance-boundary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-block: 1px solid #ddd7cf; background: #ddd7cf; }
.governance-boundary span { padding: 10px; background: #fff; color: #6d665e; font-size: .68rem; line-height: 1.45; }
.governance-boundary b { display: block; color: #302b26; }
.governed-editor-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 13px; }
.governed-editor-fields label { display: grid; gap: 5px; color: #6f685f; font-size: .68rem; font-weight: 750; }
.governed-editor-fields :is(input, textarea), .annotation-composer :is(input, textarea, select) { width: 100%; border: 1px solid #d9d3ca; border-radius: 9px; padding: 9px; background: #fff; font: inherit; font-size: .78rem; }
.governed-editor-wide { grid-column: 1 / -1; }
.governed-editor > .button { margin: 0 13px 13px; }
.revision-comparison ol, .media-annotations ol { display: grid; gap: 8px; margin: 0; padding: 0 13px 13px; list-style: none; }
.revision-comparison li, .media-annotations li { padding: 10px; border-radius: 9px; background: #fff; font-size: .74rem; }
.revision-comparison li { display: grid; grid-template-columns: 38px 1fr; gap: 4px 8px; }
.revision-comparison li small { grid-column: 2; color: #756e65; }
.revision-comparison pre { max-height: 180px; overflow: auto; white-space: pre-wrap; font-size: .68rem; }
.annotation-composer { display: grid; grid-template-columns: 150px 110px 1fr auto; gap: 8px; align-items: start; padding: 13px; }
.media-annotations li span { color: #875f3f; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.annotation-media-stage { position: relative; width: min(100% - 26px, 760px); margin: 0 13px; overflow: hidden; border: 1px solid #ddd6cc; border-radius: 12px; background: #171513; }
.annotation-media-stage :is(img, video) { display: block; width: 100%; max-height: 520px; object-fit: contain; cursor: crosshair; }
.annotation-pin { position: absolute; width: 25px; height: 25px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; color: #fff; background: #bd6048; box-shadow: 0 3px 12px rgba(0,0,0,.32); font-size: .62rem; font-weight: 900; cursor: help; }
.annotation-selection { grid-column: 1 / -1; color: #766d64; font-size: .68rem; }

.automation-run-detail { grid-column: 2 / -1; border-top: 1px solid var(--line, #ded9d1); padding-top: 10px; }
.automation-run-detail summary { cursor: pointer; font-size: .72rem; font-weight: 800; }
.automation-run-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.automation-run-links a { font-size: .7rem; }
.automation-run-detail p { display: grid; gap: 3px; margin: 8px 0; font-size: .72rem; }
.automation-run-detail ol { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.automation-run-detail li { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 8px; padding: 8px; border-radius: 8px; background: #f7f5f1; font-size: .67rem; }
.native-automation-actions { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.native-automation-actions span { color: #875f3f; font-size: .72rem; font-weight: 800; }

@media (max-width: 1050px) {
  .calendar-grid { margin-right: 0; }
  .calendar-workspace .section-heading { padding-right: 0; }
  .unscheduled-rail { position: static; width: auto; margin-top: 16px; }
  .unscheduled-rail > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-grid[data-calendar-view="month"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-work-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .distribution-integrity > div { grid-template-columns: repeat(2, 1fr); }
  .annotation-composer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .grid-tools { align-items: stretch; }
  .calendar-view-switcher { width: 100%; overflow-x: auto; border-radius: 14px; }
  .calendar-view-switcher button { flex: 1 0 auto; }
  .calendar-filters,
  .request-work-controls,
  .request-composer-meta,
  .governed-editor-fields,
  .governance-boundary,
  .distribution-integrity > div { grid-template-columns: 1fr; }
  .calendar-grid[data-calendar-view] { grid-template-columns: 1fr; }
  .calendar-grid[data-layout="calendar-board"][data-calendar-view] { grid-template-columns: repeat(7, minmax(7.25rem, 1fr)); }
  .calendar-grid[data-calendar-view="list"] .grid-card { grid-template-columns: 1fr; }
  .unscheduled-rail > div:last-child { grid-template-columns: 1fr; }
  .request-conversions { padding-inline: 10px; }
  .annotation-composer { grid-template-columns: 1fr; }
  .automation-run-detail li { grid-template-columns: 65px 1fr; }
  .automation-run-detail li :is(time, b) { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-view-switcher button,
  .request-card,
  .native-automation-row { transition: none !important; }
}

/* Requests is a true Studio-to-client inbox. The left rail is for triage; the
   right pane holds one private tenant conversation or a new request. */
body[data-role] [data-panel="inbox"] .inbox-heading {
  grid-template-columns: minmax(0,1fr) auto;
}

body[data-role] .inbox-new-button {
  align-self: center;
  min-height: 2.5rem;
  padding: .58rem .85rem;
}

body[data-role] .request-inbox { grid-column: 1; grid-row: 1; }
body[data-role] :is(.request-thread,.request-composer) { grid-column: 2; grid-row: 1; }
body[data-role] .request-inbox-tools { display: flex; align-items: end; gap: .45rem; }
body[data-role] .request-inbox-tools .compact-select { min-width: 9.5rem; }
body[data-role] .request-inbox-tools .compact-select select { min-height: 2.2rem; }

body[data-role] .request-card {
  display: block;
  padding: 0;
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

body[data-role] .request-card:hover { transform: translateY(-1px); border-color: rgba(79,98,182,.24); }
body[data-role] .request-card.is-selected { border-color: rgba(79,98,182,.3); background: linear-gradient(115deg,#fff 70%,#f4f6ff); box-shadow: inset 3px 0 0 #6678d6; }
body[data-role] .request-card-button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: .7rem;
  padding: .8rem;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body[data-role] .request-card-button:focus-visible { outline: 2px solid rgba(79,98,182,.42); outline-offset: -3px; }
body[data-role] .request-card-copy { display: block; }
body[data-role] .request-card-copy footer { display: flex; }

body[data-role] .request-thread {
  min-height: 28rem;
  display: grid;
  grid-template-rows: auto minmax(12rem,1fr) auto;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
body[data-role] .request-thread[hidden] { display: none; }
body[data-role] .request-thread-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--ops-line);
}
body[data-role] .request-thread-heading > div { min-width: 0; display: grid; gap: .18rem; }
body[data-role] .request-thread-heading h2 { overflow: hidden; margin: 0; font-size: 1.02rem; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
body[data-role] .request-thread-messages { display: grid; align-content: start; gap: .65rem; padding: 1.1rem; overflow-y: auto; background: linear-gradient(180deg,#fafbfc,#fff 35%); }
body[data-role] .request-thread-source { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .12rem .7rem; padding: .68rem .75rem; border: 1px solid rgba(84,105,204,.14); border-radius: .72rem; color: var(--ops-ink); background: #f5f7ff; }
body[data-role] .request-thread-source span { color: var(--ops-faint); font-family: "Ops Mono",ui-monospace,monospace; font-size: .46rem; letter-spacing: .08em; text-transform: uppercase; }
body[data-role] .request-thread-source strong { grid-column: 1; overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
body[data-role] .request-thread-source i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; }
body[data-role] .request-thread-message { width: min(82%,34rem); display: grid; gap: .35rem; padding: .72rem .8rem; border: 1px solid var(--ops-line); border-radius: .85rem .85rem .85rem .25rem; background: #fff; }
body[data-role] .request-thread-message.is-outgoing { justify-self: end; border-color: rgba(84,105,204,.15); border-radius: .85rem .85rem .25rem .85rem; background: #f2f5ff; }
body[data-role] .request-thread-message > div { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
body[data-role] .request-thread-message strong { font-size: .57rem; }
body[data-role] .request-thread-message small { color: var(--ops-faint); font-size: .48rem; }
body[data-role] .request-thread-message p { margin: 0; color: var(--ops-ink); font-size: .64rem; line-height: 1.55; white-space: pre-wrap; }
body[data-role] .request-reply-form { padding: .85rem 1.1rem 1rem; border-top: 1px solid var(--ops-line); background: #fff; }
body[data-role] .request-reply-form .request-field { margin-top: 0; }
body[data-role] .request-reply-form textarea { min-height: 5.5rem; border-radius: .72rem; resize: vertical; }
body[data-role] .request-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
body[data-role] .request-reply-actions small { color: var(--ops-muted); font-size: .52rem; }

@media (max-width: 900px) {
  body[data-role] .inbox-layout { grid-template-columns: minmax(0,1fr); }
  body[data-role] .request-inbox,
  body[data-role] :is(.request-thread,.request-composer) { grid-column: 1; grid-row: auto; }
  body[data-role] .request-thread { min-height: 24rem; }
}

@media (max-width: 560px) {
  body[data-role] [data-panel="inbox"] .inbox-heading { grid-template-columns: minmax(0,1fr); }
  body[data-role] .inbox-new-button { width: 100%; }
  body[data-role] .request-inbox .section-heading { align-items: end; }
  body[data-role] .request-inbox-tools .compact-select { min-width: 0; }
  body[data-role] .request-thread-message { width: 92%; }
  body[data-role] .request-reply-actions { align-items: stretch; flex-direction: column; }
}

/* Final product identity lock — intentionally last in the cascade. */
html body[data-role="guest"] {
  color: #f8faff;
  background:
    radial-gradient(circle at 50% -18%, rgba(113, 140, 255, 0.34), transparent 38rem),
    linear-gradient(180deg, #070a13 0%, #11172a 42%, #303954 72%, #7f88a6 100%);
}

html body[data-role="guest"] .login-panel {
  color: #f8faff;
  background: linear-gradient(145deg, rgba(15, 21, 38, 0.86), rgba(8, 12, 24, 0.72));
}

html body[data-role="guest"] .login-panel h1 { color: #ffffff; }
html body[data-role="guest"] .login-panel .eyebrow { color: #9eb8ef; }
html body[data-role="guest"] .login-intro { color: rgba(224, 230, 244, 0.7); }

html body[data-role="guest"] :is(.login-form label > span, .access-type legend) {
  color: rgba(226, 232, 245, 0.72);
}

html body[data-role="guest"] :is(.login-form input, .invite-form input) {
  border-color: rgba(222, 230, 255, 0.18) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.075) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html body[data-role="guest"] :is(.login-form input, .invite-form input):focus {
  border-color: rgba(145, 181, 255, 0.74) !important;
  box-shadow: 0 0 0 3px rgba(86, 119, 255, 0.18);
}

html body[data-role="guest"] :is(.access-type-options, .auth-mode-switcher) {
  border-color: rgba(222, 230, 255, 0.11);
  background: rgba(255, 255, 255, 0.065);
}

html body[data-role="guest"] :is(.access-type-options label, .auth-mode-switcher button) {
  color: rgba(226, 232, 245, 0.62);
}

html body[data-role="guest"] .access-type-options label:has(input:checked),
html body[data-role="guest"] .auth-mode-switcher button[aria-selected="true"] {
  color: #101522;
  background: #f5f8ff;
}

html body[data-role="guest"] .button-primary {
  color: #0c1018;
  background: linear-gradient(135deg, #ffffff, #dce7ff);
}

html body[data-role="guest"] .button-primary:hover {
  color: #0c1018;
  background: #ffffff;
}

html body[data-role="guest"] .button-google {
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
}

html body[data-role="guest"] :is(.auth-divider, .auth-help, .registration-note, .privacy-note) {
  color: rgba(221, 228, 244, 0.58);
}

html body[data-role="guest"] :is(.auth-help div, .invitation-callout) {
  border-color: rgba(222, 230, 255, 0.12);
  color: rgba(226, 232, 245, 0.72);
  background: rgba(255, 255, 255, 0.055);
}

body[data-role="agency"] .nav-item.is-active::before,
body[data-role="client"] .nav-item.is-active::before {
  background: var(--dreamclient-blue);
}

body[data-role="agency"] .brand-room-label {
  color: #65708a;
}
