:root {
  --bg: #f5efe6;
  --bg-soft: rgba(255, 248, 239, 0.82);
  --surface: rgba(255, 251, 245, 0.92);
  --ink: #1f2d2b;
  --muted: #60706d;
  --line: rgba(35, 53, 47, 0.12);
  --forest: #174c43;
  --forest-soft: #daf1e5;
  --marine: #244d71;
  --marine-soft: #ddebf8;
  --amber: #a65a1d;
  --amber-soft: #f8e5d4;
  --shadow: 0 24px 50px rgba(34, 39, 37, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 106, 90, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(166, 90, 29, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f2ea 0%, #efe7dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 76, 67, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 76, 67, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 24px;
  min-height: 100vh;
}

.auth-hero,
.auth-card,
.worker-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
}

.auth-hero {
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 32px;
  color: #f8f6f0;
  background: linear-gradient(135deg, #174c43 0%, #205d4f 46%, #2f7464 100%);
}

.auth-copy h1,
.worker-header h1,
.worker-editor-head h2,
.auth-card h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.auth-copy h1 {
  font-size: clamp(2rem, 2.8vw, 3.4rem);
  max-width: 12ch;
}

.auth-copy p:last-child {
  max-width: 56ch;
  line-height: 1.75;
}

.auth-feature-grid {
  display: grid;
  gap: 14px;
}

.auth-feature-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-feature-card strong,
.auth-feature-card span {
  display: block;
}

.auth-feature-card span {
  margin-top: 8px;
  color: rgba(248, 246, 240, 0.82);
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-soft);
}

.auth-note,
.auth-error {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field span {
  font-weight: 700;
}

.text-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 76, 67, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.text-input:focus,
.draft-editor:focus {
  outline: 2px solid rgba(23, 76, 67, 0.22);
  outline-offset: 2px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.auth-error {
  min-height: 1.5em;
  margin: 0;
}

.worker-shell {
  min-height: 100vh;
  padding: 24px;
}

.worker-card {
  padding: 24px;
  background: var(--bg-soft);
}

.worker-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 76, 67, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.worker-banner strong,
.worker-banner span {
  display: block;
}

.worker-banner.is-live {
  background: linear-gradient(135deg, rgba(218, 241, 229, 0.95) 0%, rgba(246, 252, 248, 0.92) 100%);
}

.worker-banner.is-warning {
  background: linear-gradient(135deg, rgba(248, 229, 212, 0.95) 0%, rgba(255, 248, 240, 0.92) 100%);
}

.worker-header,
.worker-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.worker-header h1 {
  font-size: clamp(1.5rem, 1.8vw, 2.2rem);
}

.worker-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
  margin-top: 18px;
}

.worker-grid--history {
  align-items: start;
}

.worker-context-card,
.worker-editor-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.worker-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #fff;
  background: var(--forest);
}

.worker-badge--muted {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.worker-meta,
.worker-actions-inline,
.worker-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.worker-quote {
  margin-block: 18px;
}

.worker-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.worker-thread-side {
  max-width: 220px;
  text-align: right;
}

.worker-thread-side small,
.worker-thread-side strong {
  display: block;
}

.worker-thread-note {
  margin: 14px 0 18px;
  color: var(--muted);
}

.thread-timeline {
  display: grid;
  gap: 14px;
  max-height: 620px;
  padding-right: 6px;
  overflow: auto;
}

.thread-bubble {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 76, 67, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.thread-bubble--customer {
  border-left: 4px solid var(--marine);
}

.thread-bubble--employee {
  border-left: 4px solid var(--forest);
}

.thread-bubble--assistant {
  border-left: 4px solid var(--amber);
}

.thread-bubble--system {
  border-left: 4px solid #7b6f63;
}

.thread-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.thread-bubble p {
  margin: 0;
  line-height: 1.7;
}

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

.worker-thread div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.worker-thread strong,
.worker-thread small {
  display: block;
}

.worker-thread strong {
  margin-top: 6px;
}

.worker-draft-editor {
  min-height: 300px;
  margin-top: 18px;
}

.worker-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.worker-status-strip div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.worker-status-strip strong,
.worker-status-strip small {
  display: block;
}

.worker-status-strip strong {
  margin-top: 6px;
}

.worker-helper,
.worker-error {
  margin: 14px 0 0;
}

.worker-helper {
  color: var(--muted);
  line-height: 1.6;
}

.worker-error {
  min-height: 1.5em;
  color: #9e3e1d;
}

.worker-footer {
  margin-top: 18px;
}

.admin-shell {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  color: #f8f6f0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, #163b36 0%, #1f524a 52%, #2e665d 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-hero-copy,
.admin-hero-side,
.admin-side-stack {
  display: grid;
  gap: 18px;
}

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

.admin-glance-card {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-glance-card small,
.admin-glance-card strong,
.admin-glance-card span {
  display: block;
}

.admin-glance-card small,
.admin-glance-card span {
  color: var(--muted);
  line-height: 1.6;
}

.admin-glance-card strong {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.admin-glance-card--ok {
  background: linear-gradient(180deg, #f2fbf6 0%, #e7f7ee 100%);
}

.admin-glance-card--muted {
  background: linear-gradient(180deg, #fcfaf7 0%, #f4eee7 100%);
}

.admin-glance-card--marine {
  background: linear-gradient(180deg, #f3f8fd 0%, #e7eef7 100%);
}

.admin-glance-card--amber {
  background: linear-gradient(180deg, #fff8f1 0%, #f7ece0 100%);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.admin-topbar,
.admin-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-topbar,
.admin-card-head,
.admin-settings-block-head,
.admin-form-footer,
.admin-log-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.admin-topbar h1,
.admin-card h2,
.admin-settings-block h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.admin-topbar h1 {
  font-size: clamp(1.9rem, 2.1vw, 2.8rem);
}

.admin-subtitle,
.admin-note,
.admin-feedback,
.admin-log-row p,
.admin-log-meta {
  color: var(--muted);
  line-height: 1.6;
}

.admin-topbar-actions,
.admin-runtime-meta,
.admin-choice-row,
.admin-channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-topbar-user small,
.admin-topbar-user strong,
.admin-topbar-user span {
  display: block;
}

.admin-topbar-user span {
  color: rgba(248, 246, 240, 0.78);
  line-height: 1.5;
}

.admin-card {
  display: grid;
  gap: 22px;
}

.admin-settings-form,
.admin-settings-block,
.admin-log-list {
  display: grid;
  gap: 18px;
}

.admin-choice-row,
.admin-channel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-choice-row--schedules {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-choice-card,
.admin-toggle-card,
.admin-log-row {
  border: 1px solid rgba(23, 76, 67, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-choice-card,
.admin-toggle-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  cursor: pointer;
}

.admin-choice-card--schedule {
  min-height: 180px;
  align-content: start;
}

.admin-choice-card small,
.admin-toggle-card span {
  color: var(--muted);
  line-height: 1.55;
}

.admin-choice-card input,
.admin-toggle-card input,
.admin-day-toggle input {
  accent-color: var(--forest);
}

.admin-choice-card.is-active,
.admin-toggle-card.is-active {
  border-color: rgba(23, 76, 67, 0.28);
  box-shadow: 0 16px 24px rgba(23, 76, 67, 0.08);
}

.admin-choice-card strong,
.admin-toggle-card strong,
.admin-day-toggle span,
.admin-log-top strong {
  display: block;
}

.admin-schedule-grid {
  display: grid;
  gap: 12px;
}

.admin-schedule-preview {
  display: grid;
  gap: 10px;
}

.admin-schedule-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 76, 67, 0.09);
}

.admin-schedule-preview-row strong,
.admin-schedule-preview-row span {
  display: block;
}

.admin-schedule-preview-row span {
  color: var(--muted);
  text-align: right;
}

.admin-note--highlight {
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(36, 77, 113, 0.08);
  border: 1px solid rgba(36, 77, 113, 0.12);
}

.admin-schedule-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border: 1px solid rgba(23, 76, 67, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-day-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-time-input {
  min-width: 0;
}

.admin-time-separator {
  text-align: center;
  color: var(--muted);
  padding-bottom: 12px;
}

.admin-feedback {
  min-height: 1.5em;
  margin: 0;
}

.admin-feedback--error {
  color: #9e3e1d;
}

.admin-feedback--ok {
  color: var(--forest);
}

.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-status--ok {
  color: var(--forest);
  background: var(--forest-soft);
}

.admin-status--error {
  color: #9e3e1d;
  background: var(--amber-soft);
}

.admin-status--muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
}

.admin-log-list {
  margin-top: 6px;
}

.admin-log-row {
  padding: 18px 20px;
}

.admin-log-top {
  align-items: center;
}

.admin-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.admin-log-empty {
  padding: 20px;
  border-radius: 20px;
  border: 1px dashed rgba(23, 76, 67, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

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

button,
textarea {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
}

.sidebar,
.content {
  position: relative;
  z-index: 1;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  min-height: calc(100vh - 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(19, 44, 40, 0.9);
  color: #f8f6f0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 24px;
}

.brand-panel h1,
.topbar h2,
.section-heading h3,
.hero-card h3,
.info-card h4,
.diagram-card h4,
.panel-card h4,
.channel-card h4,
.integration-card h4 {
  margin: 0;
}

.brand-panel h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.sidebar-copy,
.section-copy,
.hero-card p,
.info-card p,
.panel-card p,
.integration-card p,
.channel-card p {
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

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

.nav-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-link strong,
.sidebar-footnote strong {
  display: block;
}

.nav-link small,
.sidebar-footnote small {
  color: rgba(248, 246, 240, 0.72);
}

.nav-step {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-footnote {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: none;
}

.status-dot.is-online {
  background: #6fe2b3;
  box-shadow: 0 0 0 8px rgba(111, 226, 179, 0.18);
}

.status-dot.is-preview {
  background: #f1bb76;
  box-shadow: 0 0 0 8px rgba(241, 187, 118, 0.18);
}

.content {
  display: grid;
  gap: 24px;
}

.topbar,
.section-block,
.panel-card,
.info-card,
.diagram-card,
.channel-card,
.integration-card,
.message-card,
.editor-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar,
.section-block {
  background: var(--bg-soft);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
}

.topbar h2 {
  font-size: clamp(1.6rem, 1.6vw, 2.4rem);
  letter-spacing: -0.04em;
}

.topbar-actions,
.button-row,
.chip-row,
.editor-actions,
.hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.chip-button,
.stage-chip,
.day-pill {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button,
.ghost-button {
  padding: 12px 18px;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--forest) 0%, #0f5b50 100%);
  box-shadow: 0 16px 24px rgba(23, 76, 67, 0.18);
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 76, 67, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.chip-button:hover,
.stage-chip:hover,
.day-pill:hover,
.channel-card:hover {
  transform: translateY(-2px);
}

.hero-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
}

.hero-card {
  overflow: hidden;
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -90px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.hero-card--primary {
  color: #f8f6f0;
  background: linear-gradient(135deg, #174c43 0%, #205d4f 46%, #2f7464 100%);
}

.hero-card--secondary {
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.95) 0%, rgba(241, 232, 220, 0.94) 100%);
}

.hero-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2vw, 2.6rem);
  letter-spacing: -0.05em;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.14);
}

.pill--muted {
  background: rgba(255, 255, 255, 0.08);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-row div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.metric-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.section-block {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  animation: fadeUp 400ms ease both;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.section-heading h3 {
  font-size: clamp(1.4rem, 1.6vw, 2.2rem);
  letter-spacing: -0.045em;
}

.section-copy {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.overview-grid,
.dual-column,
.workbench {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid,
.stats-grid,
.triple-grid,
.quad-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.info-card,
.diagram-card,
.panel-card,
.channel-card,
.integration-card,
.message-card,
.editor-card,
.stat-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.info-card h4,
.diagram-card h4,
.panel-card h4,
.channel-card h4,
.integration-card h4,
.message-card h4,
.editor-card h4,
.stat-card strong {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.flow-stack,
.flow-row,
.stage-grid,
.day-row,
.map-list,
.metadata-list,
.queue-strip,
.recommendation-list,
.benefit-list,
.log-table {
  display: grid;
  gap: 12px;
}

.flow-step,
.map-row,
.log-row {
  display: grid;
  gap: 12px;
  align-items: center;
}

.flow-step {
  grid-template-columns: 46px 1fr;
  padding: 14px;
  border-radius: 16px;
  background: rgba(23, 76, 67, 0.06);
}

.flow-step span,
.flow-pill span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-family: var(--mono);
  color: var(--forest);
  background: rgba(23, 76, 67, 0.1);
}

.audit-strip,
.metadata-list,
.queue-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.audit-strip div,
.queue-strip div,
.metadata-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.audit-strip strong,
.queue-strip strong,
.metadata-list strong {
  display: block;
  margin-top: 6px;
}

.chip-button {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border: 1px solid rgba(23, 76, 67, 0.08);
}

.chip-button.is-active,
.stage-chip.is-selected,
.day-pill.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--forest) 0%, #0f5b50 100%);
}

.stage-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stage-chip,
.day-pill {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 76, 67, 0.09);
}

.space-top {
  margin-top: 18px;
}

.channel-card {
  min-height: 230px;
  cursor: pointer;
}

.channel-card strong {
  display: block;
  margin: 12px 0 10px;
}

.channel-card.is-muted {
  opacity: 0.56;
}

.message-card,
.editor-card {
  min-height: 100%;
}

.customer-quote {
  margin: 20px 0;
  padding: 22px;
  border-left: 4px solid var(--amber);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.draft-editor {
  width: 100%;
  min-height: 320px;
  padding: 18px;
  border: 1px solid rgba(23, 76, 67, 0.12);
  border-radius: 18px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  line-height: 1.7;
}

.recommendation-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(23, 76, 67, 0.06);
}

.recommendation-list,
.benefit-list {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.integration-card {
  min-height: 220px;
}

.integration-card--forest {
  background: linear-gradient(180deg, #f6fcf8 0%, #e9f7ef 100%);
}

.integration-card--amber {
  background: linear-gradient(180deg, #fff8f0 0%, #f9ebdd 100%);
}

.integration-card--marine {
  background: linear-gradient(180deg, #f5fafe 0%, #e6eef8 100%);
}

.integration-card--copper {
  background: linear-gradient(180deg, #fff7f3 0%, #f5e8e0 100%);
}

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

.flow-pill {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.map-row {
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 76, 67, 0.09);
}

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

.map-row code {
  font-family: var(--mono);
  color: var(--forest);
}

.log-table {
  margin-top: 8px;
}

.log-row {
  grid-template-columns: 86px 170px minmax(0, 1fr) 120px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.log-row--head {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--muted);
  padding-inline: 0;
}

.status-badge {
  display: inline-flex;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.status-badge--ready {
  color: var(--marine);
  background: var(--marine-soft);
}

.status-badge--sent {
  color: var(--forest);
  background: var(--forest-soft);
}

.status-badge--thread,
.status-badge--mapped {
  color: var(--amber);
  background: var(--amber-soft);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width: 1220px) {
  .auth-shell,
  .shell {
    grid-template-columns: 1fr;
  }

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

  .overview-grid,
  .dual-column,
  .workbench,
  .admin-layout,
  .hero-strip,
  .flow-row,
  .quad-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .stats-grid,
  .triple-grid,
  .admin-glance-grid,
  .worker-grid,
  .worker-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .auth-shell,
  .shell {
    padding: 14px;
  }

  .auth-hero,
  .auth-card,
  .topbar,
  .section-block,
  .hero-card,
  .sidebar,
  .admin-hero,
  .worker-card {
    padding: 20px;
    border-radius: 22px;
  }

  .topbar,
  .section-heading {
    display: grid;
  }

  .card-grid,
  .stats-grid,
  .triple-grid,
  .admin-glance-grid,
  .metric-row,
  .audit-strip,
  .metadata-list,
  .queue-strip,
  .worker-grid,
  .worker-thread,
  .worker-status-strip {
    grid-template-columns: 1fr;
  }

  .worker-banner,
  .worker-header,
  .worker-editor-head,
  .worker-thread-head,
  .admin-hero,
  .admin-topbar,
  .admin-card-head,
  .admin-settings-block-head,
  .admin-form-footer,
  .admin-log-top {
    display: grid;
  }

  .worker-thread-side {
    text-align: left;
  }

  .log-row,
  .log-row--head,
  .map-row,
  .admin-schedule-preview-row,
  .admin-schedule-row {
    grid-template-columns: 1fr;
  }

  .admin-time-separator {
    display: none;
  }

  .admin-schedule-preview-row span {
    text-align: left;
  }
}
