/*
 * metafeng.com unified visual theme
 * Black / white / #ef4444, bold typography, terminal accents and restrained cards.
 */

:root {
  --bg: #f6f6f6;
  --bg-soft: #f3f4f6;
  --panel: #ffffff;
  --panel-2: #f9fafb;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --dim: #9ca3af;
  --orange: #ef4444;
  --orange-soft: #dc2626;
  --gold: #ef4444;
  --green: #059669;
  --red: #ef4444;
  --cream: #ffffff;
  --display: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --serif: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

html,
body {
  background: #f6f6f6;
}

body {
  color: #111827;
  background:
    linear-gradient(rgba(17, 24, 39, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.018) 1px, transparent 1px),
    #f6f6f6;
  background-size: 42px 42px;
}

.noise {
  opacity: 0.018;
}

::selection {
  color: #ffffff;
  background: #ef4444;
}

/* Sidebar and top navigation mirror metafeng.com */
.sidebar {
  width: 244px;
  border-right: 1px solid #222222;
  background:
    radial-gradient(circle at 0 0, rgba(239, 68, 68, 0.07), transparent 18rem),
    #0a0a0a;
  box-shadow: 10px 0 40px rgba(10, 10, 10, 0.08);
}

.brand {
  gap: 10px;
  padding-bottom: 28px;
}

.brand-avatar {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.14);
}

.brand strong {
  color: #ffffff;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.brand strong b {
  margin-right: 5px;
  color: #ef4444;
  font-size: 17px;
}

.brand small {
  margin-top: 3px;
  color: #6b7280;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.nav-item {
  border-radius: 6px;
  color: #9ca3af;
}

.nav-item:hover {
  color: #ffffff;
  background: #151515;
}

.nav-item.active {
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 3px 0 0 #ef4444;
}

.nav-item > span:nth-child(2) {
  font-size: 12px;
  font-weight: 800;
}

.nav-item i,
.nav-item.active i {
  color: #9ca3af;
  background: #1c1c1c;
  font-family: var(--display);
}

.nav-item.active i,
.nav-item i.warning-count {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

.live-dot {
  background: #ef4444;
  box-shadow: 0 0 9px rgba(239, 68, 68, 0.8);
}

.sync-card {
  border-color: #272727;
  border-radius: 8px;
  background: #111111;
}

.sync-head {
  color: #f3f4f6;
}

.sync-pulse {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.sync-card p,
.sync-card small {
  color: #6b7280;
}

.sync-track {
  background: #242424;
}

.sync-track span {
  background: #ef4444;
  box-shadow: 0 0 9px rgba(239, 68, 68, 0.5);
}

.owner-card strong {
  color: #ffffff;
}

.owner-card small,
.owner-card em {
  color: #6b7280;
}

.owner-card img {
  border-color: rgba(239, 68, 68, 0.55);
  border-radius: 6px;
  filter: none;
}

.main-area {
  margin-left: 244px;
  background: transparent;
}

.topbar {
  height: 64px;
  padding: 0 36px;
  border-color: #222222;
  background: rgba(10, 10, 10, 0.98);
}

.date-block span {
  color: #ef4444;
  font-family: var(--display);
  font-weight: 800;
}

.date-block strong {
  color: #f9fafb;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.icon-button {
  border-color: #2a2a2a;
  border-radius: 6px;
  color: #9ca3af;
  background: #111111;
}

.icon-button:hover {
  color: #ffffff;
  border-color: #ef4444;
}

.icon-button kbd {
  border-color: #333333;
  color: #6b7280;
}

.notification-button span {
  background: #ef4444;
}

.primary-top-button,
.employee-task-button,
.modal-submit {
  border-color: #ef4444;
  border-radius: 6px;
  color: #ffffff;
  background: #ef4444;
  box-shadow: none;
  font-weight: 900;
}

.primary-top-button:hover,
.employee-task-button:hover,
.modal-submit:hover {
  background: #dc2626;
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.2);
}

.view {
  max-width: 1440px;
  padding-top: 30px;
}

/* Shared metafeng.com cards and headings */
.panel {
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(10, 10, 10, 0.04);
}

.panel-head h2,
.page-heading h1,
.content-card h3,
.asset-card h3,
.employee-profile h2,
.hero-copy h1 {
  font-family: var(--body);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-kicker,
.eyebrow {
  color: #dc2626;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.text-button {
  color: #9ca3af;
  font-family: var(--display);
  font-weight: 700;
}

.text-button:hover {
  color: #dc2626;
}

/* Hero: website terminal language adapted to a workbench */
.hero-panel {
  min-height: 560px;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.62fr);
  border-color: #e5e7eb;
  border-bottom: 2px solid #ef4444;
  border-radius: 8px;
  color: #111827;
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 68, 68, 0.065), transparent 23rem),
    #ffffff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.07);
}

.hero-panel::before {
  inset: 0 30% 0 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(239, 68, 68, 0.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(239, 68, 68, 0.025) 23px 24px);
  background-size: auto;
  mask-image: linear-gradient(90deg, #000, transparent 92%);
  opacity: 0.7;
}

.hero-copy {
  padding: 34px 40px 32px;
}

.eyebrow span {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

.hero-copy h1 {
  margin: 13px 0 8px;
  color: #111827;
  font-size: clamp(33px, 3vw, 49px);
  line-height: 1.1;
}

.hero-copy h1 span {
  color: #ef4444;
}

.hero-copy > p {
  max-width: 720px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.7;
}

.input-guide {
  margin-top: 22px;
}

.input-guide-head,
.command-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.input-guide-head strong,
.command-label strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 11px;
  font-weight: 900;
}

.input-guide-head strong i,
.command-label strong i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #ef4444;
  font-family: var(--display);
  font-size: 8px;
  font-style: normal;
}

.input-guide-head > span,
.command-label > span {
  color: #9ca3af;
  font-size: 9px;
}

.input-example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.input-example-grid button {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  color: #111827;
  background: rgba(249, 250, 251, 0.9);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.input-example-grid button > i {
  display: grid;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 6px;
  color: #dc2626;
  background: #fee2e2;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.input-example-grid button span,
.input-example-grid button strong,
.input-example-grid button small {
  display: block;
}

.input-example-grid button strong {
  font-size: 10px;
}

.input-example-grid button small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 8px;
  line-height: 1.35;
}

.input-example-grid button:hover,
.input-example-grid button.selected {
  transform: translateY(-1px);
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.08);
}

.command-label {
  margin-top: 19px;
}

.command-box {
  min-height: 88px;
  margin-top: 8px;
  border-color: #d1d5db;
  border-radius: 7px;
  background: #fafafa;
  box-shadow: inset 0 1px #ffffff;
}

.command-box:focus-within {
  border-color: #ef4444;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.09);
}

.command-box textarea {
  min-height: 64px;
  color: #111827;
  font-family: var(--body);
  font-size: 11px;
}

.command-orb {
  background: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}

.command-box > button {
  border-radius: 6px;
  background: #ef4444;
  box-shadow: none;
}

.creation-direction {
  margin-top: 17px;
}

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

.quick-intents button {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-color: #e5e7eb;
  border-radius: 7px;
  color: #111827;
  background: #ffffff;
  font-family: var(--body);
  text-align: left;
}

.quick-intents button > i {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 7px;
  color: #dc2626;
  background: #fee2e2;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.quick-intents button span,
.quick-intents button strong,
.quick-intents button small {
  display: block;
}

.quick-intents button strong {
  color: #111827;
  font-size: 10px;
}

.quick-intents button small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 8px;
  line-height: 1.35;
}

.quick-intents button:hover,
.quick-intents button.selected {
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.08);
}

.hero-system-map {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  padding: 29px 27px 24px;
  overflow: hidden;
  border-left: 1px solid #e5e7eb;
  background:
    linear-gradient(rgba(239, 68, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.035) 1px, transparent 1px),
    #f7f7f8;
  background-size: 24px 24px;
}

.hero-system-map::before {
  position: absolute;
  top: 73px;
  right: -55px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(239, 68, 68, 0.02),
    0 0 0 48px rgba(239, 68, 68, 0.012);
  content: "";
}

.system-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.system-map-head span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #374151;
}

.system-map-head span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 9px rgba(239, 68, 68, 0.8);
}

.system-map-head b {
  color: #ef4444;
  font-size: 8px;
}

.system-map-title {
  position: relative;
  z-index: 2;
  margin: 27px 0 18px;
}

.system-map-title small,
.system-map-title strong {
  display: block;
}

.system-map-title small {
  color: #9ca3af;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 1px;
}

.system-map-title strong {
  margin-top: 6px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.system-stages {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.system-stage {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.system-stage.active {
  border-color: rgba(239, 68, 68, 0.5);
  background: #fff5f5;
}

.system-stage b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 4px;
  color: #ef4444;
  background: #fee2e2;
  font-family: var(--display);
  font-size: 7px;
}

.system-stage.active b {
  color: #ffffff;
  background: #ef4444;
}

.system-stage span {
  color: #111827;
  font-size: 9px;
}

.system-stage span strong,
.system-stage span small {
  display: block;
}

.system-stage span strong {
  font-size: 10px;
  font-weight: 900;
}

.system-stage span small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 8px;
  line-height: 1.4;
}

.output-summary {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  padding: 13px 14px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #ffffff;
}

.output-summary span,
.output-summary strong,
.output-summary small {
  display: block;
}

.output-summary span {
  color: #dc2626;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.output-summary strong {
  margin-top: 5px;
  color: #111827;
  font-size: 12px;
}

.output-summary small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 8px;
  line-height: 1.4;
}

.system-map-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  color: #9ca3af;
  font-family: var(--display);
  font-size: 7px;
  letter-spacing: 0.8px;
}

.system-map-foot i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #ef4444, transparent);
}

/* Codex-like single chat entry */
.hero-panel {
  min-height: 575px;
  grid-template-columns: minmax(0, 1.62fr) minmax(330px, 0.58fr);
}

.hero-copy {
  padding: 38px 42px 34px;
}

.hero-copy > p {
  max-width: 700px;
  font-size: 12px;
}

.codex-chat-box {
  position: relative;
  display: block;
  max-width: 780px;
  min-height: 285px;
  margin-top: 25px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.07);
}

.codex-chat-box:focus-within {
  border-color: #ef4444;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.08),
    0 18px 45px rgba(17, 24, 39, 0.07);
}

.chat-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

.chat-box-head > div:nth-child(2) {
  flex: 1;
}

.chat-box-head strong,
.chat-box-head small {
  display: block;
}

.chat-box-head strong {
  color: #111827;
  font-size: 10px;
  font-weight: 900;
}

.chat-box-head small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 8px;
}

.chat-box-head > b {
  color: #ef4444;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 0.8px;
}

.codex-chat-box textarea {
  display: block;
  min-height: 165px;
  padding: 20px 19px;
  color: #111827;
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.8;
}

.codex-chat-box textarea::placeholder {
  color: #9ca3af;
}

.chat-attachment-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-top: 1px solid #eef0f2;
  background: #ffffff;
}

.chat-attachment-bar > small {
  color: #9ca3af;
  font-size: 8px;
  line-height: 1.4;
}

.chat-attachment-bar > small strong {
  color: #6b7280;
}

.chat-attach-button {
  display: inline-flex;
  height: 29px;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #4b5563;
  background: #f9fafb;
  cursor: pointer;
  font-family: var(--body);
  font-size: 8px;
  font-weight: 800;
}

.chat-attach-button:hover {
  border-color: #ef4444;
  color: #dc2626;
  background: #fff7f7;
}

.chat-attach-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.chat-attach-button b {
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 99px;
  color: #ffffff;
  background: #ef4444;
  font-size: 7px;
}

.chat-image-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 11px 10px;
  background: #ffffff;
}

.chat-image-previews[hidden] {
  display: none;
}

.chat-image-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fafafa;
}

.chat-image-card img {
  width: 46px;
  height: 38px;
  border-radius: 5px;
  object-fit: cover;
}

.chat-image-card span,
.chat-image-card strong,
.chat-image-card small {
  display: block;
  min-width: 0;
}

.chat-image-card strong {
  overflow: hidden;
  color: #111827;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-image-card small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 7px;
}

.chat-image-card > button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
}

.chat-image-card > button:hover {
  color: #dc2626;
  background: #fee2e2;
}

.codex-chat-box.is-dragging-image {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.09);
}

.codex-chat-box.is-dragging-image::after {
  position: absolute;
  z-index: 8;
  display: grid;
  border: 1px dashed #ef4444;
  border-radius: 8px;
  color: #dc2626;
  background: rgba(255, 247, 247, 0.94);
  content: "松开图片，交给小峰子识别";
  font-size: 11px;
  font-weight: 900;
  inset: 8px;
  place-items: center;
}

.chat-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.chat-confirm-hint {
  color: #8b93a1;
  font-size: 10px;
  line-height: 1.5;
}

.codex-chat-box .direction-options {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.codex-chat-box .quick-intents button {
  min-height: 34px;
  gap: 6px;
  padding: 5px 8px;
  border-color: #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.codex-chat-box .quick-intents button > i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 7px;
}

.codex-chat-box .quick-intents button strong {
  font-size: 8px;
  white-space: nowrap;
}

.codex-chat-box .quick-intents button:hover,
.codex-chat-box .quick-intents button.selected {
  transform: none;
  border-color: #ef4444;
  background: #fff7f7;
}

.chat-composer-footer > #submitIdea {
  display: inline-flex;
  min-width: 82px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #ef4444;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.chat-composer-footer > #submitIdea svg {
  width: 16px;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 780px;
  margin-top: 12px;
}

.prompt-suggestions > span {
  margin-right: 2px;
  color: #9ca3af;
  font-size: 8px;
}

.prompt-suggestions button {
  padding: 6px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  color: #6b7280;
  background: #ffffff;
  cursor: pointer;
  font-size: 8px;
  transition: 150ms ease;
}

.prompt-suggestions button:hover,
.prompt-suggestions button.selected {
  border-color: #ef4444;
  color: #dc2626;
  background: #fff7f7;
}

.hero-system-map {
  min-height: 575px;
}

.assistant-context-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.assistant-context-list > div {
  display: grid;
  min-height: 63px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.assistant-context-list > div > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #ef4444;
  background: #fee2e2;
  font-family: var(--display);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.assistant-context-list span strong,
.assistant-context-list span small {
  display: block;
}

.assistant-context-list span strong {
  color: #111827;
  font-size: 10px;
  font-weight: 900;
}

.assistant-context-list span small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 8px;
}

.assistant-context-list > div > b {
  color: #059669;
  font-size: 7px;
}

.auto-routing-card {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  padding: 15px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(239, 68, 68, 0.08), transparent 10rem),
    #ffffff;
}

.auto-routing-card > span {
  color: #ef4444;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.auto-routing-card > strong {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.auto-routing-card > p {
  margin: 7px 0 10px;
  color: #6b7280;
  font-size: 8px;
  line-height: 1.65;
}

.auto-routing-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.auto-routing-card > div i {
  padding: 4px 6px;
  border-radius: 4px;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 7px;
  font-style: normal;
}

/* Metrics and dashboard body */
.metric-strip {
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(10, 10, 10, 0.035);
}

.metric-strip article {
  border-color: #e5e7eb;
}

.metric-icon,
.metric-icon.orange,
.metric-icon.gold,
.metric-icon.red,
.metric-icon.green {
  border-color: #111827;
  border-radius: 7px;
  color: #ffffff;
  background: #0a0a0a;
  font-family: var(--display);
  font-weight: 900;
}

.metric-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.metric-strip article > div:nth-child(2) span {
  color: #6b7280;
  font-weight: 700;
}

.metric-strip article > div:nth-child(2) strong {
  color: #ef4444;
  font-family: var(--body);
  font-weight: 900;
}

.metric-strip article > small {
  color: #9ca3af;
}

.metric-strip article.metric-attention > small {
  color: #dc2626;
}

.focus-item {
  border-color: #e5e7eb;
  border-radius: 7px;
  color: #111827;
  background: #fafafa;
}

.focus-item:hover {
  border-color: rgba(239, 68, 68, 0.6);
  background: #ffffff;
}

.priority {
  border-radius: 5px;
  font-weight: 900;
}

.priority.p0,
.priority.p1 {
  color: #ffffff;
  background: #ef4444;
}

.focus-main small,
.focus-main small b {
  color: #6b7280;
}

.focus-action,
.focus-action.muted {
  border-color: rgba(239, 68, 68, 0.28);
  border-radius: 5px;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.04);
}

.probation-badge {
  border-color: rgba(239, 68, 68, 0.25);
  border-radius: 999px;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.05);
  font-family: var(--display);
}

.ai-avatar {
  border-color: rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #ffffff;
  background: #0a0a0a;
}

.ai-avatar svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ai-avatar i {
  border-color: #ffffff;
  background: #ef4444;
}

.employee-identity strong {
  color: #dc2626;
}

.employee-identity p,
.score-line span,
.promotion small {
  color: #6b7280;
}

.score-line,
.score-line > div {
  border-color: #e5e7eb;
}

.score-line strong {
  color: #111827;
  font-family: var(--body);
  font-weight: 900;
}

.promotion-label span {
  color: #6b7280;
}

.promotion-label strong {
  color: #ef4444;
}

.progress {
  background: #e5e7eb;
}

.progress span {
  background: #ef4444;
  box-shadow: none;
}

.secondary-button {
  border-color: #d1d5db;
  border-radius: 6px;
  color: #374151;
  background: #ffffff;
  font-weight: 800;
}

.secondary-button:hover {
  color: #dc2626;
  border-color: #ef4444;
  background: #fffafa;
}

.legend {
  color: #9ca3af;
}

.legend i {
  background: #d1d5db;
}

.legend i.legend-orange {
  background: #ef4444;
}

.pipeline-line {
  background: #e5e7eb;
}

.pipeline-line.active,
.pipeline-line.partial {
  background: linear-gradient(90deg, #ef4444, #e5e7eb);
}

.pipeline-node span {
  color: #9ca3af;
}

.pipeline-node strong {
  color: #374151;
}

.pipeline-node b {
  border-color: #d1d5db;
  color: #6b7280;
  background: #f9fafb;
}

.pipeline-node.active strong,
.pipeline-node.active b,
.pipeline-node.attention b {
  color: #ef4444;
}

.pipeline-node.active b,
.pipeline-node.attention b {
  border-color: rgba(239, 68, 68, 0.45);
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.06);
}

/* Page headings and controls */
.page-heading h1 {
  color: #111827;
  font-size: 34px;
}

.page-heading p {
  color: #6b7280;
}

#content .page-heading p {
  font-size: 14px;
  line-height: 1.65;
}

.toolbar {
  border-radius: 8px;
  background: #ffffff;
}

.search-field svg {
  stroke: #9ca3af;
}

.search-field input,
.knowledge-search input {
  color: #111827;
}

.filter-chips button {
  color: #6b7280;
  font-weight: 800;
}

#content .search-field input {
  font-size: 13px;
}

#content .filter-chips button {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

#content .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 15px;
  align-items: center;
}

#content .search-field {
  width: 100%;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

#content .filter-chips {
  width: 100%;
  align-items: center;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-left: 0;
  padding-top: 9px;
  overflow-x: auto;
  border-top: 1px solid #f0f1f3;
  scrollbar-width: none;
}

#content .filter-chips::-webkit-scrollbar {
  display: none;
}

#content .view-switch {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-left: 0;
}

.content-format-tabs {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-format-tabs > button,
.content-format-tab > button {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 88px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  color: #111827;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.025), transparent 45%),
    #ffffff;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.content-format-tabs > button::after,
.content-format-tab > button::after {
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(239, 68, 68, 0.11);
  border-radius: 50%;
  content: "";
}

.content-format-tabs > button:hover,
.content-format-tab > button:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.content-format-tabs > button.active,
.content-format-tab > button.active {
  border-color: #111111;
  color: #ffffff;
  background:
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(239, 68, 68, 0.11) 28px 29px),
    #0a0a0a;
  box-shadow: inset 3px 0 0 #ef4444;
}

.content-format-tabs > button span,
.content-format-tab > button span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 900;
}

.content-format-tabs > button b,
.content-format-tab > button b {
  position: absolute;
  top: 13px;
  right: 15px;
  z-index: 1;
  color: #ef4444;
  font-family: var(--display);
  font-size: 22px;
}

.content-format-tabs > button small,
.content-format-tab > button small {
  position: relative;
  z-index: 1;
  align-self: end;
  color: #9ca3af;
  font-size: 11px;
}

.content-format-tabs > button.active small,
.content-format-tab > button.active small {
  color: #6b7280;
}

.content-format-tab {
  position: relative;
  min-width: 0;
}

.content-format-tab.has-external-link > button small {
  max-width: calc(100% - 116px);
}

.format-external-link {
  position: absolute;
  right: 13px;
  bottom: 11px;
  z-index: 3;
  display: inline-flex;
  height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 6px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.92);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.format-external-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.format-external-link i {
  color: #ef4444;
  font-size: 9px;
  font-style: normal;
}

.format-external-link:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.58);
  color: #dc2626;
}

.content-format-tab > button.active + .format-external-link {
  border-color: rgba(239, 68, 68, 0.54);
  color: #ffffff;
  background: rgba(10, 10, 10, 0.92);
}

.filter-chips button.active,
.filter-chips button:hover {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.045);
}

.filter-chips[hidden] {
  display: none !important;
}

.filter-context-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
  color: #9ca3af;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.filter-context-label::before {
  width: 12px;
  height: 1px;
  background: #ef4444;
  content: "";
}

.filter-context-label.moments-label::before {
  background: #0f766e;
}

.view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
}

.view-switch button {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #8b93a1;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.view-switch button:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.04);
}

.view-switch button.active {
  color: #ffffff;
  border-color: #111111;
  background: #111111;
}

.view-switch svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

/* Content board */
#content .kanban-board {
  grid-template-columns: repeat(4, minmax(250px, 1fr));
}

.kanban-column {
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #f3f4f6;
}

.kanban-column.featured-column {
  border-color: rgba(239, 68, 68, 0.28);
  background: #fffafa;
}

.kanban-column > header span {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.kanban-column > header b {
  min-width: 23px;
  height: 22px;
  color: #6b7280;
  background: #e5e7eb;
  font-size: 10px;
}

.kanban-column > header button {
  color: #9ca3af;
}

.content-card {
  padding: 16px;
  border-color: #e5e7eb;
  border-radius: 7px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.035);
}

.content-card:hover {
  border-color: rgba(239, 68, 68, 0.62);
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.07);
}

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

.card-classification-tags {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  white-space: nowrap;
}

.digital-human-card-badge {
  display: inline-flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid rgba(8, 145, 178, 0.28);
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.digital-human-card-badge svg {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  fill: currentColor;
}

.digital-human-card-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 145, 178, 0.65);
  background: #cffafe;
  box-shadow: 0 5px 12px rgba(8, 145, 178, 0.13);
}

.digital-human-card-badge:focus-visible {
  outline: 2px solid rgba(8, 145, 178, 0.45);
  outline-offset: 2px;
}

.digital-human-card-badge.processing {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
  background: #fffbeb;
}

.digital-human-card-badge.processing:hover {
  border-color: rgba(217, 119, 6, 0.65);
  background: #fef3c7;
  box-shadow: 0 5px 12px rgba(217, 119, 6, 0.12);
}

.digital-human-card-badge.failed {
  color: #6b7280;
  border-color: #d1d5db;
  background: #f9fafb;
}

.content-format-badge {
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.content-format-badge::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ef4444;
  content: "";
  vertical-align: 0.08em;
}

.content-card h3 {
  color: #111827;
  font-size: 16px;
  line-height: 1.5;
}

.obsidian-card-path {
  display: block;
  margin: 12px 0 0;
  padding: 10px 10px 11px;
  border-top: 1px solid #e5e7eb;
  border-left: 2px solid #ef4444;
  border-radius: 0 0 4px 4px;
  background: #f9fafb;
}

.obsidian-card-path span {
  display: block;
  margin-bottom: 5px;
  color: #ef4444;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.obsidian-card-path small {
  display: block;
  width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  color: #6b7280;
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.digital-content-link {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin: 0 0 11px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.digital-content-link:hover {
  transform: translateY(-1px);
  border-color: #ef4444;
  box-shadow: 0 7px 18px rgba(17, 24, 39, 0.07);
}

.digital-content-link > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.digital-content-link > span i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #9ca3af;
}

.digital-content-link b {
  overflow: hidden;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.digital-content-link em {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.digital-content-link.completed {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.digital-content-link.completed > span i {
  background: #059669;
}

.digital-content-link.completed em {
  color: #047857;
}

.digital-content-link.processing {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff7f7;
}

.digital-content-link.processing > span i {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.11);
  animation: pulse 1.2s ease-in-out infinite;
}

.digital-content-link.failed {
  color: #6b7280;
}

.markdown-section-actions .digital-content-link.compact {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  color: #d1fae5;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(5, 150, 105, 0.13);
}

.markdown-section-actions .digital-content-link.compact em {
  color: #6ee7b7;
  font-family: var(--display);
}

.markdown-section-actions .digital-content-link.compact.processing {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
}

.markdown-section-actions .digital-content-link.compact.failed {
  color: #d1d5db;
  border-color: #525252;
  background: #171717;
}

.content-card p,
.card-meta {
  color: #6b7280;
}

#content .content-card p {
  font-size: 13px;
  line-height: 1.7;
}

#content .card-meta,
#content .content-card footer,
#content .data-missing {
  font-size: 11px;
}

.card-tag,
.mini-tag {
  border-radius: 999px;
  font-weight: 800;
}

#content .card-tag {
  padding: 4px 8px;
  font-size: 10px;
}

.card-tag.opinion,
.mini-tag.opinion,
.card-tag.knowledge,
.mini-tag.knowledge,
.card-tag.process,
.mini-tag.process {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.045);
}

.card-tag.moments-cognition {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.055);
}

.card-tag.moments-evidence {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.24);
  background: rgba(5, 150, 105, 0.06);
}

.card-tag.moments-persona {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(217, 119, 6, 0.065);
}

.content-card footer {
  border-color: #e5e7eb;
  color: #9ca3af;
}

.content-card footer i {
  color: #6b7280;
}

.warm-cover {
  border-color: #222222;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(239, 68, 68, 0.12) 6px 8px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(239, 68, 68, 0.08) 18px 20px),
    #0a0a0a;
}

.warm-cover::before,
.warm-cover::after {
  border-color: rgba(239, 68, 68, 0.5);
}

.warm-cover span {
  color: #ffffff;
  font-family: var(--body);
  font-weight: 900;
  text-shadow: 4px 4px 0 #ef4444;
}

.ai-working,
.ai-working i {
  color: #059669;
}

.data-missing {
  border-color: rgba(239, 68, 68, 0.26);
  color: #dc2626;
  background: #fff7f7;
}

.empty-column {
  border-color: #d1d5db;
  color: #9ca3af;
}

.empty-column div {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.2);
  background: rgba(5, 150, 105, 0.05);
}

.empty-column strong {
  color: #6b7280;
}

#content .empty-column strong {
  font-size: 14px;
}

#content .empty-column p {
  font-size: 12px;
}

/* Knowledge */
.knowledge-search {
  border-color: rgba(239, 68, 68, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.05), transparent 48%),
    #ffffff;
}

.search-spark {
  border-color: #222222;
  border-radius: 6px;
  color: #ef4444;
  background: #0a0a0a;
}

.knowledge-search label {
  color: #6b7280;
}

.knowledge-search button {
  border-color: #ef4444;
  border-radius: 6px;
  color: #ffffff;
  background: #ef4444;
  font-weight: 900;
}

.asset-card {
  border-color: #e5e7eb;
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(10, 10, 10, 0.04);
}

.asset-card:hover,
.asset-card.accent {
  border-color: rgba(239, 68, 68, 0.46);
  background: #ffffff;
}

.asset-number {
  color: #f3f4f6;
}

.asset-symbol {
  border-color: #111827;
  border-radius: 7px;
  color: #ef4444;
  background: #0a0a0a;
}

.asset-card p,
.asset-card button {
  color: #6b7280;
}

.asset-card button:hover {
  color: #dc2626;
}

.asset-list {
  border-color: #e5e7eb;
}

.asset-list button {
  border-color: #e5e7eb;
  color: #111827;
}

.asset-list button:hover {
  background: #fafafa;
}

.file-icon,
.file-icon.orange-file,
.file-icon.green-file,
.file-icon.gold-file {
  color: #ef4444;
  background: #0a0a0a;
}

.asset-list small,
.asset-list em {
  color: #9ca3af;
}

/* Data and charts */
.attention-banner {
  border-color: rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #111827;
  background: #fff7f7;
}

.attention-banner > div span {
  color: #ffffff;
  background: #ef4444;
}

.attention-banner p {
  color: #6b7280;
}

.attention-banner button {
  color: #dc2626;
  font-weight: 900;
}

.period-button {
  border-color: #e5e7eb;
  color: #6b7280;
  background: #ffffff;
}

.bars {
  background-image: repeating-linear-gradient(to bottom, #e5e7eb 0 1px, transparent 1px 60px);
}

.bars i {
  background: linear-gradient(180deg, #6b7280, #111827);
}

.bars i.current {
  background: #ef4444;
  box-shadow: none;
}

.y-labels,
.bars span,
.chart-note {
  color: #9ca3af;
}

.chart-note {
  border-color: #e5e7eb;
}

.chart-note span {
  color: #ef4444;
}

.ring {
  background: conic-gradient(#ef4444 calc(var(--percent) * 1%), #e5e7eb 0);
}

.ring::before {
  background: #ffffff;
}

.ring strong {
  color: #111827;
  font-family: var(--body);
  font-weight: 900;
}

.ring span,
.health-list span,
.health-list strong {
  color: #6b7280;
}

.health-list > div {
  border-color: #e5e7eb;
}

.health-list strong.ok {
  color: #059669;
}

.health-list strong.bad {
  color: #dc2626;
}

.table-head {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #f9fafb;
}

.table-row {
  border-color: #e5e7eb;
  color: #6b7280;
}

.table-row:hover {
  background: #fafafa;
}

.table-row > span:first-child strong {
  color: #111827;
}

.table-row .pending-text {
  color: #dc2626;
}

/* Employee page: dark website section followed by white performance cards */
.employee-roster-panel {
  margin-bottom: 15px;
  padding: 21px 23px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(10, 10, 10, 0.035);
}

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

.roster-heading h2 {
  margin: 5px 0 0;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.roster-heading > strong {
  color: #6b7280;
  font-size: 9px;
  font-weight: 700;
}

.roster-heading > strong b {
  color: #ef4444;
  font-size: 16px;
}

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

.roster-card {
  display: grid;
  min-height: 72px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  color: #111827;
  background: #fafafa;
  text-align: left;
}

button.roster-card {
  cursor: pointer;
  transition: 160ms ease;
}

button.roster-card:hover,
.roster-card.active {
  transform: translateY(-1px);
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow: 0 9px 24px rgba(239, 68, 68, 0.07);
}

.roster-card.planned {
  border-style: dashed;
  color: #6b7280;
  background: #ffffff;
}

.roster-index {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: #111111;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
}

.roster-card.active .roster-index {
  background: #ef4444;
}

.roster-card.planned .roster-index {
  color: #9ca3af;
  background: #f3f4f6;
}

.roster-card div strong,
.roster-card div small {
  display: block;
}

.roster-card div strong {
  font-size: 10px;
  font-weight: 900;
}

.roster-card div small {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 8px;
}

.roster-card > i {
  padding: 4px 6px;
  border-radius: 4px;
  color: #dc2626;
  background: #fee2e2;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.roster-card.planned > i {
  color: #9ca3af;
  background: #f3f4f6;
}

.employee-hero {
  border-color: #222222;
  border-bottom: 2px solid #ef4444;
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.12), transparent 22rem),
    #0a0a0a;
}

.employee-photo,
.employee-ring {
  border-color: #222222;
}

.employee-photo img {
  filter: grayscale(0.25) contrast(1.1) brightness(0.76);
}

.employee-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(239, 68, 68, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.14) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(239, 68, 68, 0.18), transparent 58%),
    #0a0a0a;
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.employee-photo::after {
  border: 1px solid rgba(239, 68, 68, 0.38);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -58%);
  background: transparent;
}

.employee-avatar-code,
.employee-photo > strong,
.employee-photo > small {
  position: relative;
  z-index: 1;
}

.employee-avatar-code {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid #ef4444;
  border-radius: 16px;
  color: #ffffff;
  background: #111111;
  box-shadow: 0 0 38px rgba(239, 68, 68, 0.2);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.employee-photo > strong {
  margin-top: 18px;
  color: #ffffff;
  font-size: 13px;
}

.employee-photo > small {
  margin-top: 5px;
  color: #ef4444;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 1.1px;
}

.photo-status {
  border-color: #333333;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(10, 10, 10, 0.8);
}

.photo-status span {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.profile-topline span {
  color: #ef4444;
}

.profile-topline i {
  border-color: rgba(239, 68, 68, 0.32);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.employee-profile h2 {
  color: #ffffff;
}

.mission {
  color: #9ca3af;
}

.ability-tags span {
  border-color: #333333;
  color: #d1d5db;
  background: #151515;
}

.employee-hero .secondary-button {
  border-color: #3f3f3f;
  color: #e5e7eb;
  background: #111111;
}

.employee-hero .secondary-button:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.employee-ring .ring::before {
  background: #0a0a0a;
}

.employee-ring .ring strong {
  color: #ffffff;
}

.employee-ring small {
  color: #6b7280;
}

.employee-skills-card {
  margin-top: 15px;
  padding: 22px 24px 24px;
}

.skill-total {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.skill-total strong {
  color: #ef4444;
  font-size: 25px;
  font-weight: 900;
}

.skill-total span {
  color: #9ca3af;
  font-size: 8px;
}

.skill-intro {
  margin: 7px 0 0;
  color: #6b7280;
  font-size: 9px;
  line-height: 1.65;
}

.employee-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.employee-skill-grid > article {
  display: grid;
  min-height: 67px;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fafafa;
}

.employee-skill-grid > article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #ef4444;
  background: #fee2e2;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
}

.employee-skill-grid article strong {
  display: block;
  color: #111827;
  font-size: 10px;
  font-weight: 900;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.skill-pills small {
  padding: 3px 6px;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #b91c1c;
  background: #fff7f7;
  font-size: 7px;
}

.skill-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed #d1d5db;
  border-radius: 7px;
  color: #9ca3af;
  text-align: center;
}

.big-stats > div {
  border-color: #e5e7eb;
}

.big-stats span,
.big-stats i {
  color: #6b7280;
}

.big-stats strong {
  color: #111827;
  font-family: var(--body);
  font-weight: 900;
}

.big-stats i.good {
  color: #059669;
}

.condition-list > div > span {
  border-color: #d1d5db;
  color: #6b7280;
}

.condition-list > div.done > span {
  color: #ffffff;
  border-color: #ef4444;
  background: #ef4444;
}

.condition-list strong {
  color: #111827;
}

.condition-list small {
  color: #9ca3af;
}

.workflow-steps b {
  border-color: #111827;
  border-radius: 6px;
  color: #ef4444;
  background: #0a0a0a;
}

.workflow-steps span {
  color: #111827;
}

.workflow-steps small,
.workflow-steps > i {
  color: #9ca3af;
}

/* Drawers, modals and search keep the website's dark terminal mode */
.drawer-backdrop,
.modal-backdrop,
.search-overlay {
  background: rgba(10, 10, 10, 0.68);
}

.detail-drawer,
.compose-modal,
.search-dialog {
  border-color: #333333;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0, rgba(239, 68, 68, 0.11), transparent 22rem),
    #0a0a0a;
}

.drawer-close {
  color: #9ca3af;
}

.drawer-label,
.detail-drawer .drawer-status i,
.compose-modal .section-kicker {
  color: #ef4444;
}

.detail-drawer h2,
.compose-modal h2 {
  color: #ffffff;
  font-family: var(--body);
  font-weight: 900;
}

.drawer-status span,
.drawer-status i {
  border-color: #333333;
  color: #9ca3af;
}

.drawer-status i {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.08);
}

.drawer-score {
  border-color: #272727;
}

.drawer-score > div {
  border-color: #272727;
}

.drawer-score span,
.drawer-section p,
.compose-modal > p {
  color: #9ca3af;
}

.drawer-score strong {
  color: #ffffff;
}

.drawer-section > span {
  color: #ef4444;
}

.compose-modal textarea {
  border-color: #333333;
  color: #ffffff;
  background: #111111;
}

.compose-modal textarea:focus {
  border-color: #ef4444;
}

.modal-options button {
  border-color: #333333;
  color: #d1d5db;
  background: #111111;
}

.modal-options button.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.modal-options small {
  color: #6b7280;
}

.search-dialog-input {
  border-color: #272727;
}

.search-dialog-input input {
  color: #ffffff;
}

.search-dialog-input svg {
  stroke: #9ca3af;
}

.search-results > small {
  color: #6b7280;
}

.search-results button {
  color: #ffffff;
}

.search-results button:hover {
  background: #151515;
}

.search-results button span {
  color: #ffffff;
  background: #ef4444;
}

.toast {
  border-color: rgba(239, 68, 68, 0.4);
  border-radius: 7px;
  color: #ffffff;
  background: #0a0a0a;
}

.toast > span {
  color: #ffffff;
  background: #ef4444;
}

.toast small {
  color: #9ca3af;
}

/* Live Obsidian editor */
[hidden] {
  display: none !important;
}

.detail-drawer {
  width: min(700px, 96vw);
  overflow-y: auto;
  padding-bottom: 108px;
}

.drawer-file-path {
  display: block;
  width: 100%;
  margin: 24px 0 12px;
  padding: 14px 15px;
  overflow: visible;
  overflow-wrap: anywhere;
  border: 1px solid #272727;
  border-left: 3px solid #ef4444;
  border-radius: 7px;
  color: #6b7280;
  background: #111111;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.drawer-mode-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid #272727;
  border-radius: 8px;
  background: #111111;
}

.drawer-mode-switch button {
  min-width: 74px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: 180ms ease;
}

.drawer-mode-switch button:hover {
  color: #ffffff;
}

.drawer-mode-switch button.active {
  color: #ffffff;
  background: #ef4444;
  box-shadow: 0 5px 18px rgba(239, 68, 68, 0.2);
}

.drawer-mode-switch > span {
  margin-left: auto;
  padding-right: 8px;
  color: #4b5563;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.drawer-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 12px;
}

.drawer-editor-grid label,
.drawer-body-field,
.duration-select {
  display: grid;
  gap: 7px;
  color: #9ca3af;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.drawer-editor-grid input,
.drawer-editor-grid select,
.drawer-body-field textarea,
.duration-select select {
  width: 100%;
  border: 1px solid #333333;
  border-radius: 7px;
  outline: 0;
  color: #ffffff;
  background: #111111;
}

.drawer-editor-grid input,
.drawer-editor-grid select,
.duration-select select {
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

.drawer-editor-grid input:focus,
.drawer-editor-grid select:focus,
.drawer-body-field textarea:focus,
.duration-select select:focus {
  border-color: #ef4444;
}

.drawer-body-field {
  margin-top: 18px;
}

.drawer-edit-panel {
  animation: drawer-mode-in 180ms ease both;
}

.drawer-body-field textarea {
  min-height: 315px;
  padding: 14px;
  resize: vertical;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.85;
}

.markdown-preview {
  min-height: 330px;
  padding: 4px 4px 30px;
  color: #d1d5db;
  font-family: var(--body);
  animation: drawer-mode-in 180ms ease both;
}

.markdown-section-list {
  display: grid;
  gap: 16px;
}

.markdown-section-card {
  overflow: hidden;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.045), transparent 35%),
    #0e0e0e;
  transition: border-color 180ms ease, transform 180ms ease;
}

.markdown-section-card:hover {
  border-color: #444444;
}

.moments-section-card.title {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 38%),
    #0e0e0e;
}

.moments-section-card.image {
  background:
    linear-gradient(135deg, rgba(217, 119, 6, 0.07), transparent 38%),
    #0e0e0e;
}

.content-metrics-panel {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #343434;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(239, 68, 68, 0.12), transparent 34%),
    #0e0e0e;
}

.content-metrics-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid #292929;
}

.content-metrics-panel > header span {
  color: #ef4444;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.content-metrics-panel > header h2 {
  margin: 5px 0 3px;
  color: #ffffff;
  font-size: 20px;
}

.content-metrics-panel > header p {
  margin: 0;
  color: #8b929e;
  font-size: 11px;
}

.content-metrics-panel > header > i {
  padding: 5px 8px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 999px;
  color: #f87171;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.content-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: #292929;
}

.content-metrics-grid label {
  display: grid;
  position: relative;
  gap: 9px;
  padding: 18px 16px;
  background: #101010;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.content-metrics-grid label > span {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
}

.content-metrics-grid input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  appearance: none;
  caret-color: #ef4444;
}

.content-metrics-grid input::-webkit-inner-spin-button,
.content-metrics-grid input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.content-metrics-grid label:focus-within {
  background: #141111;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.42);
}

.content-metrics-grid label:focus-within > span {
  color: #d1d5db;
}

.content-metrics-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
}

.content-metrics-panel > footer > span {
  color: #777f8b;
  font-size: 10px;
}

.content-metrics-panel > footer > button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #ffffff;
  background: #ef4444;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.content-metrics-panel > footer > button:disabled {
  cursor: wait;
  opacity: 0.58;
}

@media (max-width: 760px) {
  .content-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-metrics-panel > footer {
    align-items: stretch;
    flex-direction: column;
  }
}

.markdown-section-card > header {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid #292929;
  background: rgba(255, 255, 255, 0.018);
}

.markdown-section-card > header h2 {
  flex: 1;
  margin: 0;
  padding-left: 12px;
  font-size: 20px;
}

.markdown-section-card > header h2::before {
  top: 0.12em;
  bottom: 0.12em;
}

.section-copy-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #d1d5db;
  background: #171717;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: 160ms ease;
}

.section-copy-button i {
  color: #6b7280;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-style: normal;
}

.section-copy-button:hover {
  transform: translateY(-1px);
  border-color: #ef4444;
  color: #ffffff;
}

.section-copy-button.copied {
  border-color: #ef4444;
  color: #ffffff;
  background: #ef4444;
}

.section-copy-button.copied i {
  color: #ffffff;
}

.markdown-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.digital-human-trigger {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(239, 68, 68, 0.72);
  border-radius: 6px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    #ef4444;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.17);
  transition: 160ms ease;
}

.digital-human-trigger:hover {
  transform: translateY(-1px);
  background: #dc2626;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.24);
}

.digital-human-trigger i {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-style: normal;
}

.markdown-section-body {
  padding: 22px 24px 24px;
}

.markdown-section-body > :first-child {
  margin-top: 0;
}

.markdown-section-body > :last-child {
  margin-bottom: 0;
}

.markdown-intro {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #2d2d2d;
  border-radius: 9px;
  background: #101010;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  scroll-margin-top: 20px;
  color: #ffffff;
  font-family: var(--body);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.markdown-preview h1 {
  margin: 10px 0 24px;
  font-size: 31px;
  line-height: 1.25;
}

.markdown-preview h2 {
  position: relative;
  margin: 32px 0 14px;
  padding-left: 13px;
  font-size: 22px;
  line-height: 1.4;
}

.markdown-preview h2::before {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: #ef4444;
  content: "";
}

.markdown-preview h3 {
  margin: 25px 0 11px;
  font-size: 18px;
}

.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  margin: 20px 0 9px;
  font-size: 15px;
}

.markdown-preview p {
  margin: 0 0 15px;
  color: #c5c9d0;
  font-size: 16px;
  line-height: 1.9;
}

.markdown-preview strong {
  color: #ffffff;
  font-weight: 800;
}

.markdown-preview em {
  color: #e5e7eb;
}

.markdown-preview del {
  color: #6b7280;
}

.markdown-preview a,
.markdown-preview .wiki-link {
  color: #f87171;
  text-decoration: none;
}

.markdown-preview a {
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
}

.markdown-preview .wiki-link {
  display: inline;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.09);
}

.markdown-preview ul,
.markdown-preview ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 20px;
  padding-left: 25px;
  color: #c5c9d0;
  font-size: 16px;
  line-height: 1.75;
}

.markdown-preview li::marker {
  color: #ef4444;
  font-weight: 900;
}

.markdown-preview .task-item {
  position: relative;
  list-style: none;
}

.markdown-preview .task-box {
  position: absolute;
  top: 0.47em;
  left: -24px;
  width: 13px;
  height: 13px;
  border: 1px solid #4b5563;
  border-radius: 3px;
}

.markdown-preview .task-box.checked {
  border-color: #ef4444;
  background: #ef4444;
}

.markdown-preview .task-box.checked::after {
  position: absolute;
  top: -3px;
  left: 2px;
  color: #ffffff;
  content: "✓";
  font-size: 11px;
}

.markdown-preview blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid #ef4444;
  border-radius: 0 7px 7px 0;
  color: #d1d5db;
  background: #111111;
  font-size: 16px;
  line-height: 1.8;
}

.markdown-preview code {
  padding: 2px 5px;
  border: 1px solid #333333;
  border-radius: 4px;
  color: #fca5a5;
  background: #111111;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.markdown-preview pre {
  position: relative;
  margin: 18px 0;
  overflow-x: auto;
  padding: 17px;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background: #050505;
}

.markdown-preview pre[data-language]::before {
  position: absolute;
  top: 7px;
  right: 10px;
  color: #4b5563;
  content: attr(data-language);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.markdown-preview pre code {
  padding: 0;
  border: 0;
  color: #e5e7eb;
  background: transparent;
  line-height: 1.7;
}

.markdown-preview hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: linear-gradient(90deg, #ef4444, #333333 28%, transparent);
}

.markdown-table-wrap {
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
}

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.markdown-preview th,
.markdown-preview td {
  min-width: 90px;
  padding: 10px 12px;
  border-right: 1px solid #272727;
  border-bottom: 1px solid #272727;
  text-align: left;
  vertical-align: top;
}

.markdown-preview th {
  color: #ffffff;
  background: #151515;
  font-weight: 800;
}

.markdown-preview td {
  color: #b8bdc6;
}

.markdown-preview tr:last-child td {
  border-bottom: 0;
}

.markdown-preview th:last-child,
.markdown-preview td:last-child {
  border-right: 0;
}

.preview-loading,
.preview-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: #6b7280 !important;
}

@keyframes drawer-mode-in {
  from {
    transform: translateY(4px);
    opacity: 0;
  }

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

.drawer-save-state {
  min-height: 18px;
  margin: 9px 0 0;
  color: #6b7280;
  font-size: 11px;
}

.drawer-actions {
  grid-template-columns: 1fr;
  padding-top: 14px;
  background: linear-gradient(180deg, transparent, #0a0a0a 22%);
}

.duration-select {
  margin: 12px 0 2px;
}

.duration-select select {
  color-scheme: dark;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.search-results button strong small {
  display: block;
  max-width: 410px;
  margin-top: 4px;
  overflow: hidden;
  color: #6b7280;
  font-size: 8px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast.error > span {
  background: #991b1b;
}

/* 必火 AI 数字人确认台 */
.digital-human-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 180;
  width: min(780px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 40px));
  visibility: hidden;
  overflow-y: auto;
  padding: 34px 36px 36px;
  transform: translate(-50%, -47%) scale(0.97);
  border: 1px solid #333333;
  border-radius: 15px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 0, rgba(239, 68, 68, 0.16), transparent 22rem),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.018) 39px 40px),
    #0a0a0a;
  opacity: 0;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.66);
  transition: 220ms ease;
}

.digital-human-modal.open {
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.digital-human-modal .section-kicker {
  color: #ef4444;
}

.digital-human-modal h2 {
  max-width: 620px;
  margin: 10px 0 7px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.3;
}

.digital-human-intro {
  margin: 0 0 20px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.7;
}

.digital-script-summary {
  display: grid;
  gap: 5px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #2f2f2f;
  border-left: 3px solid #ef4444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.digital-script-summary span,
.digital-script-summary small {
  color: #6b7280;
  font-size: 11px;
}

.digital-script-summary strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.digital-option-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 10px;
}

.digital-option-heading div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.digital-option-heading div span {
  color: #ef4444;
  font-family: var(--display);
  font-size: 10px;
}

.digital-option-heading strong {
  font-size: 14px;
}

.digital-option-heading > small {
  color: #6b7280;
  font-size: 10px;
}

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

.avatar-option,
.voice-option {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #d1d5db;
  background: #111111;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.avatar-option {
  min-height: 67px;
  padding: 10px 11px;
}

.avatar-option:hover,
.voice-option:hover {
  border-color: #555555;
}

.avatar-option.selected,
.voice-option.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.09);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.22);
}

.avatar-option .avatar-symbol {
  display: grid;
  width: 36px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(239, 68, 68, 0.28), transparent 55%),
    #1c1c1c;
  font-size: 13px;
  font-weight: 900;
}

.avatar-option div,
.voice-option div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.avatar-option strong,
.voice-option strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-option small,
.voice-option small {
  color: #6b7280;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.avatar-option em,
.voice-option em {
  position: absolute;
  top: 6px;
  right: 7px;
  color: #ef4444;
  font-size: 9px;
  font-style: normal;
}

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

.voice-option {
  min-height: 58px;
  padding: 11px 13px;
}

.voice-option .voice-wave {
  display: flex;
  width: 34px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.voice-wave i {
  width: 2px;
  border-radius: 9px;
  background: #ef4444;
}

.voice-wave i:nth-child(1),
.voice-wave i:nth-child(5) {
  height: 8px;
}

.voice-wave i:nth-child(2),
.voice-wave i:nth-child(4) {
  height: 17px;
}

.voice-wave i:nth-child(3) {
  height: 25px;
}

.voice-option[disabled] {
  cursor: not-allowed;
  opacity: 0.38;
}

.digital-pairing-note {
  margin: 9px 0 0;
  color: #fca5a5;
  font-size: 11px;
}

.digital-human-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 14px;
  padding: 12px 14px;
  border: 1px dashed rgba(239, 68, 68, 0.44);
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.055);
}

.digital-human-confirmation > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #ef4444;
  font-weight: 900;
}

.digital-human-confirmation p {
  margin: 0;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.6;
}

.digital-human-confirmation strong {
  color: #ffffff;
}

.digital-human-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: 150px 1fr;
}

.digital-human-actions button {
  min-height: 46px;
}

.digital-human-submit {
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #ef4444;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.digital-human-submit:hover {
  background: #dc2626;
}

.digital-human-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.digital-human-progress,
.digital-human-result {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.digital-progress-orbit {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid #333333;
  border-radius: 50%;
}

.digital-progress-orbit::before,
.digital-progress-orbit::after {
  position: absolute;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 50%;
  content: "";
}

.digital-progress-orbit::before {
  inset: 10px;
}

.digital-progress-orbit::after {
  inset: 22px;
}

.digital-progress-orbit > span {
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 18px #ef4444;
  animation: digital-orbit 1.8s linear infinite;
  transform-origin: 4px 50px;
}

.digital-progress-orbit b {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 16px;
}

.digital-human-progress > strong,
.digital-human-result > strong {
  font-size: 20px;
}

.digital-human-progress > p,
.digital-human-result > p {
  max-width: 470px;
  margin: 8px 0 18px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.7;
}

.digital-progress-line {
  width: min(390px, 80%);
  height: 2px;
  overflow: hidden;
  background: #242424;
}

.digital-progress-line i {
  display: block;
  width: 42%;
  height: 100%;
  background: #ef4444;
  animation: digital-progress 1.7s ease-in-out infinite;
}

.result-check {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #ef4444;
  font-size: 30px;
  font-weight: 900;
}

.digital-human-result a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  border-radius: 7px;
  color: #ffffff;
  background: #ef4444;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

@keyframes digital-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes digital-progress {
  0% {
    transform: translateX(-110%);
  }

  50% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(260%);
  }
}

@media (max-width: 1200px) {
  .input-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-system-map {
    min-height: auto;
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .assistant-context-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main-area {
    margin-left: 0;
  }

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

  .hero-system-map {
    min-height: auto;
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .content-format-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .avatar-option-grid,
  .voice-option-grid {
    grid-template-columns: 1fr;
  }

  .digital-human-modal {
    padding: 28px 20px 24px;
  }

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

  .markdown-section-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .markdown-section-actions {
    width: 100%;
  }

  .digital-human-trigger,
  .section-copy-button {
    justify-content: center;
  }

  .digital-human-trigger {
    flex: 1;
  }

  .input-guide-head,
  .command-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .input-example-grid,
  .direction-options {
    grid-template-columns: 1fr;
  }

  .chat-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-attachment-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-image-previews {
    grid-template-columns: 1fr;
  }

  .chat-composer-footer > #submitIdea {
    width: 100%;
  }

  .assistant-context-list {
    grid-template-columns: 1fr;
  }

  .hero-system-map {
    padding: 25px 20px;
  }

  .employee-roster-grid,
  .employee-skill-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-drawer {
    padding: 30px 20px 110px;
  }

  .drawer-editor-grid {
    grid-template-columns: 1fr;
  }

  .drawer-actions {
    right: 20px;
    left: 20px;
  }
}

/* 首页聊天区：一体式内容方向选择器 */
.codex-chat-box .direction-options {
  flex-wrap: nowrap;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8f8f8 0%, #f1f2f3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.codex-chat-box .quick-intents button {
  min-width: 0;
  min-height: 36px;
  gap: 5px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  color: #525866;
  background: transparent;
  box-shadow: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.codex-chat-box .quick-intents button > i {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 6px;
  color: #8b93a1;
  background: transparent;
}

.codex-chat-box .quick-intents button > i svg {
  width: 15px;
  height: 15px;
}

.codex-chat-box .quick-intents button strong {
  color: inherit;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.codex-chat-box .quick-intents button:hover {
  color: #17191d;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.07);
}

.codex-chat-box .quick-intents button.selected {
  border: 1px solid #ef4444;
  color: #d92d2d;
  background: transparent;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.codex-chat-box .quick-intents button.selected > i {
  color: #ef4444;
  background: transparent;
}

.codex-chat-box .quick-intents button.selected strong {
  color: #d92d2d;
}

.codex-chat-box .quick-intents button.selected:hover {
  color: #d92d2d;
  background: transparent;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* 图片入口仅保留图标，悬浮或键盘聚焦时显示说明 */
.chat-attach-button {
  position: relative;
  width: 36px;
  min-width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  border-radius: 9px;
}

.chat-attach-button::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  content: attr(data-tooltip);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  background: #141416;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.chat-attach-button:hover::after,
.chat-attach-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Digital human studio: task control on the left, cinematic output on the right. */
.digital-human-heading {
  align-items: flex-end;
}

.digital-refresh-button,
.digital-detail-refresh {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  color: #111827;
  background: #ffffff;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 900;
}

.digital-refresh-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 0 18px;
}

.digital-refresh-button span {
  color: #ef4444;
  font-family: var(--display);
  font-size: 18px;
}

.digital-refresh-button.is-refreshing span {
  animation: digital-orbit 0.8s linear infinite;
}

.digital-status-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.digital-overview-card {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.025), transparent 58%),
    #ffffff;
}

.digital-overview-card::after {
  position: absolute;
  width: 86px;
  height: 86px;
  right: -34px;
  bottom: -45px;
  border: 1px solid #ef4444;
  border-radius: 50%;
  content: "";
  opacity: 0.16;
}

.digital-overview-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid #fecaca;
  border-radius: 50%;
  color: #ef4444;
  background: #fef2f2;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
}

.digital-overview-card.is-processing .digital-overview-icon i {
  width: 11px;
  height: 11px;
  border: 2px solid #ef4444;
  border-top-color: transparent;
  border-radius: 50%;
  animation: digital-orbit 0.8s linear infinite;
}

.digital-overview-card div {
  display: grid;
  gap: 2px;
}

.digital-overview-card small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.digital-overview-card strong {
  color: #111827;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.digital-overview-card em {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #9ca3af;
  font-family: var(--display);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.9px;
}

.digital-overview-card.is-completed .digital-overview-icon {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.digital-overview-card.is-failed .digital-overview-icon {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.digital-human-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.digital-job-sidebar,
.digital-job-detail {
  min-height: 650px;
  overflow: hidden;
  border-radius: 8px;
}

.digital-job-sidebar {
  padding: 0;
}

.digital-job-sidebar-head {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.digital-job-sidebar-head h2 {
  margin: 3px 0 0;
  color: #111827;
  font-size: 19px;
}

.digital-job-sidebar-head > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  color: #ffffff;
  background: #111111;
  font-family: var(--display);
  font-size: 11px;
}

.digital-job-list {
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 8px;
}

.digital-job-item {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  gap: 11px;
  width: 100%;
  align-items: center;
  padding: 15px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  background: transparent;
  transition: 160ms ease;
}

.digital-job-item:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.digital-job-item.selected {
  border-color: #fecaca;
  background: #fff7f7;
  box-shadow: inset 3px 0 0 #ef4444;
}

.digital-job-status {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid #d1d5db;
  border-radius: 50%;
}

.digital-job-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ca3af;
}

.digital-job-status.processing {
  border-color: #fca5a5;
}

.digital-job-status.processing i {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
  animation: pulse 1.2s ease-in-out infinite;
}

.digital-job-status.completed {
  border-color: #6ee7b7;
}

.digital-job-status.completed i {
  background: #059669;
}

.digital-job-status.failed {
  border-color: #fca5a5;
}

.digital-job-status.failed i {
  background: #b91c1c;
}

.digital-job-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.digital-job-copy strong {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.digital-job-copy small {
  overflow: hidden;
  color: #9ca3af;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.digital-job-state {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.digital-job-state b {
  color: #6b7280;
  font-size: 9px;
}

.digital-job-state em {
  color: #9ca3af;
  font-family: var(--display);
  font-size: 9px;
  font-style: normal;
}

.digital-job-empty,
.digital-detail-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  color: #9ca3af;
  text-align: center;
}

.digital-job-empty {
  min-height: 290px;
  padding: 32px 20px;
}

.digital-job-empty span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px dashed #d1d5db;
  border-radius: 50%;
  color: #ef4444;
  font-family: var(--display);
}

.digital-job-empty strong {
  color: #374151;
  font-size: 12px;
}

.digital-job-empty p {
  max-width: 210px;
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.7;
}

.digital-job-detail {
  padding: 0;
}

.digital-detail-empty {
  min-height: 650px;
}

.digital-detail-empty span {
  margin-bottom: 14px;
  color: #ef4444;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 4px;
}

.digital-detail-empty h2 {
  margin: 0;
  color: #111827;
  font-size: 23px;
}

.digital-detail-empty p {
  margin: 9px 0 0;
  font-size: 12px;
}

.digital-detail-head {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.digital-detail-head h2 {
  max-width: 640px;
  margin: 8px 0 3px;
  color: #111827;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.2;
}

.digital-detail-head p {
  margin: 0;
  color: #9ca3af;
  font-family: var(--display);
  font-size: 9px;
}

.digital-status-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  background: #f9fafb;
  font-size: 9px;
  font-weight: 900;
}

.digital-status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.digital-status-pill.processing {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff7f7;
}

.digital-status-pill.processing i {
  animation: pulse 1.2s ease-in-out infinite;
}

.digital-status-pill.completed {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.digital-status-pill.failed {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.digital-detail-refresh {
  flex: 0 0 auto;
  padding: 0 15px;
}

.digital-detail-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(280px, 1fr);
  min-height: 539px;
}

.digital-player-column {
  padding: 21px;
  border-right: 1px solid #e5e7eb;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    #0a0a0a;
  background-size: 24px 24px;
}

.digital-column-label {
  display: block;
  margin-bottom: 13px;
  color: #737373;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.digital-video-shell {
  position: relative;
  display: grid;
  width: min(100%, 300px);
  height: 470px;
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid #292929;
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.digital-video-shell::before {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 11px;
  padding: 5px 7px;
  border-radius: 3px;
  color: #fca5a5;
  background: rgba(0, 0, 0, 0.66);
  font-family: var(--display);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
  content: "9:16 OUTPUT";
  pointer-events: none;
}

.digital-video-shell video,
.digital-video-shell > img,
.digital-cover-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.digital-video-shell > img {
  opacity: 0.34;
  filter: grayscale(0.25);
}

.digital-play-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7));
  transition: opacity 180ms ease;
}

.digital-play-overlay > span {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  place-items: center;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.15);
  font-size: 17px;
}

.digital-play-overlay strong {
  font-size: 13px;
}

.digital-play-overlay small {
  margin-top: 4px;
  color: #d1d5db;
  font-family: var(--display);
  font-size: 9px;
}

.digital-play-overlay.is-playing {
  opacity: 0;
  pointer-events: none;
}

.digital-cover-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  color: #525252;
}

.digital-cover-placeholder span {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 900;
}

.digital-cover-placeholder small {
  font-size: 9px;
}

.digital-scan-line {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 1px;
  background: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
  animation: digital-scan 2.8s ease-in-out infinite;
}

.digital-pending-copy {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.54);
}

.digital-pending-copy > strong {
  margin-top: 17px;
  font-size: 16px;
}

.digital-pending-copy > small {
  max-width: 210px;
  margin-top: 6px;
  color: #a3a3a3;
  font-size: 9px;
  line-height: 1.6;
}

.digital-pulse-ring {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.digital-pulse-ring i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
}

.digital-telemetry {
  padding: 26px 24px;
}

.digital-telemetry-title h3 {
  margin: 5px 0 20px;
  color: #111827;
  font-size: 20px;
}

.digital-param-list {
  display: grid;
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.digital-param-list > div {
  display: grid;
  grid-template-columns: minmax(88px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: center;
  min-height: 61px;
  border-bottom: 1px solid #e5e7eb;
}

.digital-param-list dt {
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
}

.digital-param-list dd {
  display: grid;
  justify-items: end;
  margin: 0;
  text-align: right;
}

.digital-param-list dd strong {
  color: #111827;
  font-size: 11px;
}

.digital-param-list dd small {
  margin-top: 2px;
  color: #9ca3af;
  font-family: var(--display);
  font-size: 8px;
}

.digital-cover-card {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.digital-cover-thumb {
  width: 54px;
  height: 72px;
  flex: 0 0 54px;
  overflow: hidden;
  border-radius: 4px;
  background: #111111;
}

.digital-cover-thumb img,
.digital-cover-thumb .digital-cover-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.digital-cover-thumb .digital-cover-placeholder span {
  font-size: 14px;
}

.digital-cover-thumb .digital-cover-placeholder small {
  display: none;
}

.digital-cover-card > div:last-child {
  display: grid;
  gap: 2px;
}

.digital-cover-card small {
  color: #ef4444;
  font-family: var(--display);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
}

.digital-cover-card strong {
  color: #111827;
  font-size: 11px;
}

.digital-cover-card span {
  color: #9ca3af;
  font-size: 9px;
}

.digital-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.digital-result-actions a,
.digital-result-actions button {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #111111;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.digital-result-actions a {
  color: #ffffff;
  background: #111111;
}

.digital-result-actions button {
  color: #111111;
  background: #ffffff;
}

.digital-live-note,
.digital-error-card {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  padding: 11px 12px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fff7f7;
}

.digital-live-note > i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.2s ease-in-out infinite;
}

.digital-live-note p,
.digital-error-card p {
  display: grid;
  margin: 0;
}

.digital-live-note strong,
.digital-error-card strong {
  color: #111827;
  font-size: 9px;
}

.digital-live-note small,
.digital-error-card p {
  color: #6b7280;
  font-size: 8px;
}

.digital-error-card {
  display: grid;
  align-items: start;
}

.digital-error-card button {
  display: inline-flex;
  width: max-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 13px;
  border: 1px solid #ef4444;
  border-radius: 5px;
  color: #dc2626;
  background: #ffffff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  transition: 160ms ease;
}

.digital-error-card button:hover {
  color: #ffffff;
  background: #ef4444;
}

.digital-error-card button:disabled {
  cursor: wait;
  opacity: 0.55;
}

@keyframes digital-scan {
  0%,
  100% {
    top: 12%;
    opacity: 0.3;
  }

  50% {
    top: 88%;
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .digital-detail-grid {
    grid-template-columns: minmax(230px, 0.68fr) minmax(250px, 1fr);
  }

  .digital-video-shell {
    height: 430px;
  }
}

@media (max-width: 1280px) {
  .digital-human-workbench {
    grid-template-columns: 1fr;
  }

  .digital-job-sidebar,
  .digital-job-detail {
    min-height: auto;
  }

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

  .digital-detail-grid {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .digital-status-overview,
  .digital-detail-grid {
    grid-template-columns: 1fr;
  }

  .digital-job-list {
    grid-template-columns: 1fr;
  }

  .digital-player-column {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .digital-video-shell {
    height: 460px;
  }

  .digital-human-heading,
  .digital-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Compose modal: the source material is primary, direction controls stay quiet. */
.compose-modal {
  width: min(840px, calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px 28px 24px;
  border-radius: 12px;
}

.compose-modal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-right: 36px;
}

.compose-modal-head h2,
.compose-modal h2 {
  margin: 5px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.compose-modal-head > p {
  max-width: 290px;
  margin: 0 0 3px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.compose-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  color: #d1d5db;
}

.compose-input-head label {
  font-size: 12px;
  font-weight: 900;
}

.compose-input-head span {
  color: #6b7280;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
}

.compose-modal textarea {
  min-height: 260px;
  max-height: 480px;
  margin: 9px 0 16px;
  padding: 17px 18px;
  resize: vertical;
  border-radius: 7px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  scrollbar-color: #525252 transparent;
}

.compose-modal textarea::placeholder {
  color: #525252;
}

.compose-direction {
  padding: 14px 0 0;
  border-top: 1px solid #272727;
}

.compose-direction-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.compose-direction-head strong {
  color: #ffffff;
  font-size: 12px;
}

.compose-direction-head small {
  color: #6b7280;
  font-size: 9px;
}

.compose-modal .modal-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.compose-modal .modal-options button {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  min-height: 56px;
  padding: 9px 11px 9px 38px;
  overflow: hidden;
  border-radius: 6px;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.compose-modal .modal-options button:hover {
  transform: translateY(-1px);
  border-color: #525252;
}

.compose-modal .modal-options button b {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 3px;
  color: #6b7280;
  background: #202020;
  font-family: var(--display);
  font-size: 7px;
}

.compose-modal .modal-options button b svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.compose-modal .modal-options button span {
  color: #d1d5db;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.compose-modal .modal-options button small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 8px;
  line-height: 1.3;
}

.compose-modal .modal-options button.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  box-shadow: inset 2px 0 0 #ef4444;
}

.compose-modal .modal-options button.selected b {
  color: #ffffff;
  background: #ef4444;
}

.compose-modal .modal-options button.selected span {
  color: #ffffff;
}

.compose-modal-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #272727;
}

.compose-modal-footer .duration-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.compose-modal-footer .duration-select[hidden] {
  display: none;
}

.compose-modal-footer .duration-select > span {
  color: #6b7280;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.compose-modal-footer .duration-select select {
  width: 112px;
  height: 42px;
  padding: 0 30px 0 11px;
  border-radius: 6px;
  font-size: 12px;
}

.compose-modal .modal-submit {
  width: 158px;
  height: 42px;
  margin: 0;
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .compose-modal {
    width: calc(100vw - 20px);
    padding: 22px 18px 18px;
  }

  .compose-modal-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .compose-modal-head > p {
    text-align: left;
  }

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

  .compose-direction-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

/* Readability pass: larger type, clearer hierarchy and safe long-title wrapping. */
body {
  font-size: 14px;
  line-height: 1.55;
}

.brand strong {
  font-size: 14px;
}

.brand strong b {
  font-size: 17px;
}

.brand small {
  font-size: 10px;
}

.nav-item {
  min-height: 44px;
}

.nav-item > span:nth-child(2) {
  font-size: 13px;
}

.nav-item i {
  min-width: 22px;
  height: 21px;
  font-size: 10px;
}

.sync-head,
.owner-card strong {
  font-size: 12px;
}

.sync-card p,
.sync-card small,
.owner-card small,
.owner-card em {
  font-size: 10px;
  line-height: 1.5;
}

.date-block span,
.date-block strong {
  font-size: 12px;
}

.primary-top-button,
.secondary-button,
.text-button,
.icon-button {
  font-size: 11px;
}

.section-kicker,
.eyebrow {
  font-size: 10px;
  line-height: 1.4;
}

.panel-head h2 {
  font-size: 19px;
  line-height: 1.25;
}

.hero-copy > p {
  font-size: 14px;
  line-height: 1.75;
}

.codex-chat-head strong,
.input-guide-head strong,
.command-label strong {
  font-size: 13px;
}

.codex-chat-head small,
.input-guide-head > span,
.command-label > span,
.chat-upload-hint,
.creation-direction > small {
  font-size: 10px;
}

.codex-chat-box textarea,
.command-box textarea {
  font-size: 14px;
  line-height: 1.7;
}

.quick-intents button strong,
.input-example-grid button strong {
  font-size: 12px;
}

.quick-intents button small,
.input-example-grid button small {
  font-size: 10px;
  line-height: 1.45;
}

.quick-intents button > i,
.input-example-grid button > i {
  font-size: 9px;
}

.system-map-head,
.system-map-head b,
.system-map-title small,
.system-map-flow small,
.system-map-foot,
.auto-routing-card > span,
.output-summary > span {
  font-size: 9px;
}

.system-map-title strong,
.system-map-flow strong,
.auto-routing-card > strong,
.output-summary > strong {
  font-size: 14px;
  line-height: 1.45;
}

.system-map-flow p,
.auto-routing-card > p,
.output-summary > small {
  font-size: 11px;
  line-height: 1.65;
}

.auto-routing-card > div i {
  padding: 4px 7px;
  font-size: 9px;
}

.metric-strip article {
  min-height: 86px;
}

.metric-strip article > div:nth-child(2) span {
  font-size: 12px;
}

.metric-strip article > div:nth-child(2) strong {
  font-size: 28px;
}

.metric-strip article > small {
  font-size: 10px;
}

.metric-icon {
  width: 39px;
  height: 39px;
  font-size: 12px;
}

.focus-item {
  min-height: 64px;
  align-items: flex-start;
  padding: 12px 13px;
}

.priority {
  width: 32px;
  height: 32px;
  margin-top: 1px;
  font-size: 10px;
}

.focus-main {
  min-width: 0;
  padding-top: 1px;
}

.focus-main strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.focus-main small {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
}

.focus-action {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 6px 10px;
  font-size: 11px;
}

.probation-badge,
.employee-identity strong,
.employee-identity p,
.score-line span,
.promotion-label,
.promotion small,
.legend,
.pipeline-node span,
.pipeline-node strong,
.pipeline-node b {
  font-size: 11px;
  line-height: 1.5;
}

.employee-identity strong {
  font-size: 12px;
}

.employee-identity p {
  margin-top: 5px;
}

.score-line strong {
  font-size: 20px;
}

.pipeline-node strong,
.pipeline-node b {
  font-size: 12px;
}

.page-heading p,
#content .page-heading p {
  font-size: 14px;
}

#content .search-field input,
#content .filter-chips button {
  font-size: 12px;
}

.kanban-column > header span {
  font-size: 14px;
}

.content-format-badge,
#content .card-tag {
  font-size: 10px;
}

.content-card h3 {
  font-size: 17px;
}

#content .content-card p {
  font-size: 13px;
}

#content .card-meta,
#content .content-card footer,
#content .data-missing,
.obsidian-card-path small {
  font-size: 11px;
}

.drawer-file-path,
.drawer-mode-switch button,
.drawer-editor-grid label,
.drawer-body-field,
.drawer-save-state {
  font-size: 12px;
}

.drawer-editor-grid input,
.drawer-editor-grid select,
.drawer-body-field textarea {
  font-size: 15px;
  line-height: 1.7;
}

.markdown-section-card p,
.markdown-section-card li,
.markdown-section-body,
.markdown-section-body p {
  font-size: 15px;
  line-height: 1.8;
}

.compose-modal-head > p,
.compose-input-head span,
.compose-direction-head small,
.compose-modal .modal-options button small,
.compose-modal-footer .duration-select > span {
  font-size: 10px;
}

.compose-input-head label,
.compose-direction-head strong,
.compose-modal .modal-options button span,
.compose-modal-footer .duration-select select,
.compose-modal .modal-submit {
  font-size: 12px;
}

.compose-modal .modal-options button b {
  font-size: 8px;
}

@media (max-width: 1180px) {
  .metric-strip article > small {
    display: block;
    grid-column: 2;
    white-space: normal;
  }

  .focus-main strong {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .panel-head h2 {
    font-size: 19px;
  }

  .focus-item {
    gap: 10px;
  }

  .focus-main strong {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .focus-action {
    display: none;
  }
}

/* Chat composer readability: this is the primary working surface. */
.chat-box-head {
  gap: 13px;
  padding: 16px 18px;
}

.chat-box-head strong {
  font-size: 14px;
  line-height: 1.35;
}

.chat-box-head small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}

.chat-box-head > b {
  font-size: 10px;
  letter-spacing: 1px;
}

.codex-chat-box textarea {
  min-height: 180px;
  padding: 22px 21px;
  font-size: 17px;
  line-height: 1.85;
}

.codex-chat-box textarea::placeholder {
  color: #7b8492;
  opacity: 1;
  font-size: 15px;
  line-height: 1.8;
}

.content-job-monitor {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 0;
  margin-top: 13px;
  padding: 13px 14px 12px;
  border: 1px solid #e6e8ec;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

.content-job-monitor[hidden] {
  display: none;
}

.content-job-pulse {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #aeb4bd;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.08);
}

.content-job-monitor.is-active .content-job-pulse::after {
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: inherit;
  content: "";
  animation: content-job-pulse 1.65s ease-out infinite;
}

@keyframes content-job-pulse {
  from { transform: scale(0.55); opacity: 0.9; }
  to { transform: scale(1.65); opacity: 0; }
}

.content-job-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ca3af;
  font-family: var(--display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.content-job-copy {
  display: block;
  min-width: 0;
  margin-top: 8px;
}

.content-job-copy strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.content-job-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-job-monitor time {
  color: #9ca3af;
  font-family: var(--display);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.content-job-stages {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-job-stages i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #dfe2e7;
  transition: 180ms ease;
}

.content-job-stages i.done,
.content-job-stages i.active {
  background: #ef4444;
}

.content-job-stages i.active {
  animation: content-stage-blink 1.2s ease-in-out infinite;
}

@keyframes content-stage-blink {
  50% { opacity: 0.4; }
}

.content-job-monitor.is-completed {
  border-color: #dfe6e2;
  background: rgba(249, 251, 250, 0.8);
}

.content-job-monitor.is-completed .content-job-pulse {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.08);
}

.content-job-monitor.is-failed {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.72);
}

.content-job-monitor.is-active {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(255, 250, 250, 0.78);
}

.content-job-monitor.is-active .content-job-pulse {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.chat-attachment-bar {
  min-height: 50px;
  gap: 13px;
  padding: 9px 14px;
}

.chat-attach-button {
  height: 36px;
  gap: 8px;
  padding: 0 12px;
  font-size: 11px;
}

.chat-attach-button svg {
  width: 17px;
}

.chat-attachment-bar > small {
  font-size: 11px;
  line-height: 1.55;
}

.chat-composer-footer {
  gap: 10px;
  padding: 12px 14px;
}

.codex-chat-box .direction-options {
  gap: 5px;
}

.codex-chat-box .quick-intents button {
  min-height: 42px;
  gap: 6px;
  padding: 6px 8px;
}

.codex-chat-box .quick-intents button > i {
  width: 26px;
  height: 26px;
  font-size: 9px;
}

.codex-chat-box .quick-intents button strong {
  font-size: 12px;
  line-height: 1.35;
}

.codex-chat-box .quick-intents button > i svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chat-composer-footer > #submitIdea {
  min-width: 92px;
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

.chat-composer-footer > #submitIdea svg {
  width: 19px;
}

.prompt-suggestions {
  gap: 9px;
  margin-top: 15px;
}

.prompt-suggestions > span {
  font-size: 10px;
}

.prompt-suggestions button {
  padding: 7px 11px;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .codex-chat-box textarea {
    min-height: 195px;
    padding: 20px 17px;
    font-size: 16px;
  }

  .chat-box-head strong {
    font-size: 15px;
  }

.chat-box-head small,
  .chat-attachment-bar > small {
    font-size: 11px;
  }
}

/* 首页聊天组件最终尺寸，以本段作为视觉优先级 */
.codex-chat-box .direction-options {
  gap: 2px;
}

.codex-chat-box .quick-intents button {
  min-height: 36px;
  gap: 5px;
  padding: 5px 7px;
}

.codex-chat-box .quick-intents button > i {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}

.codex-chat-box .quick-intents button > i svg {
  width: 15px;
  height: 15px;
}

.codex-chat-box .quick-intents button strong {
  font-size: 11.5px;
}

.chat-attach-button {
  padding: 0;
}

/* 首页方向选择器：始终保持五个独立按钮，防止窄宽度文字叠加 */
.chat-composer-footer {
  container-name: chat-footer;
  container-type: inline-size;
}

.codex-chat-box .direction-options {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.codex-chat-box .quick-intents button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  padding-right: 5px;
  padding-left: 5px;
}

.codex-chat-box .quick-intents button span {
  min-width: 0;
}

.codex-chat-box .quick-intents button strong {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.chat-composer-footer > #submitIdea {
  flex: 0 0 auto;
}

@container chat-footer (max-width: 650px) {
  .codex-chat-box .quick-intents button > i {
    display: grid;
  }

  .codex-chat-box .quick-intents button span {
    display: none;
  }

  .codex-chat-box .quick-intents button {
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (max-width: 640px) {
  .codex-chat-box .direction-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .codex-chat-box .quick-intents button > i {
    display: grid;
  }
}

/* 首页聊天输入保持精致、克制的字号层级 */
.codex-chat-box textarea {
  font-size: 15px;
  line-height: 1.78;
}

.codex-chat-box textarea::placeholder {
  font-size: 14px;
  line-height: 1.8;
}

/* 按选题聚合的创作任务中心 */
.focus-panel .focus-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-workflow-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  background: #fafafa;
  transition: 180ms ease;
}

.topic-workflow-card:hover {
  border-color: #d5d9df;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.topic-workflow-card.has-active-task {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(145deg, rgba(254, 242, 242, 0.7), #fff 68%);
}

.topic-workflow-card > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.topic-workflow-card .priority {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  margin: 0;
  place-items: center;
  font-size: 9px;
}

.topic-workflow-title {
  min-width: 0;
}

.topic-workflow-title strong,
.topic-workflow-title small {
  display: block;
}

.topic-workflow-title strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-workflow-title small {
  margin-top: 4px;
  color: #8b93a1;
  font-size: 9px;
  line-height: 1.4;
}

.topic-output-grid {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-output {
  display: grid;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  color: #4b5563;
  background: #fff;
  cursor: pointer;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  text-align: left;
  transition: 160ms ease;
}

.topic-output:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.42);
}

.topic-output > i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  color: #6b7280;
  background: #f3f4f6;
}

.topic-output > i svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topic-output > span {
  min-width: 0;
}

.topic-output strong,
.topic-output small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-output strong {
  color: #252a33;
  font-size: 10px;
  font-weight: 800;
}

.topic-output small {
  margin-top: 3px;
  color: #9299a5;
  font-size: 8px;
}

.topic-output em {
  color: #9ca3af;
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.topic-output.running {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(254, 242, 242, 0.58);
}

.topic-output.running > i {
  color: #dc2626;
  background: #fee2e2;
  animation: content-stage-blink 1.25s ease-in-out infinite;
}

.topic-stage-track {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-top: 1px;
  grid-column: 2 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-stage-track > i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #dfe2e7;
}

.topic-stage-track > i.done,
.topic-stage-track > i.active {
  background: #ef4444;
}

.topic-stage-track > i.active {
  animation: content-stage-blink 1.2s ease-in-out infinite;
}

.topic-output.completed {
  border-color: rgba(22, 163, 74, 0.22);
}

.topic-output.completed > i {
  color: #15803d;
  background: #ecfdf3;
}

.topic-output.failed {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff7f7;
}

.topic-output.failed > i,
.topic-output.failed em {
  color: #dc2626;
}

.topic-output:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 760px) {
  .focus-panel .focus-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topic-output-grid {
    grid-template-columns: 1fr;
  }
}

/* 内容生产页：轻量、等高的卡片目录 */
#content .kanban-board {
  gap: 14px;
  grid-template-columns: repeat(4, minmax(245px, 1fr));
}

#content .kanban-column,
#content .kanban-column.featured-column {
  min-height: 380px;
  padding: 10px;
  border-color: #e6e8eb;
  border-radius: 10px;
  background: #f6f7f8;
}

#content .content-card {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  margin-bottom: 9px;
  padding: 14px;
  border-color: #e4e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

#content .content-card:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.055);
}

#content .content-card h3 {
  display: -webkit-box;
  margin: 11px 0 7px;
  overflow: hidden;
  color: #17191d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#content .idea-card h3 {
  -webkit-line-clamp: 3;
}

#content .content-card p {
  display: -webkit-box;
  min-height: 36px;
  margin: 0 0 9px;
  overflow: hidden;
  color: #7b8492;
  font-size: 11.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#content .idea-card p {
  min-height: 18px;
  -webkit-line-clamp: 1;
}

#content .card-meta {
  display: flex;
  gap: 9px;
  margin: 0 0 10px;
  color: #9aa1ac;
  font-size: 10px;
}

#content .content-card footer {
  margin-top: auto;
  padding-top: 9px;
  font-size: 10px;
}

/* 内容生产页：真正可用的列表视图 */
#content .kanban-board.list-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow: visible;
}

#content .kanban-board.list-view .kanban-column,
#content .kanban-board.list-view .kanban-column.featured-column {
  min-height: 0;
  padding: 10px;
}

#content .kanban-board.list-view .kanban-column > header {
  margin-bottom: 4px;
  padding: 4px 6px 10px;
}

#content .kanban-board.list-view .content-card {
  display: grid;
  min-height: 0;
  grid-template-columns: 210px minmax(230px, 1.45fr) minmax(260px, 1.35fr) 105px 90px;
  grid-template-areas: "class title summary meta footer";
  gap: 16px;
  align-items: center;
  margin: 0 0 7px;
  padding: 12px 14px;
}

#content .kanban-board.list-view .card-classification {
  grid-area: class;
  justify-content: flex-start;
}

#content .kanban-board.list-view .card-classification-tags {
  margin-left: 0;
}

#content .kanban-board.list-view .content-card h3 {
  display: block;
  grid-area: title;
  margin: 0;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#content .kanban-board.list-view .card-summary {
  display: flex;
  min-width: 0;
  grid-area: summary;
  gap: 10px;
  align-items: center;
}

#content .kanban-board.list-view .content-card p,
#content .kanban-board.list-view .idea-card p {
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#content .kanban-board.list-view .digital-content-link {
  width: auto;
  min-width: 108px;
  margin: 0;
  padding: 6px 8px;
}

#content .kanban-board.list-view .digital-content-link em {
  display: none;
}

#content .kanban-board.list-view .card-meta {
  grid-area: meta;
  margin: 0;
  white-space: nowrap;
}

#content .kanban-board.list-view .content-card footer {
  grid-area: footer;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

#content .kanban-board.list-view .content-card footer > span {
  display: none;
}

#content .kanban-board.list-view .data-missing {
  grid-area: meta;
  margin-top: 30px;
}

@media (max-width: 1180px) {
  #content .kanban-board.list-view .content-card {
    grid-template-columns: 180px minmax(180px, 1.15fr) minmax(170px, 1fr) 104px;
    grid-template-areas: "class title summary footer";
    gap: 10px;
  }

  #content .kanban-board.list-view .card-meta {
    display: none;
  }
}

@media (max-width: 760px) {
  #content .kanban-board.list-view .content-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "class footer"
      "title title"
      "summary summary";
    gap: 8px 12px;
  }

  #content .kanban-board.list-view .content-card h3 {
    white-space: normal;
  }
}

#content .obsidian-card-path,
#content .card-cover {
  display: none !important;
}

@media (max-width: 640px) {
  #content .kanban-board {
    grid-template-columns: repeat(4, minmax(250px, 82vw));
  }
}

/* 筛选结果必须同时覆盖卡片视图与列表视图的 display 布局。 */
#content .kanban-board .content-card.hidden {
  display: none !important;
}

/* 云端系统设置：延续官网的黑白红工程感，保持低噪声和高可读性。 */
.nav-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

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

.settings-heading-actions {
  display: flex;
  gap: 10px;
}

.settings-heading-actions .secondary-button,
.settings-heading-actions .primary-top-button {
  min-height: 42px;
}

.integration-overview {
  margin-bottom: 20px;
  padding: 24px;
}

.integration-overview .panel-head {
  margin-bottom: 18px;
}

.integration-overview .panel-head > small {
  color: #9ca3af;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.integration-status-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.integration-status-item {
  position: relative;
  min-height: 112px;
  padding: 18px 16px;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}

.integration-status-item:last-child {
  border-right: 0;
}

.integration-status-item::before {
  position: absolute;
  top: 19px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  content: "";
}

.integration-status-item.is-online::before {
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.09);
}

.integration-status-item.is-offline::before {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.08);
}

.integration-status-item small {
  display: block;
  margin-bottom: 11px;
  color: #9ca3af;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.integration-status-item strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.integration-status-item p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #7b8492;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.settings-card {
  padding: 24px;
}

.settings-card-head {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 17px;
  border-bottom: 1px solid #eceff2;
}

.settings-card-head > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 8px;
  color: #ef4444;
  background: #fff7f7;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 900;
}

.settings-card-head strong,
.settings-card-head small {
  display: block;
}

.settings-card-head strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.settings-card-head small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 10.5px;
}

.settings-card > label,
.settings-two-column > label {
  display: block;
  margin-bottom: 14px;
}

.settings-card label > span:not(.settings-toggle > span) {
  display: block;
  margin-bottom: 7px;
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 800;
}

.settings-card input,
.settings-card select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #dce0e5;
  border-radius: 7px;
  outline: 0;
  color: #111827;
  background: #fbfbfc;
  font-size: 12px;
  transition: 160ms ease;
}

.settings-card input:focus,
.settings-card select:focus {
  border-color: rgba(239, 68, 68, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.07);
}

.settings-card input[readonly] {
  color: #9ca3af;
  cursor: not-allowed;
}

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

.settings-toggle {
  display: flex !important;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.settings-toggle span strong,
.settings-toggle span small {
  display: block;
}

.settings-toggle span strong {
  color: #111827;
  font-size: 12px;
}

.settings-toggle span small {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 10px;
}

.settings-toggle input {
  width: 38px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #ef4444;
}

.settings-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 5px;
}

.settings-inline-actions button,
.settings-inline-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 6px;
  color: #dc2626;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.settings-inline-actions button:hover,
.settings-inline-actions a:hover {
  border-color: #ef4444;
  background: #fff7f7;
}

.security-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.security-summary div {
  padding: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fafafa;
}

.security-summary small,
.security-summary strong {
  display: block;
}

.security-summary small {
  color: #9ca3af;
  font-size: 9px;
}

.security-summary strong {
  margin-top: 5px;
  color: #111827;
  font-size: 12px;
}

.password-change-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.86);
}

.password-change-form button {
  min-height: 42px;
  border: 1px solid #ef4444;
  border-radius: 6px;
  background: transparent;
  color: #dc2626;
  padding: 0 18px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .password-change-form { grid-template-columns: 1fr; }
}

.audit-list {
  max-height: 180px;
  margin-top: 15px;
  overflow: auto;
  border-top: 1px solid #eceff2;
}

.audit-list article,
.audit-list > p {
  margin: 0;
  padding: 10px 2px;
  border-bottom: 1px solid #f0f1f3;
  color: #7b8492;
  font-size: 10px;
}

.audit-list article strong {
  margin-right: 7px;
  color: #374151;
}

/* 登录页只承担安全入口，不暴露任何后台内容或密钥。 */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  place-items: center;
  overflow: hidden;
  background: #f7f7f7;
}

.login-gate.open {
  display: grid;
}

.login-gate-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.08), transparent 24rem),
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.login-card {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 38px;
  border: 1px solid #dfe2e6;
  border-top: 3px solid #ef4444;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.12);
  animation: login-card-enter 360ms ease both;
}

@keyframes login-card-enter {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.login-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 24px 0 22px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #0a0a0a;
  box-shadow: inset 0 -2px 0 #ef4444;
  font-size: 22px;
  font-weight: 900;
}

.login-card h1 {
  margin: 0;
  color: #111827;
  font-size: 29px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.login-card > p {
  margin: 9px 0 27px;
  color: #7b8492;
  font-size: 12px;
}

.login-card form > label {
  display: block;
  margin: 16px 0 8px;
  color: #4b5563;
  font-size: 10px;
  font-weight: 800;
}

.login-card form > label:first-child {
  margin-top: 0;
}

.login-email-field {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  outline: 0;
  color: #111827;
  background: #fff;
  font-size: 14px;
}

.login-email-field:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.07);
}

.login-password-field {
  display: flex;
  height: 50px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  background: #fff;
}

.login-password-field:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.07);
}

.login-password-field input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.login-password-field button {
  display: grid;
  width: 50px;
  place-items: center;
  border: 0;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
}

.password-eye-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-eye-button:hover {
  color: #ef4444;
}

#loginError {
  display: block;
  min-height: 31px;
  padding-top: 8px;
  color: #dc2626;
  font-size: 10px;
}

#loginSubmit {
  display: flex;
  width: 100%;
  height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #fff;
  background: #ef4444;
  font-weight: 900;
  cursor: pointer;
}

#loginSubmit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.login-card footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: #b0b6bf;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.login-card footer i {
  height: 1px;
  flex: 1;
  background: #e5e7eb;
}

body.is-auth-locked {
  overflow: hidden;
}

@media (max-width: 1280px) {
  .integration-status-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .integration-status-item:nth-child(4n) {
    border-right: 0;
  }

  .integration-status-item:nth-child(-n + 4) {
    border-bottom: 1px solid #e5e7eb;
  }
}

@media (max-width: 760px) {
  .settings-heading {
    display: block;
  }

  .settings-heading-actions {
    margin-top: 14px;
  }

  .settings-heading-actions .secondary-button,
  .settings-heading-actions .primary-top-button {
    display: inline-flex;
    flex: 1;
  }

  .integration-overview,
  .settings-card {
    padding: 18px;
  }

  .integration-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .integration-status-item,
  .integration-status-item:nth-child(4n) {
    min-height: 96px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }

  .integration-status-item:nth-child(2n) {
    border-right: 0;
  }

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

  .settings-two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .login-card {
    padding: 28px 24px;
  }
}
