:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --soft: #f8fafc;
  --text: #101828;
  --muted: #667085;
  --line: #e5e9f0;
  --red: #ef2b2d;
  --blue: #145fd7;
  --green: #08945f;
  --orange: #ff7a1a;
  --purple: #6f35c9;
  --teal: #008c8c;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

body.readonly-detail-open {
  overflow: hidden;
}

.color-rail {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 14px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--green) 20% 40%, var(--blue) 40% 60%, var(--orange) 60% 80%, var(--purple) 80% 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 14px;
}

.compact-primary-nav {
  display: none;
}

.workspace-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.workspace-page-heading span,
.workspace-task-facts span,
.role-task-status span,
.role-task-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.workspace-page-heading h2 {
  margin: 5px 0 6px;
  font-size: 28px;
}

.workspace-page-heading p {
  margin: 0;
  color: var(--muted);
}

.workspace-access-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--text);
  font-size: 13px;
}

.workspace-secondary-grid,
.workspace-task-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-secondary-link,
.workspace-task-facts article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.workspace-secondary-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  min-height: 104px;
}

.workspace-secondary-link strong,
.workspace-secondary-link span {
  min-width: 0;
}

.workspace-secondary-link strong {
  font-size: 17px;
}

.workspace-secondary-link span {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.workspace-secondary-link b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-size: 24px;
}

.workspace-secondary-link.tone-red { border-left-color: var(--red); }
.workspace-secondary-link.tone-orange { border-left-color: var(--orange); }
.workspace-secondary-link.tone-green { border-left-color: var(--green); }
.workspace-secondary-link.tone-purple { border-left-color: var(--purple); }
.workspace-secondary-link.tone-teal { border-left-color: #0f8f83; }

.workspace-task-facts article {
  min-height: 132px;
}

.workspace-task-facts strong,
.workspace-task-facts p {
  display: block;
}

.workspace-task-facts strong {
  margin-top: 8px;
  font-size: 17px;
}

.workspace-task-facts p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.role-task-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.role-task-facts {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
}

.role-task-facts div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.role-task-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .workspace-page-heading,
  .workspace-secondary-grid,
  .workspace-task-facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-page-heading h2 {
    font-size: 22px;
  }

  .workspace-access-badge {
    justify-self: start;
  }

  .workspace-secondary-link,
  .workspace-task-facts article {
    width: 100%;
  }

  .role-task-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.mobile-app-bar,
.mobile-drawer-heading,
.mobile-drawer-backdrop,
.mobile-workspace-root {
  display: none;
}

.brand-sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 14px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.brand-lockup strong,
.brand-lockup em,
.identity-chip strong,
.identity-chip span,
.side-account strong,
.side-account span {
  display: block;
}

.brand-lockup strong {
  font-size: 17px;
  font-weight: 900;
}

.brand-lockup em {
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.side-nav,
.side-business-menu {
  display: grid;
  gap: 6px;
}

.side-nav a,
.side-business-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.side-nav a.active,
.side-business-menu a.active {
  background: #fff2f2;
  color: var(--red);
}

.navigation-menu-node {
  display: grid;
  gap: 4px;
}

.navigation-menu-node.active {
  padding: 4px;
  border-radius: 8px;
  background: rgba(20, 95, 215, 0.04);
}

.navigation-submenu {
  display: grid;
  gap: 3px;
  padding-left: 16px;
}

.side-business-menu a.navigation-child {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
}

.side-business-menu a.navigation-child.active {
  color: var(--blue);
  background: #eef5ff;
}

.nav-dot,
.rank-badge,
.avatar-dot {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-weight: 900;
}

.nav-dot {
  width: 18px;
  height: 18px;
}

.rank-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--blue);
  font-size: 13px;
}

.nav-dot.red,
.tone-red .rank-badge,
.rank-badge.tone-red,
.tone-red .score-icon {
  background: var(--red);
}

.nav-dot.blue,
.tone-blue .rank-badge,
.rank-badge.tone-blue,
.tone-blue .score-icon {
  background: var(--blue);
}

.nav-dot.green,
.tone-green .rank-badge,
.rank-badge.tone-green,
.tone-green .score-icon {
  background: var(--green);
}

.nav-dot.orange,
.tone-orange .rank-badge,
.rank-badge.tone-orange,
.tone-orange .score-icon {
  background: var(--orange);
}

.nav-dot.purple,
.tone-purple .rank-badge,
.rank-badge.tone-purple,
.tone-purple .score-icon {
  background: var(--purple);
}

.tone-teal .rank-badge,
.rank-badge.tone-teal,
.tone-teal .score-icon {
  background: var(--teal);
}

.side-section {
  min-height: 0;
  overflow: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.side-section p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.side-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.avatar-dot {
  width: 36px;
  height: 36px;
  background: var(--red);
}

.account-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
  object-position: center 24%;
}

.current-operations-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.current-operation-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.current-operation-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.current-operation-card h3,
.current-operation-card p {
  margin: 0;
}

.current-operation-card header p,
.current-operation-feedback {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.current-operation-card > header > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.current-operation-card.readonly {
  border-left-color: var(--green);
}

.current-operation-card.blocked {
  border-left-color: var(--orange);
}

.current-operation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.current-operation-form label,
.current-review-body label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.current-operation-form label.full,
.current-operation-form .full {
  grid-column: 1 / -1;
}

.current-operation-form input,
.current-operation-form select,
.current-review-body input,
.room-current-row input,
.room-current-row select,
.stay-current-row input,
.stay-current-row select {
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.current-operation-form button,
.secondary-command,
.current-decision-actions button,
.current-review-body > button {
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.secondary-command {
  margin-bottom: 12px;
  background: #eef5ff;
  color: var(--blue);
}

.danger-command {
  background: var(--red) !important;
}

.room-current-rows,
.stay-current-rows {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding: 4px;
}

.room-current-row,
.stay-current-row {
  display: grid;
  grid-template-columns: 130px minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.stay-current-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-current-row legend,
.stay-current-row legend {
  padding: 0 5px;
  font-weight: 900;
}

.current-review-body dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
}

.current-review-body dt {
  color: var(--muted);
}

.current-review-body dd {
  margin: 0;
  font-weight: 800;
}

.current-decision-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.current-operation-feedback[data-status="ready"] {
  color: var(--green);
}

.current-operation-feedback[data-status="error"] {
  color: var(--red);
}

@media (max-width: 720px) {
  .current-operation-form,
  .room-current-row,
  .stay-current-row {
    grid-template-columns: 1fr;
  }
}

.side-account span {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-main {
  min-width: 0;
  padding: 30px 36px 28px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow,
h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.time-chip {
  min-width: 160px;
  text-align: right;
}

.time-chip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.time-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.scoreboard-grid,
.priority-grid,
.business-menu-grid,
.personal-workspace-grid,
.source-evidence-grid,
.overview-grid,
.quick-link-list {
  display: grid;
  gap: 12px;
}

.scoreboard-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.daily-task-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.score-card,
.priority-card,
.business-menu-card,
.workspace-panel-card,
.source-evidence-card,
.overview-band,
.overview-group,
.quick-links,
.identity-error-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.score-card {
  min-height: 170px;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.score-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
}

.score-card h2 {
  margin: 18px 0 8px;
  font-size: 17px;
  font-weight: 900;
}

.score-card strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.score-card p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.score-card b {
  color: currentColor;
}

.score-card.tone-red,
.business-menu-card.tone-red,
.workspace-panel-card.tone-red {
  border-color: rgba(239, 43, 45, 0.22);
}

.score-card.tone-green,
.business-menu-card.tone-green,
.workspace-panel-card.tone-green {
  border-color: rgba(8, 148, 95, 0.22);
}

.score-card.tone-blue,
.business-menu-card.tone-blue,
.workspace-panel-card.tone-blue {
  border-color: rgba(20, 95, 215, 0.22);
}

.score-card.tone-orange,
.business-menu-card.tone-orange,
.workspace-panel-card.tone-orange {
  border-color: rgba(255, 122, 26, 0.26);
}

.score-card.tone-purple,
.business-menu-card.tone-purple,
.workspace-panel-card.tone-purple {
  border-color: rgba(111, 53, 201, 0.24);
}

.tone-red strong,
.tone-red b,
.tone-red h3 {
  color: var(--red);
}

.tone-green strong,
.tone-green b,
.tone-green h3 {
  color: var(--green);
}

.tone-blue strong,
.tone-blue b,
.tone-blue h3 {
  color: var(--blue);
}

.tone-orange strong,
.tone-orange b,
.tone-orange h3 {
  color: var(--orange);
}

.tone-purple strong,
.tone-purple b,
.tone-purple h3 {
  color: var(--purple);
}

.tone-teal strong,
.tone-teal b,
.tone-teal h3 {
  color: var(--teal);
}

.sparkline {
  position: absolute;
  right: 18px;
  bottom: 12px;
  left: 18px;
  height: 22px;
  border-radius: 999px;
  opacity: 0.3;
  background: linear-gradient(90deg, currentColor 10%, transparent 10% 20%, currentColor 20% 28%, transparent 28% 42%, currentColor 42% 54%, transparent 54% 70%, currentColor 70% 100%);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 900;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.daily-task-section,
.todo-band,
.business-menu-section,
.workspace-section {
  margin-bottom: 26px;
}

.product-home-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.home-data-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.data-pill {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  align-content: start;
}

.data-pill span,
.data-pill small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.data-pill strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--text);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.workbench-empty-state {
  min-height: 96px;
  padding: 18px;
  border: 1px dashed #cfd7e6;
  border-radius: 8px;
  background: var(--soft);
  align-content: center;
}

.workbench-empty-state strong,
.workbench-empty-state span {
  display: block;
}

.workbench-empty-state strong {
  color: var(--text);
  font-size: 15px;
}

.workbench-empty-state span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.embedded-work-grid {
  margin-top: 16px;
}

.embedded-data-grid {
  margin-top: 16px;
}

.priority-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.priority-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px;
}

.priority-card strong {
  font-size: clamp(16px, 1.55vw, 24px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.priority-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 900;
}

.priority-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-rank,
.daily-flow-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.daily-rank {
  background: currentColor;
  color: #fff;
}

.daily-flow-label {
  background: var(--soft);
  color: var(--muted);
}

.daily-task-card {
  min-height: 220px;
}

.daily-task-card h2 {
  min-height: 44px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.25;
}

.daily-task-card strong {
  min-height: 52px;
  font-size: 22px;
  line-height: 1.2;
}

.daily-task-card p {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.daily-warning,
.daily-flow-card small,
.daily-flow-card em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.daily-flow-card {
  align-items: flex-start;
  min-height: 132px;
}

.daily-flow-card strong {
  min-width: 44px;
  text-align: center;
}

.daily-action-button {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.tone-red .daily-action-button {
  background: var(--red);
}

.tone-green .daily-action-button,
.tone-teal .daily-action-button {
  background: var(--green);
}

.tone-blue .daily-action-button {
  background: var(--blue);
}

.tone-orange .daily-action-button {
  background: var(--orange);
}

.tone-purple .daily-action-button {
  background: var(--purple);
}

.work-action-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.clickable-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.clickable-card:hover,
.clickable-card:focus-within,
.clickable-card.is-selected-action {
  border-color: currentColor;
  box-shadow: 0 16px 32px rgba(22, 34, 51, 0.13);
  transform: translateY(-1px);
}

.clickable-card.is-selected-action::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: currentColor;
  color: #fff;
  content: "已选择";
  font-size: 11px;
  font-weight: 900;
}

.interaction-detail-panel {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.interaction-detail-panel[hidden] {
  display: none;
}

.interaction-detail-panel header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: start;
}

.interaction-detail-panel span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.interaction-detail-panel h3 {
  margin: 4px 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.interaction-detail-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.interaction-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.interaction-state-grid div {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.interaction-state-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.interaction-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.boss-center-page {
  margin: 0 0 26px;
}

.boss-center-page[hidden] {
  display: none;
}

.boss-center-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.boss-center-header span,
.boss-center-header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.boss-center-header h2 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.boss-center-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.boss-center-metric {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.boss-center-metric span,
.boss-center-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.boss-center-metric strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--text);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.14;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.boss-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
}

.boss-center-records,
.boss-center-sources {
  min-width: 0;
}

.boss-center-records {
  display: grid;
  gap: 10px;
}

.boss-center-sources {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.boss-center-sources h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 900;
}

.boss-center-record,
.boss-center-empty {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.boss-center-record header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.boss-center-record strong,
.boss-center-empty strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.boss-center-record p,
.boss-center-record small,
.boss-center-empty p {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.production-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.production-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(2, minmax(110px, 0.5fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.production-filter-bar label,
.production-filter-bar div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.boss-center-health {
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: 520px;
  text-align: right;
}

.data-health-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.data-health-line span,
.data-health-line strong {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.metric-quality-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.boss-center-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(145px, 0.6fr) minmax(145px, 0.6fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.boss-center-filter label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.production-filter-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.production-filter-bar strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.production-filter-bar input,
.production-filter-bar select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.boss-center-filter label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.boss-center-filter input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.production-table-wrap {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.production-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}

.production-table th,
.production-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.production-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.boss-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.boss-pagination button {
  min-width: 72px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.boss-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.boss-record-detail {
  margin-bottom: 16px;
  padding: 16px;
  border: 2px solid rgba(31, 98, 213, 0.2);
  border-radius: 8px;
  background: #f7faff;
}

.boss-record-detail header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.boss-record-detail h3 {
  margin-top: 4px;
  font-size: 18px;
}

.readonly-detail-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.48);
}

.readonly-detail-dialog[hidden] {
  display: none;
}

.readonly-detail-sheet {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
}

.readonly-detail-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.readonly-detail-toolbar span,
.readonly-detail-sheet footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.production-table td {
  color: var(--text);
  font-weight: 800;
}

.production-row-detail summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.production-row-detail div {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.production-source-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.production-source-box strong {
  color: var(--text);
  font-size: 14px;
}

.procurement-workspace {
  display: grid;
  gap: 16px;
  width: 100%;
}

.oms-release-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border: 1px solid #f79009;
  border-radius: 999px;
  padding: 2px 7px;
  color: #b54708;
  background: #fffaeb;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
}

.procurement-heading,
.procurement-record-card > header,
.procurement-detail-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.procurement-heading h3,
.procurement-record-card h4,
.procurement-detail-panel h4 {
  margin: 4px 0;
}

.procurement-heading span,
.procurement-record-card header span,
.procurement-detail-panel header span {
  color: #667085;
  font-size: 13px;
}

.procurement-heading > strong,
.procurement-status {
  flex: 0 0 auto;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 6px 10px;
  color: #344054;
  background: #fff;
  font-size: 13px;
}

.procurement-form,
.procurement-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.procurement-form label,
.procurement-inline-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.procurement-form .full,
.procurement-inline-form .full {
  grid-column: 1 / -1;
}

.procurement-form input,
.procurement-form select,
.procurement-form textarea,
.procurement-inline-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #98a2b3;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #101828;
  font: inherit;
}

.procurement-form select {
  appearance: auto;
}

.procurement-form textarea {
  resize: vertical;
}

.procurement-form small,
.procurement-file-field small {
  color: #667085;
  font-weight: 400;
}

.procurement-file-field {
  display: grid;
  gap: 8px;
}

.procurement-file-field > button {
  justify-self: start;
}

.procurement-hidden-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.procurement-upload-chooser {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.procurement-upload-chooser[hidden] {
  display: none;
}

.procurement-upload-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0 !important;
  background: rgba(16, 24, 40, 0.56) !important;
}

.procurement-upload-chooser > section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.28);
}

.procurement-upload-chooser header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.procurement-upload-chooser header button {
  min-width: 44px;
  padding: 8px;
}

.procurement-upload-chooser label {
  display: block;
  min-height: 48px;
  border: 1px solid #155eef;
  border-radius: 6px;
  padding: 13px 16px;
  color: #155eef;
  background: #fff;
  text-align: center;
  font-weight: 800;
  cursor: pointer;
}

.procurement-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  min-height: 72px;
  border: 1px dashed #98a2b3;
  border-radius: 6px;
  padding: 10px;
  color: #667085;
}

.procurement-preview-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.procurement-preview-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.procurement-preview-card figcaption {
  min-width: 0;
}

.procurement-preview-card figcaption span,
.procurement-preview-card figcaption small {
  display: block;
  overflow-wrap: anywhere;
}

.procurement-preview-card button {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 7px 10px;
  background: #b42318;
}

.procurement-attachment-amount {
  grid-column: 1 / -1;
}

.procurement-attachment-amount input {
  min-height: 40px;
}

.procurement-form-actions,
.procurement-record-actions,
.procurement-inline-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.procurement-form button,
.procurement-record-card button,
.procurement-inline-form button,
.procurement-detail-panel button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: #155eef;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.procurement-form .secondary-command,
.procurement-record-card .secondary-command {
  border: 1px solid #155eef;
  background: #fff;
  color: #155eef;
}

.procurement-form-state,
.procurement-feedback {
  margin: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f2f4f7;
  color: #475467;
}

.procurement-food-stage,
.procurement-food-confirmation,
.procurement-food-items {
  display: grid;
  gap: 12px;
}

.procurement-food-stage[hidden],
.procurement-food-confirmation[hidden] {
  display: none;
}

.procurement-food-stage {
  border-bottom: 1px solid #eaecf0;
  padding-bottom: 16px;
}

.procurement-stage-number {
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.procurement-food-stage h4,
.procurement-food-stage p,
.procurement-food-confirmation h4 {
  margin: 0;
}

.procurement-food-stage[hidden] {
  display: none;
}

.procurement-food-stage[data-food-category-stage] label {
  max-width: 420px;
}

.procurement-food-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d0d5dd;
  padding-top: 12px;
}

.procurement-food-total strong {
  font-size: 22px;
}

.procurement-food-confirm-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 160px));
  gap: 8px;
  margin: 12px 0;
}

.procurement-food-confirm-images img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

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

.procurement-food-fields .full {
  grid-column: 1 / -1;
}

.procurement-food-items > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.procurement-food-item-row {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) repeat(4, minmax(90px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 10px;
}

.procurement-food-item-row .danger-command {
  background: #b42318;
}

.procurement-food-confirm-items,
.procurement-food-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.procurement-food-detail li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.procurement-feedback[data-status="error"] {
  background: #fef3f2;
  color: #b42318;
}

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

.procurement-record-card,
.procurement-detail-panel,
.procurement-empty {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

body.procurement-detail-open {
  overflow: hidden;
}

.procurement-detail-panel.procurement-detail-page {
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  padding: 24px max(24px, calc((100vw - 1080px) / 2));
  background: #f9fafb;
}

.procurement-detail-page > header {
  position: sticky;
  z-index: 5;
  top: -24px;
  align-items: center;
  margin: -24px max(-24px, calc((1080px - 100vw) / 2)) 20px;
  border-bottom: 1px solid #d0d5dd;
  padding: 14px max(24px, calc((100vw - 1080px) / 2));
  background: rgba(255, 255, 255, 0.97);
}

.procurement-detail-page > header > div {
  flex: 1;
}

.procurement-detail-page > header > button {
  min-width: auto;
  border: 1px solid #98a2b3;
  background: #fff;
  color: #344054;
}

.procurement-approval-summary dl {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.procurement-summary-remark {
  margin: 0 0 12px;
  color: #475467;
}

.procurement-record-card dl,
.procurement-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.procurement-record-card dl div,
.procurement-detail-facts div {
  display: grid;
  gap: 3px;
}

.procurement-record-card dt,
.procurement-detail-facts dt {
  color: #667085;
  font-size: 12px;
}

.procurement-record-card dd,
.procurement-detail-facts dd {
  margin: 0;
  color: #101828;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.procurement-returned {
  border-left: 3px solid #d92d20;
  padding: 8px 10px;
  background: #fef3f2;
  color: #b42318;
}

.procurement-record-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: #475467;
  font-size: 13px;
}

.procurement-inline-form {
  margin-top: 14px;
  background: #f9fafb;
}

.procurement-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 240px));
  gap: 12px;
  margin: 14px 0;
}

.procurement-evidence-grid figure {
  margin: 0;
}

.procurement-image-loading {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f2f4f7;
  color: #475467;
  font-weight: 700;
}

.procurement-evidence-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f9fafb;
}

.procurement-evidence-grid figcaption {
  margin-top: 6px;
  color: #475467;
  font-size: 12px;
}

.procurement-evidence-grid figcaption strong,
.procurement-evidence-grid figcaption span {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.procurement-approval-actions {
  margin-top: 18px;
  border-top: 1px solid #d0d5dd;
  padding-top: 14px;
}

.procurement-change-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procurement-change-list li {
  display: grid;
  gap: 4px;
  border-left: 3px solid #d0d5dd;
  padding: 8px 10px;
  background: #fff;
}

.procurement-change-list li span,
.procurement-change-list li small {
  color: #475467;
}

.boss-procurement-alerts {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  border: 1px solid #f79009;
  border-radius: 8px;
  padding: 16px;
  background: #fffaeb;
}

.boss-procurement-alerts > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.boss-procurement-alerts h3 {
  margin: 3px 0 0;
}

.boss-procurement-alert-list {
  display: grid;
  gap: 8px;
}

.boss-procurement-alert-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid #fedf89;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #101828;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.boss-procurement-alert-list span,
.boss-procurement-alert-list strong,
.boss-procurement-alert-list small,
.boss-procurement-alert-list b {
  display: block;
  overflow-wrap: anywhere;
}

.boss-procurement-alert-list small {
  margin-top: 3px;
  color: #667085;
}

.boss-procurement-alert-list em {
  color: #b54708;
  font-style: normal;
  font-weight: 800;
}

.procurement-recognition pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 6px;
  padding: 12px;
  background: #101828;
  color: #f2f4f7;
}

@media (max-width: 720px) {
  .procurement-heading,
  .procurement-record-card > header,
  .procurement-detail-panel > header {
    gap: 10px;
  }

  .procurement-form,
  .procurement-inline-form,
  .procurement-record-card dl,
  .procurement-detail-facts {
    grid-template-columns: 1fr;
  }

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

  .procurement-detail-panel.procurement-detail-page {
    padding: 16px;
  }

  .procurement-detail-page > header {
    top: -16px;
    margin: -16px -16px 16px;
    padding: 10px 16px;
  }

  .procurement-food-fields,
  .procurement-food-item-row {
    grid-template-columns: 1fr;
  }

  .procurement-food-fields .full {
    grid-column: auto;
  }

  .procurement-food-items > header,
  .procurement-food-detail li {
    align-items: stretch;
    flex-direction: column;
  }

  .procurement-form .full,
  .procurement-inline-form .full {
    grid-column: auto;
  }

  .procurement-form-actions,
  .procurement-record-actions,
  .procurement-inline-form > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .procurement-form button,
  .procurement-record-card button,
  .procurement-inline-form button {
    width: 100%;
  }

  .procurement-evidence-grid {
    grid-template-columns: 1fr;
  }

  .procurement-approval-actions {
    position: sticky;
    z-index: 4;
    bottom: 0;
    margin: 18px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -8px 18px rgba(16, 24, 40, 0.08);
  }

  .boss-procurement-alert-list button {
    grid-template-columns: 1fr;
  }

  .procurement-file-field > button {
    width: 100%;
  }

  .procurement-image-preview {
    grid-template-columns: 1fr;
  }

  .procurement-upload-chooser {
    align-items: end;
    padding: 0;
  }

  .procurement-upload-chooser > section {
    width: 100%;
    border-radius: 8px 8px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
}

.readonly-detail-toolbar h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.readonly-detail-toolbar button {
  min-width: 52px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.readonly-detail-body {
  padding: 18px;
}

.readonly-detail-body .boss-record-detail {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.readonly-detail-sheet footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.execution-closure-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.execution-closure-result div {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(8, 148, 95, 0.2);
  border-radius: 8px;
  background: rgba(8, 148, 95, 0.08);
}

.execution-closure-result strong,
.execution-closure-result small {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.execution-closure-result strong {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.execution-closure-result small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.execution-closure-result .lifecycle-closure-panel {
  border-color: rgba(255, 122, 26, 0.24);
  background: rgba(255, 122, 26, 0.08);
}

.execution-closure-result .lifecycle-closure-panel strong {
  color: var(--orange);
}

.decision-explainability-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 10px;
}

.decision-explainability-panel div {
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(35, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(35, 99, 235, 0.06);
}

.decision-explainability-panel strong,
.decision-explainability-panel small {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.decision-explainability-panel strong {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.decision-explainability-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.business-menu-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.personal-workspace-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.source-evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-menu-card,
.workspace-panel-card {
  position: relative;
  min-height: 150px;
  padding: 16px;
  overflow: hidden;
}

.business-menu-card header,
.workspace-panel-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.business-menu-card strong,
.workspace-panel-card h3 {
  margin: 10px 0 4px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.business-menu-card p,
.business-menu-card small,
.workspace-panel-card p,
.workspace-panel-card li {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.business-menu-card b {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.16;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.daily-risk-card {
  min-height: 190px;
}

.daily-risk-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.daily-risk-list span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.daily-risk-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.daily-risk-list strong {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.workspace-panel-card strong {
  color: var(--text);
  font-size: clamp(17px, 1.75vw, 25px);
  line-height: 1.16;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.workspace-panel-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.workspace-panel-card li {
  position: relative;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.workspace-panel-card li strong,
.source-record strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.workspace-panel-card li small,
.workspace-panel-card li em,
.source-record span,
.source-record small,
.source-record em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.confidence-label {
  display: inline-flex;
  width: max-content;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.confidence-source_verified {
  background: rgba(8, 148, 95, 0.12);
  color: var(--green);
}

.confidence-uncalibrated_warning {
  background: rgba(239, 43, 45, 0.12);
  color: var(--red);
}

.source-evidence-card {
  padding: 16px;
}

.source-evidence-card h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 900;
}

.source-record-list {
  display: grid;
  gap: 10px;
}

.source-record {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.source-record summary {
  cursor: pointer;
  list-style-position: outside;
}

.trace-chain {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.trace-chain div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
}

.trace-chain dt,
.trace-chain dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.trace-chain dt {
  color: var(--blue);
}

.overview-band {
  padding: 18px;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-group,
.quick-links {
  padding: 18px;
}

.overview-group h3,
.quick-links h3 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  gap: 10px;
}

.metric-grid div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 900;
}

.metric-grid span {
  color: var(--text);
}

.metric-grid strong {
  color: var(--text);
}

.quick-link-list {
  grid-template-columns: 1fr;
}

.quick-link-list button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.principle-strip {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8ef;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.identity-error-mode {
  background: var(--bg);
}

.identity-error-panel {
  max-width: 560px;
  margin: 16vh auto 0;
  padding: 24px;
  border-color: #ffd0cc;
  background: #fffafa;
}

.identity-error-panel h1 {
  color: var(--red);
}

.identity-error-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.error-actions {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #ffd0cc;
  border-radius: 8px;
  background: #fff;
}

.error-actions span {
  color: var(--red);
  font-weight: 800;
}

.auth-retry-button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .home-data-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scoreboard-grid,
  .priority-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-menu-grid,
  .personal-workspace-grid,
  .source-evidence-grid,
  .boss-center-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boss-center-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    width: 100%;
    overflow-x: hidden;
    padding-top: calc(62px + env(safe-area-inset-top));
  }

  body.mobile-navigation-open {
    overflow: hidden;
  }

  .color-rail {
    z-index: 60;
    height: 6px;
  }

  .mobile-app-bar {
    position: fixed;
    inset: 6px 0 auto;
    z-index: 55;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    min-height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
  }

  .mobile-page-identity {
    min-width: 0;
    text-align: center;
  }

  .mobile-page-identity strong,
  .mobile-page-identity span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-page-identity strong {
    font-size: 16px;
    font-weight: 900;
  }

  .mobile-page-identity span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-icon-button:disabled {
    visibility: hidden;
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 56;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(16, 24, 40, 0.46);
  }

  .mobile-drawer-backdrop[hidden] {
    display: none;
  }

  .app-shell {
    display: block;
    width: 100%;
    min-width: 0;
    padding-top: 0;
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    width: 100%;
    min-width: 0;
    padding: 14px 12px calc(28px + env(safe-area-inset-bottom));
  }

  .dashboard-main > :not(.mobile-workspace-root) {
    display: none !important;
  }

  .mobile-workspace-root {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .mobile-workspace-root[hidden] {
    display: none;
  }

  .brand-sidebar {
    position: fixed;
    inset: 6px auto 0 0;
    z-index: 58;
    width: min(86vw, 340px);
    height: calc(100dvh - 6px);
    max-width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 14px;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
    border-right: 1px solid var(--line);
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.2);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .brand-sidebar .brand-lockup,
  .brand-sidebar .side-nav,
  .brand-sidebar .side-section > p,
  .brand-sidebar .side-account,
  .brand-sidebar .navigation-submenu {
    display: none;
  }

  .brand-sidebar .side-section,
  .brand-sidebar .side-business-menu {
    display: block;
    width: 100%;
    margin: 0;
  }

  .brand-sidebar .navigation-menu-node {
    margin-bottom: 6px;
  }

  .brand-sidebar .navigation-parent {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
  }

  body.mobile-navigation-open .brand-sidebar {
    transform: translateX(0);
  }

  .mobile-drawer-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-drawer-heading strong {
    font-size: 18px;
    font-weight: 900;
  }

  .side-nav {
    display: none;
  }

  .side-section {
    display: block;
    min-width: 0;
  }

  .side-business-menu,
  .navigation-menu-node,
  .navigation-submenu {
    min-width: 0;
  }

  .navigation-menu-link {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    white-space: normal;
  }

  .navigation-menu-link > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .compact-primary-nav {
    display: none;
  }

  .dashboard-main {
    width: 100%;
    min-width: 0;
    padding: 16px max(12px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .app-header {
    display: block;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 25px;
    line-height: 1.28;
  }

  h2 {
    font-size: 20px;
  }

  .subtitle,
  .section-title span {
    font-size: 13px;
    line-height: 1.55;
  }

  .time-chip {
    margin-top: 16px;
    text-align: left;
  }

  .scoreboard-grid,
  .priority-grid,
  .home-data-strip,
  .business-menu-grid,
  .personal-workspace-grid,
  .source-evidence-grid,
  .boss-center-metrics,
  .overview-grid,
  .quick-link-list,
  .overview-layout,
  .boss-center-layout,
  .current-operation-form,
  .interaction-state-grid {
    grid-template-columns: 1fr;
  }

  .product-home-block,
  .score-card,
  .priority-card,
  .business-menu-card,
  .current-operation-card,
  .boss-center-panel,
  .interaction-detail-panel {
    width: 100%;
    min-width: 0;
  }

  button,
  .daily-action-button,
  .work-action-button,
  .secondary-command {
    min-height: 44px;
  }

  .current-decision-actions,
  .boss-center-actions,
  .readonly-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .current-decision-actions button,
  .boss-center-actions button,
  .readonly-detail-actions button {
    width: 100%;
  }

  .production-table-wrap,
  .boss-center-table-wrap,
  .trace-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 680px;
  }

  .boss-center-header {
    display: block;
  }

  .boss-center-health {
    justify-items: start;
    margin-top: 12px;
    text-align: left;
  }

  .data-health-line {
    justify-content: flex-start;
  }

  .boss-center-filter {
    grid-template-columns: 1fr;
  }

  .readonly-detail-dialog {
    align-items: end;
    padding: 12px;
  }

  .readonly-detail-sheet {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 24px);
    border-radius: 8px 8px 0 0;
  }

  .side-account {
    margin-top: auto;
  }

  .mobile-home-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .mobile-home-identity img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 8px;
    object-fit: cover;
  }

  .mobile-home-identity strong,
  .mobile-home-identity span {
    display: block;
  }

  .mobile-home-identity strong {
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-home-identity span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-focus-block,
  .mobile-section-heading,
  .mobile-task-state {
    width: 100%;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .mobile-focus-block span,
  .mobile-section-heading span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-focus-block h1,
  .mobile-section-heading h1 {
    margin: 6px 0 8px;
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .mobile-focus-block p,
  .mobile-section-heading p,
  .mobile-task-state p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: break-word;
  }

  .mobile-primary-grid,
  .mobile-secondary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .mobile-role-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
  }

  .mobile-overview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
  }

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

  .mobile-overview-row strong {
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-overview-row small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-overview-row b {
    color: var(--muted);
    font-size: 22px;
  }

  .mobile-boundary-note {
    display: block;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    font-weight: 800;
  }

  .mobile-primary-card,
  .mobile-secondary-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
  }

  .mobile-primary-card strong,
  .mobile-primary-card small,
  .mobile-secondary-card strong,
  .mobile-secondary-card small {
    display: block;
    min-width: 0;
  }

  .mobile-primary-card strong,
  .mobile-secondary-card strong {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    word-break: keep-all;
  }

  .mobile-primary-card small,
  .mobile-secondary-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
  }

  .mobile-primary-card b,
  .mobile-secondary-card b {
    color: var(--muted);
    font-size: 24px;
  }

  .mobile-task-content,
  .mobile-task-content .boss-center-page,
  .mobile-task-content .boss-center-layout,
  .mobile-task-content .boss-center-records,
  .mobile-task-content .boss-center-sources {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .mobile-task-content .boss-center-metrics,
  .mobile-task-content .overview-grid {
    grid-template-columns: 1fr;
  }

  .mobile-task-content input,
  .mobile-task-content select,
  .mobile-task-content textarea,
  .mobile-task-content button {
    width: 100%;
    min-height: 46px;
  }
}
