/* Component Styles: Modals, Command Scroll Composer, Quest Gates, Dispatch Log, Ledger & Tooltips */

.btn-summon-cta { background: #b45309; border-color: #fbbf24; color: #fef3c7; font-weight: 700; }
.btn-danger-cta { background: #dc2626; border-color: #f87171; color: #fef2f2; font-weight: 700; }

@media (min-width: 961px) {
  #operator-pairing-modal .modal-dialog {
    max-width: min(760px, calc(100vw - 32px));
  }
  .operator-profile-desktop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 10px;
    align-items: start;
  }
}

/* Viewport-Level Contained Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  background: rgba(6, 9, 17, 0.84);
  z-index: 100;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.modal-overlay.is-open { display: grid; }
body[data-auth-locked="true"] .main-stage,
body[data-auth-locked="true"] .scenario-buttons { visibility: hidden; pointer-events: none; }
.modal-close-btn.is-hidden,
input.is-hidden { display: none !important; }
.modal-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: min(460px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}

.modal-dialog-summon { background: #1c1512; border: 2px solid #f59e0b; }
.modal-dialog-danger { background: #111827; border: 2px solid #ef4444; }
.modal-header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.modal-title-summon { color: #fef08a; font-size: 13.5px; font-weight: 700; min-width: 0; }
.modal-title-danger { color: #fecaca; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.modal-body-danger { color: #fca5a5; font-size: 11px; line-height: 1.45; margin-bottom: 10px; word-break: break-word; }
.modal-close-btn { padding: 4px 8px; flex-shrink: 0; }
.modal-field-label { font-size: 10px; color: #fcd34d; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; display: block; }

.modal-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
  min-width: 0;
}

.modal-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #14100d;
  border: 1px solid #4b3a2f;
  border-radius: 5px;
  color: #f8fafc;
  padding: 7px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
  -webkit-user-select: text;
}

.modal-select-agent { color: #fcd34d; }
.modal-textarea { color: #fef3c7; resize: vertical; min-height: 60px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Command Scroll Composer */
.command-scroll-card { border-color: #b45309; padding: 6px 8px; margin-bottom: 4px; }
.command-scroll-card.is-gate-hidden { display: none !important; }
.command-scroll-card.is-collapsed { padding: 4px 8px; margin-bottom: 2px; background: #1c1612; }
.command-scroll-card.is-collapsed .command-scroll-body { display: none !important; }
.command-scroll-card.is-expanded .command-scroll-trigger-hint { display: none; }
.command-scroll-header { margin-bottom: 0; cursor: pointer; }
.command-scroll-card.is-expanded .command-scroll-header { margin-bottom: 5px; }
.command-scroll-trigger-hint { font-size: 9.5px; color: #fcd34d; font-weight: 400; text-transform: none; }
.scroll-status-busy { color: #fcd34d; }
.scroll-status-idle { color: #6ee7b7; }
.scroll-delivery-row { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-bottom: 5px; flex-wrap: wrap; }
.scroll-delivery-row.is-hidden { display: none; }
.scroll-delivery-modes { display: flex; gap: 4px; }
.btn-interrupt-turn { font-size: 9.5px; padding: 3px 8px; background: #7f1d1d; border-color: #ef4444; color: #fecaca; }
.btn-interrupt-turn.is-hidden { display: none; }
.skill-chip-btn { font-size: 9.5px; padding: 2px 6px; border-color: #8b5cf6; color: #ddd6fe; }
.skill-browser-row { margin-bottom: 5px; }
.skill-browser-filter-input { flex: 0 0 auto; width: 6ch; box-sizing: content-box; padding: 2px 5px; min-height: 20px; background: #14100d; border: 1px solid #4b3a2f; border-radius: 4px; color: #fef3c7; font-size: 10px; font-family: var(--font-mono); outline: none; }
.skill-browser-filter-input:focus { border-color: #c4b5fd; box-shadow: 0 0 4px rgba(139, 92, 246, 0.35); }
.skill-browser-track { gap: 6px; padding: 2px 6px; min-height: 26px; cursor: default; }
.skill-browser-track:hover { border-color: var(--border-slate); background: var(--bg-card); }
.skill-browser-badges { flex: 1 1 0; min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.skill-browser-badge { flex: 1 1 auto; min-width: 0; max-width: 100%; justify-content: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 20px; background: rgba(139, 92, 246, 0.14); }
.skill-browser-badge:hover { border-color: #c4b5fd; background: rgba(139, 92, 246, 0.28); color: #f5f3ff; }
.skill-browser-badge.active { background: #5b21b6; border-color: #c4b5fd; color: #fef3c7; box-shadow: 0 0 6px rgba(139, 92, 246, 0.35); }
.skill-browser-badge-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#summon-skill-browser-slot { width: 100%; min-width: 0; }
.command-scroll-compose-row { display: flex; align-items: stretch; gap: 6px; width: 100%; }
.command-scroll-send-actions { display: flex; align-items: stretch; gap: 5px; flex: 0 0 auto; }
.command-scroll-agent-select {
  flex: 0 0 auto;
  background: #1c1612;
  border: 1px solid #d97706;
  border-radius: 5px;
  color: #fcd34d;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 6px;
  cursor: pointer;
  outline: none;
}
.command-scroll-agent-select:focus { border-color: #fbbf24; box-shadow: 0 0 5px rgba(251, 191, 36, 0.35); }

.command-scroll-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: #14100d;
  border: 1px solid #4b3a2f;
  border-radius: 5px;
  color: #fef3c7;
  padding: 6px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  resize: vertical;
}

.btn-send-scroll {
  flex: 0 0 auto;
  justify-content: center;
  background: #b45309;
  border-color: #fbbf24;
  color: #fef3c7;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.scroll-feedback-msg { font-size: 9.5px; font-family: var(--font-mono); color: #6ee7b7; display: none; margin-top: 4px; }
.scroll-feedback-msg.is-visible { display: inline; }
.scroll-feedback-msg.is-error { color: #f87171; display: inline; }

/* Quest Gate Cards */
.gate-card-permission { border-color: #f59e0b; background: rgba(120, 53, 15, 0.28); width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; }
.gate-title-permission { color: #fde68a; gap: 6px; min-width: 0; }
.gate-marker-bang { color: #fca5a5; flex-shrink: 0; }
.gate-card-question { border-color: #38bdf8; background: rgba(12, 74, 110, 0.28); width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: hidden; overflow-y: visible; }
.gate-title-question { color: #7dd3fc; gap: 6px; min-width: 0; }
.gate-title-permission > span:first-child, .gate-title-question > span:first-child { min-width: 0; white-space: normal; overflow-wrap: break-word; word-break: break-word; }
.gate-marker-question { color: #fcd34d; flex-shrink: 0; }
.gate-prompt-text { font-size: 11px; color: #fef3c7; margin-bottom: 6px; overflow-wrap: break-word; word-break: break-word; max-width: 100%; min-width: 0; }
.gate-prompt-text .chat-md-body { font-size: 11px; color: #fef3c7; line-height: 1.5; }
.gate-resource-list { margin: 0 0 8px 0; padding-left: 16px; font-size: 9.5px; color: #fde68a; font-family: var(--font-mono); word-break: break-all; }
.gate-actions-row { display: flex; gap: 5px; flex-wrap: wrap; }
.btn-gate-allow-once { flex: 1; justify-content: center; background: #065f46; border-color: #10b981; color: #ecfdf5; font-weight: 700; }
.btn-gate-allow-always { flex: 1; justify-content: center; background: #1e3a8a; border-color: #38bdf8; color: #e0f2fe; }
.btn-gate-reject { flex: 1; justify-content: center; background: #7f1d1d; border-color: #ef4444; color: #fecaca; }
.gate-field-block { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(56, 189, 248, 0.18); width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.gate-field-header { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: #7dd3fc; margin-bottom: 4px; overflow-wrap: break-word; word-break: break-word; }
.gate-field-question { font-size: 11px; color: #e2e8f0; margin-bottom: 5px; overflow-wrap: break-word; word-break: break-word; max-width: 100%; min-width: 0; }
.gate-field-question .chat-md-body { font-size: 11px; color: #e2e8f0; line-height: 1.5; font-weight: 400; }
.gate-opt-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.gate-opt-chip { font-size: 9.5px; padding: 4px 8px; flex-direction: column; align-items: flex-start; text-align: left; white-space: normal; height: auto; flex: 1 1 auto; flex-shrink: 1; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word; word-break: break-word; }
.gate-option-label { font-weight: 700; color: #fef3c7; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: break-word; word-break: break-word; }
.gate-option-desc { font-size: 9px; color: #cbd5e1; font-weight: 400; line-height: 1.3; margin-top: 1px; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: break-word; word-break: break-word; }

.gate-custom-input {
  width: 100%;
  box-sizing: border-box;
  background: #14100d;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  color: #f8fafc;
  padding: 5px 7px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.btn-gate-submit { width: 100%; justify-content: center; background: #0284c7; border-color: #7dd3fc; color: #f0f9ff; font-weight: 700; }

/* Character Sheet Header, Inventory, Tool Log & Dispatch Log */
.sheet-header-bar { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: nowrap; width: 100%; min-width: 0; }
.sheet-header-main { min-width: 0; flex: 1 1 0; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.sheet-header-main::-webkit-scrollbar { display: none; }
.sheet-hero-title { font-weight: 700; font-size: 11.5px; color: #fef08a; white-space: nowrap; flex-shrink: 0; }
.sheet-hero-sub { color: #cbd5e1; font-size: 10px; font-family: var(--font-mono); white-space: nowrap; flex-shrink: 0; }
.sheet-hero-badges { display: inline-flex; gap: 4px; flex-wrap: nowrap; align-items: center; flex-shrink: 0; }
.inv-pill-workflow { border-color: #f59e0b; }
.inv-pill-verb { border-color: #38bdf8; color: #bae6fd; }
.inv-pill-skill { border-color: #8b5cf6; color: #ddd6fe; }
.inv-pill-plugin { border-color: #10b981; color: #a7f3d0; }
.muted-empty-text { color: #a89a8d; font-size: 10.5px; }
.inv-section-block { margin-bottom: 6px; }
.inv-section-title { margin-bottom: 3px; }
.sheet-card-flex-fill { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.sheet-scroll-list { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.spectator-sidebar[data-drawer-tab="ledger"] #sheet-static-slot > * { flex-shrink: 0; }
.spectator-sidebar[data-drawer-tab="ledger"] .sheet-card-flex-fill { min-height: 160px; }
.dispatch-log-card { border-color: #38bdf8; background: rgba(15, 23, 42, 0.55); flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; overflow: hidden; }
.dispatch-card-title { color: #7dd3fc; flex-shrink: 0; }
.dispatch-card-title-actions { display: inline-flex; align-items: center; gap: 6px; }
.dispatch-toggle-all-btn { padding: 1px 6px; min-height: 20px; font-size: 9px; }
.dispatch-transcript-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; }
.dispatch-user-row { font-size: 11px; color: #fef3c7; background: rgba(120, 53, 15, 0.28); border: 1px solid rgba(245, 158, 11, 0.35); border-left: 3px solid #f59e0b; border-radius: 6px; padding: 5px 8px; font-family: var(--font-mono); word-break: break-word; flex-shrink: 0; }
.dispatch-assistant-row { font-size: 11.5px; color: #e2e8f0; background: rgba(15, 23, 42, 0.78); border: 1px solid #1e293b; border-left: 3px solid #38bdf8; border-radius: 6px; padding: 5px 8px; line-height: 1.55; word-break: break-word; flex-shrink: 0; }
.dispatch-turn-row:hover { border-color: rgba(125, 211, 252, 0.45); }
.dispatch-turn-oneliner { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; width: 100%; min-width: 0; background: transparent; border: none; color: inherit; font-family: var(--font-mono); font-size: 10.5px; padding: 0; cursor: pointer; text-align: left; }
.dispatch-turn-chevron { flex: 0 0 auto; font-size: 10px; color: #94a3b8; width: 10px; }
.dispatch-turn-speaker { flex: 0 0 auto; white-space: nowrap; }
.dispatch-user-row .dispatch-turn-speaker { color: #fbbf24; }
.dispatch-assistant-row .dispatch-turn-speaker { color: #38bdf8; }
.dispatch-inline-skill { flex: 0 0 auto; font-size: 9px; padding: 0 4px; }
.dispatch-oneliner-preview { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; font-weight: 400; }
.dispatch-user-row .dispatch-oneliner-preview { color: #fde68a; }
.dispatch-toggle-pill { flex: 0 0 auto; font-size: 9px; color: #fcd34d; background: rgba(120, 53, 15, 0.35); border: 1px solid rgba(245, 158, 11, 0.45); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.dispatch-turn-row.is-collapsed .dispatch-turn-details, .dispatch-turn-details[hidden] { display: none !important; }
.dispatch-turn-row.is-expanded .dispatch-turn-details { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(148, 163, 184, 0.2); }
.dispatch-agent-badge { flex: 0 0 auto; font-size: 9px; color: #a7f3d0; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 4px; padding: 1px 5px; font-family: var(--font-mono); white-space: nowrap; }
.dispatch-skill-pills { margin-bottom: 6px; }
.chat-md-body { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; line-height: 1.55; color: #e2e8f0; }
.dispatch-user-row .chat-md-body { color: #fef3c7; font-size: 11px; }
.chat-md-p { margin: 0; color: inherit; line-height: 1.55; }
.chat-md-heading.roster-row-title-bold { white-space: normal; overflow: visible; text-overflow: clip; font-family: var(--font-mono); font-weight: 700; line-height: 1.35; margin-top: 2px; }
.chat-md-h1 { font-size: 13px; color: #fef08a; border-bottom: 1px solid rgba(251, 191, 36, 0.3); padding-bottom: 2px; }
.chat-md-h2 { font-size: 12px; color: #fcd34d; }
.chat-md-h3 { font-size: 11.5px; color: #7dd3fc; }
.chat-md-h4 { font-size: 11px; color: #a7f3d0; }
.chat-md-strong { color: #fef08a; font-weight: 700; }
.chat-md-em { color: #bae6fd; font-style: italic; }
.chat-md-code { font-family: var(--font-mono); font-size: 10.5px; background: rgba(30, 41, 59, 0.92); border: 1px solid #334155; color: #a7f3d0; padding: 1px 5px; border-radius: 4px; }
.chat-md-code-path { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.42); background: rgba(12, 74, 110, 0.38); }
.chat-md-code-cmd { color: #fde68a; border-color: rgba(245, 158, 11, 0.42); background: rgba(120, 53, 15, 0.38); }
.chat-md-mention { font-family: var(--font-mono); font-size: 10px; color: #ddd6fe; background: rgba(139, 92, 246, 0.22); border: 1px solid rgba(139, 92, 246, 0.48); padding: 0 5px; border-radius: 4px; }
.chat-md-link { color: #38bdf8; text-decoration: underline; text-underline-offset: 2px; }
.chat-md-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-md-li { display: flex; align-items: baseline; gap: 6px; line-height: 1.45; }
.chat-md-li-indent-1 { padding-left: 12px; }
.chat-md-li-indent-2 { padding-left: 24px; }
.chat-md-li-indent-3 { padding-left: 36px; }
.chat-md-li-marker { color: #fbbf24; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.chat-md-li-body { flex: 1 1 0; min-width: 0; }
.chat-md-quote { margin: 0; padding: 5px 9px; border-left: 3px solid #a855f7; background: rgba(88, 28, 135, 0.22); border-radius: 0 5px 5px 0; color: #e9d5ff; font-size: 11px; }
.chat-md-hr { border: 0; border-top: 1px dashed #334155; margin: 2px 0; }
.chat-md-codeblock { background: #090d16; border: 1px solid #334155; border-radius: 6px; overflow: hidden; }
.chat-md-codeblock-bar { background: #131c2e; border-bottom: 1px solid #1e293b; padding: 3px 8px; display: flex; justify-content: space-between; align-items: center; }
.chat-md-codeblock-lang { font-family: var(--font-mono); font-size: 9.5px; color: #38bdf8; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.chat-md-pre.tool-log-output { margin: 0; padding: 7px 9px; color: #e2e8f0; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.chat-md-table-wrap { overflow-x: auto; border: 1px solid #334155; border-radius: 5px; }
.chat-md-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 10px; }
.chat-md-table th, .chat-md-table td { padding: 4px 7px; border-bottom: 1px solid #1e293b; text-align: left; }
.chat-md-table th { background: #131c2e; color: #fcd34d; font-weight: 700; }
#sheet-interactive-slot.is-hidden { display: none !important; }
.subtab-deck-bar { display: flex; gap: 4px; margin-bottom: 5px; flex-wrap: wrap; background: #14100d; padding: 3px; border-radius: 5px; border: 1px solid #3b2e27; align-items: center; }
.subtab-btn { flex: 1 1 auto; justify-content: center; font-size: 9.5px; padding: 3px 6px; min-height: 24px; }
.project-browser-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin-bottom: 6px; width: 100%; min-width: 0; }
.project-browser-nav-btn { flex: 0 0 auto; min-width: 28px; justify-content: center; padding: 3px 8px; min-height: 24px; }
.project-browser-nav-btn:disabled { opacity: 0.4; cursor: default; }
.project-browser-current-btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; padding: 3px 10px; }
.project-browser-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; text-align: center; }
.project-browser-count { flex: 0 0 auto; font-size: 9px; color: #cbd5e1; opacity: 0.85; }
.ledger-telemetry-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; background: #191410; border: 1px solid #3b2e27; border-radius: 5px; padding: 4px 8px; margin-bottom: 6px; font-family: var(--font-mono); font-size: 10px; color: #d6cbbf; }
.commit-ledger-card { border-color: #10b981; min-height: 220px; }
.assembly-tasks-scroll-list { max-height: 160px; overflow-y: auto; }
.commit-file-row.active { border-color: #38bdf8; }
.dispatch-thinking-row { font-size: 10px; color: #fcd34d; font-family: var(--font-mono); margin-top: 4px; }
.tool-log-entry { background: #241c17; border: 1px solid #3b2e27; border-radius: 4px; padding: 4px 6px; margin-bottom: 4px; font-family: var(--font-mono); font-size: 10px; }
.tool-log-header { display: flex; justify-content: space-between; gap: 6px; }
.tool-log-name { color: #fcd34d; }
.tool-log-station { color: #38bdf8; flex-shrink: 0; }
.tool-log-input { color: #cbd5e1; font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-log-output { color: #fca5a5; font-size: 9.5px; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.diff-preview-pre { color: #cbd5e1; font-size: 9.5px; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow-y: auto; margin-top: 3px; }
.session-details-grid { font-family: var(--font-mono); font-size: 10px; color: #d6cbbf; display: grid; gap: 3px; }
.val-light { color: #f8fafc; }
.val-blue { color: #93c5fd; }
.val-purple { color: #a855f7; }
.val-gold { color: #fcd34d; }
.val-emerald { color: #6ee7b7; }
.val-sky { color: #38bdf8; }
.val-green { color: #10b981; }
.val-red { color: #f87171; }
.kill-section-wrap { margin-top: auto; padding-top: 8px; flex-shrink: 0; }
.kill-confirm-box { background: rgba(127, 29, 29, 0.4); border: 1px solid #ef4444; border-radius: 5px; padding: 8px; font-family: var(--font-mono); font-size: 10px; }
.kill-confirm-prompt { color: #fecaca; font-weight: 700; margin-bottom: 5px; }
.kill-confirm-actions { display: flex; gap: 6px; }
.btn-kill-confirm { flex: 1; background: #dc2626; border-color: #f87171; color: #fff; justify-content: center; }
.btn-kill-danger { width: 100%; justify-content: center; background: rgba(127, 29, 29, 0.35); border-color: #ef4444; color: #fca5a5; }

/* Guild Master Ledger */
.btn-compact-action { padding: 3px 8px; font-size: 10px; }
.ledger-gate-alert-card { border-color: #f59e0b; background: rgba(120, 53, 15, 0.22); }
.ledger-body-text { font-size: 11px; color: #d6cbbf; }
.roster-row-btn { width: 100%; justify-content: space-between; text-align: left; padding: 6px 8px; margin-bottom: 4px; gap: 8px; }
.roster-row-gate { border-color: #f59e0b; background: rgba(120, 53, 15, 0.32); color: #fef3c7; }
.roster-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.roster-row-title-bold { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; font-weight: 700; }
.roster-row-meta { font-size: 9.5px; color: #cbd5e1; flex-shrink: 0; }
.roster-row-reason { font-size: 9.5px; color: #fde68a; white-space: normal; word-break: break-word; flex: 1 1 55%; min-width: 0; text-align: right; }
.roster-gate-tag { color: #fbbf24; font-weight: 700; }
.roster-header-controls { display: inline-flex; align-items: center; gap: 10px; }
.roster-subagent-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 400; color: #cbd5e1; text-transform: none; cursor: pointer; user-select: text; -webkit-user-select: text; }
.roster-subagent-toggle input[type="checkbox"] { margin: 0; accent-color: #f59e0b; cursor: pointer; }

/* Tooltips */
.tooltip-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.tooltip-subtitle { color: #cbd5e1; font-size: 10.5px; font-family: var(--font-mono); margin-bottom: 4px; }
.tooltip-desc { color: #e2e8f0; font-size: 11px; line-height: 1.35; margin-bottom: 4px; }
.tooltip-row { margin-top: 4px; font-size: 10.5px; line-height: 1.35; }
.tooltip-row-label { color: #a89a8d; font-family: var(--font-mono); }

/* Project Mini-Assemblies Strip (🌐 All Showcase) */
.project-mini-assemblies-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 5px; margin: 6px 0; min-width: 0; max-width: 100%; }
.project-mini-assembly-pill { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 4px 6px; font-family: var(--font-mono); font-size: 9.5px; border-radius: 5px; background: rgba(15, 23, 42, 0.78); min-width: 0; overflow: hidden; }
.mini-assembly-status-complete { border: 1.5px solid #fbbf24 !important; background: rgba(6, 78, 59, 0.72) !important; box-shadow: inset 0 0 8px rgba(16, 185, 129, 0.35); }
.mini-assembly-status-in-progress { background: rgba(15, 23, 42, 0.9); }
.mini-assembly-status-blueprint-ready { border-style: dashed; border-color: #38bdf8; opacity: 0.9; }

/* Project Heraldry Palette Tokens */
.roster-project-pill, .inv-pill-project { font-weight: 700; font-family: var(--font-mono); }
[data-herald-party="01"] { color: #f27324; border-color: #c83d28; }
[data-herald-party="02"] { color: #62b6ea; border-color: #2b547e; }
[data-herald-party="03"] { color: #7ce04b; border-color: #34673d; }
[data-herald-party="04"] { color: #b784f7; border-color: #4d387a; }
[data-herald-party="05"] { color: #f5c23b; border-color: #d4a634; }
[data-herald-party="06"] { color: #4ad6d1; border-color: #1c7274; }
[data-herald-party="07"] { color: #f59e0b; border-color: #434a54; }
[data-herald-party="08"] { color: #f3e8ff; border-color: rgba(168, 85, 247, 0.55); --herald-border: rgba(168, 85, 247, 0.55); --herald-bg: rgba(59, 7, 100, 0.32); --herald-text: #f3e8ff; }
[data-herald-party="09"] { color: #38bdf8; border-color: #1e7e7a; }
[data-herald-party="10"] { color: #60a5fa; border-color: #233c78; }
.project-mini-assembly-pill[data-herald-party="08"] { border-color: rgba(168, 85, 247, 0.55); background: rgba(59, 7, 100, 0.32); color: #f3e8ff; }
.btn[data-herald-party]:hover { border-color: var(--accent-amber); background: #332720; }
.btn.active[data-herald-party] { border-color: var(--accent-amber); }
.hero-browser-current-btn { cursor: default; }
.hero-browser-current-btn:hover { background: #78350f; }

/* Add World Folder Button & Modal */
.btn-add-world { border-color: #f59e0b; color: #fef08a; background: rgba(180, 83, 9, 0.28); font-weight: 700; font-size: 11px; }
.btn-add-world:hover { background: #78350f; border-color: #fbbf24; color: #fef3c7; }
.add-world-folder-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; padding-right: 2px; }
.add-world-folder-row { width: 100%; justify-content: space-between; text-align: left; padding: 6px 8px; gap: 8px; }
.add-world-folder-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; font-weight: 600; }
.add-world-folder-badges { display: inline-flex; gap: 4px; align-items: center; flex-shrink: 0; }
