@font-face {
  font-family: "SF Pro";
  src:
    local("SF Pro Text Light"),
    url("/fonts/SF-Pro-Text-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* AskWise product layer. Built on top of the askOps visual tokens above. */
:root {
  --primary: #116b5f;
  --primary-strong: #0a564d;
  --primary-soft: rgba(17, 107, 95, 0.1);
  --info: #2457c5;
  --info-soft: rgba(36, 87, 197, 0.12);
  --violet: #6c55d9;
  --violet-soft: rgba(108, 85, 217, 0.12);
  --warning: #a86700;
  --warning-soft: rgba(168, 103, 0, 0.13);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(244, 248, 246, 0.9);
}

.askwise-shell .brand-mark {
  background:
    linear-gradient(135deg, rgba(17, 107, 95, 0.18), rgba(36, 87, 197, 0.12)),
    #ffffff;
}

.askwise-page {
  gap: 18px;
  min-height: 100vh;
}

.wise-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 28px;
  align-items: center;
  width: min(1120px, calc(100vw - 48px));
}

.wise-auth-copy {
  display: grid;
  gap: 20px;
  max-width: 660px;
  padding: 32px;
}

.wise-auth-copy h1,
.wise-intro h1,
.wise-panel h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.wise-auth-copy p,
.wise-intro p,
.wise-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wise-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wise-auth-points span,
.wise-ai-status,
.wise-reset-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--color-ink-5);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.wise-reset-card {
  text-decoration: none;
}

.wise-loading-card {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(420px, calc(100vw - 48px));
  text-align: center;
}

.wise-loading-card h1 {
  margin: 0;
}

.wise-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--color-ink-10);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: wise-spin 850ms linear infinite;
}

.wise-intro {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

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

.wise-metric {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.wise-metric-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.wise-tone-success {
  color: var(--success);
  background: var(--success-soft);
}

.wise-tone-info {
  color: var(--info);
  background: var(--info-soft);
}

.wise-tone-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.wise-tone-violet {
  color: var(--violet);
  background: var(--violet-soft);
}

.wise-metric small,
.wise-material-card small,
.wise-message small,
.wise-topic-card small,
.wise-topic-row small,
.wise-path-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.wise-metric strong {
  display: block;
  margin-top: 3px;
  color: var(--color-ink);
  font-size: 28px;
  line-height: 1;
}

.wise-metric p {
  margin: 6px 0 0;
  font-size: 13px;
}

.wise-dashboard-grid,
.wise-two-column,
.wise-practice-layout,
.wise-tutor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.wise-practice-layout,
.wise-tutor-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.wise-panel {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.wise-stack {
  display: grid;
  gap: 18px;
}

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

.wise-source-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.wise-source-option > span:first-child {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.wise-source-option strong,
.wise-radio-option strong {
  display: block;
}

.wise-source-option small,
.wise-radio-option small {
  display: block;
  color: var(--muted);
}

.wise-source-option.active {
  border-color: rgba(17, 107, 95, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 241, 0.9));
}

.wise-ai-builder {
  align-content: start;
}

.wise-radio-stack {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.wise-radio-stack legend {
  margin-bottom: 2px;
  color: var(--color-ink-50);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.wise-radio-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border-radius: 16px;
  background: var(--color-ink-5);
}

.wise-radio-option input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.wise-dynamic-section,
.wise-ai-exam-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 2px;
}

.wise-full-row {
  grid-column: 1 / -1;
}

.wise-path-list,
.wise-material-list,
.wise-topic-list,
.wise-thread,
.wise-option-list {
  display: grid;
  gap: 12px;
}

.wise-path-row,
.wise-topic-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  text-align: left;
}

.wise-path-row > span:first-child,
.wise-topic-row > span:first-child,
.wise-material-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--primary-strong);
  background: #ffffff;
}

.wise-path-row strong,
.wise-topic-row strong,
.wise-material-card h3,
.wise-topic-card h3 {
  display: block;
  margin: 0;
  color: var(--color-ink);
}

.wise-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-ink-5);
}

.wise-empty > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: var(--primary-strong);
  background: #ffffff;
}

.wise-empty h3 {
  margin: 0;
}

.wise-file-picker {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 16px;
  border: 1px dashed var(--color-ink-20);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.wise-file-picker > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.wise-file-picker strong,
.wise-file-picker small {
  display: block;
}

.wise-file-picker small {
  color: var(--muted);
}

.wise-file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.wise-upload-panel textarea {
  min-height: 220px;
}

.wise-ai-builder textarea {
  min-height: 84px;
}

.wise-material-card,
.wise-topic-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.wise-material-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.wise-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.icon-button.wise-delete-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--danger);
  background: var(--danger-soft);
}

.wise-practice-config {
  position: sticky;
  top: 14px;
}

.wise-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.wise-check-grid legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--color-ink-50);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.wise-check-grid label,
.wise-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--color-ink-5);
}

.wise-check-grid input,
.wise-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.wise-question-stage {
  min-height: calc(100vh - 68px);
}

.wise-question {
  display: grid;
  gap: 20px;
}

.wise-question-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.wise-question-top h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.wise-question-prompt {
  color: var(--color-ink) !important;
  font-size: 22px;
  line-height: 1.45;
}

.wise-option {
  display: grid;
  grid-template-columns: 20px 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.wise-option input {
  margin-top: 7px;
  accent-color: var(--primary);
}

.wise-option-letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-ink-5);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.wise-option-text {
  align-self: center;
  min-width: 0;
  line-height: 1.45;
}

.wise-option:has(input:checked) {
  border-color: rgba(17, 107, 95, 0.42);
  background: var(--primary-soft);
}

.wise-option:has(input:checked) .wise-option-letter {
  background: var(--primary);
  color: #ffffff;
}

.wise-answer-form,
.wise-tutor-form {
  display: grid;
  gap: 14px;
}

.wise-answer-field textarea {
  min-height: 140px;
}

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

.wise-matching-grid > div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--color-ink-5);
}

.wise-feedback {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--success-soft);
  color: var(--color-ink);
}

.wise-feedback[data-correct="false"] {
  background: var(--warning-soft);
}

.wise-feedback > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.wise-feedback strong {
  font-size: 22px;
}

.wise-feedback p {
  color: var(--color-ink);
}

.wise-feedback small {
  color: var(--muted);
  font-weight: 600;
}

.wise-tutor-panel {
  min-height: calc(100vh - 68px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.wise-thread {
  align-content: start;
  max-height: calc(100vh - 300px);
  overflow: auto;
  padding-right: 4px;
}

.wise-message {
  width: min(720px, 86%);
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--color-ink-5);
}

.wise-message.user {
  justify-self: end;
  background: var(--primary-soft);
}

.wise-message.assistant {
  justify-self: start;
  background: rgba(255, 255, 255, 0.82);
}

.wise-message-body {
  display: grid;
  gap: 10px;
}

.wise-message-body p {
  margin: 0;
  color: var(--color-ink);
  line-height: 1.55;
}

.wise-message-body ul,
.wise-message-body ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--color-ink);
}

.wise-message-body li {
  line-height: 1.5;
}

.wise-message-body strong {
  color: var(--color-ink);
  font-weight: 700;
}

.wise-message-body code {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--color-ink-7);
  font-size: 0.94em;
}

.wise-tutor-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.wise-tutor-form textarea {
  min-height: 52px;
  max-height: 150px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  resize: vertical;
}

.wise-progress-ring {
  --progress: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    conic-gradient(var(--primary) calc(var(--progress) * 1%), var(--color-ink-7) 0),
    #ffffff;
}

.wise-progress-ring strong,
.wise-progress-ring span {
  grid-area: 1 / 1;
}

.wise-progress-ring strong {
  margin-top: -18px;
  font-size: 44px;
}

.wise-progress-ring span {
  margin-top: 48px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.wise-progress-stats,
.wise-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wise-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-ink-7);
}

.wise-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--info));
}

.wise-toast {
  position: sticky;
  top: 10px;
  z-index: 40;
  width: fit-content;
  max-width: min(620px, 100%);
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.wise-toast[data-tone="danger"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.wise-error-copy {
  margin: 20px 0;
  color: var(--danger);
}

@keyframes wise-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .wise-metric-grid,
  .wise-dashboard-grid,
  .wise-two-column,
  .wise-practice-layout,
  .wise-tutor-layout {
    grid-template-columns: 1fr;
  }

  .wise-practice-config {
    position: static;
  }
}

@media (max-width: 780px) {
  .wise-auth-grid {
    grid-template-columns: 1fr;
    width: calc(100vw - 28px);
  }

  .wise-auth-copy {
    padding: 64px 14px 4px;
  }

  .auth-form {
    padding-left: 0;
  }

  .wise-metric-grid,
  .wise-source-switch,
  .wise-dynamic-section,
  .wise-ai-exam-options,
  .wise-progress-stats,
  .wise-topic-grid,
  .wise-matching-grid {
    grid-template-columns: 1fr;
  }

  .wise-question-top,
  .wise-feedback > div:first-child {
    flex-direction: column;
  }

  .wise-tutor-form {
    grid-template-columns: 1fr;
  }
}

@font-face {
  font-family: "SF Pro";
  src:
    local("SF Pro Text Regular"),
    url("/fonts/SF-Pro-Text-Regular.otf") format("opentype");
  font-weight: var(--font-weight-medium);
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src:
    local("SF Pro Text Medium"),
    url("/fonts/SF-Pro-Text-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src:
    local("SF Pro Text Semibold"),
    url("/fonts/SF-Pro-Text-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src:
    local("SF Pro Text Bold"),
    url("/fonts/SF-Pro-Text-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src:
    local("SF Pro Text Heavy"),
    url("/fonts/SF-Pro-Text-Heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src:
    local("SF Pro Text Heavy"),
    url("/fonts/SF-Pro-Text-Heavy.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-bg: #fafafa;
  --color-white: #fff;
  --color-white-70: #f9f5f096;
  --color-white-5: #faf6f212;
  --color-red: #c30000;
  --color-grey: #606060;
  --color-border-light: #edf0ef;
  --color-ink: #333333;
  --color-ink-5: rgb(51 51 51 / 5%);
  --color-ink-7: rgb(51 51 51 / 7%);
  --color-ink-10: rgb(51 51 51 / 10%);
  --color-ink-20: rgb(51 51 51 / 20%);
  --color-ink-50: rgb(51 51 51 / 50%);
  --color-accent-blue: #002e8a;
  --color-accent-purple: #2e0658;
  --color-accent-brown: #64250a;
  --color-text-muted: #aebbbb;
  --color-text-subtle: #94a3b8;
  --color-success: #035900;
  --color-warning: #d35400;
  --color-danger: #b70031;
  --color-bordeaux: #540b35;
  --color-border-soft: #cbd5e1;
  --color-chart-blue: #355cff;
  --color-blue-soft: #eff4ff;
  --color-purple-soft: #f8f5fc;
  --color-green-soft: #f0f7ef;
  --color-rose-soft: #fff1f2;
  --color-bordeaux-soft: #fff1da;
  --color-surface-card: #edefef;
  --color-border-dark: var(--color-ink);
  --border-default: 1px solid var(--color-border-dark);
  --border-thick: inset 0 0 0 1.5px var(--color-border-dark);
  --border-button: inset 0 0 0 3px var(--color-border-light);
  --border-radius-card: 28px;
  --border-radius-large: 24px;
  --border-radius-field: 12px;
  --border-radius-popup: 12px;
  --border-radius-button: 100px;
  --font-size-caption: 12px;
  --font-size-body-small: 14px;
  --font-size-body: 16px;
  --font-size-body-large: 18px;
  --font-size-body-xlarge: 20px;
  --font-size-h1: 60px;
  --font-size-h2: 45px;
  --font-size-h3: 30px;
  --font-size-h4: 24px;
  --font-size-h5: 18px;
  --font-size-h6: 14px;
  --font-size-uppercase: 12px;
  --font-weight-bold: 600;
  --font-weight-medium: 500;
  --font-weight-light: 400;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-s: 12px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 40px;
  --spacing-xxxl: 48px;
  --spacing-xxxxl: 56px;
  --spacing-xxxxxl: 64px;
  --spacing-xxxxxxl: 96px;
  --line-height: 140%;
  --line-height-tight: 140%;
  --line-height-badge: 140%;
  --line-height-readable: 140%;
  --line-height-snug: 140%;
  --line-height-heading: 140%;
  --line-height-title: 140%;
  --line-height-body-loose: 140%;
  --line-height-display: 140%;
  --font-heading: "SF Pro";
  --font-body: "SF Pro";
  --font-serif: var(--font-body), Georgia, "Times New Roman", serif;
  --font-sans-preset: var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
  --img-path: "../../images";
  --bg: #f4f6f1;
  --bg-accent: #eef4ef;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(246, 250, 246, 0.88);
  --text: #17211a;
  --muted: #5f6c61;
  --line: rgba(23, 33, 26, 0.08);
  --shadow: 0 18px 48px rgba(30, 53, 37, 0.08);
  --shadow-soft: 0 10px 24px rgba(30, 53, 37, 0.06);
  --primary: #0f7b66;
  --primary-strong: #0a6453;
  --primary-soft: var(--color-ink-5);
  --info: #1665d8;
  --info-soft: rgba(22, 101, 216, 0.12);
  --success: #167d4b;
  --success-soft: rgba(22, 125, 75, 0.12);
  --warning: #b36b00;
  --warning-soft: rgba(179, 107, 0, 0.12);
  --danger: #b6442c;
  --danger-soft: rgba(182, 68, 44, 0.12);
  --violet: #7357ff;
  --violet-soft: rgba(115, 87, 255, 0.14);
  --rose: #c1577f;
  --rose-soft: rgba(193, 87, 127, 0.12);
  --teal: #19807e;
  --teal-soft: rgba(25, 128, 126, 0.13);
  --slate: #526173;
  --slate-soft: rgba(82, 97, 115, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: var(--font-sans-preset);
  --rail-width: 88px;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgb(51 51 51 / 26%) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece {
  border: 0;
  background: transparent;
  box-shadow: none;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(51 51 51 / 26%);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgb(51 51 51 / 38%);
}

*::-webkit-scrollbar-corner,
*::-webkit-resizer {
  background: transparent;
}

textarea::-webkit-scrollbar,
select::-webkit-scrollbar {
  background: transparent;
}

html,
body {
  min-height: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--color-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 33, 26, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 26, 0.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 75%);
}

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

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

button {
  cursor: pointer;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: normal;
  text-transform: none;
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  flex: 0 0 20px;
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.material-loading-indicator {
  --material-loading-container-size: 48px;
  display: grid;
  place-items: center;
  width: var(--material-loading-container-size);
  height: var(--material-loading-container-size);
}

.material-loading-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.loading-screen .material-loading-indicator {
  --material-loading-container-size: 96px;
}

#app {
  min-height: 100vh;
}

.page-scroll-handle {
  position: fixed;
  top: 0;
  right: 8px;
  z-index: 90;
  width: 8px;
  height: var(--page-scroll-handle-height, 0);
  border-radius: 999px;
  background: rgb(51 51 51 / 26%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--page-scroll-handle-y, 8px));
  transition: opacity 160ms ease;
}

.page-scroll-handle[data-visible="true"] {
  opacity: 1;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--color-bg);
}

.app-shell.app-shell-map {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.app-shell.app-shell-create {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  height: 100vh;
  width: var(--rail-width);
  min-width: var(--rail-width);
  padding: 0 var(--spacing-xs);
  background: var(--color-bg);
  color: var(--color-bg);
  overflow: hidden;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  flex: 0 0 52px;
  padding: 0;
  background: var(--color-bg);
}

.brand-mark,
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(15, 123, 102, 0.18), rgba(22, 101, 216, 0.12));
  color: var(--primary-strong);
}

.brand-card .brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
}

.brand-card h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.brand-card .eyebrow {
  margin-bottom: 3px;
}

.brand-card .muted {
  margin: 0;
  font-size: 0.78rem;
}

.brand-wordmark {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  line-height: 140%;
  white-space: nowrap;
}

.avatar-soft {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  gap: var(--spacing-l);
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border-radius: 0;
  color: var(--color-ink);
  text-align: center;
  transition: 180ms ease;
  opacity: 50%;
}

.nav-link span:nth-child(2),
.nav-label {
  min-width: 0;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.76rem;
  font-weight: var(--font-weight-bold);
}

.nav-link .material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-ink);
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.nav-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  color: var(--color-ink);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  line-height: 8px;
  letter-spacing: 0;
  white-space: nowrap;
  padding: var(--spacing-xs) 0;
}

.nav-link.active .nav-label {
  padding: var(--spacing-xs) 0;
  color: var(--color-ink);
}

.rail-account {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 49px;
  flex: 0 0 49px;
  padding: 0 0 8px;
}

.rail-account span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--color-ink);
  background: color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 100px;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  line-height: 8px;
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.mini-stat span {
  display: block;
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
}

.mini-stat small,
.muted {
  color: var(--muted);
}

.main-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-bg);
}

.app-shell-map .main-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.app-shell-create .main-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

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

.hero-card h2,
.section-card h2,
.landing-left h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-content {
  display: grid;
  gap: 22px;
  padding: 14px 34px 34px;
}

.page-content-create {
  gap: 0;
  height: 100vh;
  min-height: 0;
  padding: 8px;
  align-content: start;
  justify-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.page-content-create::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.card,
.hero-card,
.section-card,
.setup-card,
.loading-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.hero-card,
.section-card {
  padding: 28px;
}

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

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(236, 247, 241, 0.86)),
    var(--surface);
}

.dashboard-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.dashboard-intro p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

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

.attention-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.attention-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.attention-card > .material-symbols-outlined {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(23, 33, 26, 0.06);
}

.attention-card p,
.attention-card small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.attention-card strong {
  display: block;
  margin: 2px 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.attention-warning > .material-symbols-outlined {
  color: var(--warning);
  background: var(--warning-soft);
}

.attention-danger > .material-symbols-outlined {
  color: var(--danger);
  background: var(--danger-soft);
}

.attention-info > .material-symbols-outlined {
  color: var(--info);
  background: var(--info-soft);
}

.attention-success > .material-symbols-outlined {
  color: var(--success);
  background: var(--success-soft);
}

.health-list,
.department-row {
  display: grid;
}

.health-list {
  gap: 8px;
}

.health-row,
.department-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: background 160ms ease;
}

.health-row:hover,
.department-row:hover {
  background: rgba(15, 123, 102, 0.06);
}

.health-row small,
.department-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.health-score-small {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-weight: var(--font-weight-bold);
}

.hero-card p,
.section-head p,
.card p,
.landing-copy {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #0c6654);
  box-shadow: 0 12px 28px rgba(15, 123, 102, 0.22);
}

.button-secondary {
  background: white;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 26, 0.08);
}

.button-danger {
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(182, 68, 44, 0.18);
}

.text-link {
  color: var(--primary-strong);
  font-weight: var(--font-weight-medium);
}

.section-head,
.list-card-head,
.card-title-row,
.task-card-head,
.board-column-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.metric-grid,
.content-grid,
.cards-grid,
.health-grid,
.landing-feature-grid,
.template-grid,
.report-grid,
.detail-grid,
.board-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.content-grid-dashboard {
  grid-template-columns: 1.3fr 1fr;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(170px, 220px)) auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(242, 247, 243, 0.82);
  border: 1px solid var(--line);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.search-control {
  position: relative;
}

.search-control .material-symbols-outlined {
  position: absolute;
  left: 13px;
  bottom: 12px;
  z-index: 1;
  color: var(--muted);
  font-size: 20px;
}

.search-control input {
  padding-left: 40px;
}

.result-count {
  min-width: max-content;
  padding: 13px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-bar-compact {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto;
  margin-top: 0;
}

.page-content-staff-home,
.page-content-task-home,
.page-content-calendar {
  min-height: 100vh;
  gap: 0;
  padding: 0;
}

.staff-home {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
  color: var(--color-ink);
  background: var(--color-bg);
}

.staff-filter-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 100vh;
  padding: var(--spacing-xs);
  overflow: hidden;
}

.staff-filter-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-s);
  width: 100%;
}

.staff-search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: var(--spacing-m) var(--spacing-l);
  border-radius: 100px;
  background: var(--color-ink-5);
}

.staff-search-control .material-symbols-outlined {
  color: #1c1b1f;
}

.staff-search-control input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--color-ink);
  background: transparent;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-title);
}

.staff-search-control input::placeholder {
  color: var(--color-ink-50);
  opacity: 1;
}

.staff-filter-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-s);
  width: 100%;
}

.staff-filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-s);
  max-width: 100%;
  min-height: 32px;
  padding: var(--spacing-s);
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font-size: var(--font-size-uppercase);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-filter-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-filter-pill .material-symbols-outlined {
  color: var(--color-ink);
}

.staff-filter-pill select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.staff-add-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: var(--spacing-s);
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--color-ink-5);
}

.staff-add-button:hover {
  background: rgba(51, 51, 51, 0.08);
}

.staff-add-button .material-symbols-outlined {
  color: #1c1b1f;
}

.staff-map-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  min-height: 100vh;
  padding: var(--spacing-m) var(--spacing-xxl);
  overflow: auto;
}

.staff-map-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-l);
  min-width: max-content;
}

.staff-department-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.staff-department-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--spacing-s);
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font-size: var(--font-size-uppercase);
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-lineup {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: 52px;
  padding-left: var(--spacing-xxxl);
}

.staff-person {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
  min-height: 52px;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.staff-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 120px;
  color: var(--color-white);
  background: var(--color-ink);
  font-size: var(--font-size-body-small);
  font-weight: 500;
  line-height: 10px;
}

.staff-status-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 9px;
  background: #007bff;
}

.staff-person-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-xs);
  min-width: 0;
  color: var(--color-ink);
  font-size: var(--font-size-body-small);
  font-weight: 500;
  line-height: 140%;
}

.staff-person-copy strong,
.staff-person-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font: inherit;
}

.staff-person-copy small {
  color: var(--color-ink-50);
}

.staff-connector {
  display: grid;
  place-items: center;
  width: 70.711px;
  height: 70.711px;
  flex: 0 0 70.711px;
}

.staff-connector img {
  display: block;
  width: 100px;
  height: 1px;
  max-width: none;
  transform: rotate(-45deg);
}

.task-board-area {
  min-width: 0;
  min-height: 100vh;
  padding: var(--spacing-m);
  overflow: auto;
}

.task-filter-actions {
  gap: 12px;
}

.task-filter-actions .staff-filter-pill {
  gap: 12px;
  padding: 12px;
}

.task-add-button {
  margin-top: 12px;
}

.task-board-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 220px));
  align-items: start;
  gap: var(--spacing-m);
  width: 100%;
  min-width: max-content;
}

.task-board-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-m);
  max-width: 220px;
  min-width: 0;
}

.task-board-column-list {
  display: grid;
  gap: var(--spacing-m);
  width: 100%;
}

.task-board-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-m);
  width: 100%;
  min-width: 0;
}

.task-board-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: var(--spacing-m);
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font-size: var(--font-size-uppercase);
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.task-board-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding-left: var(--spacing-l);
}

.task-board-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-m);
  width: 100%;
  min-height: 140px;
  padding: var(--spacing-m);
  border-radius: 16px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  text-decoration: none;
}

.task-board-card:hover {
  background: rgba(51, 51, 51, 0.08);
}

.task-board-card-title {
  display: -webkit-box;
  align-self: stretch;
  overflow: hidden;
  color: var(--color-ink);
  font-size: var(--font-size-body-small);
  font-weight: 500;
  line-height: 140%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.task-board-card-nested .task-board-card-title {
  -webkit-line-clamp: 2;
}

.task-board-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 120px;
  color: var(--color-white);
  background: var(--color-ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 10px;
}

.task-board-nested {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-left: var(--spacing-l);
}

.task-board-nested > img {
  width: 28px;
  height: 38px;
  flex: 0 0 28px;
  max-width: none;
}

.task-board-nested-card-wrap {
  flex: 1 1 0;
  min-width: 0;
  padding-top: var(--spacing-m);
}

.stack-list {
  display: grid;
  gap: 14px;
}

.operations-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 123, 102, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 243, 0.82));
  box-shadow: var(--shadow-soft);
}

.operations-control-card h3 {
  margin: 4px 0 6px;
}

.operations-control-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.operations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.goal-execution-list {
  display: grid;
  gap: 14px;
}

.goal-execution-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 243, 0.72)),
    white;
}

.goal-execution-card h4 {
  margin: 5px 0 8px;
  font-size: 1.05rem;
}

.goal-execution-controls {
  display: grid;
  gap: 10px;
}

.goal-execution-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.goal-execution-controls select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.list-card {
  padding: 18px;
}

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

.detail-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 33, 26, 0.06);
}

.detail-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chip-row,
.task-chip-list,
.stacked-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.task-chip {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 123, 102, 0.08);
  color: var(--primary-strong);
  font-size: 0.9rem;
}

.app-chip-row,
.future-app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.app-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: var(--spacing-s);
  border-radius: 999px;
  color: var(--text);
  font-weight: var(--font-weight-medium);
}

.app-chip .material-symbols-outlined {
  color: var(--primary-strong);
  font-size: 20px;
}

.app-chip .create-app-logo-shell,
.app-chip .create-app-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  background: transparent;
}

.app-chip .create-app-icon {
  color: var(--primary-strong);
  font-size: 20px;
  line-height: 20px;
}

.app-chip-linked {
  background: var(--primary-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-neutral {
  background: rgba(23, 33, 26, 0.07);
  color: var(--text);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.simple-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.card-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.task-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.task-card.compact {
  padding: 16px;
}

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

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  min-width: 260px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background: rgba(242, 247, 243, 0.72);
}

.kanban-column-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.kanban-column-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.kanban-column-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

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

.kanban-task-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.kanban-task-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.kanban-task-head h4 {
  margin: 0;
  font-size: 0.98rem;
}

.kanban-task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.kanban-meta {
  display: grid;
  gap: 7px;
}

.kanban-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.kanban-meta strong {
  color: var(--text);
  font-weight: var(--font-weight-bold);
}

.kanban-task-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.workflow-step {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 11px;
  height: 1px;
  background: rgba(23, 33, 26, 0.14);
}

.workflow-step strong {
  font-size: 1.25rem;
}

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

.workflow-waiting_for_approval {
  color: var(--warning);
}

.workflow-blocked {
  color: var(--danger);
}

.workflow-completed {
  color: var(--success);
}

.task-card h4,
.list-card h3,
.board-column h3,
.health-card h4,
.opportunity-row h4,
.report-card h3 {
  margin: 0 0 6px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.opportunity-row,
.mini-report,
.health-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

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

.health-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.health-score {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 123, 102, 0.12), rgba(22, 101, 216, 0.08));
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-strong);
}

.org-map {
  display: grid;
  gap: 24px;
}

.route-missing-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 150px;
  color: var(--muted);
  border: 1px dashed rgba(23, 33, 26, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  padding: 24px;
}

.org-map-radial {
  gap: 20px;
}

.map-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.map-stat-card {
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.map-stat-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.map-stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-content.page-content-map {
  display: block;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: var(--color-bg);
  overflow: hidden;
}

.ops-map-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #ffffff;
  color: #000000;
  overflow: hidden;
}

.ops-map-controls {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
  padding: 6px;
  border-radius: var(--border-radius-button);
  background: none;
}

.ops-zoom-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-ink);
  background: transparent;
}

.ops-zoom-button:hover {
  background: #f4f4f4;
}

.ops-zoom-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.ops-zoom-button:disabled:hover {
  background: transparent;
}

.ops-zoom-button .material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
}

.ops-zoom-button .material-symbols-outlined.ops-zoom-reset-icon {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
}

.ops-zoom-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--color-ink);
  line-height: 1;
  text-align: center;
}

.ops-zoom-number {
  font-size: 14px;
  font-weight: 500;
}

.ops-zoom-percent {
  font-size: 10px;
  margin-left: 2px;
}

.ops-canvas-viewport {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--color-bg);
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ops-canvas-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ops-canvas-viewport.is-panning {
  cursor: grabbing;
}

.ops-canvas-spacer {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 100%;
  min-height: 100%;
}

.ops-canvas-scale-shell {
  position: relative;
  flex: 0 0 auto;
}

.ops-canvas-world {
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(var(--ops-zoom));
  transform-origin: 0 0;
}

.ops-department-node {
  --ops-node-bg: color-mix(in srgb, var(--color-ink) 5%, transparent);
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  border: 0;
  border-radius: 500px;
  color: #000000;
  background: var(--ops-node-bg);
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.ops-department-node:hover {
  --ops-node-bg: color-mix(in srgb, var(--color-ink) 10%, transparent);
  transform: translate(-50%, -50%) scale(1.015);
}

.ops-department-node strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: min-content;
  min-width: 72%;
  margin: 0;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 140%;
  word-break: break-word;
}

.ops-node-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  max-width: calc(100% + 48px);
  min-height: 92px;
  gap: 4px;
}

.ops-node-metric {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  padding: 12px;
  border-radius: 50px;
}

.ops-node-count {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 1 auto;
  width: clamp(11px, calc(var(--ops-count-chars, 1) * 7.7px), 31px);
  margin-right: -4px;
  color: #000000;
  font-size: clamp(11px, calc(20px - (var(--ops-count-chars, 1) - 1) * 1.8px), 18px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.ops-node-metric .material-symbols-outlined {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 0;
  color: #000000;
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  line-height: 20px;
}

.ops-node-slash,
.ops-node-bridge {
  display: block;
  pointer-events: none;
}

.ops-node-slash {
  position: relative;
  z-index: 0;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -4px;
  background: transparent;
}

.ops-node-slash::before {
  content: "";
  display: block;
  width: 45px;
  height: 1px;
  background: #e4e4e4;
  transform: rotate(-45deg);
}

.ops-node-bridge {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  margin: 0 -48px;
  background: transparent;
}

.ops-node-bridge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 1px;
  background: #f5f5f5;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ops-connection {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ops-connection-endpoints {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.ops-connection-dot {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #bfbfbf;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.ops-connection-mark {
  position: absolute;
  z-index: 2;
  display: block;
  width: 4px;
  height: 12px;
  transform: translate(-50%, -50%) rotate(var(--ops-connection-angle));
}

.ops-connection-mark::before,
.ops-connection-mark::after {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000000;
}

.ops-connection-mark::before {
  top: 0;
}

.ops-connection-mark::after {
  bottom: 0;
}

.radial-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.radial-map-stage,
.map-explainer {
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.radial-map-stage {
  position: relative;
  min-height: clamp(560px, calc(100vh - 285px), 720px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(15, 123, 102, 0.08), transparent 20%),
    radial-gradient(circle at 22% 30%, rgba(22, 101, 216, 0.06), transparent 16%),
    radial-gradient(circle at 76% 72%, rgba(115, 87, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 245, 0.72));
}

.radial-map-stage::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.68), transparent 58%),
    linear-gradient(135deg, rgba(15, 123, 102, 0.04), rgba(22, 101, 216, 0.04));
  transform: perspective(1200px) rotateX(62deg);
  pointer-events: none;
}

.radial-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg) scaleY(0.62);
  pointer-events: none;
}

.radial-ring-outer {
  width: 82%;
  height: 82%;
}

.radial-ring-middle {
  width: 64%;
  height: 64%;
  border-style: dashed;
  border-color: rgba(23, 33, 26, 0.1);
}

.radial-ring-inner {
  width: 40%;
  height: 40%;
  border-color: rgba(15, 123, 102, 0.12);
}

.radial-link-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.radial-link {
  stroke-width: 0.25;
  stroke-linecap: round;
  stroke-dasharray: 1.2 1.8;
  opacity: 0.68;
}

.radial-link-emerald {
  stroke: rgba(15, 123, 102, 0.45);
}

.radial-link-blue {
  stroke: rgba(22, 101, 216, 0.42);
}

.radial-link-violet {
  stroke: rgba(115, 87, 255, 0.4);
}

.radial-link-rose {
  stroke: rgba(193, 87, 127, 0.42);
}

.radial-link-amber {
  stroke: rgba(179, 107, 0, 0.44);
}

.radial-link-teal {
  stroke: rgba(25, 128, 126, 0.42);
}

.radial-link-slate {
  stroke: rgba(82, 97, 115, 0.4);
}

.ceo-core,
.department-orbit-node {
  position: absolute;
  border: 0;
  text-align: center;
}

.ceo-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 224px;
  min-height: 224px;
  padding: 26px 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.96)),
    linear-gradient(135deg, rgba(15, 123, 102, 0.18), rgba(22, 101, 216, 0.08));
  box-shadow:
    0 22px 48px rgba(30, 53, 37, 0.12),
    inset 0 0 0 1px rgba(15, 123, 102, 0.12);
  z-index: 3;
}

.ceo-core .material-symbols-outlined {
  font-size: 20px;
  color: var(--primary-strong);
}

.ceo-core small,
.ceo-core span {
  color: var(--muted);
}

.ceo-core strong {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ceo-core-halo {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(15, 123, 102, 0.14);
  box-shadow: 0 0 0 12px rgba(15, 123, 102, 0.04);
}

.department-orbit-node {
  transform: translate(-50%, -50%);
  width: 152px;
  min-height: 144px;
  padding: 16px 14px 18px;
  border-radius: 28px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 20px 30px rgba(30, 53, 37, 0.08),
    inset 0 0 0 1px rgba(23, 33, 26, 0.07);
  z-index: 2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: orbitFloat 7s ease-in-out infinite;
}

.department-orbit-node:hover {
  transform: translate(-50%, calc(-50% - 5px));
  box-shadow:
    0 26px 38px rgba(30, 53, 37, 0.12),
    inset 0 0 0 1px rgba(23, 33, 26, 0.07);
}

.department-orbit-node strong {
  font-size: 1rem;
  line-height: 1.15;
}

.department-orbit-node span:last-child {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.department-orbit-node.outer {
  width: 164px;
}

.department-symbol {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.department-symbol.large {
  width: 66px;
  height: 66px;
  border-radius: 22px;
}

.department-symbol .material-symbols-outlined {
  font-size: 20px;
}

.department-symbol-emerald,
.department-orbit-emerald {
  background: linear-gradient(180deg, rgba(15, 123, 102, 0.16), rgba(255, 255, 255, 0.92));
}

.department-symbol-blue,
.department-orbit-blue {
  background: linear-gradient(180deg, rgba(22, 101, 216, 0.15), rgba(255, 255, 255, 0.92));
}

.department-symbol-violet,
.department-orbit-violet {
  background: linear-gradient(180deg, rgba(115, 87, 255, 0.16), rgba(255, 255, 255, 0.92));
}

.department-symbol-rose,
.department-orbit-rose {
  background: linear-gradient(180deg, rgba(193, 87, 127, 0.14), rgba(255, 255, 255, 0.92));
}

.department-symbol-amber,
.department-orbit-amber {
  background: linear-gradient(180deg, rgba(179, 107, 0, 0.14), rgba(255, 255, 255, 0.92));
}

.department-symbol-teal,
.department-orbit-teal {
  background: linear-gradient(180deg, rgba(25, 128, 126, 0.16), rgba(255, 255, 255, 0.92));
}

.department-symbol-slate,
.department-orbit-slate {
  background: linear-gradient(180deg, rgba(82, 97, 115, 0.14), rgba(255, 255, 255, 0.92));
}

.department-symbol-emerald .material-symbols-outlined,
.department-orbit-emerald .material-symbols-outlined {
  color: var(--primary-strong);
}

.department-symbol-blue .material-symbols-outlined,
.department-orbit-blue .material-symbols-outlined {
  color: var(--info);
}

.department-symbol-violet .material-symbols-outlined,
.department-orbit-violet .material-symbols-outlined {
  color: var(--violet);
}

.department-symbol-rose .material-symbols-outlined,
.department-orbit-rose .material-symbols-outlined {
  color: var(--rose);
}

.department-symbol-amber .material-symbols-outlined,
.department-orbit-amber .material-symbols-outlined {
  color: var(--warning);
}

.department-symbol-teal .material-symbols-outlined,
.department-orbit-teal .material-symbols-outlined {
  color: var(--teal);
}

.department-symbol-slate .material-symbols-outlined,
.department-orbit-slate .material-symbols-outlined {
  color: var(--slate);
}

.map-explainer {
  padding: 22px;
  align-content: start;
}

.map-explainer h3 {
  margin: 0 0 10px;
}

.panel-backdrop-map {
  background: rgba(17, 24, 19, 0.06);
}

.panel-map {
  width: min(100%, 560px);
  background: rgba(248, 251, 248, 0.98);
}

.map-panel-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.panel-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.panel-section {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(23, 33, 26, 0.08);
}

.panel-section h3,
.panel-section h4 {
  margin: 0;
}

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

.panel-row-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.panel-row-card strong {
  display: block;
  margin-bottom: 6px;
}

.board-grid {
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  align-items: start;
}

.board-column {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  min-height: 360px;
}

.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.report-card {
  padding: 0;
  overflow: hidden;
}

.report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

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

.report-summary h3 {
  margin: 0 0 6px;
}

.report-summary p:not(.eyebrow) {
  margin: 0;
}

.report-summary-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.report-toggle {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 600;
}

.report-card[open] .report-toggle {
  font-size: 0;
}

.report-card[open] .report-toggle::after {
  content: "Hide details";
  font-size: 0.86rem;
}

.report-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line);
}

.report-publishing-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.07), rgba(22, 101, 216, 0.05)),
    rgba(255, 255, 255, 0.76);
}

.report-publishing-panel h4 {
  margin: 4px 0 6px;
}

.report-comment-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 33, 26, 0.08);
}

.report-comment-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-comment-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
}

.report-item-feedback {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 101, 216, 0.1);
}

.report-item-feedback label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-item-feedback textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.manager-chat-thread {
  display: grid;
  gap: 12px;
}

.manager-chat-thread h5 {
  margin: 0 0 5px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.manager-chat-thread p {
  margin: 0;
  color: var(--muted);
}

.manager-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  background: rgba(242, 247, 243, 0.76);
}

.manager-chat-message {
  width: min(92%, 680px);
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 15px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.manager-chat-message p {
  color: var(--text);
  line-height: 1.45;
}

.manager-chat-message span {
  color: var(--muted);
  font-size: 0.76rem;
}

.manager-chat-message small {
  color: var(--muted);
  font-size: 0.78rem;
}

.task-manager-chat-history {
  max-height: 420px;
}

.manager-chat-ceo {
  justify-self: end;
  background: rgba(15, 123, 102, 0.1);
  border-color: rgba(15, 123, 102, 0.18);
}

.manager-chat-manager {
  justify-self: start;
}

.manager-chat-thinking {
  position: relative;
  border-color: rgba(22, 101, 216, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 242, 255, 0.82));
}

.manager-chat-thinking strong::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  display: inline-block;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(22, 101, 216, 0.28);
  animation: thinking-pulse 1.35s ease-in-out infinite;
  vertical-align: middle;
}

.manager-chat-error {
  border-color: rgba(176, 64, 47, 0.24);
  background: rgba(255, 246, 242, 0.94);
}

.manager-chat-error strong {
  color: #9f3524;
}

.report-item-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ceo-comment-history {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.ceo-comment-history h5 {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.ceo-comment-history div {
  display: grid;
  gap: 3px;
  padding-left: 10px;
  border-left: 3px solid rgba(22, 101, 216, 0.2);
}

.ceo-comment-history span {
  color: var(--muted);
  font-size: 0.8rem;
}

.report-publishing-actions {
  display: grid;
  grid-template-columns: auto minmax(190px, 240px) auto;
  gap: 12px;
  align-items: end;
}

.report-publishing-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-publishing-actions select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.approved-note {
  align-self: center;
  color: var(--success);
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
}

.social-post-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 33, 26, 0.08);
}

.social-post-preview h4 {
  margin: 0;
}

.social-post-preview pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.55;
}

.social-post-preview small {
  color: var(--muted);
  line-height: 140%;
}

.report-activity-log {
  display: grid;
  gap: 10px;
}

.report-activity-log div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 3px solid rgba(15, 123, 102, 0.26);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 12px;
}

.report-activity-log span {
  color: var(--muted);
  font-size: 0.8rem;
}

.report-feature .report-card {
  border-color: rgba(15, 123, 102, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 248, 242, 0.9));
}

.report-work-review {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.report-work-list {
  display: grid;
  gap: 14px;
}

.report-work-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(242, 247, 243, 0.72);
  border: 1px solid rgba(23, 33, 26, 0.08);
}

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

.report-work-head h4 {
  margin: 0 0 5px;
}

.report-work-head p {
  margin: 0;
  color: var(--muted);
}

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

.report-work-grid h5 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.report-work-grid pre {
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
}

.report-work-approval {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.07), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.76);
}

.report-work-approval h5,
.report-work-approval p {
  margin: 0;
}

.report-work-approval h5 {
  margin-top: 3px;
}

.report-work-approval p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
}

.report-work-approval-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.page-content.page-content-reports,
.page-content.page-content-task-info,
.page-content.page-content-staff-info,
.page-content.page-content-department-info,
.page-content.page-content-apps,
.page-content.page-content-settings {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: #fafafa;
}

.page-content.page-content-settings.page-content-create {
  display: grid;
  min-height: 0;
  padding: var(--spacing-xs);
  align-content: start;
  justify-items: center;
  overflow-y: auto;
}

.reports-page {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
  color: var(--color-ink);
  background: #fafafa;
}

.reports-selector {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: max-content;
  min-height: 100vh;
  padding: 24px 16px;
  overflow: auto;
  scrollbar-width: none;
}

.reports-selector::-webkit-scrollbar {
  display: none;
}

.reports-selector-heading,
.reports-selector-pill,
.reports-section-pill,
.reports-history-details summary,
.reports-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.reports-selector-heading {
  align-self: flex-start;
  color: #ffffff;
  background: var(--color-ink);
}

.reports-selector-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reports-department-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.reports-role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.reports-role-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 12px;
}

.reports-selector-pill {
  gap: 10px;
  align-self: flex-start;
  color: var(--color-ink);
  background: var(--color-ink-5);
  cursor: pointer;
}

.reports-selector-pill .reports-caret-icon,
.reports-history-details summary .reports-caret-icon {
  color: var(--color-ink);
  transform: rotate(180deg);
}

.reports-department-group > summary,
.reports-role-group > summary {
  list-style: none;
}

.reports-department-group > summary::-webkit-details-marker,
.reports-role-group > summary::-webkit-details-marker {
  display: none;
}

.reports-department-group:not([open]) > .reports-selector-pill .reports-caret-icon,
.reports-role-group:not([open]) > .reports-selector-pill .reports-caret-icon {
  transform: rotate(0deg);
}

.reports-staff-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reports-staff-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 100px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 510;
  line-height: 140%;
}

.reports-staff-link:hover,
.reports-staff-link.active {
  background: transparent;
}

.reports-staff-avatar,
.reports-thread-avatar {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 120px;
  color: var(--color-white);
  background: var(--color-ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 10px;
}

.reports-chat-message-owner {
  > .reports-chat-avatar {
    color: var(--color-ink);
    background: var(--color-ink-5);
  }
}

.reports-staff-name {
  white-space: nowrap;
}

.reports-staff-statuses {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.reports-staff-status-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reports-staff-status-dot {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #ffd900;
}

.reports-staff-status-dot-blocked {
  background: #ff3b30;
}

.reports-staff-status-dot-manager_review {
  background: var(--accent);
}

.reports-staff-status-dot-approved {
  background: #1fa463;
}

.reports-staff-status-overflow {
  color: var(--color-ink);
  font-size: 12px;
  font-style: italic;
  font-weight: 590;
  line-height: 140%;
  white-space: nowrap;
}

.reports-thread-area {
  display: block;
  min-width: 0;
  min-height: 100vh;
  padding: var(--spacing-xs);
}

.reports-thread-stack {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.reports-thread-row {
  display: grid;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.reports-thread-row-with-media {
  grid-template-columns: 600px 52px minmax(320px, 1fr);
}

.reports-thread-row-no-media {
  grid-template-columns: 600px 52px;
  justify-content: center;
}

.reports-thread-stack-has-media .reports-thread-row-no-media {
  grid-template-columns: 600px 52px minmax(320px, 1fr);
  justify-content: stretch;
}

.reports-report-actions,
.reports-media-column {
  position: sticky;
  align-self: start;
}

.reports-media-column {
  top: 8px;
  min-width: 0;
  border-radius: 32px;
  background: var(--color-ink-7);
}

.reports-media-sticky {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.reports-report-actions {
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding-top: 32px;
  overflow: visible;
}

.reports-approve-remove-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer;
}

.reports-approve-remove-button:hover {
  background: rgba(51, 51, 51, 0.08);
}

.reports-approve-remove-button-danger {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.05);
}

.reports-approve-remove-button-danger:hover {
  background: rgba(255, 59, 48, 0.1);
}

.reports-approve-remove-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reports-approve-remove-button .material-symbols-outlined {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
}

.reports-approve-remove-button img {
  display: block;
  width: 20px;
  height: 20px;
}

.reports-media-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--color-ink-7);
  box-shadow: none !important;
  filter: none !important;
}

.cx_elevation100--dtj0S,
.embed_viewer--zoomer--QqT0S {
  box-shadow: none !important;
}


.reports-media-frame,
.reports-media-frame iframe,
.reports-media-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.reports-media-frame iframe {
  border: 0;
  background: #ffffff;
  box-shadow: none !important;
  filter: none !important;
}

.reports-media-frame img {
  object-fit: cover;
}

.reports-work-document-card {
  width: 100%;
  min-height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 32px;
  box-shadow: none !important;
  filter: none !important;
}

.reports-work-document-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.reports-work-document-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.15);
}

.reports-work-document-head p,
.reports-work-document-head h2,
.reports-work-document-note,
.reports-work-document-body p,
.reports-work-document-body h2,
.reports-work-document-body h3,
.reports-work-document-body h4,
.reports-work-document-body ul,
.reports-work-document-body ol {
  margin: 0;
}

.reports-work-document-head p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.reports-work-document-head h2 {
  max-width: 720px;
  color: var(--color-ink);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 600;
  line-height: 1.12;
}

.reports-work-document-status {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #8c7300;
  background: rgba(255, 217, 0, 0.14);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  white-space: nowrap;
}

.reports-work-document-status-manager_review {
  color: var(--accent);
  background: rgba(22, 101, 216, 0.08);
}

.reports-work-document-status-blocked {
  color: #d9271d;
  background: rgba(255, 59, 48, 0.08);
}

.reports-work-document-status-approved {
  color: #167847;
  background: rgba(31, 164, 99, 0.08);
}

.reports-work-document-note {
  padding: 18px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.reports-work-document-body {
  --reports-work-document-indent: var(--spacing-xxxl);
  --reports-work-document-content-indent: var(--spacing-xxxxxxl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-l);
  width: 100%;
  color: var(--color-ink);
  font-size: var(--font-size-body-small);
  line-height: 140%;
  overflow-wrap: anywhere;
  font-weight: var(--font-weight-medium);
}

.reports-work-document-body h2,
.reports-work-document-body h3,
.reports-work-document-body h4 {
  color: var(--color-ink);
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.reports-work-document-body h2 {
  font-size: 24px;
}

.reports-work-document-body h3 {
  font-size: var(--font-size-body);
}

.reports-work-document-body h4 {
  font-size: var(--font-size-body);
}

.reports-work-document-body .reports-work-document-title-pill,
.reports-work-document-body .reports-work-document-section-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 0 var(--spacing-m);
  border-radius: 100px;
  color: var(--color-ink);
  font-size: var(--font-size-uppercase);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.reports-work-document-body .reports-work-document-title-pill {
  background: #ffffff;
}

.reports-work-document-body .reports-work-document-section-label {
  background: var(--color-ink-5);
}

.reports-work-document-body > .reports-work-document-section-label {
  margin-left: var(--reports-work-document-indent);
}

.reports-work-document-body > p,
.reports-work-document-body > ul,
.reports-work-document-body > ol {
  width: calc(100% - var(--reports-work-document-content-indent));
  max-width: calc(100% - var(--reports-work-document-content-indent));
  margin-left: var(--reports-work-document-content-indent);
}

.reports-work-document-body ul,
.reports-work-document-body ol {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.reports-work-document-body li {
  padding-left: 4px;
}

.reports-work-document-body strong {
  font-weight: var(--font-weight-medium);
}

.reports-work-document-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(51, 51, 51, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.reports-work-document-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  width: calc(100% - var(--reports-work-document-indent));
  max-width: calc(100% - var(--reports-work-document-indent));
  margin-left: var(--reports-work-document-indent);
}

.reports-work-document-field-value {
  width: calc(100% - var(--reports-work-document-indent));
  max-width: calc(100% - var(--reports-work-document-indent));
  margin-left: var(--reports-work-document-indent);
}

.reports-work-document-field-value p,
.reports-work-document-field-value ul,
.reports-work-document-field-value ol {
  margin: 0;
}

.reports-work-document-field-value > .reports-work-document-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

.reports-thread-card {
  position: relative;
  width: 600px;
  max-width: 100%;
  padding: 32px;
  border-radius: 32px;
  background: var(--color-ink-7);
}

.reports-status-dot {
  position: absolute;
  top: 39px;
  left: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffd900;
}

.reports-thread-card-thinking .reports-status-dot,
.reports-thread-card-manager_review .reports-status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(22, 101, 216, 0.28);
  animation: thinking-pulse 1.35s ease-in-out infinite;
}

.reports-thread-card-blocked .reports-status-dot {
  background: #ff3b30;
}

.reports-thread-card-approved .reports-status-dot {
  background: #1fa463;
}

.reports-thread-head {
  display: grid;
  gap: 8px;
  max-width: 480px;
}

.reports-thread-head p,
.reports-thread-head h2 {
  margin: 0;
}

.reports-thread-head p {
  color: #ffd900;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 8px;
  text-transform: uppercase;
}

.reports-thread-card-thinking .reports-thread-head p,
.reports-thread-card-manager_review .reports-thread-head p {
  color: var(--accent);
}

.reports-thread-card-blocked .reports-thread-head p {
  color: #ff3b30;
}

.reports-thread-card-approved .reports-thread-head p {
  color: #1fa463;
}

.reports-thread-head h2 {
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.reports-thread-rule {
  width: 100%;
  height: 1px;
  margin: 25px 0 24px;
  background: rgba(51, 51, 51, 0.15);
}

.reports-final-section,
.reports-message-section {
  display: grid;
  gap: 16px;
}

.reports-final-section {
  min-height: auto;
}

.reports-final-section-compact {
  min-height: 0;
}

.reports-final-section-compact .reports-final-row {
  min-height: 96px;
}

.reports-section-pill {
  justify-self: start;
  min-height: 40px;
  padding: 16px;
  color: var(--color-ink);
  background: #ffffff;
}

.reports-final-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: auto;
  padding-left: 48px;
}

.reports-thread-copy {
  width: 100%;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reports-thread-copy-final {
  overflow: visible;
  scrollbar-width: none;
}

.reports-thread-copy-final::-webkit-scrollbar,
.reports-thread-copy-history::-webkit-scrollbar,
.reports-thread-chat::-webkit-scrollbar {
  display: none;
}

.reports-history-details {
  margin-top: 24px;
}

.reports-history-details summary {
  display: flex;
  gap: 16px;
  width: 100%;
  padding: 0;
  border-radius: 0;
  list-style: none;
  cursor: pointer;
}

.reports-history-details summary::-webkit-details-marker {
  display: none;
}

.reports-history-details summary::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  align-self: center;
  background: rgba(51, 51, 51, 0.12);
}

.reports-history-toggle-text {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-s);
  padding: var(--spacing-s);
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 8px;
  text-transform: uppercase;
}

.reports-history-toggle-text > span:first-child::before {
  content: "show work history";
}

.reports-history-details[open] .reports-history-toggle-text > span:first-child::before {
  content: "hide work history";
}

.reports-history-details:not([open]) .reports-history-toggle-text .reports-caret-icon {
  transform: rotate(0deg);
}

.reports-history-content {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.reports-history-block {
  display: grid;
  gap: 0;
  min-height: 0;
}

.reports-history-label {
  justify-self: start;
  min-height: 40px;
  padding: 16px;
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font-size: 12px;
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
}

.reports-history-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 48px;
}

.reports-history-connector {
  position: relative;
  display: grid;
  gap: 40px;
  padding-top: 24px;
}

.reports-history-rail {
  position: absolute;
  top: -3px;
  bottom: 0;
  left: -28px;
  width: 32px;
  min-height: 120px;
  pointer-events: none;
}

.reports-history-connector-review .reports-history-rail {
  bottom: 17px;
}

.reports-history-connector-work-only .reports-history-rail {
  display: none;
}

.reports-history-rail-dot,
.reports-history-rail-line,
.reports-history-rail-pointer {
  position: absolute;
  display: block;
}

.reports-history-rail-dot {
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  background: url("/images/report-history-dot.svg") no-repeat center / 7px 7px;
}

.reports-history-rail-line {
  top: 7px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: url("/images/report-history-line.svg") repeat-y 0 0 / 1px 10px;
}

.reports-history-rail-pointer {
  left: 0;
  bottom: 0;
  width: 32px;
  height: 21px;
  background: url("/images/report-history-pointer.svg") no-repeat 0 0 / 32px 21px;
}

.reports-history-entry {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.reports-thread-copy-history {
  overflow: visible;
  scrollbar-width: none;
}

.reports-review-label-row {
  display: grid;
  justify-items: start;
}

.reports-history-label-review {
  margin-left: 0;
  background: var(--color-ink-5);
}

.reports-history-entry-review {
  padding-left: 36px;
}

.reports-thread-copy-review {
  overflow: visible;
  scrollbar-width: none;
}

.reports-thread-chat {
  margin-top: 40px;
  max-height: none;
  padding: 0 0 0 48px;
  overflow: visible;
  background: transparent;
}

.reports-thread-chat-message {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.reports-thread-chat-message strong,
.reports-thread-chat-message span {
  color: var(--color-ink-50);
}

.reports-thread-rule-message {
  margin-top: 24px;
  margin-bottom: 23px;
}

.reports-section-pill-white {
  background: #ffffff;
}

.staff-info-page {
  min-height: 100vh;
  color: var(--color-ink);
  background: #fafafa;
}

.department-info-page {
  min-height: 100vh;
  color: var(--color-ink);
  background: #fafafa;
}

.task-detail-page {
  min-height: 100vh;
  color: var(--color-ink);
  background: #fafafa;
}

.staff-info-topbar {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
  width: 100%;
  min-height: 68px;
  padding: var(--spacing-xs);
}

.staff-info-back-button {
  flex: 0 0 52px;
}

.staff-info-title {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--spacing-s);
  min-width: 0;
}

.staff-info-title > span:last-child {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-size: var(--font-size-body);
  font-weight: 500;
  line-height: var(--line-height-title);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-info-thread-area {
  padding-top: var(--spacing-xs);
}

.staff-info-thread-row {
  align-items: start;
}

.staff-info-card.reports-thread-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxxl);
  min-width: 0;
  overflow: hidden;
  background: var(--color-ink-7);
}

.department-info-card.reports-thread-card {
  gap: var(--spacing-l);
}

.task-detail-thread-area {
  padding-top: var(--spacing-xs);
}

.task-detail-thread-stack {
  gap: var(--spacing-xxxl);
}

.task-detail-thread-row {
  align-items: start;
}

.task-detail-card.reports-thread-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  min-width: 0;
  overflow: hidden;
  background: var(--color-ink-7);
}

.task-detail-card > .reports-section-pill {
  align-self: flex-start;
}

.task-detail-card-body {
  display: grid;
  gap: var(--spacing-l);
  width: 100%;
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.task-detail-person-list,
.task-detail-app-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
  min-width: 0;
}

.task-detail-person-pill {
  min-height: 52px;
}

.task-detail-app-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--color-ink-5);
}

.task-detail-app-icon .create-app-logo-shell {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  margin: 0;
  background: transparent;
}

.task-detail-app-icon .create-app-icon {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  font-size: 20px;
  line-height: 20px;
  margin: 0;
  background: transparent;
}

.task-detail-checkbox {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(51, 51, 51, 0.15);
  background: transparent;
  color: var(--color-ink);
}

.task-detail-checkbox.is-checked {
  border-color: rgba(51, 51, 51, 0.2);
}

.task-detail-checkbox-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.task-detail-side-actions {
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-s);
  padding-top: var(--spacing-l);
}

.task-detail-side-placeholder {
  display: block;
  width: 52px;
  height: 52px;
}

.task-detail-media-card {
  min-height: 360px;
}

.task-detail-work-document-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  min-height: 360px;
  max-height: calc(100vh - 16px);
}

.task-detail-work-document-card .reports-work-document-body {
  --reports-work-document-indent: var(--spacing-xxxl);
  --reports-work-document-content-indent: var(--spacing-xxxl);
  overflow-wrap: break-word;
  word-break: normal;
}

.task-detail-message-section > .reports-chat-log,
.task-detail-message-section > .reports-message-composer,
.task-detail-message-section > .task-detail-message-note {
  margin-top: var(--spacing-l);
}

.task-detail-message-section > .reports-chat-log:first-child,
.task-detail-message-section > .reports-message-composer:first-child {
  margin-top: 0;
}

.task-detail-message-note {
  margin: var(--spacing-s) 0 0;
  color: var(--color-ink-50);
  font-size: 14px;
  line-height: 140%;
}

.task-detail-execution-state {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--spacing-m);
  align-items: start;
  padding-left: 84px;
  color: var(--color-ink);
}

.task-detail-execution-state + .reports-chat-log,
.task-detail-execution-state + .reports-message-composer {
  margin-top: var(--spacing-l);
}

.task-detail-execution-state strong,
.task-detail-execution-state p {
  margin: 0;
}

.task-detail-execution-state strong {
  display: block;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.task-detail-execution-state p {
  margin-top: var(--spacing-xs);
  color: var(--color-ink-50);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.task-detail-execution-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007bff;
}

.task-detail-execution-thinking .task-detail-execution-dot,
.task-detail-status-thinking > span {
  box-shadow: 0 0 0 0 rgba(22, 101, 216, 0.28);
  animation: thinking-pulse 1.35s ease-in-out infinite;
}

.task-detail-execution-error .task-detail-execution-dot {
  background: #ff3b30;
}

.task-detail-execution-error strong {
  color: #ff3b30;
}

.department-info-title-pill {
  align-self: flex-start;
}

.department-info-body,
.department-info-task-section {
  display: grid;
  gap: var(--spacing-l);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.department-info-task-section > .reports-selector-pill {
  justify-self: start;
  width: max-content;
  max-width: 100%;
  list-style: none;
}

.department-info-task-section > .reports-selector-pill::-webkit-details-marker {
  display: none;
}

.department-info-task-section:not([open]) > .reports-selector-pill .reports-caret-icon {
  transform: rotate(0deg);
}

.department-info-task-body {
  display: grid;
  gap: var(--spacing-l);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.staff-info-side-action {
  padding-top: var(--spacing-xl);
}

.department-info-side-action {
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-s);
}

.staff-info-section {
  display: grid;
  gap: var(--spacing-l);
}

.staff-info-section-body {
  display: grid;
  gap: var(--spacing-l);
  max-width: 100%;
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.staff-info-detail-group {
  display: grid;
  gap: var(--spacing-m);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.staff-info-detail-group > summary {
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  list-style: none;
}

.staff-info-detail-group > summary span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 140%;
}

.staff-info-detail-group > summary::-webkit-details-marker {
  display: none;
}

.staff-info-detail-group:not([open]) > .reports-selector-pill .reports-caret-icon {
  transform: rotate(0deg);
}

.staff-info-detail-stack {
  display: grid;
  gap: var(--spacing-m);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.staff-info-detail-row {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--color-ink-20);
}

.staff-info-detail-label {
  color: var(--color-ink-50);
  font-size: var(--font-size-uppercase);
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-info-detail-value {
  min-width: 0;
  max-width: 100%;
  color: var(--color-ink);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  line-height: 140%;
  overflow-wrap: break-word;
  white-space: normal;
}

.staff-info-detail-row-text .staff-info-detail-value {
  white-space: pre-wrap;
}

.staff-info-detail-value p {
  margin: 0;
  overflow-wrap: break-word;
}

.staff-info-list {
  margin: 0;
  padding-left: var(--spacing-xxl);
  color: var(--color-ink);
  line-height: 140%;
}

.staff-info-list li + li {
  margin-top: 10px;
}

.staff-info-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
  line-height: 140%;
}

.department-info-staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
  min-width: 0;
  max-width: 100%;
}

.department-info-staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  max-width: 100%;
  min-width: 0;
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
}

.department-info-staff-pill > span:first-child {
  display: grid;
  gap: 0;
  min-width: 0;
  font-size: var(--font-size-body-small);
  font-weight: 500;
  line-height: 140%;
}

.department-info-staff-pill strong,
.department-info-staff-pill small {
  display: block;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-info-staff-pill small {
  color: var(--color-ink-50);
}

.department-info-manager-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 9px;
  background: #007bff;
}

.department-info-task-list {
  display: grid;
  gap: var(--spacing-l);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.staff-info-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 500;
}

.staff-info-status > span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 9px;
  background: #ffd900;
}

.staff-info-status-blocked {
  color: #ff3b30;
}

.staff-info-status-blocked > span {
  background: #ff3b30;
}

.staff-info-status-approved {
  color: #1fa463;
}

.staff-info-status-approved > span {
  background: #1fa463;
}

.staff-info-status-info {
  color: #007bff;
}

.staff-info-status-info > span {
  background: #007bff;
}

.staff-info-status-warning {
  color: #ffd900;
}

.staff-info-task-open {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.staff-info-task-open .material-symbols-outlined {
  color: var(--color-ink);
}

.reports-chat-log {
  display: grid;
  gap: 16px;
  width: 100%;
  max-height: none;
  padding-left: 84px;
  overflow: visible;
  background: transparent;
}

.reports-chat-history-details {
  display: grid;
  gap: 16px;
  width: 100%;
}

.reports-chat-history-details summary {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 0 0 var(--spacing-xxxl);
  list-style: none;
  cursor: pointer;
}

.reports-chat-history-details summary::-webkit-details-marker {
  display: none;
}

.reports-chat-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.reports-chat-history-toggle > span:first-child::before {
  content: "show full chat history";
}

.reports-chat-history-details[open] .reports-chat-history-toggle > span:first-child::before {
  content: "hide full chat history";
}

.reports-chat-history-toggle .reports-caret-icon {
  transform: rotate(0deg);
}

.reports-chat-history-details[open] .reports-chat-history-toggle .reports-caret-icon {
  transform: rotate(180deg);
}

.reports-chat-hidden,
.reports-chat-latest {
  display: grid;
  gap: var(--spacing-l);
}

.reports-chat-message {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.reports-chat-message p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
}

.reports-chat-message-manager {
  padding-right: 36px;
}

.reports-chat-message-owner {
  justify-content: flex-end;
  padding-left: 36px;
}

.reports-chat-message-owner p {
  text-align: right;
  color: var(--color-ink-50);
}

.reports-chat-avatar {
  margin-top: 0;
}

.reports-message-composer {
  display: grid;
  gap: 0;
  padding-left: 84px;
}

.reports-message-section-has-log .reports-message-composer {
  margin-top: 24px;
}

.reports-message-composer textarea {
  width: 100%;
  min-height: 118px;
  padding: 0;
  border: 0;
  resize: vertical;
  color: var(--color-ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
  outline: none;
}

.reports-message-section-has-log .reports-message-composer textarea {
  min-height: 48px;
}

.reports-message-composer textarea::placeholder {
  color: var(--color-ink-50);
  font-weight: var(--font-weight-medium);
}

.reports-message-send-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 13px;
  border-top: 3px solid var(--color-ink);
}

.reports-send-button {
  padding: 9px 12px;
  border: 3px solid rgba(51, 51, 51, 0.1);
  color: var(--color-ink);
  background: transparent;
  text-transform: none;
}

.reports-send-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-content-automation {
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.automation-home {
  width: 100%;
}

.automation-canvas-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  padding: var(--spacing-m) var(--spacing-xxl);
  overflow: auto;
}

.automation-ai-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: min-content;
  min-height: calc(100vh - 32px);
}

.automation-ai-controls {
  position: fixed;
  z-index: 120;
}

.automation-ai-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: min-content;
}

.automation-ai-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.automation-ai-row-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-10);
  font-size: 12px;
  font-weight: 600;
  line-height: 8px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.automation-row-edit-button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.automation-row-edit-button:hover {
  background: rgba(51, 51, 51, 0.14);
}

.automation-ai-row-body {
  width: 100%;
  padding: 16px 0 16px 48px;
}

.automation-ai-strip {
  display: flex;
  align-items: center;
  min-width: min-content;
}

.automation-ai-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 72px;
  margin-right: -2px;
  padding: 16px 24px;
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  text-decoration: none;
}

.automation-ai-card:hover {
  background: var(--color-ink-7);
}

.automation-ai-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.automation-ai-card-title {
  overflow: hidden;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 510;
  line-height: 140%;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-card-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 20px;
}

.automation-owner-badge,
.automation-app-badge {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  overflow: hidden;
  border-radius: 120px;
}

.automation-owner-badge {
  color: var(--color-white);
  background: var(--color-ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 10px;
}

.automation-app-badge {
  background: var(--color-ink-5);
}

.automation-app-badge img {
  display: block;
  object-fit: contain;
}

.automation-app-badge-fallback {
  color: var(--color-white);
  background: var(--color-ink);
}

.automation-app-badge-fallback .material-symbols-outlined {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  color: currentColor;
  font-size: 14px;
  line-height: 14px;
}

.automation-step-connector {
  position: relative;
  z-index: 0;
  display: block;
  width: 16px;
  height: 4px;
  margin-right: -2px;
  flex: 0 0 16px;
  overflow: hidden;
}

.automation-step-connector svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 16px;
  height: 4px;
}

.automation-step-connector-flow {
  overflow: visible;
}

.automation-step-connector-muted {
  opacity: 0.24;
}

.automation-step-connector-muted .automation-step-connector-flow {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .automation-step-connector-flow {
    display: none;
  }
}

.automation-ai-error {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.automation-ai-error p {
  max-width: 360px;
  margin: 0;
  color: var(--color-ink-50);
  font-size: 14px;
  line-height: 140%;
  text-align: center;
}

.automation-ai-loading {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
}

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

.apps-grid,
.app-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.app-card,
.app-settings-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(15, 123, 102, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.app-card-head,
.app-settings-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.app-settings-head {
  grid-template-columns: 46px minmax(0, 1fr);
}

.app-card-head > .material-symbols-outlined,
.app-settings-head > .material-symbols-outlined {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.app-card h3,
.app-settings-card h4 {
  margin: 0 0 6px;
}

.app-card p,
.app-settings-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.app-settings-block {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.app-settings-card label {
  display: grid;
  gap: 7px;
}

.apps-page {
  min-height: 100vh;
  color: var(--color-ink);
  background: #fafafa;
}

.apps-focused-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.apps-selector {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 271px;
  min-height: 100vh;
  padding: 24px 16px;
  overflow: auto;
  scrollbar-width: none;
}

.apps-selector::-webkit-scrollbar {
  display: none;
}

.apps-selector-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.apps-selector-pill {
  width: fit-content;
  min-height: 32px;
  color: var(--color-ink);
  text-decoration: none;
}

.apps-selector-pill:hover,
.apps-selector-pill.active {
  background: var(--color-ink-5);
}

.apps-focused-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  padding: var(--spacing-xs);
}

.apps-card-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--spacing-m);
  width: 100%;
  min-width: 0;
}

.apps-focused-card.reports-thread-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  width: 600px;
  min-height: fit-content;
  max-width: min(600px, 100%);
  padding: 32px;
  border-radius: 32px;
  background: var(--color-ink-7);
  box-shadow: none;
}

.apps-title-pill {
  align-self: flex-start;
}

.apps-focused-body {
  display: grid;
  gap: var(--spacing-l);
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.apps-focused-section {
  display: grid;
  gap: var(--spacing-l);
  min-width: 0;
}

.apps-focused-section > summary {
  justify-self: start;
  list-style: none;
}

.apps-focused-section > summary::-webkit-details-marker,
.apps-advanced-settings > summary::-webkit-details-marker {
  display: none;
}

.apps-focused-section:not([open]) > .reports-selector-pill .reports-caret-icon,
.apps-advanced-settings:not([open]) > .reports-selector-pill .reports-caret-icon {
  transform: rotate(0deg);
}

.apps-detail-fields,
.apps-config-stack {
  display: grid;
  gap: var(--spacing-m);
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.apps-detail-fields .detail-line {
  gap: 12px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--color-ink-20);
}

.apps-config-view-stack .detail-line {
  gap: 12px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--color-ink-20);
}

.apps-detail-fields .detail-label,
.apps-config-view-stack .detail-label,
.apps-config-download .staff-info-detail-label {
  color: var(--color-ink-50);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
  line-height: 8px;
  text-transform: uppercase;
}

.apps-detail-fields .detail-value,
.apps-config-view-stack .detail-value {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.apps-config-field,
.apps-config-checkbox {
  min-width: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--color-ink-20);
}

.create-checkbox-field.apps-config-checkbox {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--color-ink-20);
}

.apps-config-field-block {
  display: grid;
  gap: var(--spacing-m);
  min-width: 0;
}

.apps-config-field input,
.apps-config-field textarea {
  font-size: 14px;
  font-weight: 510;
  line-height: 140%;
}

.apps-config-field textarea {
  min-height: 96px;
  resize: vertical;
}

.apps-config-field small,
.apps-config-note {
  margin: 0 0 var(--spacing-m);
  padding-left: var(--spacing-xxxl);
  color: var(--color-ink-50);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.apps-config-field small {
  padding-left: var(--spacing-xxxl);
}

.apps-config-field-note {
  margin-top: 0;
}

.apps-config-download {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--color-ink-20);
}

.apps-download-button {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: 52px;
  height: 52px;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  text-decoration: none;
}

.apps-download-button:hover {
  background: var(--color-ink-10);
}

.apps-download-icon {
  flex: none;
}

.apps-advanced-settings {
  display: grid;
  gap: var(--spacing-m);
  min-width: 0;
}

.apps-side-actions {
  position: sticky;
  top: 0;
  z-index: 3;
  flex: 0 0 52px;
  width: 52px;
  padding-top: var(--spacing-l);
}

.apps-side-actions.create-page-actions {
  padding-bottom: 0;
}

.settings-page {
  min-height: 100vh;
  color: var(--color-ink);
  background: #fafafa;
}

.settings-focused-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--spacing-m);
  min-height: 100vh;
  padding: var(--spacing-xs);
}

.settings-focused-card.reports-thread-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  width: 600px;
  min-height: calc(100vh - var(--spacing-m));
  max-width: calc(100vw - var(--rail-width) - 96px);
  padding: 32px;
  border-radius: 32px;
  background: var(--color-ink-7);
  box-shadow: none;
}

.settings-title-pill {
  align-self: flex-start;
}

.settings-focused-body {
  display: grid;
  gap: var(--spacing-l);
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.settings-focused-section {
  display: grid;
  gap: var(--spacing-l);
  min-width: 0;
}

.settings-focused-section > summary {
  justify-self: start;
  list-style: none;
}

.settings-focused-section > summary::-webkit-details-marker {
  display: none;
}

.settings-focused-section:not([open]) > .reports-selector-pill .reports-caret-icon {
  transform: rotate(0deg);
}

.settings-detail-stack {
  display: grid;
  gap: var(--spacing-m);
  min-width: 0;
  padding-left: var(--spacing-xxxl);
}

.settings-field {
  min-width: 0;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--color-ink-20);
}

.create-field.settings-field input,
.create-field.settings-field textarea {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.create-field.settings-field input::placeholder,
.create-field.settings-field textarea::placeholder {
  color: var(--color-ink-50);
  font-weight: var(--font-weight-medium);
  opacity: 1;
}

.create-field.settings-field textarea {
  min-height: 100px;
  resize: none;
  scrollbar-width: none;
}

.create-field.settings-field textarea::-webkit-scrollbar {
  display: none;
}

.settings-side-actions {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-s);
  width: 52px;
  flex: 0 0 52px;
  justify-content: center;
  padding-top: var(--spacing-l);
}

.settings-save-icon-button,
.settings-edit-icon-button,
.settings-logout-icon-button {
  flex: 0 0 52px;
  text-decoration: none;
}

.automation-flow-map {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.automation-department-flow {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 247, 242, 0.76)),
    white;
}

.automation-department-head,
.automation-agent-head,
.automation-task-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.automation-department-head h3,
.automation-agent-head h4 {
  margin: 0 0 5px;
}

.automation-department-head p,
.automation-agent-head small,
.automation-task-title small {
  color: var(--muted);
}

.automation-manager-grid {
  display: grid;
  gap: 14px;
}

.automation-manager-lane {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 2fr);
  gap: 14px;
  align-items: start;
}

.automation-agent-node {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.automation-agent-manager {
  border-color: rgba(15, 123, 102, 0.18);
  background:
    radial-gradient(circle at top left, rgba(15, 123, 102, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.88);
}

.automation-worker-grid,
.automation-task-stack {
  display: grid;
  gap: 10px;
}

.automation-worker-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.automation-task-node {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 17px;
  background: rgba(246, 250, 246, 0.84);
}

.automation-task-title strong,
.automation-task-title small {
  display: block;
}

.callout {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 123, 102, 0.08);
}

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

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 26, 0.06);
}

.schedule-home {
  grid-template-columns: 320px minmax(0, 1fr);
}

.schedule-filter-panel {
  padding: var(--spacing-xs);
}

.schedule-calendar-area {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  padding: var(--spacing-xs) var(--spacing-xxxl);
  overflow: auto;
}

.schedule-month-board {
  display: grid;
  grid-template-rows: 48px 24px minmax(0, 1fr);
  width: 1000px;
  max-width: 100%;
  min-width: 720px;
  height: calc(100vh - 16px);
  min-height: 760px;
  overflow: hidden;
  border-radius: var(--spacing-xl);
  background: var(--color-white);
}

.schedule-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-ink-10);
  min-width: 0;
  height: 48px;
  padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-l);
  color: var(--color-ink);
}

.schedule-month-header h2 {
  margin: 0;
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
}

.schedule-month-controls {
  display: flex;
  align-items: center;
  width: 130px;
  height: 32px;
}

.schedule-nav-button,
.schedule-today-button {
  display: inline-grid;
  place-items: center;
  height: 32px;
  border: 0;
  color: var(--color-ink);
  background: transparent;
}

.schedule-nav-button {
  width: 32px;
  padding: 0;
}

.schedule-today-button {
  min-width: 66px;
  padding: var(--spacing-s);
  border-radius: 100px;
  background: var(--color-ink-5);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
}

.schedule-weekday-row,
.schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
}

.schedule-weekday-row {
  height: 24px;
  background: var(--color-ink-10);
}

.schedule-weekday-row span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--spacing-xs);
  color: var(--color-ink-50);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
}

.schedule-month-grid {
  grid-template-rows: repeat(6, minmax(0, 1fr));
  height: 100%;
  min-height: 0;
}

.schedule-month-cell {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 0;
  min-height: 0;
  padding: var(--spacing-xs);
  overflow: hidden;
  border-top: 1px solid var(--color-ink-10);
  border-left: 1px solid var(--color-ink-10);
  background: var(--color-bg);
}

.schedule-month-cell:nth-child(7n + 1) {
  border-left: 0;
}

.schedule-month-cell-weekend {
  background: var(--color-ink-10);
}

.schedule-month-cell-adjacent .schedule-day-number {
  color: var(--color-ink-50);
}

.schedule-month-cell-today .schedule-day-number {
  color: var(--color-ink);
}

.schedule-day-number {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 18px;
  min-width: 0;
  color: var(--color-ink-50);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-day-events {
  display: grid;
  align-content: end;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  margin-top: auto;
}

.schedule-event-link,
.schedule-day-more {
  min-width: 0;
  color: var(--color-ink);
  font-size: var(--font-size-caption);
  font-weight: 500;
  line-height: 140%;
}

.schedule-event-link {
  display: -webkit-box;
  overflow: unset;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.schedule-day-more {
  color: var(--color-ink-50);
}

.landing-shell,
.loading-screen {
  min-height: 100vh;
  display: grid;
}

.landing-shell {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 34px;
  gap: 26px;
}

.landing-left,
.landing-right {
  display: grid;
  align-content: center;
}

.landing-left {
  gap: 22px;
  padding: 18px 26px;
}

.brand-pill {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--primary-strong);
  font-weight: var(--font-weight-bold);
}

.landing-copy {
  max-width: 650px;
  font-size: 1.08rem;
}

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

.marketing-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.setup-card {
  width: min(100%, 720px);
  justify-self: end;
}

.login-card {
  width: min(100%, 520px);
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: var(--spacing-xs);
  color: var(--color-ink);
  background: var(--color-bg);
}

.auth-wordmark {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 140%;
  width: 88px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 460px;
  max-width: calc(100vw - 48px);
  padding: 33px 31px 25px;
  border-radius: 32px;
  background: var(--color-ink-7);
}

.auth-title {
  margin: 0;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
}

.auth-form {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin-top: 32px;
  padding-left: 73px;
}

.auth-field {
  display: block;
  min-width: 0;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-ink-20);
}

.auth-field input {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.auth-field input::placeholder {
  color: var(--color-ink-20);
  font-weight: var(--font-weight-medium);
  opacity: 1;
}

.auth-feedback {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: -4px;
}

.auth-feedback p {
  margin: 0;
  color: var(--color-success);
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  line-height: 140%;
  text-transform: uppercase;
}

.auth-feedback[data-tone="danger"] p {
  color: var(--danger);
}

.auth-reset-link {
  justify-self: start;
  padding: 9px 12px;
  font-size: 8px;
  line-height: 8px;
  text-decoration: none;
}

.auth-reset-link .reports-caret-icon {
  transform: none;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-s);
  margin-top: 17px;
}

.auth-submit-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  box-shadow: none;
}

.auth-submit-button:hover {
  background: var(--color-ink-10);
}

.auth-submit-button .material-symbols-outlined {
  color: currentColor;
}

.auth-link {
  color: var(--color-ink);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 140%;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-offset: 2px;
}

.auth-link:hover {
  color: var(--color-ink);
}

.company-form,
.panel-form {
  display: grid;
  gap: 16px;
}

.settings-form {
  margin-top: 8px;
  gap: 12px;
}

.integration-status-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.integration-status-card > .material-symbols-outlined {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.integration-status-card h3 {
  margin: 0 0 6px;
}

.integration-status-card p {
  margin: 0;
}

.integration-status-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.tool-settings-card,
.figma-status-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.05), rgba(22, 101, 216, 0.04)),
    rgba(255, 255, 255, 0.72);
}

.tool-settings-card p,
.figma-status-card p {
  margin: 0;
  color: var(--muted);
}

.figma-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.08), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.76);
}

.figma-preview-card h5 {
  margin: 0;
}

.figma-preview-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.figma-preview-card iframe {
  width: 100%;
  height: clamp(420px, 62vh, 720px);
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 16px;
  background: #fff;
}

.figma-native-preview-card {
  padding: 18px;
}

.figma-native-preview-card iframe {
  min-height: 520px;
}

.figma-preview-card img {
  width: 100%;
  max-height: 680px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}

.figma-prepared-work-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.figma-prepared-work-card h5 {
  margin: 0;
}

.figma-prepared-work-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

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

.figma-prepared-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 14px;
  background: rgba(247, 250, 246, 0.84);
}

.figma-prepared-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.figma-prepared-grid pre {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 140%;
  white-space: pre-wrap;
}

.tool-settings-card small {
  color: var(--muted);
  line-height: 140%;
}

.connected-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 123, 102, 0.16);
  border-radius: 18px;
  background: rgba(15, 123, 102, 0.08);
}

.connected-account-card img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.connected-account-card img {
  object-fit: cover;
}

.connected-account-card > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 20px;
  background: rgba(15, 123, 102, 0.12);
  color: var(--green);
}

.connected-account-card div {
  min-width: 0;
  flex: 1;
}

.connected-account-card small {
  display: block;
  margin-top: 4px;
}

.settings-section,
.setup-advanced {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.settings-section > summary,
.setup-advanced > summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.settings-section > summary::-webkit-details-marker,
.setup-advanced > summary::-webkit-details-marker {
  display: none;
}

.settings-section summary strong,
.settings-section summary small,
.setup-advanced summary strong,
.setup-advanced summary small {
  display: block;
}

.settings-section summary small,
.setup-advanced summary small {
  margin-top: 4px;
  color: var(--muted);
}

.settings-section[open] > summary .material-symbols-outlined,
.setup-advanced[open] > summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.settings-section > .form-grid,
.setup-advanced > .company-form {
  padding: 0 20px 20px;
}

.company-form label small {
  color: var(--muted);
  line-height: 140%;
}

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

.ai-fill-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.08), rgba(22, 101, 216, 0.06)),
    rgba(255, 255, 255, 0.72);
}

.ai-fill-strip strong,
.ai-fill-strip small {
  display: block;
}

.ai-fill-strip small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.ai-fill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ai-fill-button .material-symbols-outlined {
  font-size: 20px;
}

.task-output-block {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 16px;
  background: rgba(242, 247, 243, 0.72);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.55;
}

.task-app-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(22, 101, 216, 0.05), rgba(237, 242, 231, 0.72)),
    rgba(255, 255, 255, 0.72);
}

.task-app-picker strong {
  display: block;
  margin-bottom: 4px;
}

.task-app-picker p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.task-app-option {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.task-app-option .create-app-logo-shell,
.task-app-option .create-app-icon {
  margin: 0;
}

.task-app-option small {
  display: block;
  color: var(--muted);
}

.task-reference-upload {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(15, 123, 102, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.06), rgba(237, 242, 231, 0.72)),
    rgba(255, 255, 255, 0.72);
}

.task-reference-upload strong {
  display: block;
  margin-bottom: 4px;
}

.task-reference-upload p,
.task-reference-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.task-reference-status[data-tone="success"] {
  color: var(--success);
}

.task-reference-status[data-tone="warning"] {
  color: var(--warning);
}

.task-reference-status[data-tone="danger"] {
  color: var(--danger);
}

.task-reference-picker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 123, 102, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-strong);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 33, 26, 0.06);
}

.task-reference-picker input {
  display: none;
}

.task-reference-list {
  display: grid;
  gap: 8px;
}

.task-reference-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.task-reference-item > .material-symbols-outlined {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.task-reference-item strong,
.task-reference-item small {
  display: block;
}

.task-reference-item small {
  margin-top: 3px;
  color: var(--muted);
}

.task-reference-remove {
  min-width: auto;
  padding-inline: 12px;
}

.ai-fill-status[data-tone="success"] {
  color: var(--success);
}

.ai-fill-status[data-tone="warning"] {
  color: var(--warning);
}

.ai-fill-status[data-tone="danger"] {
  color: var(--danger);
}

.sticky-form-actions {
  position: sticky;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border-radius: 18px;
  background: rgba(249, 251, 248, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

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

.company-form label,
.panel-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
}

.company-form input,
.company-form textarea,
.company-form select,
.panel-form input,
.panel-form textarea,
.panel-form select {
  width: 100%;
  border: 1px solid rgba(23, 33, 26, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  resize: vertical;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
}

.panel-form .task-reference-picker {
  display: inline-flex;
  width: fit-content;
}

.template-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.template-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.template-option input {
  width: 18px;
  margin-top: 4px;
}

.span-2 {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex !important;
  gap: 12px !important;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.create-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.create-page-form {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--spacing-m);
  width: 100%;
  max-width: 720px;
}

.create-page-card {
  display: grid;
  gap: var(--spacing-l);
  width: 600px;
  max-width: min(600px, calc(100vw - var(--rail-width) - 96px));
  padding: 32px;
  border-radius: 32px;
  background: var(--color-ink-7);
  color: var(--color-ink);
}

.create-page-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-pill,
.create-section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 16px;
  border: 0;
  border-radius: 100px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.create-pill-white,
.create-section-pill-white {
  background: #ffffff;
}

.create-ai-pill {
  gap: 10px;
  cursor: pointer;
}

.create-pill-icon,
.create-action-icon,
.create-app-check {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
}

.create-ai-status {
  flex-basis: 100%;
  min-height: 0;
}

.create-section-stack {
  display: grid;
  gap: var(--spacing-l);
  padding-left: var(--spacing-xxxl);
}

.create-section {
  display: grid;
  gap: 24px;
}

.create-section-fields {
  display: grid;
  gap: 24px;
  padding-left: 48px;
}

.create-section-reporting .create-section-fields {
  gap: 16px;
}

.create-section-tools > .create-section-pill {
  background: #ffffff;
}

.create-field {
  display: grid;
  gap: 10px;
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--color-ink-20);
}

.create-field-label,
.create-checkbox-field > .create-field-label {
  color: var(--color-ink-50);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 8px;
  text-transform: uppercase;
}

.create-field input,
.create-field textarea,
.create-field select {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
  resize: vertical;
  outline: 0;
}

.create-field textarea {
  min-height: 240px;
}

.create-field select {
  appearance: none;
  cursor: pointer;
}

.create-field input:focus,
.create-field textarea:focus,
.create-field select:focus {
  outline: 0;
  box-shadow: none;
}

.create-checkbox-field {
  display: grid;
  gap: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}

.create-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.create-checkbox-field input {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--color-ink-50);
  border-radius: 4px;
  background: #ffffff;
  color: #ffffff;
  cursor: pointer;
}

.create-checkbox-field input::after {
  content: "check";
  width: 16px;
  height: 16px;
  font-family: "Material Symbols Outlined";
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  opacity: 0;
}

.create-checkbox-field input:checked {
  border-color: var(--color-ink);
  background: var(--color-ink);
}

.create-checkbox-field input:checked::after {
  opacity: 1;
}

.create-checkbox-fill {
  flex: 1 1 auto;
  min-width: 0;
  opacity: 0;
}

.create-notes-field textarea {
  min-height: 14px;
  resize: none;
}

.create-app-picker {
  --create-app-picker-gap: 16px;
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.create-app-picker-title {
  min-height: 32px;
  padding: var(--spacing-m);
  background: var(--color-ink-5);
}

.create-app-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  width: 440px;
  max-width: 100%;
  height: 188px;
  margin-top: var(--create-app-picker-gap);
  padding: 0 48px;
  box-sizing: border-box;
}

.create-app-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: 72px;
  height: 88px;
  cursor: pointer;
}

.create-app-option input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.create-app-logo-shell,
.create-app-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-right: 16px;
  border-radius: 0;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font-size: 20px;
  line-height: 20px;
  border-radius: 100px;
}

.create-app-logo-shell {
  overflow: hidden;
}

.create-app-logo-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.create-app-logo-img-figma {
  width: 13.333px;
  height: 20px;
}

.create-app-logo-img-instagram {
  width: 16px;
  height: 16px;
}

.create-app-logo-img-facebook {
  width: 8.299px;
  height: 16.005px;
}

.create-app-logo-img-x {
  width: 16.005px;
  height: 16.352px;
}

.create-app-logo-img-tiktok {
  width: 13.899px;
  height: 16.005px;
}

.create-app-logo-img-linkedin {
  width: 14.65px;
  height: 14px;
}

.create-app-state {
  position: static;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: var(--color-ink-5);
}

.create-app-option input:checked ~ .create-app-state {
  color: #ffffff;
  background: var(--color-ink);
}

.create-app-option input:focus-visible ~ .create-app-logo-shell,
.create-app-option input:focus-visible ~ .create-app-icon {
  outline: 2px solid var(--color-ink-20);
  outline-offset: 3px;
}

.create-muted {
  margin: 0;
  padding-left: 48px;
  color: var(--color-ink-50);
}

.create-page-actions {
  position: sticky;
  top: var(--spacing-xs);
  z-index: 3;
  align-self: flex-start;
  display: grid;
  gap: var(--spacing-s);
  flex: 0 0 auto;
  padding: var(--spacing-l) 0;
}

.create-action-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-ink-5);
  cursor: pointer;
}

.create-action-button:hover {
  background: var(--color-ink-10);
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: flex-end;
  padding: 18px;
}

.panel-backdrop-confirmation {
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-l);
}

.panel {
  width: min(100%, 560px);
  height: 100%;
  overflow: auto;
  background: rgba(249, 251, 248, 0.96);
  border-radius: 32px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  padding: 24px;
  box-shadow: 0 28px 60px rgba(20, 30, 22, 0.16);
}

.panel-confirmation {
  width: 460px;
  max-width: calc(100vw - 48px);
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 32px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  padding: 24px;
  box-shadow: none;
}

.panel.automation-modal {
  width: 460px;
  max-width: calc(100vw - 32px);
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 32px;
  border: 0;
  border-radius: 32px;
  background: #efefef;
  backdrop-filter: none;
  box-shadow: none;
}

.automation-modal-form {
  width: 100%;
  min-width: 0;
  color: var(--color-ink);
}

.automation-modal-title {
  margin: 0;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 140%;
}

.automation-modal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  padding-left: 72px;
}

.automation-modal-sequence {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.automation-modal-task-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 1000px;
  background: rgba(51, 51, 51, 0.05);
}

.automation-modal-drag-handle {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--color-ink-20);
  cursor: grab;
  user-select: none;
}

.automation-modal-drag-handle:active {
  cursor: grabbing;
}

.automation-modal-task-icon,
.automation-modal-list-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.automation-modal-task-row select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--color-ink);
  background: transparent;
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 510;
  line-height: 140%;
  cursor: pointer;
}

.automation-modal-list-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
}

.automation-modal-list-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--color-ink);
  background: rgba(51, 51, 51, 0.05);
  cursor: pointer;
}

.automation-modal-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.automation-modal-submit-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  color: var(--color-ink);
  background: rgba(51, 51, 51, 0.05);
  cursor: pointer;
}

.automation-modal-submit-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
}

.automation-modal-list-button:hover,
.automation-modal-submit-button:hover {
  background: rgba(51, 51, 51, 0.1);
}

.automation-modal-list-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.task-delete-confirmation {
  width: 100%;
  display: grid;
  min-width: 0;
}

.task-delete-confirmation-body {
  width: 100%;
}

.task-delete-confirmation-body p {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.task-delete-confirmation-actions {
  justify-content: flex-end;
}

.task-delete-confirmation-actions .auth-submit-button.reports-approve-remove-button-danger {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.05);
}

.task-delete-confirmation-actions .auth-submit-button.reports-approve-remove-button-danger:hover {
  background: rgba(255, 59, 48, 0.1);
}

.icon-button {
  border: 0;
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 26, 0.08);
}

.social-widget,
.secretary-widget {
  position: fixed;
  right: var(--spacing-m);
  bottom: var(--spacing-m);
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.social-widget {
  bottom: 104px;
}

.secretary-launcher,
.social-launcher,
.social-panel,
.secretary-panel {
  pointer-events: auto;
}

.secretary-launcher {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  box-shadow: none;
}

.secretary-launcher:hover {
  background: rgba(51, 51, 51, 0.08);
}

.assistant-chat-button-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.assistant-chat-button-icon .material-symbols-outlined {
  color: #1c1b1f;
}

.social-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 123, 102, 0.18);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 242, 0.92)),
    var(--surface-strong);
  box-shadow: 0 18px 42px rgba(30, 53, 37, 0.16);
}

.social-launcher > .material-symbols-outlined {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(15, 123, 102, 0.22);
}

.social-launcher > .material-symbols-outlined {
  background: linear-gradient(135deg, var(--info), var(--primary));
}

.social-launcher strong,
.social-launcher small {
  display: block;
  text-align: left;
}

.social-launcher small {
  margin-top: 2px;
  color: var(--muted);
}

.social-panel {
  width: min(420px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(125, 205, 175, 0.22), transparent 32%),
    rgba(249, 251, 248, 0.96);
  box-shadow: 0 28px 70px rgba(20, 30, 22, 0.2);
  backdrop-filter: blur(20px);
  animation: assistant-rise 180ms ease-out;
}

.social-panel {
  width: min(460px, calc(100vw - 32px));
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 16% 0%, rgba(22, 101, 216, 0.16), transparent 30%),
    rgba(249, 251, 248, 0.96);
}

.secretary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.secretary-head h3 {
  margin: 2px 0 4px;
}

.secretary-head small {
  color: var(--muted);
}

.social-panel-body {
  display: grid;
  gap: 14px;
  min-height: 240px;
  overflow: auto;
  padding: 16px 18px 18px;
}

.social-ready-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 17px;
  background: rgba(242, 247, 243, 0.78);
}

.social-ready-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.social-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secretary-widget {
  z-index: 130;
}

.secretary-panel {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  width: min(420px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 112px));
  border: 0;
  overflow: hidden;
  box-shadow: none;
  backdrop-filter: none;
  animation: assistant-rise 180ms ease-out;
}

.secretary-head {
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-m);
  padding: 0;
  border-bottom: 0;
}

.secretary-profile-avatar {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  font-size: 16px;
  line-height: 10px;
}

.secretary-profile-copy {
  display: grid;
  gap: 0;
  min-width: 0;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 140%;
}

.secretary-profile-copy h3,
.secretary-profile-copy small {
  margin: 0;
  font: inherit;
  line-height: 140%;
}

.secretary-profile-copy small {
  color: var(--color-ink-50);
}

.secretary-thread {
  display: grid;
  gap: 40px;
  width: 100%;
  min-height: 0;
  padding-left: 72px;
}

.secretary-messages.reports-chat-log {
  min-height: 0;
  max-height: min(440px, calc(100vh - 320px));
  padding: 0;
  overflow: auto;
  scrollbar-width: none;
}

.secretary-messages.reports-chat-log::-webkit-scrollbar {
  display: none;
}

.secretary-message-danger p {
  color: var(--danger);
}

.secretary-message-warning p {
  color: var(--warning);
}

.secretary-message-thinking p {
  color: var(--color-ink-50);
}

.secretary-composer.reports-message-composer {
  gap: var(--spacing-m);
  padding: 0;
}

.secretary-composer.reports-message-composer textarea {
  min-height: 48px;
}

.toast {
  position: fixed;
  right: var(--spacing-m);
  bottom: 80px;
  padding: var(--spacing-m);
  border-radius: 100px;
  background: var(--color-ink-5);
  color: var(--color-ink);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
}

@keyframes assistant-rise {
  from {
    opacity: 0;
    translate: 0 10px;
    transform: scale(0.98);
  }

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

@keyframes orbitFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -6px;
  }
}

@keyframes thinking-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(22, 101, 216, 0.24);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(22, 101, 216, 0);
  }
}

.loading-screen {
  place-items: center;
  padding: 40px;
}

.loading-card {
  width: min(100%, 520px);
  text-align: center;
}

.loading-error-card {
  width: min(100%, 720px);
  text-align: left;
}

.loading-error-card h1 {
  margin-bottom: 12px;
}

.loading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.setup-note {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  background: rgba(242, 247, 243, 0.78);
}

.setup-note p {
  margin: 0;
  color: var(--muted);
}

.setup-note code {
  display: block;
  padding: 12px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(23, 33, 26, 0.9);
  color: white;
}

@media (max-width: 1200px) {
  .metric-grid,
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid-dashboard,
  .landing-shell,
  .radial-map-shell {
    grid-template-columns: 1fr;
  }

  .setup-card {
    justify-self: stretch;
    width: 100%;
  }

  .reports-thread-row-with-media {
    grid-template-columns: 600px 52px;
    justify-content: center;
  }

  .reports-thread-stack-has-media .reports-thread-row-no-media {
    grid-template-columns: 600px 52px;
    justify-content: center;
  }

  .reports-media-column {
    grid-column: 1 / -1;
    justify-self: center;
    width: 600px;
    max-width: 100%;
  }

  .reports-work-document-card {
    min-height: 0;
    max-height: none;
  }

  .staff-home {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .staff-map-area {
    padding-right: var(--spacing-l);
    padding-left: var(--spacing-l);
  }

  .staff-lineup {
    flex-wrap: wrap;
    row-gap: var(--spacing-m);
  }

  .staff-connector {
    display: none;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    z-index: 20;
    width: 46px;
    min-width: 0;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: #000000;
    border: 0;
    overflow: hidden;
  }

  .brand-card {
    flex: 0 0 40px;
    padding: 0;
    box-shadow: none;
    background: var(--color-bg);
  }

  .sidebar-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    gap: 12px;
    overflow: hidden;
    scrollbar-width: none;
  }

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

  .nav-link {
    flex: 0 0 40px;
    white-space: nowrap;
  }

  .page-content,
  .landing-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-content.page-content-reports,
  .page-content.page-content-settings {
    padding: 0;
  }

  .page-content.page-content-apps {
    padding: 0;
  }

  .page-content-create {
    padding: 8px;
  }

  .page-content-automation {
    padding: 0;
  }

  .automation-canvas-area {
    justify-content: flex-start;
    padding-right: var(--spacing-l);
    padding-left: var(--spacing-l);
  }

  .automation-ai-page {
    justify-content: flex-start;
  }

  .page-content-staff-home,
  .page-content-task-home,
  .page-content-calendar {
    padding: 0;
  }

  .create-page-form {
    max-width: none;
  }

  .create-page-card {
    max-width: calc(100vw - 46px - 88px);
  }

  .apps-focused-card.reports-thread-card {
    max-width: min(600px, 100%);
  }

  .settings-focused-card.reports-thread-card {
    max-width: calc(100vw - 46px - 88px);
  }

  .staff-home,
  .schedule-home {
    grid-template-columns: minmax(236px, 280px) minmax(0, 1fr);
  }

  .schedule-filter-panel {
    padding: var(--spacing-xs);
  }

  .schedule-calendar-area {
    padding-right: var(--spacing-l);
    padding-left: var(--spacing-l);
  }

  .schedule-month-board {
    min-width: 680px;
  }

  .task-board-grid {
    grid-template-columns: repeat(6, minmax(0, 220px));
  }

  .staff-filter-panel {
    padding: var(--spacing-xs);
  }

  .staff-search-control {
    min-height: 60px;
    padding: 18px 20px;
  }

  .staff-lineup {
    padding-left: var(--spacing-l);
  }

  .reports-page {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .reports-selector {
    width: max-content;
    padding: 20px 12px;
  }

  .reports-thread-area {
    padding-right: 12px;
  }

  .social-widget,
  .secretary-widget {
    right: 14px;
  }

  .secretary-widget {
    bottom: 14px;
  }

  .social-widget {
    bottom: 82px;
  }

  .social-launcher {
    min-width: 0;
    padding: 10px;
  }

  .social-launcher > span:last-child {
    display: none;
  }

  .social-panel,
  .secretary-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 92px);
  }

  .secretary-panel {
    padding: 24px 20px;
  }

  .secretary-thread {
    padding-left: 0;
  }

  .toast {
    right: 14px;
    bottom: 82px;
    max-width: calc(100vw - 28px);
  }

  .hero-card,
  .section-head,
  .panel-head {
    flex-direction: column;
  }

  .metric-grid,
  .detail-grid,
  .report-grid,
  .landing-feature-grid,
  .board-grid,
  .map-command-strip,
  .panel-stat-grid,
  .filter-bar,
  .dashboard-intro {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .filter-bar {
    align-items: stretch;
  }

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

  .operations-actions {
    justify-content: flex-start;
  }

  .page-content-automation {
    padding: var(--spacing-l) var(--spacing-m) 92px;
  }

  .automation-ai-row-body {
    padding-left: var(--spacing-l);
  }

  .automation-manager-lane {
    grid-template-columns: 1fr;
  }

  .apps-grid,
  .app-settings-grid,
  .task-app-grid,
  .figma-prepared-grid {
    grid-template-columns: 1fr;
  }

  .app-card-head {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .app-card-head .badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

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

  .report-publishing-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .report-comment-box {
    grid-template-columns: 1fr;
  }

  .report-item-feedback {
    grid-template-columns: 1fr;
  }

  .report-work-head {
    display: grid;
  }

  .report-work-grid {
    grid-template-columns: 1fr;
  }

  .report-work-approval {
    grid-template-columns: 1fr;
  }

  .report-work-approval-actions {
    justify-content: flex-start;
  }

  .result-count {
    padding: 4px;
  }

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

  .workflow-step::after {
    display: none;
  }

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

  .ai-fill-strip {
    grid-template-columns: 1fr;
  }

  .ai-fill-button {
    justify-content: center;
    width: 100%;
  }

  .radial-map-stage {
    min-height: 680px;
  }
}

@media (max-width: 640px) {
  .card,
  .hero-card,
  .section-card,
  .setup-card,
  .loading-card,
  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .sidebar {
    padding: 0;
  }

  .staff-home {
    grid-template-columns: 1fr;
  }

  .staff-filter-panel {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: auto;
    align-items: stretch;
    background: var(--color-bg);
  }

  .staff-filter-stack,
  .staff-filter-actions {
    align-items: stretch;
  }

  .staff-filter-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .staff-filter-pill {
    flex: 0 1 auto;
  }

  .staff-add-button {
    margin-top: 0;
  }

  .staff-map-area {
    justify-content: flex-start;
    min-height: calc(100vh - 204px);
    padding: var(--spacing-l) var(--spacing-m) 92px;
  }

  .automation-canvas-area {
    justify-content: flex-start;
    min-height: calc(100vh - 204px);
    padding: var(--spacing-l) var(--spacing-m) 92px;
  }

  .panel.automation-modal {
    padding: 24px;
  }

  .automation-modal-content {
    padding-left: 0;
  }

  .staff-map-stack {
    min-width: 0;
  }

  .staff-lineup {
    padding-left: 0;
  }

  .staff-info-topbar {
    gap: var(--spacing-s);
    padding-right: var(--spacing-s);
    padding-left: var(--spacing-s);
  }

  .staff-info-card.reports-thread-card {
    gap: var(--spacing-xl);
  }

  .staff-info-section-body,
  .staff-info-detail-stack,
  .task-detail-card-body,
  .task-detail-message-section,
  .department-info-body,
  .department-info-task-section,
  .department-info-task-body,
  .department-info-staff-list,
  .apps-focused-body,
  .apps-detail-fields,
  .apps-config-stack,
  .apps-config-field small,
  .apps-config-note,
  .settings-focused-body,
  .settings-detail-stack {
    padding-left: 0;
  }

  .auth-shell {
    padding: 18px;
  }

  .auth-wordmark {
    top: 18px;
    left: 18px;
  }

  .auth-card {
    width: 100%;
    max-width: calc(100vw - 36px);
    min-height: 260px;
    padding: 28px 26px 24px;
    border-radius: 22px;
  }

  .auth-title {
    font-size: 16px;
  }

  .auth-form {
    margin-top: 40px;
    padding-left: 0;
  }

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

  .apps-selector {
    position: static;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: auto;
    padding: var(--spacing-xs) var(--spacing-s);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .apps-selector::-webkit-scrollbar {
    display: none;
  }

  .apps-selector-list {
    flex-direction: row;
    gap: var(--spacing-s);
    min-width: max-content;
    padding-left: 0;
  }

  .apps-focused-main {
    min-height: auto;
    padding: var(--spacing-xs);
  }

  .apps-card-shell {
    gap: var(--spacing-s);
    justify-content: flex-start;
  }

  .apps-focused-card.reports-thread-card {
    width: 100%;
    max-width: calc(100vw - 46px - 84px);
    min-height: auto;
    padding: 24px 20px;
    border-radius: 28px;
  }

  .apps-side-actions {
    width: 44px;
    flex-basis: 44px;
    padding-top: var(--spacing-m);
  }

  .settings-focused-layout {
    gap: var(--spacing-s);
    justify-content: flex-start;
    padding: var(--spacing-xs) var(--spacing-s);
  }

  .settings-focused-card.reports-thread-card {
    width: 100%;
    max-width: calc(100vw - 46px - 84px);
    min-height: auto;
    padding: 24px 20px;
    border-radius: 28px;
  }

  .settings-side-actions {
    width: 44px;
    flex-basis: 44px;
    padding-top: var(--spacing-m);
  }

  .staff-info-side-action {
    padding-top: var(--spacing-m);
  }

  .staff-info-detail-label {
    white-space: normal;
  }

  .attention-grid,
  .metric-grid,
  .automation-summary {
    grid-template-columns: 1fr;
  }

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

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

  .workflow-step {
    padding: 11px 12px;
  }

  .section-card h2,
  .hero-card h2 {
    font-size: 1.85rem;
  }

  .attention-card {
    min-height: auto;
  }

  .task-focus-grid {
    grid-template-columns: 1fr;
  }

  .task-home {
    grid-template-columns: 1fr;
  }

  .task-filter-panel {
    min-height: auto;
    align-items: stretch;
  }

  .task-filter-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .task-board-area {
    min-height: auto;
    padding-top: 0;
  }

  .task-board-grid {
    grid-template-columns: repeat(6, minmax(0, 220px));
  }

  .task-board-stack {
    padding-left: 0;
  }

  .task-board-nested {
    padding-left: var(--spacing-m);
  }

  .create-page-form {
    flex-direction: column;
    align-items: center;
  }

  .create-page-card {
    width: 100%;
    max-width: calc(100vw - 46px - 32px);
    padding: 24px 20px;
    border-radius: 28px;
  }

  .create-page-actions {
    grid-template-columns: repeat(2, 52px);
  }

  .create-section-fields,
  .create-app-grid,
  .create-muted {
    padding-left: 0;
  }

  .create-pill,
  .create-section-pill {
    white-space: normal;
  }

  .kanban-board {
    grid-template-columns: repeat(6, minmax(240px, 82vw));
  }

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

  .report-summary-meta {
    justify-items: start;
  }

  .reports-page {
    grid-template-columns: 1fr;
  }

  .reports-selector {
    position: relative;
    width: 100%;
    min-height: auto;
    max-height: 280px;
    padding: 16px;
  }

  .reports-thread-area {
    min-height: auto;
    padding: 8px 14px 92px;
  }

  .reports-thread-stack,
  .reports-thread-card {
    width: 100%;
  }

  .reports-thread-row,
  .reports-thread-row-with-media,
  .reports-thread-row-no-media {
    grid-template-columns: minmax(0, 1fr) 44px;
    justify-content: stretch;
    gap: 8px;
  }

  .reports-report-actions {
    top: 16px;
    padding-top: 0;
  }

  .reports-approve-remove-button {
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .reports-media-column {
    grid-column: 1 / -1;
    width: 100%;
  }

  .reports-media-card {
    min-height: 0;
    border-radius: 28px;
  }

  .reports-work-document-card {
    padding: 26px 22px 34px;
    border-radius: 28px;
  }

  .reports-work-document-body {
    --reports-work-document-indent: var(--spacing-xxxl);
    --reports-work-document-content-indent: var(--spacing-xxxl);
  }

  .reports-thread-card {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .reports-status-dot {
    top: 24px;
    left: 20px;
    width: 16px;
    height: 16px;
  }

  .reports-thread-head {
    padding-left: 28px;
  }

  .reports-final-row,
  .reports-history-entry-review,
  .reports-chat-log,
  .reports-message-composer,
  .reports-thread-chat,
  .task-detail-execution-state {
    padding-left: 0;
  }

  .reports-chat-history-details summary {
    padding-left: 0;
  }

  .reports-chat-message-manager,
  .reports-chat-message-owner {
    padding-right: 0;
    padding-left: 0;
  }

  .reports-final-section,
  .reports-final-row,
  .reports-history-block {
    min-height: 0;
  }

  .reports-thread-copy-final {
    height: auto;
  }

  .reports-history-timeline {
    padding-left: 0;
  }

  .reports-history-rail {
    display: none;
  }

  .dashboard-actions,
  .hero-actions,
  .task-actions {
    width: 100%;
  }

  .dashboard-actions .button,
  .hero-actions .button,
  .task-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }

  .company-node {
    width: 100%;
  }

  .radial-map-stage {
    min-height: 620px;
  }

  .ceo-core {
    width: 176px;
    min-height: 176px;
    padding: 20px 18px;
  }

  .department-orbit-node,
  .department-orbit-node.outer {
    width: 128px;
    min-height: 118px;
    padding: 12px;
    border-radius: 22px;
  }

  .department-symbol {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}

/* Actual deliverable review surface */
.reports-work-document-table-wrap {
  width: calc(100% - var(--reports-work-document-content-indent));
  max-width: calc(100% - var(--reports-work-document-content-indent));
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--color-ink-50);
  margin-left: var(--reports-work-document-content-indent);
}

.reports-work-document-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: auto;
}

.reports-work-document-table th,
.reports-work-document-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-ink-50);
  border-right: 1px solid var(--color-ink-50);
  text-align: left;
  vertical-align: top;
  line-height: 140%;
  overflow-wrap: break-word;
  word-break: normal;
}

.reports-work-document-table th:last-child,
.reports-work-document-table td:last-child {
  border-right: 0;
}

.reports-work-document-table tr:last-child td {
  border-bottom: 0;
}

.reports-work-document-table th {
  background: var(--color-ink-5);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}

.reports-work-document-card-incomplete {
  display: flex;
  flex-direction: column;
}

.reports-work-document-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 160px;
  margin-top: 20px;
  padding: 24px;
  border: 1px dashed rgba(51, 51, 51, 0.16);
  border-radius: 20px;
  color: var(--muted);
}

.reports-work-document-empty p {
  margin: 0;
}

.reports-work-document-empty-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  animation: reports-work-thinking-pulse 1.15s ease-in-out infinite;
}

@keyframes reports-work-thinking-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

/* Tool-backed work history keeps the agent's detailed progress report visible.
   The selected app chip identifies the delivery surface but never replaces the
   worker-to-manager explanation of what was actually built. */
.reports-history-work-stack {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.reports-history-work-stack .app-chip-row {
  justify-content: flex-start;
}


/* Figma reference configuration mirrors the approved Figma task-form UI.
   It is only rendered when Figma is selected as a deliverable tool. */
.create-figma-reference-section {
  padding-left: 48px;
}

.create-figma-reference-section[hidden] {
  display: none !important;
}

.create-figma-reference-section > .create-section-pill {
  min-height: 40px;
  padding: 16px;
  background: var(--color-ink-5);
}

.create-figma-reference-section .create-section-fields {
  padding-left: 48px;
}

.figma-reference-editor {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.figma-reference-list {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.figma-reference-row {
  min-width: 0;
  min-height: 51px;
  padding-bottom: 9px;
  box-sizing: border-box;
}

.figma-reference-row input {
  min-width: 0;
  min-height: 24px;
}

.figma-reference-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
}

.figma-reference-control {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-ink-5);
  font: inherit;
  cursor: pointer;
}

.figma-reference-control .material-symbols-outlined {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.figma-reference-control:focus-visible {
  outline: 2px solid var(--color-ink-20);
  outline-offset: 3px;
}

.figma-revision-history {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(51, 51, 51, 0.08);
}

.figma-revision-history-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #66756d;
}

.figma-revision-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(51, 51, 51, 0.04);
}

.figma-revision-row > div {
  display: grid;
  gap: 2px;
}

.figma-revision-row span {
  color: #6b746f;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .create-app-grid {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .create-figma-reference-section,
  .create-figma-reference-section .create-section-fields {
    padding-left: 24px;
  }

  .figma-reference-actions,
  .create-app-grid {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* AskWise theme overrides must stay after the imported askOps base. */
:root {
  --primary: #116b5f;
  --primary-strong: #0a564d;
  --primary-soft: rgba(17, 107, 95, 0.1);
  --info: #2457c5;
  --info-soft: rgba(36, 87, 197, 0.12);
  --violet: #6c55d9;
  --violet-soft: rgba(108, 85, 217, 0.12);
  --warning: #a86700;
  --warning-soft: rgba(168, 103, 0, 0.13);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(244, 248, 246, 0.9);
}

/* AskWise Learn conversational funnel. Keep after the imported askOps base. */
.wise-learn-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 4px 2px;
}

.wise-learn-intro > div {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.wise-learn-intro h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.wise-learn-intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wise-learn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.wise-learn-builder {
  min-height: min(720px, calc(100vh - 150px));
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  align-content: stretch;
}

.wise-learn-thread {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 300px;
  max-height: calc(100vh - 390px);
  overflow-y: auto;
  padding: 4px 6px 8px 2px;
  scroll-behavior: smooth;
}

.wise-learn-message {
  width: min(760px, 88%);
}

.wise-learn-working {
  border: 1px solid rgba(17, 107, 95, 0.12);
}

.wise-learn-working-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  line-height: 1.45;
}

.wise-learn-working-line .material-symbols-outlined {
  color: var(--primary);
  animation: wise-spin 1.1s linear infinite;
}

.wise-learn-activity {
  display: grid;
  gap: 12px;
  width: min(820px, 96%);
  padding: 16px;
  border: 1px solid rgba(17, 107, 95, 0.16);
  border-radius: 20px;
  background: rgba(244, 248, 246, 0.78);
}

.wise-learn-activity-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.wise-learn-activity-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wise-learn-activity-kicker {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wise-learn-activity-head strong {
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.45;
}

.wise-learn-elapsed {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 750;
}

.wise-learn-elapsed .material-symbols-outlined {
  font-size: 17px;
}

.wise-learn-activity-head .wise-learn-elapsed .material-symbols-outlined:first-child {
  animation: wise-spin 1.1s linear infinite;
}

.wise-learn-activity-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wise-learn-activity-log {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px 2px 2px 0;
}

.wise-learn-activity-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.wise-learn-activity-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(17, 107, 95, 0.11);
  color: var(--primary);
}

.wise-learn-activity-dot .material-symbols-outlined {
  font-size: 16px;
}

.wise-learn-activity-row.current .wise-learn-activity-dot .material-symbols-outlined {
  animation: wise-spin 1.1s linear infinite;
}

.wise-learn-activity-row[data-tone="error"] .wise-learn-activity-dot {
  background: var(--danger-soft);
  color: var(--danger);
}

.wise-learn-activity-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 2px;
}

.wise-learn-activity-copy > span {
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1.4;
}

.wise-learn-activity-copy small {
  color: var(--muted);
  font-size: 11px;
}

.wise-learn-activity-row.current .wise-learn-activity-copy > span {
  font-weight: 700;
}

.wise-learn-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wise-learn-suggestions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(17, 107, 95, 0.18);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.wise-learn-suggestions button:hover {
  border-color: rgba(17, 107, 95, 0.34);
  background: rgba(17, 107, 95, 0.14);
}

.wise-learn-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 35, 28, 0.06);
}

.wise-learn-composer textarea {
  width: 100%;
  min-height: 92px;
  max-height: 240px;
  padding: 8px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.wise-learn-composer textarea::placeholder {
  color: var(--muted);
}

.wise-learn-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wise-learn-context-row:empty {
  display: none;
}

.wise-learn-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-ink-5);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 650;
}

.wise-learn-context-chip > span:not(.material-symbols-outlined) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wise-learn-context-chip .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--primary);
}

.wise-learn-context-chip button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -2px -4px -2px 1px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.wise-learn-context-chip button:hover {
  background: var(--color-ink-7);
  color: var(--color-ink);
}

.wise-learn-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wise-learn-attach {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  cursor: pointer;
}

.wise-learn-attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wise-learn-attach.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.wise-learn-composer-hint {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.wise-learn-send {
  margin-left: auto;
  flex: 0 0 auto;
}

.wise-learn-sources {
  max-height: calc(100vh - 105px);
  overflow: auto;
}

.wise-learn-sources .wise-material-card {
  gap: 11px;
}

.wise-learn-sources .wise-material-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wise-practice-source {
  align-content: start;
}

.wise-practice-source h1 {
  overflow-wrap: anywhere;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.wise-practice-source-actions {
  margin-top: 2px;
}

@media (max-width: 1120px) {
  .wise-learn-layout {
    grid-template-columns: 1fr;
  }

  .wise-learn-builder {
    min-height: 640px;
  }

  .wise-learn-thread {
    max-height: 520px;
  }

  .wise-learn-sources {
    max-height: none;
  }
}

@media (max-width: 780px) {
  .wise-learn-intro {
    flex-direction: column;
  }

  .wise-learn-builder {
    min-height: 560px;
  }

  .wise-learn-message,
  .wise-learn-activity {
    width: 96%;
  }

  .wise-learn-activity-head {
    flex-direction: column;
  }

  .wise-learn-composer-actions {
    flex-wrap: wrap;
  }

  .wise-learn-composer-hint {
    order: 3;
    width: 100%;
  }
}
