:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --sidebar: #111827;
  --sidebar-muted: #91a2b2;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --danger: #b42318;
  --warning: #b54708;
  --ok: #067647;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--bg);
  color: var(--text);
}

.sidebar {
  background: var(--sidebar);
  color: white;
  padding: 22px 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--sidebar-muted);
  margin-top: 4px;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-button,
button {
  border: 0;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nav-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  background: transparent;
  color: #cbd5df;
}

.nav-button.active,
.nav-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-button.active {
  box-shadow: inset 3px 0 0 #5eead4;
}

.nav-button.has-alert {
  color: #ffffff;
}

.nav-alert {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
}

.workspace {
  position: relative;
  min-width: 0;
  padding: 14px 18px 22px;
}

.toast {
  position: sticky;
  top: 8px;
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.toast.success {
  border-color: #b7e4c7;
  background: #ecfdf3;
  color: var(--ok);
}

.toast.error {
  border-color: #fecdca;
  background: #fff7f6;
  color: var(--danger);
}

.codex-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.codex-modal.hidden {
  display: none;
}

.codex-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
}

.codex-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.codex-modal-panel h3 {
  margin: 0;
  font-size: 16px;
}

.codex-modal-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.codex-modal-panel textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.codex-modal-error {
  border: 1px solid #fecdca;
  border-radius: 6px;
  background: #fff7f6;
  color: var(--danger);
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 700;
}

.codex-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 21px;
  line-height: 1.2;
}

h2 {
  font-size: 17px;
}

.topbar p {
  color: var(--muted);
  margin-top: 6px;
}

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

select,
input {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}

input {
  width: 168px;
}

button {
  background: var(--surface-2);
  color: var(--text);
}

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

button.primary {
  background: var(--accent);
  color: white;
}

.portal-link {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sales-panel {
  padding: 10px;
}

.hidden {
  display: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count {
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.count.alert {
  background: #fee4e2;
  color: var(--danger);
}

.stack {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.task-facts {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.task-facts span {
  overflow-wrap: anywhere;
}

.task-robot-block,
.task-robot-draft,
.task-next-loop {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #1e293b;
  font-size: 13px;
}

.task-robot-block strong,
.task-robot-draft strong,
.task-next-loop strong,
.task-signal-list strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.task-robot-block ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}

.task-robot-draft p,
.task-next-loop p {
  margin: 0;
  line-height: 1.55;
}

.task-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.task-signal-list strong {
  flex-basis: 100%;
  margin-bottom: 0;
}

.task-signal-list span {
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
}

.draft {
  white-space: pre-wrap;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  line-height: 1.55;
}

.draft.compact {
  margin-top: 10px;
}

.detail-section-title {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.customer-overview {
  border: 1px solid var(--line);
}

.progress-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.conversation-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #99d6cf;
  border-radius: 8px;
  background: #f7fbfa;
}

.conversation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.conversation-grid p {
  margin-top: 6px;
  line-height: 1.55;
}

.conversation-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.context-line {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.context-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.context-line p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

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

.progress-grid p,
.progress-grid ul {
  margin: 6px 0 0;
  line-height: 1.55;
}

.progress-grid ul {
  padding-left: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.metric-card {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

button.metric-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.director-click-card,
.director-click-row {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.director-click-card:hover,
.director-click-row:hover {
  border-color: #99d6cf;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.director-click-card:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.metric-card.ok {
  border-color: #b9e6cf;
}

.metric-card.warn {
  border-color: #fedf89;
}

.metric-card.accent {
  border-color: #99d6cf;
}

.metric-card.danger {
  border-color: #fecdca;
}

.director-dashboard {
  display: grid;
  gap: 10px;
}

.director-dashboard.hidden {
  display: none;
}

.director-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 10px;
  align-items: start;
}

.director-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  padding: 9px;
}

.director-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.director-section h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.director-section p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.director-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.director-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.director-table th,
.director-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.director-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.director-table td {
  color: #1f2937;
  line-height: 1.35;
}

.director-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.director-table tr:last-child td {
  border-bottom: 0;
}

.director-table .director-click-row:hover td {
  background: #f8fbfb;
}

.director-table th:nth-child(1),
.director-table td:nth-child(1) {
  width: 150px;
}

.director-table th:nth-child(3),
.director-table td:nth-child(3) {
  width: 230px;
}

.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 132px;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2),
.audit-table th:nth-child(3),
.audit-table td:nth-child(3) {
  width: 210px;
}

.director-action-code {
  display: inline-flex;
  margin: 0;
  padding: 3px 6px;
  border-radius: 5px;
  background: #eef6f5;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.director-status {
  display: inline-flex;
  margin: 0;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.director-status.pending,
.director-status.open {
  background: #fff7ed;
  color: var(--warning);
}

.director-status.danger {
  background: #fee4e2;
  color: var(--danger);
}

.director-status.done {
  background: #e7f8ef;
  color: var(--ok);
}

.director-progress-list,
.director-mini-list,
.director-robot-grid {
  display: grid;
  gap: 6px;
}

.director-progress-row,
.director-mini-row,
.director-robot-row {
  display: grid;
  gap: 3px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: var(--surface);
  padding: 8px;
}

.director-progress-row {
  grid-template-columns: minmax(92px, 1fr) 42px minmax(0, 2fr);
  align-items: center;
}

.director-progress-row span,
.director-mini-row span,
.director-robot-row span {
  color: #334155;
  font-size: 12px;
}

.director-progress-row strong {
  text-align: right;
  font-size: 18px;
  color: var(--accent);
}

.director-progress-row small,
.director-mini-row small,
.director-robot-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.director-mini-row strong,
.director-robot-row strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.director-empty {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.sales-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.history-binding-status {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.history-binding-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: #475569;
}

.history-binding-copy strong {
  color: #0f172a;
  font-size: 13px;
}

.history-binding-copy span {
  border: 1px solid #dbe3ee;
  background: #ffffff;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.history-binding-copy small {
  color: #64748b;
}

.history-binding-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-binding-filters button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
}

.history-binding-filters button.active {
  border-color: #0f766e;
  background: #e6f5f1;
  color: #0f766e;
  font-weight: 700;
}

.history-binding-filters span {
  color: #64748b;
  margin-left: 3px;
}

.history-binding-table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  background: #ffffff;
}

.history-binding-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 12px;
}

.history-binding-table th,
.history-binding-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}

.history-binding-table th {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  background: #f8fafc;
}

.history-binding-table tr:last-child td {
  border-bottom: 0;
}

.history-binding-table small {
  color: #64748b;
}

.weak-evidence-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  color: #92400e;
  background: #fffbeb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.history-evidence-cell {
  display: grid;
  gap: 3px;
  max-width: 360px;
}

.history-evidence-cell em {
  color: #92400e;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.history-evidence-cell strong {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.history-evidence-cell span,
.history-evidence-cell small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-binding-table th:last-child,
.history-binding-table td.history-action-cell {
  width: 178px;
  min-width: 178px;
}

.history-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.history-reject-row td {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}

.history-reject-panel {
  display: grid;
  grid-template-columns: 88px minmax(240px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.history-reject-panel strong {
  color: #9a3412;
  font-size: 12px;
}

.history-reject-panel textarea {
  min-height: 42px;
  resize: vertical;
  border: 1px solid #fdba74;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.history-modify-row td {
  background: #f0fdfa;
  border-bottom: 1px solid #99d6cf;
}

.history-modify-panel {
  display: grid;
  grid-template-columns: 88px minmax(150px, 190px) minmax(260px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.history-modify-panel strong {
  color: #0f766e;
  font-size: 12px;
  align-self: center;
}

.history-modify-panel label {
  display: grid;
  gap: 4px;
}

.history-modify-panel label span {
  color: #64748b;
  font-size: 11px;
}

.history-modify-panel select,
.history-modify-panel textarea {
  border: 1px solid #99d6cf;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
}

.history-modify-panel textarea {
  min-height: 42px;
  resize: vertical;
  line-height: 1.4;
}

.history-context-card {
  border: 1px solid #c7ded9;
  background: #f7fbfa;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.history-context-card p {
  margin: 8px 0 4px;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

.history-context-card small {
  color: #64748b;
  font-size: 12px;
}

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

.history-context-grid div {
  border: 1px solid #dbe3ee;
  background: #ffffff;
  border-radius: 6px;
  padding: 7px 8px;
}

.history-context-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 3px;
}

.history-context-grid strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.history-binding-empty {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
}

.mini-button {
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  line-height: 26px;
}

.mini-button.primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.mini-button.danger {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.binding-row-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #dbe3ee;
  border-radius: 5px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
}

.binding-row-status.sent {
  border-color: #99d6cf;
  color: #0f766e;
  background: #e6f5f1;
}

.binding-row-status.blocked {
  border-color: #fecdca;
  color: #b42318;
  background: #fff5f5;
}

.funnel-step {
  position: relative;
  min-height: 42px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  text-align: left;
}

.funnel-step span,
.funnel-step strong {
  position: relative;
  z-index: 1;
  display: block;
}

.funnel-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.funnel-step strong {
  margin-top: 3px;
  font-size: 18px;
}

.funnel-step i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}

.funnel-step.active {
  border-color: var(--accent);
  background: #f3fbf9;
}

.sales-source-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.sales-source-tabs button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.sales-source-tabs button.active {
  border-color: var(--accent);
  background: #eef8f6;
  color: #0f766e;
}

.sales-source-tabs strong {
  font-size: 16px;
}

.sales-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(132px, 178px));
  gap: 6px;
  margin-bottom: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.sales-toolbar input,
.sales-toolbar select {
  width: 100%;
}

.action-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(6, minmax(112px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.action-toolbar input,
.action-toolbar select {
  width: 100%;
  min-height: 32px;
  border-radius: 6px;
  font-size: 12px;
}

.compact-toolbar {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.compact-toolbar input {
  min-height: 34px;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}

.filter-hint {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  padding: 8px 10px;
}

.sales-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 8px;
  align-items: start;
}

.sales-robot-status {
  margin-bottom: 8px;
}

.robot-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

.robot-status-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.robot-status-main strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.robot-status-main span {
  color: #64748b;
  font-size: 12px;
}

.robot-status-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.robot-status-metrics span,
.robot-action-chip {
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.robot-status-metrics span {
  padding: 4px 7px;
}

.robot-status-metrics b {
  color: #0f766e;
}

.robot-status-actions {
  flex: 0 0 auto;
}

.sales-kpi-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.sales-kpi-card,
.sales-kpi-improvements {
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #ffffff;
}

.sales-kpi-card {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border-left: 3px solid #059669;
}

.sales-kpi-card.warn {
  border-left-color: #d97706;
}

.sales-kpi-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sales-kpi-card-head strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-kpi-card-head span {
  color: #475569;
  font-size: 11px;
  white-space: nowrap;
}

.sales-kpi-progress {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
}

.sales-kpi-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.sales-kpi-card.warn .sales-kpi-progress i {
  background: #d97706;
}

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

.sales-kpi-grid span {
  overflow: hidden;
  padding: 3px 5px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-kpi-grid b {
  color: #0f172a;
}

.sales-kpi-improvements {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 8px;
}

.sales-kpi-improvements-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sales-kpi-improvements-head strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-kpi-improvements-head span {
  color: #64748b;
  font-size: 11px;
}

.sales-kpi-improvement-list {
  display: grid;
  gap: 4px;
}

.sales-kpi-improvement {
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.sales-kpi-improvement div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sales-kpi-improvement strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-kpi-improvement span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 11px;
}

.sales-kpi-improvement p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sales-command-board {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #d7dee8;
  border-left: 3px solid #0f766e;
  border-radius: 6px;
  background: #ffffff;
}

.sales-command-board.blocked_by_result_recovery,
.sales-command-board.blocked_by_data_quality {
  border-left-color: #d97706;
}

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

.sales-command-head strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
}

.sales-command-head span,
.sales-command-head small,
.sales-command-board p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.sales-command-metrics,
.sales-command-bottlenecks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sales-command-metrics span,
.sales-command-bottlenecks button {
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
}

.sales-command-metrics span {
  padding: 4px 6px;
}

.sales-command-metrics b,
.sales-command-bottlenecks b {
  color: #0f172a;
}

.sales-command-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.9fr);
  gap: 7px;
}

.sales-command-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 11px;
}

.sales-command-table th,
.sales-command-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  white-space: nowrap;
}

.sales-command-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

.sales-command-table td {
  color: #1f2937;
}

.sales-command-next {
  display: grid;
  gap: 5px;
}

.sales-command-next h4 {
  margin: 0;
  color: #0f172a;
  font-size: 12px;
}

.sales-command-next button {
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
  text-align: left;
}

.sales-command-next button:hover,
.sales-command-bottlenecks button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sales-command-next span,
.sales-command-next small,
.sales-command-next em,
.sales-command-bottlenecks span,
.sales-command-bottlenecks small {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.sales-command-next strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-command-bottlenecks button {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 5px 7px;
  text-align: left;
}

.sales-command-bottlenecks button.high {
  border-color: #fed7aa;
  background: #fff7ed;
}

.sales-result-driver {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #d7dee8;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  background: #ffffff;
}

.sales-result-driver.needs_dispatch,
.sales-result-driver.escalation_due,
.sales-result-driver.due_now {
  border-left-color: #d97706;
}

.missing-group-board {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #fed7aa;
  border-left: 3px solid #ea580c;
  border-radius: 6px;
  background: #fff7ed;
}

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

.missing-group-head strong {
  display: block;
  color: #7c2d12;
  font-size: 13px;
}

.missing-group-head span,
.missing-group-head small,
.missing-group-list span,
.missing-group-list small {
  color: #9a3412;
  font-size: 11px;
}

.missing-group-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.missing-group-metrics span,
.missing-group-command {
  border: 1px solid #fed7aa;
  border-radius: 5px;
  background: #ffffff;
}

.missing-group-metrics span {
  padding: 4px 7px;
  color: #7c2d12;
  font-size: 11px;
}

.missing-group-metrics b {
  color: #c2410c;
}

.missing-group-command {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
}

.missing-group-command span {
  color: #7c2d12;
  font-size: 11px;
  font-weight: 700;
}

.missing-group-command code {
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.missing-group-list {
  display: grid;
  gap: 5px;
}

.missing-group-list button {
  display: grid;
  gap: 3px;
  padding: 6px 7px;
  border: 1px solid #fed7aa;
  border-radius: 5px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.missing-group-list button:hover {
  border-color: #fb923c;
}

.missing-group-list strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-result-driver-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  gap: 7px;
}

.sales-result-driver-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.sales-result-driver-actions button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}

.sales-result-driver-grid h4 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 12px;
}

.sales-result-owner,
.sales-result-item {
  display: grid;
  width: 100%;
  gap: 2px;
  margin-bottom: 5px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
  text-align: left;
}

.sales-result-owner:hover,
.sales-result-item:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sales-result-item.due {
  border-color: #fed7aa;
  background: #fff7ed;
}

.sales-result-owner strong,
.sales-result-item strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-result-owner span,
.sales-result-item span,
.sales-result-item small,
.sales-result-item em,
.sales-result-driver p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.sales-result-packets {
  display: grid;
  gap: 6px;
}

.sales-result-packets h4 {
  margin: 0;
  color: #0f172a;
  font-size: 12px;
}

.sales-result-packets article {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.sales-result-packets article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sales-result-packets strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-result-packets span {
  color: #64748b;
  font-size: 11px;
}

.sales-result-packets pre {
  overflow: auto;
  max-height: 130px;
  margin: 0;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.sales-result-packets button {
  justify-self: start;
}

@media (max-width: 760px) {
  .sales-command-grid {
    grid-template-columns: 1fr;
  }

  .sales-result-driver-grid {
    grid-template-columns: 1fr;
  }

  .sales-kpi-board {
    grid-template-columns: 1fr;
  }
}

.sales-target-plan {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #d7dee8;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  background: #ffffff;
}

.sales-target-plan.below_target {
  border-left-color: #d97706;
}

.sales-target-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sales-target-plan-head strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
}

.sales-target-plan-head span {
  color: #64748b;
  font-size: 11px;
}

.sales-target-plan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 4px;
  min-width: min(100%, 420px);
}

.sales-target-plan-metrics span,
.sales-target-plan-pools article {
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.sales-target-plan-metrics span {
  padding: 4px 6px;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.sales-target-plan-metrics b {
  color: #0f172a;
}

.sales-target-plan-pools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.sales-target-plan-pools article {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  padding: 6px;
}

.sales-target-plan-pools strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-target-plan-pools span {
  justify-self: end;
  color: #334155;
  font-size: 11px;
}

.sales-target-plan-pools em,
.sales-target-plan-pools small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-target-plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8px;
}

.sales-target-plan-body h4 {
  margin: 0 0 5px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.sales-target-step,
.sales-target-priority {
  display: grid;
  width: 100%;
  margin-bottom: 4px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sales-target-step:hover,
.sales-target-priority:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sales-target-step span,
.sales-target-priority span,
.sales-target-step small,
.sales-target-priority small,
.sales-target-step em,
.sales-target-priority em {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-target-step strong,
.sales-target-priority strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-target-empty {
  margin: 0;
  padding: 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 5px;
  color: #64748b;
  font-size: 11px;
}

.signing-gap-sprint {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fffaf3;
}

.signing-gap-head,
.signing-gap-pool-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.signing-gap-head strong,
.signing-gap-pool-head strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
}

.signing-gap-head span,
.signing-gap-head small,
.signing-gap-pool-head span,
.signing-gap-pool p,
.signing-gap-pool em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.signing-gap-head small {
  max-width: 48%;
  text-align: right;
}

.signing-gap-pool {
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid #fde7c7;
  border-radius: 5px;
  background: #ffffff;
}

.signing-gap-pool p {
  margin: 0;
}

.signing-gap-candidates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.signing-gap-candidate {
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.signing-gap-candidate:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.signing-gap-candidate span,
.signing-gap-candidate small,
.signing-gap-candidate em,
.signing-gap-candidate b {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signing-gap-candidate strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signing-gap-candidate b {
  color: #92400e;
}

.signing-gap-recovery-board {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #f8fbff;
}

.signing-gap-recovery-board.overdue {
  border-color: #fecaca;
  background: #fffafa;
}

.data-quality-repair-board {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #fafbff;
}

.data-quality-repair-board.overdue {
  border-color: #fecaca;
  background: #fffafa;
}

.signing-progress-ledger {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #fbfffd;
}

.signing-gap-recovery-pools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.data-quality-repair-pools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.signing-progress-ledger-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.signing-gap-recovery-pools article {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.data-quality-repair-pools article {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.signing-gap-recovery-pools article > button,
.data-quality-repair-pools article > button,
.data-quality-repair-item,
.signing-progress-ledger-item,
.signing-gap-recovery-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #dbeafe;
  border-radius: 5px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.data-quality-repair-pools article > button,
.data-quality-repair-item {
  border-color: #e0e7ff;
}

.signing-progress-ledger-item {
  border-color: #dcfce7;
}

.signing-progress-ledger-item.won_review {
  border-color: #86efac;
  background: #f0fdf4;
}

.signing-progress-ledger-item.contract_review,
.signing-progress-ledger-item.quote_review {
  border-color: #fde68a;
  background: #fffbeb;
}

.signing-gap-recovery-item.overdue {
  border-color: #fecaca;
  background: #fff7f7;
}

.data-quality-repair-item.overdue {
  border-color: #fecaca;
  background: #fff7f7;
}

.signing-gap-recovery-pools article > button:hover,
.data-quality-repair-pools article > button:hover,
.data-quality-repair-item:hover,
.signing-progress-ledger-item:hover,
.signing-gap-recovery-item:hover {
  border-color: #3b82f6;
}

.signing-gap-recovery-pools strong,
.data-quality-repair-pools strong,
.data-quality-repair-item strong,
.signing-progress-ledger-item strong,
.signing-gap-recovery-item strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signing-gap-recovery-pools span,
.signing-gap-recovery-pools small,
.data-quality-repair-pools span,
.data-quality-repair-pools small,
.data-quality-repair-item span,
.data-quality-repair-item small,
.data-quality-repair-item em,
.data-quality-repair-board p,
.signing-progress-ledger-item span,
.signing-progress-ledger-item small,
.signing-progress-ledger-item em,
.signing-progress-ledger p,
.signing-gap-recovery-item span,
.signing-gap-recovery-item small,
.signing-gap-recovery-item em,
.signing-gap-recovery-board p {
  overflow: hidden;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-review-triage {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.sales-review-triage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sales-review-triage-head strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-review-triage-head span,
.sales-review-triage p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.sales-review-buckets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.sales-review-buckets button,
.sales-review-top-item {
  display: grid;
  width: 100%;
  padding: 5px 6px;
  border: 1px solid #dbe4ef;
  border-radius: 5px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sales-review-buckets button:hover,
.sales-review-top-item:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sales-review-buckets strong,
.sales-review-top-item strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-review-buckets span,
.sales-review-buckets small,
.sales-review-top-item span,
.sales-review-top-item small,
.sales-review-top-item em {
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-review-buckets span {
  color: #b45309;
  font-weight: 700;
}

.sales-review-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.sales-review-batch-pack {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid #dbe4ef;
  border-radius: 5px;
  background: #ffffff;
}

.sales-review-batch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sales-review-batch-head strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-review-batch-head span,
.sales-review-batch-pack p,
.sales-review-batch-policy {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.sales-review-batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.sales-review-batch-card {
  display: grid;
  width: 100%;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 5px;
  background: #f8fafc;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sales-review-batch-card.high {
  border-left-color: #dc2626;
}

.sales-review-batch-card.medium {
  border-left-color: #d97706;
}

.sales-review-batch-card.low {
  border-left-color: #64748b;
}

.sales-review-batch-card:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sales-review-batch-card strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-review-batch-card span,
.sales-review-batch-card small,
.sales-review-batch-card em {
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-batch-context {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid #dbe4ef;
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
}

.review-batch-context.high {
  border-left-color: #dc2626;
}

.review-batch-context.medium {
  border-left-color: #d97706;
}

.review-batch-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.review-batch-context-head strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.review-batch-context-head span,
.review-batch-context p,
.review-batch-context small {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.review-batch-context-head button {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.review-batch-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.review-batch-context-grid div {
  min-width: 0;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.review-batch-context-grid span {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 10.5px;
}

.review-batch-context-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.35;
}

.review-batch-context ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  margin: 0;
  padding-left: 16px;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.robot-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.robot-execution-review {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 8px;
  border: 1px solid #d7dee8;
  border-left: 3px solid #64748b;
  border-radius: 6px;
  background: #ffffff;
}

.robot-execution-review.context_recovery_required {
  border-left-color: #dc2626;
}

.robot-execution-review.ready_with_human_gates {
  border-left-color: #d97706;
}

.robot-execution-review.ready_for_ai_execution {
  border-left-color: #059669;
}

.robot-execution-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.robot-execution-head strong {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 12px;
}

.robot-execution-head span {
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.robot-execution-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.robot-execution-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
}

.robot-execution-grid span {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.robot-execution-grid b {
  color: #0f172a;
  font-size: 12px;
}

.sales-independence-audit {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 8px;
  border: 1px solid #d7dee8;
  border-left: 3px solid #64748b;
  border-radius: 6px;
  background: #ffffff;
}

.sales-independence-audit.ready {
  border-left-color: #059669;
}

.sales-independence-audit.needs_attention {
  border-left-color: #d97706;
}

.sales-independence-audit.blocked {
  border-left-color: #dc2626;
}

.sales-independence-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.sales-independence-head strong {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 12px;
}

.sales-independence-head span {
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-independence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.sales-independence-gate {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 5px;
  background: #f8fafc;
}

.sales-independence-gate.ok {
  border-left-color: #059669;
}

.sales-independence-gate.attention {
  border-left-color: #d97706;
}

.sales-independence-gate.blocked {
  border-left-color: #dc2626;
}

.sales-independence-gate div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.sales-independence-gate strong,
.sales-independence-gate span,
.sales-independence-gate p,
.sales-independence-gate small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-independence-gate strong {
  color: #0f172a;
  font-size: 11px;
}

.sales-independence-gate span {
  flex: 0 0 auto;
  color: #475569;
  font-size: 11px;
}

.sales-independence-gate p {
  margin: 4px 0 2px;
  color: #334155;
  font-size: 11px;
}

.sales-independence-gate small {
  color: #64748b;
  font-size: 10px;
}

.sales-independence-process {
  width: 100%;
  min-height: 24px;
  margin-top: 5px;
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.sales-independence-process:hover {
  border-color: #2563eb;
  background: #dbeafe;
}

.sales-independence-samples {
  display: grid;
  gap: 3px;
  margin-top: 5px;
}

.sales-independence-sample {
  display: grid;
  gap: 1px;
  width: 100%;
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid #dbe3ef;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sales-independence-sample:hover {
  border-color: #2563eb;
  background: #f8fbff;
}

.sales-independence-sample span,
.sales-independence-sample strong,
.sales-independence-sample small,
.sales-independence-sample em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-independence-sample span {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.sales-independence-sample strong {
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
}

.sales-independence-sample small,
.sales-independence-sample em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.sales-execution-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.sales-execution-focus section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.sales-execution-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.sales-execution-focus-head strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-execution-focus-head span {
  color: #64748b;
  font-size: 11px;
}

.sales-execution-focus-list {
  display: grid;
}

.sales-execution-focus-item {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sales-execution-focus-item:last-child {
  border-bottom: 0;
}

.sales-execution-focus-item:hover {
  background: #f8fafc;
}

.sales-execution-focus-item span,
.sales-execution-focus-item strong,
.sales-execution-focus-item small,
.sales-execution-focus-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-execution-focus-item span,
.sales-execution-focus-item small,
.sales-execution-focus-item em {
  color: #64748b;
  font-size: 11px;
}

.sales-execution-focus-item strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.sales-execution-focus-item em {
  color: #334155;
  font-style: normal;
}

.robot-action-chip {
  display: grid;
  gap: 2px;
  max-width: 220px;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
}

.robot-action-chip span {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.robot-action-chip small {
  color: #64748b;
  font-size: 11px;
}

.sales-task-board {
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 8px;
  padding: 8px;
}

.task-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.task-board-head > div:first-child {
  display: grid;
  gap: 2px;
}

.task-board-head strong {
  font-size: 13px;
}

.task-board-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.task-board-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-board-actions button,
.task-check-all {
  min-height: 28px;
  font-size: 12px;
}

.task-check-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
}

.task-check-all input {
  width: auto;
}

.task-board-table-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
}

.task-board-table {
  min-width: 1760px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.task-board-table th,
.task-board-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-board-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.task-board-table th:first-child,
.task-board-table td:first-child {
  width: 38px;
  text-align: center;
}

.task-board-table th:nth-child(2),
.task-board-table td:nth-child(2) {
  width: 82px;
  text-align: center;
}

.task-board-table th:nth-child(3),
.task-board-table td:nth-child(3) {
  width: 62px;
}

.task-board-table th:nth-child(4),
.task-board-table td:nth-child(4) {
  width: 96px;
}

.task-board-table th:nth-child(5),
.task-board-table td:nth-child(5) {
  width: 78px;
}

.task-board-table th:nth-child(6),
.task-board-table td:nth-child(6) {
  width: 92px;
}

.task-board-table th:nth-child(7),
.task-board-table td:nth-child(7) {
  width: 120px;
}

.task-board-table th:nth-child(8),
.task-board-table td:nth-child(8) {
  width: 170px;
}

.task-board-table th:nth-child(9),
.task-board-table td:nth-child(9) {
  width: 106px;
}

.task-board-table th:nth-child(10),
.task-board-table td:nth-child(10) {
  width: 92px;
}

.task-board-table th:nth-child(11),
.task-board-table td:nth-child(11) {
  width: 116px;
}

.task-board-table th:nth-child(12),
.task-board-table td:nth-child(12) {
  width: 116px;
}

.task-board-table th:nth-child(13),
.task-board-table td:nth-child(13) {
  width: 280px;
}

.task-board-table th:nth-child(14),
.task-board-table td:nth-child(14) {
  width: 300px;
}

.task-board-table th:nth-child(15),
.task-board-table td:nth-child(15) {
  width: 150px;
}

.task-board-table th:nth-child(16),
.task-board-table td:nth-child(16) {
  width: 170px;
}

.task-inline-action {
  min-height: 22px;
  padding: 2px 8px;
  font-size: 11px;
}

.task-inline-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #99d6cf;
  border-radius: 4px;
  background: #e6f5f1;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.task-board-table tr {
  cursor: pointer;
}

.task-board-table tbody tr:hover {
  background: #f8fbff;
}

.task-board-table input[type="checkbox"] {
  width: auto;
}

.task-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.task-pill.ok {
  border-color: #99d6cf;
  background: #e6f5f1;
  color: #0f766e;
}

.task-pill.review {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.task-pill.warn {
  border-color: #fedf89;
  background: #fffbeb;
  color: #92400e;
}

.task-pill.draft {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.task-pill.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.todo-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.todo-summary-card {
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.todo-summary-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.todo-summary-card strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
}

.todo-summary-card small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
}

.review-focus-panel {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fffaf5;
}

.todo-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  background: #fff7f6;
  color: #7a271a;
  font-size: 13px;
}

.todo-alert-banner strong {
  color: #b42318;
  font-size: 14px;
}

.todo-alert-banner span {
  color: #7a271a;
}

.todo-alert-banner.quiet {
  border-color: #dfe7ef;
  background: #f8fafc;
  color: #64748b;
}

.review-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.review-focus-head strong {
  display: block;
  color: #9a3412;
  font-size: 14px;
}

.review-focus-head span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.review-focus-head div span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-weight: 600;
}

.review-focus-list {
  display: grid;
  gap: 8px;
}

.review-focus-card {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

.review-focus-card.active {
  border-color: #0f766e;
  box-shadow: inset 3px 0 0 #0f766e;
}

.review-focus-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.review-focus-title strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-focus-title small {
  margin-left: auto;
  color: #b42318;
  font-size: 11px;
  font-weight: 800;
}

.review-message-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.review-message-pair div,
.customer-message-box {
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.review-message-pair span,
.customer-message-box strong {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.review-message-pair p,
.customer-message-box p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: pre-wrap;
}

.customer-message-box {
  margin-bottom: 10px;
}

.review-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.todo-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
}

.todo-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.todo-select-all input,
.action-table input[type="checkbox"] {
  width: 15px;
  min-height: 15px;
  margin: 0;
  padding: 0;
}

.todo-selected-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.todo-batch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.todo-batch-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.action-workbench {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.selected-action-block {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  margin-bottom: 10px;
}

.selected-action-label {
  margin-bottom: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.action-table-wrap {
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 300px);
  overflow: auto;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.action-table {
  min-width: 1380px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
  line-height: 1.25;
}

.action-table th,
.action-table td {
  padding: 5px 7px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-table td {
  height: 38px;
}

.action-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  height: 32px;
  border-bottom: 1px solid #dfe7ef;
}

.action-table tbody tr {
  cursor: pointer;
}

.action-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.action-table tbody tr:hover td {
  background: #f1f7ff;
}

.action-table .selected-row td {
  background: #e9f7f4;
  box-shadow: inset 3px 0 0 #0f766e;
}

.action-table th:nth-child(1),
.action-table td:nth-child(1) {
  width: 34px;
  text-align: center;
}

.action-table th:nth-child(2),
.action-table td:nth-child(2) {
  width: 86px;
}

.action-table th:nth-child(3),
.action-table td:nth-child(3) {
  width: 58px;
}

.action-table th:nth-child(4),
.action-table td:nth-child(4) {
  width: 160px;
}

.action-table th:nth-child(5),
.action-table td:nth-child(5) {
  width: 180px;
}

.action-table th:nth-child(6),
.action-table td:nth-child(6) {
  width: 210px;
}

.action-table th:nth-child(7),
.action-table td:nth-child(7) {
  width: 310px;
}

.action-table th:nth-child(10),
.action-table td:nth-child(10) {
  width: 122px;
}

.action-table th:nth-child(13),
.action-table td:nth-child(13) {
  width: 122px;
}

.todo-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.todo-row-actions .mini-button {
  min-width: 42px;
  height: 24px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 22px;
}

.todo-action-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.todo-action-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-action-cell span {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-kind,
.todo-status {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.todo-kind.review {
  background: #eef2ff;
  color: #3730a3;
}

.todo-kind.sales {
  background: #ecfdf3;
  color: #047857;
}

.todo-kind.hub {
  background: #f0f9ff;
  color: #0369a1;
}

.todo-kind.delivery {
  background: #fff7ed;
  color: #9a3412;
}

.todo-kind.default {
  background: #f1f5f9;
  color: #334155;
}

.todo-status.pending,
.todo-status.open {
  background: #fffbeb;
  color: #92400e;
}

.todo-status.danger {
  background: #fef2f2;
  color: #b42318;
}

.todo-status.done {
  background: #ecfdf3;
  color: #047857;
}

.todo-row-urgent td {
  background: #fffafa;
}

.todo-row-review td:first-child {
  box-shadow: inset 3px 0 0 #6366f1;
}

.action-detail-panel {
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.action-detail-panel .detail-title {
  margin: -12px -12px 10px;
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.approval-content {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #d7ede8;
  border-left: 3px solid #0f766e;
  border-radius: 6px;
  background: #fbfefd;
}

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

.approval-content strong {
  font-size: 13px;
}

.file-zone-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-left: 3px solid #fc9501;
  border-radius: 6px;
  background: #fffaf3;
}

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

.file-zone-head div {
  display: grid;
  gap: 2px;
}

.file-zone-head strong {
  font-size: 14px;
}

.file-zone-head span,
.file-zone-head small {
  color: #7c2d12;
  font-size: 12px;
}

.file-zone-actions {
  display: grid;
  gap: 8px;
}

.file-zone-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #ffffff;
}

.file-zone-file {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.file-zone-file strong {
  color: #111827;
  font-size: 13px;
}

.file-zone-file span {
  color: #7c2d12;
  font-size: 12px;
}

.file-inline-link {
  max-width: 100%;
  overflow: hidden;
  color: #2563eb;
  font-size: 12px;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.file-zone-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 6px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.file-button.primary {
  border-color: #fc9501;
  background: #fc9501;
  color: #111827;
}

.file-button small {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.82;
}

.file-zone-empty {
  margin: 0;
  color: #7c2d12;
  font-size: 12px;
}

.file-zone-list {
  display: grid;
  gap: 5px;
}

.file-zone-list strong {
  font-size: 12px;
  color: #7c2d12;
}

.file-zone-list ul {
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.55;
}

.file-zone-list.muted {
  border-top: 1px solid #fed7aa;
  padding-top: 8px;
}

.contract-info-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #c7d2fe;
  border-left: 3px solid #4f46e5;
  border-radius: 6px;
  background: #f8faff;
}

.contract-info-head {
  display: grid;
  gap: 2px;
}

.contract-info-head strong {
  color: #111827;
  font-size: 14px;
}

.contract-info-head span {
  color: #475569;
  font-size: 12px;
}

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

.contract-info-grid label {
  display: grid;
  gap: 4px;
}

.contract-info-grid label.full {
  grid-column: 1 / -1;
}

.contract-info-grid span {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.contract-info-grid input,
.contract-info-grid textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
}

.contract-info-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.contract-info-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contract-info-actions small {
  color: #64748b;
  font-size: 12px;
}

.approval-full-text {
  width: 100%;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: 13px;
  color: #0f172a;
}

.secondary-button.full-width {
  width: 100%;
  max-width: 100%;
  margin: 2px 0 10px;
}

.followup-detail-page {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #fbfdff;
}

.task-priority {
  width: 25px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
}

.task-priority.p0 {
  background: #fee2e2;
  color: #991b1b;
}

.task-priority.p1 {
  background: #fef3c7;
  color: #92400e;
}

.task-priority.p2,
.task-priority.p3 {
  background: #e0f2fe;
  color: #075985;
}

.task-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 5px;
}

.sales-table-wrap {
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  overflow-x: auto;
  background: #ffffff;
  max-height: calc(100vh - 292px);
  min-height: 430px;
  overflow-y: auto;
}

.sales-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  table-layout: fixed;
  line-height: 1.25;
}

.sales-table th,
.sales-table td {
  padding: 4px 6px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.sales-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  height: 28px;
  border-bottom-color: #cbd5e1;
}

.sales-table strong {
  font-size: 11px;
  line-height: 1.25;
}

.sales-table th:nth-child(1),
.sales-table td:nth-child(1) {
  width: 106px;
}

.sales-table th:nth-child(2),
.sales-table td:nth-child(2) {
  width: 17%;
}

.sales-table th:nth-child(3),
.sales-table td:nth-child(3) {
  width: 25%;
}

.sales-table th:nth-child(4),
.sales-table td:nth-child(4) {
  width: 96px;
}

.sales-table th:nth-child(5),
.sales-table td:nth-child(5) {
  width: 108px;
}

.sales-table th:nth-child(6),
.sales-table td:nth-child(6) {
  width: 118px;
}

.sales-table th:nth-child(7),
.sales-table td:nth-child(7) {
  width: auto;
}

.sales-table tr:last-child td {
  border-bottom: 0;
}

.sales-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.sales-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.sales-table tbody tr:hover td {
  background: #edf6ff;
}

.sales-table .selected-row td {
  background: #e8f7f4;
  box-shadow: inset 2px 0 0 var(--accent);
}

.table-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 4px 9px;
  border: 1px solid #c6d7ea;
  border-radius: 6px;
  background: #ffffff;
  color: #1f5f9f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.table-inline-action:hover {
  border-color: #6aa3d8;
  background: #eff7ff;
}

.action-cell {
  max-width: 100%;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-main,
.cell-sub {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 500;
}

.sheet-status {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.sheet-status span,
.sheet-status i {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-status span {
  max-width: 70%;
}

.sheet-status i {
  max-width: 42%;
  padding: 1px 4px;
  border-radius: 3px;
  background: #eef2f7;
  color: #64748b;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.sheet-status i.high {
  background: #fff7ed;
  color: var(--warning);
}

.sheet-status i.sent {
  background: #ecfdf3;
  color: var(--ok);
}

.sheet-status i.blocked,
.sheet-status i.danger {
  background: #fef3f2;
  color: var(--danger);
}

.merge-note {
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  min-width: 58px;
  min-height: 30px;
  padding: 0 10px;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.alignment-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.alignment-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.alignment-table th,
.alignment-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
  line-height: 1.25;
}

.alignment-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.alignment-table tr:nth-child(even) td {
  background: #fbfdff;
}

.alignment-table tr:hover td {
  background: #edf6ff;
}

.sales-detail-panel {
  min-height: 0;
  position: sticky;
  top: 12px;
}

.accounting-workbench {
  display: grid;
  gap: 8px;
}

.accounting-workbench.hidden {
  display: none;
}

.accounting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 10px;
  align-items: start;
}

.accounting-table-wrap {
  min-height: 430px;
  max-height: calc(100vh - 320px);
  overflow: auto;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #ffffff;
}

.accounting-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 11px;
  line-height: 1.25;
}

.accounting-table th,
.accounting-table td {
  padding: 5px 7px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.accounting-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 29px;
  background: #eef2f7;
  border-bottom-color: #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.accounting-table tbody tr {
  cursor: pointer;
}

.accounting-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.accounting-table tbody tr:hover td {
  background: #edf6ff;
}

.accounting-table tbody tr.selected td {
  background: #e8f7f4;
  box-shadow: inset 2px 0 0 var(--accent);
}

.accounting-table th:nth-child(1),
.accounting-table td:nth-child(1) {
  width: 22%;
}

.accounting-table th:nth-child(2),
.accounting-table td:nth-child(2) {
  width: 14%;
}

.accounting-table th:nth-child(3),
.accounting-table td:nth-child(3) {
  width: 92px;
}

.accounting-table th:nth-child(4),
.accounting-table td:nth-child(4) {
  width: 22%;
}

.accounting-table th:nth-child(5),
.accounting-table td:nth-child(5) {
  width: 132px;
}

.accounting-detail-panel {
  position: sticky;
  top: 12px;
  min-height: 260px;
  max-height: calc(100vh - 320px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.accounting-detail-panel .empty,
.accounting-detail-panel .detail-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
}

.accounting-detail-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.accounting-detail-head span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eef6f5;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.accounting-detail-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
}

.accounting-detail-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.accounting-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.accounting-detail-grid div {
  min-width: 0;
  padding: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fbfdff;
}

.accounting-detail-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.accounting-detail-grid strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-detail-section {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.accounting-detail-section:last-child {
  border-bottom: 0;
}

.accounting-detail-section h4 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 13px;
}

.accounting-detail-section p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

.accounting-material-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.accounting-material-strip span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid #dbe3ee;
  border-radius: 5px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.accounting-task-line {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fbfdff;
}

.accounting-task-line + .accounting-task-line {
  margin-top: 6px;
}

.accounting-task-line strong {
  color: #0f172a;
  font-size: 12px;
}

.accounting-task-line span,
.accounting-task-line em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.danger-text {
  color: var(--danger) !important;
}

.detail-empty,
.sales-detail {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.detail-empty {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
}

.sales-detail {
  padding: 11px;
  max-height: calc(100vh - 292px);
  overflow: auto;
}

.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.detail-title strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.25;
}

.detail-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.delivery-robot-workbench {
  margin: 10px 0 12px;
}

.delivery-command-center {
  margin: 12px 0 12px;
}

.delivery-detail-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

.delivery-detail-empty strong {
  color: #10233f;
  font-size: 14px;
}

.delivery-detail-empty span {
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.delivery-case-board {
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.delivery-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 12px;
}

.delivery-case-head h3 {
  margin: 4px 0;
  color: #10233f;
  font-size: 22px;
  line-height: 1.2;
}

.delivery-case-head p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.delivery-case-status {
  padding: 12px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fafc;
}

.delivery-case-status.blocked {
  border-color: #fecaca;
  background: #fff7f7;
}

.delivery-case-status.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.delivery-case-status.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.delivery-case-status span,
.delivery-case-status small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.delivery-case-status strong {
  display: block;
  margin: 4px 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.delivery-case-status.blocked strong {
  color: #dc2626;
}

.delivery-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
}

.delivery-node-list {
  display: grid;
  gap: 8px;
}

.delivery-case-node {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 170px;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.delivery-case-node.done {
  background: #f8fff9;
}

.delivery-case-node.active {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.delivery-case-node.blocked {
  border-color: #fecaca;
  background: #fffafa;
}

.delivery-node-status {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 6px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.delivery-case-node.done .delivery-node-status {
  background: #dcfce7;
  color: #15803d;
}

.delivery-case-node.active .delivery-node-status {
  background: #dbeafe;
  color: #1d4ed8;
}

.delivery-case-node.blocked .delivery-node-status {
  background: #fee2e2;
  color: #dc2626;
}

.delivery-node-main strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.delivery-node-main span,
.delivery-node-meta span,
.delivery-node-meta small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.delivery-node-meta {
  text-align: right;
}

.delivery-node-meta span {
  color: #334155;
  font-weight: 800;
}

.delivery-case-aside {
  display: grid;
  align-content: start;
  gap: 10px;
}

.delivery-next-action.compact {
  margin-top: 0;
}

.delivery-case-facts {
  display: grid;
  gap: 8px;
}

.delivery-case-facts span {
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.delivery-case-facts b {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
}

.delivery-escalation-plan {
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.delivery-escalation-plan strong {
  display: block;
  margin-bottom: 4px;
  color: #9a3412;
}

.delivery-activity-log {
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
}

.delivery-activity-log summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.delivery-activity-list {
  padding: 0 12px 12px;
}

.delivery-activity-text {
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
}

.delivery-current-summary {
  padding: 8px 0 10px;
  border-bottom: 1px solid #dbe5f0;
}

.delivery-current-summary > strong,
.delivery-activity-history > strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 12px;
}

.delivery-current-summary p {
  margin: 4px 0;
  padding: 0;
  border-bottom: 0;
}

.delivery-current-summary b {
  color: #1d4ed8;
}

.delivery-activity-history {
  padding-top: 8px;
}

.delivery-activity-text p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

.delivery-activity-text p:last-child {
  border-bottom: 0;
}

.delivery-activity-text b {
  color: #0f172a;
  margin-right: 4px;
}

.delivery-activity-text time {
  margin-right: 6px;
  color: #64748b;
}

.delivery-activity-text span {
  color: #0f172a;
  font-weight: 800;
}

.delivery-activity-text em {
  color: #64748b;
  font-style: normal;
}

.delivery-monitor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.delivery-monitor-primary h3 {
  margin: 4px 0 4px;
  color: #10233f;
  font-size: 22px;
  line-height: 1.2;
}

.delivery-monitor-primary p {
  max-width: 980px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.delivery-monitor-eyebrow {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.delivery-progress-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.delivery-progress-strip span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.delivery-progress-strip span.done {
  border-color: #b7d7ff;
  background: #eaf4ff;
  color: #1d4ed8;
}

.delivery-progress-strip span.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.delivery-monitor-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.delivery-monitor-facts span,
.delivery-side-row,
.delivery-owner-row {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.delivery-monitor-facts span {
  min-height: 52px;
  padding: 9px 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.delivery-monitor-facts b {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
}

.delivery-next-action {
  margin-top: 10px;
  padding: 12px;
  border-left: 4px solid #2563eb;
  background: #eef6ff;
  color: #1e293b;
  line-height: 1.45;
}

.delivery-next-action strong {
  display: block;
  margin-bottom: 3px;
  color: #1d4ed8;
  font-size: 12px;
}

.delivery-monitor-side {
  display: grid;
  gap: 8px;
}

.delivery-side-row {
  padding: 12px;
}

.delivery-side-row span,
.delivery-side-row small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.delivery-side-row strong {
  display: block;
  margin: 3px 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.delivery-side-row.danger {
  border-color: #fecaca;
  background: #fff7f7;
}

.delivery-side-row.danger strong {
  color: #dc2626;
}

.delivery-monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
  margin-top: 12px;
}

.delivery-monitor-section {
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.delivery-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.delivery-section-title strong {
  color: #0f172a;
}

.delivery-section-title span {
  color: #64748b;
  font-size: 12px;
}

.delivery-attention-list,
.delivery-owner-board {
  display: grid;
  gap: 8px;
}

.delivery-attention-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px 12px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fbfdff;
}

.delivery-attention-item span,
.delivery-attention-item small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.delivery-attention-item b {
  color: #dc2626;
  font-size: 13px;
}

.delivery-attention-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.delivery-owner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 76px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 12px;
}

.delivery-owner-row span {
  color: #0f172a;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-owner-row strong {
  text-align: right;
  color: #1d4ed8;
}

.delivery-owner-row em {
  color: #64748b;
  font-style: normal;
  text-align: right;
}

.delivery-soft-empty {
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.delivery-filter-bar {
  margin: 8px 0 10px;
  border: 1px solid #d8e1ec;
  background: #f8fafc;
}

.delivery-filter-bar input[type="search"] {
  min-width: 300px;
  flex: 1 1 340px;
}

.delivery-filter-bar select {
  min-width: 128px;
}

.delivery-filter-count {
  margin-left: auto;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.delivery-robot-details {
  margin-top: 14px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #f8fafc;
}

.delivery-robot-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.delivery-robot-details[open] {
  background: #ffffff;
}

.delivery-robot-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.delivery-robot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.delivery-robot-head h3 {
  margin: 2px 0 4px;
  font-size: 16px;
}

.delivery-robot-head p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section-kicker,
.delivery-robot-column-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.delivery-robot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 6px;
  max-width: 500px;
  min-width: 360px;
}

.delivery-robot-stats span {
  display: grid;
  gap: 2px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.delivery-robot-stats strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.delivery-robot-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.delivery-robot-toolbar button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.delivery-robot-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.delivery-pilot-process-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.delivery-pilot-process-result.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.delivery-pilot-process-result.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.delivery-pilot-process-result strong,
.delivery-pilot-process-result span,
.delivery-pilot-process-result small {
  font-size: 12px;
}

.delivery-pilot-process-result span,
.delivery-pilot-process-result small {
  color: var(--muted);
  font-weight: 700;
}

.delivery-robot-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.08fr);
  gap: 10px;
}

.delivery-robot-column {
  min-width: 0;
  border: 1px solid #e5edf5;
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px;
}

.delivery-robot-column-title {
  margin-bottom: 7px;
}

.delivery-robot-candidate,
.delivery-action-card {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px;
}

.delivery-robot-candidate {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 7px;
}

.delivery-robot-candidate strong,
.delivery-action-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-robot-candidate p {
  display: -webkit-box;
  margin: 2px 0 3px;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.delivery-robot-candidate button {
  min-width: 76px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.delivery-robot-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.delivery-readiness-result {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.delivery-robot-status-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.delivery-robot-status-result.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.delivery-robot-status-result.watch {
  border-color: #fde68a;
  background: #fffbeb;
}

.delivery-robot-status-result.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.delivery-operability-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.delivery-operability-result.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.delivery-operability-result.watch {
  border-color: #fde68a;
  background: #fffbeb;
}

.delivery-operability-result.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.delivery-operability-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.delivery-operability-head strong {
  font-size: 12px;
}

.delivery-operability-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.delivery-operability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.delivery-operability-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.76);
}

.delivery-operability-cell small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.delivery-operability-cell strong {
  color: #0f172a;
  font-size: 12px;
}

.delivery-operability-cell span {
  min-width: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-operability-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.delivery-operability-actions button {
  width: auto;
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
}

.delivery-owner-answer {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.44);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
}

.delivery-owner-answer > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.delivery-owner-answer b {
  font-size: 12px;
}

.delivery-owner-answer span,
.delivery-owner-answer small,
.delivery-owner-answer p {
  min-width: 0;
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-owner-answer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.delivery-owner-answer-metrics span {
  padding: 3px 6px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 4px;
  background: #f8fafc;
}

.delivery-playbook {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.44);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
}

.delivery-playbook-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.delivery-playbook-head b {
  color: #0f172a;
  font-size: 12px;
}

.delivery-playbook-head span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-playbook-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 5px;
  background: #fff;
}

.delivery-playbook-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 11px;
}

.delivery-playbook-table th,
.delivery-playbook-table td {
  padding: 6px 7px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  text-align: left;
  vertical-align: top;
}

.delivery-playbook-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  background: #f8fafc;
}

.delivery-playbook-table td {
  color: #334155;
  line-height: 1.35;
}

.delivery-playbook-table strong,
.delivery-playbook-table span,
.delivery-playbook-table small,
.delivery-playbook-table em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.delivery-playbook-table strong {
  color: #0f172a;
  font-size: 11px;
}

.delivery-playbook-table small,
.delivery-playbook-table span {
  color: #64748b;
}

.delivery-playbook-table em {
  width: fit-content;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #991b1b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  background: #fee2e2;
}

.delivery-operability-gates {
  border-color: #fecaca;
  background: rgba(255, 247, 247, 0.86);
}

.delivery-robot-status-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.delivery-robot-status-head strong {
  font-size: 12px;
}

.delivery-robot-status-head span,
.delivery-status-mini-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.delivery-robot-status-result p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.4;
}

.delivery-channel-binding-form {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
}

.delivery-channel-binding-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.delivery-channel-binding-head strong {
  font-size: 12px;
}

.delivery-channel-binding-head span,
.delivery-channel-binding-form label span {
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.delivery-channel-binding-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 7px;
}

.delivery-channel-binding-form label {
  display: grid;
  gap: 4px;
}

.delivery-channel-binding-form input,
.delivery-channel-binding-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
}

.delivery-channel-binding-form input {
  min-height: 30px;
  padding: 0 8px;
}

.delivery-channel-binding-form textarea {
  min-height: 48px;
  padding: 7px 8px;
  resize: vertical;
}

.delivery-status-mini-list {
  display: grid;
  gap: 4px;
  padding: 6px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.delivery-material-request-summary.watch {
  border-color: #fde68a;
  background: #fffbeb;
}

.delivery-material-request-summary.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.delivery-material-request-summary.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.delivery-material-request-summary p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-blocker-digest {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  padding: 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.delivery-blocker-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.delivery-blocker-head strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.delivery-blocker-head span,
.delivery-blocker-next {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-blocker-metrics,
.delivery-owner-buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.delivery-blocker-metrics span,
.delivery-owner-buckets span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.delivery-blocker-metrics b,
.delivery-owner-buckets b {
  color: #0f766e;
  font-size: 13px;
}

.delivery-blocker-metrics .danger b,
.delivery-owner-buckets em {
  color: #b42318;
}

.delivery-owner-buckets em {
  font-style: normal;
}

.delivery-blocker-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.delivery-blocker-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.delivery-blocker-table th,
.delivery-blocker-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
}

.delivery-blocker-table th {
  color: #64748b;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
}

.delivery-blocker-table tr:last-child td {
  border-bottom: 0;
}

.delivery-blocker-table tr.is-overdue td {
  background: #fff7ed;
}

.delivery-blocker-table strong,
.delivery-blocker-table span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-blocker-table strong {
  color: #0f172a;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.delivery-blocker-table span {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.delivery-blocker-table .candidate-hit {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 1px 6px;
  border: 1px solid #99d6cf;
  border-radius: 999px;
  background: #e6f5f1;
  color: #0f766e;
  font-weight: 900;
}

.delivery-blocker-table th:nth-child(1),
.delivery-blocker-table td:nth-child(1) {
  width: 110px;
}

.delivery-blocker-table th:nth-child(2),
.delivery-blocker-table td:nth-child(2) {
  width: 250px;
}

.delivery-blocker-table th:nth-child(3),
.delivery-blocker-table td:nth-child(3) {
  width: 120px;
}

.delivery-blocker-table th:nth-child(4),
.delivery-blocker-table td:nth-child(4) {
  width: 210px;
}

.delivery-blocker-table th:nth-child(6),
.delivery-blocker-table td:nth-child(6) {
  width: 150px;
}

.delivery-blocker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.delivery-blocker-actions button {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
}

.review-card-highlight {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.delivery-success-plan {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
}

.delivery-success-plan-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.delivery-success-plan-head strong {
  font-size: 12px;
}

.delivery-success-plan-head span {
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
}

.delivery-success-plan-list {
  display: grid;
  gap: 5px;
}

.delivery-success-plan-list div {
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid #fed7aa;
  border-radius: 5px;
  background: #ffffff;
}

.delivery-success-plan-list b {
  color: #0f172a;
  font-size: 11px;
}

.delivery-success-plan-list span,
.delivery-success-plan-list p {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-status-mini-list b {
  color: #0f172a;
  font-size: 11px;
}

.delivery-open-gates {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.delivery-open-gates .link-button {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
}

.delivery-gate-detail {
  display: grid;
  gap: 6px;
  margin: 2px 0 8px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #ffffff;
}

.delivery-gate-detail strong {
  color: #0f172a;
  font-size: 11px;
}

.delivery-gate-detail small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-gate-followup {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.delivery-gate-followup span {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.delivery-gate-followup.is-escalated span:first-child {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.delivery-gate-candidate {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.4fr) auto;
  gap: 8px;
  align-items: center;
}

.delivery-gate-candidate span {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-weight: 800;
}

.delivery-gate-candidate div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.delivery-gate-candidate button {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
}

.delivery-rework-summary,
.delivery-rework-detail {
  border-color: #fbbf24;
  background: #fffbeb;
}

.delivery-rework-summary span {
  color: #92400e;
  font-size: 11px;
  line-height: 1.35;
}

.delivery-readiness-result div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 3px;
}

.delivery-readiness-result strong {
  font-size: 12px;
}

.delivery-readiness-result span,
.delivery-readiness-result small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.delivery-readiness-result p {
  display: block;
  margin: 0 0 3px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.delivery-capability-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px !important;
  margin: 6px 0;
}

.delivery-capability-grid div {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 6px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
}

.delivery-capability-grid b {
  display: block;
  margin-bottom: 3px;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.2;
}

.delivery-capability-grid span {
  display: block;
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.delivery-readiness-result.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.delivery-readiness-result.watch {
  border-color: #fde68a;
  background: #fffbeb;
}

.delivery-readiness-result.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.delivery-evidence-gaps-result {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
}

.delivery-evidence-gaps-result.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.delivery-evidence-gaps-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.delivery-evidence-gaps-head button {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.delivery-evidence-gaps-head strong,
.delivery-evidence-gaps-head span {
  font-size: 12px;
}

.delivery-evidence-gaps-head span,
.delivery-evidence-gaps-result small {
  color: var(--muted);
  font-weight: 700;
}

.delivery-evidence-gaps-result p {
  margin: 4px 0 6px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.delivery-evidence-gap-list {
  display: grid;
  gap: 5px;
}

.delivery-evidence-gap-list div {
  display: grid;
  grid-template-columns: 150px 120px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 11px;
}

.delivery-evidence-gap-list span,
.delivery-evidence-gap-list strong {
  white-space: nowrap;
}

.delivery-action-list {
  display: grid;
  gap: 7px;
  max-height: 460px;
  overflow: auto;
  padding-right: 2px;
}

.delivery-action-card.expanded {
  border-color: #94a3b8;
}

.delivery-action-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.delivery-action-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.delivery-action-detail {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5edf5;
}

.delivery-evidence-block {
  border: 1px solid #e5edf5;
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px;
}

.delivery-evidence-block strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.delivery-evidence-block ul {
  margin: 0;
  padding-left: 16px;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.delivery-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.delivery-action-buttons button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.delivery-robot-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1100px) {
  .delivery-robot-head,
  .delivery-robot-grid {
    grid-template-columns: 1fr;
  }

  .delivery-robot-stats {
    min-width: 0;
  }

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

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.compact-detail-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}

.detail-grid div,
.subflow-mini,
.detail-facts,
.merged-record {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #ffffff;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.detail-facts div {
  display: grid;
  gap: 2px;
}

.detail-facts span,
.detail-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-facts strong {
  font-size: 13px;
  line-height: 1.35;
}

.sales-decision-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.sales-decision-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.decision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.decision-actions button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.muted-button {
  color: var(--muted);
}

.sales-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.sales-fields div {
  display: grid;
  gap: 2px;
}

.sales-fields span,
.detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.sales-fields strong,
.detail-grid strong {
  font-size: 13px;
  line-height: 1.45;
}

.subflow-section {
  margin-top: 18px;
}

.compact-head {
  margin-bottom: 10px;
}

.subflow-mini-list {
  display: grid;
  gap: 8px;
}

.merged-records {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.merged-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.merged-record strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merged-record span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.subflow-mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.subflow-mini span:last-child {
  grid-column: 1 / -1;
}

.subflow-mini span {
  color: var(--muted);
  line-height: 1.45;
}

.draft-editor {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
}

.draft-editor:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  border-color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}

.badge.high {
  background: #fff0e6;
  color: var(--warning);
}

.badge.sent {
  background: #e7f8ef;
  color: var(--ok);
}

.badge.blocked {
  background: #fee4e2;
  color: var(--danger);
}

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

.table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

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

.context-pane {
  margin-top: 12px;
}

.probe-result {
  margin-bottom: 12px;
}

.probe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.probe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.probe-row .meta {
  grid-column: 1 / -1;
}

.schema-card {
  padding: 12px;
}

.schema-note {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.schema-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.schema-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12px;
}

.schema-table th,
.schema-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.schema-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.schema-table td {
  color: #1f2937;
}

@media (max-width: 820px) {
  body {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .sidebar {
    min-width: 0;
    max-width: 100vw;
    padding: 10px 12px;
    overflow-x: hidden;
  }

  .brand {
    margin-bottom: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand small {
    margin-top: 1px;
  }

  nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-button {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 30px;
    text-align: center;
    padding: 0 10px;
  }

  .workspace {
    min-width: 0;
    max-width: 100vw;
    padding: 12px;
    overflow-x: hidden;
  }

  .panel,
  .topbar,
  .actions,
  .sales-toolbar,
  .delivery-filter-bar {
    min-width: 0;
    max-width: 100%;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  h1 {
    font-size: 19px;
  }

  .topbar p {
    margin-top: 3px;
    font-size: 13px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-panel .panel-head {
    align-items: center;
    flex-direction: row;
  }

  .actions {
    justify-content: flex-start;
    gap: 6px;
  }

  .actions button,
  .actions select,
  .actions input {
    min-height: 32px;
    font-size: 13px;
  }

  .actions input {
    width: 158px;
  }

  .panel-subtitle {
    font-size: 12px;
  }

  .sales-toolbar {
    grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(118px, 1fr));
    gap: 5px;
    padding: 6px;
  }

  .task-board-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .sales-workbench {
    grid-template-columns: 1fr;
  }

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

  .sales-execution-focus {
    grid-template-columns: 1fr;
  }

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

  .robot-execution-head span {
    white-space: normal;
  }

  .todo-summary-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .action-toolbar {
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(118px, 1fr));
    overflow-x: auto;
  }

  .action-workbench {
    grid-template-columns: 1fr;
  }

  .action-table-wrap,
  .action-detail-panel {
    max-height: none;
  }

  .action-detail-panel {
    position: static;
  }

  .sales-table-wrap,
  .sales-detail {
    max-height: none;
  }

  .sales-detail-panel {
    position: static;
  }

  .accounting-layout {
    grid-template-columns: 1fr;
  }

  .accounting-table-wrap,
  .accounting-detail-panel {
    max-height: none;
  }

  .accounting-detail-panel {
    position: static;
  }

  .metric-grid,
  .sales-funnel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .metric-card,
  .funnel-step {
    min-width: 118px;
  }

  .director-layout {
    grid-template-columns: 1fr;
  }

  .director-progress-row {
    grid-template-columns: minmax(92px, 1fr) 42px minmax(180px, 2fr);
  }

  .sales-table-wrap {
    min-height: 390px;
  }

  .sales-table {
    min-width: 840px;
  }

  .subflow-mini {
    grid-template-columns: 1fr;
  }
}

.collaboration-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #f8fbff;
}

.collaboration-batch-bar div:first-child {
  display: grid;
  gap: 2px;
}

.collaboration-batch-bar strong {
  color: #0f172a;
  font-size: 13px;
}

.collaboration-batch-bar span {
  color: #64748b;
  font-size: 12px;
}

.sales-collaboration-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sales-collaboration-template-row button {
  background: #fff;
  border-color: #d7e3f4;
  color: #1f3b57;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 9px;
}

.sales-collaboration-template-row button:hover:not(:disabled) {
  background: #eef6ff;
  border-color: #8cc7ff;
}

.collaboration-card {
  display: grid;
  gap: 12px;
}

.collaboration-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.collaboration-channel-list span {
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  color: #42526e;
  font-size: 12px;
  padding: 3px 8px;
}

.collaboration-dispatch-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.collaboration-fallback {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
}

.collaboration-fallback strong {
  font-size: 12px;
}

.collaboration-fallback span {
  font-size: 12px;
}

.collaboration-file-delivery {
  align-items: center;
  background: #eefbf3;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #14532d;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
}

.collaboration-file-delivery strong,
.collaboration-file-delivery span,
.collaboration-file-delivery small,
.collaboration-file-delivery a {
  font-size: 12px;
}

.collaboration-file-delivery a {
  color: #166534;
  font-weight: 700;
  text-decoration: none;
}

.collaboration-dispatch {
  align-items: end;
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto;
  padding: 10px;
}

.collaboration-card-highlight {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.collaboration-dispatch label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #51606f;
}

.collaboration-dispatch input {
  border: 1px solid #d6dee8;
  border-radius: 6px;
  font: inherit;
  padding: 8px 9px;
}

.collaboration-body {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.8fr);
  gap: 12px;
}

.collaboration-body section,
.collaboration-reply,
.collaboration-answer,
.collaboration-conversation,
.collaboration-candidate-groups {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 10px;
}

.collaboration-candidate-groups {
  display: grid;
  gap: 8px;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.collaboration-candidate-groups.empty {
  background: #f8fafc;
  border-color: #e6edf3;
}

.collaboration-candidate-groups > strong {
  color: #0f172a;
  font-size: 12px;
}

.collaboration-candidate-groups > span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.collaboration-candidate-groups div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 2fr) auto;
}

.collaboration-candidate-groups span,
.collaboration-candidate-groups small {
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.collaboration-body h4,
.collaboration-answer h4 {
  font-size: 13px;
  margin: 0 0 6px;
}

.collaboration-body p,
.collaboration-answer p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.collaboration-conversation {
  display: grid;
  gap: 8px;
}

.collaboration-conversation div,
.collaboration-structured div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  font-size: 13px;
}

.collaboration-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.collaboration-field-grid label,
.full-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #51606f;
}

.collaboration-field-grid input,
.collaboration-reply textarea {
  border: 1px solid #d6dee8;
  border-radius: 6px;
  font: inherit;
  padding: 8px 9px;
}

.collaboration-reply textarea {
  min-height: 74px;
  resize: vertical;
}

.collaboration-structured {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.tongda-history-board {
  background: #f8fafc;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
}

.compact-metrics {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.compact-card {
  min-height: auto;
  padding: 10px 12px;
}

.compact-card span,
.compact-card small {
  font-size: 12px;
}

.compact-card strong {
  font-size: 20px;
}

.history-split {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.history-card,
.history-stage-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.dense-mini-table {
  font-size: 12px;
}

.dense-mini-table th,
.dense-mini-table td {
  max-width: 180px;
  overflow: hidden;
  padding: 6px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-stage-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.stage-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.stage-chip {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  color: #28446c;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  padding: 4px 8px;
}

.stage-chip b {
  color: #0f172a;
}

@media (max-width: 560px) {
  .sales-toolbar,
  .action-toolbar {
    grid-template-columns: 1fr;
  }

  .collaboration-body {
    grid-template-columns: 1fr;
  }

  .collaboration-dispatch {
    grid-template-columns: 1fr;
  }

  .compact-metrics,
  .history-split,
  .history-stage-row,
  .delivery-case-head,
  .delivery-case-layout,
  .delivery-case-node,
  .delivery-monitor-hero,
  .delivery-monitor-grid,
  .delivery-operability-grid,
  .delivery-gate-candidate {
    grid-template-columns: 1fr;
  }

  .delivery-monitor-facts,
  .delivery-progress-strip,
  .delivery-attention-item {
    grid-template-columns: 1fr;
  }

  .delivery-gate-candidate div {
    justify-content: flex-start;
  }

  .task-board-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
