:root {
  color-scheme: light;
  --page: #f6f1ea;
  --milk: #fffdf8;
  --paper: #fbf7ef;
  --graphite: #171719;
  --graphite-soft: #2a2830;
  --muted: #625d67;
  --line: #e1d8cc;
  --plum: #5c2f68;
  --plum-deep: #2a1835;
  --coral: #e26d5a;
  --green: #47745d;
  --amber: #bc7b2b;
  --red: #bd3f3f;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 70px rgb(23 23 25 / 12%);
  --shadow-strong: 0 42px 110px rgb(23 23 25 / 20%);
  --container: min(100% - 40px, 1180px);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgb(226 109 90 / 16%), transparent 22rem),
    radial-gradient(circle at 12% 22%, rgb(92 47 104 / 13%), transparent 24rem),
    linear-gradient(135deg, var(--milk), var(--page) 48%, #eee4d8);
  color: var(--graphite);
  font-family: var(--font);
  line-height: 1.55;
}

body.workspace-body {
  background: #f2eee7;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.08rem;
  font-weight: 800;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

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

button:active,
.button:active {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid rgb(226 109 90 / 42%);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-5rem);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: var(--white);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-symbol {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--graphite);
  color: var(--milk);
  font-weight: 900;
  box-shadow: 0 14px 32px rgb(23 23 25 / 18%);
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 0.95rem;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid rgb(23 23 25 / 8%);
  border-radius: 999px;
  background: rgb(255 253 248 / 76%);
  box-shadow: 0 12px 34px rgb(23 23 25 / 8%);
}

.site-nav a {
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav a:hover {
  background: var(--graphite);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: var(--graphite);
  color: var(--white);
}

.hero-section,
.intro-band,
.feature-layout,
.workspace-preview,
.agents-section,
.process-section,
.calendar-section,
.quality-section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.8rem) 0;
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3.1rem, 5.2vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.16rem;
}

.hero-lead,
.intro-band p,
.quality-section p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.button-primary {
  background: var(--graphite);
  color: var(--white);
  box-shadow: 0 18px 40px rgb(23 23 25 / 18%);
}

.button-secondary {
  background: var(--white);
  color: var(--graphite);
  box-shadow: 0 14px 30px rgb(23 23 25 / 9%);
}

.button-ghost {
  border: 1px solid rgb(23 23 25 / 12%);
  background: rgb(255 255 255 / 54%);
  color: var(--graphite);
}

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

.hero-signals div {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 66%);
  box-shadow: 0 10px 28px rgb(23 23 25 / 7%);
}

.hero-signals dt {
  font-size: 2rem;
  font-weight: 900;
}

.hero-signals dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--graphite);
}

.hero-photo,
.hero-photo img,
.feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo img,
.feature-photo img {
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(23 23 25 / 0%), rgb(23 23 25 / 62%)),
    linear-gradient(90deg, rgb(92 47 104 / 22%), transparent);
}

.editorial-console {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1;
  padding: 1.2rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 22px;
  background: rgb(255 253 248 / 88%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 22%);
}

.console-top,
.console-grid,
.workspace-toolbar,
.topbar-actions,
.section-heading,
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.console-top span,
.console-grid span,
.status-pill,
.material-table em {
  border-radius: 999px;
  padding: 0.34rem 0.55rem;
  background: rgb(92 47 104 / 10%);
  color: var(--plum);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.console-title {
  max-width: 620px;
  margin: 1rem 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.05;
}

.console-grid {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.quality-line {
  height: 0.55rem;
  margin-top: 1rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(23 23 25 / 10%);
}

.quality-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--plum), var(--coral));
}

.intro-band {
  padding: clamp(3rem, 7vw, 6rem);
  border-radius: 34px;
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.intro-band .section-kicker,
.intro-band p {
  color: rgb(255 253 248 / 74%);
}

.feature-layout,
.workspace-preview,
.agents-section,
.process-section,
.calendar-section,
.quality-section {
  padding: clamp(4rem, 7vw, 7rem) 0 0;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 1rem;
}

.feature-large,
.feature-dark,
.feature-photo,
.workspace-frame,
.agents-section,
.process-section,
.calendar-section,
.quality-section,
.workspace-section,
.dashboard-hero {
  border-radius: var(--radius-lg);
}

.feature-large,
.workspace-section,
.dashboard-hero {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgb(255 253 248 / 76%);
  box-shadow: var(--shadow-soft);
}

.feature-dark {
  padding: 1.4rem;
  background: var(--plum-deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-dark p {
  color: rgb(255 255 255 / 72%);
}

.feature-photo {
  grid-column: 1 / -1;
  min-height: 360px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.check-list,
.stack-list {
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li,
.stack-list li {
  padding-left: 1.4rem;
  position: relative;
}

.check-list li::before,
.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
}

.workspace-frame {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 620px;
  overflow: hidden;
  background: #201e24;
  box-shadow: var(--shadow-strong);
}

.workspace-frame aside {
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  background: #171719;
  color: var(--white);
}

.workspace-frame aside a {
  padding: 0.68rem 0.75rem;
  border-radius: 12px;
  color: rgb(255 255 255 / 72%);
}

.workspace-frame aside a.active,
.workspace-frame aside a:hover {
  background: rgb(255 255 255 / 10%);
  color: var(--white);
}

.workspace-main {
  padding: 1.2rem;
  background: #f4efe6;
}

.workspace-toolbar,
.metric-row,
.material-table {
  margin-bottom: 1rem;
}

.workspace-toolbar {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
}

.workspace-toolbar button {
  background: var(--graphite);
  color: var(--white);
}

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

.metric-row div {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 28px rgb(23 23 25 / 6%);
}

.metric-row strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.material-table {
  min-width: 0;
  max-width: 100%;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 14px 36px rgb(23 23 25 / 8%);
}

.material-table [role="row"] {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.85fr 0.6fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgb(23 23 25 / 8%);
}

.app-table [role="row"] {
  grid-template-columns: 1.5fr 0.6fr 0.8fr 0.7fr 0.45fr;
}

.material-table [role="row"]:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.material-table [role="row"]:last-child {
  border-bottom: 0;
}

.state-row {
  grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.4fr) !important;
  color: var(--muted);
}

.state-row > span:first-child {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgb(92 47 104 / 10%);
  color: var(--plum);
  font-weight: 900;
}

.empty-state,
.error-state {
  color: var(--muted);
}

.empty-state strong,
.error-state strong {
  color: var(--graphite);
}

.error-state > span:first-child {
  background: rgb(189 63 63 / 12%);
  color: var(--red);
}

.loading-dot {
  position: relative;
}

.loading-dot::after {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: currentcolor;
  animation: pulse-dot 900ms var(--ease) infinite alternate;
}

@keyframes pulse-dot {
  from {
    opacity: 0.34;
    transform: scale(0.76);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.agent-grid article {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.agent-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.agent-grid span {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--plum), var(--coral));
  color: var(--white);
  font-weight: 900;
}

.agent-grid p,
.stack-list span,
.workspace-section p {
  color: var(--muted);
}

.process-section {
  color: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 16%);
  box-shadow: var(--shadow-strong);
}

.process-steps div {
  min-height: 220px;
  padding: 1.2rem;
  display: grid;
  align-content: space-between;
  background: var(--graphite);
}

.process-steps strong {
  color: var(--coral);
  font-size: 2.2rem;
}

.calendar-section {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.calendar-board span,
.calendar-board article {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 28px rgb(23 23 25 / 7%);
}

.calendar-board span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.calendar-board article {
  min-height: 128px;
  font-weight: 900;
}

.calendar-board .calendar-empty {
  grid-column: 1 / -1;
}

.calendar-board b {
  color: var(--plum);
  font-size: 0.78rem;
}

.quality-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: center;
}

.quality-section blockquote {
  margin: 0;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--plum-deep);
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-strong);
}

.site-footer {
  padding: 4rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.site-footer strong {
  color: var(--graphite);
}

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

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1rem;
  background: var(--graphite);
  color: var(--white);
}

.app-brand {
  margin-bottom: 1.2rem;
}

.app-sidebar nav {
  display: grid;
  gap: 0.25rem;
}

.app-sidebar nav a {
  border-radius: 14px;
  padding: 0.72rem 0.8rem;
  color: rgb(255 255 255 / 68%);
  font-weight: 800;
}

.app-sidebar nav a.active,
.app-sidebar nav a:hover {
  background: rgb(255 255 255 / 10%);
  color: var(--white);
}

.app-main {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: clamp(1rem, 2vw, 2rem);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.app-menu-toggle {
  display: none;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.45fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.decision-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--graphite);
  color: var(--white);
}

.decision-card p {
  color: rgb(255 255 255 / 70%);
}

.warning {
  background: rgb(188 123 43 / 18%);
  color: #ffd08c;
}

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

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

.workspace-section {
  min-width: 0;
  margin-top: 1rem;
}

.section-heading.compact {
  margin-bottom: 1rem;
}

.filter-bar {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.filter-bar button {
  min-height: 38px;
  background: var(--white);
  color: var(--muted);
}

.filter-bar button.active {
  background: var(--graphite);
  color: var(--white);
}

.stack-list li {
  display: grid;
}

.quality-stack {
  display: grid;
  gap: 0.7rem;
}

.quality-stack span {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem;
  border-radius: var(--radius-sm);
  background: rgb(92 47 104 / 8%);
}

.quality-stack em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

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

@media (prefers-reduced-motion: no-preference) {
  .section-reveal,
  .workspace-section,
  .dashboard-hero,
  .workspace-metrics {
    animation: rise-in 620ms var(--ease) both;
  }

  .hero-visual img {
    animation: photo-settle 1200ms var(--ease) both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(18px);
      filter: blur(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }

  @keyframes photo-settle {
    from {
      transform: scale(1.045);
      filter: saturate(0.86) contrast(0.94);
    }

    to {
      transform: scale(1);
      filter: saturate(1.02) contrast(1.02);
    }
  }
}

@media (max-width: 1024px) {
  .hero-section,
  .feature-layout,
  .calendar-section,
  .quality-section,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

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

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

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: min(86vw, 320px);
    transform: translateX(-104%);
    transition: transform 220ms var(--ease);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  html {
    font-size: 16.5px;
  }

  .site-header {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 30;
    width: min(88vw, 340px);
    display: none;
    padding: 0.7rem;
    border-radius: var(--radius-md);
    background: var(--milk);
    box-shadow: 0 22px 60px rgb(23 23 25 / 18%);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-section {
    min-height: auto;
    padding-top: 1rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12vw, 3.7rem);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-signals,
  .metric-row,
  .agent-grid,
  .workspace-grid,
  .process-steps,
  .calendar-board {
    grid-template-columns: 1fr;
  }

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

  .hero-signals div {
    padding: 0.72rem;
  }

  .hero-signals dt {
    font-size: 1.45rem;
  }

  .hero-signals dd {
    font-size: 0.72rem;
  }

  .workspace-frame {
    grid-template-columns: 1fr;
  }

  .workspace-frame aside {
    display: none;
  }

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

  .material-table [role="row"],
  .app-table [role="row"] {
    width: 760px;
    max-width: 760px;
  }

  .app-topbar,
  .topbar-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(2.25rem, 10.4vw, 2.9rem);
  }

  .hero-visual {
    min-height: 430px;
    border-radius: 24px;
  }

  .hero-signals {
    gap: 0.45rem;
  }

  .hero-signals div {
    padding: 0.6rem;
  }

  .hero-signals dd {
    font-size: 0.66rem;
  }

  .editorial-console {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
  }
}
.workspace-body .button,
.workspace-body button,
.workspace-body .app-sidebar nav a {
  background: #eee2d4 !important;
  color: #272521 !important;
  border: 1px solid #d9cebf;
}
.workspace-body .app-sidebar nav a.active,
.workspace-body .filter-bar button.active,
.workspace-body button:active,
.workspace-body .button:active {
  background: #27483e !important;
  color: #fff !important;
}
.workspace-body button:disabled { opacity: .55; cursor: not-allowed; }
.workspace-body .workspace-home { display: inline-flex; width: fit-content; min-height: 44px; padding: 8px 12px; font-size: .85rem; margin-bottom: 12px; }
.workspace-body [hidden] { display: none !important; }
.editorial-form { display: grid; gap: 12px; margin: 16px 0; }
.editorial-form label { display: grid; gap: 8px; }
.editorial-form input, .editorial-form textarea { width: 100%; max-width: 100%; font: inherit; padding: 12px; border: 1px solid #d9cebf; border-radius: 12px; background: #fff; color: #272521; }
.editorial-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.editorial-links a, .editorial-links button { padding: 8px 12px; border-radius: 10px; font: inherit; }
.version-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: 16px; background: #fff; border-radius: 12px; }
.calendar-platform { border-top: 1px solid #d9cebf; padding-top: 12px; margin-top: 16px; min-width: 0; }
.calendar-platform summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 700; }
.calendar-platform h4 { margin: 0; }
.calendar-platform p { overflow-wrap: anywhere; }
.calendar-platform .editorial-form button, .calendar-platform .button { white-space: normal; }
.calendar-suggestions { display: grid; gap: 8px; }
.calendar-suggestions button { text-align: left; }
.app-calendar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

/* Workspace: one task at a time, with the complete menu always within reach. */
.workspace-body { font-size: 16px; }
.workspace-body .app-shell { grid-template-columns: 254px minmax(0, 1fr); }
.workspace-body .app-sidebar { display: flex; flex-direction: column; height: 100dvh; padding: 22px 14px 16px; background: #f8f3eb; color: #272521; border-right: 1px solid #e2d9cc; overflow: hidden; }
.workspace-body .app-brand { flex: 0 0 auto; margin: 0 8px 18px; gap: 12px; }
.workspace-body .brand-symbol { background: #27483e; color: #fff; width: 36px; height: 36px; border-radius: 11px; }
.workspace-body .app-brand strong { font-size: 14px; line-height: 1.4; }
.workspace-body .app-brand small { color: #766d62; font-size: 11px; }
.workspace-body .app-sidebar nav { display: block; overflow-y: auto; min-height: 0; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #c9bba7 transparent; }
.nav-group { display: grid; gap: 4px; margin-bottom: 18px; }
.nav-group-title { margin: 0 10px 5px; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #7b7165; }
.workspace-body .app-sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 11px; min-height: 40px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; border-color: transparent; background: #eee2d4 !important; transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.workspace-body .app-sidebar nav a:hover { transform: translateX(2px); box-shadow: 0 2px 7px #45351b0a; }
.workspace-body .app-sidebar nav a.active { background: #27483e !important; color: #fff !important; }
.nav-count, .nav-tag { flex: 0 0 auto; border-radius: 6px; padding: 2px 5px; font-size: 10px; line-height: 1.3; background: #fff9; color: #6b4630; }
.nav-count { font-weight: 800; background: #f5d7b2; }
.workspace-body .app-main { padding: 26px 30px 48px; }
.workspace-body h1 { font-size: clamp(25px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.workspace-body h2 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.22; letter-spacing: -.025em; }
.workspace-body h3 { font-size: 21px; line-height: 1.35; }
.workspace-body .section-kicker { font-size: 10px; letter-spacing: .09em; color: #786b5c; margin: 0 0 8px; }
.workspace-body .app-topbar { margin-bottom: 24px; gap: 16px; }
.workspace-body .topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.workspace-body .topbar-actions .workspace-home { margin: 0; }
.workspace-body .status-pill { font-size: 11px; font-weight: 600; }
.workspace-body .button, .workspace-body button { border-radius: 11px; padding: 10px 14px; min-height: 44px; font-size: 14px; font-weight: 650; transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.workspace-body .button:hover, .workspace-body button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 14px #45351b14; }
.workspace-body .button:active, .workspace-body button:not(:disabled):active { transform: translateY(1px); box-shadow: none; }
.workspace-body a:focus-visible, .workspace-body button:focus-visible, .workspace-body summary:focus-visible, .workspace-body input:focus-visible, .workspace-body textarea:focus-visible { outline: 3px solid #587e69; outline-offset: 3px; }
.workspace-panes .workspace-grid { display: contents; }
.workspace-panes .workspace-section > .workspace-home, .workspace-body[data-workspace-view="dashboard"] .app-topbar .workspace-home { display: none; }
.workspace-body .dashboard-hero, .workspace-body .workspace-metrics { animation: none; }
.workspace-body .workspace-section { margin-top: 0; padding: 24px; border: 1px solid #e5ddd1; border-radius: 18px; box-shadow: 0 6px 24px #30220b05; background: #fffcf7; }
.workspace-body .section-heading.compact { display: block; margin-bottom: 20px; }
.workspace-body .workspace-section > .workspace-home { margin-bottom: 18px; }
.workspace-body .dashboard-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); padding: 26px; gap: 24px; border: 1px solid #e5ddd1; border-radius: 18px; background: #fffcf7; box-shadow: 0 6px 24px #30220b05; }
.workspace-body .dashboard-hero p { max-width: 62ch; }
.workspace-body .decision-card { padding: 22px; border-radius: 14px; background: #27483e; }
.workspace-body .decision-card h3 { color: #fff; margin: 0 0 8px; }
.workspace-body .decision-card p { margin: 0 0 16px; font-size: 14px; color: #ffffffcf; }
.workspace-body .workspace-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.workspace-metrics > a { display: grid; gap: 5px; padding: 18px; border: 1px solid #e5ddd1; border-radius: 14px; background: #fff; transition: transform 150ms ease, box-shadow 150ms ease; }
.workspace-metrics > a:hover, .workspace-shortcuts > a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px #30220b0c; }
.workspace-body .workspace-metrics strong { font-size: 28px; line-height: 1.1; }
.workspace-body .workspace-metrics span { font-size: 12px; color: #766c60; }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.workspace-shortcuts > a { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: 14px; border: 1px solid #e5ddd1; background: #fffcf7; transition: transform 150ms ease, box-shadow 150ms ease; }
.shortcut-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #e9eee7; color: #27483e; font-size: 13px; font-weight: 750; }
.workspace-shortcuts strong { font-size: 15px; }
.workspace-shortcuts > a > span:last-child { font-size: 13px; color: #766c60; }
.workspace-body .material-table [role="row"] { grid-template-columns: minmax(210px, 2.6fr) 90px 95px minmax(120px, 1.1fr) minmax(100px, 1fr); gap: 12px; padding: 16px; font-size: 14px; }
.workspace-body .material-table [role="row"]:first-child { font-size: 10px; }
.quality-disclosure { padding: 14px 16px; border-radius: 12px; background: #eaf0e8; color: #385645; font-size: 14px; }
.workspace-body .quality-stack { display: grid; gap: 12px; }
.quality-overview { margin: 2px 0 6px; font-weight: 650; }
.quality-item { padding: 0 16px 16px; border: 1px solid #e0d9ce; border-radius: 13px; background: #fff; }
.quality-item[data-quality="attention"] { border-left: 4px solid #b8874e; }
.quality-item summary { display: grid; gap: 5px; padding: 17px 0; cursor: pointer; }
.quality-label { color: #766c60; font-size: 12px; }
.quality-item ul { padding-left: 20px; }
.quality-item li { padding: 5px 0; }
.check-pass { color: #385e47; }
.check-attention { color: #805b2d; font-weight: 600; }
.workspace-overlay { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .workspace-panes .workspace-section:not([hidden]) { animation: workspace-enter 160ms ease-out; }
  @keyframes workspace-enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1024px) {
  .workspace-body .app-shell { grid-template-columns: 1fr; }
  .workspace-body .app-sidebar { z-index: 30; width: min(86vw, 300px); }
  .workspace-body .workspace-overlay { position: fixed; inset: 0; z-index: 20; display: block; width: 100%; height: 100dvh; min-height: 0; background: #1d211d66 !important; border: 0; border-radius: 0; padding: 0; transform: none !important; box-shadow: none; }
  .workspace-body .app-main { padding: 18px; }
  .workspace-body .app-topbar { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .workspace-body .app-topbar { flex-direction: row; align-items: center; }
  .workspace-body .topbar-actions { width: 100%; flex-direction: row; align-items: center; }
  .workspace-body .topbar-actions [data-health-status] { width: 100%; order: 3; }
  .workspace-body .dashboard-hero { grid-template-columns: 1fr; padding: 20px; }
  .workspace-body .workspace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-body .workspace-section { padding: 18px; }
  .workspace-body .workspace-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-shortcuts > a { padding: 16px; }
  .workspace-body .material-table [role="row"] { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 100%; gap: 10px; }
  .workspace-body .material-table [role="row"]:first-child { display: none; }
  .workspace-body .material-table [role="row"] > strong { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .workspace-body *, .workspace-body *::before, .workspace-body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Idea actions and saved publication order. */
.idea-card{display:grid;gap:14px}.idea-actions{display:flex;flex-wrap:wrap;gap:10px}.idea-actions button{font-size:.9rem;padding:11px 16px}.idea-panel{padding:18px;border:1px solid #d9d5c9;border-radius:16px;background:#f8f5ef}.idea-panel[hidden]{display:none}.idea-panel>p{white-space:pre-wrap}.idea-panel>strong{display:block;margin:12px 0}.calendar-movable{cursor:grab}.calendar-movable:active{cursor:grabbing}.calendar-movable :is(a,button,summary){cursor:pointer}.calendar-movable :is(input,textarea,select){cursor:auto}.calendar-platform{border-radius:14px;padding:14px;margin-top:14px}.idea-panel select{width:100%;max-width:100%}@media(prefers-reduced-motion:reduce){.calendar-platform,.app-calendar>article{transition:none}}
.calendar-movable{user-select:none;-webkit-user-select:none}.calendar-movable :is(input,textarea,select){user-select:text;-webkit-user-select:text}.calendar-dragging{opacity:.35}.calendar-drag-preview{z-index:10000;pointer-events:none!important;opacity:.95;border-radius:18px;border:1px solid #d9cebf;background:#fffaf2;padding:20px;box-shadow:0 20px 48px rgba(36,31,24,.2);overflow:hidden}.calendar-drag-preview *{pointer-events:none!important}.calendar-is-dragging,.calendar-is-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}

.month-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.month-summary>div{display:grid;gap:6px;padding:18px;border:1px solid #ddd6c8;border-radius:16px;background:#fffdf8}.month-summary strong{font-size:28px;line-height:1.1}.month-summary span{font-size:13px;color:var(--muted)}.month-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0}.month-actions p{max-width:620px;margin:0;font-size:13px;color:var(--muted)}.month-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:20px 0}.month-day{display:flex;flex-direction:column;gap:7px;align-items:flex-start;text-align:left;min-width:0;min-height:178px;padding:15px;border:1px solid #ddd6c8;border-radius:15px;background:#fffdf8;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}.month-day>strong{font-size:15px}.month-day>small{font-size:11px;color:var(--muted)}.month-day>span{font-size:12px;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.month-day[aria-pressed=true]{border-color:#6e8a77;background:#f3f5ec}.month-day:hover{box-shadow:0 5px 16px #203f3612}.month-day[data-state=failed]{border-color:#c58a50}.month-day[data-state=ready]{border-top:3px solid #55715b}.month-weeks{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 16px}.month-weeks .button[aria-pressed=true]{background:#25463d;color:#fff}.month-day:focus-visible{outline:3px solid #94a996;outline-offset:3px}@media(max-width:1200px){.month-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.month-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.month-summary>div{padding:14px}.month-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.month-day{padding:12px;min-height:185px}.month-day>span{font-size:12px}.month-weeks .button{padding:9px 12px;min-height:44px;font-size:13px}.month-actions>.button{width:100%;white-space:normal}}@media(prefers-reduced-motion:reduce){.month-day{transition:none}}
.publication-done{display:inline-flex;align-items:center;border:1px solid #b8cebb;border-radius:999px;padding:5px 10px;background:#edf5eb;color:#28533b;font-size:13px;font-weight:700}.month-day .publication-done{font-size:11px}.calendar-platform>.publication-done{margin:8px 0}
