:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --line: #d7dde5;
  --text: #17202a;
  --muted: #667085;
  --blue: #2563eb;
  --green: #0f8b6f;
  --red: #b42318;
  --amber: #b54708;
  --timeline-date-guide: rgba(37, 99, 235, 0.13);
  --shadow: 0 12px 36px rgba(23, 32, 42, 0.08);
}

/* Conversation Segments are first-class records. Their viewer renders only the
   selected normalized messages and never embeds the original import file. */
.standalone-segment-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.standalone-segment-modal.hidden {
  display: none;
}

.standalone-segment-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1500px, calc(100vw - 36px));
  height: min(920px, calc(100vh - 36px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #b8c7db;
  border-radius: 6px;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.28);
}

.standalone-segment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd7e7;
  background: #f7faff;
}

.standalone-segment-header span {
  display: block;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.standalone-segment-header h2 {
  margin: 2px 0 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.standalone-segment-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.standalone-segment-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.standalone-segment-header .standalone-segment-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.standalone-segment-save-state.is-saved {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.standalone-segment-save-state.is-unsaved {
  border-color: #facc15;
  background: #fefce8;
  color: #854d0e;
}

.standalone-segment-save-state.is-saving {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.standalone-segment-save-state.is-error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b42318;
}

.standalone-segment-title-row[hidden],
.standalone-segment-rename-form[hidden] {
  display: none;
}

.standalone-segment-rename-form {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  gap: 8px;
  max-width: 680px;
  margin-top: 5px;
}

.standalone-segment-edit-field {
  display: grid;
  gap: 4px;
}

.standalone-segment-header .standalone-segment-edit-field > span {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.standalone-segment-rename-form input,
.standalone-segment-rename-form textarea {
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.standalone-segment-rename-form input {
  height: 34px;
  font-weight: 700;
}

.standalone-segment-rename-form textarea {
  min-height: 70px;
  resize: vertical;
}

.standalone-segment-edit-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.standalone-segment-rename-form small {
  min-height: 16px;
  color: #854d0e;
  font-size: 12px;
  font-weight: 700;
}

.standalone-segment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.standalone-segment-body {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.standalone-segment-loading,
.standalone-segment-error {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
}

.standalone-segment-error {
  color: #b91c1c;
}

.standalone-segment-summary {
  overflow: auto;
  padding: 16px;
  border-right: 1px solid #d4deeb;
  background: #f8fafc;
}

.standalone-segment-summary dl,
.standalone-segment-summary section {
  margin: 0 0 18px;
}

.standalone-segment-summary dl > div {
  padding: 0 0 12px;
  border-bottom: 1px solid #dbe4ef;
}

.standalone-segment-summary dt {
  margin: 10px 0 3px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.standalone-segment-summary dd {
  margin: 0;
  line-height: 1.4;
}

.standalone-segment-summary h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.standalone-segment-summary section > button {
  display: grid;
  width: 100%;
  margin: 0 0 6px;
  padding: 8px;
  text-align: left;
  border: 1px solid #cbd7e7;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
}

.standalone-segment-summary section > button:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.standalone-segment-summary section > button span,
.standalone-segment-provenance span,
.standalone-segment-provenance small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.standalone-segment-messages {
  overflow: auto;
  padding: 18px 22px 40px;
  background: #fff;
}

.standalone-segment-message {
  width: min(82%, 860px);
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #cad6e6;
  border-radius: 7px;
  background: #fff;
}

.standalone-segment-message.outgoing {
  margin-left: auto;
  border-color: #93c5fd;
  background: #eaf4ff;
}

.standalone-segment-message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.standalone-segment-message-head time,
.standalone-segment-message > small {
  color: #64748b;
  font-size: 12px;
}

.standalone-segment-message p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.48;
}

.standalone-segment-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.standalone-segment-media.human-comm-media {
  min-height: 180px;
  background: #f8fafc;
}

.standalone-segment-media.human-comm-media img,
.standalone-segment-media.human-comm-media video {
  max-height: 560px;
}

.standalone-segment-media .human-comm-media-status {
  min-height: 180px;
}

.standalone-segment-attachments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.standalone-segment-attachments button,
.standalone-segment-attachments span {
  padding: 5px 8px;
  border: 1px solid #b8c7db;
  border-radius: 4px;
  background: #fff;
  color: #1d4ed8;
  font-size: 12px;
}

@media (max-width: 820px) {
  .standalone-segment-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .standalone-segment-heading,
  .standalone-segment-rename-form {
    width: 100%;
  }

  .standalone-segment-rename-form {
    max-width: none;
  }

  .standalone-segment-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .standalone-segment-summary,
  .standalone-segment-messages {
    overflow: visible;
  }

  .standalone-segment-summary {
    border-right: 0;
    border-bottom: 1px solid #d4deeb;
  }

  .standalone-segment-message {
    width: 100%;
  }
}

.event-conversation-segment-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #c8d5e6;
  border-radius: 5px;
  background: #f8fbff;
}

.event-segment-linked-list {
  display: grid;
  gap: 7px;
}

.event-segment-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #cbd7e7;
  border-left: 4px solid #0ea5a4;
  border-radius: 4px;
  background: #fff;
}

.event-segment-link > div:first-child {
  min-width: 0;
}

.event-segment-link strong,
.event-segment-link span,
.event-segment-link p {
  display: block;
}

.event-segment-link span {
  margin-top: 3px;
  color: #526174;
  font-size: 12px;
}

.event-segment-link p {
  margin: 5px 0 0;
  color: #334155;
  line-height: 1.35;
}

.event-segment-link-actions,
.event-segment-picker {
  display: flex;
  align-items: center;
  gap: 7px;
}

.event-segment-picker input {
  flex: 1 1 220px;
  min-width: 0;
}

.event-segment-picker select {
  flex: 2 1 320px;
  min-width: 0;
}

.event-segment-picker button {
  flex: 0 0 auto;
}

.event-segment-status:not(:empty) {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.conversation-segment-attached-card .attached-item-icon {
  background: #dff7f4;
  color: #0f766e;
}

@media (max-width: 720px) {
  .event-segment-link {
    grid-template-columns: 1fr;
  }

  .event-segment-picker {
    align-items: stretch;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

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

/* Human Communications Workspace */
.human-communications-workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0 18px;
  overflow: hidden;
}

.human-comm-header,
.human-comm-section-head,
.human-comm-thread-header,
.human-comm-pagination,
.human-comm-selection-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.human-comm-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  padding: 12px 14px;
}

.human-comm-header h3 {
  font-size: 18px;
  margin: 0 0 3px;
}

.human-comm-header span,
.human-comm-thread-header span,
.human-comm-thread-row span,
.human-comm-thread-row small,
.human-comm-identity-row span,
.human-comm-segment-list span,
.human-comm-snapshot-list span,
.human-comm-snapshot-list small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.human-comm-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.human-comm-save-status {
  background: #eef2f6;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.human-comm-save-status[data-status="saving"] { background: #fff4e5; color: #8a3f00; }
.human-comm-save-status[data-status="saved"] { background: #e7f6ef; color: #087455; }
.human-comm-save-status[data-status="error"] { background: #fee4e2; color: #b42318; }

.human-comm-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  min-height: 660px;
}

.human-comm-thread-browser {
  background: #f8fafc;
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 12px;
}

.human-comm-section-head {
  gap: 8px;
  margin-bottom: 8px;
}

.human-comm-section-head > span {
  color: var(--muted);
  font-size: 12px;
}

.human-comm-thread-browser > input,
.human-comm-thread-filters select,
.human-comm-reader-toolbar input,
.human-comm-segment-composer input,
.human-comm-identity-editor input,
.human-comm-identity-editor select,
.human-comm-clarification-editor input,
.human-comm-clarification-editor select,
.human-comm-clarification-editor textarea,
.human-comm-person-context input,
.human-comm-person-context select,
.human-comm-person-context textarea,
.human-comm-snapshot-actions select,
.human-comm-snapshot-list input {
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: var(--text);
  min-height: 34px;
  padding: 6px 8px;
  width: 100%;
}

.human-comm-thread-filters {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin: 8px 0;
}

.human-comm-thread-filters label,
.comparison-sync-toggle {
  align-items: center;
  display: flex;
  font-size: 12px;
  gap: 5px;
  white-space: nowrap;
}

.human-comm-delete-placeholders {
  margin: 0 0 8px;
  width: 100%;
}

.human-comm-thread-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-height: 500px;
  overflow: auto;
}

.human-comm-thread-list.empty,
.human-comm-message-list.empty,
.human-comm-segment-list.empty,
.human-comm-snapshot-list.empty,
.human-comm-clarification-editor.empty,
.human-comm-person-context.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 18px 10px;
}

.human-comm-thread-row {
  background: transparent;
  border-bottom: 1px solid #e5e7eb;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.human-comm-thread-row:hover { background: #eef4ff; filter: none; }
.human-comm-thread-row.active { background: #e8f0ff; border-left-color: var(--blue); }
.human-comm-thread-open {
  background: transparent;
  border: 0;
  color: inherit;
  min-width: 0;
  padding: 9px 8px;
  text-align: left;
}
.human-comm-thread-open:hover { background: transparent; filter: none; }
.human-comm-thread-row strong { display: block; font-size: 13px; margin-bottom: 3px; }
.human-comm-thread-remove,
.human-comm-thread-restore {
  align-self: center;
  background: transparent;
  border: 0;
  color: #667085;
  margin-right: 5px;
  padding: 5px;
}
.human-comm-thread-remove { font-size: 18px; line-height: 1; }
.human-comm-thread-restore { color: var(--blue); font-size: 11px; font-weight: 700; }
.human-comm-thread-remove:hover { color: var(--red); }

.human-comm-integrity-panel { margin-top: 10px; }
.human-comm-integrity-panel summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.human-comm-integrity-body dl { display: grid; font-size: 11px; gap: 4px 8px; grid-template-columns: max-content minmax(0, 1fr); }
.human-comm-integrity-body dt { color: var(--muted); }
.human-comm-integrity-body dd { margin: 0; overflow-wrap: anywhere; }

.human-comm-reader { min-width: 0; }
.human-comm-thread-header { border-bottom: 1px solid var(--line); gap: 14px; padding: 11px 14px; }
.human-comm-thread-header strong { font-size: 15px; }

.human-comm-identity-panel.open {
  background: #fffdf4;
  border-bottom: 1px solid #eadca8;
  padding: 8px 14px;
}

.human-comm-identity-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 4px 0;
}

.human-comm-backup-owner {
  align-items: center;
  border-bottom: 1px solid #eadca8;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  margin-bottom: 5px;
  padding: 2px 0 8px;
}

.human-comm-backup-owner select {
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  min-height: 34px;
  padding: 6px 8px;
  width: 100%;
}

.human-comm-backup-owner span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.human-comm-identity-editor {
  align-items: center;
  border-top: 1px solid #eadca8;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(180px, 1.5fr) minmax(120px, 1fr) auto auto;
  margin-top: 7px;
  padding-top: 8px;
}

.human-comm-identity-editor > strong,
.human-comm-identity-editor > span { grid-column: 1 / -1; }
.human-comm-identity-editor label { align-items: center; display: flex; font-size: 12px; gap: 5px; }
.human-comm-identity-editor label input { min-height: 0; width: auto; }

.human-comm-reader-toolbar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px auto 0 12px;
  padding: 8px 10px;
  width: min(440px, calc(100% - 24px));
}

.human-comm-reader-alignment {
  display: inline-flex;
  gap: 2px;
  justify-self: end;
}

.human-comm-reader-alignment button {
  align-items: center;
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #344054;
  display: inline-flex;
  font-size: 15px;
  height: 28px;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  width: 30px;
}

.human-comm-reader-alignment button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.human-comm-reader[data-thread-alignment="center"] .human-comm-reader-toolbar,
.human-comm-reader[data-thread-alignment="center"] .human-comm-search-results-panel,
.human-comm-reader[data-thread-alignment="center"] .human-comm-message-list,
.human-comm-reader[data-thread-alignment="center"] .human-comm-pagination,
.human-comm-reader[data-thread-alignment="center"] .human-comm-selection-bar,
.human-comm-reader[data-thread-alignment="center"] .human-comm-marker-editor,
.human-comm-reader[data-thread-alignment="center"] .human-comm-segment-composer {
  margin-left: auto;
  margin-right: auto;
}

.human-comm-reader[data-thread-alignment="right"] .human-comm-reader-toolbar,
.human-comm-reader[data-thread-alignment="right"] .human-comm-search-results-panel,
.human-comm-reader[data-thread-alignment="right"] .human-comm-message-list,
.human-comm-reader[data-thread-alignment="right"] .human-comm-pagination,
.human-comm-reader[data-thread-alignment="right"] .human-comm-selection-bar,
.human-comm-reader[data-thread-alignment="right"] .human-comm-marker-editor,
.human-comm-reader[data-thread-alignment="right"] .human-comm-segment-composer {
  margin-left: auto;
  margin-right: 12px;
}

#humanCommMessageSearch,
.human-comm-search-scope,
#humanCommJumpDate { grid-column: 1 / -1; }
.human-comm-search-scope {
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.35;
  min-height: 0;
  padding: 4px 6px;
  text-align: left;
  width: 100%;
}
.human-comm-search-scope[data-active="true"] {
  background: #eff6ff;
  border-left-color: #2563eb;
  color: #1e3a8a;
  cursor: pointer;
  font-weight: 700;
}
.human-comm-search-scope[data-active="true"]:not(:disabled):hover { background: #dbeafe; }
.human-comm-search-scope:disabled { cursor: default; opacity: 1; }
.human-comm-recent-searches {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 1 / -1;
}
.human-comm-recent-searches > span { color: #667085; font-size: 10px; font-weight: 700; }
.human-comm-recent-searches button {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #344054;
  font-size: 10px;
  line-height: 1.2;
  min-height: 24px;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.human-comm-recent-searches button:hover { background: #eaf2ff; border-color: #93c5fd; }
#humanCommRecentSearches [data-human-clear-recent-searches] { border-radius: 50%; padding: 0; width: 24px; }
#humanCommJumpDate::placeholder { color: #667085; font-size: 11px; }

.human-comm-reader-actions {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.human-comm-reader-actions button { width: 100%; }

.human-comm-search-results-panel {
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  margin: 8px auto 0 12px;
  overflow: hidden;
  width: min(440px, calc(100% - 24px));
}
.human-comm-search-results-panel > header {
  align-items: center;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  display: flex;
  justify-content: space-between;
  padding: 8px 9px;
}
.human-comm-search-results-panel > header strong,
.human-comm-search-results-panel > header span { display: block; }
.human-comm-search-results-panel > header span { color: #475467; font-size: 10px; margin-top: 2px; }
.human-comm-search-results-panel .event-icon-button { flex-basis: 30px; height: 30px; min-height: 30px; width: 30px; }
.human-comm-search-results-list { max-height: 340px; overflow: auto; padding: 6px; }
.human-comm-search-results-list > button {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  color: #17202a;
  display: block;
  min-height: 0;
  padding: 8px;
  text-align: left;
  width: 100%;
}
.human-comm-search-results-list > button:hover { background: #f0f7ff; }
.human-comm-search-results-list > button > span { align-items: baseline; display: flex; gap: 8px; justify-content: space-between; }
.human-comm-search-results-list b { font-size: 11px; }
.human-comm-search-results-list time { color: #667085; font-size: 9px; }
.human-comm-search-results-list p { font-size: 12px; line-height: 1.35; margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.human-comm-search-results-list mark { background: #bfdbfe; color: inherit; }
.human-comm-search-results-list > small { color: #667085; display: block; font-size: 10px; padding: 8px; }

.human-comm-message-list {
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 1360px;
  min-height: 600px;
  margin: 12px auto 0 12px;
  overflow: auto;
  padding: 10px 9px;
  scroll-behavior: smooth;
  width: min(440px, calc(100% - 24px));
}

.human-comm-message {
  align-items: flex-end;
  display: flex;
  gap: 6px;
  margin: 7px 0;
  width: 100%;
}

.human-comm-message.outgoing { flex-direction: row-reverse; }
.human-comm-message-select { color: var(--muted); font-size: 10px; text-align: center; }
.human-comm-message-select span { display: block; }

.human-comm-bubble {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.06);
  max-width: 84%;
  min-width: 140px;
  padding: 8px 10px;
}

.human-comm-message.outgoing .human-comm-bubble { background: #e7f6ef; border-color: #b9dfd0; border-radius: 8px 8px 2px 8px; }
.human-comm-message.selected .human-comm-bubble { outline: 2px solid #f0b429; }
.human-comm-message.context-anchor .human-comm-bubble { outline: 3px solid #2563eb; outline-offset: 2px; }
.human-comm-bubble header { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.human-comm-bubble header strong { font-size: 12px; }
.human-comm-bubble header span,
.human-comm-bubble header time { color: var(--muted); font-size: 10px; }
.human-comm-bubble header time { margin-left: auto; }
.human-comm-bubble p { font-size: 14px; line-height: 1.42; margin: 6px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.human-comm-bubble mark { background: #fde68a; color: inherit; }
.human-comm-bubble .human-comm-search-highlight { background: #dbeafe; }
.human-comm-bubble .human-comm-saved-highlight { background: #fef08a; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 1px; }
.human-comm-bubble .human-comm-saved-highlight.marker-quote { background: #fed7aa; }
.human-comm-bubble footer { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.human-comm-bubble footer button,
.tiny-button { font-size: 11px; min-height: 26px; padding: 0 7px; }

.human-comm-attachments,
.human-comm-annotation-chips,
.human-comm-snapshot-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.human-comm-attachments span,
.human-comm-attachments button,
.human-comm-annotation-chips span,
.human-comm-snapshot-tags button { background: #eef2f6; border-radius: 999px; color: #344054; font-size: 10px; min-height: 22px; padding: 3px 7px; }
.human-comm-attachments button { border: 1px solid #d0d5dd; cursor: pointer; }
.human-comm-attachments button:hover { background: #e2e8f0; border-color: #98a2b3; }
.human-comm-media-gallery { display: grid; gap: 6px; margin: 7px 0; }
.human-comm-media { background: #e5e7eb; border: 1px solid #d0d5dd; border-radius: 7px; margin: 0; min-height: 96px; overflow: hidden; position: relative; }
.human-comm-media > button:not(.human-comm-media-retry) { background: #111827; border: 0; border-radius: 0; display: block; min-height: 0; padding: 0; width: 100%; }
.human-comm-media img { display: block; height: auto; max-height: 430px; object-fit: contain; width: 100%; }
.human-comm-inline-player { background: #111827; display: block; max-height: 430px; width: 100%; }
audio.human-comm-inline-player { background: #f8fafc; min-height: 54px; }
.human-comm-media-links { background: #fff; display: flex; justify-content: flex-end; padding: 5px 7px; }
.human-comm-media-links a { color: #1d4ed8; font-size: 10px; font-weight: 800; }
.human-comm-media-codec-note { background: #fff7ed; color: #9a3412; padding: 6px 7px; }
.human-comm-media figcaption { background: #fff; color: #475467; font-size: 10px; overflow: hidden; padding: 4px 6px; text-overflow: ellipsis; white-space: nowrap; }
.human-comm-media-status { align-items: center; color: #667085; display: flex; font-size: 11px; justify-content: center; min-height: 96px; padding: 10px; text-align: center; }
.human-comm-media[data-media-status="error"] { background: #fff7ed; padding: 8px; }
.human-comm-media-retry { background: #fff; border: 1px solid #d0d5dd; color: #344054; font-size: 11px; min-height: 28px; padding: 4px 7px; }
.human-comm-media small { color: #9a3412; display: block; font-size: 9px; line-height: 1.35; margin-top: 5px; overflow-wrap: anywhere; }
.human-comm-message-details { background: #f8fafc; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.45; margin-top: 6px; overflow-wrap: anywhere; padding: 6px 0 0; }

.human-comm-pagination {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto 0 12px;
  padding: 7px 12px;
  width: min(440px, calc(100% - 24px));
}
.human-comm-pagination span { color: var(--muted); font-size: 12px; }
.human-comm-page-status { text-align: center; }
.human-comm-date-slider { grid-column: 1 / -1; }
.human-comm-date-slider label,
.human-comm-date-slider > div { align-items: center; display: flex; justify-content: space-between; }
.human-comm-date-slider label { font-size: 11px; margin-bottom: 2px; }
.human-comm-date-slider output { color: var(--blue); font-weight: 700; }
.human-comm-date-slider-track { height: 18px; position: relative; width: 100%; }
.human-comm-date-slider-base,
.human-comm-date-slider-progress,
.human-comm-date-gap-track { border-radius: 999px; height: 6px; left: 0; position: absolute; top: 6px; }
.human-comm-date-slider-base { background: #d0d5dd; right: 0; }
.human-comm-date-slider-progress { background: #2563eb; width: 0; }
.human-comm-date-gap-track { pointer-events: none; right: 0; }
.human-comm-date-gap-marker { background: #dc2626; border-left: 1px solid #fff; border-right: 1px solid #fff; height: 10px; min-width: 3px; position: absolute; top: -2px; }
.human-comm-date-slider input {
  appearance: none;
  background: transparent;
  height: 18px;
  inset: 0;
  margin: 0;
  position: absolute;
  width: 100%;
}
.human-comm-date-slider input::-webkit-slider-runnable-track { background: transparent; height: 6px; }
.human-comm-date-slider input::-webkit-slider-thumb { appearance: none; background: #2563eb; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #2563eb; height: 16px; margin-top: -5px; width: 16px; }
.human-comm-date-slider input::-moz-range-track { background: transparent; height: 6px; }
.human-comm-date-slider input::-moz-range-progress { background: transparent; }
.human-comm-date-slider input::-moz-range-thumb { background: #2563eb; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #2563eb; height: 12px; width: 12px; }
.human-comm-date-slider > div span { font-size: 10px; }
.human-comm-selection-bar { background: #fff8e8; border-top: 1px solid #eadca8; gap: 7px; justify-content: flex-start; margin: 0 auto 0 12px; padding: 7px 12px; width: min(440px, calc(100% - 24px)); }
.human-comm-selection-bar > div { margin-right: auto; }
.human-comm-selection-bar span { background: #fff; border-radius: 999px; margin-left: 6px; padding: 3px 7px; }
.human-comm-camera-button { background: #2563eb; border-color: #2563eb; color: #fff; }
.human-comm-camera-button:hover { background: #1d4ed8; border-color: #1d4ed8; }
.human-comm-camera-button:disabled { background: #eef2f6; border-color: #cbd5e1; color: #98a2b3; cursor: not-allowed; opacity: 1; }
.human-comm-text-highlight-status { color: #667085; flex-basis: 100%; font-size: 10px; line-height: 1.3; }
.human-comm-text-highlight-status.ready { color: #92400e; font-weight: 700; }

body.human-comm-screenshot-open { overflow: hidden; }
.human-comm-screenshot-editor {
  align-items: center;
  background: rgba(15, 23, 42, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 10050;
}
.human-comm-screenshot-editor[hidden] { display: none; }
.human-comm-screenshot-dialog {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  width: min(1180px, calc(100vw - 32px));
}
.human-comm-screenshot-head {
  align-items: flex-start;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}
.human-comm-screenshot-head span { color: #2563eb; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.human-comm-screenshot-head h4 { font-size: 18px; margin: 2px 0 3px; }
.human-comm-screenshot-head p { color: #667085; font-size: 11px; margin: 0; }
.human-comm-screenshot-toolbar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 14px;
}
.human-comm-screenshot-toolbar > svg,
.human-comm-screenshot-toolbar button > svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 16px; }
.human-comm-screenshot-toolbar button { align-items: center; display: inline-flex; gap: 5px; }
.human-comm-screenshot-toolbar #humanCommScreenshotDownloadBtn { margin-left: auto; }
.human-comm-screenshot-toolbar #humanCommScreenshotHighlightBtn.active { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.human-comm-screenshot-width { align-items: center; display: inline-flex; gap: 3px; margin-right: 8px; }
.human-comm-screenshot-width > span { color: #475467; font-size: 10px; font-weight: 700; margin-right: 3px; }
.human-comm-screenshot-width button {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #344054;
  font-size: 11px;
  min-height: 30px;
  padding: 4px 8px;
}
.human-comm-screenshot-width button[aria-pressed="true"] { background: #2563eb; border-color: #2563eb; color: #fff; }
.human-comm-screenshot-status { color: #475467; font-size: 11px; margin: 0; padding: 7px 14px; }
.human-comm-screenshot-stage { background: #e9eef5; flex: 1 1 auto; overflow: auto; padding: 18px; }
.human-comm-screenshot-preview { margin: 0 auto; width: max-content; }
.human-comm-screenshot-sheet {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  padding: 30px;
  width: 680px;
}
.human-comm-screenshot-preview[data-layout="wide"] .human-comm-screenshot-sheet { width: 1120px; }
.human-comm-screenshot-sheet > header { border-bottom: 1px solid #cbd5e1; margin-bottom: 18px; padding-bottom: 12px; }
.human-comm-screenshot-sheet > header div { align-items: baseline; display: flex; gap: 10px; }
.human-comm-screenshot-sheet > header span { color: #2563eb; font-size: 11px; font-weight: 800; }
.human-comm-screenshot-sheet > header strong { font-size: 20px; }
.human-comm-screenshot-sheet > header p { color: #344054; font-size: 13px; margin: 5px 0 2px; }
.human-comm-screenshot-sheet > header small { color: #667085; font-size: 10px; }
.human-comm-screenshot-conversation { display: flex; flex-direction: column; gap: 10px; }
.event-date-today-field { position: relative; }
.event-date-today-field > .event-date-today-input { padding-right: 40px !important; }
.event-date-today-field.event-date-today-native-picker > .event-date-today-input { padding-right: 68px !important; }
.event-date-today-button {
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #8fa8c5;
  border-radius: 50%;
  background: #fff;
  color: #145dbd;
  font: 800 13px/1 Arial, sans-serif;
  box-shadow: 0 1px 2px rgba(33, 57, 84, .12);
}
.event-date-today-native-picker > .event-date-today-button { right: 34px; }
.event-date-today-button:hover { border-color: #1769e0; background: #eef5ff; color: #0b4f9d; }
.event-date-today-button:focus-visible { outline: 2px solid #1769e0; outline-offset: 2px; }
.human-comm-screenshot-message {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px 8px 8px 2px;
  color: #17202a;
  display: block;
  max-width: 78%;
  min-height: 0;
  padding: 10px 12px;
  text-align: left;
  width: fit-content;
}
.human-comm-screenshot-message.outgoing { align-self: flex-end; background: #e7f6ef; border-color: #8fd0b5; border-radius: 8px 8px 2px 8px; }
.human-comm-screenshot-message.incoming { align-self: flex-start; }
.human-comm-screenshot-message.highlighted { background: #fef3c7; border-color: #f59e0b; box-shadow: inset 5px 0 #f59e0b; }
.human-comm-screenshot-message:hover { border-color: #2563eb; }
.human-comm-screenshot-message-head { align-items: baseline; display: flex; gap: 10px; justify-content: space-between; }
.human-comm-screenshot-message-head b { font-size: 11px; }
.human-comm-screenshot-message-head time { color: #667085; font-size: 9px; }
.human-comm-screenshot-message-body { display: block; font-size: 14px; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.human-comm-screenshot-message-attachments { color: #475467; display: block; font-size: 9px; margin-top: 6px; }
.human-comm-screenshot-sheet > footer { border-top: 1px solid #cbd5e1; color: #667085; font-size: 9px; margin-top: 18px; padding-top: 10px; }

.human-comm-marker-editor {
  border-bottom: 1px solid #bfdbfe;
  border-left: 3px solid var(--blue);
  border-top: 1px solid #bfdbfe;
  margin: 0 auto 0 12px;
  padding: 9px 10px;
  width: min(440px, calc(100% - 24px));
}
.human-comm-marker-editor-head { align-items: center; display: flex; justify-content: space-between; }
.human-comm-marker-source { color: #475467; font-size: 11px; line-height: 1.4; margin: 5px 0 8px; }
.human-comm-marker-editor form { display: grid; gap: 7px; grid-template-columns: 1fr auto; }
.human-comm-marker-editor input,
.human-comm-marker-editor select,
.human-comm-marker-editor textarea,
.human-comm-marker-list input,
.human-comm-marker-list select { border: 1px solid #cbd5e1; border-radius: 5px; min-height: 34px; padding: 6px 8px; width: 100%; }
.human-comm-marker-editor form > input,
.human-comm-marker-editor form > textarea,
.human-comm-marker-editor form > select { grid-column: 1 / -1; }
.human-comm-marker-editor textarea { min-height: 72px; resize: vertical; }

.human-comm-segment-composer {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
  margin: 0 auto 0 12px;
  padding: 9px 12px;
  width: min(440px, calc(100% - 24px));
}
.human-comm-segment-composer > span { color: var(--muted); font-size: 11px; grid-column: 1 / -1; }

.human-comm-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.human-comm-review-panel { border-bottom: 1px solid var(--line); min-width: 0; padding: 11px 12px; }
.human-comm-review-panel:nth-child(odd) { border-right: 1px solid var(--line); }
.human-comm-snapshots-panel { grid-column: 1 / -1; }
.human-comm-collapsible-panel {
  border-right: 0 !important;
  grid-column: 1 / -1;
  padding: 0;
}
.human-comm-review-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 11px 12px;
  user-select: none;
}
.human-comm-review-summary::-webkit-details-marker { display: none; }
.human-comm-review-summary::before {
  border-bottom: 2px solid #475467;
  border-right: 2px solid #475467;
  content: "";
  height: 7px;
  transform: rotate(-45deg);
  transition: transform 120ms ease;
  width: 7px;
}
.human-comm-collapsible-panel[open] > .human-comm-review-summary::before { transform: rotate(45deg); }
.human-comm-review-summary:hover { background: #f8fafc; }
.human-comm-review-summary:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.human-comm-review-summary > span {
  background: #eef2f6;
  border-radius: 999px;
  color: #475467;
  font-size: 11px;
  margin-left: auto;
  min-width: 24px;
  padding: 3px 7px;
  text-align: center;
}
.human-comm-collapsible-panel > .human-comm-marker-list,
.human-comm-collapsible-panel > .human-comm-segment-list { padding: 0 12px 11px; }

.human-comm-segment-list article,
.human-comm-marker-list article,
.human-comm-snapshot-list article,
.human-comm-person-context article {
  align-items: flex-start;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 0;
}
.human-comm-segment-list article:first-child,
.human-comm-marker-list article:first-child,
.human-comm-snapshot-list article:first-child,
.human-comm-person-context article:first-child { border-top: 0; }
.human-comm-segment-list article > div:last-child { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.human-comm-marker-list article { display: block; }
.human-comm-marker-main > span { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }
.human-comm-marker-main > p { font-size: 12px; margin: 5px 0; white-space: pre-wrap; }
.human-comm-marker-excerpt { color: #344054; }
.human-comm-marker-note { border-left: 2px solid #f0b429; padding-left: 7px; }
.human-comm-marker-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.human-comm-marker-event-picker { display: grid; gap: 5px; grid-template-columns: minmax(120px, 1fr) minmax(150px, 2fr) auto; margin-top: 7px; }
.human-comm-marker-event-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.human-comm-marker-event-link { align-items: center; background: #eef4ff; border-radius: 999px; display: inline-flex; gap: 2px; padding: 2px; }
.human-comm-marker-event-link button { background: transparent; color: #175cd3; font-size: 10px; min-height: 22px; padding: 3px 6px; }
.human-comm-marker-event-link button:last-child { color: #b42318; font-weight: 800; }
.human-comm-marker-schema-warning { background: #fff7ed; color: #9a3412; font-size: 11px; padding: 7px; }
.human-comm-segment-list p { font-size: 12px; margin: 4px 0 0; }
.human-comm-segment-list article > div:first-child { flex: 1 1 auto; min-width: 0; }
.human-comm-segment-summary { display: grid; gap: 4px; }
.human-comm-segment-summary > strong { color: #0f172a; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.human-comm-segment-summary > span { color: #64748b; font-size: 11px; }
.human-comm-segment-summary > p { color: #334155; white-space: pre-wrap; }
.human-comm-segment-list input:focus,
.human-comm-segment-list textarea:focus { border-color: #94a3b8; outline: 0; }

.human-comm-clarification-list article,
.human-comm-snapshot-links { display: flex; flex-wrap: wrap; gap: 5px; }
.human-comm-clarification-list article { align-items: flex-start; border-top: 1px solid #e5e7eb; justify-content: space-between; padding: 7px 0; }
.human-comm-clarification-list article p { font-size: 12px; margin: 3px 0; }
.human-comm-snapshot-links button { background: #eef2f6; border-radius: 999px; color: #344054; font-size: 10px; min-height: 22px; padding: 3px 7px; }

.human-comm-clarification-editor form,
.human-comm-person-context form {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.human-comm-clarification-editor textarea,
.human-comm-person-context textarea { grid-column: 1 / -1; min-height: 82px; resize: vertical; }
.human-comm-clarification-editor button,
.human-comm-person-context form button { justify-self: start; }

.human-comm-snapshot-list article > div:first-child { min-width: 240px; }
.human-comm-snapshot-filters { display: grid; gap: 7px; grid-template-columns: minmax(180px, 2fr) minmax(160px, 1fr); margin-bottom: 8px; }
.human-comm-snapshot-filters input,
.human-comm-snapshot-filters select { border: 1px solid #cbd5e1; border-radius: 5px; min-height: 34px; padding: 6px 8px; width: 100%; }
.human-comm-snapshot-actions { display: grid; gap: 5px; grid-template-columns: minmax(130px, 1fr) auto auto; max-width: 620px; }
.human-comm-snapshot-actions > button:first-child { grid-column: 1 / -1; justify-self: end; }

.comparison-snapshot-tag-picker { border-top: 1px solid var(--line); padding-top: 8px; }
.comparison-snapshot-tag-picker > div { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px; max-height: 140px; overflow: auto; }
.comparison-snapshot-tag-option { align-items: center; display: flex; font-size: 12px; gap: 5px; }

.comparison-header-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.comparison-header-actions input[type="datetime-local"] { min-width: 190px; }
.comparison-header-actions select { min-width: 150px; }

@media (max-width: 1100px) {
  .human-comm-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
  .human-comm-review-grid { grid-template-columns: 1fr; }
  .human-comm-review-panel:nth-child(odd) { border-right: 0; }
  .human-comm-snapshots-panel { grid-column: auto; }
}

@media (max-width: 760px) {
  .human-comm-header { align-items: flex-start; flex-direction: column; }
  .human-comm-layout { display: block; }
  .human-comm-thread-browser { border-bottom: 1px solid var(--line); border-right: 0; }
  .human-comm-thread-list { max-height: 260px; }
  .human-comm-reader-toolbar,
  .human-comm-search-results-panel,
  .human-comm-pagination,
  .human-comm-selection-bar,
  .human-comm-marker-editor,
  .human-comm-segment-composer { margin-left: 0; margin-right: 0; width: 100%; }
  .human-comm-message-list { border-left: 0; border-radius: 0; border-right: 0; margin-top: 0; width: 100%; }
  .human-comm-bubble { max-width: 88%; min-width: 0; }
  .human-comm-segment-composer { grid-template-columns: 1fr; }
  .human-comm-marker-event-picker { grid-template-columns: 1fr; }
  .human-comm-backup-owner { grid-template-columns: 1fr; }
  .human-comm-identity-editor,
  .human-comm-clarification-editor form,
  .human-comm-person-context form,
  .human-comm-snapshot-actions { grid-template-columns: 1fr; }
  .human-comm-snapshot-filters { grid-template-columns: 1fr; }
  .human-comm-snapshot-actions > button:first-child { grid-column: auto; }
  .human-comm-screenshot-editor { padding: 0; }
  .human-comm-screenshot-dialog { border: 0; border-radius: 0; max-height: 100vh; width: 100vw; }
  .human-comm-screenshot-toolbar #humanCommScreenshotDownloadBtn { margin-left: 0; }
  .human-comm-screenshot-stage { padding: 10px; }
}

body.timeline-fullscreen {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
}

button:hover {
  filter: brightness(0.95);
}

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

.small-button {
  font-size: 13px;
  min-height: 32px;
  padding: 0 10px;
}

.ghost-button {
  background: #e8edf6;
  color: #1f2937;
}

.danger-button {
  background: #fee4e2;
  color: var(--red);
}

.red-plus-button {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.timeline-fullscreen .topbar,
.timeline-fullscreen .dashboard,
.timeline-fullscreen .review-events-panel,
.timeline-fullscreen .import-panel,
.timeline-fullscreen .detail-panel,
.timeline-fullscreen .toolbar,
.timeline-fullscreen .master-list,
.timeline-fullscreen .files-page,
.timeline-fullscreen .project-workspace-page,
.timeline-fullscreen .ai-page,
.timeline-fullscreen .transcript-review-page,
.timeline-fullscreen .presentation-workspace-page,
.timeline-fullscreen .argument-presentation-page,
.timeline-fullscreen .preview-panel {
  display: none;
}

.timeline-fullscreen.timeline-editing .detail-panel,
.timeline-fullscreen.timeline-detailing .detail-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-radius: 0;
  bottom: 0;
  box-shadow: -18px 0 42px rgba(17, 24, 39, 0.18);
  display: block;
  max-width: min(780px, 56vw);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  position: fixed;
  right: 0;
  top: 0;
  scrollbar-gutter: stable;
  width: 780px;
  z-index: 30;
}

.timeline-fullscreen.timeline-editing .timeline,
.timeline-fullscreen.timeline-detailing .timeline {
  padding-right: min(810px, 58vw);
}

.spreadsheet-fullscreen-mode .topbar,
.spreadsheet-fullscreen-mode .dashboard,
.spreadsheet-fullscreen-mode .review-events-panel,
.spreadsheet-fullscreen-mode .import-panel,
.spreadsheet-fullscreen-mode .detail-panel,
.spreadsheet-fullscreen-mode .toolbar,
.spreadsheet-fullscreen-mode .view-template-bar,
.spreadsheet-fullscreen-mode .zoom-row,
.spreadsheet-fullscreen-mode .timeline,
.spreadsheet-fullscreen-mode .fullscreen-event-strip,
.spreadsheet-fullscreen-mode .master-list,
.spreadsheet-fullscreen-mode .files-page,
.spreadsheet-fullscreen-mode .project-workspace-page,
.spreadsheet-fullscreen-mode .ai-page,
.spreadsheet-fullscreen-mode .transcript-review-page,
.spreadsheet-fullscreen-mode .presentation-workspace-page,
.spreadsheet-fullscreen-mode .argument-presentation-page,
.spreadsheet-fullscreen-mode .preview-panel {
  display: none;
}

.tools-page-mode .dashboard,
.tools-page-mode .review-events-panel,
.tools-page-mode .detail-panel {
  display: none;
}

.project-dashboard {
  display: none;
}

.files-page {
  display: none;
  margin: 0 auto 12px;
  max-width: min(1880px, calc(100vw - 18px));
}

.project-workspace-page {
  display: none;
  margin: 0 auto 12px;
  max-width: 1680px;
}

.ai-page {
  display: none;
  margin: 0 auto 12px;
  max-width: 1680px;
}

.communication-comparison-page {
  display: none;
  margin: 0 auto 12px;
  max-width: min(1900px, calc(100vw - 16px));
}

.transcript-review-page {
  display: none;
  margin: 0 auto 12px;
  max-width: min(1760px, calc(100vw - 18px));
}

.presentation-workspace-page {
  display: none;
  margin: 0 auto 12px;
  max-width: 1280px;
}

.argument-presentation-page {
  display: none;
  margin: 0 auto 12px;
  max-width: 1280px;
}

.vertical-timeline-page {
  display: none;
  margin: 0 auto 12px;
  max-width: 1680px;
}

.project-dashboard-mode .project-dashboard {
  display: block;
}

.project-workspace-mode .project-workspace-page {
  display: grid;
  gap: 12px;
}

.project-files-mode .files-page {
  display: block;
}

.project-ai-mode .ai-page {
  display: grid;
  gap: 12px;
}

.ai-tool-section {
  align-content: start;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.ai-tool-section-toggle {
  align-items: center;
  appearance: none;
  background: #f8fbff;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 60px;
  padding: 9px 12px;
  text-align: left;
  width: 100%;
}

.ai-tool-section-toggle:hover,
.ai-tool-section-toggle:focus-visible {
  background: #eef6ff;
}

.ai-tool-section-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.ai-tool-section-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ai-tool-section-label strong {
  color: #172033;
  font-size: 14px;
}

.ai-tool-section-label span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}

.ai-tool-section-icon {
  align-items: center;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.ai-tool-section.is-expanded > .ai-tool-section-toggle {
  border-bottom: 1px solid var(--line);
}

.ai-tool-section-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.ai-tool-section-body[hidden] {
  display: none !important;
}

.ai-tool-section-body > .comm-card-head:first-child h4 {
  display: none;
}

.ai-tool-section-body > .comm-card-head:first-child {
  justify-content: flex-end;
}

.proof-check-panel .ai-tool-section-body > .comm-card-head:first-child {
  display: none;
}

.human-communications-workspace.ai-tool-section {
  margin: 14px 0 18px;
}

.human-communications-workspace.ai-tool-section > .ai-tool-section-body {
  display: block;
  padding: 0;
}

.human-communications-workspace.ai-tool-section > .ai-tool-section-body[hidden] {
  display: none;
}

.human-communications-workspace .ai-tool-section-body > .human-comm-header:first-child {
  justify-content: flex-end;
}

.human-communications-workspace .ai-tool-section-body > .human-comm-header:first-child > div:first-child {
  display: none;
}

@media (max-width: 720px) {
  .ai-tool-section-toggle {
    min-height: 68px;
  }
}

.project-comparison-mode .communication-comparison-page {
  display: block;
}

.transcript-review-mode .transcript-review-page {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

body.has-application-nav.transcript-review-mode .app-shell {
  overflow-x: clip;
  overflow-y: visible;
}

.presentation-workspace-mode .presentation-workspace-page {
  display: grid;
  gap: 12px;
}

.argument-presentation-mode .argument-presentation-page {
  display: grid;
  gap: 12px;
}

.vertical-timeline-mode .vertical-timeline-page {
  display: block;
}

.project-dashboard-mode .dashboard,
.project-dashboard-mode .review-events-panel,
.project-dashboard-mode .project-workspace-banner,
.project-dashboard-mode .workspace-grid {
  display: none;
}

.project-workspace-mode .dashboard,
.project-ai-mode .dashboard,
.project-comparison-mode .dashboard,
.transcript-review-mode .dashboard,
.presentation-workspace-mode .dashboard,
.argument-presentation-mode .dashboard,
.vertical-timeline-mode .dashboard,
.project-files-mode .dashboard,
.project-workspace-mode .review-events-panel,
.project-ai-mode .review-events-panel,
.project-comparison-mode .review-events-panel,
.transcript-review-mode .review-events-panel,
.presentation-workspace-mode .review-events-panel,
.argument-presentation-mode .review-events-panel,
.vertical-timeline-mode .review-events-panel,
.project-files-mode .review-events-panel,
.project-files-mode .workspace-grid,
.project-ai-mode .workspace-grid,
.project-comparison-mode .workspace-grid,
.transcript-review-mode .workspace-grid,
.presentation-workspace-mode .workspace-grid,
.argument-presentation-mode .workspace-grid,
.vertical-timeline-mode .workspace-grid,
.project-workspace-mode .workspace-grid {
  display: none;
}

.vertical-timeline-page-header {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 14px;
}

.vertical-timeline-heading {
  align-items: flex-start;
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.vertical-timeline-heading-copy {
  min-width: 0;
}

.vertical-timeline-title-line {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}

.vertical-timeline-heading h2,
.vertical-timeline-heading p,
.vertical-timeline-panel-head h3 {
  margin: 0;
}

.vertical-timeline-heading h2 {
  color: #172033;
  font-size: 22px;
}

.vertical-timeline-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.vertical-timeline-controls {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(260px, 420px) minmax(220px, 340px);
}

.vertical-timeline-header-controls {
  display: grid;
  gap: 8px;
  min-width: min(650px, 55vw);
}

.vertical-timeline-mode-switch {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: flex-start;
}

.vertical-timeline-mode-button {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 5px 10px;
}

.vertical-timeline-mode-button:hover,
.vertical-timeline-mode-button:focus-visible {
  background: #eef6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.vertical-timeline-mode-button.is-selected {
  background: #172033;
  border-color: #172033;
  color: #fff;
}

.quick-timeline-controls {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(280px, 1fr) auto 38px;
}

.quick-timeline-controls[hidden],
.vertical-timeline-controls[hidden],
.vertical-timeline-panel-actions[hidden],
.vertical-timeline-type-filters[hidden] {
  display: none !important;
}

.quick-timeline-controls label {
  display: grid;
  gap: 4px;
}

.quick-timeline-controls label > span,
.quick-timeline-form-grid label > span,
.quick-conversion-review label > span,
.quick-draft-options label > span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.quick-timeline-controls select {
  min-height: 38px;
  width: 100%;
}

.quick-timeline-controls .primary-button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-height: 38px;
  white-space: nowrap;
}

.quick-timeline-controls svg,
.quick-draft-capture-main button svg,
.quick-draft-order-controls button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.vertical-timeline-page.is-quick-mode .vertical-timeline-list {
  padding: 0 10px 16px;
}

.vertical-timeline-page.is-quick-mode .vertical-timeline-list::before {
  content: none;
}

.quick-draft-composer {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin: 0 -10px 8px;
  padding: 10px 12px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.quick-draft-capture-main {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(180px, 1fr) 145px minmax(250px, auto);
}

.quick-draft-capture-main input,
.quick-draft-capture-main select,
.quick-draft-capture-main button {
  min-height: 38px;
}

.quick-draft-capture-main button {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.quick-draft-capture-actions {
  display: flex;
  gap: 7px;
}

.quick-draft-capture-actions button {
  justify-content: center;
  white-space: nowrap;
}

.quick-event-picker {
  background: #fff;
  border: 2px solid #93c5fd;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 9px;
  margin: 0 0 10px;
  padding: 11px;
}

.quick-event-picker > header,
.quick-event-picker > footer,
.quick-case-reference-banner,
.quick-case-reference-actions {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: space-between;
}

.quick-event-picker > header > div,
.quick-case-reference-banner > div:first-child {
  display: grid;
  gap: 2px;
}

.quick-event-picker > header span,
.quick-case-reference-banner span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.quick-event-picker-search-row {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.quick-event-picker-search-row label {
  display: grid;
  gap: 4px;
}

.quick-event-picker-search-row label > span {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.quick-event-picker-search-row input {
  min-height: 38px;
  width: 100%;
}

.quick-event-picker-search-row > strong,
.quick-event-picker > footer > span {
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}

.quick-event-picker-list {
  border: 1px solid #dbe3ee;
  border-radius: 5px;
  display: grid;
  max-height: 390px;
  overflow-y: auto;
}

.quick-event-picker-option {
  align-items: start;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 18px 102px minmax(0, 1fr);
  padding: 9px;
}

.quick-event-picker-option:last-child {
  border-bottom: 0;
}

.quick-event-picker-option:has(input:checked) {
  background: #eff6ff;
  box-shadow: inset 3px 0 #2563eb;
}

.quick-event-picker-option input {
  margin-top: 4px;
}

.quick-event-picker-date {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  padding-top: 2px;
}

.quick-event-picker-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-event-picker-copy > strong {
  color: #172033;
  font-size: 13px;
}

.quick-event-picker-copy > small,
.quick-event-picker-copy > span:not(.vertical-timeline-item-context) {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-event-picker > footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 9px;
}

.quick-draft-options {
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  padding: 7px 9px;
}

.quick-draft-options summary {
  color: #475569;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.quick-draft-options > div {
  display: grid;
  gap: 8px;
  grid-template-columns: 150px 130px minmax(180px, 1fr);
  padding-top: 9px;
}

.quick-draft-options .quick-draft-options-wide {
  grid-column: 1 / -1;
}

.quick-draft-picker-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.quick-draft-picker {
  align-content: start;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.quick-draft-picker > strong {
  color: #334155;
  font-size: 12px;
}

.quick-draft-picker > strong small {
  color: #64748b;
  font-weight: 700;
}

.quick-draft-picker-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 28px;
}

.quick-draft-picker-chip {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 5px;
  color: #3730a3;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
  max-width: 100%;
  min-height: 26px;
  padding: 2px 3px 2px 7px;
}

.quick-draft-tag-chip {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}

.quick-draft-picker-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-draft-picker-chip > svg,
.quick-draft-picker-chip > button svg {
  fill: none;
  flex: 0 0 auto;
  height: 13px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 13px;
}

.quick-draft-picker-chip > button {
  align-items: center;
  background: transparent;
  border: 0;
  color: currentColor;
  display: inline-flex;
  height: 21px;
  justify-content: center;
  padding: 3px;
  width: 21px;
}

.quick-draft-picker-empty {
  color: #64748b;
  font-size: 11px;
}

.quick-draft-picker-add {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 34px;
}

.quick-draft-picker-add select,
.quick-draft-picker-add button {
  min-height: 34px;
}

.quick-draft-type-help {
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}

.quick-draft-options label {
  display: grid;
  gap: 4px;
}

.quick-draft-options input,
.quick-draft-options textarea {
  width: 100%;
}

.quick-draft-capture-hint {
  color: #64748b;
  font-size: 11px;
  margin: 0;
}

.quick-draft-list {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.quick-draft-row {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 88px;
  overflow: hidden;
  position: relative;
}

.quick-draft-row.is-selected {
  background: #eff6ff;
  border-color: #60a5fa;
  box-shadow: inset 4px 0 #2563eb;
}

.quick-draft-row.is-archived {
  opacity: 0.65;
}

.quick-case-event-row {
  border-color: #99f6e4;
}

.quick-case-event-row.is-selected {
  background: #f0fdfa;
  border-color: #14b8a6;
  box-shadow: inset 4px 0 #0f766e;
}

.quick-case-event-source {
  align-content: center;
  background: #f0fdfa;
  border-right: 1px solid #99f6e4;
  color: #0f766e;
  display: grid;
  font-size: 10px;
  gap: 2px;
  justify-items: center;
  letter-spacing: 0;
  padding: 8px 3px;
  text-transform: uppercase;
}

.quick-case-event-source span {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.quick-draft-order-controls {
  align-items: center;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: grid;
  gap: 3px;
  grid-template-columns: 20px 32px 20px;
  justify-content: center;
  padding: 8px 3px;
}

.quick-draft-order-controls button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #2563eb;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 3px;
  width: 24px;
}

.quick-draft-order-controls button:disabled {
  color: #cbd5e1;
  cursor: default;
}

.quick-draft-order-controls input {
  border-color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
  height: 32px;
  padding: 3px;
  text-align: center;
  width: 34px;
}

.quick-draft-select {
  align-items: start;
  background: transparent;
  border: 0;
  color: #172033;
  display: grid;
  gap: 10px;
  grid-template-columns: 98px 20px minmax(0, 1fr);
  padding: 10px 12px;
  position: relative;
  text-align: left;
  width: 100%;
}

.quick-draft-select::before {
  background: #cbd5e1;
  bottom: 0;
  content: "";
  left: 127px;
  position: absolute;
  top: 0;
  width: 2px;
}

.quick-draft-select time {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  padding-top: 4px;
}

.quick-draft-select:hover,
.quick-draft-select:focus-visible {
  background: #f8fbff;
}

.quick-draft-node {
  background: #64748b;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #64748b;
  height: 14px;
  margin-top: 5px;
  position: relative;
  width: 14px;
  z-index: 1;
}

.quick-draft-event .quick-draft-node { background: #2563eb; box-shadow: 0 0 0 2px #2563eb; }
.quick-draft-point .quick-draft-node { background: #7c3aed; border-radius: 2px; box-shadow: 0 0 0 2px #7c3aed; transform: rotate(45deg); }
.quick-draft-position .quick-draft-node { background: #0f766e; box-shadow: 0 0 0 2px #0f766e; }
.quick-draft-note .quick-draft-node { background: #b45309; border-radius: 3px; box-shadow: 0 0 0 2px #b45309; }
.quick-case-event-node { background: #0f766e; border-radius: 2px; box-shadow: 0 0 0 2px #0f766e; height: 16px; width: 16px; }

.quick-draft-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quick-draft-copy > span {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-draft-context {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding-top: 12px;
}

.quick-draft-context h3 {
  font-size: 14px;
  margin: 0;
}

.quick-draft-context > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-draft-copy b,
.quick-draft-status {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-draft-copy b { color: #475569; }
.quick-draft-status { background: #e2e8f0; border-radius: 4px; color: #475569; padding: 2px 5px; }
.quick-draft-status.status-needs_review { background: #ffedd5; color: #9a3412; }
.quick-draft-status.status-converted { background: #dcfce7; color: #166534; }
.quick-draft-status.status-archived { background: #e5e7eb; color: #4b5563; }
.quick-draft-status.status-case-event { background: #ccfbf1; color: #115e59; }

.quick-draft-copy strong {
  font-size: 15px;
  line-height: 1.3;
}

.quick-draft-copy small {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-timeline-editor,
.quick-draft-detail,
.quick-timeline-summary,
.quick-conversion-review {
  display: grid;
  gap: 14px;
}

.quick-timeline-eyebrow {
  color: #0369a1;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-timeline-editor h2,
.quick-draft-detail h2,
.quick-timeline-summary h2,
.quick-conversion-review h2 {
  color: #172033;
  font-size: 21px;
  margin: 3px 0 0;
}

.quick-timeline-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.quick-timeline-form-grid label {
  display: grid;
  gap: 5px;
}

.quick-timeline-form-grid label:first-child,
.quick-timeline-form-grid .quick-timeline-wide {
  grid-column: 1 / -1;
}

.quick-timeline-separation-note,
.quick-conversion-explanation {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 10px;
}

.quick-draft-facts {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-draft-facts span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  display: grid;
  font-size: 13px;
  gap: 3px;
  padding: 9px;
}

.quick-draft-facts b {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}

.quick-draft-notes-detail {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.quick-draft-notes-detail h3,
.quick-draft-notes-detail p {
  margin: 0;
}

.quick-draft-notes-detail h3 { font-size: 14px; }
.quick-draft-notes-detail p { color: #475569; line-height: 1.5; margin-top: 6px; white-space: pre-wrap; }

.quick-draft-detail-actions,
.quick-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-case-source-link,
.quick-case-reference-banner {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  padding: 10px;
}

.quick-case-source-link {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.quick-case-source-link > div {
  display: grid;
  gap: 3px;
}

.quick-case-source-link span {
  color: #475569;
  font-size: 11px;
}

.quick-case-event-detail {
  display: grid;
  gap: 13px;
}

.quick-case-reference-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-case-reference-actions .secondary-button {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.quick-case-reference-actions svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.quick-converted-link {
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.quick-converted-link span {
  color: #166534;
  font-size: 11px;
}

.quick-converted-link button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.quick-conversion-source {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  padding: 12px;
}

.quick-conversion-review label {
  display: grid;
  gap: 5px;
}

.quick-timeline-summary > p {
  color: #475569;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.quick-timeline-summary > div {
  align-items: baseline;
  display: flex;
  gap: 7px;
}

.quick-timeline-summary > div strong {
  color: #172033;
  font-size: 28px;
}

.quick-timeline-summary > div span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.quick-timeline-summary > button {
  justify-self: start;
}

.vertical-timeline-controls label {
  display: grid;
  gap: 4px;
}

.vertical-timeline-controls label > span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.vertical-timeline-controls select,
.vertical-timeline-search input {
  min-height: 38px;
  width: 100%;
}

.vertical-timeline-search {
  min-width: 0;
  position: relative;
}

.vertical-timeline-search input {
  padding-right: 42px;
}

.vertical-timeline-search .event-icon-button {
  background: transparent;
  border: 0;
  color: #64748b;
  height: 30px;
  min-height: 30px;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 30px;
}

.vertical-timeline-layout {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.25fr);
}

.vertical-timeline-chronology-panel,
.vertical-timeline-detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.vertical-timeline-panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 14px;
}

.vertical-timeline-panel-head h3 {
  color: #172033;
  font-size: 17px;
}

.vertical-timeline-panel-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.vertical-timeline-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.vertical-timeline-type-filters {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  scrollbar-width: thin;
}

.vertical-timeline-type-filter {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
}

.vertical-timeline-type-filter:hover,
.vertical-timeline-type-filter:focus-visible {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
  filter: none;
}

.vertical-timeline-type-filter.is-selected {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

.vertical-timeline-type-filter b {
  font-size: 12px;
}

.vertical-timeline-type-filter span {
  align-items: center;
  background: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
  min-width: 22px;
  padding: 2px 6px;
}

.vertical-timeline-type-filter.is-selected span {
  background: #ffffff;
  color: #1d4ed8;
}

.vertical-timeline-type-guide {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 5px 14px;
  line-height: 1.35;
  padding: 7px 12px;
}

.vertical-timeline-type-guide span {
  white-space: nowrap;
}

.vertical-timeline-type-guide b {
  color: #334155;
}

.vertical-timeline-add-point,
.vertical-timeline-add-note,
.vertical-timeline-add-comparison,
.vertical-timeline-add-position,
.vertical-timeline-analyze-positions {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
}

.vertical-timeline-add-point svg,
.vertical-timeline-add-note svg,
.vertical-timeline-add-comparison svg,
.vertical-timeline-add-position svg,
.vertical-timeline-analyze-positions svg,
.vertical-timeline-event-point-action svg,
.vertical-point-add-note svg,
.vertical-point-add-comparison svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.vertical-timeline-panel-head .vertical-timeline-add-point span,
.vertical-timeline-panel-head .vertical-timeline-add-note span,
.vertical-timeline-panel-head .vertical-timeline-add-comparison span,
.vertical-timeline-panel-head .vertical-timeline-add-position span,
.vertical-timeline-panel-head .vertical-timeline-analyze-positions span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.vertical-timeline-add-note,
.vertical-event-add-note {
  background: #b45309;
  border-color: #92400e;
  color: #ffffff;
}

.vertical-timeline-add-note:hover,
.vertical-timeline-add-note:focus-visible,
.vertical-event-add-note:hover,
.vertical-event-add-note:focus-visible {
  background: #92400e;
  border-color: #78350f;
  color: #ffffff;
  filter: none;
}

.vertical-timeline-add-comparison,
.vertical-event-add-comparison,
.vertical-point-add-comparison {
  background: #b91c1c;
  border-color: #991b1b;
  color: #ffffff;
}

.vertical-timeline-add-comparison:hover,
.vertical-timeline-add-comparison:focus-visible,
.vertical-event-add-comparison:hover,
.vertical-event-add-comparison:focus-visible,
.vertical-point-add-comparison:hover,
.vertical-point-add-comparison:focus-visible {
  background: #991b1b;
  border-color: #7f1d1d;
  color: #ffffff;
  filter: none;
}

.vertical-timeline-add-position,
.vertical-event-add-position {
  background: #0f766e;
  border-color: #115e59;
  color: #ffffff;
}

.vertical-timeline-add-position:hover,
.vertical-timeline-add-position:focus-visible,
.vertical-event-add-position:hover,
.vertical-event-add-position:focus-visible {
  background: #115e59;
  border-color: #134e4a;
  color: #ffffff;
  filter: none;
}

.vertical-timeline-analyze-positions {
  background: #4338ca;
  border-color: #3730a3;
  color: #ffffff;
}

.vertical-timeline-analyze-positions:hover,
.vertical-timeline-analyze-positions:focus-visible {
  background: #3730a3;
  border-color: #312e81;
  color: #ffffff;
  filter: none;
}

.vertical-timeline-list {
  --vertical-timeline-axis-color: #cbd5e1;
  --vertical-timeline-axis-left: 149px;
  max-height: calc(100vh - 260px);
  min-height: 520px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 10px 16px;
  position: relative;
  scrollbar-gutter: stable;
}

.vertical-timeline-list::before {
  background: var(--vertical-timeline-axis-color);
  bottom: 22px;
  content: "";
  left: var(--vertical-timeline-axis-left);
  position: absolute;
  top: 22px;
  width: 2px;
}

.vertical-timeline-event {
  align-items: start;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 116px 24px minmax(0, 1fr);
  min-height: 88px;
  padding: 10px 8px;
  position: relative;
  text-align: left;
  width: 100%;
}

.vertical-timeline-event:hover,
.vertical-timeline-event:focus-visible {
  background: #f8fbff;
  border-color: #bfdbfe;
  filter: none;
}

.vertical-timeline-event:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.vertical-timeline-event.is-selected {
  background: #eff6ff;
  border-color: #60a5fa;
}

.vertical-timeline-point {
  background: #fafafa;
}

.vertical-timeline-point .vertical-timeline-node {
  border-radius: 3px;
  transform: rotate(45deg);
}

.vertical-timeline-point.is-selected {
  background: #f5f3ff;
  border-color: #8b5cf6;
}

.vertical-timeline-note {
  background: #fffbeb;
}

.vertical-timeline-note .vertical-timeline-node {
  border-radius: 3px;
  transform: none;
}

.vertical-timeline-note.is-selected {
  background: #fff7d6;
  border-color: #f59e0b;
}

.vertical-timeline-comparison {
  background: #fff7f7;
}

.vertical-timeline-comparison .vertical-timeline-node {
  border-radius: 2px;
  transform: rotate(45deg);
}

.vertical-timeline-comparison.is-selected {
  background: #fef2f2;
  border-color: #ef4444;
}

.vertical-timeline-position {
  background: #f0fdfa;
}

.vertical-timeline-position .vertical-timeline-node {
  border-radius: 50% 50% 3px 50%;
  transform: rotate(45deg);
}

.vertical-timeline-position.is-selected {
  background: #ccfbf1;
  border-color: #14b8a6;
}

.vertical-point-type,
.vertical-point-eyebrow {
  color: #6d28d9;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vertical-note-type,
.vertical-note-eyebrow {
  color: #a14b08;
}

.vertical-comparison-type,
.vertical-comparison-eyebrow {
  color: #b91c1c;
}

.vertical-position-type,
.vertical-position-eyebrow {
  color: #0f766e;
}

.vertical-timeline-event time {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  padding-top: 5px;
}

.vertical-timeline-node {
  background: var(--vertical-event-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--vertical-event-color);
  display: block;
  height: 16px;
  justify-self: center;
  margin-top: 5px;
  position: relative;
  width: 16px;
  z-index: 1;
}

.vertical-timeline-event-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vertical-timeline-item-heading {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.vertical-timeline-item-heading > strong {
  min-width: 0;
}

.vertical-timeline-kind-chip {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  color: #1d4ed8;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  padding: 3px 6px;
}

.vertical-timeline-kind-chip.kind-point { background: #f3e8ff; border-color: #ddd6fe; color: #6d28d9; }
.vertical-timeline-kind-chip.kind-note { background: #ffedd5; border-color: #fed7aa; color: #9a3412; }
.vertical-timeline-kind-chip.kind-position { background: #ccfbf1; border-color: #99f6e4; color: #0f766e; }
.vertical-timeline-kind-chip.kind-comparison { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.vertical-timeline-kind-chip.kind-draft { background: #e2e8f0; border-color: #cbd5e1; color: #475569; }

.vertical-timeline-event-copy strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.3;
}

.vertical-timeline-event-summary {
  color: #475569;
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vertical-timeline-event-meta {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vertical-timeline-item-context {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.vertical-timeline-item-context:empty {
  display: none;
}

.vertical-timeline-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.vertical-timeline-tag {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 5px;
  color: #5b21b6;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 190px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vertical-timeline-tag-more {
  color: #6d28d9;
  font-size: 11px;
  font-weight: 900;
}

.vertical-timeline-people {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.vertical-timeline-person {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  color: #3730a3;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  line-height: 1.2;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 7px;
}

.vertical-timeline-person svg {
  fill: none;
  flex: 0 0 auto;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.vertical-timeline-person span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vertical-timeline-person-more {
  color: #4338ca;
  font-size: 12px;
  font-weight: 900;
}

.vertical-timeline-people-empty {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.vertical-timeline-detail-people {
  background: #f8faff;
  border: 1px solid #dbe4ff;
  border-radius: 6px;
  margin: 10px 0 2px;
  padding: 9px 10px;
}

.vertical-timeline-detail-people h3 {
  color: #172033;
  font-size: 13px;
  margin: 0 0 7px;
}

button.save-icon-button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
  padding: 6px;
  width: 34px;
}

button.save-icon-button.tiny-button {
  flex-basis: 30px;
  height: 30px;
  min-height: 30px;
  min-width: 30px;
  padding: 5px;
  width: 30px;
}

button.save-icon-button svg {
  fill: none;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.vertical-timeline-empty {
  align-items: center;
  color: #64748b;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 240px;
  padding: 24px;
  text-align: center;
}

.vertical-timeline-empty strong {
  color: #172033;
}

.vertical-timeline-detail-panel {
  max-height: calc(100vh - 138px);
  overflow-x: hidden;
  overflow-y: auto;
  position: sticky;
  scrollbar-gutter: stable;
  top: 10px;
}

.vertical-timeline-detail {
  min-height: 520px;
  padding: 14px;
}

.vertical-timeline-detail .detail-content {
  padding: 0;
}

.vertical-timeline-event-point-action {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: -4px 0 12px;
  padding: 0 0 10px;
}

.vertical-timeline-event-point-action button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.vertical-point-add-note {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  min-height: 32px;
  padding: 5px 8px;
}

.vertical-point-add-comparison {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  min-height: 32px;
  padding: 5px 8px;
}

.vertical-point-add-comparison span {
  font-size: 12px;
  font-weight: 800;
}

.vertical-point-add-note span {
  font-size: 12px;
  font-weight: 800;
}

.vertical-point-detail-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.vertical-point-detail-header h2 {
  color: #172033;
  font-size: 21px;
  line-height: 1.25;
  margin: 4px 0 0;
}

.vertical-point-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.vertical-point-save-status {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  max-width: 190px;
  text-align: right;
}

.vertical-point-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.vertical-point-facts span {
  color: #334155;
  display: grid;
  font-size: 13px;
  gap: 3px;
}

.vertical-point-facts b {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}

.vertical-point-meaning,
.vertical-point-sources {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.vertical-point-meaning h3,
.vertical-point-sources h3 {
  color: #172033;
  font-size: 14px;
  margin: 0 0 8px;
}

.vertical-point-sources h3 span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.vertical-point-meaning p,
.vertical-point-sources p {
  color: #334155;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.vertical-point-sources {
  display: grid;
  gap: 8px;
}

.vertical-point-sources button {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  color: #172033;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.vertical-point-sources button:hover,
.vertical-point-sources button:focus-visible {
  background: #eff6ff;
  border-color: #93c5fd;
  filter: none;
}

.vertical-point-sources button span,
.vertical-point-sources button small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.vertical-point-audit,
.vertical-point-source-note {
  color: #64748b;
  font-size: 12px;
  margin: 12px 0 0;
}

.vertical-note-editor,
.vertical-note-detail {
  border-left: 4px solid #d97706;
  padding-left: 12px;
}

.vertical-note-source-note,
.vertical-note-disclaimer {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  color: #78350f;
  line-height: 1.45;
  padding: 9px 10px;
}

.vertical-note-disclaimer {
  font-size: 12px;
  margin: 12px 0 0;
}

.vertical-note-meaning {
  background: #fffdf7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 12px;
}

.vertical-comparison-editor,
.vertical-comparison-detail {
  border-left: 4px solid #dc2626;
  padding-left: 12px;
}

.vertical-position-editor,
.vertical-position-detail {
  border-left: 4px solid #0f766e;
  padding-left: 12px;
}

.vertical-position-source-preview {
  margin-top: 12px;
}

.vertical-position-statement {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  padding: 12px;
}

.vertical-position-statement h3,
.vertical-position-history h3 {
  color: #172033;
  font-size: 14px;
  margin: 0 0 8px;
}

.vertical-position-statement > strong {
  color: #134e4a;
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.vertical-position-statement p {
  color: #334155;
  line-height: 1.55;
  margin: 7px 0 0;
  white-space: pre-wrap;
}

.vertical-position-disclaimer {
  background: #ecfeff;
  border: 1px solid #67e8f9;
  border-radius: 6px;
  color: #155e75;
  font-size: 12px;
  line-height: 1.45;
  margin: 12px 0;
  padding: 9px 10px;
}

.vertical-position-history {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.vertical-position-history h3 span {
  background: #ccfbf1;
  border-radius: 10px;
  color: #0f766e;
  font-size: 11px;
  margin-left: 5px;
  padding: 2px 7px;
}

.vertical-position-history > div {
  display: grid;
  gap: 6px;
}

.vertical-position-history button {
  align-items: start;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #172033;
  display: grid;
  gap: 3px 8px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.vertical-position-history button.is-current {
  background: #f0fdfa;
  border-color: #2dd4bf;
}

.vertical-position-history time {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  grid-row: 1 / span 2;
}

.vertical-position-history strong {
  font-size: 13px;
}

.vertical-position-history small {
  color: #64748b;
  font-size: 11px;
}

.vertical-comparison-analysis {
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
}

.vertical-comparison-analysis h3,
.vertical-comparison-linked-sources h3 {
  color: #172033;
  font-size: 14px;
  margin: 0 0 8px;
}

.vertical-comparison-analysis p {
  color: #334155;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.vertical-comparison-disclaimer {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 6px;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
  margin: 12px 0;
  padding: 9px 10px;
}

.vertical-comparison-linked-sources {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.vertical-comparison-source-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.vertical-comparison-source-grid > section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.vertical-comparison-source-grid label {
  display: grid;
  gap: 5px;
}

.vertical-comparison-source-grid label > span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.vertical-comparison-source-grid select {
  min-width: 0;
  width: 100%;
}

.vertical-comparison-source {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  color: #172033;
  display: grid;
  gap: 4px;
  min-height: 142px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.vertical-comparison-source:nth-child(2),
.vertical-comparison-source-grid > section:nth-child(2) .vertical-comparison-source {
  border-left-color: #d97706;
}

button.vertical-comparison-source:hover,
button.vertical-comparison-source:focus-visible {
  background: #eff6ff;
  border-color: #60a5fa;
  filter: none;
}

.vertical-comparison-source > span,
.vertical-comparison-source > small,
.vertical-comparison-source > em {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.vertical-comparison-source > strong {
  font-size: 14px;
  line-height: 1.3;
}

.vertical-comparison-source > p {
  color: #475569;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vertical-comparison-source > em {
  color: #1d4ed8;
  font-style: normal;
  margin-top: auto;
}

.vertical-comparison-source.is-empty,
.vertical-comparison-source.is-unavailable {
  border-left-color: #94a3b8;
}

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

.vertical-item-guidance {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  margin: 0 0 14px;
  overflow: hidden;
}

.vertical-item-guidance-note {
  background: #fffdf7;
  border-color: #fcd34d;
  border-left-color: #d97706;
}

.vertical-item-guidance-position {
  background: #f0fdfa;
  border-color: #99f6e4;
  border-left-color: #0f766e;
}

.vertical-item-guidance details > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 30px;
  list-style: none;
  min-height: 52px;
  padding: 9px 10px 9px 12px;
}

.vertical-item-guidance details > summary::-webkit-details-marker {
  display: none;
}

.vertical-item-guidance details[open] > summary {
  border-bottom: 1px solid #bfdbfe;
}

.vertical-item-guidance-note details[open] > summary {
  border-bottom-color: #fcd34d;
}

.vertical-item-guidance-position details[open] > summary {
  border-bottom-color: #99f6e4;
}

.vertical-item-guidance-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vertical-item-guidance-copy > strong {
  color: #1d4ed8;
  font-size: 11px;
  text-transform: uppercase;
}

.vertical-item-guidance-copy > span {
  color: #172033;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.vertical-item-guidance-note .vertical-item-guidance-copy > strong {
  color: #b45309;
}

.vertical-item-guidance-position .vertical-item-guidance-copy > strong {
  color: #0f766e;
}

.vertical-item-guidance-help {
  align-items: center;
  background: #ffffff;
  border: 1px solid #60a5fa;
  border-radius: 50%;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.vertical-item-guidance-note .vertical-item-guidance-help {
  border-color: #f59e0b;
  color: #b45309;
}

.vertical-item-guidance-position .vertical-item-guidance-help {
  border-color: #14b8a6;
  color: #0f766e;
}

.vertical-item-guidance-example {
  background: #ffffff;
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px;
}

.vertical-item-guidance-example > header {
  align-items: center;
  display: flex;
  gap: 8px;
}

.vertical-item-guidance-example > header > strong {
  color: #172033;
  font-size: 13px;
}

.vertical-item-guidance-example > header > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
}

.vertical-item-guidance-example .save-icon-button {
  height: 30px;
  min-height: 30px;
  min-width: 30px;
  width: 30px;
}

.vertical-item-guidance-definition,
.vertical-item-guidance-full-example {
  display: grid;
  gap: 5px;
}

.vertical-item-guidance-definition > span,
.vertical-item-guidance-full-example > span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.vertical-item-guidance-definition input,
.vertical-item-guidance-example textarea {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
}

.vertical-item-guidance-definition input {
  min-height: 38px;
}

.vertical-item-guidance-example textarea {
  min-height: 280px;
  resize: vertical;
}

.vertical-point-form-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.vertical-point-form-grid label > span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.vertical-point-form-grid label > span small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.vertical-point-form-grid input,
.vertical-point-form-grid select,
.vertical-point-form-grid textarea {
  min-width: 0;
  width: 100%;
}

.vertical-point-wide {
  grid-column: 1 / -1;
}

.vertical-point-link-picker {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 9px 10px 10px;
}

.vertical-point-link-picker legend {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  padding: 0 4px;
}

.vertical-point-link-picker legend b {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 10px;
  padding: 2px 6px;
}

.vertical-point-link-options {
  border: 1px solid #dbe3ee;
  border-radius: 5px;
  display: grid;
  max-height: 210px;
  overflow: auto;
}

.vertical-point-form-grid .vertical-point-link-option {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 7px 9px;
}

.vertical-point-form-grid .vertical-point-link-option:last-child {
  border-bottom: 0;
}

.vertical-point-form-grid .vertical-point-link-option:hover,
.vertical-point-form-grid .vertical-point-link-option:has(input:checked) {
  background: #eff6ff;
}

.vertical-point-form-grid .vertical-point-link-option input {
  height: 16px;
  margin: 0;
  width: 16px;
}

.vertical-point-form-grid .vertical-point-link-option > span {
  color: #172033;
  display: grid;
  font-size: 12px;
  gap: 2px;
  min-width: 0;
}

.vertical-point-link-option strong,
.vertical-point-link-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vertical-point-link-option small {
  color: #64748b;
  font-size: 10px;
}

.vertical-point-link-options > p {
  color: #64748b;
  margin: 0;
  padding: 10px;
}

.vertical-position-analysis-workspace {
  border-left: 4px solid #4338ca;
  padding-left: 12px;
}

.vertical-position-ai-eyebrow {
  color: #4338ca;
}

.vertical-position-analysis-form {
  display: grid;
  gap: 12px;
}

.vertical-position-analysis-sources {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 10px 12px 12px;
}

.vertical-position-analysis-sources legend {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  padding: 0 5px;
}

.vertical-position-analysis-sources label {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
}

.vertical-position-analysis-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vertical-position-analysis-actions button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.vertical-position-analysis-actions svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

#verticalPositionAnalysisStatus {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

#verticalPositionAnalysisStatus[data-tone="error"] {
  color: #b91c1c;
}

.vertical-position-ai-boundary,
.vertical-position-ai-caution {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  color: #3730a3;
  font-size: 12px;
  line-height: 1.45;
  margin: 14px 0;
  padding: 9px 10px;
}

.vertical-position-ai-empty {
  align-items: center;
  border-top: 1px solid var(--line);
  color: #64748b;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.vertical-position-ai-result {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.vertical-position-ai-summary {
  border-left: 4px solid #4338ca;
  padding: 3px 0 3px 12px;
}

.vertical-position-ai-summary > span {
  color: #4338ca;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vertical-position-ai-summary h3,
.vertical-position-ai-section h3,
.vertical-position-ai-history h3,
.vertical-position-ai-suggestions h3 {
  color: #172033;
  font-size: 14px;
  margin: 4px 0 8px;
}

.vertical-position-ai-summary p,
.vertical-position-ai-section li,
.vertical-position-ai-history p,
.vertical-position-ai-suggestions p {
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.vertical-position-ai-section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.vertical-position-ai-section ul {
  margin: 0;
  padding-left: 20px;
}

.vertical-position-ai-history {
  display: grid;
  gap: 6px;
}

.vertical-position-ai-history article {
  align-items: start;
  border-left: 3px solid #14b8a6;
  display: grid;
  gap: 8px;
  grid-template-columns: 94px minmax(0, 1fr);
  padding: 7px 10px;
}

.vertical-position-ai-history time {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.vertical-position-ai-history strong {
  color: #172033;
  font-size: 13px;
}

.vertical-position-ai-history p {
  margin: 3px 0 0;
}

.vertical-position-ai-suggestions {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.vertical-position-ai-suggestions h3 span {
  background: #e0e7ff;
  border-radius: 10px;
  color: #3730a3;
  font-size: 11px;
  margin-left: 5px;
  padding: 2px 7px;
}

.vertical-position-ai-suggestions article {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
}

.vertical-position-ai-suggestions article > strong {
  color: #172033;
  font-size: 14px;
}

.vertical-position-ai-suggestions article > time {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.vertical-position-ai-suggestions article > p {
  margin: 0;
}

.vertical-position-ai-suggestions article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vertical-position-ai-caution {
  background: #fff7ed;
  border-color: #fdba74;
  color: #7c2d12;
  margin: 0;
}

@media (max-width: 1050px) {
  .vertical-timeline-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .vertical-timeline-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vertical-timeline-header-controls {
    min-width: 0;
    width: 100%;
  }

  .vertical-timeline-heading-copy {
    width: 100%;
  }

  .vertical-timeline-layout {
    grid-template-columns: 1fr;
  }

  .vertical-timeline-list,
  .vertical-timeline-detail-panel {
    max-height: none;
    min-height: 0;
  }

  .vertical-timeline-detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .vertical-timeline-controls {
    grid-template-columns: 1fr;
  }

  .vertical-timeline-mode-switch {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .vertical-timeline-mode-button {
    flex: 0 0 auto;
    font-size: 10px;
    min-height: 28px;
    padding: 4px 6px;
  }

  .vertical-timeline-title-line {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .vertical-timeline-heading h2 {
    font-size: 18px;
  }

  .quick-timeline-controls {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .quick-timeline-controls label {
    grid-column: 1 / -1;
  }

  .quick-timeline-controls .primary-button span {
    display: inline;
  }

  .quick-draft-capture-main,
  .quick-draft-options > div,
  .quick-draft-picker-grid,
  .quick-timeline-form-grid,
  .quick-draft-facts {
    grid-template-columns: 1fr;
  }

  .quick-draft-capture-actions,
  .quick-case-reference-banner,
  .quick-case-source-link {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-event-picker-search-row,
  .quick-event-picker-option {
    grid-template-columns: 1fr;
  }

  .quick-event-picker-option input {
    justify-self: start;
  }

  .quick-draft-options .quick-draft-notes,
  .quick-timeline-form-grid label:first-child,
  .quick-timeline-form-grid .quick-timeline-wide {
    grid-column: auto;
  }

  .quick-draft-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .quick-draft-order-controls {
    grid-template-columns: 16px 28px 16px;
  }

  .quick-draft-order-controls button {
    width: 18px;
  }

  .quick-draft-order-controls input {
    width: 28px;
  }

  .quick-draft-select {
    gap: 7px;
    grid-template-columns: 72px 18px minmax(0, 1fr);
    padding: 9px 8px;
  }

  .quick-draft-select::before {
    left: 96px;
  }

  .quick-draft-select time {
    font-size: 11px;
  }

  .vertical-timeline-item-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .vertical-timeline-type-guide {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vertical-timeline-type-guide span {
    white-space: normal;
  }

  .quick-draft-copy small {
    white-space: normal;
  }

  .vertical-position-analysis-sources {
    grid-template-columns: 1fr;
  }

  .vertical-timeline-list::before {
    left: 119px;
  }

  .vertical-timeline-event {
    grid-template-columns: 86px 24px minmax(0, 1fr);
  }

  .vertical-timeline-event time {
    font-size: 12px;
  }

  .vertical-timeline-panel-actions > span {
    display: none;
  }

  .vertical-timeline-add-point span,
  .vertical-timeline-add-note span,
  .vertical-timeline-add-comparison span,
  .vertical-timeline-add-position span,
  .vertical-timeline-analyze-positions span {
    display: none;
  }

  .vertical-timeline-add-point,
  .vertical-timeline-add-note,
  .vertical-timeline-add-comparison,
  .vertical-timeline-add-position,
  .vertical-timeline-analyze-positions {
    justify-content: center;
    min-width: 34px;
    padding: 6px;
  }

  .vertical-point-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .vertical-point-header-actions {
    justify-content: flex-end;
  }

  .vertical-comparison-source-grid {
    grid-template-columns: 1fr;
  }

  .vertical-point-facts,
  .vertical-point-form-grid {
    grid-template-columns: 1fr;
  }

  .vertical-point-wide {
    grid-column: auto;
  }
}

.tools-page-mode .workspace-grid {
  display: block;
}

.tools-page-mode .main-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 12px auto 0;
  max-width: 1680px;
}

.tools-page-mode .main-panel > :not(#previewPanel) {
  display: none !important;
}

.tools-page-mode #previewPanel.hidden {
  display: none !important;
}

.tools-page-mode #previewPanel {
  display: block;
}

.transcript-review-header,
.transcript-review-player-panel,
.transcript-review-tools,
.transcript-segments {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.transcript-review-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.transcript-review-header > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.transcript-ai-action {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.transcript-ai-action svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

.transcript-review-header h2 {
  margin: 0 0 4px;
}

.transcript-review-meta {
  color: #475569;
  font-size: 0.88rem;
}

.transcript-last-saved-stamp {
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 3px;
}

.transcript-review-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.transcript-options {
  position: relative;
}

.transcript-options summary {
  cursor: pointer;
  white-space: nowrap;
}

.transcript-option-list {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
}

.transcript-option-list button {
  text-align: left;
  white-space: normal;
}

.transcript-review-actions .transcript-option-list {
  box-shadow: 0 4px 12px #0f172a1a;
  inset-inline-end: 0;
  max-width: none;
  position: absolute;
  width: 13rem;
  z-index: 3;
}

.transcript-save-progress-btn {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0;
  width: 32px;
}

.transcript-save-progress-btn svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.transcript-save-progress-status {
  color: #475569;
  font-size: 0.82rem;
}

.transcript-save-progress-status[data-state="dirty"],
.transcript-save-progress-status[data-state="error"] {
  color: #9a3412;
  font-weight: 700;
}

.transcript-save-progress-btn:disabled {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: default;
  opacity: 1;
}

.transcript-review-status-select {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  color: #1e3a8a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 8px;
}

.transcript-review-status-select:disabled {
  color: #64748b;
  opacity: 0.7;
}

.transcript-review-player-panel {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(280px, 1fr) auto;
  padding: 10px 12px;
}

.transcript-review-player-panel audio {
  width: 100%;
}

.transcript-player-tools,
.transcript-review-tools-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transcript-player-tools label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.transcript-auto-skip-noise {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1e40af;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 5px 8px;
}

.transcript-exit-noise-gap-button:not(:disabled) {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
  font-weight: 800;
}

.transcript-player-tools select,
.transcript-review-tools input,
.transcript-review-tools select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 8px;
}

.transcript-review-tools {
  container-type: inline-size;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.transcript-tool-groups-row {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transcript-tool-group {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  display: flex;
  flex: 1 1 420px;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
}

.transcript-tool-group-target {
  flex-basis: 100%;
}

.transcript-tool-group-point {
  border-left-color: #7c3aed;
}

.transcript-tool-group-highlight {
  border-left-color: #ca8a04;
}

.transcript-tool-groups-row > .transcript-tool-group {
  flex-basis: 370px;
  flex-wrap: wrap;
}

.transcript-tool-groups-row .transcript-tool-group-label {
  max-width: none;
}

.transcript-tool-group-edit {
  border-left-color: #0f766e;
}

.transcript-tool-group-label {
  color: #1e3a8a;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  max-width: 74px;
}

.transcript-tool-group-point .transcript-tool-group-label {
  color: #6d28d9;
}

.transcript-tool-group-highlight .transcript-tool-group-label {
  color: #a16207;
}

.transcript-tool-group-edit .transcript-tool-group-label {
  color: #0f766e;
}

.transcript-tool-group-controls {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.transcript-tool-disclosure {
  align-self: start;
  display: block;
}

.transcript-tool-disclosure:not([open]):not(.transcript-tool-group-target) {
  flex: 0 1 auto;
}

.transcript-tool-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 6px;
  list-style: none;
  max-width: none;
  min-height: 22px;
}

.transcript-tool-disclosure > summary::-webkit-details-marker {
  display: none;
}

.transcript-tool-disclosure > summary::before {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  flex: none;
  height: 5px;
  transform: rotate(-45deg);
  width: 5px;
}

.transcript-tool-disclosure[open] > summary::before {
  transform: translateY(-1px) rotate(45deg);
}

.transcript-tool-disclosure[open] > .transcript-tool-group-controls {
  margin-top: 5px;
}

@container (min-width: 680px) {
  .transcript-tool-inline[open] {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .transcript-tool-inline[open] > .transcript-tool-group-controls {
    margin-top: 0;
  }
}

.transcript-tool-help {
  align-items: center;
  border: 1px solid #93a8c2;
  border-radius: 50%;
  color: #234974;
  cursor: help;
  display: inline-flex;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  height: 17px;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  width: 17px;
}

.transcript-find-replace-fields {
  align-items: center;
  display: flex;
  flex: 1 1 300px;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.transcript-find-replace-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.transcript-review-tools .transcript-find-replace-fields input {
  flex: 1 1 120px;
  min-width: 0;
}

.transcript-find-replace-fields button,
#transcriptSearchStatus {
  white-space: nowrap;
}

.transcript-review-tools .transcript-review-player-panel {
  border: 0;
  border-radius: 0;
  border-top: 1px solid #e2e8f0;
  box-shadow: none;
  padding: 8px 0 0;
}

.transcript-search-step-button {
  font-size: 1rem;
  font-weight: 900;
  min-width: 34px;
  padding-left: 0;
  padding-right: 0;
}

.transcript-review-tools-row.primary-row {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.transcript-highlight-color {
  background: linear-gradient(90deg, var(--transcript-highlight-selected-color, #fef08a) 0 16px, #f8fafc 16px 100%);
  border: 1px solid #dbeafe;
  border-radius: 7px;
  color: #1e3a8a;
  flex: 1 1 260px;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 28px;
  min-width: min(160px, 100%);
  padding: 3px 7px 3px 24px;
}

.transcript-highlight-legend {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  padding: 6px 8px;
}

.transcript-highlight-legend > strong {
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 900;
  margin-right: 2px;
}

.transcript-highlight-legend-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  max-width: 320px;
  min-height: 24px;
  padding: 3px 8px 3px 5px;
}

.transcript-highlight-legend-swatch {
  background: var(--legend-color, #fef08a);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.transcript-highlight-legend-name {
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.transcript-highlight-legend-description {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcript-highlight-legend-settings {
  align-items: center;
  border-color: #bfdbfe;
  color: #1d4ed8;
  display: inline-flex;
  justify-content: center;
  margin-left: auto;
  min-height: 26px;
  min-width: 30px;
  padding: 3px 6px;
}

.transcript-highlight-legend-settings svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.transcript-highlight-note {
  flex: 1 1 150px;
  max-width: 230px;
  min-height: 28px;
  min-width: 130px;
}

.transcript-highlight-button {
  align-items: center;
  border-color: #93c5fd;
  color: #1d4ed8;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 30px;
  min-width: 34px;
  padding-left: 7px;
  padding-right: 7px;
}

.transcript-highlight-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.transcript-review-tools select {
  max-width: 320px;
}

.transcript-insert-position {
  max-width: 180px;
}

#transcriptAddSpeakerLineBtn[aria-expanded="true"] {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.transcript-insert-speaker {
  width: min(100%, 240px);
}

#transcriptInsertSpeakerStatus:empty {
  display: none;
}

.transcript-review-tools-row.target-row select {
  flex: 1 1 240px;
}

.transcript-target-event-search {
  flex: 1 1 220px;
  max-width: 320px;
}

#transcriptTargetEvent {
  flex: 2 1 460px;
  max-width: none;
}

.transcript-segments {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  display: block;
  max-height: calc(100vh - 330px);
  min-height: 420px;
  overflow: auto;
  padding: 4px 0;
}

.transcript-segment {
  align-items: start;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e8eef6;
  border-left: 3px solid transparent;
  border-radius: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: 24px 112px minmax(150px, 215px) minmax(0, 1fr) auto;
  padding: 3px 8px;
}

.transcript-source-part {
  background: #f4f7fb;
  border-block: 1px solid #d8e0ea;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
}

.transcript-gap-row {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px dashed #cbd5e1;
  color: #475569;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(40px, 1fr) auto auto auto auto minmax(40px, 1fr);
  padding: 6px 10px;
}

.transcript-gap-row .transcript-gap-line {
  border-top: 1px dashed #94a3b8;
  height: 1px;
}

.transcript-gap-row strong {
  color: #334155;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.transcript-gap-row.playing {
  background: #eff6ff;
  box-shadow: inset 4px 0 0 #2563eb;
}

.transcript-gap-row span:not(.transcript-gap-line) {
  font-size: 0.82rem;
}

.transcript-segment.same-speaker-previous {
  border-top-color: transparent;
}

.transcript-segment.same-speaker-next {
  border-bottom-color: #f1f5f9;
}

.transcript-segment.selected {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.transcript-segment.matches {
  background: #fffbea;
}

.transcript-segment.active {
  border-left-color: #f59e0b;
}

.transcript-segment:focus {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.transcript-segment.playing {
  background: #f0fdf4;
  border-left-color: #16a34a;
}

.transcript-segment.combined-turn {
  border-left-color: var(--speaker-color, #64748b);
}

.transcript-playing-pause {
  display: none;
}

.transcript-segment.playing .transcript-playing-pause {
  display: inline-flex;
}

.transcript-playing-pause {
  align-items: center;
  font-family: Arial, sans-serif;
  font-weight: 900;
  justify-content: center;
  min-width: 28px;
}

.transcript-segment-select {
  align-items: center;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 4px;
  justify-content: center;
  padding-top: 7px;
  white-space: nowrap;
}

.transcript-line-time {
  align-items: center;
  display: flex;
  gap: 4px;
  padding-top: 3px;
}

.transcript-timestamp {
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-left: 4px solid var(--speaker-color, #64748b);
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 7px;
  white-space: nowrap;
}

.transcript-line-star {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 28px;
}

.transcript-line-star:hover,
.transcript-line-star:focus {
  background: #fff7ed;
  border-color: #fbbf24;
  color: #d97706;
  outline: none;
}

.transcript-line-star.starred {
  color: #f59e0b;
  text-shadow: 0 0 0.5px #92400e;
}

.transcript-segment-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.transcript-segment-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transcript-segment-head label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.transcript-segment-head input[type="text"] {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-width: 190px;
  padding: 6px 8px;
}

.transcript-segment-head select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  max-width: 230px;
  min-width: 150px;
  padding: 5px 7px;
}

.transcript-segment-head span {
  color: #64748b;
  font-size: 0.8rem;
}

.transcript-speaker-chooser {
  position: relative;
}

.transcript-speaker-chooser > summary {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
  padding: 6px 8px;
}

.transcript-speaker-chooser > summary::-webkit-details-marker {
  display: none;
}

.transcript-speaker-chooser > div {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  left: 0;
  max-height: 260px;
  min-width: 260px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  top: calc(100% + 4px);
  z-index: 40;
}

.transcript-quick-speaker-label {
  flex: 1 0 100%;
  font-weight: 700;
}

.transcript-speaker-dot {
  background: var(--speaker-color, #64748b);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
  display: inline-block;
  height: 12px;
  width: 12px;
}

.transcript-speaker-name {
  color: #0f172a;
  font-size: 0.88rem;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcript-line-speaker {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.transcript-line-speaker select {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  min-width: 0;
  padding: 4px 22px 4px 5px;
  width: 100%;
}

.transcript-line-speaker:hover select,
.transcript-line-speaker select:focus {
  background: #f8fafc;
  border-color: #bfdbfe;
  outline: none;
}

.transcript-line-text-wrap {
  min-width: 0;
  position: relative;
  width: 100%;
}

.transcript-line-highlight-layer,
.transcript-line-search-layer {
  border: 1px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  color: transparent;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  inset: 0;
  letter-spacing: inherit;
  line-height: 1.42;
  overflow: hidden;
  padding: 5px 7px;
  pointer-events: none;
  position: absolute;
  tab-size: 4;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  z-index: 0;
}

.transcript-line-highlight-layer mark,
.transcript-line-search-layer mark {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 3px;
  color: transparent;
  line-height: inherit;
  /* Padding changes the overlay's line wrapping; keep its glyph positions exact. */
  padding: 0;
  vertical-align: baseline;
}

.transcript-line-highlight-layer .transcript-search-highlight,
.transcript-line-search-layer .transcript-search-highlight {
  background: #fde68a;
}

.transcript-line-highlight-layer .transcript-saved-highlight {
  background: var(--transcript-highlight-color, #fef08a);
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.14);
}

.transcript-line-highlight-layer .transcript-saved-highlight.transcript-search-highlight {
  outline: 1px solid rgba(245, 158, 11, 0.75);
}

.transcript-line-text {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #111827;
  font: inherit;
  line-height: 1.42;
  min-height: 32px;
  overflow: hidden;
  overflow-y: hidden;
  overflow-wrap: break-word;
  padding: 5px 7px;
  position: relative;
  resize: none;
  tab-size: 4;
  white-space: pre-wrap;
  width: 100%;
  word-break: break-word;
  z-index: 1;
}

.transcript-line-text:focus {
  background: rgba(255, 255, 255, 0.66);
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.transcript-line-actions {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  min-width: 64px;
  padding-top: 2px;
}

.transcript-section-notes {
  grid-column: 4 / 5;
  margin: -1px 0 3px;
  min-width: 0;
}

.transcript-section-notes > summary {
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  list-style: none;
  padding: 2px 0;
  width: fit-content;
}

.transcript-section-notes > summary::-webkit-details-marker {
  display: none;
}

.transcript-section-notes > summary::before {
  content: "+";
  display: inline-block;
  font-size: 0.92rem;
  margin-right: 4px;
}

.transcript-section-notes[open] {
  border-left: 3px solid #2563eb;
  padding-left: 8px;
}

.transcript-section-notes[open] > summary::before {
  content: "-";
}

.transcript-section-notes-body {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.transcript-section-notes-body > label {
  color: #475569;
  display: grid;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 3px;
}

.transcript-section-notes-body textarea {
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #0f172a;
  line-height: 1.35;
  min-height: 48px;
  padding: 5px 7px;
  resize: vertical;
}

.transcript-section-note-list {
  display: grid;
  gap: 5px;
}

.transcript-section-note-list article {
  background: #f8fafc;
  border-left: 2px solid #93c5fd;
  padding: 5px 7px;
}

.transcript-section-note-list p {
  color: #1e293b;
  margin: 0;
  white-space: pre-wrap;
}

.transcript-section-note-list small {
  color: #64748b;
  display: block;
  margin-top: 3px;
}

.transcript-section-note-actions {
  display: flex;
  justify-content: flex-end;
}

button[data-transcript-save-segment][hidden] {
  display: none;
}

.transcript-segment-more {
  position: relative;
  z-index: 6;
}

.transcript-segment-more > summary {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  list-style: none;
  padding: 0;
  width: 28px;
}

.transcript-segment-more > summary:hover,
.transcript-segment-more[open] > summary {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.transcript-segment-more > summary::-webkit-details-marker {
  display: none;
}

.transcript-segment-more > div {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 340px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 35;
}

.transcript-line-menu {
  justify-self: end;
  padding-top: 2px;
}

.transcript-speaker-panel {
  margin: 10px 0;
}

.transcript-ai-cleanup-panel {
  margin: 10px 0;
}

.transcript-ai-cleanup-panel:not(:has(> :not([hidden]))) {
  display: none;
}

.transcript-cleanup-feedback {
  margin: 6px 12px;
  overflow-wrap: anywhere;
}

#transcriptReviewStatus,
.transcript-cleanup-feedback {
  max-height: 10rem;
  overflow-y: auto;
  white-space: pre-line;
}

.transcript-cleanup-feedback.error {
  color: #b91c1c;
}

.transcript-summary-panel {
  margin: 10px 0;
}

.transcript-summary-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.transcript-summary-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.transcript-summary-head strong {
  display: block;
  font-size: 0.98rem;
}

.transcript-summary-head span {
  color: #64748b;
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}

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

.transcript-summary-card textarea {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
  line-height: 1.45;
  min-height: 150px;
  padding: 9px 10px;
  resize: vertical;
  width: 100%;
}

.transcript-summary-card.expanded textarea {
  overflow-y: hidden;
  resize: none;
}

.transcript-speaker-filter-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 6px 8px;
}

.transcript-speaker-filter-head {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.transcript-speaker-filter-head strong {
  font-size: 0.84rem;
  white-space: nowrap;
}

.transcript-speaker-filter-head select {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.78rem;
  min-height: 28px;
  padding: 4px 6px;
}

.transcript-speaker-filter-head span {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.transcript-speaker-filter-buttons {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.transcript-speaker-filter-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.76rem;
  gap: 5px;
  min-height: 26px;
  padding: 3px 7px;
}

.transcript-speaker-filter-chip i {
  background: var(--speaker-color, #64748b);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.transcript-speaker-filter-chip.active {
  background: #eff6ff;
  border-color: var(--speaker-color, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  font-weight: 800;
}

.transcript-speaker-filter-chip small {
  color: #64748b;
  font-size: 0.68rem;
}

@media (max-width: 780px) {
  .transcript-speaker-filter-card {
    align-items: stretch;
  }

  .transcript-speaker-filter-head {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .transcript-speaker-filter-buttons {
    flex-basis: 100%;
  }
}

.transcript-ai-cleanup-review {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 8px 10px;
}

.transcript-ai-note {
  color: #64748b;
  font-size: 0.82rem;
}

.transcript-ai-cleanup-title {
  font-size: 0.82rem;
  white-space: nowrap;
}

.transcript-ai-cleanup-run {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  color: #1d4ed8;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}

.transcript-ai-cleanup-run:hover {
  background: #dbeafe;
}

.transcript-ai-cleanup-run:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.transcript-ai-cleanup-no-suggestions {
  background: #ffffff;
  border: 1px dashed #93c5fd;
  border-radius: 7px;
  color: #475569;
  font-size: 0.84rem;
  margin-top: 8px;
  padding: 7px 9px;
}

.transcript-ai-cleanup-review > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
  list-style: none;
}

.transcript-ai-cleanup-review > summary::-webkit-details-marker,
.transcript-ai-cleanup-review > summary::-webkit-scrollbar {
  display: none;
}

.transcript-ai-cleanup-review > summary > span {
  flex: 0 1 auto;
  min-width: 0;
}

.transcript-ai-cleanup-review > summary > strong {
  flex: 0 0 auto;
  font-size: 0.8rem;
  margin-left: 2px;
  white-space: nowrap;
}

.transcript-ai-cleanup-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
  margin-left: auto;
  white-space: nowrap;
}

.transcript-ai-cleanup-actions .small-button,
.transcript-ai-cleanup-actions .transcript-ai-cleanup-run {
  font-size: 0.78rem;
  line-height: 1;
  padding-left: 8px;
  padding-right: 8px;
}

.transcript-ai-suggestion-group {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.transcript-ai-suggestion-group h4 {
  margin: 0;
}

.transcript-ai-suggestion {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 7px;
}

.transcript-ai-suggestion span {
  display: grid;
  gap: 2px;
}

.transcript-ai-suggestion em,
.transcript-ai-suggestion small {
  color: #64748b;
  font-size: 0.78rem;
}

.transcript-ai-suggestion-thread {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.transcript-ai-suggestion-before,
.transcript-ai-suggestion-after {
  display: grid;
  gap: 4px;
}

.transcript-ai-suggestion-before > strong,
.transcript-ai-suggestion-after > strong {
  color: #1e3a8a;
  font-size: 0.78rem;
}

.transcript-ai-suggestion-text {
  background: #f8fafc;
  border: 0;
  border-left: 3px solid #93c5fd;
  border-radius: 4px;
  margin: 3px 0 0;
  padding: 5px 7px;
}

.transcript-ai-suggestion-text.after {
  background: #ecfdf5;
  border-left-color: #16a34a;
}

.transcript-ai-suggestion-text strong {
  color: #334155;
  display: block;
  font-size: 0.76rem;
  margin-bottom: 2px;
}

.transcript-ai-suggestion-text p {
  color: #0f172a;
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
  white-space: pre-wrap;
}

.transcript-shortcuts {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.transcript-shortcuts > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
}

.transcript-shortcuts > summary::-webkit-details-marker,
.transcript-remembered-points > summary::-webkit-details-marker {
  display: none;
}

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

.transcript-section-summary-actions strong {
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.76rem;
  padding: 2px 7px;
}

.transcript-section-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 25px;
}

.transcript-section-toggle:hover,
.transcript-section-toggle:focus-visible {
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  outline: none;
}

.transcript-shortcuts[open] .plus-label,
.transcript-remembered-points[open] .plus-label,
.transcript-summary-card.expanded .plus-label,
.transcript-shortcuts:not([open]) .minus-label,
.transcript-remembered-points:not([open]) .minus-label,
.transcript-summary-card:not(.expanded) .minus-label {
  display: none;
}

.transcript-shortcut-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.transcript-shortcut-card {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  padding: 8px;
}

.transcript-shortcut-card strong,
.transcript-shortcut-note-label {
  color: #0f172a;
}

.transcript-shortcut-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.transcript-shortcut-note-label {
  display: grid;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 3px;
}

.transcript-shortcut-note-input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 28px;
  min-width: 0;
  padding: 4px 6px;
  width: 100%;
}

.transcript-shortcut-card span,
.transcript-shortcut-card p {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}

.transcript-remembered-points-panel {
  margin: 10px 0;
}

.transcript-remembered-points {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 8px 10px;
}

.transcript-remembered-points > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
}

.transcript-remembered-point-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.transcript-remembered-point-card {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px;
}

.transcript-remembered-point-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.transcript-remembered-point-head {
  align-items: center;
  display: flex !important;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.transcript-remembered-point-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcript-remembered-point-actions {
  align-items: center;
  display: inline-flex !important;
  flex: 0 0 auto;
  gap: 4px;
}

.transcript-icon-action {
  align-items: center;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 6px;
}

.transcript-icon-action svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.transcript-remembered-point-card span,
.transcript-remembered-point-card p {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}

.transcript-speaker-manager {
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px 10px;
}

.transcript-speaker-manager > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-weight: 700;
}

.transcript-speaker-summary-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.transcript-speaker-summary-actions small {
  color: #475569;
  font-weight: 600;
}

.transcript-speaker-manager > summary .transcript-ai-cleanup-actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.transcript-speaker-people-link {
  align-items: center;
  border-color: #93c5fd;
  color: #1d4ed8;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 4px;
  width: 26px;
}

.transcript-speaker-people-link svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.transcript-speaker-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin-top: 10px;
}

.transcript-speaker-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.transcript-speaker-manager .transcript-speaker-filter-card {
  margin-top: 10px;
}

.transcript-speaker-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-left: 5px solid var(--speaker-color, #2563eb);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 9px;
  position: relative;
}

.transcript-speaker-card-head {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  position: relative;
}

.transcript-speaker-card-title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.transcript-speaker-card-title i {
  background: var(--speaker-color, #2563eb);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

.transcript-speaker-card-title div {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}

.transcript-speaker-card-title span,
.transcript-speaker-stats {
  color: #64748b;
  font-size: 0.78rem;
}

.transcript-speaker-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transcript-speaker-sections-toggle {
  align-items: center;
  color: #1d4ed8;
  display: inline-flex;
  gap: 4px;
  white-space: nowrap;
}

.transcript-speaker-sections-toggle svg {
  height: 14px;
  width: 14px;
}

.transcript-speaker-sections-list {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  inset: auto;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px;
  position: fixed;
}

.transcript-speaker-sections-list button {
  align-items: baseline;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: inherit;
  display: grid;
  font: inherit;
  font-size: 0.875rem;
  gap: 10px;
  grid-template-columns: 3.5em minmax(0, 1fr);
  overflow-wrap: anywhere;
  padding: 7px 8px;
  text-align: left;
  width: 100%;
}

.transcript-speaker-sections-list button:is(:hover, :focus-visible) {
  background: #eff6ff;
}

.transcript-speaker-sections-list time {
  color: #1d4ed8;
  font-weight: 600;
}

.transcript-speaker-sections-list [role="status"] {
  padding: 6px 8px;
}

.transcript-speaker-card label,
.transcript-speaker-new-person,
.transcript-speaker-merge {
  align-items: center;
  display: flex;
  gap: 6px;
}

.transcript-speaker-card input[type="text"],
.transcript-speaker-card select {
  min-width: 0;
  width: 100%;
}

.transcript-speaker-card input[type="color"] {
  height: 30px;
  width: 46px;
}

.transcript-speaker-options {
  justify-self: end;
}

.transcript-speaker-options > summary {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  width: 28px;
}

.transcript-speaker-options > summary::-webkit-details-marker {
  display: none;
}

.transcript-speaker-options:not([open]) .transcript-speaker-collapse,
.transcript-speaker-options[open] .transcript-speaker-expand {
  display: none;
}

.transcript-speaker-options-body {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 8px;
  inset-inline: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 7px);
  z-index: 20;
}

.transcript-speaker-options-body > label:has(> select) {
  align-items: stretch;
  flex-direction: column;
}

.transcript-speaker-options-body > .transcript-speaker-new-person,
.transcript-speaker-options-body > .transcript-speaker-merge {
  flex-wrap: wrap;
}

.transcript-speaker-options-body > .transcript-speaker-new-person > input,
.transcript-speaker-options-body > .transcript-speaker-merge > select {
  flex: 1 1 100px;
}

.transcript-co-speaker-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.transcript-co-speaker-chip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 7px;
}

.transcript-reviewed {
  color: #334155;
  font-size: 0.82rem;
}

.transcript-segment textarea {
  font: inherit;
  width: 100%;
}

.transcript-segment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 900px) {
  .transcript-review-header,
  .transcript-review-player-panel {
    grid-template-columns: 1fr;
  }

  .transcript-review-header {
    display: grid;
  }

  .transcript-review-actions {
    justify-content: flex-start;
  }

  .transcript-segment {
    grid-template-columns: 1fr;
  }

  .transcript-section-notes {
    grid-column: auto;
  }

  .transcript-line-actions {
    justify-content: flex-start;
  }
}

.timeline-fullscreen .app-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  padding: 0;
  width: 100vw;
}

.timeline-fullscreen main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  width: 100vw;
}

.timeline-fullscreen .project-workspace-banner {
  border-radius: 0;
  gap: 10px;
  grid-template-columns: minmax(180px, 0.75fr) auto minmax(150px, 0.45fr) minmax(0, 2fr) auto;
  margin: 0;
  max-width: none;
  padding: 8px 12px;
}

.timeline-fullscreen .project-workspace-banner strong {
  font-size: 16px;
  margin-top: 0;
}

.timeline-fullscreen .project-workspace-banner span,
.timeline-fullscreen .project-role-block small,
.timeline-fullscreen .project-role-block em {
  font-size: 11px;
}

.timeline-fullscreen .project-banner-nav {
  gap: 6px;
  justify-content: flex-end;
}

.timeline-fullscreen .project-banner-nav-gap {
  width: 12px;
}

.spreadsheet-fullscreen-mode .app-shell {
  padding: 0;
}

.timeline-fullscreen .workspace-grid {
  display: block;
  margin: 0;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  width: 100vw;
}

.spreadsheet-fullscreen-mode .workspace-grid {
  display: block;
  max-width: none;
}

.timeline-fullscreen .main-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  justify-self: stretch;
  margin: 0;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  width: 100vw;
}

.spreadsheet-fullscreen-mode .main-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 100vh;
}

.timeline-fullscreen .timeline-control-frame {
  position: relative;
  top: auto;
  width: 100%;
  z-index: 25;
}

.fullscreen-page-nav {
  display: none;
}

.timeline-fullscreen .fullscreen-page-nav {
  align-items: center;
  background: #0f172a;
  color: #fff;
  display: none;
  gap: 14px;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 14px;
}

.fullscreen-page-nav strong,
.fullscreen-page-nav span {
  display: block;
}

.fullscreen-page-nav strong {
  font-size: 15px;
  letter-spacing: 0;
}

.fullscreen-page-nav span {
  color: #cbd5e1;
  font-size: 12px;
  margin-top: 1px;
}

.fullscreen-page-nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.fullscreen-page-nav-actions .ghost-button {
  background: #1f2937;
  border: 1px solid #334155;
  color: #fff;
}

.fullscreen-page-nav-actions .ghost-button:hover {
  background: #334155;
  filter: none;
}

.timeline-fullscreen .zoom-row {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(350px, auto) minmax(440px, 1fr) minmax(150px, auto) minmax(260px, auto) auto;
  overflow: visible;
  padding: 6px 10px;
}

.timeline-fullscreen .timeline-filter-group {
  grid-column: auto;
  min-width: 0;
}

.timeline-fullscreen .timeline-playback-group {
  grid-column: auto;
}

.timeline-fullscreen .timeline-navigation-group,
.timeline-fullscreen .timeline-lanes-group,
.timeline-fullscreen .timeline-display-group,
.timeline-fullscreen .timeline-action-group {
  justify-content: flex-start;
}

.timeline-fullscreen .timeline-lanes-group {
  justify-content: center;
}

.timeline-fullscreen .timeline-auto-place-group {
  justify-content: center;
}

.timeline-fullscreen .timeline-action-group {
  justify-content: flex-end;
}

@media (max-width: 1500px) {
  .timeline-fullscreen .zoom-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .timeline-fullscreen .timeline-filter-group {
    grid-column: 1 / -1;
  }

  .timeline-fullscreen .timeline-playback-group,
  .timeline-fullscreen .timeline-navigation-group,
  .timeline-fullscreen .timeline-display-group,
  .timeline-fullscreen .view-status-group {
    grid-column: auto;
  }

  .timeline-fullscreen .timeline-action-group {
    grid-column: auto;
  }
}

.timeline-fullscreen .timeline {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  width: 100%;
}

.fullscreen-event-strip {
  display: none;
}

.spreadsheet-fullscreen {
  display: none;
}

.spreadsheet-fullscreen-mode .spreadsheet-fullscreen {
  background: var(--surface);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100vh;
}

.timeline-fullscreen .fullscreen-event-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(34vh, 360px);
  padding: 10px 14px 14px;
}

.timeline-fullscreen .fullscreen-event-strip.is-minimized {
  grid-template-rows: auto;
  max-height: 72px;
  padding-bottom: 10px;
}

.timeline-fullscreen .fullscreen-event-strip.is-minimized .panel-header {
  margin-bottom: 0;
}

.timeline-fullscreen .fullscreen-event-strip.is-minimized .fullscreen-event-rows {
  display: none;
}

.fullscreen-event-strip .panel-header {
  display: grid;
  grid-template-columns: auto minmax(560px, 1fr) auto;
  margin-bottom: 8px;
}

.fullscreen-event-strip h2 {
  font-size: 16px;
  margin: 0;
}

.fullscreen-event-search {
  min-height: 36px;
  width: 100%;
}

.fullscreen-event-search-tools {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto auto;
  justify-self: stretch;
}

.fullscreen-event-filter-toggle,
.fullscreen-event-match-count {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.fullscreen-event-filter-toggle input {
  margin: 0;
  width: auto;
}

.fullscreen-event-match-count {
  color: var(--muted);
  justify-content: center;
  min-width: 112px;
}

.fullscreen-event-rows {
  display: grid;
  gap: 4px;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.fullscreen-event-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: grid;
  column-gap: 16px;
  row-gap: 10px;
  grid-template-columns: 145px minmax(250px, 1.2fr) minmax(170px, 0.74fr) minmax(260px, 1.12fr) minmax(170px, 0.82fr) auto;
  min-height: 30px;
  min-width: 1320px;
  padding: 6px 10px;
  text-align: left;
}

.timeline-fullscreen .fullscreen-event-row {
  column-gap: 22px;
  grid-template-columns: 150px minmax(380px, 1.55fr) minmax(160px, 0.58fr) minmax(300px, 1.05fr) minmax(180px, 0.72fr) auto;
  min-height: 46px;
  min-width: 1520px;
  padding-bottom: 8px;
  padding-top: 8px;
}

.timeline-fullscreen .fullscreen-event-jump {
  gap: 5px;
  padding-right: 20px;
}

.timeline-fullscreen .fullscreen-event-date,
.timeline-fullscreen .fullscreen-event-signals,
.timeline-fullscreen .fullscreen-event-summary,
.timeline-fullscreen .fullscreen-event-tags,
.timeline-fullscreen .fullscreen-event-toggles {
  align-self: start;
  padding-top: 2px;
}

.timeline-fullscreen .fullscreen-event-summary {
  padding-left: 14px;
}

.fullscreen-event-row:not(.fullscreen-event-header) {
  cursor: pointer;
}

.fullscreen-event-header {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  min-height: 28px;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.fullscreen-event-jump {
  align-items: start;
  background: transparent;
  color: var(--text);
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 0;
  text-align: left;
}

.fullscreen-event-jump:hover {
  filter: none;
}

.fullscreen-event-jump span,
.fullscreen-event-jump em,
.fullscreen-event-date,
.fullscreen-event-summary,
.fullscreen-event-tags em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.fullscreen-event-jump strong,
.fullscreen-event-date,
.fullscreen-event-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fullscreen-event-summary {
  padding-left: 4px;
}

.fullscreen-related-count,
.fullscreen-event-signals {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 4px;
  justify-content: flex-start;
  min-width: 0;
}

.fullscreen-event-signals {
  flex-wrap: wrap;
  max-height: 52px;
  overflow: hidden;
}

.fullscreen-event-signals em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.fullscreen-event-signal {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  gap: 4px;
  line-height: 1;
  min-height: 20px;
  padding: 2px 7px;
  white-space: nowrap;
}

.fullscreen-event-signal.file {
  color: #1d4ed8;
}

.fullscreen-event-signal.text {
  color: #047857;
}

.fullscreen-event-signal.flag {
  border-color: #fecaca;
  color: #dc2626;
  justify-content: center;
  min-width: 26px;
  padding-inline: 6px;
}

.fullscreen-event-signal.unfinished {
  background: #fffdf0;
  border-color: #dc2626;
  color: #ca8a04;
  justify-content: center;
  min-width: 26px;
  padding-inline: 6px;
}

.fullscreen-event-signal.related {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.fullscreen-event-signals .relationship-strength-badge {
  font-size: 10px;
  min-height: 20px;
  max-width: 118px;
}

.fullscreen-related-count.has-related {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  min-height: 24px;
  min-width: 34px;
  padding: 2px 8px;
  width: fit-content;
}

.fullscreen-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 48px;
  overflow: hidden;
}

.fullscreen-event-tags span {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 6px;
}

.fullscreen-event-toggles {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.fullscreen-event-edit,
.fullscreen-event-detail {
  min-height: 30px;
  padding-inline: 10px;
}

.fullscreen-event-row.selected-row {
  background: #eff6ff;
  border-color: var(--blue);
}

.fullscreen-timeline-picker,
.fullscreen-standout-toggle,
.fullscreen-filter-bar,
.fullscreen-event-select,
.exit-fullscreen-button {
  display: none;
}

.timeline-fullscreen .fullscreen-timeline-picker,
.timeline-fullscreen .fullscreen-standout-toggle,
.timeline-fullscreen .fullscreen-filter-bar,
.timeline-fullscreen .fullscreen-event-select,
.timeline-fullscreen .exit-fullscreen-button {
  display: inline-flex;
}

.timeline-fullscreen .fullscreen-filter-bar {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(180px, 1.3fr) minmax(104px, 0.7fr) repeat(2, minmax(98px, 0.7fr));
  width: 100%;
}

.fullscreen-filter-bar input,
.fullscreen-filter-bar select {
  min-height: 38px;
  width: 100%;
}

.fullscreen-filter-bar .timeline-flag-filter-menu {
  width: 100%;
}

.fullscreen-filter-bar .red-flag-filter-toggle,
.fullscreen-filter-bar .contradiction-filter-toggle {
  min-height: 38px;
  width: auto;
}

.fullscreen-filter-bar .red-flag-filter-toggle input,
.fullscreen-filter-bar .contradiction-filter-toggle input {
  min-height: 0;
  width: 16px;
}

.timeline-fullscreen .fullscreen-filter-bar input,
.timeline-fullscreen .fullscreen-filter-bar select,
.timeline-fullscreen .fullscreen-event-select,
.timeline-fullscreen .fullscreen-timeline-picker summary {
  min-height: 34px;
}

.timeline-fullscreen .fullscreen-filter-bar .red-flag-filter-toggle,
.timeline-fullscreen .fullscreen-filter-bar .contradiction-filter-toggle {
  min-height: 34px;
}

.fullscreen-timeline-picker {
  position: relative;
}

.timeline-multi-picker {
  display: inline-flex;
  flex: 1 1 160px;
  min-width: 150px;
  position: relative;
}

.fullscreen-timeline-picker summary,
.timeline-multi-picker summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  min-height: 38px;
  min-width: 150px;
  padding: 0 12px;
}

.timeline-multi-picker summary {
  justify-content: space-between;
  width: 100%;
}

.timeline-multi-picker .fullscreen-timeline-options {
  width: min(320px, calc(100vw - 24px));
}

.fullscreen-timeline-options {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
  display: grid;
  gap: 8px;
  left: 0;
  max-height: 340px;
  overflow: auto;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  width: 300px;
  z-index: 20;
}

.fullscreen-menu-title {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding: 2px 2px 8px;
}

.fullscreen-menu-title strong {
  color: var(--text);
  font-size: 13px;
}

.fullscreen-menu-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.fullscreen-timeline-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  white-space: nowrap;
}

.fullscreen-timeline-option > span {
  display: grid;
  min-width: 0;
}

.fullscreen-timeline-option strong,
.timeline-option-description {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-option-description {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.fullscreen-combine-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  white-space: nowrap;
}

.fullscreen-timeline-option input,
.fullscreen-combine-toggle input {
  accent-color: var(--blue);
}

.fullscreen-standout-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  gap: 7px;
  min-height: 42px;
  padding: 5px 10px;
  white-space: nowrap;
}

.timeline-fullscreen .fullscreen-standout-toggle {
  min-height: 34px;
  padding: 3px 7px;
}

.timeline-fullscreen .fullscreen-standout-toggle strong {
  font-size: 11px;
}

.timeline-fullscreen .fullscreen-standout-toggle small {
  font-size: 10px;
}

.fullscreen-standout-toggle input {
  accent-color: var(--red);
  height: 17px;
  width: 17px;
}

.fullscreen-standout-toggle span {
  display: grid;
  gap: 1px;
}

.fullscreen-standout-toggle strong {
  font-size: 12px;
  line-height: 1.1;
}

.fullscreen-standout-toggle small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.fullscreen-editor-actions {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  margin: -16px -16px 14px;
  padding: 12px 16px;
  position: sticky;
  top: -16px;
  z-index: 2;
}

.timeline-fullscreen .fullscreen-event-select {
  min-width: min(360px, 42vw);
}

.spreadsheet-view-bar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(230px, 0.85fr) minmax(300px, 380px) minmax(210px, 290px) minmax(190px, 270px) auto auto auto;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 6;
}

.spreadsheet-title-row {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.spreadsheet-title-row > div {
  min-width: 0;
}

.spreadsheet-search-control {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(120px, 1fr) 32px minmax(48px, auto) 32px;
  min-width: 0;
}

.spreadsheet-search-control input {
  min-width: 0;
}

.spreadsheet-search-nav-button {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #1e3a8a;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.spreadsheet-search-nav-button:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd;
}

.spreadsheet-search-nav-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.spreadsheet-search-nav-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.spreadsheet-search-nav-button svg {
  fill: none;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 18px;
}

.spreadsheet-view-bar .spreadsheet-search-match-count {
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.spreadsheet-view-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.event-icon-button.spreadsheet-export-button {
  color: #166534;
}

.event-icon-button.spreadsheet-print-button {
  color: #1e3a8a;
}

.spreadsheet-view-bar h2 {
  font-size: 18px;
  margin: 0 0 2px;
}

.spreadsheet-view-bar span {
  color: var(--muted);
  font-size: 13px;
}

.spreadsheet-view-bar input {
  width: 100%;
}

.spreadsheet-view-bar select {
  width: 100%;
}

.spreadsheet-filter-select {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 900;
}

.spreadsheet-title-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spreadsheet-timeline-picker {
  min-width: 0;
}

.spreadsheet-timeline-picker summary {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  min-height: 38px;
  min-width: 0;
  width: auto;
}

.spreadsheet-timeline-picker[open] summary {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.spreadsheet-timeline-options {
  max-height: 320px;
  width: 320px;
}

#spreadsheetTimelineOptions {
  display: grid;
  gap: 8px;
}

.sheet-visual-controls {
  align-items: center;
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.sheet-zoom-controls {
  align-items: center;
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.sheet-zoom-controls span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  font-size: 12px;
  font-weight: 800;
  min-width: 72px;
  padding: 7px 9px;
  text-align: center;
}

.timeline-zoom-controls {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  white-space: nowrap;
}

.timeline-zoom-control-button,
.timeline-zoom-fit-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #1f2937;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
}

.timeline-zoom-control-button {
  font-size: 20px;
  line-height: 1;
  padding: 0;
  width: 38px;
}

.timeline-zoom-fit-button {
  font-size: 12px;
  padding: 0 10px;
}

.timeline-zoom-control-button:hover,
.timeline-zoom-fit-button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.timeline-zoom-control-button:focus-visible,
.timeline-zoom-fit-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 1px;
}

.sheet-timeline {
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  overflow-x: auto;
  padding: 10px 14px 12px;
  user-select: none;
}

.sheet-timeline.panning {
  cursor: grabbing;
}

.sheet-timeline-scale,
.sheet-timeline-line {
  min-width: 1300px;
}

.sheet-timeline-scale {
  color: #243041;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-bottom: 7px;
}

.sheet-timeline-scale > div:first-child {
  align-items: center;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  display: flex;
  justify-content: center;
  left: 0;
  min-width: 180px;
  position: sticky;
  z-index: 4;
}

.spreadsheet-year-range-controls {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
  width: 100%;
}

.spreadsheet-year-range-controls select {
  background: #fff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 28px;
  padding: 4px 5px;
  width: 67px;
}

.spreadsheet-year-range-controls select:hover {
  background: #eef4ff;
}

.spreadsheet-year-range-controls select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.spreadsheet-year-range-controls span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.spreadsheet-year-range-empty {
  margin-left: 190px;
  padding: 10px 0 4px;
}

.sheet-timeline-scale > div:last-child,
.sheet-scale-labels {
  background-image: linear-gradient(to right, var(--timeline-date-guide) 1px, transparent 1px);
  background-repeat: repeat;
  background-size: 20% 100%;
  display: block;
  min-height: 22px;
  position: relative;
}

.sheet-scale-label {
  color: #243041;
  display: block;
  font-size: 12px;
  font-weight: 800;
  max-width: 118px;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
}

.sheet-scale-label-start {
  transform: translate(0, -50%);
}

.sheet-scale-label-end {
  transform: translate(-100%, -50%);
}

.sheet-scale-labels::before,
.sheet-scale-labels::after {
  background: #dc2626;
  bottom: 0;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
  content: "";
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 120ms ease;
  width: 2px;
  z-index: 2;
}

.sheet-scale-labels::before {
  left: 0;
}

.sheet-scale-labels::after {
  right: 0;
}

.sheet-scale-labels.at-domain-start::before,
.sheet-scale-labels.at-domain-end::after {
  opacity: 1;
}

.sheet-timeline-line {
  display: grid;
  gap: 10px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.sheet-timeline-label {
  align-items: center;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  color: #243041;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  left: 0;
  min-height: 38px;
  min-width: 180px;
  overflow: hidden;
  padding-right: 8px;
  position: sticky;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 3;
}

.sheet-timeline-row {
  background-image: linear-gradient(to right, var(--timeline-date-guide) 1px, transparent 1px);
  background-repeat: repeat;
  background-size: 20% 100%;
  border-bottom: 1px solid #e4e9f0;
  height: 38px;
  position: relative;
}

.sheet-timeline-row::before {
  background: var(--lane-color, #d7dde5);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 19px;
}

.sheet-timeline-dot,
.sheet-timeline-bar {
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(17, 24, 39, 0.16);
  cursor: pointer;
  position: absolute;
  top: 10px;
  z-index: 2;
}

.sheet-timeline-dot {
  border-radius: 4px;
  height: 18px;
  margin-left: -12px;
  width: 24px;
}

.sheet-timeline-bar {
  border-radius: 999px;
  height: 6px;
  min-width: 16px;
  top: 16px;
}

.sheet-timeline-bar.compact-range {
  border-radius: 3px;
  min-width: 22px;
}

.sheet-timeline-bar.additional-range {
  border-style: dashed;
  opacity: 0.86;
}

.sheet-timeline-dot.selected-event,
.sheet-timeline-bar.selected-event {
  outline: 3px solid #111827;
  outline-offset: 2px;
}

.spreadsheet-table-wrap {
  overflow: auto;
}

.spreadsheet-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 2600px;
  width: max-content;
}

.spreadsheet-table th,
.spreadsheet-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  max-width: 360px;
  min-width: 150px;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.spreadsheet-table .spreadsheet-row-number {
  font-weight: 900;
  left: 0;
  max-width: 88px;
  min-width: 88px;
  position: sticky;
  text-align: center;
  width: 88px;
  z-index: 3;
}

.spreadsheet-table th {
  background: #eef1f5;
  color: #243041;
  font-size: 12px;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.spreadsheet-sort-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 3px;
  justify-content: flex-start;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.spreadsheet-sort-button span {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}

.spreadsheet-sort-button.active {
  color: #1d4ed8;
}

.spreadsheet-row-number .spreadsheet-sort-button {
  font-size: 10px;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
}

.master-added-sort-button.active {
  border-color: #1d4ed8;
  color: #1d4ed8;
  font-weight: 800;
}

.spreadsheet-table td {
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

.spreadsheet-table th.spreadsheet-row-number {
  z-index: 5;
}

.spreadsheet-table td.spreadsheet-row-number {
  background: #f8fafc;
  color: var(--muted);
}

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

.spreadsheet-table tbody tr:hover td {
  background: #f8fafc;
}

.spreadsheet-table tbody tr.selected-row td {
  background: #eff6ff;
}

.spreadsheet-table tbody tr.spreadsheet-search-current-row td {
  background: #fff7ed;
}

.spreadsheet-search-match {
  background: #fde68a;
  border-radius: 2px;
  color: #111827;
  padding: 0 1px;
  scroll-margin: 110px 80px;
}

.spreadsheet-search-match.active {
  background: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.24);
  color: #ffffff;
}

.spreadsheet-action {
  min-width: 150px;
  position: sticky;
  right: 0;
}

.spreadsheet-action .small-button + .small-button {
  margin-left: 6px;
}

.spreadsheet-table .spreadsheet-col-date {
  max-width: 150px;
  min-width: 150px;
  overflow-wrap: anywhere;
  white-space: pre-line;
  word-break: normal;
}

.spreadsheet-table .spreadsheet-col-timeline {
  max-width: 160px;
  min-width: 150px;
}

.spreadsheet-table .spreadsheet-col-label {
  max-width: 240px;
  min-width: 220px;
}

.spreadsheet-table .spreadsheet-col-visual,
.spreadsheet-table .spreadsheet-col-importance,
.spreadsheet-table .spreadsheet-col-contradiction,
.spreadsheet-table .spreadsheet-col-standout,
.spreadsheet-table .spreadsheet-col-exhibit {
  max-width: 118px;
  min-width: 96px;
}

.spreadsheet-table .spreadsheet-col-summary,
.spreadsheet-table .spreadsheet-col-hover,
.spreadsheet-table .spreadsheet-col-claim,
.spreadsheet-table .spreadsheet-col-private {
  max-width: 280px;
  min-width: 230px;
}

.spreadsheet-table .spreadsheet-col-details {
  max-width: 360px;
  min-width: 300px;
}

.spreadsheet-table .spreadsheet-col-people,
.spreadsheet-table .spreadsheet-col-tags,
.spreadsheet-table .spreadsheet-col-documents,
.spreadsheet-table .spreadsheet-col-evidence {
  max-width: 240px;
  min-width: 190px;
}

.spreadsheet-table td.spreadsheet-col-tags {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.spreadsheet-table .spreadsheet-col-source,
.spreadsheet-table .spreadsheet-col-contradicts {
  max-width: 180px;
  min-width: 140px;
}

.spreadsheet-table .spreadsheet-col-related,
.spreadsheet-table .spreadsheet-col-contradiction_details {
  max-width: 320px;
  min-width: 260px;
}

.app-shell {
  min-height: 100vh;
  padding: 16px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto 12px;
  max-width: 1680px;
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  font-size: 26px;
  letter-spacing: 0;
}

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

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

.app-shell > .topbar {
  display: none;
}

.project-dashboard-mode .app-shell > .topbar {
  display: flex;
}

.dashboard {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  margin: 0 auto 12px;
  max-width: 1680px;
}

.metric {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 52px;
  padding: 9px 12px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.metric strong {
  display: block;
  font-size: 21px;
  margin-top: 0;
}

.metric-activity span,
.metric-activity strong {
  white-space: nowrap;
}

.metric-activity strong {
  font-size: 18px;
}

.metric.warning strong {
  color: var(--amber);
}

.metric.urgent strong {
  color: var(--red);
}

.metric.unfinished strong {
  color: #b45309;
}

.metric.multiple-dates strong {
  color: #2563eb;
}

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

.metric-button:hover,
.metric-button:focus-visible,
.metric-button.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.review-events-panel {
  background: var(--surface);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: -4px auto 12px;
  max-width: 1680px;
  padding: 10px 12px;
}

.review-events-panel[hidden] {
  display: none;
}

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

.review-events-panel-head h2 {
  font-size: 15px;
  margin: 0;
}

.review-events-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-events-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.review-event-row {
  align-items: center;
  appearance: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.review-event-row:hover,
.review-event-row:focus-visible {
  background: #eff6ff;
  border-color: #2563eb;
  outline: none;
}

.review-event-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-event-row-main strong,
.review-event-row-main span,
.review-event-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-event-row-main span,
.review-event-row-main small {
  color: var(--muted);
  font-size: 12px;
}

.review-event-row-action {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.project-dashboard {
  margin: 0 auto;
  max-width: 1680px;
}

.project-dashboard-mode .topbar-actions {
  display: none !important;
}

.project-dashboard-header,
.project-auth-panel,
.project-create-panel,
.project-members-panel,
.project-list-panel,
.project-access-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-dashboard-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 16px;
}

.project-dashboard-header h2 {
  font-size: 22px;
  margin: 0;
}

.project-dashboard-header p {
  color: var(--muted);
  margin: 4px 0 0;
}

.project-login-summary {
  background: #eef6f3;
  border: 1px solid #b7dfd2;
  border-radius: 999px;
  color: #075f4f;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.project-auth-panel,
.project-create-panel,
.project-members-panel,
.project-list-panel,
.project-access-panel {
  margin-bottom: 12px;
  padding: 12px;
}

.project-access-admin-details {
  overflow: hidden;
  padding: 0;
}

.project-access-admin-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) minmax(300px, 420px);
  list-style: none;
  min-height: 54px;
  padding: 11px 12px;
}

.project-access-admin-summary::-webkit-details-marker {
  display: none;
}

.project-access-admin-summary::before {
  align-items: center;
  background: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 999px;
  color: #ffffff;
  content: "+";
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}

.project-access-admin-details[open] > .project-access-admin-summary {
  border-bottom: 1px solid var(--line);
}

.project-access-admin-details[open] > .project-access-admin-summary::before {
  background: #1d4ed8;
  content: "-";
}

.project-access-admin-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-access-admin-summary strong {
  color: #111827;
  font-size: 17px;
}

.project-access-admin-summary small {
  color: var(--muted);
  font-size: 12px;
}

.project-access-admin-body {
  padding: 12px;
}

.project-access-admin-summary .project-member-project-picker {
  align-items: center;
  cursor: default;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(180px, 1fr);
  min-width: 0;
}

.project-access-admin-summary .project-member-project-picker > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.project-access-admin-summary .project-member-project-picker select {
  color: #1d4ed8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-width: 0;
  width: 100%;
}

.project-access-admin-summary .project-member-project-picker select option {
  color: #1d4ed8;
  font-weight: 700;
}

.project-access-admin-scope-note {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.project-auth-grid,
.project-create-grid,
.project-member-create-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-create-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr) auto;
}

.project-member-create-row {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 220px) auto;
}

.project-create-grid button {
  align-self: end;
}

.project-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.project-access-panel {
  margin-top: 0;
}

.project-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-access-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.signed-in-auth-mode .signed-out-only,
.signed-out-auth-mode .signed-in-only,
.project-dashboard-sections {
  display: none !important;
}

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

.project-open-row,
.project-invite-code-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(260px, 1fr) auto;
}

.project-open-row label,
.project-invite-code-row label,
.project-member-project-picker {
  display: grid;
  gap: 4px;
}

.project-access-invite-details {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
}

.project-access-invite-details summary {
  color: #174a8b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.project-access-invite-details[open] summary {
  margin-bottom: 8px;
}

.project-member-project-picker {
  font-size: 12px;
  font-weight: 700;
  min-width: min(360px, 45vw);
}

.signed-out-auth-mode .project-dashboard {
  max-width: 760px;
}

.signed-out-auth-mode .topbar-actions button:not(#projectDashboardBtn),
.signed-out-auth-mode .project-create-panel,
.signed-out-auth-mode .project-members-panel,
.signed-out-auth-mode .project-dashboard-sections,
.signed-out-auth-mode .project-access-actions,
.signed-out-auth-mode .project-access-join-card,
.signed-out-auth-mode .project-access-cloud-card,
.signed-out-auth-mode .project-workspace-banner,
.signed-out-auth-mode #projectWorkspacePage,
.signed-out-auth-mode #filesPage,
.signed-out-auth-mode #aiPage,
.signed-out-auth-mode #communicationComparisonPage,
.signed-out-auth-mode #presentationWorkspacePage,
.signed-out-auth-mode #argumentPresentationPage,
.signed-out-auth-mode #workspace {
  display: none !important;
}

.signed-out-auth-mode .project-access-grid {
  grid-template-columns: 1fr;
}

.project-dashboard-nonmanager .project-create-panel,
.project-dashboard-nonmanager .project-members-panel,
.project-dashboard-nonmanager .project-list-my-panel {
  display: none !important;
}

.project-access-card {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.project-access-card strong {
  color: var(--text);
}

.project-access-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.project-access-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.project-access-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
}

.project-access-row.active {
  background: #eef6f3;
  border-color: #9fd6c6;
}

.project-access-row small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

#projectAccessStatus[data-status-tone="success"] {
  color: #075f4f;
}

#projectAccessStatus[data-status-tone="error"] {
  color: #9f1239;
}

#projectCreateLoginStatus[data-status-tone="success"] {
  color: #075f4f;
  font-weight: 700;
}

#projectCreateLoginStatus[data-status-tone="error"] {
  color: #9f1239;
  font-weight: 700;
}

.project-members-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.project-invite-status {
  margin-top: 8px;
}

.project-invite-status.success {
  color: #075f4f;
}

.project-invite-status.error {
  color: #9f1239;
}

.project-email-settings {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding: 0 2px;
}

.project-email-settings > summary {
  color: #174a8b;
  cursor: pointer;
  display: list-item;
  padding: 10px 2px;
}

.project-email-settings > summary::marker {
  color: #2563eb;
}

.project-email-settings > summary span {
  font-weight: 800;
  margin-right: 8px;
}

.project-email-settings > summary small {
  color: var(--muted);
  font-size: 12px;
}

.project-email-settings-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

.project-email-settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) 100px minmax(210px, 1fr) minmax(220px, 1fr);
}

.project-email-settings-grid label {
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
  min-width: 0;
}

.project-email-settings-grid input,
.project-email-settings-grid select {
  min-width: 0;
  width: 100%;
}

.project-email-settings-actions,
.project-email-log-header,
.project-email-log-header > div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.project-email-settings-actions {
  justify-content: flex-end;
}

.project-email-settings-actions .field-note {
  margin-right: auto;
}

.project-email-log-header {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  padding: 10px 0 8px;
}

.project-email-log-header span {
  color: var(--muted);
  font-size: 12px;
}

.project-email-log {
  display: grid;
  gap: 1px;
  max-height: 300px;
  overflow: auto;
  padding-bottom: 10px;
}

.project-email-log-row {
  align-items: start;
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 150px 86px minmax(170px, 1fr) minmax(180px, 1.4fr);
  padding: 7px 4px;
}

.project-email-log-row time,
.project-email-log-row span,
.project-email-log-row small {
  font-size: 12px;
}

.project-email-log-row small {
  color: var(--muted);
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.project-email-log-status {
  font-weight: 800;
  text-transform: capitalize;
}

.project-email-log-status.accepted,
.project-email-log-status.verified {
  color: #075f4f;
}

.project-email-log-status.failed,
#projectSmtpStatus[data-status-tone="error"] {
  color: #9f1239;
}

#projectSmtpStatus[data-status-tone="success"] {
  color: #075f4f;
  font-weight: 700;
}

.project-member-row {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  padding: 8px;
}

.project-member-row-removed {
  background: #fffaf0;
  border-color: #f6c978;
}

.project-member-removed-status {
  color: #9a5700;
  font-weight: 800;
}

.project-member-previous-role {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.project-member-removed-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.project-member-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.project-removed-login {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 8px;
  padding: 9px;
}

.project-removed-login strong,
.project-removed-login span,
.project-removed-login small {
  display: block;
}

.project-removed-login span {
  margin-top: 2px;
}

.project-removed-login small {
  color: #7c2d12;
  margin-top: 3px;
}

.admin-password-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgb(15 23 42 / 24%);
  padding: 0;
  width: min(520px, calc(100vw - 32px));
}

.admin-password-dialog::backdrop {
  background: rgb(15 23 42 / 48%);
}

.admin-password-dialog form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-password-dialog label {
  display: grid;
  font-weight: 700;
  gap: 5px;
}

.admin-password-dialog .icon-button {
  align-items: center;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0;
}

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

.file-delete-dialog {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgb(15 23 42 / 28%);
  color: #0f172a;
  max-width: calc(100vw - 32px);
  padding: 0;
  width: 560px;
}

.file-delete-dialog::backdrop {
  background: rgb(15 23 42 / 52%);
}

.file-delete-dialog-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.file-delete-dialog-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.file-delete-dialog-header h2 {
  font-size: 20px;
  margin: 2px 0 0;
}

.file-delete-dialog-eyebrow {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.file-delete-dialog-header .icon-button {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0;
}

.file-delete-dialog-summary {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 13px 14px;
}

.file-delete-dialog-summary strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.file-delete-dialog-summary p {
  line-height: 1.45;
  margin: 0;
}

.file-delete-kept-recording {
  color: #166534;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-delete-original-ack:not([hidden]) {
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 6px;
  display: flex;
  font-weight: 700;
  gap: 9px;
  padding: 12px;
}

.file-delete-original-ack input {
  margin-top: 2px;
}

.file-delete-dialog .danger-button {
  min-width: 116px;
}

@media (max-width: 720px) {
  .project-access-admin-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-access-admin-summary .project-member-project-picker {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .project-open-row,
  .project-invite-code-row,
  .project-create-grid,
  .project-member-create-row,
  .project-member-row,
  .project-removed-login {
    grid-template-columns: 1fr;
  }

  .project-member-removed-actions {
    justify-content: flex-start;
  }

  .project-removed-login button {
    justify-self: start;
  }

  .project-member-project-picker {
    min-width: 0;
    width: 100%;
  }

  .project-email-settings-grid,
  .project-email-log-row {
    grid-template-columns: 1fr;
  }

  .project-email-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .project-email-log-row small {
    grid-column: auto;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .project-email-settings-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

.project-member-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-member-main strong {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.project-member-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.project-member-main .project-member-invite-error {
  color: #9f1239;
  font-weight: 700;
}

.project-member-invite {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-member-invite code {
  background: #eef6f3;
  border: 1px solid #b7dfd2;
  border-radius: 6px;
  color: #075f4f;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 6px;
}

.project-member-activity {
  background: #ffffff;
  border: 1px solid #d8e2ef;
  border-radius: 7px;
  min-width: 0;
  padding: 6px 8px;
}

.project-member-activity summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 7px;
  grid-template-columns: 26px minmax(0, 1fr);
  list-style: none;
}

.project-member-activity summary::-webkit-details-marker {
  display: none;
}

.project-member-activity summary::marker {
  content: "";
}

.project-activity-disclosure-icon {
  align-items: center;
  background: #2563eb;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.project-activity-disclosure-icon svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  width: 15px;
}

.project-activity-close-icon,
.project-member-activity[open] .project-activity-expand-icon {
  display: none;
}

.project-member-activity[open] .project-activity-close-icon {
  display: block;
}

.project-member-activity[open] .project-activity-disclosure-icon {
  background: #475569;
}

.project-activity-summary-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-member-activity summary strong {
  color: #14345f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-member-activity summary small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-member-activity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0;
}

.project-member-activity-stats span {
  background: #edf5ff;
  border: 1px solid #c9dffe;
  border-radius: 999px;
  color: #174a8b;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
}

.project-activity-refresh {
  height: 24px;
  margin-left: auto;
  min-height: 24px;
  min-width: 24px;
  padding: 2px;
  width: 24px;
}

.project-member-activity-detailed {
  border-top: 1px solid #d8e2ef;
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding-top: 7px;
}

.project-activity-error {
  background: #fff5f5;
  border-left: 3px solid #dc2626;
  color: #991b1b;
  font-size: 12px;
  margin: 0;
  padding: 7px 9px;
}

.project-activity-day {
  border-bottom: 1px solid #d8e2ef;
  padding: 0 0 7px;
}

.project-activity-day > summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 5px 2px;
}

.project-activity-day > summary strong {
  color: #14345f;
  font-size: 13px;
}

.project-activity-day > summary span {
  color: #425b7a;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.project-activity-day-body {
  display: grid;
  gap: 9px;
  padding: 5px 2px 2px 16px;
}

.project-activity-day-body section {
  min-width: 0;
}

.project-activity-day-body h5,
.project-activity-legacy h5 {
  color: #14345f;
  font-size: 11px;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.project-activity-session-row,
.project-activity-page-row,
.project-activity-action-row {
  align-items: baseline;
  border-top: 1px solid #edf1f7;
  display: grid;
  gap: 3px 8px;
  padding: 5px 0;
}

.project-activity-session-row,
.project-activity-page-row {
  grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 1.3fr);
}

.project-activity-session-row strong,
.project-activity-page-row strong,
.project-activity-action-row strong {
  color: var(--text);
  font-size: 12px;
}

.project-activity-session-row span,
.project-activity-page-row span,
.project-activity-action-row span,
.project-activity-action-row small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.project-activity-action-row {
  grid-template-columns: 72px minmax(105px, 0.65fr) minmax(150px, 1.35fr);
}

.project-activity-action-row time {
  color: var(--muted);
  font-size: 11px;
}

.project-activity-action-row small {
  grid-column: 2 / -1;
}

.project-activity-legacy {
  border-top: 1px solid #d8e2ef;
  margin-top: 8px;
  padding-top: 8px;
}

@media (max-width: 720px) {
  .project-activity-session-row,
  .project-activity-page-row,
  .project-activity-action-row {
    grid-template-columns: 1fr;
  }

  .project-activity-action-row small {
    grid-column: 1;
  }

  .project-activity-day-body {
    padding-left: 8px;
  }
}

.project-member-activity-log {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.project-member-activity-row {
  border-top: 1px solid #edf1f7;
  display: grid;
  gap: 2px;
  padding-top: 6px;
}

.project-member-activity-row time {
  color: var(--muted);
  font-size: 11px;
}

.project-member-activity-row strong {
  color: var(--text);
  font-size: 12px;
}

.project-member-activity-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.project-member-activity-row small {
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.project-card-list {
  display: grid;
  gap: 10px;
}

.project-card {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.project-card.active {
  border-color: #7fb2ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

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

.project-card-head strong {
  color: var(--text);
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.project-card-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 4px 0 0;
}

.project-card-badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: end;
}

.project-card-badges span {
  background: #edf2f7;
  border-radius: 999px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.project-card-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 0;
}

.project-card-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
}

.project-card-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card-stats dd {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-workspace-banner {
  align-items: center;
  background: #0f172a;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.8fr) auto minmax(150px, 0.45fr) minmax(0, 2.2fr) auto;
  margin: 0 auto 12px;
  max-width: 1680px;
  padding: 10px 12px;
}

.project-workspace-banner span {
  color: #bfdbfe;
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-workspace-banner strong {
  display: block;
  font-size: 18px;
  margin-top: 2px;
}

.project-role-block {
  min-width: 0;
  justify-self: start;
  text-align: left;
}

.project-banner-projects-button {
  justify-self: center;
}

.project-admin-tools-button {
  flex: 0 0 auto;
}

.project-role-block span {
  color: #fff;
}

.project-role-block small {
  color: #93c5fd;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.project-role-block em {
  color: #dbeafe;
  display: block;
  font-size: 13px;
  font-style: normal;
}

.project-banner-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.project-banner-nav::-webkit-scrollbar {
  display: none;
}

.project-banner-nav .small-button {
  flex: 0 0 auto;
  font-size: 12px;
  min-height: 30px;
  padding: 0 8px;
  white-space: nowrap;
}

.project-build-checklist-header-identity .project-banner-icon-button,
.project-banner-nav .project-banner-icon-button,
.project-banner-actions .project-banner-icon-button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 34px;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  min-width: 34px;
  padding: 0;
  position: relative;
  width: 34px;
}

.project-banner-icon-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.project-banner-icon-count {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #0f172a;
  border-radius: 999px;
  color: #0f172a !important;
  display: inline-flex !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  height: 16px;
  justify-content: center;
  line-height: 1;
  min-width: 16px;
  padding: 0 3px;
  position: absolute;
  right: -5px;
  top: -6px;
}

.project-banner-icon-count[hidden] {
  display: none !important;
}

.project-banner-nav-gap {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
}

.project-banner-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-self: end;
}

.definition-toggle-button {
  align-self: center;
  font-size: 18px;
  font-weight: 900;
  min-width: 36px;
}

.definition-panel[hidden] {
  display: none;
}

.definition-panel {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 9px 10px;
}

.project-website-logins-panel {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  overflow: hidden;
}

.project-website-logins-panel[hidden] {
  display: none;
}

.project-website-logins-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  list-style: none;
  min-height: 46px;
  padding: 7px 9px;
}

.project-website-logins-summary::-webkit-details-marker {
  display: none;
}

.project-website-logins-summary:hover,
.project-website-logins-summary:focus-visible {
  background: #eef6ff;
}

.project-website-logins-summary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.project-website-logins-title {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.project-website-logins-summary strong {
  color: #172033;
  font-size: 14px;
}

.project-website-logins-summary small,
.project-website-login-count {
  color: #64748b;
  font-size: 12px;
}

.project-website-login-count {
  font-weight: 800;
  margin-left: auto;
  white-space: nowrap;
}

.project-website-login-add-button {
  height: 26px;
  min-height: 26px;
  padding: 0;
  width: 26px;
}

.project-website-login-add-button svg {
  height: 15px;
  width: 15px;
}

.project-website-logins-toggle {
  align-items: center;
  background: #2563eb;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 24px;
}

.project-website-logins-toggle::before,
.project-website-logins-toggle::after {
  background: #ffffff;
  border-radius: 2px;
  content: "";
  left: 7px;
  position: absolute;
  top: 11px;
}

.project-website-logins-toggle::before {
  height: 2px;
  width: 10px;
}

.project-website-logins-toggle::after {
  height: 10px;
  left: 11px;
  top: 7px;
  width: 2px;
}

.project-website-logins-panel[open] .project-website-logins-toggle::after {
  display: none;
}

.project-website-logins-body {
  border-top: 1px solid #dbeafe;
  display: grid;
  gap: 8px;
  padding: 9px;
}

.project-website-logins-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.project-website-logins-actions p {
  color: #475569;
  font-size: 12px;
  margin: 0;
}

.project-website-logins-actions p.error {
  color: #b42318;
}

.project-website-logins-actions p.success {
  color: #067647;
}

.project-website-login-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 9px;
}

.project-website-login-form[hidden] {
  display: none;
}

.project-website-login-form label {
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  min-width: 0;
}

.project-website-login-form input,
.project-website-login-form textarea {
  min-width: 0;
  width: 100%;
}

.project-website-login-form label small {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.project-website-login-note-field,
.project-website-login-form-actions {
  grid-column: 1 / -1;
}

.project-website-login-note-field textarea {
  min-height: 70px;
  resize: vertical;
}

.project-website-login-form-actions {
  display: flex;
  gap: 6px;
}

.project-website-login-list {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
}

.project-website-login-row {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(240px, 360px) minmax(140px, 220px) minmax(160px, 230px) minmax(180px, 320px) auto;
  justify-content: start;
  padding: 8px 2px 2px;
}

.project-website-login-row:first-child {
  border-top: 0;
}

.project-website-login-row > div {
  min-width: 0;
}

.project-website-login-row strong,
.project-website-login-row a,
.project-website-login-row span,
.project-website-login-row p {
  overflow-wrap: anywhere;
}

.project-website-login-note p {
  color: #172033;
}

.project-website-login-row a {
  color: #1d4ed8;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.project-website-login-row small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 2px;
}

.project-website-login-row p {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  white-space: pre-wrap;
}

.project-website-login-password {
  align-items: center;
  display: flex;
  gap: 6px;
}

.project-website-login-secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.project-website-login-row-actions {
  display: flex;
  gap: 5px;
}

@media (max-width: 840px) {
  .project-website-login-form,
  .project-website-login-row {
    grid-template-columns: 1fr;
  }

  .project-website-login-note-field,
  .project-website-login-form-actions {
    grid-column: auto;
  }

  .project-website-login-row-actions {
    justify-content: flex-start;
  }
}

.definition-toolbar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.definition-search-field {
  min-width: 0;
  position: relative;
}

.definition-search-field input {
  padding-right: 38px;
}

.definition-search-field input::-webkit-search-cancel-button {
  appearance: none;
}

.definition-search-clear {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
}

.definition-search-clear[hidden] {
  display: none;
}

.definition-search-clear:hover,
.definition-search-clear:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

.definition-search-clear svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 16px;
}

.definition-toolbar input,
.definition-quick-add input,
.definition-quick-add select,
.definition-quick-add textarea,
.definition-import-panel input,
.definition-import-panel select,
.definition-import-panel textarea {
  min-width: 0;
  width: 100%;
}

.definition-add-button {
  height: 34px;
  width: 34px;
}

.definition-import-button {
  min-width: 62px;
}

.definition-export-button {
  min-width: 62px;
}

.definition-tag-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  min-width: 0;
}

.definition-manage-tags-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.definition-manage-tags-link:hover,
.definition-manage-tags-link:focus-visible {
  color: #1e40af;
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.definition-manage-tags-link svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.definition-category-manager {
  background: #f8fafc;
  border-block: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.definition-category-manager[hidden] {
  display: none;
}

.definition-category-manager-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.definition-category-manager-header > div {
  display: grid;
  gap: 2px;
}

.definition-category-manager-header strong {
  color: #0f172a;
  font-size: 14px;
}

.definition-category-manager-header span {
  color: #64748b;
  font-size: 12px;
}

.definition-category-add-form {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(180px, 1fr) 30px;
  max-width: 520px;
}

.definition-category-add-form input,
.definition-category-manager-row input {
  min-width: 0;
  width: 100%;
}

.definition-category-manager-status {
  color: #475569;
  font-size: 12px;
  min-height: 16px;
}

.definition-category-manager-status.success {
  color: #166534;
}

.definition-category-manager-status.error {
  color: #b91c1c;
}

.definition-category-manager-list {
  display: grid;
  gap: 6px;
}

.definition-category-manager-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(160px, 1fr) minmax(84px, auto) 30px 30px;
}

.definition-category-manager span.definition-category-usage {
  color: #64748b;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.definition-category-manager .definition-action-icon {
  height: 30px;
  min-height: 30px;
  min-width: 30px;
  width: 30px;
}

.definition-category-editor {
  align-content: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  padding-top: 8px;
}

#definitionTermInput {
  grid-column: 1 / -1;
}

.definition-category-editor > strong {
  color: #334155;
  font-size: 12px;
}

.definition-selected-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.definition-selected-category-row {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1e3a8a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  min-height: 30px;
  padding: 3px 4px 3px 9px;
}

.definition-selected-category-row > span {
  color: #1e3a8a;
  display: inline;
}

.definition-selected-category-row .event-icon-button {
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  width: 24px;
}

.definition-selected-category-row .event-icon-button svg {
  height: 13px;
  width: 13px;
}

.definition-category-editor .definition-selected-category-empty {
  align-self: center;
  color: #64748b;
  font-size: 12px;
}

.definition-category-picker-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(160px, 1fr) 30px;
}

.definition-category-picker-row .definition-action-icon {
  height: 30px;
  min-height: 30px;
  min-width: 30px;
  width: 30px;
}

.definition-quick-add,
.definition-import-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(170px, 1fr);
  padding: 9px;
}

.definition-quick-add {
  background: #f8fbff;
  border: 2px solid #2563eb;
  border-left-width: 6px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
  padding: 10px 12px 12px;
  position: relative;
}

.definition-editor-header {
  align-items: center;
  background: #dbeafe;
  border-bottom: 1px solid #93c5fd;
  border-radius: 5px 5px 0 0;
  display: flex;
  gap: 9px;
  grid-column: 1 / -1;
  margin: -10px -12px 2px;
  min-width: 0;
  padding: 8px 12px;
}

.definition-editor-header-icon {
  align-items: center;
  background: #2563eb;
  border-radius: 5px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.definition-editor-header-icon svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.definition-editor-header > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.definition-editor-header span:not(.definition-editor-header-icon) {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.definition-editor-header strong {
  color: #172554;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.definition-card.editing {
  background: #eff6ff;
  border-color: #60a5fa;
  box-shadow: inset 4px 0 0 #2563eb;
}

.definition-card.editing > div:first-child > strong {
  color: #1d4ed8;
}

.definition-quick-add[hidden],
.definition-import-panel[hidden] {
  display: none;
}

.definition-quick-add textarea,
.definition-import-panel textarea {
  min-height: 58px;
}

.definition-import-panel textarea {
  grid-column: 1 / -1;
  min-height: 120px;
}

.definition-quick-add textarea:nth-of-type(1),
.definition-quick-add textarea:nth-of-type(2),
.definition-form-actions {
  grid-column: 1 / -1;
}

.definition-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.definition-tag-strip {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}

.definition-tag-strip::-webkit-scrollbar {
  display: none;
}

.definition-tag-strip .definition-tag-chip {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .definition-toolbar {
    grid-template-columns: auto auto auto;
    justify-content: start;
  }

  .definition-search-field {
    grid-column: 1 / -1;
    width: 100%;
  }

  .definition-tag-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .definition-tag-strip {
    max-width: 100%;
    width: 100%;
  }

  .definition-category-manager-row {
    grid-template-columns: minmax(0, 1fr) 30px 30px;
  }

  .definition-category-usage {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .definition-quick-add {
    grid-template-columns: minmax(0, 1fr);
  }

  .definition-category-editor {
    grid-column: 1 / -1;
  }
}

.definition-tag-strip-empty {
  color: #64748b;
  font-size: 12px;
}

.definition-tag-chip {
  background: #f1f5f9;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.definition-tag-chip.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

.definition-results {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.definition-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr) auto;
  padding: 8px;
}

.definition-card.pinned {
  border-color: #93c5fd;
  box-shadow: inset 4px 0 0 #2563eb;
}

.definition-card strong {
  color: #0f172a;
  font-size: 14px;
}

.definition-card small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.definition-card p {
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.definition-card .definition-notes {
  color: #475569;
}

.definition-card-actions {
  align-items: center;
  display: flex;
  gap: 5px;
}

.definition-action-icon {
  align-items: center;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  min-width: 30px;
  padding: 0;
  width: 30px;
}

.definition-action-icon svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.definition-action-icon.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.definition-action-delete {
  color: #b42318;
}

.definition-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 2 / -1;
}

.definition-empty {
  background: #ffffff;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
}

.page-log-panel.hidden {
  display: none;
}

.page-log-panel {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto 12px;
  max-width: 1680px;
  padding: 10px 12px;
}

.page-log-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.page-log-header h3 {
  margin: 0;
}

.page-log-header span {
  color: var(--muted);
  font-size: 12px;
}

.page-log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-log-icon-button {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0;
  width: 32px;
}

.page-log-icon-button svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.page-log-rows {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 240px;
  overflow: auto;
}

.page-log-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(132px, auto) minmax(120px, auto) minmax(0, 1fr);
  padding: 7px 8px;
}

.page-log-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-log-row strong {
  color: #1f2937;
  font-size: 12px;
}

.page-log-row span {
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.page-log-row span small {
  color: #1d4ed8;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.timeline-fullscreen .page-log-panel,
.spreadsheet-fullscreen-mode .page-log-panel {
  left: 16px;
  margin: 0 auto;
  max-height: calc(100vh - 92px);
  max-width: 1680px;
  overflow: hidden;
  position: fixed;
  right: 16px;
  top: 76px;
  width: auto;
  z-index: 80;
}

.timeline-fullscreen .page-log-rows,
.spreadsheet-fullscreen-mode .page-log-rows {
  max-height: calc(100vh - 158px);
}

details[open].manager-dropdown,
details[open].files-filter-panel,
details[open].checklist-filter-panel,
details[open].file-detail-card,
details[open].argument-card-compact,
details[open].argument-details,
details[open].argument-tag-picker,
details[open].tag-management-section,
details[open].tag-parent-dropdown,
details[open].tag-parent-settings,
details[open].tag-linked-items,
details[open].exhibit-template-tools,
details[open].view-template-tools {
  border-left: 5px solid var(--blue);
}

details[open].manager-dropdown > summary,
details[open].files-filter-panel > summary,
details[open].checklist-filter-panel > summary,
details[open].file-detail-card > summary,
details[open].argument-card-compact > summary,
details[open].argument-details > summary,
details[open].argument-tag-picker > summary,
details[open].tag-management-section > summary,
details[open].tag-parent-dropdown > summary,
details[open].tag-parent-settings > summary,
details[open].tag-linked-items > summary,
details[open].exhibit-template-tools > summary,
details[open].view-template-tools > summary {
  padding-left: 7px;
}

.project-banner-nav .ghost-button {
  background: #1f2937;
  border: 1px solid #334155;
  color: #fff;
}

.project-banner-nav .ghost-button:hover {
  background: #334155;
  filter: none;
}

.project-details-header {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
}

.project-details-header h2 {
  font-size: 20px;
  margin: 0;
}

.project-details-header span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.project-details-section-divider {
  background: #2563eb;
  border-radius: 999px;
  height: 3px;
  margin: 14px 0 16px;
  opacity: 0.65;
}

.project-permissions-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0 12px;
}

.project-security-list {
  display: grid;
  gap: 8px;
}

.project-tools-access-card {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
}

.project-tools-access-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-tools-access-card strong {
  color: var(--text);
  font-size: 13px;
}

.project-tools-access-card span {
  color: var(--muted);
  font-size: 12px;
}

.project-security-manager .project-permissions-panel {
  box-shadow: none;
  margin-top: 0;
}

.project-permissions-panel summary strong {
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-permissions-body {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.project-permission-summary {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
  margin-bottom: 10px;
  padding: 10px;
}

.project-permission-summary strong,
.project-permission-summary span {
  display: block;
}

.project-permission-summary span,
.project-permission-summary p {
  color: var(--muted);
  font-size: 13px;
  margin: 3px 0 0;
}

.project-permission-matrix {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.permission-matrix-header,
.permission-matrix-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(210px, 1.4fr) repeat(5, minmax(80px, 0.7fr));
  padding: 9px 10px;
}

.permission-matrix-header {
  background: #eef1f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.permission-matrix-row {
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.permission-matrix-row.current {
  background: #eff6ff;
}

.permission-matrix-row strong,
.permission-matrix-row em {
  display: block;
}

.permission-matrix-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}

.project-readonly .red-plus-button,
.project-readonly [data-save-event],
.project-readonly [data-delete-timeline],
.project-readonly [data-delete-bucket],
.project-readonly [data-delete-bucket-document] {
  opacity: 0.45;
}

.project-edit-locked .permission-disabled,
.project-edit-locked .permission-disabled + span {
  opacity: 0.55;
}

.workspace-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  margin: 0 auto;
  max-width: calc(1680px + 25ch);
}

.timeline-workspace-mode .workspace-grid {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

.timeline-workspace-mode:not(.timeline-workspace-detail-open) .workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}

.timeline-workspace-mode:not(.timeline-workspace-detail-open) .main-panel {
  grid-column: 1 / -1;
}

.timeline-workspace-mode .detail-panel[hidden] {
  display: none !important;
}

@media (min-width: 1800px) {
  .timeline-workspace-mode .workspace-grid {
    grid-template-columns: minmax(0, 1fr) clamp(380px, 18vw, 500px);
  }
}

.import-panel,
.main-panel,
.detail-panel,
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.import-panel,
.detail-panel {
  align-self: start;
  padding: 16px;
}

.main-panel {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
}

.setup-page {
  display: none;
  grid-column: 1 / -1;
  padding: 0;
}

.tools-page-mode .setup-page {
  display: block;
}

.setup-page-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.setup-page-header h2,
.setup-page-header p {
  margin: 0;
}

.setup-page-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.setup-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tag-glossary-panel.section-flash {
  animation: tagPanelFlash 1.6s ease-out;
}

@keyframes tagPanelFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.28);
    outline: 2px solid rgba(37, 99, 235, 0.55);
  }

  100% {
    box-shadow: var(--shadow);
    outline: 2px solid transparent;
  }
}

.setup-content {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.1fr) minmax(300px, 1fr);
  padding: 12px 16px 16px;
}

.setup-content > .panel-header {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.setup-content > .mapping-area {
  grid-column: 1 / -1;
}

.setup-content > .paste-import,
.setup-content > .custom-field-manager,
.setup-content > .people-manager,
.setup-content > .timeline-manager,
.setup-content > .bucket-manager,
.setup-content > .sms-library-manager,
.setup-content > .communications-analyzer,
.setup-content > .visual-bulk-manager,
.setup-content > .workspace-data-manager,
.setup-content > .export-tools-manager,
.setup-content > .project-exports-panel,
.setup-content > .supabase-manager,
.setup-content > .google-manager,
.setup-content > .mapping-area {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0;
  padding: 12px;
}

.setup-content > .file-drop {
  min-height: 100%;
}

.tool-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.export-tool-actions,
.workspace-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-select-label {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
}

.compact-select-label select {
  min-width: 190px;
}

.export-status {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 10px;
  padding: 8px 9px;
}

.export-status.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

.export-status.error {
  background: #fff1f0;
  border-color: #fecaca;
  color: var(--red);
}

.export-csv-text {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #111827;
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 10px;
  min-height: 260px;
  padding: 10px;
  resize: vertical;
  white-space: pre;
  width: 100%;
}

.export-csv-text[hidden] {
  display: none;
}

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

.panel-header.compact {
  margin-top: 18px;
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
}

.panel-header span {
  color: var(--muted);
  font-size: 13px;
}

.file-drop {
  align-items: center;
  border: 1px dashed #9aa7b8;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 24px 12px;
  text-align: center;
}

.file-drop input {
  display: none;
}

.file-drop span {
  color: var(--blue);
  font-weight: 800;
}

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

.mapping-area.hidden,
.preview-panel.hidden {
  display: none;
}

.paste-import,
.custom-field-manager,
.people-manager,
.timeline-manager,
.bucket-manager,
.sms-library-manager,
.communications-analyzer,
.supabase-manager,
.google-manager {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 2px;
}

.manager-dropdown summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
}

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

.manager-dropdown > summary::before {
  color: var(--muted);
  content: "+";
  font-weight: 900;
  margin-right: 8px;
}

.manager-dropdown[open] > summary::before {
  content: "-";
}

.manager-dropdown > summary span {
  flex: 1;
}

.manager-dropdown > summary strong {
  background: #eef1f5;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  padding: 4px 8px;
}

.manager-dropdown[open] > :not(summary) {
  margin-top: 10px;
}

.project-setup-panel {
  display: grid;
  gap: 10px;
}

.project-setup-panel .panel-header {
  margin-bottom: 0;
}

.project-setup-panel .manager-dropdown {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0;
  padding: 8px 10px;
}

.project-setup-directory-link {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
}

.project-setup-directory-link:hover,
.project-setup-directory-link:focus-visible {
  background: #eff6ff;
  border-color: #93c5fd;
  outline: none;
}

.project-setup-directory-link-meta {
  align-items: center;
  color: var(--blue);
  display: flex;
  font-size: 13px;
  gap: 8px;
}

.project-setup-directory-link-meta strong {
  background: #eef1f5;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  padding: 4px 8px;
}

.project-workspace-page .manager-dropdown > summary::before {
  align-items: center;
  background: #ffffff;
  border: 2px solid #93c5fd;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 5px 12px rgba(37, 99, 235, 0.16);
  color: #2563eb;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  margin-right: 10px;
  width: 28px;
}

.project-workspace-page .manager-dropdown[open] > summary::before {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.project-workspace-page summary::after {
  color: #2563eb;
  font-weight: 900;
}

.people-list,
.custom-field-list,
.timeline-manager-list,
.bucket-list {
  display: grid;
  gap: 8px;
}

.paste-import {
  display: grid;
  gap: 10px;
}

.paste-import label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 5px;
}

.paste-import textarea {
  min-height: 120px;
}

.person-row {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(150px, 1.1fr) minmax(110px, .45fr) minmax(140px, .75fr) minmax(120px, .65fr) minmax(150px, .75fr) minmax(105px, .5fr) minmax(140px, .7fr) minmax(120px, .6fr) auto auto;
}

.person-row-main {
  align-items: center;
  display: flex;
  gap: 6px;
  grid-column: 1 / -1;
}

.person-profile-picture {
  align-items: center;
  border: 1px solid #dbe5ef;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 10px;
}

.person-profile-picture-preview {
  align-items: center;
  aspect-ratio: 1;
  background: #edf3fa;
  border: 1px solid #cad7e6;
  border-radius: 6px;
  color: #26486f;
  display: flex;
  font-size: 1.35rem;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
}

.person-profile-picture-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.person-profile-picture-controls {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.person-profile-picture-controls small {
  color: #5f7087;
  overflow-wrap: anywhere;
}

.person-profile-picture-upload {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.person-profile-picture-upload input[type=file] {
  min-width: 0;
  width: min(100%, 360px);
}

.person-association-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.person-association-summary span {
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 4px;
  padding: 3px 7px;
}

.person-association-summary span.has-links {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.person-association-summary span.no-links {
  opacity: 0.66;
}

.person-row textarea {
  grid-column: 1 / -3;
  resize: vertical;
}

.person-foundation-details {
  border-top: 1px solid #dbe5ef;
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 6px;
}

.person-foundation-details > summary {
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  list-style-position: inside;
}

.person-foundation-details[open] > summary {
  margin-bottom: 8px;
}

.person-foundation-section {
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 6px;
  padding: 8px 0;
}

.person-foundation-warning {
  padding: 6px 8px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
  font-size: 12px;
}

.person-foundation-section:first-of-type {
  border-top: 0;
}

.person-organization-contacts {
  display: grid;
  gap: 6px;
}

.person-organization-contacts > div {
  align-items: center;
  border: 1px solid #dbe5ef;
  display: grid;
  gap: 3px 10px;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, .8fr);
  padding: 8px;
}

.person-organization-contacts > div small {
  color: #607087;
  grid-column: 1 / -1;
  text-transform: capitalize;
}

.person-foundation-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.person-foundation-row {
  align-items: center;
  display: grid;
  gap: 6px;
}

.person-organization-relationship-row {
  grid-template-columns: minmax(145px, 1fr) minmax(115px, .72fr) minmax(135px, .9fr) minmax(90px, .55fr) auto;
}

.person-contact-point-row {
  grid-template-columns: minmax(110px, .35fr) minmax(220px, 1fr) auto auto;
}

.person-address-row {
  grid-template-columns: minmax(110px, .35fr) minmax(240px, 1.4fr) auto;
}

.person-organization-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.person-organization-add {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(190px, 1fr) auto;
  margin-top: 4px;
}

.person-foundation-row .icon-button {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 5px;
  width: 34px;
}

.person-foundation-row .icon-button svg,
.person-organization-add button svg,
.person-foundation-heading button svg {
  height: 16px;
  width: 16px;
}

.person-foundation-check {
  align-items: center;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 4px;
  white-space: nowrap;
}

.person-contact-notes {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  gap: 4px;
}

.person-contact-notes textarea {
  grid-column: auto;
  min-height: 54px;
}

.person-case-information {
  align-items: start;
  grid-template-columns: minmax(120px, .35fr) minmax(180px, .55fr) minmax(0, 1fr);
}

.person-case-information > label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  gap: 4px;
}

.person-case-role-list {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.person-case-role-list legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.person-case-role-list label {
  align-items: center;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 3px;
  white-space: nowrap;
}

.person-type-pill,
.person-org-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 7px;
}

.person-type-pill {
  background: #eef2ff;
  color: #3730a3;
}

.person-org-pill {
  background: #ecfdf5;
  color: #166534;
}

.custom-field-row {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.locked-column input {
  background: #eef1f5;
  color: var(--muted);
}

.core-column-pill {
  align-items: center;
  background: #eef1f5;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
}

.person-create-row,
.custom-field-create-row,
.timeline-create-row {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.person-create-row,
.custom-field-create-row {
  grid-template-columns: minmax(180px, 1fr) minmax(110px, .35fr) minmax(160px, .55fr) auto;
}

.timeline-create-row {
  grid-template-columns: minmax(150px, .75fr) minmax(220px, 1fr) 44px auto;
}

.timeline-create-row input[type="color"],
.timeline-manager-row input[type="color"] {
  min-height: 38px;
  padding: 2px;
}

.timeline-manager-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(140px, .7fr) minmax(220px, 1fr) 44px minmax(78px, auto) minmax(78px, auto) auto auto auto auto;
}

.timeline-manager-description {
  min-width: 0;
}

.timeline-manager-row.timeline-disabled {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  opacity: .78;
  padding: 6px;
}

.timeline-item-count,
.timeline-enabled-pill {
  align-items: center;
  align-self: center;
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 28px;
  padding: 3px 8px;
  white-space: nowrap;
}

.timeline-enabled-pill.enabled {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

.timeline-enabled-pill.disabled {
  background: #fff1f0;
  border-color: #fecaca;
  color: #b42318;
}

.timeline-order-actions {
  display: flex;
  gap: 4px;
}

.empty-small {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.bucket-create-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.35fr) minmax(180px, 0.55fr) auto;
  margin-bottom: 10px;
}

.sms-library-manager {
  display: grid;
  gap: 10px;
}

.sms-library-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sms-library-controls label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 5px;
}

.sms-library-drop {
  min-height: 92px;
  padding: 18px 10px;
}

.sms-library-drop.drag-over {
  background: #eff6ff;
  border-color: var(--blue);
}

.communications-analyzer {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.proof-check-panel {
  margin-bottom: 12px;
}

.proof-check-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(150px, .5fr));
}

.proof-check-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 5px;
}

.proof-check-grid label.is-disabled {
  opacity: .58;
}

.proof-check-point {
  grid-row: span 2;
}

.proof-check-point textarea {
  min-height: 116px;
  resize: vertical;
}

.proof-check-actions,
.proof-check-included {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-check-included {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  padding: 8px 10px;
}

.proof-check-warning {
  color: #b45309;
  font-weight: 800;
  margin-left: 8px;
}

.proof-check-result.empty {
  color: var(--muted);
  font-size: 13px;
}

.proof-check-result-card {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.proof-check-result-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.proof-check-result-head strong {
  color: #0f172a;
  display: block;
  font-size: 16px;
}

.proof-check-result-head span,
.proof-check-result-head small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.proof-check-score {
  align-items: center;
  background:
    linear-gradient(90deg, #dbeafe var(--proof-score), #f1f5f9 var(--proof-score));
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-width: 92px;
  padding: 8px 10px;
}

.proof-check-score b {
  color: #1d4ed8;
  font-size: 18px;
}

.proof-check-score span {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  margin: 0;
}

.proof-check-result-section {
  display: grid;
  gap: 5px;
}

.proof-check-insight-section {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 8px;
}

.proof-check-result-section h5 {
  color: #1e293b;
  font-size: 13px;
  margin: 0;
}

.proof-check-result-section p,
.proof-check-result-section ul {
  margin: 0;
}

.proof-check-result-section ul {
  padding-left: 18px;
}

.proof-check-insight-text {
  color: #172033;
  line-height: 1.45;
  white-space: pre-wrap;
}

.proof-check-evidence-list {
  display: grid;
  gap: 8px;
}

.proof-check-evidence-list article {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 8px;
}

.proof-check-evidence-list article strong,
.proof-check-evidence-list article span {
  display: block;
}

.proof-check-evidence-list article span {
  color: #475569;
  font-size: 12px;
  margin-top: 2px;
}

.proof-check-evidence-list article p {
  margin-top: 4px;
}

.proof-check-source-read {
  display: grid;
  gap: 8px;
}

.proof-check-source-read article {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #60a5fa;
  border-radius: 8px;
  padding: 8px 10px;
}

.proof-check-source-read article strong,
.proof-check-source-read article span {
  display: block;
}

.proof-check-source-read article span {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.proof-check-source-read article p {
  margin-top: 5px;
}

@media (max-width: 900px) {
  .proof-check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-check-point {
    grid-row: auto;
  }
}

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

.comm-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.comm-card h4 {
  font-size: 14px;
  margin: 0;
}

.comm-card-head span,
.comm-card label,
.comm-card small,
.comm-source-row em {
  color: var(--muted);
  font-size: 12px;
}

.comm-card label {
  display: grid;
  gap: 5px;
}

.comm-controls,
.comm-ai-actions,
.comm-import-actions,
.comm-library-actions,
.comm-viewer-actions,
.comm-findings-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comm-ai-actions {
  align-items: center;
}

.comm-viewer-actions {
  justify-content: flex-end;
  margin-top: -4px;
}

.comm-viewer-search {
  flex: 1 1 260px;
  min-width: 220px;
}

.comm-library-drop {
  min-height: 94px;
  padding: 18px 10px;
}

.comm-library-drop.drag-over {
  background: #eff6ff;
  border-color: var(--blue);
}

#commStatus,
.comm-pdf-status {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 9px;
}

#commStatus[data-status-tone="success"],
.comm-pdf-status[data-status-tone="success"] {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

#commStatus[data-status-tone="error"],
.comm-pdf-status[data-status-tone="error"] {
  background: #fff1f0;
  border-color: #fecaca;
  color: var(--red);
}

.comm-pdf-status[data-status-tone="pending"] {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.comm-source-list,
.comm-findings-inbox {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.comm-source-row {
  align-items: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px;
}

.comm-source-title-row {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.comm-source-row-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.comm-source-select {
  padding-top: 2px;
}

.comm-source-row strong,
.comm-source-row em,
.comm-source-row small {
  display: block;
}

.comm-finding {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.comm-finding.selected-row {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.comm-finding-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.comm-finding-main strong,
.comm-finding-main span,
.comm-finding-main p,
.comm-finding-main small {
  overflow-wrap: anywhere;
}

.comm-finding-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comm-finding-main p {
  margin: 0;
}

.comm-finding-main small {
  color: #475467;
}

.comm-finding-actions {
  align-content: start;
  display: grid;
  gap: 6px;
}

.comm-viewer {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-auto-rows: max-content;
  max-height: 520px;
  min-height: 220px;
  overflow: auto;
  padding: 10px;
}

.comm-viewer.phone-view {
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
  border: 8px solid #111827;
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-inline: auto;
  max-height: 680px;
  max-width: 430px;
  padding: 14px 10px 18px;
  width: min(100%, 430px);
}

.comm-viewer-loading,
.comparison-window-loading {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  box-shadow: inset 4px 0 0 #2563eb;
  color: #1e3a8a;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.comm-viewer-loading strong,
.comparison-window-loading strong {
  color: #1d4ed8;
  font-size: 13px;
}

.comm-viewer-loading span,
.comparison-window-loading span {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.comm-message {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px;
}

.comm-viewer.phone-view .comm-message {
  border-radius: 16px;
  box-sizing: border-box;
  flex: 0 0 auto;
  max-width: 84%;
  padding: 9px 10px;
  position: static;
  width: fit-content;
}

.comm-viewer.phone-view .comm-message.message-side-right {
  align-self: flex-end;
  justify-self: auto;
}

.comm-viewer.phone-view .comm-message.message-side-left {
  align-self: flex-start;
  justify-self: auto;
}

.comm-viewer.phone-view .comm-important-points,
.comm-viewer.phone-view .field-note,
.comm-viewer.phone-view .empty-small,
.comm-viewer.phone-view .comm-viewer-loading {
  align-self: stretch;
}

.comm-viewer.phone-view .comm-message header {
  gap: 4px 7px;
}

.comm-viewer.phone-view .comm-message p {
  font-size: 13px;
}

.comm-message.highlighted {
  border-color: #f59e0b;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.comm-message.important {
  border-color: #2563eb;
  box-shadow: inset 3px 0 0 #2563eb;
}

.comm-message header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.25;
}

.comm-message header span,
.comm-message time,
.comm-message small {
  color: var(--muted);
  font-size: 12px;
}

.comm-message h5,
.comm-message p {
  margin: 0;
}

.comm-message p {
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comm-message mark {
  background: #fde68a;
  border-radius: 3px;
  color: #111827;
  padding: 1px 2px;
}

.comm-important-points {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.comm-important-head,
.comm-important-point {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.comm-important-head span,
.comm-important-point span {
  color: var(--muted);
  font-size: 12px;
}

.comm-important-point {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  padding: 8px;
}

.comm-important-point p {
  color: #334155;
  font-size: 12px;
  margin: 4px 0 0;
}

.comm-important-actions {
  display: flex;
  flex: 0 0 300px;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.comm-important-actions select {
  flex: 1 1 100%;
  min-width: 220px;
}

.sms-file-viewer {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.sms-audit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.sms-viewer-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.sms-viewer-head strong,
.sms-viewer-head span {
  display: block;
}

.sms-viewer-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

.sms-viewer-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sms-viewer-actions .is-running {
  border-color: #b42318;
  color: #b42318;
}

.sms-match-count {
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 7px 10px;
}

.sms-capture-toggle {
  margin-left: auto;
  min-height: 32px;
}

.sms-audit-status {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.sms-audit-status[data-status-tone="running"] {
  border-color: #bfdbfe;
  box-shadow: inset 3px 0 0 #2563eb;
}

.sms-audit-status[data-status-tone="done"] {
  border-color: #bbf7d0;
  box-shadow: inset 3px 0 0 #047857;
}

.sms-audit-status[data-status-tone="warning"],
.sms-audit-status[data-status-tone="canceled"] {
  border-color: #fed7aa;
  box-shadow: inset 3px 0 0 #b54708;
}

.sms-audit-status-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.sms-audit-status-head strong {
  color: #111827;
  font-size: 13px;
}

.sms-audit-status-head span {
  background: #eef1f5;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.sms-audit-progress {
  background: #eef1f5;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.sms-audit-progress span {
  background: #2563eb;
  display: block;
  height: 100%;
  transition: width 160ms ease;
  width: 0%;
}

.sms-audit-status[data-status-tone="done"] .sms-audit-progress span {
  background: #047857;
}

.sms-audit-status[data-status-tone="warning"] .sms-audit-progress span,
.sms-audit-status[data-status-tone="canceled"] .sms-audit-progress span {
  background: #b54708;
}

.sms-audit-status-grid {
  display: grid;
  gap: 4px;
}

.sms-audit-status-grid span {
  color: #475467;
  font-size: 12px;
  line-height: 1.35;
}

.sms-audit-status-grid span:last-child {
  color: #667085;
  font-weight: 800;
}

.sms-meaning-results {
  display: grid;
  gap: 8px;
}

.sms-meaning-results[hidden] {
  display: none;
}

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

.sms-meaning-head strong,
.sms-meaning-head span {
  display: block;
}

.sms-meaning-head strong {
  color: #111827;
  font-size: 13px;
}

.sms-meaning-head span {
  color: var(--muted);
  font-size: 12px;
}

.sms-meaning-result {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  display: grid;
  gap: 7px;
  padding: 9px;
  text-align: left;
}

.sms-meaning-result:hover {
  border-color: #2563eb;
}

.sms-meaning-result strong,
.sms-meaning-result b,
.sms-meaning-result span {
  display: block;
}

.sms-meaning-result strong {
  color: #111827;
  font-size: 12px;
}

.sms-meaning-result b {
  color: #047857;
  font-size: 12px;
}

.sms-meaning-result span {
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.sms-meaning-result mark.sms-result-highlight {
  background: #fde68a;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  color: #111827;
  font-weight: 700;
  padding: 0 2px;
}

.sms-attached-events {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
}

.sms-attached-events span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.sms-attached-events.empty {
  color: #667085;
  font-size: 12px;
}

.sms-attach-status {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #065f46;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.sms-attach-status[hidden] {
  display: none;
}

.sms-attach-status strong,
.sms-attach-status span {
  display: block;
}

.sms-attach-status strong {
  font-size: 13px;
}

.sms-attach-status span {
  color: #047857;
  font-size: 12px;
  margin-top: 2px;
}

.sms-capture-toggle.disabled {
  opacity: 0.55;
}

.sms-full-text-viewer {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-height: 360px;
  min-height: 220px;
  overflow: auto;
  padding: 12px;
  user-select: text;
  white-space: pre-wrap;
}

.sms-full-text-viewer mark {
  background: #fef3c7;
  border-radius: 3px;
  color: #111827;
  padding: 0 2px;
}

.sms-full-text-viewer mark.active-match {
  background: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
  color: #111827;
}

.sms-audit-intent {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px;
}

.sms-audit-suggestions {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.sms-audit-suggestion {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.sms-audit-suggestion-head {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.sms-audit-suggestion-head strong,
.sms-audit-suggestion-head span {
  display: block;
}

.sms-audit-suggestion-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

.sms-audit-suggestion-head b {
  background: #ecfdf3;
  border-radius: 999px;
  color: #047857;
  font-size: 12px;
  padding: 5px 8px;
  white-space: nowrap;
}

.sms-audit-suggestion p {
  background: #f8fafc;
  border-left: 3px solid var(--blue);
  color: #1f2937;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-height: 170px;
  overflow: auto;
  padding: 8px;
  white-space: pre-wrap;
}

.sms-audit-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sms-audit-reasons span {
  background: #eef1f5;
  border-radius: 999px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
}

.bucket-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

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

.supabase-step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 10px;
}

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

.supabase-step-head strong {
  color: var(--text);
}

.supabase-step-head span {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
}

.supabase-box strong,
.google-box strong {
  color: var(--text);
}

.supabase-box p,
.google-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.supabase-box code,
.google-box code {
  background: #eef1f5;
  border-radius: 4px;
  color: #344054;
  padding: 1px 4px;
}

.supabase-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.supabase-grid label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 5px;
}

.supabase-key-input {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.masked-non-password {
  -webkit-text-security: disc;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.supabase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supabase-collab-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.cloud-sync-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
}

#supabaseStatus,
#supabaseStatusPill {
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #344054;
  padding: 7px 9px;
}

#supabaseStatusPill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

#supabaseStatus[data-status-tone="success"],
#supabaseStatusPill[data-status-tone="success"] {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

#supabaseStatus[data-status-tone="error"],
#supabaseStatusPill[data-status-tone="error"] {
  background: #fff1f0;
  border-color: #fecaca;
  color: var(--red);
}

.bucket-card-head,
.bucket-doc,
.bucket-doc-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.bucket-card-head {
  justify-content: space-between;
}

.bucket-card-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bucket-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.bucket-access-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 0.45fr) minmax(180px, 1fr) minmax(220px, 0.8fr);
  padding: 9px;
}

.bucket-access-panel label,
.bucket-users-box {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.bucket-user-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bucket-access-pill,
.bucket-user-chip {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
}

.bucket-access-pill.project {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

.bucket-access-pill.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.bucket-user-chip button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0 1px;
}

.bucket-add-user-row,
.bucket-upload-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.bucket-docs-panel {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.bucket-docs-panel summary {
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.bucket-upload {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #9aa7b8;
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
}

.bucket-upload input {
  display: none;
}

.bucket-docs {
  display: grid;
  gap: 6px;
}

.bucket-doc {
  align-items: start;
  background: #f8fafc;
  border-radius: 6px;
  justify-content: space-between;
  padding: 8px;
}

.bucket-doc > div:first-child,
.evidence-item > div:first-child {
  flex: 1;
  min-width: 0;
}

.bucket-doc strong,
.bucket-doc span {
  display: block;
}

.bucket-doc span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.file-rename-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(140px, 1fr) auto;
  margin-top: 7px;
  max-width: 520px;
}

.file-rename-row input {
  min-height: 32px;
  padding: 6px 8px;
}

.mapping-fields {
  display: grid;
  gap: 10px;
}

.mapping-fields label,
.import-options label,
.date-filter,
.edit-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 5px;
  min-width: 0;
}

.mapping-fields span {
  color: var(--text);
  font-weight: 700;
}

select,
input[type="search"],
input[type="date"],
input[type="text"],
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 38px;
  padding: 0 10px;
}

.edit-form select,
.edit-form input[type="search"],
.edit-form input[type="date"],
.edit-form input[type="text"],
.edit-form textarea {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

select[multiple] {
  min-height: 120px;
  padding: 6px;
}

textarea {
  min-height: 88px;
  padding: 9px 10px;
  resize: vertical;
}

.checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.edit-form label.checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.checkbox-row input {
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.add-person-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.timeline-checkbox-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  max-height: 190px;
  overflow: auto;
}

.edit-field {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 5px;
}

.edit-field-label {
  color: var(--muted);
}

.timeline-select-dropdown {
  position: relative;
}

.timeline-select-dropdown summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  padding: 0 10px;
}

.timeline-select-dropdown summary::-webkit-details-marker {
  display: none;
}

.timeline-select-dropdown summary::after {
  color: var(--muted);
  content: "Open";
  font-size: 11px;
  font-weight: 800;
  margin-left: 10px;
  text-transform: uppercase;
}

.timeline-select-dropdown[open] summary::after {
  content: "Close";
}

.timeline-select-dropdown .timeline-checkbox-list {
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
  margin-top: 6px;
  position: absolute;
  width: 100%;
  z-index: 9;
}

.timeline-checkbox-row {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: #243041;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: auto auto minmax(0, 1fr);
  min-height: 38px;
  padding: 8px 10px;
}

.timeline-checkbox-row:last-child {
  border-bottom: 0;
}

.timeline-checkbox-row input {
  height: 16px;
  width: 16px;
}

.timeline-checkbox-row .timeline-option-swatch {
  background: var(--timeline-option-color);
  border-radius: 4px;
  height: 18px;
  width: 24px;
}

.timeline-checkbox-row .timeline-option-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-checkbox-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-people-list {
  display: grid;
  gap: 6px;
}

.event-tags-editor,
.event-people-editor,
.event-documents-editor,
.event-contradiction-editor,
.event-details-editor {
  background: #f8fbff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.event-tags-editor label,
.event-people-editor label,
.event-documents-editor label,
.event-contradiction-editor label,
.event-details-editor label {
  gap: 8px;
}

.event-tags-title,
.event-people-title,
.event-documents-title,
.event-contradiction-title,
.event-details-title {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.event-people-editor {
  background: #fbfff8;
  border-color: #86efac;
}

.event-documents-editor {
  background: #f8fbff;
  border-color: #93c5fd;
}

.event-contradiction-editor {
  background: #fff7ed;
  border-color: #fdba74;
}

.event-details-editor {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.event-person-row,
.event-document-row,
.event-tag-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.event-person-row {
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 180px) auto;
}

.event-person-role,
.event-person-role select {
  min-width: 0;
  width: 100%;
}

.event-person-row span,
.event-document-row span,
.event-tag-row span {
  color: var(--text);
  font-weight: 800;
}

.event-document-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-document-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-document-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-document-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.event-document-list {
  display: grid;
  gap: 6px;
}

.document-search-row {
  display: grid;
}

.event-document-search-results {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
}

.event-document-search-result {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.event-document-search-result span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-document-search-result strong,
.event-document-search-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-document-search-result small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.add-document-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.add-document-label {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .add-document-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-document-actions {
    justify-content: flex-start;
  }
}

.event-tag-list {
  display: grid;
  gap: 6px;
}

.event-tag-tools {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.event-tag-search {
  min-width: 0;
}

.event-tag-search input {
  width: 100%;
}

.event-tag-suggest-button,
.event-tag-ai-row button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  white-space: nowrap;
}

.event-tag-suggest-button svg,
.event-tag-ai-row button svg,
.event-tag-ai-loading svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.event-tag-search-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin: -3px 0 0;
}

.add-tag-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.event-tag-ai-results {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.event-tag-ai-results[hidden] {
  display: none;
}

.event-tag-ai-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: space-between;
}

.event-tag-ai-heading strong {
  color: #1e3a8a;
  font-size: 12px;
}

.event-tag-ai-heading span,
.event-tag-ai-empty span {
  color: var(--muted);
  font-size: 11px;
}

.event-tag-ai-list {
  display: grid;
  gap: 6px;
}

.event-tag-ai-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.event-tag-ai-row > div,
.event-tag-ai-empty {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-tag-ai-row strong,
.event-tag-ai-row span {
  overflow-wrap: anywhere;
}

.event-tag-ai-row strong,
.event-tag-ai-empty strong {
  color: var(--text);
  font-size: 12px;
}

.event-tag-ai-row span {
  color: #475569;
  font-size: 11px;
}

.event-tag-ai-empty.error strong,
.event-tag-ai-empty.error span {
  color: #b91c1c;
}

.event-tag-ai-loading {
  align-items: center;
  color: #1d4ed8;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
}

@media (max-width: 720px) {
  .event-tag-tools,
  .event-tag-ai-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-tag-suggest-button,
  .event-tag-ai-row button {
    justify-self: start;
  }
}

.tag-picker-preview strong {
  color: #334155;
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.tag-picker-preview span {
  display: block;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  margin: -6px 0 0;
}

.evidence-editor {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.evidence-editor h3 {
  font-size: 14px;
  margin: 0;
}

.evidence-drop {
  align-items: center;
  border: 1px dashed #9aa7b8;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 18px 10px;
  text-align: center;
}

.evidence-drop.drag-over {
  background: #eff6ff;
  border-color: var(--blue);
}

.evidence-drop input {
  display: none;
}

.evidence-drop span {
  color: var(--blue);
  font-weight: 800;
}

.evidence-drop small {
  color: var(--muted);
}

.communication-entry,
.sms-entry {
  display: grid;
  gap: 8px;
}

.sms-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

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

.sms-picker h4 {
  font-size: 13px;
  margin: 0;
}

.sms-upload-button {
  align-items: center;
  display: inline-flex;
}

.sms-upload-button input {
  display: none;
}

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

.sms-search-modes label {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  padding: 8px;
}

.sms-search-modes input {
  height: 16px;
  width: 16px;
}

.sms-match-progress-panel {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  box-shadow: inset 3px 0 0 #2563eb;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.sms-match-progress-panel[hidden] {
  display: none;
}

.sms-match-progress-panel[data-status-tone="done"] {
  border-color: #bbf7d0;
  box-shadow: inset 3px 0 0 #047857;
}

.sms-match-progress-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.sms-match-progress-head strong {
  color: #111827;
  font-size: 13px;
}

.sms-match-progress-head span {
  background: #eef1f5;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.sms-match-progress-bar {
  background: #eef1f5;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.sms-match-progress-bar span {
  background: #2563eb;
  display: block;
  height: 100%;
  transition: width 160ms ease;
  width: 0%;
}

.sms-match-progress-panel[data-status-tone="done"] .sms-match-progress-bar span {
  background: #047857;
}

.sms-message-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  max-height: 280px;
  overflow: auto;
}

.sms-message-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  color: #344054;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px;
}

.sms-message-row:last-child {
  border-bottom: 0;
}

.sms-message-row input {
  margin-top: 3px;
}

.sms-message-row strong,
.sms-message-row b,
.sms-message-row em {
  display: block;
}

.sms-message-row strong {
  color: var(--text);
  font-size: 12px;
}

.sms-score {
  color: var(--green);
  font-size: 12px;
  margin-top: 3px;
}

.sms-message-row em {
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
  margin-top: 3px;
  white-space: pre-wrap;
}

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

.evidence-preview-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  container-name: evidence-preview;
  container-type: inline-size;
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px;
  user-select: none;
}

.evidence-preview-panel[hidden] {
  display: none;
}

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

.evidence-preview-head strong,
.evidence-preview-head span {
  display: block;
}

.evidence-preview-head strong {
  color: #111827;
  font-size: 13px;
}

.evidence-preview-head span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.evidence-preview-head-actions,
.evidence-preview-proof-nav {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.evidence-full-preview-button {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.evidence-full-preview-button svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.evidence-preview-proof-nav {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px;
}

.evidence-preview-proof-nav button {
  min-width: 30px;
}

.evidence-proof-multi-controls {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  padding: 2px;
}

.evidence-proof-multi-controls.active {
  background: #ecfdf5;
  border-color: #86efac;
}

.evidence-proof-multi-controls > span {
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  padding: 0 4px;
  white-space: nowrap;
}

.evidence-preview-attachment-strip {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.evidence-preview-attachment-strip-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.evidence-preview-attachment-strip-head strong {
  color: #0f172a;
  font-size: 12px;
}

.evidence-preview-attachment-strip-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.evidence-preview-attachment-strip-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.evidence-preview-mini-attachment {
  align-items: start;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  flex: 0 0 178px;
  gap: 2px;
  padding: 7px;
  text-align: left;
}

.evidence-preview-mini-attachment:hover,
.evidence-preview-mini-attachment:focus-visible {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.evidence-preview-mini-attachment.active {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: inset 4px 0 0 #2563eb;
  cursor: default;
}

.evidence-preview-mini-attachment span {
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-preview-mini-attachment strong {
  font-size: 12px;
  line-height: 1.2;
}

.evidence-preview-mini-attachment em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.evidence-preview-layout {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
}

.evidence-preview-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.evidence-preview-sidebar {
  display: grid;
  gap: 10px;
  min-width: 0;
  position: sticky;
  top: 8px;
}

@container evidence-preview (max-width: 720px) {
  .evidence-preview-head {
    flex-wrap: wrap;
  }

  .evidence-preview-head-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .evidence-preview-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .evidence-preview-sidebar {
    position: static;
  }

  .evidence-preview-main > .evidence-conversation {
    max-height: min(48vh, 440px);
    overflow: auto;
    padding-right: 4px;
  }

  .evidence-preview-panel .evidence-preview-screen-notes .screen-note-editor {
    font-size: min(var(--screen-note-font-size, 40px), 32px);
    max-height: 280px;
    min-height: 170px;
  }
}

.evidence-preview-screen-notes {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  display: grid;
  gap: 8px;
  padding: 10px;
  user-select: text;
}

.evidence-preview-picture-ocr {
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  overflow: hidden;
  user-select: text;
}

.evidence-preview-picture-ocr-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 10px;
}

.evidence-preview-picture-ocr-summary::-webkit-details-marker {
  display: none;
}

.evidence-preview-picture-ocr-summary::after {
  color: #2563eb;
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  order: 3;
}

.evidence-preview-picture-ocr[open] > .evidence-preview-picture-ocr-summary::after {
  content: "−";
}

.evidence-preview-picture-ocr-summary > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.evidence-preview-picture-ocr-summary strong {
  color: #1e3a8a;
  font-size: 13px;
}

.evidence-preview-picture-ocr-summary small,
.evidence-preview-picture-ocr-summary em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.evidence-preview-picture-ocr-summary em {
  margin-left: auto;
  white-space: nowrap;
}

.evidence-preview-picture-ocr-body {
  border-top: 1px solid #dbeafe;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.picture-ocr-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.picture-ocr-selection-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.picture-ocr-selection-stage {
  border-radius: 8px;
  display: inline-block;
  justify-self: center;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.picture-ocr-selection-stage > .evidence-preview-image {
  display: block;
}

.picture-ocr-selection-stage.selecting {
  cursor: crosshair;
  touch-action: none;
}

.picture-ocr-selection-stage.selecting > .evidence-preview-image {
  cursor: crosshair;
  user-select: none;
}

.picture-ocr-selection-box {
  background: rgba(37, 99, 235, 0.16);
  border: 3px solid #2563eb;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.picture-ocr-selection-box[hidden] {
  display: none;
}

.evidence-preview-picture-ocr-head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.evidence-preview-picture-ocr-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-preview-picture-ocr-title-row .small-button {
  min-height: 26px;
  padding: 4px 9px;
}

.evidence-preview-picture-ocr-head strong {
  color: #1e3a8a;
  font-size: 13px;
}

.evidence-preview-picture-ocr-head span,
.evidence-preview-picture-ocr > p {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.evidence-preview-picture-ocr-head span {
  text-align: right;
}

.evidence-preview-picture-ocr > p {
  margin: 0;
}

.evidence-preview-picture-ocr-status {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.evidence-preview-picture-ocr textarea {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 7px;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-height: 340px;
  min-height: 220px;
  overflow: auto;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.evidence-preview-picture-ocr textarea:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  outline: none;
}

.picture-ocr-speaker-panel {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 7px;
  display: grid;
  gap: 9px;
  padding: 9px;
}

.picture-ocr-speaker-panel[hidden] {
  display: none;
}

.picture-ocr-speaker-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.picture-ocr-speaker-head > div {
  display: grid;
  gap: 2px;
}

.picture-ocr-speaker-head strong {
  color: #0f172a;
  font-size: 12px;
}

.picture-ocr-speaker-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.picture-ocr-speaker-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.picture-ocr-speaker-fields label {
  color: #334155;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 4px;
}

.picture-ocr-speaker-fields input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  font: inherit;
  min-width: 0;
  padding: 7px 8px;
}

@media (max-width: 720px) {
  .picture-ocr-speaker-fields {
    grid-template-columns: 1fr;
  }
}

.evidence-preview-screen-notes-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.evidence-preview-screen-notes-head strong,
.evidence-preview-screen-notes-head span {
  display: block;
}

.evidence-preview-screen-notes-head strong {
  color: #0f172a;
  font-size: 13px;
}

.evidence-preview-screen-notes-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-preview-screen-notes-title-row .small-button {
  min-height: 26px;
  padding: 4px 9px;
}

.screen-note-format-button {
  align-items: center;
  background: #fffdf0;
  border: 1px solid #eab308;
  border-radius: 5px;
  color: #854d0e;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.screen-note-format-button:hover {
  background: #fef9c3;
}

.screen-note-format-button svg {
  fill: none;
  height: 17px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.evidence-preview-screen-notes-head span {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.evidence-preview-screen-notes-head label {
  color: #1d4ed8;
  display: grid;
  flex: 0 0 96px;
  font-size: 11px;
  font-weight: 900;
  gap: 3px;
}

.evidence-preview-screen-notes-head select {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 6px;
}

.evidence-preview-screen-notes-actions {
  align-items: end;
  display: flex;
  gap: 6px;
}

.evidence-preview-screen-notes-status {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  justify-self: start;
}

.evidence-preview-screen-notes .screen-note-editor {
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #0f172a;
  font-size: var(--screen-note-font-size, 40px);
  font-weight: 900;
  line-height: 1.18;
  min-height: 280px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  width: 100%;
  word-break: break-word;
}

.evidence-preview-screen-notes .screen-note-editor:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  outline: none;
}

.screen-note-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-size: max(18px, calc(var(--screen-note-font-size, 40px) * 0.5));
  font-weight: 800;
}

.screen-note-highlight {
  background: var(--screen-note-highlight, #fef08a);
  border-radius: 3px;
  color: inherit;
  padding: 0 1px;
}

.evidence-preview-image,
.evidence-preview-video {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
}

.evidence-preview-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: min(70vh, 720px);
  width: 100%;
}

.evidence-preview-audio {
  justify-self: start;
  max-width: 520px;
  width: 100%;
}

.evidence-preview-panel:has(.evidence-preview-audio) {
  gap: 7px;
  padding: 8px;
}

.evidence-preview-panel:has(.evidence-preview-audio) .evidence-preview-head {
  align-items: center;
}

.evidence-preview-panel:has(.evidence-preview-audio) .evidence-preview-attachment-strip {
  padding: 6px;
}

.evidence-preview-panel:has(.evidence-preview-audio) .event-readonly-transcript {
  padding: 8px;
}

.evidence-preview-panel:has(.evidence-preview-audio) .readonly-transcript-list,
.evidence-preview-panel:has(.evidence-preview-audio) .readonly-transcript-text {
  max-height: 220px;
}

@media (max-width: 900px) {
  .evidence-preview-layout {
    grid-template-columns: 1fr;
  }

  .evidence-preview-sidebar {
    position: static;
  }
}

.event-readonly-transcript {
  background: #fff;
  border: 1px solid #cfe0f5;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.event-readonly-transcript-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.event-readonly-transcript-head strong,
.event-readonly-transcript-head span {
  display: block;
}

.event-readonly-transcript-head em,
.event-readonly-transcript-head span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.readonly-transcript-list {
  display: grid;
  gap: 5px;
  max-height: 360px;
  overflow: auto;
}

.readonly-transcript-row {
  border-bottom: 1px solid #e5edf7;
  display: grid;
  gap: 8px;
  grid-template-columns: 64px 150px minmax(0, 1fr);
  padding: 6px 0;
}

.readonly-transcript-row.playing {
  background: #eff6ff;
  box-shadow: inset 4px 0 0 #2563eb;
  padding-left: 8px;
}

.readonly-transcript-time {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 7px;
  text-align: center;
}

.readonly-transcript-time:hover,
.readonly-transcript-time:focus-visible {
  background: #dbeafe;
  outline: none;
}

.readonly-transcript-row strong {
  color: #111827;
  font-size: 12px;
}

.readonly-transcript-row p {
  color: #1f2937;
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  white-space: pre-wrap;
}

.readonly-transcript-highlight {
  background: var(--readonly-highlight-color, #fef08a);
  border-radius: 3px;
  padding: 0 2px;
}

.readonly-transcript-text {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.readonly-transcript-extras {
  display: grid;
  gap: 7px;
}

.readonly-transcript-extra {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 7px;
}

.readonly-transcript-extra summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
}

.readonly-transcript-extra summary strong {
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 11px;
  padding: 2px 7px;
}

.readonly-transcript-extra p {
  color: #1f2937;
  font-size: 12px;
  line-height: 1.35;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.readonly-transcript-extra-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.readonly-transcript-extra-card {
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 7px;
  display: grid;
  gap: 7px;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 7px;
}

.readonly-transcript-extra-card strong {
  color: #111827;
  display: block;
  font-size: 12px;
}

.readonly-transcript-extra-card span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.evidence-preview-text {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  user-select: text;
  white-space: pre-wrap;
}

.evidence-item {
  align-items: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.evidence-item.preview-active {
  border-left-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.evidence-item-inline-preview {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.evidence-name-button {
  background: transparent;
  border: 0;
  color: #111827;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.evidence-name-button:hover {
  color: #2563eb;
  text-decoration: underline;
}

.evidence-item strong,
.evidence-item span {
  display: block;
}

.evidence-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.evidence-text {
  background: #fff;
  border-left: 3px solid var(--blue);
  margin-top: 8px !important;
  padding: 8px;
  white-space: pre-wrap;
}

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

.evidence-preview-panel > .evidence-conversation {
  margin-top: 0;
}

.evidence-message {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 7px;
  display: grid;
  gap: 6px;
  padding: 8px 9px;
}

.evidence-message.outgoing {
  border-left-color: #2563eb;
}

.evidence-message.incoming {
  border-left-color: #0f8b6f;
}

.evidence-message-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.evidence-message-remove {
  margin-left: auto;
}

.evidence-item .evidence-message-meta strong,
.evidence-item .evidence-message-meta span,
.evidence-item .evidence-message-meta time,
.evidence-preview-panel .evidence-message-meta strong,
.evidence-preview-panel .evidence-message-meta span,
.evidence-preview-panel .evidence-message-meta time {
  display: inline-flex;
  margin-top: 0;
}

.evidence-message-meta strong {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.evidence-message-meta span,
.evidence-message-meta time {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.evidence-message p {
  color: #243041;
  font-size: 13px;
  line-height: 1.42;
  margin: 0;
  user-select: text;
  white-space: pre-wrap;
}

.evidence-proof-highlight {
  background: #bbf7d0;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.28);
  color: #052e16;
  font-weight: 800;
  padding: 0 2px;
}

.evidence-highlight-notes {
  display: grid;
  gap: 6px;
}

.evidence-highlight-notes div {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 6px;
  padding: 7px 9px;
}

.evidence-highlight-notes strong,
.evidence-highlight-notes span {
  display: block;
}

.evidence-highlight-notes strong {
  color: #14532d;
  font-size: 12px;
}

.evidence-highlight-notes span {
  color: #14532d;
  font-size: 12px;
  margin-top: 2px;
}

.evidence-highlight-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.evidence-highlight-notes-mini {
  margin-top: 7px;
}

.evidence-highlight-notes-mini div {
  padding: 6px 8px;
}

.evidence-highlight-notes-mini strong {
  max-height: 2.8em;
  overflow: hidden;
}

.evidence-highlight-section-list {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding-left: 16px;
}

.evidence-highlight-section-list li {
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.evidence-highlight-section-list li span {
  color: #166534;
  display: block;
  font-weight: 800;
  margin-bottom: 2px;
}

.evidence-conversation.compact .evidence-message:nth-of-type(n+3) p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evidence-conversation.summary .evidence-message p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evidence-conversation.summary .evidence-message {
  margin-top: 4px;
}

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

.small-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.import-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.toolbar {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.toolbar .search-box {
  flex: 1 1 260px;
  min-width: 220px;
}

.toolbar select {
  flex: 1 1 138px;
  min-width: 122px;
}

.red-flag-filter-toggle,
.contradiction-filter-toggle,
.relationship-filter-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.timeline-flag-filter-menu {
  flex: 0 0 auto;
  min-width: 106px;
  position: relative;
}

.timeline-flag-filter-menu > summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  list-style: none;
  min-height: 38px;
  padding: 0 10px;
  user-select: none;
  white-space: nowrap;
  width: 100%;
}

.timeline-flag-filter-menu > summary::-webkit-details-marker {
  display: none;
}

.timeline-flag-filter-menu > summary::after {
  color: #64748b;
  content: "v";
  font-size: 10px;
}

.timeline-flag-filter-menu[open] > summary {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.timeline-flag-filter-options {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
  display: grid;
  gap: 6px;
  left: 0;
  min-width: 170px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 30;
}

.timeline-flag-filter-options .red-flag-filter-toggle,
.timeline-flag-filter-options .contradiction-filter-toggle,
.timeline-flag-filter-options .relationship-filter-toggle {
  justify-content: flex-start;
  width: 100%;
}

.timeline-flag-filter-options b {
  font-size: 12px;
}

.red-flag-filter-toggle {
  color: #991b1b;
}

.contradiction-filter-toggle {
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.red-flag-filter-toggle input,
.contradiction-filter-toggle input,
.relationship-filter-toggle input {
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.red-flag-filter-toggle:has(input:checked) {
  background: #fee2e2;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.contradiction-filter-toggle:has(input:checked) {
  background: #fff7ed;
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12);
}

.relationship-filter-toggle {
  color: var(--relationship-color, #2563eb);
  font-size: 12px;
  font-weight: 900;
}

.relationship-filter-toggle span {
  color: var(--relationship-color, #2563eb);
}

.relationship-filter-toggle:has(input:checked) {
  background: color-mix(in srgb, var(--relationship-color, #2563eb) 12%, white);
  border-color: var(--relationship-color, #2563eb);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--relationship-color, #2563eb) 18%, transparent);
}

.toolbar .toolbar-auto-place-toggle {
  flex: 0 0 auto;
  min-height: 38px;
}

.timeline-tile-size-control {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #344054;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  min-height: 38px;
  padding: 5px 7px;
  white-space: nowrap;
}

.timeline-tile-size-control select {
  border: 0;
  min-height: 28px;
  min-width: 74px;
  padding: 0 4px;
}

.timeline-tile-size-control.compact {
  min-height: 34px;
}

.toolbar .date-filter {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-grid;
  flex: 0 0 142px;
  gap: 4px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 38px;
  padding: 0 7px;
}

.toolbar .date-filter input {
  border: 0;
  min-height: 30px;
  min-width: 0;
  padding: 0;
}

.timeline-argument-controls {
  align-items: center;
  background: #f8fbff;
  border-bottom: 1px solid #c7d7fe;
  display: none;
  gap: 8px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(260px, auto) auto auto minmax(220px, 1fr);
  padding: 9px 12px;
}

.timeline-fullscreen .timeline-argument-controls {
  display: grid;
}

.timeline-mode-toggle,
.timeline-argument-checks,
.timeline-argument-view-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-mode-toggle label,
.timeline-argument-checks label,
.timeline-argument-view-options label {
  align-items: center;
  background: #fff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1f2937;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  padding: 5px 8px;
  white-space: nowrap;
}

.timeline-mode-toggle label:has(input:checked),
.timeline-argument-view-options label:has(input:checked) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.timeline-argument-summary {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
}

.timeline-argument-summary strong {
  color: #1d4ed8;
}

.timeline-control-frame {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  position: sticky;
  top: 0;
  z-index: 18;
}

.view-template-bar {
  align-items: center;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  display: none;
  gap: 8px;
  grid-template-columns: minmax(180px, 260px) auto minmax(0, 1fr);
  padding: 8px 12px;
}

.timeline-fullscreen .view-template-bar {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(150px, 210px) auto minmax(480px, 1fr) auto;
  padding: 6px 10px;
}

.timeline-fullscreen .view-template-bar .timeline-playback-group {
  justify-content: flex-end;
}

.view-template-tools {
  justify-self: start;
  position: relative;
}

.view-template-tools summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  min-height: 34px;
  padding: 0 10px;
}

.view-template-tools summary::-webkit-details-marker {
  display: none;
}

.view-template-actions {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.14);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  margin-top: 8px;
  min-width: min(640px, calc(100vw - 48px));
  padding: 10px;
  position: absolute;
  z-index: 12;
}

.view-status-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.timeline-fullscreen .view-status-group {
  justify-content: flex-start;
}

.search-box input {
  width: 100%;
}

.zoom-row {
  align-items: center;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 12px;
}

.timeline-options-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.timeline-date-jump {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-grid;
  gap: 5px;
  grid-template-columns: 76px 82px 58px auto auto;
  min-height: 38px;
  padding: 4px 5px;
}

.timeline-date-jump input,
.timeline-date-jump select {
  min-height: 30px;
  min-width: 0;
  padding: 4px 6px;
  width: 100%;
}

.timeline-year-picker {
  min-width: 0;
  position: relative;
  width: 100%;
}

.timeline-year-picker #timelineJumpYear {
  padding-right: 25px;
}

.timeline-date-jump .timeline-year-picker-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: #344054;
  display: inline-flex;
  justify-content: center;
  min-height: 22px;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 4px;
  width: 22px;
}

.timeline-date-jump .timeline-year-picker-toggle:hover,
.timeline-date-jump .timeline-year-picker-toggle[aria-expanded="true"] {
  background: #eff6ff;
  color: var(--blue);
}

.timeline-year-options {
  background: #fff;
  border: 1px solid #b9c8dc;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.2);
  max-height: min(360px, 55vh);
  min-width: 190px;
  overflow-y: auto;
  padding: 5px;
  position: fixed;
  z-index: 120;
}

.timeline-year-options[hidden] {
  display: none;
}

.timeline-year-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 46px minmax(76px, 1fr);
  min-height: 38px;
  padding: 5px 7px;
  text-align: left;
  width: 100%;
}

.timeline-year-option:hover,
.timeline-year-option:focus-visible,
.timeline-year-option[aria-selected="true"] {
  background: #eaf2ff;
  color: #0b4aa2;
}

.timeline-year-option strong {
  font-size: 13px;
  grid-row: 1 / 3;
}

.timeline-year-option span {
  color: #475467;
  font-size: 11px;
  line-height: 1.2;
}

.timeline-year-option i {
  background: #2f6fed;
  border-radius: 999px;
  display: block;
  height: 3px;
  max-width: 100%;
  min-width: 4px;
}

.timeline-year-options-empty {
  color: #667085;
  font-size: 12px;
  margin: 0;
  padding: 9px;
  white-space: nowrap;
}

.timeline-date-jump button {
  min-height: 30px;
  padding: 4px 9px;
  white-space: nowrap;
}

.timeline-mini-map {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  min-height: 42px;
  padding: 6px 12px;
}

.timeline-mini-map[hidden] {
  display: none;
}

.timeline-mini-map-label {
  color: #344054;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.15;
  min-width: 64px;
}

.timeline-mini-map-label strong {
  font-size: 11px;
}

.timeline-mini-map-label:last-child {
  text-align: right;
}

.timeline-mini-map-track {
  background: #e7edf5;
  border: 1px solid #c8d3e1;
  border-radius: 4px;
  cursor: pointer;
  height: var(--timeline-mini-map-height, 28px);
  min-height: 28px;
  overflow: hidden;
  position: relative;
}

.timeline-mini-map-track::before {
  background: #9aabc0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
}

.timeline-mini-map-window {
  background: rgba(47, 111, 237, 0.12);
  border: 2px solid #2f6fed;
  border-radius: 3px;
  bottom: 2px;
  pointer-events: none;
  position: absolute;
  top: 2px;
  z-index: 2;
}

.timeline-mini-map-marker {
  background: var(--mini-marker-color, #475467);
  border: 0;
  border-radius: 1px;
  cursor: pointer;
  height: 8px;
  min-height: 0;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 3px;
  z-index: 3;
}

.timeline-mini-map-marker:hover,
.timeline-mini-map-marker:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mini-marker-color, #475467);
  height: 12px;
  width: 5px;
  z-index: 5;
}

@media (max-width: 760px) {
  .timeline-date-jump {
    grid-template-columns: 72px 78px 54px auto;
  }

  .timeline-date-jump #timelineJumpTodayBtn {
    grid-column: 1 / -1;
  }

  .timeline-mini-map {
    grid-template-columns: 42px minmax(140px, 1fr) 42px;
    padding-inline: 7px;
  }
}

.timeline-auto-place-group {
  display: none;
}

.timeline-fullscreen .timeline-auto-place-group {
  display: flex;
}

.timeline-playback-group {
  display: none;
}

.timeline-fullscreen .timeline-playback-group {
  display: flex;
}

.zoom-button {
  background: #e8edf6;
  color: #1f2937;
  white-space: nowrap;
}

.zoom-button.active {
  background: var(--text);
  color: #fff;
}

.timeline-playback-controls {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  padding: 5px 7px;
  white-space: nowrap;
}

.timeline-fullscreen .timeline-playback-controls {
  min-height: 34px;
  padding: 3px 6px;
}

.timeline-fullscreen .timeline-playback-controls select {
  min-height: 26px;
  padding-left: 6px;
}

.timeline-fullscreen .timeline-playback-controls .small-button {
  min-height: 26px;
  padding: 0 8px;
}

.timeline-playback-controls span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-playback-controls select {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 0 24px 0 8px;
}

.timeline-playback-controls button.active {
  background: var(--text);
  color: #fff;
}

.timeline-zoom-readout {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.timeline-fullscreen .timeline-zoom-control-button,
.timeline-fullscreen .timeline-zoom-fit-button,
.timeline-fullscreen .timeline-zoom-readout {
  min-height: 34px;
}

.timeline-fullscreen .timeline-zoom-control-button {
  width: 34px;
}

.fullscreen-date-range {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.timeline-fullscreen .fullscreen-date-range {
  justify-self: start;
}

.fullscreen-date-range b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.fullscreen-date-range i {
  color: var(--muted);
  font-style: normal;
}

.fullscreen-date-range span {
  color: #111827;
}

.fullscreen-date-range input {
  border: 0;
  color: #111827;
  font: inherit;
  font-weight: 900;
  min-height: 30px;
  min-width: 0;
  padding: 0;
  width: 82px;
}

.fullscreen-date-range input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.auto-place-top-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243041;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.auto-place-top-toggle input {
  margin: 0;
  width: auto;
}

.auto-place-top-toggle:has(input:disabled) {
  color: var(--muted);
  opacity: 0.7;
}

.timeline-stable-toggle {
  border-color: #bfd0ff;
}

.timeline-stable-toggle strong {
  color: #1d4ed8;
}

.timeline {
  --timeline-scale-sticky-height: 36px;
  background: #fbfcfe;
  cursor: grab;
  max-height: 52vh;
  min-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 14px 16px;
  overscroll-behavior: contain;
}

.timeline.panning {
  cursor: grabbing;
  user-select: none;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  min-height: 350px;
  text-align: center;
}

.empty-state h2 {
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-scale {
  align-items: center;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: var(--timeline-scale-sticky-height);
  min-width: 0;
  padding-bottom: 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9;
}

.timeline-scale > div:first-child {
  align-items: center;
  align-self: stretch;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 4px 8px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.timeline-edge-jump-controls {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
  width: 100%;
}

.timeline-edge-jump-controls button {
  background: #fff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
}

.timeline-edge-jump-controls button:hover {
  background: #eef4ff;
}

.timeline-edge-jump-controls span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.scale-labels {
  display: block;
  min-height: var(--timeline-scale-sticky-height);
  position: relative;
}

.timeline-scale-guide {
  background: var(--timeline-date-guide);
  bottom: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  z-index: 1;
}

.scale-labels::before,
.scale-labels::after {
  background: #dc2626;
  bottom: 0;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
  content: "";
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 120ms ease;
  width: 2px;
  z-index: 2;
}

.scale-labels::before {
  left: 0;
}

.scale-labels::after {
  right: 0;
}

.scale-labels.at-domain-start::before,
.scale-labels.at-domain-end::after {
  opacity: 1;
}

.scale-labels .timeline-scale-label {
  color: #243041;
  font-size: 12px;
  font-weight: 800;
  max-width: 118px;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
}

.scale-labels .scale-label-start {
  transform: translate(0, -50%);
}

.scale-labels .scale-label-end {
  transform: translate(-100%, -50%);
}

.lane {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 96px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.combined-lane .lane-name strong {
  color: #111827;
}

.timeline-lanes-wrap {
  min-width: 0;
  position: relative;
  width: 100%;
}

.timeline-date-guide-lines {
  bottom: 0;
  left: 180px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.timeline-date-guide-lines i {
  background: var(--timeline-date-guide);
  bottom: 0;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
}

.timeline-lanes-wrap.has-standouts {
  padding-top: 0;
}

.standout-label-rail {
  height: var(--standout-rail-height, 36px);
  margin-left: 180px;
  pointer-events: none;
  position: sticky;
  top: var(--timeline-scale-sticky-height, 36px);
  width: calc(100% - 180px);
  z-index: 8;
}

.standout-overlay {
  bottom: 0;
  left: 180px;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.lane-name {
  align-items: flex-start;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  color: #243041;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: 5px;
  justify-content: flex-start;
  padding: max(8px, calc(var(--timeline-center-y, 28px) - 10px)) 14px 14px 0;
  position: sticky;
  left: 0;
  z-index: 3;
}

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

.lane-name strong {
  align-items: center;
  display: flex;
  gap: 8px;
  line-height: 1.2;
}

.lane-name i {
  background: var(--lane-color);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  display: inline-block;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.lane-track {
  border-bottom: 1px solid #edf0f4;
  min-height: 96px;
  position: relative;
  overflow: visible;
}

.lane-track::before {
  background: var(--lane-color, #e4e9f0);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: var(--timeline-center-y, 28px);
  transform: translateY(-50%);
}

.lane-track::after {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 56px, rgba(215, 221, 229, 0.42) 57px);
  background-repeat: repeat;
  background-size: 100% auto;
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.timeline-event-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--event-color);
  border-left: calc(6px * var(--timeline-tile-scale, 1)) solid var(--event-color);
  border-radius: calc(7px * var(--timeline-tile-scale, 1));
  box-shadow: 0 7px 18px rgba(17, 24, 39, 0.12);
  color: var(--text);
  cursor: grab;
  display: grid;
  gap: calc(4px * var(--timeline-tile-scale, 1));
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(54px * var(--timeline-tile-scale, 1));
  min-width: calc(92px * var(--timeline-tile-scale, 1));
  padding: calc(6px * var(--timeline-tile-scale, 1)) calc(8px * var(--timeline-tile-scale, 1));
  position: absolute;
  text-align: left;
  width: 220px;
  z-index: 2;
}

.timeline-event-card:active {
  cursor: grabbing;
}

.timeline-event-card.dragging {
  opacity: 0.88;
  z-index: 20;
}

.timeline-event-card.range {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.timeline-event-card.range-position-continued {
  box-shadow: 4px 7px 18px rgba(17, 24, 39, 0.12);
}

.timeline-event-card.additional-range {
  border-style: dashed;
  opacity: 0.94;
}

.timeline-event-card:hover {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
  transform: translateY(-1px);
}

.timeline-event-card.selected-event {
  border-left-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28), 0 0 0 2px rgba(191, 219, 254, 0.95);
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
  z-index: 8;
}

.timeline-event-card.event-locate-pulse,
.timeline-event-cluster.event-locate-pulse {
  animation: timeline-card-locate-pulse 5s ease-in-out;
  transform-origin: center;
  z-index: 30;
}

.timeline-event-anchor.event-locate-pulse {
  animation: timeline-anchor-locate-pulse 5s ease-in-out;
  z-index: 31;
}

.timeline-event-anchor.event-locate-pulse ~ .timeline-event-link line {
  animation: timeline-link-locate-pulse 5s ease-in-out;
}

.sheet-timeline-dot.event-locate-pulse,
.sheet-timeline-bar.event-locate-pulse {
  animation: timeline-anchor-locate-pulse 5s ease-in-out;
  z-index: 20;
}

@keyframes timeline-card-locate-pulse {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  15%, 45%, 75% {
    box-shadow: 0 0 0 5px #60a5fa, 0 0 0 10px rgba(37, 99, 235, 0.3), 0 14px 30px rgba(37, 99, 235, 0.4);
    filter: brightness(1.12);
    transform: scale(1.055);
  }
  30%, 60%, 90% {
    box-shadow: 0 0 0 2px #2563eb, 0 8px 20px rgba(37, 99, 235, 0.28);
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes timeline-anchor-locate-pulse {
  0%, 100% {
    filter: brightness(1);
    outline: 0 solid rgba(37, 99, 235, 0);
  }
  15%, 45%, 75% {
    filter: brightness(1.3);
    outline: 7px solid rgba(96, 165, 250, 0.55);
    outline-offset: 2px;
  }
  30%, 60%, 90% {
    filter: brightness(1);
    outline: 2px solid #2563eb;
    outline-offset: 1px;
  }
}

@keyframes timeline-link-locate-pulse {
  0%, 100% {
    opacity: 1;
    stroke: #2563eb;
    stroke-width: 2.6;
  }
  15%, 45%, 75% {
    opacity: 1;
    stroke: #60a5fa;
    stroke-width: 5;
  }
  30%, 60%, 90% {
    opacity: 1;
    stroke: #2563eb;
    stroke-width: 2.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-event-card.event-locate-pulse,
  .timeline-event-cluster.event-locate-pulse,
  .timeline-event-anchor.event-locate-pulse,
  .sheet-timeline-dot.event-locate-pulse,
  .sheet-timeline-bar.event-locate-pulse {
    animation: none;
    outline: 4px solid #2563eb;
    outline-offset: 3px;
  }
}

.timeline-event-card.comparison-selected-event {
  border-left-color: #2563eb;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2), 0 0 0 2px rgba(191, 219, 254, 0.95);
  outline: 2px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
  z-index: 7;
}

.timeline-event-card.argument-mode-card {
  transition: opacity 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.timeline-event-card.argument-unrelated {
  filter: grayscale(0.45);
  opacity: 0.36;
}

.timeline-event-card.argument-direct {
  border-style: solid;
  box-shadow: 0 9px 22px rgba(29, 78, 216, 0.22);
}

.timeline-event-card.argument-tag-match {
  border-style: dashed;
  opacity: 0.72;
}

.timeline-event-card.argument-weakness {
  background: #fff7ed;
  box-shadow: 0 9px 24px rgba(180, 83, 9, 0.22);
}

.timeline-event-card.argument-weakness .event-card-body strong {
  color: #9a3412;
}

.timeline-event-cluster {
  align-items: center;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: calc(5px * var(--timeline-tile-scale, 1)) solid var(--event-color);
  border-radius: calc(7px * var(--timeline-tile-scale, 1));
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: calc(2px * var(--timeline-tile-scale, 1));
  min-height: calc(38px * var(--timeline-tile-scale, 1));
  min-width: calc(58px * var(--timeline-tile-scale, 1));
  padding: calc(5px * var(--timeline-tile-scale, 1)) calc(7px * var(--timeline-tile-scale, 1));
  position: absolute;
  text-align: left;
  z-index: 6;
}

.timeline-event-cluster:hover {
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.28);
  transform: translateY(-1px);
}

.timeline-event-cluster.comparison-selected-event {
  border-left-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28), 0 0 0 2px rgba(191, 219, 254, 0.95);
}

.timeline-event-cluster.selected-event {
  border-left-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3), 0 0 0 2px rgba(191, 219, 254, 0.95);
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  z-index: 8;
}

.timeline-event-cluster strong,
.timeline-event-cluster span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-event-cluster strong {
  font-size: calc(12px * var(--timeline-tile-scale, 1));
  font-weight: 900;
}

.timeline-event-cluster span {
  color: #cbd5e1;
  font-size: calc(10px * var(--timeline-tile-scale, 1));
  font-weight: 800;
}

.timeline-event-anchor {
  background: var(--event-color);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
  cursor: pointer;
  height: 5px;
  position: absolute;
  transform: translateY(-50%);
  z-index: 4;
}

.timeline-event-anchor.point {
  border-radius: 4px;
  height: 24px;
  transform: translate(-50%, -50%);
  width: 12px;
}

.timeline-event-anchor.range {
  border-radius: 999px;
  height: var(--range-thickness, 12px);
  min-width: 18px;
}

.timeline-event-anchor.additional-range {
  border-style: dashed;
  opacity: 0.9;
}

.timeline-event-end-note {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 4px solid var(--event-color);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.14);
  color: #14532d;
  display: block;
  font-size: calc(10px * var(--timeline-tile-scale, 1));
  font-weight: 800;
  line-height: 1.2;
  max-width: calc(220px * var(--timeline-tile-scale, 1));
  overflow: hidden;
  padding: calc(5px * var(--timeline-tile-scale, 1)) calc(7px * var(--timeline-tile-scale, 1));
  pointer-events: none;
  position: absolute;
  text-overflow: ellipsis;
  transform: translate(-100%, calc(-100% - 9px));
  white-space: nowrap;
  z-index: 7;
}

.timeline-event-end-note.align-left {
  transform: translate(0, calc(-100% - 9px));
}

.timeline-event-end-note small {
  color: #166534;
  font-size: calc(8px * var(--timeline-tile-scale, 1));
  margin-right: 5px;
  text-transform: uppercase;
}

.timeline-event-link {
  inset: 0 0 auto;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.timeline-event-link line {
  opacity: 0.68;
  stroke: var(--event-color);
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-width: 1.35;
  transition: opacity 120ms ease, stroke 120ms ease, stroke-width 120ms ease;
}

.timeline-event-link-angle {
  opacity: 0.82;
}

.timeline-event-link.argument-direct-link line {
  stroke-dasharray: none;
  stroke-width: 2.2;
}

.timeline-event-link.argument-tag-link line {
  opacity: 0.58;
  stroke-dasharray: 6 5;
}

.timeline-event-link.argument-unrelated-link line {
  opacity: 0.22;
}

.timeline-event-link:has(+ .timeline-event-card:hover) line {
  opacity: 1;
  stroke-width: 2;
}

.timeline-event-link.selected-event-link line {
  opacity: 1;
  stroke: #2563eb;
  stroke-width: 2.6;
}

.event-card-markers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: calc(4px * var(--timeline-tile-scale, 1));
  min-width: 0;
}

.event-card-dollar-total {
  background: #ecfdf3;
  border: 1px solid #6ce9a6;
  border-radius: 4px;
  color: #067647;
  font-size: calc(10px * var(--timeline-tile-scale, 1));
  font-weight: 900;
  line-height: 1;
  padding: calc(3px * var(--timeline-tile-scale, 1)) calc(5px * var(--timeline-tile-scale, 1));
  white-space: nowrap;
}

.event-card-marker,
.event-card-range-marker,
.event-card-point-marker,
.event-card-related-marker {
  background: var(--event-color);
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  height: calc(18px * var(--timeline-tile-scale, 1));
  width: calc(22px * var(--timeline-tile-scale, 1));
}

.event-card-standout-marker {
  align-items: center;
  background: #fff1f2;
  border: 1px solid var(--red);
  border-left: 4px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.event-card-attachment-marker {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  color: #334155;
  display: inline-flex;
  font-size: 8px;
  font-weight: 900;
  height: 16px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 24px;
}

.event-card-attachment-marker.file {
  width: 18px;
}

.event-card-attachment-marker.sms {
  background: #ecfeff;
  border-color: #0891b2;
  color: #155e75;
}

.event-card-attachment-marker.image {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #166534;
  width: 20px;
}

.bucket-document-picker {
  display: grid;
  gap: 7px;
}

.bucket-document-picker input[type="search"] {
  width: 100%;
}

.event-card-argument-marker {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  height: 16px;
  justify-content: center;
  line-height: 1;
  min-width: 16px;
  padding: 0 4px;
}

.event-card-argument-marker.tag {
  background: #f8fafc;
  border-style: dashed;
  color: #475467;
}

.event-card-argument-marker.file,
.event-card-argument-marker.comm {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

.event-card-argument-marker.weakness {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #b45309;
}

.event-card-argument-marker.unrelated {
  background: #f1f5f9;
  color: #94a3b8;
}

.event-card-alert-marker {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: calc(8px * var(--timeline-tile-scale, 1));
  font-weight: 900;
  height: calc(17px * var(--timeline-tile-scale, 1));
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  max-width: calc(82px * var(--timeline-tile-scale, 1));
  overflow: hidden;
  padding: 0 calc(5px * var(--timeline-tile-scale, 1));
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-card-alert-marker.red-flag {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.event-card-alert-marker.unfinished {
  background: #fffdf0;
  border: 1px solid #dc2626;
  color: #ca8a04;
}

.event-card-alert-marker.icon-only {
  height: calc(18px * var(--timeline-tile-scale, 1));
  min-width: calc(18px * var(--timeline-tile-scale, 1));
  padding: 0;
  width: calc(18px * var(--timeline-tile-scale, 1));
}

.event-card-red-flag-icon {
  display: inline-block;
  height: calc(12px * var(--timeline-tile-scale, 1));
  position: relative;
  width: calc(11px * var(--timeline-tile-scale, 1));
}

.event-card-red-flag-icon::before {
  background: #991b1b;
  border-radius: 999px;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: calc(2px * var(--timeline-tile-scale, 1));
}

.event-card-red-flag-icon::after {
  background: #dc2626;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(153, 27, 27, 0.18);
  clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%);
  content: "";
  height: calc(7px * var(--timeline-tile-scale, 1));
  left: calc(2px * var(--timeline-tile-scale, 1));
  position: absolute;
  top: calc(1px * var(--timeline-tile-scale, 1));
  width: calc(9px * var(--timeline-tile-scale, 1));
}

.event-card-pencil-icon {
  fill: none;
  height: calc(12px * var(--timeline-tile-scale, 1));
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: calc(12px * var(--timeline-tile-scale, 1));
}

.event-card-alert-marker.contradiction {
  background: #fff7ed;
  border: 1px solid #f97316;
  color: #9a3412;
}

.relationship-strength-badge {
  align-items: center;
  background: color-mix(in srgb, var(--relationship-color, #2563eb) 12%, white);
  border: 1px solid var(--relationship-color, #2563eb);
  color: var(--relationship-color, #2563eb);
  display: inline-flex;
  font-size: calc(8px * var(--timeline-tile-scale, 1));
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  max-width: 100%;
  min-height: calc(17px * var(--timeline-tile-scale, 1));
  overflow: hidden;
  padding: 0 calc(6px * var(--timeline-tile-scale, 1));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relationship-strength-badge.relationship-pill {
  border-radius: 999px;
}

.relationship-strength-badge.relationship-square {
  border-radius: 3px;
}

.relationship-strength-badge.relationship-underline {
  background: #fff;
  border-color: transparent;
  border-bottom: 2px solid var(--relationship-color, #2563eb);
  border-radius: 0;
  padding-inline: calc(3px * var(--timeline-tile-scale, 1));
}

.event-card-alert-marker.date {
  background: #fef9c3;
  border: 1px solid #facc15;
  color: #854d0e;
}

.event-card-alert-marker.temporary {
  background: #eff6ff;
  border: 1px solid #2563eb;
  color: #1d4ed8;
}

.event-card-disk-icon {
  border: 1.5px solid currentColor;
  border-radius: 2px;
  display: inline-block;
  height: 11px;
  position: relative;
  width: 11px;
}

.event-card-disk-icon::before {
  background: currentColor;
  border-radius: 1px;
  content: "";
  height: 3px;
  left: 2px;
  position: absolute;
  right: 2px;
  top: 1px;
}

.event-card-disk-icon::after {
  border: 1px solid currentColor;
  border-bottom: 0;
  content: "";
  height: 3px;
  left: 3px;
  position: absolute;
  right: 3px;
  bottom: 1px;
}

.event-card-picture-icon {
  border: 1.5px solid currentColor;
  border-radius: 2px;
  display: inline-block;
  height: 11px;
  overflow: hidden;
  position: relative;
  width: 13px;
}

.event-card-picture-icon::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2.5px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 2.5px;
}

.event-card-picture-icon::after {
  background: currentColor;
  bottom: 1px;
  clip-path: polygon(0 100%, 38% 35%, 58% 68%, 76% 42%, 100% 100%);
  content: "";
  height: 7px;
  left: 1px;
  position: absolute;
  right: 1px;
}

.timeline-event-card.range .event-card-marker,
.event-card-range-marker {
  border-radius: 999px;
  width: 30px;
}

.event-card-range-marker {
  background: var(--range-color);
  height: 10px;
}

.timeline-event-card.point .event-card-marker,
.event-card-point-marker {
  border-radius: 4px;
  height: 24px;
  width: 12px;
}

.event-card-point-marker {
  background: var(--point-color);
}

.event-card-range-position {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  color: #1e3a8a;
  display: inline-flex;
  font-size: calc(8px * var(--timeline-tile-scale, 1));
  font-weight: 900;
  height: calc(18px * var(--timeline-tile-scale, 1));
  line-height: 1;
  padding: 0 calc(5px * var(--timeline-tile-scale, 1));
  white-space: nowrap;
}

.event-card-range-position.continued,
.event-card-range-position.continues {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.event-card-range-position.end,
.event-card-range-position.ongoing {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.event-card-related-marker {
  background: var(--related-color);
  border-radius: 999px;
  height: 14px;
  width: 14px;
}

.event-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-card-body strong {
  color: #17202a;
  font-size: calc(13px * var(--timeline-tile-scale, 1));
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-body em,
.event-card-body small {
  color: var(--muted);
  font-size: calc(11px * var(--timeline-tile-scale, 1));
  font-style: normal;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.event-card-flags b {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
}

.event-dot,
.event-bar,
.event-cluster {
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
  cursor: pointer;
  position: absolute;
  top: 30px;
}

.standout-line {
  background: transparent;
  border: 0;
  bottom: 0;
  cursor: pointer;
  min-height: 0;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 16px;
  z-index: 1;
}

.standout-line::after {
  background: var(--standout-color, var(--red));
  bottom: 0;
  content: "";
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 3px;
  z-index: 0;
}

.standout-line::before {
  background: var(--standout-color, var(--red));
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.22);
  content: "";
  display: none;
  height: 11px;
  left: 50%;
  position: absolute;
  top: calc(var(--standout-rail-height, 36px) + 28px);
  transform: translate(-50%, -50%);
  width: 11px;
}

.standout-line i {
  background: var(--standout-color, var(--red));
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.22);
  height: 16px;
  left: 50%;
  position: absolute;
  top: var(--standout-dot-y);
  transform: translate(-50%, -50%);
  width: 16px;
  z-index: 2;
}

.standout-label {
  background: #fff;
  border: 2px solid var(--standout-color, var(--red));
  border-left: 5px solid var(--standout-color, var(--red));
  border-radius: 5px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14), 0 0 0 2px #fff;
  color: var(--standout-color, var(--red));
  cursor: pointer;
  display: block;
  font-size: 11px;
  font-weight: 800;
  min-height: 0;
  max-width: 180px;
  overflow: hidden;
  padding: 4px 6px;
  pointer-events: auto;
  position: absolute;
  text-overflow: ellipsis;
  top: calc(5px + var(--label-row, 0) * 26px);
  transform: translateX(8px);
  white-space: nowrap;
  width: max-content;
  z-index: 3;
}

.standout-label.label-left {
  border-left: 2px solid var(--standout-color, var(--red));
  border-right: 5px solid var(--standout-color, var(--red));
  transform: translateX(calc(-100% - 8px));
}

.event-dot {
  border-radius: 5px;
  height: 22px;
  margin-left: -14px;
  width: 28px;
}

.event-bar {
  border-radius: 999px;
  height: 22px;
  min-width: 16px;
}

.event-cluster {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  min-width: 70px;
  padding: 0 10px;
  transform: translateX(-50%);
}

.event-dot.selected-event,
.event-bar.selected-event,
.event-cluster.selected-event {
  outline: 3px solid #111827;
  outline-offset: 3px;
  z-index: 3;
}

.cluster-popover {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
  display: grid;
  gap: 6px;
  max-height: 360px;
  max-width: 360px;
  overflow: auto;
  padding: 10px;
  position: fixed;
  width: min(360px, calc(100vw - 28px));
  z-index: 50;
}

.cluster-popover-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 4px 4px;
  text-transform: uppercase;
}

.cluster-popover button {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 8px;
  text-align: left;
}

.cluster-popover button:hover {
  background: #eef4ff;
  border-color: #b7c9e9;
}

.cluster-popover span,
.cluster-popover em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.cluster-popover strong {
  font-size: 13px;
}

.event-label {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #1f2937;
  font-size: 12px;
  left: 50%;
  max-width: 180px;
  overflow: hidden;
  padding: 3px 6px;
  position: absolute;
  text-overflow: ellipsis;
  top: 27px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.preview-panel,
.master-list,
.file-library-panel,
.arguments-panel,
.tag-glossary-panel,
.project-setup-panel,
.project-communications-panel,
.project-exports-panel {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  padding: 12px;
}

.master-list,
.file-library-panel,
.arguments-panel,
.tag-glossary-panel,
.project-setup-panel,
.project-communications-panel,
.project-exports-panel {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.master-list .panel-header {
  align-items: end;
  margin-bottom: 8px;
}

.master-list-title {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.master-list-title > div {
  min-width: 0;
}

.master-list .table-wrap {
  max-height: 42vh;
  overflow: auto;
}

.master-list th {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.master-list-search {
  max-width: 320px;
  min-width: min(260px, 100%);
  width: 34%;
}

.master-list-search input {
  width: 100%;
}

.master-list tbody tr {
  cursor: pointer;
}

.master-list tbody tr:hover {
  background: #f8fafc;
}

.master-list tbody tr.selected-row {
  background: #eff6ff;
}

.master-row-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.master-list tbody tr:has(.needs-date-text) {
  background: #fffbeb;
}

.master-list tbody tr:has(.needs-date-text):hover {
  background: #fef3c7;
}

.file-library-panel .panel-header,
.arguments-panel .panel-header {
  margin-bottom: 10px;
}

.project-workspace-page .file-library-panel,
.project-workspace-page .project-setup-panel,
.project-workspace-page .arguments-panel,
.project-workspace-page .project-checklist-panel,
.project-workspace-page .legal-dates-panel,
.project-workspace-page .tag-glossary-panel,
.project-workspace-page .project-exports-panel,
.project-workspace-page .project-communications-panel,
.ai-page .project-communications-panel,
.presentation-workspace-panel,
.argument-presentation-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 0;
  padding: 12px;
}

.presentation-coming-soon {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.presentation-coming-soon h3 {
  font-size: 18px;
  margin: 0;
}

.presentation-coming-soon p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.project-workspace-page .project-setup-panel > .tag-glossary-panel {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  margin-top: 0;
  padding: 8px 10px;
}

.project-workspace-page .project-setup-dropdown > summary {
  gap: 12px;
  min-height: 44px;
}

.project-workspace-page .project-setup-dropdown > summary::before {
  margin-left: auto;
  margin-right: 0;
  order: 3;
}

.project-workspace-page .project-setup-dropdown > summary span {
  color: #111827;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  order: 1;
}

.project-workspace-page .project-setup-dropdown > summary strong {
  flex: 1 1 auto;
  font-size: 11px;
  max-width: min(900px, 72%);
  order: 2;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-option-create-row,
.checklist-quick-add-row,
.checklist-filters,
.legal-date-create-row {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
}

.setup-option-create-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.setup-option-create-row.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.transcript-highlight-color-create-row {
  grid-template-columns: minmax(120px, .8fr) 44px minmax(180px, 1.4fr) auto;
}

.transcript-highlight-color-manager-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 4px 0 8px;
}

.transcript-highlight-color-manager-actions .empty-small {
  margin: 0;
}

.transcript-highlight-colors-save-btn {
  min-width: 76px;
}

.transcript-highlight-colors-save-btn.is-dirty {
  background: #2563eb;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  color: #ffffff;
}

.checklist-quick-add-row {
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, .9fr) minmax(140px, .65fr) auto;
}

.checklist-filters {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

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

.project-checklist-heading {
  align-items: center;
  display: flex;
  gap: 10px;
}

.project-checklist-expand-button {
  align-items: center;
  background: #ffffff;
  border: 2px solid #93c5fd;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 5px 12px rgba(37, 99, 235, 0.16);
  color: #2563eb;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.project-checklist-expand-button:hover,
.project-checklist-expand-button:focus-visible {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.project-checklist-expand-button:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.checklist-view-select {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 3px;
  min-width: 150px;
}

.checklist-filter-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.checklist-filter-summary-row {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, auto) minmax(260px, 560px) auto;
  list-style: none;
  min-height: 38px;
  padding: 8px 10px;
}

.checklist-filter-summary-row::-webkit-details-marker {
  display: none;
}

.checklist-filter-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.checklist-filter-title strong {
  color: #111827;
  font-size: 13px;
}

.checklist-filter-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-filter-toggle {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #1f2937;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  justify-self: end;
  padding: 5px 9px;
}

.checklist-filter-header-search {
  cursor: text;
  justify-self: center;
  max-width: 560px;
  min-width: 0;
  width: 100%;
}

.checklist-filter-body {
  border-top: 1px solid var(--line);
  padding: 10px;
}

.legal-date-create-row {
  grid-template-columns: 150px minmax(180px, 1fr) minmax(150px, .8fr) minmax(130px, .7fr) auto;
}

.compact-legal-dates-panel {
  padding: 10px 12px;
}

.legal-dates-compact-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(150px, .75fr) minmax(220px, 1.4fr) 110px minmax(150px, .65fr);
  position: relative;
}

.legal-dates-title {
  display: grid;
  gap: 2px;
}

.legal-dates-title h2 {
  font-size: 17px;
  margin: 0;
}

.legal-dates-title span {
  color: #64748b;
  font-size: 13px;
}

.legal-dates-next {
  align-items: center;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #b91c1c;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: auto auto minmax(0, 1fr);
  min-height: 38px;
  overflow: hidden;
  padding: 5px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-dates-next strong {
  font-size: 15px;
  font-weight: 900;
}

.legal-dates-next span {
  background: #dc2626;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
}

.legal-dates-next em {
  color: #7f1d1d;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legal-dates-range {
  min-width: 106px;
}

.legal-date-reminder-bars {
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
}

.legal-date-reminder-bar {
  align-items: center;
  background: #b91c1c;
  border: 1px solid #7f1d1d;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 8px;
  grid-template-columns: 78px 116px minmax(180px, 1fr) minmax(100px, .35fr);
  min-height: 34px;
  padding: 6px 10px;
}

.legal-date-reminder-bar strong,
.legal-date-reminder-bar span,
.legal-date-reminder-bar em,
.legal-date-reminder-bar small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-date-reminder-bar strong {
  background: #fff;
  border-radius: 999px;
  color: #991b1b;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  text-align: center;
}

.legal-date-reminder-bar span {
  font-size: 13px;
  font-weight: 900;
}

.legal-date-reminder-bar em {
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.legal-date-reminder-bar small {
  color: #fee2e2;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.legal-date-reminder-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.legal-dates-dropdown {
  justify-self: start;
  margin: 0;
  min-width: 0;
}

.legal-dates-dropdown > summary {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.legal-dates-dropdown > summary::before {
  font-size: 22px;
  height: 34px;
  margin-right: 0;
  width: 34px;
}

.legal-dates-dropdown[open] > summary::before {
  content: "-";
}

.legal-dates-expanded-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
  padding-top: 8px;
}

.compact-legal-dates-panel:not(:has(.legal-dates-dropdown[open])) > .legal-dates-expanded-body {
  display: none;
}

.legal-dates-expanded-body .legal-date-create-row {
  margin: 0;
}

.legal-dates-expanded-body .legal-dates-list {
  max-height: 420px;
  min-width: 0;
  overflow: auto;
}

.setup-option-list,
.legal-dates-list,
.supporting-points-workspace,
.argument-outline-list,
.supporting-point-checklist,
.argument-project-checklist {
  display: grid;
  gap: 8px;
}

.setup-option-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: auto auto minmax(150px, 1fr) auto auto auto auto;
  padding: 6px;
}

.relationship-strength-manager .setup-option-row {
  grid-template-columns: auto auto minmax(150px, 1fr) 44px 120px auto auto;
}

.transcript-highlight-color-description-row {
  grid-template-columns: auto auto minmax(120px, .8fr) 44px minmax(180px, 1.4fr) auto auto;
}

.transcript-highlight-color-swatch {
  background: var(--highlight-swatch, #fef08a);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: inline-block;
  height: 24px;
  width: 24px;
}

.setup-option-row input[type="color"] {
  min-height: 34px;
  padding: 2px;
}

.legal-research-site-create-row,
.legal-research-site-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(150px, .8fr) 140px minmax(130px, .7fr) minmax(280px, 2fr) auto;
  min-width: 0;
}

.legal-research-site-create-row {
  margin: 8px 0 5px;
}

.legal-research-site-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.legal-research-site-row {
  background: #fff;
  border: 1px solid #d8e1ec;
  border-left: 3px solid #16706a;
  border-radius: 6px;
  grid-template-columns: minmax(150px, .8fr) 140px minmax(130px, .7fr) minmax(280px, 2fr) auto 36px;
  padding: 7px;
}

.legal-research-site-row input,
.legal-research-site-row select,
.legal-research-site-create-row input,
.legal-research-site-create-row select {
  min-width: 0;
  width: 100%;
}

.legal-research-site-enabled {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  white-space: nowrap;
}

.legal-research-site-enabled input {
  margin: 0;
  width: auto;
}

#legalResearchSiteStatus[data-tone="success"] { color: #08714e; }
#legalResearchSiteStatus[data-tone="error"] { color: #b4232c; font-weight: 750; }

@media (max-width: 1100px) {
  .legal-research-site-create-row,
  .legal-research-site-row {
    grid-template-columns: minmax(150px, 1fr) minmax(120px, .7fr) minmax(150px, 1fr) auto;
  }

  .legal-research-site-create-row > :nth-child(4),
  .legal-research-site-row > :nth-child(4) {
    grid-column: 1 / -2;
  }
}

@media (max-width: 720px) {
  .legal-research-site-create-row,
  .legal-research-site-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .legal-research-site-create-row > :not(button),
  .legal-research-site-row > :not(button) {
    grid-column: 1;
  }

  .legal-research-site-create-row > :nth-child(4),
  .legal-research-site-row > :nth-child(4) {
    grid-column: 1 / -1;
  }
}

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

.checklist-setup-grid section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
}

.checklist-setup-grid h4 {
  margin: 0 0 8px;
}

.project-checklist-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  max-height: 430px;
  overflow: auto;
}

.project-checklist-table table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
}

.project-checklist-table.task-view table {
  min-width: 1450px;
  table-layout: fixed;
}

.project-checklist-table.task-view .checklist-col-done { width: 2.5%; }
.project-checklist-table.task-view .checklist-col-task { width: 18%; }
.project-checklist-table.task-view .checklist-col-changes { width: 3.5%; }
.project-checklist-table.task-view .checklist-col-assigned { width: 10%; }
.project-checklist-table.task-view .checklist-col-due { width: 8%; }
.project-checklist-table.task-view .checklist-col-argument { width: 16%; }
.project-checklist-table.task-view .checklist-col-point { width: 11%; }
.project-checklist-table.task-view .checklist-col-status { width: 5.5%; }
.project-checklist-table.task-view .checklist-col-priority { width: 6%; }
.project-checklist-table.task-view .checklist-col-changed { width: 10%; }
.project-checklist-table.task-view .checklist-col-actions { width: 9.5%; }

.project-checklist-table.task-view td,
.project-checklist-table.task-view th {
  overflow: hidden;
}

.project-checklist-table th,
.project-checklist-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 6px;
  text-align: left;
  vertical-align: middle;
}

.project-checklist-table th {
  background: #f8fafc;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.project-checklist-table tbody tr:hover {
  background: #f8fafc;
}

.project-checklist-table input,
.project-checklist-table select {
  min-height: 32px;
}

.project-checklist-table .checklist-done-cell {
  text-align: center;
  width: 48px;
}

.project-checklist-table .checklist-task-cell input {
  font-weight: 800;
  min-width: 0;
  width: 100%;
}

.project-checklist-table .checklist-task-title {
  color: #111827;
  display: block;
  font-weight: 900;
  min-width: 0;
}

.project-checklist-table .checklist-readonly-text {
  color: #334155;
  display: block;
  font-size: 12px;
  font-weight: 800;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-checklist-table .checklist-point-cell {
  max-width: 150px;
  width: 150px;
}

.project-checklist-table .checklist-point-cell select,
.project-checklist-table .checklist-point-cell .checklist-readonly-text {
  max-width: 100%;
  width: 100%;
}

.project-checklist-table .checklist-argument-cell select,
.project-checklist-table .checklist-status-cell select,
.project-checklist-table .checklist-priority-cell select {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.project-checklist-table .checklist-action-cell {
  min-width: 0;
  white-space: nowrap;
}

.project-checklist-table .checklist-action-cell button {
  margin-right: 4px;
}

.checklist-row-icon-button {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  color: #1e3a8a;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.checklist-row-icon-button:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.checklist-row-icon-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.checklist-row-icon-button.delete {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b91c1c;
}

.checklist-row-icon-button.delete:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.checklist-row-icon-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.checklist-row-icon-button svg {
  fill: none;
  height: 16px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: scale(1.5);
  transform-origin: center;
  width: 16px;
}

.project-checklist-table .checklist-editing-row {
  background: #eff6ff;
}

.project-checklist-table .checklist-date-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.checklist-finished-row {
  color: #64748b;
  text-decoration: line-through;
}

.project-task-changes-button {
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 900;
}

.project-task-digest-panel {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 10px 12px;
}

.project-task-digest-panel[hidden],
.project-task-review-panel[hidden],
.project-task-drawer-host[hidden],
.project-checklist-table[hidden] {
  display: none;
}

.project-task-digest-copy {
  display: grid;
  gap: 2px;
}

.project-task-digest-copy > strong {
  color: #1e3a8a;
  font-size: 14px;
  text-transform: uppercase;
}

.project-task-digest-copy > span {
  color: #172554;
  font-size: 13px;
  font-weight: 800;
}

.project-task-digest-copy > small {
  color: #475569;
  font-size: 11px;
}

.project-task-digest-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.project-checklist-table.my-work-view {
  border: 0;
  max-height: none;
  overflow: visible;
}

.project-task-order-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(360px, 1fr) minmax(160px, 220px);
  margin: 0 0 9px;
  padding: 7px 10px;
}

.project-task-order-toolbar[hidden] {
  display: none;
}

.project-task-order-toolbar > strong {
  color: #334155;
  font-size: 11px;
  text-transform: uppercase;
}

.project-task-order-segments {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-task-order-button {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  display: grid;
  gap: 1px;
  min-height: 40px;
  padding: 5px 9px;
  text-align: left;
}

.project-task-order-button.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.project-task-order-button span {
  font-size: 12px;
  font-weight: 900;
}

.project-task-order-button small {
  color: #64748b;
  font-size: 10px;
}

.project-task-sort-control {
  color: #475569;
  display: grid;
  font-size: 10px;
  font-weight: 800;
  gap: 2px;
}

.project-task-sort-control small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.project-task-order-toolbar.automatic-sort .project-task-order-segments {
  opacity: .62;
}

.project-task-my-work,
.project-task-group-list,
.project-task-review-groups {
  display: grid;
  gap: 8px;
}

.project-task-work-group {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  overflow: hidden;
}

.project-task-work-group.canceled-group {
  border-color: #cbd5e1;
}

.project-task-work-group.canceled-group .project-task-group-header {
  background: #f1f5f9;
}

.project-task-work-group.canceled-group .project-task-group-header.has-controls {
  grid-template-columns: max-content minmax(0, 1fr);
}

.project-task-group-header {
  align-items: center;
  background: #f8fafc;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 38px;
}

.project-task-group-header.has-controls {
  gap: 10px;
  grid-template-columns: max-content minmax(220px, 320px);
  justify-content: start;
  padding-right: 10px;
}

.project-task-group-header.has-controls .project-task-group-heading {
  grid-template-columns: max-content auto 24px;
  padding-right: 0;
  width: auto;
}

.project-task-group-heading {
  align-items: center;
  background: transparent;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  font: inherit;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  min-height: 38px;
  padding: 7px 10px;
  text-align: left;
  width: 100%;
}

.project-task-group-heading span:first-child {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-task-group-heading strong {
  background: #e2e8f0;
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  margin-left: 5px;
  padding: 2px 7px;
}

.project-task-group-heading em {
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.project-task-group-heading span:last-child {
  color: #2563eb;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.project-task-user-view-picker {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 3px 0;
}

.project-task-user-view-picker label {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.project-task-user-view-picker select {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  min-width: 0;
  padding: 5px 30px 5px 9px;
  width: 100%;
}

@media (max-width: 620px) {
  .project-task-group-header.has-controls {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .project-task-user-view-picker label {
    font-size: 11px;
  }
}

.project-task-group-list {
  border-top: 1px solid #dbe3ee;
  gap: 0;
}

.project-task-card {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) minmax(260px, 1fr) auto;
  min-height: 54px;
  padding: 7px 10px;
  transition: background-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.project-task-card.canceled {
  background: #f8fafc;
  box-shadow: inset 3px 0 0 #64748b;
  grid-template-columns: auto minmax(220px, 1.4fr) minmax(260px, 1fr) auto;
}

.project-task-canceled-select {
  align-items: center;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  justify-self: start;
}

.project-task-canceled-select input,
.project-task-canceled-actions input {
  accent-color: #2563eb;
  height: 16px;
  margin: 0;
  width: 16px;
}

.project-task-canceled-select span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-task-canceled-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  min-width: 0;
  padding: 4px 0;
}

.project-task-canceled-actions > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.project-task-canceled-actions .checkbox-row {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.project-task-canceled-actions button {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  min-height: 30px;
}

.project-task-canceled-actions button svg {
  height: 14px;
  transform: scale(1.5);
  transform-origin: center;
  width: 14px;
}

.project-task-card.reorderable {
  grid-template-columns: auto minmax(220px, 1.4fr) minmax(260px, 1fr) auto;
}

.project-task-order-controls {
  justify-self: start;
}

.project-task-card.dragging,
.project-task-board-card.dragging {
  opacity: .45;
}

.project-task-card.drag-over {
  box-shadow: inset 0 3px 0 #2563eb;
}

.project-task-card.saving-order {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.project-task-order-saving {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.project-task-card:last-child {
  border-bottom: 0;
}

.project-task-card.child {
  border-left: 4px solid #93c5fd;
  margin-left: 20px;
}

.project-task-card.completed {
  background: #f8fafc;
  color: #64748b;
}

.project-task-card-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.project-task-title-button,
.checklist-title-link,
.project-task-lineage button,
.project-task-follow-up-section button:not(.ghost-button) {
  background: transparent;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.project-task-title-button:hover,
.checklist-title-link:hover,
.project-task-board-title:hover,
.project-task-lineage button:hover,
.project-task-follow-up-section button:not(.ghost-button):hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.checklist-task-title-description {
  align-items: baseline;
  display: inline-flex;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.checklist-task-description {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.project-task-board-title {
  background: transparent;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.project-task-progress-label {
  color: #64748b;
  font-size: 11px;
}

.project-task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-task-card-meta span {
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
}

.project-task-card-actions {
  display: flex;
  gap: 5px;
}

.project-task-team-view,
.project-task-team-list {
  display: grid;
  gap: 10px;
}

.project-task-team-group {
  border: 1px solid #dbe3ee;
}

.project-task-team-group > header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ee;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) auto;
  padding: 8px 10px;
}

.project-task-team-group > header > div {
  display: grid;
  gap: 2px;
}

.project-task-team-group > header strong {
  font-size: 14px;
}

.project-task-team-group > header span {
  color: #64748b;
  font-size: 11px;
}

.project-task-team-group dl {
  display: flex;
  gap: 12px;
  margin: 0;
}

.project-task-team-group dl div {
  display: grid;
  gap: 1px;
  text-align: center;
}

.project-task-team-group dt {
  color: #64748b;
  font-size: 9px;
  text-transform: uppercase;
}

.project-task-team-group dd {
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.project-task-team-list {
  gap: 0;
}

.project-task-team-list > .empty-small {
  padding: 10px;
}

.project-checklist-table.board-view,
.project-checklist-table.research-view,
.project-checklist-table.completed-view,
.project-checklist-table.team-view {
  max-height: none;
  overflow: visible;
}

.project-task-board {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  overflow-x: auto;
  padding-bottom: 5px;
}

.project-task-board-column {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  min-width: 220px;
}

.project-task-board-column > header {
  align-items: center;
  border-bottom: 3px solid #64748b;
  display: flex;
  justify-content: space-between;
  padding: 8px 9px;
  text-transform: uppercase;
}

.project-task-board-column:nth-child(1) > header { border-color: #2563eb; }
.project-task-board-column:nth-child(2) > header { border-color: #0f766e; }
.project-task-board-column:nth-child(3) > header { border-color: #ca8a04; }
.project-task-board-column:nth-child(4) > header { border-color: #15803d; }

.project-task-board-column > header span {
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
}

.project-task-board-list {
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 7px;
}

.project-task-board-list.drag-over {
  background: #dbeafe;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.project-task-board-card {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-left: 4px solid #64748b;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.project-task-board-card > button {
  background: transparent;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.project-task-board-card > div {
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 6px;
  justify-content: space-between;
}

.project-task-board-card .overdue {
  color: #b91c1c;
  font-weight: 900;
}

.project-task-board-history {
  margin: 0 7px 7px;
}

.project-task-view-note {
  align-items: baseline;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ee;
  display: flex;
  gap: 10px;
  padding: 8px 10px;
}

.project-task-view-note span {
  color: #64748b;
  font-size: 11px;
}

.project-task-research-view {
  border: 1px solid #dbe3ee;
  overflow-x: auto;
}

.project-task-research-view table {
  min-width: 1220px;
  width: 100%;
}

.project-task-research-view tr.completed {
  background: #f0fdf4;
}

.project-task-research-view td small {
  color: #64748b;
  display: block;
  font-size: 9px;
  margin-top: 2px;
}

.project-task-note-excerpt {
  line-height: 1.35;
  min-width: 220px;
  white-space: normal;
}

.project-task-table-chip {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
}

.project-task-completed-view,
.project-task-completed-list {
  display: grid;
  gap: 8px;
}

.project-task-closed-section {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  overflow: hidden;
}

.project-task-closed-heading,
.project-task-closed-section > h3 {
  align-items: center;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
}

.project-task-closed-section > h3 {
  font-size: 13px;
  margin: 0;
}

.project-task-closed-heading h3 {
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 7px;
  margin: 0;
}

.project-task-closed-heading h3 span,
.project-task-closed-section > h3 span {
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 7px;
}

.project-task-closed-section .project-task-completed-list {
  border-top: 1px solid #dbe3ee;
  gap: 0;
}

.project-task-closed-section.canceled-section .project-task-closed-heading h3 {
  color: #475569;
}

@media (max-width: 860px) {
  .project-task-card.canceled {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-task-card.canceled .project-task-card-meta,
  .project-task-card.canceled .project-task-card-actions {
    grid-column: 2;
  }

  .project-task-closed-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .project-task-closed-heading .project-task-canceled-actions {
    justify-content: flex-start;
  }
}

.project-task-completed-filters {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  padding: 8px;
}

.project-task-completed-filters label {
  color: #475569;
  display: grid;
  font-size: 9px;
  font-weight: 900;
  gap: 2px;
  text-transform: uppercase;
}

.project-task-toast-host {
  bottom: 18px;
  display: grid;
  gap: 6px;
  max-width: min(380px, calc(100vw - 24px));
  pointer-events: none;
  position: fixed;
  right: 18px;
  z-index: 350;
}

.project-task-toast {
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-left: 5px solid #2563eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  color: #172554;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
}

.project-task-toast.attention { border-left-color: #c2410c; }
.project-task-toast.success { border-left-color: #15803d; }

.project-task-unread-badge {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  white-space: nowrap;
}

.project-task-unread-badge.attention {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.project-checklist-table .checklist-title-link {
  display: block;
  min-width: 220px;
}

.project-checklist-table .checklist-task-title-description .checklist-title-link {
  display: inline;
  min-width: 0;
}

.project-checklist-table .checklist-task-cell small {
  color: #64748b;
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.project-checklist-table .checklist-child-task {
  border-left: 4px solid #93c5fd;
  padding-left: 18px;
}

.project-checklist-table .checklist-child-summary-row:hover {
  background: transparent;
}

.project-checklist-table .checklist-child-summary-row td {
  border-bottom: 1px solid #dbeafe;
  padding-bottom: 8px;
  padding-top: 0;
}

.project-checklist-table.task-view .checklist-child-summary-cell {
  overflow: visible;
}

.checklist-child-summary-spacer {
  background: #f8fbff;
}

.checklist-child-summary {
  align-items: center;
  background: #f8fbff;
  border-left: 3px solid #60a5fa;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  min-height: 34px;
  padding: 4px 8px;
}

.checklist-child-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 3px 2px;
}

.checklist-child-toggle:hover strong {
  text-decoration: underline;
}

.checklist-child-toggle:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.checklist-child-arrow {
  color: #2563eb;
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  transform-origin: center;
  transition: transform 120ms ease;
}

.checklist-child-toggle[aria-expanded="true"] .checklist-child-arrow {
  transform: rotate(90deg);
}

.checklist-child-toggle strong {
  font-size: 14px;
  white-space: nowrap;
}

.checklist-child-assignees {
  align-items: center;
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.checklist-child-assignee {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  color: #334155;
  display: inline-flex;
  font-size: 13px;
  gap: 5px;
  max-width: 100%;
  min-height: 25px;
  padding: 2px 6px;
}

.checklist-child-assignee strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-child-assignee b {
  align-items: center;
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 12px;
  height: 21px;
  justify-content: center;
  min-width: 21px;
  padding: 0 5px;
}

.checklist-child-assignee time {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.project-task-review-panel {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.project-task-review-head {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ee;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 9px 10px;
}

.project-task-review-head > div {
  display: grid;
  gap: 2px;
}

.project-task-review-head strong {
  font-size: 15px;
}

.project-task-review-head span {
  color: #64748b;
  font-size: 11px;
}

.project-task-review-groups {
  padding: 8px;
}

.project-task-review-group {
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(180px, .7fr) minmax(300px, 1.4fr) auto;
  padding: 8px 2px;
}

.project-task-review-group:last-child {
  border-bottom: 0;
}

.project-task-review-group > div:first-child {
  display: grid;
  gap: 2px;
}

.project-task-review-group > div:first-child span,
.project-task-deleted-label {
  color: #64748b;
  font-size: 11px;
}

.project-task-review-group ul,
.project-task-unseen-section ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-task-review-group li {
  color: #334155;
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-task-review-group time,
.project-task-activity-list time,
.project-task-comment-list time {
  color: #64748b;
  font-size: 10px;
}

body.project-task-drawer-open {
  overflow: hidden;
}

.project-task-drawer-host {
  inset: 0;
  position: fixed;
  z-index: 220;
}

.project-task-drawer-backdrop {
  background: rgba(15, 23, 42, .42);
  border: 0;
  inset: 0;
  position: absolute;
  width: 100%;
}

.project-task-drawer {
  background: #ffffff;
  border-left: 1px solid #cbd5e1;
  bottom: 0;
  box-shadow: -12px 0 30px rgba(15, 23, 42, .16);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-width: 620px;
  position: absolute;
  right: 0;
  top: 0;
  width: min(620px, 92vw);
}

.project-task-drawer.loading {
  align-content: center;
  justify-content: center;
  padding: 20px;
}

.project-task-drawer-header {
  align-items: center;
  background: #0f172a;
  color: #ffffff;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 12px;
}

.project-task-drawer-header > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-task-drawer-header span {
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-task-drawer-header strong {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.project-task-drawer-unsaved {
  color: #fbbf24 !important;
  font-size: 11px !important;
  font-weight: 900;
  text-transform: none !important;
  white-space: nowrap;
}

.project-task-drawer-action-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.project-task-drawer-action-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.project-task-drawer-action-button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.project-task-drawer-action-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: scale(1.5);
  transform-origin: center;
  width: 17px;
}

.project-task-save-button {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 0 10px;
  width: auto;
}

.project-task-save-button svg {
  height: 17px;
  width: 17px;
}

.project-task-save-button:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.project-task-save-button.is-dirty {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.project-task-close-button {
  color: #b91c1c;
}

.project-task-drawer-scroll {
  overflow-y: auto;
}

.project-task-unseen-section {
  background: #fff7ed;
  border-bottom: 1px solid #fdba74;
  display: grid;
  gap: 7px;
  padding: 10px 12px;
}

.project-task-unseen-section > strong {
  color: #9a3412;
  font-size: 11px;
}

.project-task-unseen-section li {
  color: #7c2d12;
  font-size: 12px;
}

.project-task-drawer-section {
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 8px;
  padding: 11px 12px;
}

.project-task-drawer-section h3 {
  font-size: 13px;
  margin: 0;
}

.project-task-core-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-task-cancellation-prompt {
  background: #f8fafc;
  border: 1px solid #94a3b8;
  border-left: 4px solid #64748b;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.project-task-cancellation-prompt[hidden] {
  display: none;
}

.project-task-cancellation-prompt label {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-task-cancellation-prompt label span {
  color: #b91c1c;
  margin-left: 5px;
}

.project-task-cancellation-prompt textarea {
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  min-height: 90px;
  resize: vertical;
  text-transform: none;
  width: 100%;
}

.project-task-cancellation-prompt p {
  color: #475569;
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  text-transform: none;
}

.project-task-field {
  color: #475569;
  display: grid;
  font-size: 10px;
  font-weight: 900;
  gap: 3px;
  text-transform: uppercase;
}

.project-task-field input,
.project-task-field select,
.project-task-field textarea,
.project-task-drawer-section > textarea,
.project-task-link-form input,
.project-task-comment-form textarea,
.project-task-relation-add select {
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  width: 100%;
}

.project-task-next-action-label-row {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-start;
}

.project-task-next-action-button,
.project-task-next-action-panel-close {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  width: 26px;
}

.project-task-next-action-button:hover,
.project-task-next-action-panel-close:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.project-task-next-action-button svg,
.project-task-next-action-panel-close svg {
  fill: none;
  height: 15px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: scale(1.5);
  transform-origin: center;
  width: 15px;
}

.project-task-next-action-create-panel {
  background: #f8fafc;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  display: grid;
  font-size: 12px;
  gap: 8px;
  margin-top: 5px;
  padding: 9px;
  text-transform: none;
}

.project-task-next-action-create-panel[hidden] {
  display: none;
}

.project-task-next-action-create-head {
  align-items: center;
  color: #0f172a;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
}

.project-task-next-action-panel-close {
  background: #ffffff;
  color: #475569;
  height: 24px;
  width: 24px;
}

.project-task-next-action-related-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-task-next-action-related-counts span {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
}

.project-task-next-action-create-panel > .small-button {
  justify-self: end;
}

.project-task-custom-checkbox {
  align-content: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-task-custom-checkbox input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.project-task-core-fields .wide,
.project-task-section-head {
  grid-column: 1 / -1;
}

.project-task-progress {
  display: grid;
  gap: 4px;
}

.project-task-progress span {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-task-progress strong,
.project-task-lineage {
  color: #334155;
  font-size: 12px;
}

.project-task-progress progress {
  height: 7px;
  width: 100%;
}

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

.project-task-section-head span {
  color: #64748b;
  font-size: 10px;
}

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

.project-task-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-task-related-grid .project-task-drawer-section {
  border-right: 1px solid #e5e7eb;
}

.project-task-relation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-task-relation-chips > span {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1e3a8a;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 4px;
  max-width: 100%;
  padding: 2px 6px;
}

.project-task-relation-chips button {
  background: transparent;
  border: 0;
  color: #b91c1c;
  cursor: pointer;
  font-weight: 900;
  padding: 0;
}

.project-task-relation-chips em {
  color: #64748b;
  font-size: 11px;
}

.project-task-relation-add {
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-task-link-list,
.project-task-comment-list,
.project-task-activity-list,
.project-task-follow-up-section > div {
  display: grid;
  gap: 6px;
}

.project-task-link-list > div {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto;
}

.project-task-link-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-task-link-list span {
  color: #64748b;
  font-size: 11px;
}

.project-task-link-form {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, .8fr) auto;
}

.project-task-comment-list article {
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 8px;
}

.project-task-comment-list p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  white-space: pre-wrap;
}

.project-task-comment-form {
  display: grid;
  gap: 6px;
}

.project-task-comment-form button {
  justify-self: end;
}

.project-task-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-task-activity-list li {
  border-bottom: 1px solid #eef2f7;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 4px 0;
}

.project-task-follow-up-section > div button {
  color: #1d4ed8;
  font-size: 11px;
}

.project-task-follow-up-form {
  align-items: center;
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding-top: 8px;
}

.project-task-follow-up-form > button {
  justify-self: end;
}

@media (max-width: 820px) {
  .project-task-order-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .project-task-order-toolbar > strong {
    display: none;
  }

  .project-task-order-segments {
    grid-template-columns: 1fr 1fr;
  }

  .project-task-digest-panel,
  .project-task-review-head {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-task-digest-actions {
    flex-wrap: wrap;
  }

  .project-task-card,
  .project-task-card.reorderable,
  .project-task-review-group {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .project-task-order-controls {
    justify-self: end;
  }

  .project-task-team-group > header {
    grid-template-columns: 1fr;
  }

  .project-task-team-group dl {
    justify-content: space-between;
  }

  .project-task-board {
    grid-template-columns: repeat(4, minmax(82vw, 1fr));
    max-width: calc(100vw - 24px);
    min-width: 0;
    scroll-snap-type: x proximity;
    width: 100%;
  }

  .project-checklist-table.board-view {
    max-width: calc(100vw - 24px);
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  .project-task-board-column {
    scroll-snap-align: start;
  }

  .project-task-completed-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-task-view-note {
    align-items: flex-start;
    display: grid;
  }

  .project-task-card-actions {
    justify-content: flex-end;
  }

  .project-checklist-table.task-view {
    border: 0;
    max-height: none;
    overflow: visible;
  }

  .project-checklist-table.task-view table,
  .project-checklist-table.task-view tbody,
  .project-checklist-table.task-view tr,
  .project-checklist-table.task-view td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .project-checklist-table.task-view thead {
    display: none;
  }

  .project-checklist-table.task-view tr {
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    margin-bottom: 7px;
    padding: 7px;
  }

  .project-checklist-table.task-view td {
    border: 0;
    padding: 4px;
  }

  .project-task-drawer {
    border-left: 0;
    max-width: none;
    width: 100%;
  }

  .project-task-core-fields,
  .project-task-related-grid,
  .project-task-collaborators,
  .project-task-link-form,
  .project-task-follow-up-form {
    grid-template-columns: 1fr;
  }

  .project-task-core-fields .wide,
  .project-task-section-head {
    grid-column: auto;
  }

  .project-task-related-grid .project-task-drawer-section {
    border-right: 0;
  }
}

.legal-date-group {
  display: grid;
  gap: 8px;
}

.legal-date-group > strong {
  color: #334155;
  font-size: 13px;
}

.legal-date-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 128px minmax(160px, 1fr) minmax(130px, .75fr) minmax(120px, .7fr) minmax(170px, 1fr) minmax(160px, 1fr) auto auto auto minmax(64px, auto);
  padding: 6px;
}

.legal-date-save-status {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  min-width: 58px;
}

.legal-date-save-status.saved {
  color: #15803d;
}

.legal-date-today {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #1d4ed8;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
}

.argument-outline-card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 8px;
}

.supporting-points-add-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(320px, 1.45fr) minmax(80px, 1fr) auto;
  margin-bottom: 8px;
}

.supporting-points-add-row span {
  background: #111827;
  display: block;
  height: 2px;
}

.supporting-points-list-layout {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.25fr);
}

.supporting-points-list-layout.list-only {
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.25fr);
}

.supporting-points-list-layout.list-only::after {
  content: "";
  display: block;
}

.supporting-point-simple-list {
  display: grid;
  gap: 8px;
}

.supporting-point-drawer-list,
.argument-outline-drawer-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.supporting-point-drawer-row,
.argument-outline-drawer-row {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  overflow: hidden;
}

.supporting-point-drawer-row > summary,
.argument-outline-drawer-row > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  list-style: none;
  padding: 8px 10px;
}

.supporting-point-drawer-row > summary {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.supporting-point-drawer-row > summary::-webkit-details-marker,
.argument-outline-drawer-row > summary::-webkit-details-marker {
  display: none;
}

.supporting-point-drawer-row > summary em,
.argument-outline-drawer-row > summary em {
  background: #f8fafc;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 3px 7px;
}

.supporting-point-drawer-row[open] > summary em,
.argument-outline-drawer-row[open] > summary em {
  background: #eef4ff;
}

.supporting-point-drawer-row > .supporting-point-detail-frame {
  border: 0;
  border-radius: 0;
  border-top: 1px solid #e5e7eb;
  box-shadow: none;
}

.argument-outline-drawer-row > .argument-outline-card {
  border: 0;
  border-radius: 0;
  border-top: 1px solid #e5e7eb;
}

.argument-outline-drawer-row summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.argument-outline-drawer-row summary strong {
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argument-outline-drawer-row summary small {
  color: var(--muted);
  font-size: 11px;
}

.supporting-point-list-row {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 8px;
}

.supporting-point-list-row.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.supporting-point-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.supporting-point-row-main strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supporting-point-row-main span,
.supporting-point-row-counts {
  color: #64748b;
  font-size: 12px;
}

.supporting-point-row-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.supporting-point-detail-frame {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
  padding: 10px;
  position: sticky;
  top: 12px;
}

.supporting-point-detail-frame.empty {
  color: #64748b;
  min-height: 130px;
}

.supporting-point-detail-head {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 8px;
}

.supporting-point-detail-head > div:first-child {
  display: grid;
  gap: 2px;
}

.supporting-point-detail-head strong {
  font-size: 15px;
}

.supporting-point-detail-head span {
  color: #64748b;
  font-size: 12px;
}

.supporting-point-body {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.supporting-point-fields,
.argument-outline-head,
.argument-outline-actions {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, .7fr) auto;
}

.supporting-point-fields .argument-tag-picker {
  grid-column: 1 / -1;
}

.supporting-point-detail-frame .supporting-point-name-field {
  grid-column: 1 / -1;
}

.supporting-point-detail-frame .supporting-point-name-field input {
  box-sizing: border-box;
  width: 100%;
}

.supporting-point-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.argument-outline-card {
  display: grid;
  gap: 8px;
}

.argument-outline-card textarea {
  min-height: 110px;
}

.argument-support-candidates button {
  text-align: left;
}

.supporting-point-check-row,
.argument-checklist-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 6px 8px;
}

.supporting-point-check-row.finished,
.argument-checklist-row.finished {
  color: #64748b;
  text-decoration: line-through;
}

.files-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.files-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.files-storage-used {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8 !important;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.files-header-actions {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, max-content);
  justify-content: end;
  grid-area: files-list-actions;
  min-width: 0;
  padding: 8px 10px;
}

.files-list-controls {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-areas: "files-filter-summary files-list-actions";
  grid-template-columns: minmax(520px, 1fr) max-content;
  margin-bottom: 10px;
}

.files-list-controls:has(.files-filter-panel[open]) {
  grid-template-areas:
    "files-filter-summary files-list-actions"
    "files-filter-body files-filter-body";
}

.files-view-select,
.files-bucket-select,
.files-sort-select {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
}

.files-view-select select,
.files-bucket-select select,
.files-sort-select select {
  min-height: 34px;
  min-width: 150px;
}

.files-bucket-select select {
  min-width: 180px;
}

.files-sort-select select {
  min-width: 230px;
}

.files-bucket-overview {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
  padding: 10px;
}

.files-bucket-overview-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 0.45fr) minmax(420px, 1fr);
}

.files-bucket-overview-head > div:first-child {
  display: grid;
  gap: 3px;
}

.files-bucket-overview-head strong {
  color: #1f2937;
  font-size: 13px;
}

.files-bucket-overview-head span {
  color: var(--muted);
  font-size: 12px;
}

.files-bucket-create-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.45fr) minmax(180px, 0.65fr) auto;
}

.files-bucket-cards {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.files-bucket-card-shell {
  min-width: 0;
  position: relative;
}

.files-bucket-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 8px 9px;
  text-align: left;
  width: 100%;
}

.files-bucket-card:hover,
.files-bucket-card.active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.files-bucket-card.active {
  background: #eff6ff;
}

.files-bucket-card strong {
  color: #1f2937;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-bucket-card-shell:has(.files-bucket-rename) .files-bucket-card strong {
  padding-right: 28px;
}

.files-bucket-rename {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 26px;
  z-index: 1;
}

.files-bucket-rename:hover,
.files-bucket-rename:focus-visible {
  border-color: #60a5fa;
  color: #1d4ed8;
  outline: none;
}

.files-bucket-rename svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 15px;
}

.files-bucket-rename::marker {
  content: "";
}

.files-bucket-rename::-webkit-details-marker {
  display: none;
}

.files-bucket-menu[open] .files-bucket-rename {
  border-color: #60a5fa;
}

.files-bucket-menu-actions {
  position: absolute;
  z-index: 3;
  top: 36px;
  right: 7px;
  display: grid;
  min-width: 108px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px #0f172a20;
}

.files-bucket-menu-actions button {
  padding: 6px 9px;
  text-align: left;
  background: transparent;
  border: 0;
  color: #1f2937;
}

.files-bucket-menu-actions button:hover,
.files-bucket-menu-actions button:focus-visible {
  background: #eff6ff;
}

.files-bucket-menu-actions .files-bucket-menu-delete {
  color: #b42318;
}

.files-archived-buckets {
  grid-column: 1 / -1;
}

.files-archived-buckets > summary {
  padding: 5px 0;
  cursor: pointer;
}

.files-archived-buckets > .files-bucket-cards {
  padding-top: 4px;
}

.files-bucket-card span,
.files-bucket-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-filter-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-area: files-filter-summary;
  margin-bottom: 0;
  min-width: 0;
}

.files-filter-panel[open] {
  display: contents;
}

.files-filter-panel[open] > .files-filter-summary-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-area: files-filter-summary;
}

.files-filter-panel[open] > .files-filter-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-area: files-filter-body;
}

.files-filter-summary-row {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 640px) max-content;
  list-style: none;
  min-height: 38px;
  padding: 8px 10px;
}

.files-filter-summary-row::-webkit-details-marker {
  display: none;
}

.files-filter-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.files-filter-title strong {
  color: #111827;
  font-size: 13px;
}

.files-filter-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-filter-toggle {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #1f2937;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.files-filter-summary-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-self: end;
  white-space: nowrap;
}

.files-clear-filters {
  min-height: 28px;
  white-space: nowrap;
}

.files-clear-filters[hidden] {
  display: none;
}

.files-filter-header-search {
  cursor: text;
  justify-self: end;
  max-width: 640px;
  min-width: 0;
  width: 100%;
}

.files-filter-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 10px;
}

.files-filter-grid,
.files-advanced-filter-grid,
.files-upload-row,
.files-bulk-bar {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.files-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.files-advanced-filter-grid {
  background: #f8fafc;
  border: 0;
  border-radius: 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 0;
  padding: 0;
}

.files-advanced-filter-grid label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 3px;
}

.files-upload-area {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(420px, 1.25fr) minmax(280px, 0.75fr);
  margin: 0;
}

.files-ingest-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.files-ingest-summary {
  align-items: center;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  padding: 8px 10px;
}

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

.files-ingest-title {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.files-help-mark {
  align-items: center;
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 50%;
  color: #475569;
  cursor: help;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.files-ingest-toggle-text {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #1f2937;
  font-size: 12px;
  padding: 5px 9px;
}

.files-ingest-toggle-text .when-open,
.files-ingest-panel[open] .files-ingest-toggle-text .when-closed {
  display: none;
}

.files-ingest-panel[open] .files-ingest-toggle-text .when-open {
  display: inline;
}

.files-ingest-help {
  border-top: 1px solid var(--line);
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 9px 10px 0;
}

.files-ingest-panel .files-upload-area {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px;
}

.files-upload-stack {
  display: grid;
  gap: 8px;
}

.files-upload-row {
  grid-template-columns: minmax(220px, 0.5fr) minmax(260px, 1fr) auto auto;
  margin-bottom: 0;
}

.files-drop-zone {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #243041;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  margin: 0;
  min-height: 88px;
  overflow: hidden;
  padding: 10px 12px;
  position: relative;
  text-align: center;
}

.files-drop-zone strong {
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.files-drop-zone span {
  color: var(--muted);
  font-size: 12px;
  position: relative;
  z-index: 2;
}

.files-drop-mascot-stage {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.files-drop-mascot {
  --mascot-color: #ef4444;
  --mascot-accent: #facc15;
  --mascot-start-left: -46px;
  --mascot-end-left: calc(100% + 46px);
  height: 40px;
  left: var(--mascot-start-left);
  position: absolute;
  top: var(--mascot-y, 48%);
  transform: translateY(-50%);
  width: 40px;
}

.files-drop-mascot.direction-left {
  --mascot-start-left: calc(100% + 46px);
  --mascot-end-left: -46px;
}

.mascot-body {
  background: var(--mascot-color);
  border: 2px solid #111827;
  border-radius: 10px 10px 8px 8px;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.16);
  display: block;
  height: 28px;
  left: 6px;
  position: absolute;
  top: 5px;
  width: 28px;
}

.mascot-face {
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 7px;
  display: block;
  height: 12px;
  left: 5px;
  position: absolute;
  top: 6px;
  width: 18px;
}

.mascot-face i {
  background: #111827;
  border-radius: 999px;
  display: block;
  height: 3px;
  position: absolute;
  top: 4px;
  width: 3px;
}

.mascot-face i:first-child {
  left: 4px;
}

.mascot-face i:last-child {
  right: 4px;
}

.mascot-ears {
  border-bottom: 8px solid #111827;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  display: block;
  height: 0;
  left: 9px;
  position: absolute;
  top: -9px;
  width: 8px;
}

.mascot-belly {
  background: var(--mascot-accent);
  border: 2px solid #111827;
  border-radius: 999px;
  bottom: 3px;
  display: block;
  height: 7px;
  left: 9px;
  position: absolute;
  width: 9px;
}

.mascot-limb {
  background: #111827;
  border-radius: 4px;
  display: block;
  height: 10px;
  position: absolute;
  top: 23px;
  width: 5px;
}

.limb-one {
  left: 7px;
}

.limb-two {
  right: 7px;
}

.mascot-shadow {
  background: rgba(17, 24, 39, 0.18);
  border-radius: 999px;
  bottom: 0;
  display: block;
  height: 6px;
  left: 7px;
  position: absolute;
  width: 26px;
}

.mascot-trail,
.mascot-puff {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(17, 24, 39, 0.35);
  border-radius: 999px;
  display: block;
  opacity: 0;
  position: absolute;
}

.mascot-trail {
  height: 8px;
  left: -4px;
  top: 17px;
  width: 8px;
}

.mascot-puff {
  background: #d9f99d;
  height: 10px;
  left: -8px;
  top: 21px;
  width: 10px;
}

.mascot-coin-runner .mascot-body {
  border-radius: 999px;
}

.mascot-neon-ninja .mascot-ears {
  border-bottom-color: var(--mascot-accent);
  left: 4px;
  width: 18px;
}

.mascot-star-skater .mascot-body {
  border-radius: 8px 13px 8px 13px;
}

.mascot-rocket-bot .mascot-body {
  border-radius: 6px;
}

.mascot-bubble-knight .mascot-face {
  border-radius: 999px;
}

.files-drop-mascot.action-run {
  animation: mascot-run 5.4s linear forwards;
}

.files-drop-mascot.action-fall {
  animation: mascot-fall 4.8s ease-in forwards;
}

.files-drop-mascot.action-dive {
  animation: mascot-dive 4.9s cubic-bezier(.2, .72, .2, 1) forwards;
}

.files-drop-mascot.action-jump {
  animation: mascot-jump 5.2s cubic-bezier(.2, .75, .25, 1) forwards;
}

.files-drop-mascot.action-crawl {
  animation: mascot-crawl 6.2s linear forwards;
}

.files-drop-mascot.action-fly {
  animation: mascot-fly 5.6s ease-in-out forwards;
}

.files-drop-mascot.action-puff {
  animation: mascot-puff-run 4.8s ease-out forwards;
}

.files-drop-mascot.action-run .mascot-limb,
.files-drop-mascot.action-crawl .mascot-limb {
  animation: mascot-legs .28s steps(2, end) infinite;
}

.files-drop-mascot.action-jump .mascot-body {
  animation: mascot-spin 1.1s steps(4, end) infinite;
}

.files-drop-mascot.action-fall .mascot-body,
.files-drop-mascot.action-dive .mascot-body {
  animation: mascot-tumble .8s steps(4, end) infinite;
}

.files-drop-mascot.action-fly .mascot-trail {
  animation: mascot-trail 1s ease-in-out infinite;
}

.files-drop-mascot.action-puff .mascot-puff {
  animation: mascot-puff 1.1s ease-out .7s 3;
}

@keyframes mascot-run {
  0% { left: var(--mascot-start-left); transform: translateY(-50%); }
  25% { left: 25%; transform: translateY(-62%); }
  50% { left: 50%; transform: translateY(-46%); }
  75% { left: 75%; transform: translateY(-58%); }
  100% { left: var(--mascot-end-left); transform: translateY(-50%); }
}

@keyframes mascot-fall {
  0% { left: var(--mascot-start-left); transform: translateY(-92%) rotate(0deg); }
  45% { left: 45%; transform: translateY(-20%) rotate(230deg); }
  72% { left: 72%; transform: translateY(-42%) rotate(310deg); }
  100% { left: var(--mascot-end-left); transform: translateY(-6%) rotate(390deg); }
}

@keyframes mascot-dive {
  0% { left: var(--mascot-start-left); transform: translateY(-94%) rotate(-22deg); }
  35% { left: 34%; transform: translateY(-32%) rotate(22deg); }
  60% { left: 60%; transform: translateY(-70%) rotate(-12deg); }
  100% { left: var(--mascot-end-left); transform: translateY(-118%) rotate(12deg); }
}

@keyframes mascot-jump {
  0% { left: var(--mascot-start-left); transform: translateY(-42%); }
  25% { left: 25%; transform: translateY(-118%); }
  50% { left: 50%; transform: translateY(-38%); }
  72% { left: 72%; transform: translateY(-102%); }
  100% { left: var(--mascot-end-left); transform: translateY(-42%); }
}

@keyframes mascot-crawl {
  0% { left: var(--mascot-start-left); transform: translateY(-8%) scaleY(.62); }
  45% { left: 45%; transform: translateY(-10%) scaleY(.62); }
  80% { left: 80%; transform: translateY(-12%) scaleY(.62); }
  100% { left: var(--mascot-end-left); transform: translateY(-8%) scaleY(.62); }
}

@keyframes mascot-fly {
  0% { left: var(--mascot-start-left); transform: translateY(-78%) rotate(-8deg); }
  25% { left: 25%; transform: translateY(-128%) rotate(8deg); }
  55% { left: 55%; transform: translateY(-62%) rotate(-4deg); }
  80% { left: 80%; transform: translateY(-118%) rotate(6deg); }
  100% { left: var(--mascot-end-left); transform: translateY(-76%) rotate(-6deg); }
}

@keyframes mascot-puff-run {
  0% { left: var(--mascot-start-left); transform: translateY(-52%); }
  18% { left: 18%; transform: translateY(-52%); }
  38% { left: 39%; transform: translateY(-46%) scale(1.12); }
  100% { left: var(--mascot-end-left); transform: translateY(-50%) scale(.92); }
}

@keyframes mascot-legs {
  from { transform: translateY(0) rotate(-12deg); }
  to { transform: translateY(2px) rotate(16deg); }
}

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

@keyframes mascot-tumble {
  to { transform: rotate(360deg); }
}

@keyframes mascot-trail {
  0% { opacity: 0; transform: translateX(0) scale(.6); }
  50% { opacity: .75; transform: translateX(-12px) scale(1.1); }
  100% { opacity: 0; transform: translateX(-22px) scale(.7); }
}

@keyframes mascot-puff {
  0% { opacity: 0; transform: translateX(0) scale(.3); }
  40% { opacity: .8; transform: translateX(-14px) scale(1); }
  100% { opacity: 0; transform: translateX(-32px) scale(1.6); }
}

.files-drop-zone.drag-over,
.files-page.drag-over .files-drop-zone {
  background: #eff6ff;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.files-upload-status {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
  padding: 9px 10px;
}

.files-upload-status[hidden] {
  display: none;
}

.files-upload-status-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.files-upload-status-head strong {
  color: #1f2937;
  font-size: 13px;
}

.files-upload-status-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.files-upload-log {
  display: grid;
  gap: 5px;
  max-height: 132px;
  overflow: auto;
}

.files-upload-log.empty {
  color: var(--muted);
  font-size: 12px;
}

.files-upload-log-row {
  align-items: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  padding: 7px 8px;
}

.files-upload-log-row.clickable-upload {
  cursor: pointer;
}

.files-upload-log-row.clickable-upload:hover,
.files-upload-log-row.clickable-upload:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.upload-log-dot {
  border-radius: 999px;
  height: 8px;
  margin-top: 5px;
  width: 8px;
}

.files-upload-log-row.success .upload-log-dot {
  background: #059669;
}

.files-upload-log-row.warning .upload-log-dot,
.files-upload-log-row.pending .upload-log-dot {
  background: #d97706;
}

.files-upload-log-row.error .upload-log-dot {
  background: var(--red);
}

.upload-log-main {
  min-width: 0;
}

.upload-log-main strong {
  color: #111827;
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-log-main span {
  color: #475569;
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.upload-log-meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.upload-log-progress {
  background: #e5e7eb;
  border-radius: 999px;
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  width: 100%;
}

.upload-log-progress i {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.files-upload-log-row.success .upload-log-progress i {
  background: #059669;
}

.files-upload-log-row.error .upload-log-progress i {
  background: var(--red);
}

.upload-log-badge {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
  white-space: nowrap;
}

.files-upload-log-row.success .upload-log-badge {
  background: #ecfdf3;
  color: #047857;
}

.upload-log-open {
  border: 1px solid #bbf7d0;
  cursor: pointer;
}

.files-upload-log-row.warning .upload-log-badge,
.files-upload-log-row.pending .upload-log-badge {
  background: #fffbeb;
  color: #92400e;
}

.files-upload-log-row.error .upload-log-badge {
  background: #fff1f0;
  color: var(--red);
}

.files-actions-drop-layout {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  margin-bottom: 10px;
}

.files-bulk-bar {
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

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

.files-bulk-action {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.files-bulk-action > input,
.files-bulk-action > select,
.files-bulk-action > button,
.files-bulk-archive {
  min-width: 0;
  width: 100%;
}

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

.files-workbench.file-detail-open {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.files-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: min(72vh, 820px);
  min-height: min(520px, 62vh);
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #94a3b8 #eef2f7;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: auto;
}

.files-table-wrap::-webkit-scrollbar {
  height: 14px;
  width: 14px;
}

.files-table-wrap::-webkit-scrollbar-track {
  background: #eef2f7;
  border-radius: 999px;
}

.files-table-wrap::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border: 3px solid #eef2f7;
  border-radius: 999px;
}

.files-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.files-table {
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.3;
  min-width: 2388px;
  table-layout: fixed;
  width: 100%;
}

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

.files-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  position: sticky;
  top: 0;
  white-space: nowrap;
  z-index: 2;
}

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

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

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

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

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

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

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

.files-table th:nth-child(8),
.files-table td:nth-child(8) {
  width: 90px;
}

.files-table th:nth-child(9),
.files-table td:nth-child(9) {
  width: 170px;
}

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

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

.files-table th:nth-child(12),
.files-table td:nth-child(12) {
  width: 190px;
}

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

.files-table th:nth-child(14),
.files-table td:nth-child(14) {
  width: 110px;
}

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

.files-table th:nth-child(16),
.files-table td:nth-child(16) {
  width: 145px;
}

.files-table th:nth-child(17),
.files-table td:nth-child(17) {
  width: 145px;
}

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

.file-transcript-pill {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-grid;
  height: 24px;
  justify-content: center;
  margin-right: 6px;
  padding: 0;
  vertical-align: middle;
  width: 24px;
}

.file-transcript-pill svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 17px;
}

.file-transcript-pill.ready {
  background: #ecfdf5;
  border-color: #86efac;
  color: #047857;
}

.file-transcript-pill.pending {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.file-transcript-pill.failed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.files-transcript-toggle:hover,
.files-transcript-toggle[aria-expanded="true"] {
  background: #dbeafe;
}

.files-transcript-toggle[aria-expanded="true"] {
  border-color: #60a5fa;
}

.files-table .files-saved-transcript-row,
.files-table .files-transcript-copy-row {
  background: #f5f8fc;
}

.files-saved-transcript {
  align-items: center;
  border-inline-start: 2px solid #b8cce5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline-start: 20px;
  min-height: 34px;
  padding-inline-start: 12px;
  text-align: start;
}

.files-saved-transcript button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.files-saved-transcript svg {
  height: 16px;
  width: 16px;
}

.saved-transcript-list {
  display: grid;
  gap: 6px;
}

.audio-transcript-body .files-saved-transcript {
  margin-inline-start: 0;
}

.saved-transcript-actions,
.transcript-file-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.transcript-file-copy {
  padding: 6px 8px;
}

.transcript-file-copy strong {
  overflow-wrap: anywhere;
}

.transcript-file-copy small {
  color: #475569;
}

.files-transcript-copy-label {
  border-inline-start: 2px solid #b8cce5;
  color: #475569;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-inline-end: 6px;
  padding-inline-start: 7px;
}

.files-table-wrap.compact-view {
  overflow-x: auto;
}

.files-table.compact-view {
  min-width: 1180px;
  width: 100%;
}

.files-table.compact-view th:nth-child(1),
.files-table.compact-view td:nth-child(1) {
  text-align: center;
  width: 42px;
}

.files-table.compact-view th:nth-child(2),
.files-table.compact-view td:nth-child(2) {
  width: 82px;
}

.files-table.compact-view th:nth-child(3),
.files-table.compact-view td:nth-child(3) {
  width: 108px;
}

.files-table.compact-view th:nth-child(4),
.files-table.compact-view td:nth-child(4) {
  width: auto;
}

.files-table.compact-view th:nth-child(5),
.files-table.compact-view td:nth-child(5) {
  width: 155px;
}

.files-table.compact-view th:nth-child(6),
.files-table.compact-view td:nth-child(6),
.files-table.compact-view th:nth-child(7),
.files-table.compact-view td:nth-child(7),
.files-table.compact-view th:nth-child(8),
.files-table.compact-view td:nth-child(8),
.files-table.compact-view th:nth-child(9),
.files-table.compact-view td:nth-child(9),
.files-table.compact-view th:nth-child(10),
.files-table.compact-view td:nth-child(10) {
  text-align: center;
}

.files-table.compact-view th:nth-child(6),
.files-table.compact-view td:nth-child(6) {
  width: 88px;
}

.files-table.compact-view th:nth-child(7),
.files-table.compact-view td:nth-child(7) {
  width: 90px;
}

.files-table.compact-view th:nth-child(8),
.files-table.compact-view td:nth-child(8),
.files-table.compact-view th:nth-child(9),
.files-table.compact-view td:nth-child(9),
.files-table.compact-view th:nth-child(10),
.files-table.compact-view td:nth-child(10) {
  width: 58px;
}

.files-table.compact-view th:nth-child(11),
.files-table.compact-view td:nth-child(11),
.files-table.compact-view th:nth-child(12),
.files-table.compact-view td:nth-child(12) {
  width: 78px;
}

.compact-file-name-line,
.compact-file-title-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-file-secondary,
.compact-file-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
}

.compact-file-secondary {
  margin-top: 3px;
}

.compact-file-title-line {
  color: #475569;
  flex: 1 1 16rem;
  min-width: 0;
}

.compact-file-badges .file-transcript-pill {
  margin-inline-end: 0;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(1),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(1) {
  text-align: center;
  width: 42px;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(2),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(2) {
  width: 76px;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(3),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(3) {
  width: 100px;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(5),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(5) {
  width: 135px;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(6),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(6) {
  width: 78px;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(7),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(7) {
  width: 82px;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(8),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(8),
.files-workbench.file-detail-open .files-table.compact-view th:nth-child(9),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(9),
.files-workbench.file-detail-open .files-table.compact-view th:nth-child(10),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(10) {
  width: 52px;
}

.files-workbench.file-detail-open .files-table.compact-view th:nth-child(11),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(11),
.files-workbench.file-detail-open .files-table.compact-view th:nth-child(12),
.files-workbench.file-detail-open .files-table.compact-view td:nth-child(12) {
  width: 70px;
}

.files-table-wrap.preview-view {
  overflow-x: hidden;
}

.files-table.preview-view {
  min-width: 0;
  width: 100%;
}

.files-table.preview-view th:nth-child(1),
.files-table.preview-view td:nth-child(1) {
  text-align: center;
  width: 42px;
}

.files-table.preview-view th:nth-child(2),
.files-table.preview-view td:nth-child(2) {
  width: 98px;
}

.files-table.preview-view th:nth-child(3),
.files-table.preview-view td:nth-child(3) {
  width: 250px;
}

.files-table.preview-view th:nth-child(4),
.files-table.preview-view td:nth-child(4) {
  width: auto;
}

.files-table.preview-view th:nth-child(5),
.files-table.preview-view td:nth-child(5) {
  width: 145px;
}

.files-table.preview-view th:nth-child(6),
.files-table.preview-view td:nth-child(6) {
  width: 160px;
}

.files-table.preview-view th:nth-child(7),
.files-table.preview-view td:nth-child(7),
.files-table.preview-view th:nth-child(8),
.files-table.preview-view td:nth-child(8),
.files-table.preview-view th:nth-child(9),
.files-table.preview-view td:nth-child(9) {
  text-align: center;
  width: 50px;
}

.files-table.preview-view th:nth-child(10),
.files-table.preview-view td:nth-child(10) {
  width: 112px;
}

.files-table.preview-view th:nth-child(11),
.files-table.preview-view td:nth-child(11),
.files-table.preview-view th:nth-child(12),
.files-table.preview-view td:nth-child(12) {
  width: 70px;
}

.files-workbench.file-detail-open .files-table.preview-view th:nth-child(2),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(2) {
  width: 78px;
}

.files-workbench.file-detail-open .files-table.preview-view th:nth-child(3),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(3) {
  width: 200px;
}

.files-workbench.file-detail-open .files-table.preview-view th:nth-child(5),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(5),
.files-workbench.file-detail-open .files-table.preview-view th:nth-child(6),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(6),
.files-workbench.file-detail-open .files-table.preview-view th:nth-child(10),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(10) {
  width: 118px;
}

.files-workbench.file-detail-open .files-table.preview-view th:nth-child(7),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(7),
.files-workbench.file-detail-open .files-table.preview-view th:nth-child(8),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(8),
.files-workbench.file-detail-open .files-table.preview-view th:nth-child(9),
.files-workbench.file-detail-open .files-table.preview-view td:nth-child(9) {
  width: 44px;
}

.files-table.evidence-view {
  min-width: 1500px;
}

.files-table.evidence-view th:nth-child(1),
.files-table.evidence-view td:nth-child(1),
.files-table.evidence-view th:nth-child(2),
.files-table.evidence-view td:nth-child(2) {
  width: 95px;
}

.files-table.evidence-view th:nth-child(3),
.files-table.evidence-view td:nth-child(3) {
  width: 200px;
}

.files-table.evidence-view th:nth-child(4),
.files-table.evidence-view td:nth-child(4) {
  width: 260px;
}

.files-table.evidence-view th:nth-child(5),
.files-table.evidence-view td:nth-child(5) {
  width: 130px;
}

.files-table.evidence-view th:nth-child(6),
.files-table.evidence-view td:nth-child(6) {
  width: 220px;
}

.files-table.evidence-view th:nth-child(7),
.files-table.evidence-view td:nth-child(7) {
  width: 160px;
}

.files-table.evidence-view th:nth-child(8),
.files-table.evidence-view td:nth-child(8) {
  width: 220px;
}

.files-table.evidence-view th:nth-child(9),
.files-table.evidence-view td:nth-child(9) {
  width: 210px;
}

.files-table.review-view {
  min-width: 1270px;
}

.files-table.review-view th:nth-child(1),
.files-table.review-view td:nth-child(1) {
  width: 42px;
}

.files-table.review-view th:nth-child(2),
.files-table.review-view td:nth-child(2) {
  width: 275px;
}

.files-table.review-view th:nth-child(3),
.files-table.review-view td:nth-child(3) {
  width: 135px;
}

.files-table.review-view th:nth-child(4),
.files-table.review-view td:nth-child(4) {
  width: 120px;
}

.files-table.review-view th:nth-child(5),
.files-table.review-view td:nth-child(5) {
  width: 120px;
}

.files-table.review-view th:nth-child(6),
.files-table.review-view td:nth-child(6) {
  width: 150px;
}

.files-table.review-view th:nth-child(7),
.files-table.review-view td:nth-child(7) {
  width: 160px;
}

.files-table.review-view th:nth-child(8),
.files-table.review-view td:nth-child(8) {
  width: 130px;
}

.files-table.review-view th:nth-child(9),
.files-table.review-view td:nth-child(9) {
  width: 130px;
}

.files-table.review-view th:nth-child(10),
.files-table.review-view td:nth-child(10) {
  width: 210px;
}

.files-table tbody tr:hover {
  background: #f8fafc;
}

.files-table tbody tr.files-clickable-row {
  cursor: pointer;
}

.files-table tbody tr.selected-row {
  background: #eff6ff;
}

.files-table tbody tr.active-file-row {
  background: #e0f2fe;
  box-shadow: inset 3px 0 0 #2563eb;
}

.files-table tbody tr.active-file-row:hover {
  background: #dbeafe;
}

.files-table tbody tr.upload-jump-row {
  background: #dbeafe;
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.files-table tbody tr.archived-row {
  color: #667085;
  opacity: 0.72;
}

.files-table .file-name-cell {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-table .compact-file-name {
  max-width: 35ch;
}

.file-count-cell {
  text-align: center;
}

.file-count-badge {
  background: #eef4ff;
  border: 1px solid #b7c9e9;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 28px;
  padding: 3px 8px;
}

.file-source-icon {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  margin-right: 5px;
  min-width: 20px;
  padding: 0 6px;
  vertical-align: middle;
}

.file-source-icon.drive {
  background: #e8f5e9;
  border-color: #9ad0a1;
  color: #17663a;
}

.file-source-icon.uploaded {
  background: #f8fafc;
  color: #475467;
}

.file-integrity-badges {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-right: 5px;
  vertical-align: middle;
}

.file-integrity-badge {
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  gap: 4px;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}

.file-integrity-badge.original {
  background: #eff6ff;
  color: #1d4ed8;
}

.file-integrity-badge.locked {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.file-lock-glyph {
  border: 1.5px solid currentColor;
  border-radius: 2px;
  display: inline-block;
  height: 8px;
  position: relative;
  width: 9px;
}

.file-lock-glyph::before {
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
  height: 6px;
  left: 1px;
  position: absolute;
  top: -7px;
  width: 5px;
}

.file-lock-action {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.file-lock-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: 8px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 800;
  margin: 8px 0;
  padding: 8px 10px;
}

.file-preview-cell {
  padding-bottom: 5px;
  padding-top: 5px;
}

.compact-file-preview-cell .file-preview-thumb,
.compact-file-preview-cell .file-preview-loading.thumb-loading {
  height: 48px;
  width: 68px;
}

.file-actual-date-cell {
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.file-inline-preview {
  min-width: 0;
}

.file-preview-loading,
.file-preview-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #475569;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.file-preview-loading span,
.file-preview-empty span,
.file-preview-thumb-fallback span {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  color: #075985;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 6px;
}

.file-preview-loading strong {
  color: #344054;
  font-size: 12px;
}

.file-preview-loading.thumb-loading {
  height: 56px;
  justify-content: center;
  padding: 4px;
}

.file-preview-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  height: 62px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 82px;
}

.file-preview-thumb:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.file-preview-thumb img,
.file-preview-thumb-frame {
  border: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  width: 100%;
}

.file-preview-thumb-frame {
  inset: 0;
  opacity: 0;
  position: absolute;
  z-index: 1;
}

.file-preview-thumb-pdf-idle {
  align-items: center;
  background: #f8fafc;
  color: #334155;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  line-height: 1.05;
  position: absolute;
  z-index: 2;
}

.file-preview-thumb-pdf-idle strong {
  color: #b42318;
  font-size: 12px;
}

.file-preview-thumb-pdf-idle small {
  font-size: 8px;
  margin-top: 3px;
}

.file-preview-thumb:hover .file-preview-thumb-frame,
.file-preview-thumb:focus-visible .file-preview-thumb-frame {
  opacity: 1;
  z-index: 3;
}

.file-preview-thumb:hover .file-preview-thumb-pdf-idle,
.file-preview-thumb:focus-visible .file-preview-thumb-pdf-idle {
  visibility: hidden;
}

.file-preview-node-parking {
  height: 1px;
  left: -10000px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 1px;
}

.file-preview-thumb pre {
  color: #344054;
  font: 8px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
  max-height: 100%;
  overflow: hidden;
  padding: 5px;
  text-align: left;
  white-space: pre-wrap;
  width: 100%;
}

@media (max-width: 1540px) {
  .files-actions-drop-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.32fr);
  }

  .files-list-controls {
    grid-template-areas:
      "files-filter-summary"
      "files-list-actions";
    grid-template-columns: minmax(0, 1fr);
  }

  .files-list-controls:has(.files-filter-panel[open]) {
    grid-template-areas:
      "files-filter-summary"
      "files-list-actions"
      "files-filter-body";
  }

  .files-header-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .files-view-select,
  .files-bucket-select,
  .files-sort-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .files-view-select select,
  .files-bucket-select select,
  .files-sort-select select {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .files-actions-drop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .files-drop-zone {
    min-height: 82px;
  }
}

.file-detail-preview-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 10px;
}

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

.file-detail-preview-head strong {
  color: #111827;
  display: block;
  font-size: 13px;
}

.file-detail-preview-head span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.file-detail-preview-body {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  min-height: 160px;
  overflow: hidden;
}

.file-preview-image,
.file-preview-frame,
.file-preview-video {
  border: 0;
  display: block;
  height: 260px;
  object-fit: contain;
  width: 100%;
}

.file-preview-audio {
  display: block;
  margin: 18px auto;
  width: min(100%, 340px);
}

.legacy-3gp-media {
  display: grid;
  gap: 8px;
  max-width: 100%;
  padding: 10px;
  width: 100%;
}

.legacy-3gp-media .file-preview-video,
.legacy-3gp-media .main-preview-media {
  height: auto;
  max-height: 360px;
}

.legacy-3gp-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 3px solid #ea580c;
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  padding: 7px 9px;
}

.file-preview-text {
  color: #344054;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.file-sms-thumb {
  align-items: center;
  background: #eef8f3;
  color: #166534;
  display: grid;
  gap: 2px;
  height: 100%;
  justify-items: center;
  padding: 8px;
  width: 100%;
}

.file-sms-thumb strong {
  font-size: 13px;
}

.file-sms-thumb small {
  color: #3f6f56;
  font-size: 9px;
  line-height: 1.1;
}

.file-sms-viewer {
  background: #f4f7fa;
  display: grid;
  gap: 0;
}

.file-sms-viewer-summary {
  align-items: start;
  background: #fff;
  border-bottom: 1px solid #dbe4ef;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.file-sms-viewer-summary > div {
  display: grid;
  gap: 2px;
}

.file-sms-viewer-summary strong {
  color: #142033;
  font-size: 13px;
}

.file-sms-viewer-summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.file-sms-message-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
}

.file-sms-message {
  background: #fff;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  max-width: 84%;
  padding: 8px 10px;
}

.file-sms-message.sent {
  align-self: flex-end;
  background: #dff1ff;
  border-color: #9dccef;
}

.file-sms-message.received,
.file-sms-message.unknown {
  align-self: flex-start;
}

.file-sms-message header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  justify-content: space-between;
}

.file-sms-message header strong {
  color: #142033;
  font-size: 11px;
}

.file-sms-message time,
.file-sms-message small {
  color: #64748b;
  font-size: 9px;
}

.file-sms-message p {
  color: #111827;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.file-sms-viewer-note {
  background: #fff;
  border-top: 1px solid #dbe4ef;
  color: #526274;
  font-size: 10px;
  line-height: 1.4;
  margin: 0;
  padding: 9px 12px;
}

.file-msg-preview {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.file-msg-preview-note {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
}

.file-msg-preview-note strong,
.file-msg-preview-note span {
  display: block;
}

.file-msg-preview-note span {
  color: #1e3a8a;
  font-size: 12px;
}

.file-msg-open-raw {
  grid-row: 1 / span 2;
  white-space: nowrap;
}

.file-msg-fields {
  display: grid;
  gap: 6px;
  margin: 0;
}

.file-msg-fields div {
  display: grid;
  gap: 8px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.file-msg-fields dt {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.file-msg-fields dd {
  color: #111827;
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

.file-msg-fields.compact {
  gap: 4px;
}

.file-msg-email-list {
  display: grid;
  gap: 10px;
}

.file-msg-email-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.file-msg-email-card-head {
  display: grid;
  gap: 3px;
}

.file-msg-email-card-head strong {
  color: #0f172a;
  font-size: 14px;
}

.file-msg-email-card-head time {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.file-msg-frame {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  height: 310px;
  width: 100%;
}

.file-detail-preview-body .stored-email-preview {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-detail-preview-body .stored-email-subject {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.file-detail-preview-body .stored-email-notice {
  color: #475569;
  font-size: 12px;
  margin: 0;
}

.file-msg-plain-text {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.file-msg-plain-text summary {
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.file-preview-empty {
  align-items: flex-start;
  display: flex;
  min-height: 92px;
}

.file-preview-empty p {
  margin: 0;
}

.files-table .file-muted-cell {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-table .file-size-cell {
  color: #475569;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.files-table .storage-location-cell {
  min-width: 0;
}

.file-storage-location {
  display: grid;
  gap: 3px;
  max-width: 155px;
}

.file-storage-location .file-storage-status {
  margin-top: 0;
}

.file-storage-location small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-table.compact-view .compact-storage-cell .file-storage-location {
  max-width: 145px;
}

.files-table.compact-view .compact-storage-cell .file-storage-location small {
  display: none;
}

.file-bucket-location {
  display: grid;
  gap: 3px;
  max-width: 155px;
}

.file-bucket-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  padding: 3px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
}

.file-bucket-location small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-bucket-storage-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.files-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.files-action-row .small-button {
  min-height: 28px;
  padding: 0 8px;
}

.file-status-pill {
  background: #eef4ff;
  border: 1px solid #b7c9e9;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
  white-space: nowrap;
}

.drive-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.46);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

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

.drive-modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  max-height: min(760px, 92vh);
  overflow: hidden;
  padding: 12px;
  width: min(1040px, 96vw);
}

.drive-modal-header,
.drive-browser-toolbar,
.drive-import-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.drive-modal-header h3 {
  margin: 0;
}

.drive-modal-header span,
#driveFolderLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.drive-connect-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
  margin-bottom: 10px;
}

.drive-browser-toolbar {
  justify-content: start;
}

.drive-browser-toolbar input {
  flex: 1;
  min-width: 220px;
}

.drive-file-list-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: min(460px, 52vh);
  overflow: auto;
}

.drive-file-list {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

.drive-file-list th,
.drive-file-list td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
}

.drive-file-list th {
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

.drive-file-list tr.drive-folder-row {
  cursor: pointer;
  font-weight: 800;
}

.drive-file-list tbody tr:hover {
  background: #f8fafc;
}

.file-edit-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: min(78vh, 860px);
  overflow: auto;
  padding: 12px;
  position: sticky;
  top: 10px;
}

.file-edit-panel:empty {
  display: none;
}

.sensitive-email-banner {
  padding: 5px 10px;
  background: #a61b1b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.file-edit-header {
  align-items: start;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 10px;
  padding-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.file-edit-header-copy {
  min-width: 0;
}

.file-edit-header h3 {
  margin: 0;
}

.file-edit-file-name {
  color: #111827;
  display: block;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-edit-save-state {
  margin-top: 7px;
}

.file-edit-toolbar {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.file-toolbar-icon {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #1e3a8a;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.file-toolbar-icon:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.file-toolbar-icon:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.file-toolbar-icon.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.file-toolbar-icon.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.file-toolbar-icon.close {
  color: #475569;
}

.file-toolbar-icon:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.file-toolbar-icon svg {
  fill: none;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.file-lock-action.is-locked {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.file-lock-action.is-unlocked {
  background: #ecfdf5;
  border-color: #86efac;
  color: #15803d;
}

.file-edit-secondary-actions {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  padding-top: 8px;
}

.file-create-event-button {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.file-create-event-button svg {
  fill: none;
  height: 15px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.file-ocr-action {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.file-ocr-action svg {
  fill: none;
  height: 15px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.file-picture-ocr-panel {
  background: #f8fbff;
  border: 1px solid #93c5fd;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}

.file-picture-ocr-panel.file-picture-ocr-complete {
  animation: picture-ocr-complete 5s ease-out;
}

@keyframes picture-ocr-complete {
  0%, 30% {
    background: #ecfdf3;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  }
  100% {
    background: #f8fbff;
    border-color: #93c5fd;
    box-shadow: none;
  }
}

.file-picture-ocr-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 10px;
}

.file-picture-ocr-heading::-webkit-details-marker {
  display: none;
}

.file-picture-ocr-heading::after {
  color: #2563eb;
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.file-picture-ocr-panel[open] > .file-picture-ocr-heading::after {
  content: "−";
}

.file-picture-ocr-body {
  border-top: 1px solid #dbeafe;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.file-picture-ocr-heading > div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.file-picture-ocr-heading strong {
  color: #1e3a8a;
  font-size: 14px;
}

.file-picture-ocr-heading span,
.file-picture-ocr-heading small {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.file-picture-ocr-heading small {
  max-width: 62%;
  text-align: right;
}

.file-picture-ocr-panel label {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.file-picture-ocr-panel textarea {
  background: #fff;
  font-family: inherit;
  line-height: 1.45;
  margin-top: 5px;
  min-height: 170px;
  resize: vertical;
  width: 100%;
}

.file-picture-ocr-warnings {
  color: #9a3412;
  font-size: 11px;
  margin: 0;
}

@media (max-width: 700px) {
  .file-picture-ocr-heading {
    display: grid;
  }

  .file-picture-ocr-heading small {
    max-width: none;
    text-align: left;
  }
}

.file-edit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.file-edit-summary > span,
.file-summary-link,
.file-summary-navigation > summary {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 7px;
}

.file-summary-link,
.file-summary-navigation > summary {
  cursor: pointer;
  font-family: inherit;
}

.file-summary-link:hover,
.file-summary-navigation > summary:hover,
.file-summary-navigation[open] > summary {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.file-summary-navigation {
  position: relative;
}

.file-summary-navigation > summary {
  display: block;
  list-style: none;
}

.file-summary-navigation > summary::-webkit-details-marker {
  display: none;
}

.file-summary-navigation-menu {
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  display: grid;
  gap: 4px;
  left: 0;
  max-height: 260px;
  min-width: min(320px, calc(100vw - 44px));
  overflow: auto;
  padding: 6px;
  position: absolute;
  top: calc(100% + 4px);
  z-index: 12;
}

.file-summary-navigation-menu button {
  background: #ffffff;
  border: 0;
  border-radius: 5px;
  color: #1f2937;
  cursor: pointer;
  display: grid;
  font-family: inherit;
  gap: 2px;
  padding: 7px 8px;
  text-align: left;
  width: 100%;
}

.file-summary-navigation-menu button:hover,
.file-summary-navigation-menu button:focus-visible {
  background: #eff6ff;
  outline: none;
}

.file-summary-navigation-menu small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.file-summary-timeline-group > strong {
  color: #1d4ed8;
  display: block;
  font-size: 11px;
  padding: 5px 8px 2px;
}

.file-summary-timeline-group + .file-summary-timeline-group {
  border-top: 1px solid #e2e8f0;
  margin-top: 3px;
  padding-top: 3px;
}

.file-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.files-workbench.file-detail-open .file-edit-grid {
  grid-template-columns: minmax(0, 1fr);
}

.file-edit-grid.compact {
  gap: 8px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.files-workbench.file-detail-open .file-edit-grid.compact {
  grid-template-columns: minmax(0, 1fr);
}

.file-edit-grid label,
.file-edit-grid .file-edit-field {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.file-edit-grid .wide {
  grid-column: 1 / -1;
}

.file-edit-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.file-edit-grid.compact textarea {
  min-height: 52px;
}

.file-date-override {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 8px;
}

.file-date-override[hidden] {
  display: none;
}

.file-date-override .file-date-override-check {
  align-items: center;
  color: #9a3412;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.file-date-override span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.file-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.file-detail-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 9px 10px;
}

.file-detail-card summary::-webkit-details-marker {
  display: none;
}

.file-detail-card summary::after {
  color: var(--muted);
  content: "+";
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.file-detail-card[open] summary {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.file-detail-card[open] summary::after {
  content: "-";
}

.file-detail-card summary strong {
  color: var(--text);
  font-size: 13px;
}

.file-detail-card summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  margin-left: auto;
}

.file-detail-card > .file-edit-grid,
.file-detail-card > .file-related-section,
.file-detail-card > .file-attach-events-section,
.file-detail-card > .file-relationship-editor,
.file-detail-card > .file-metadata-section {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px;
}

.file-metadata-section {
  display: grid;
  gap: 9px;
}

.audio-transcript-panel {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
}

.audio-transcript-disclosure {
  overflow: hidden;
  padding: 0;
}

.audio-transcript-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 10px 12px;
}

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

.audio-transcript-summary::after {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  content: "+";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.audio-transcript-disclosure[open] .audio-transcript-summary {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
}

.audio-transcript-disclosure[open] .audio-transcript-summary::after {
  content: "-";
}

.audio-transcript-summary-text {
  min-width: 0;
}

.audio-transcript-summary-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audio-transcript-summary-heading .audio-transcript-status {
  margin-left: 0;
}

.audio-transcript-body {
  padding: 10px 12px 12px;
}

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

.audio-transcript-head strong,
.audio-transcript-head small,
.audio-transcript-summary-text strong,
.audio-transcript-summary-text small {
  display: block;
}

.audio-transcript-head small,
.audio-transcript-summary-text small {
  color: #475569;
  margin-top: 4px;
}

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

.audio-transcript-body .audio-transcript-actions {
  justify-content: flex-start;
}

.audio-transcript-status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 8px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.audio-transcript-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.audio-transcript-status.ready {
  background: #dcfce7;
  color: #166534;
}

.audio-transcript-status.failed {
  background: #fee2e2;
  color: #991b1b;
}

.audio-transcript-locked-note {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 6px;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 8px;
}

.audio-transcript-locked-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  color: #166534;
  font-size: 0.84rem;
  margin: 8px 0 0;
  padding: 7px 9px;
}

.audio-transcript-preview {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  color: #1e293b;
  line-height: 1.45;
  margin-top: 10px;
  max-height: 170px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.audio-transcript-progress {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1d4ed8;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
}

.audio-transcript-progress-bar {
  background: #dbeafe;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.audio-transcript-progress-bar i {
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.audio-transcript-progress small {
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.files-transcript-jobs {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 9px 10px;
}

.files-transcript-jobs-head,
.files-transcript-job {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.files-transcript-jobs-head strong {
  color: #1e3a8a;
}

.files-transcript-jobs-head span,
.files-transcript-job span {
  color: #475569;
  font-size: 12px;
}

.files-transcript-job {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  padding: 8px;
}

.files-transcript-job-main {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.files-transcript-job-main strong,
.files-transcript-job-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-transcript-job-bar {
  background: #dbeafe;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.files-transcript-job-bar i {
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 4px;
  transition: width 180ms ease;
}

.files-transcript-job-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.audio-transcript-chunk-report {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  margin-top: 10px;
  max-height: 150px;
  overflow: auto;
  padding: 8px 10px;
}

.audio-transcript-chunk-report strong {
  color: #1e3a8a;
  font-size: 12px;
}

.audio-transcript-chunk-report span {
  color: #334155;
  font-size: 12px;
}

.audio-transcript-error {
  color: #991b1b;
  font-weight: 700;
  margin: 10px 0 0;
}

.audio-transcript-diagnostics,
.transcript-empty-state {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
}

.audio-transcript-diagnostics > strong,
.transcript-empty-state > strong {
  color: #0f172a;
}

.audio-transcript-diagnostics > div {
  display: grid;
  gap: 4px 10px;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
}

.audio-transcript-diagnostics span {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}

.audio-transcript-diagnostics em {
  color: #0f172a;
  font-size: 0.82rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.transcript-empty-state {
  align-content: start;
  min-height: 220px;
}

.transcript-empty-state p {
  color: #475569;
  margin: 0;
}

.file-metadata-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.file-metadata-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.files-workbench.file-detail-open .file-metadata-grid {
  grid-template-columns: minmax(0, 1fr);
}

.file-metadata-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  padding: 8px;
}

.file-metadata-row span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.file-metadata-row strong {
  color: #111827;
  font-size: 12px;
}

.file-metadata-row em {
  color: #344054;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-relationship-editor {
  display: grid;
  gap: 12px;
}

.file-relationship-block {
  display: grid;
  gap: 7px;
}

.file-relationship-label {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.file-edit-checks,
.file-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.file-edit-danger-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 10px;
}

.file-edit-checks label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  padding: 5px 9px;
}

.inline-save-prompt {
  align-items: center;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 7px;
  color: #7c2d12;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  padding: 6px;
}

.inline-save-prompt span {
  font-weight: 900;
}

.file-tag-tools,
.file-related-section,
.file-attach-events-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.file-tag-tools.event-tags-editor {
  background: #f8fbff;
  border-color: #93c5fd;
}

.file-tag-chips,
.file-existing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.file-tag-chip {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #b7c9e9;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  padding: 4px 8px;
}

.file-tag-chip button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-weight: 900;
  padding: 0;
}

.file-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.file-section-heading h4 {
  margin: 0;
}

.file-section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.file-related-event-card {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.6fr) minmax(260px, 1fr) auto;
  padding: 9px 0;
}

.file-related-event-open {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  display: grid;
  font-family: inherit;
  gap: 10px;
  grid-column: 1 / -2;
  grid-template-columns: minmax(170px, .6fr) minmax(260px, 1fr);
  padding: 6px;
  text-align: left;
}

.file-related-event-open:hover,
.file-related-event-open:focus-visible {
  background: #eff6ff;
  outline: 2px solid #bfdbfe;
}

.file-related-event-open small,
.file-related-event-open em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}

.file-related-event-card:first-of-type {
  border-top: 0;
}

.file-related-event-card span,
.file-related-event-card em,
.file-related-event-card p {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  margin: 2px 0 0;
}

.file-event-filter-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(130px, 0.8fr));
  margin-bottom: 8px;
}

.file-attach-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 340px;
  overflow: auto;
}

.file-attach-events-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

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

.file-attach-events-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  position: sticky;
  top: 0;
}

.file-library-toolbar,
.argument-create-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr) minmax(220px, 1fr) auto;
  margin-bottom: 10px;
}

.argument-create-row {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.arguments-panel-dropdown {
  overflow: hidden;
  padding: 0 !important;
}

.arguments-panel-dropdown > .arguments-panel-summary {
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
}

.arguments-panel-dropdown > .arguments-panel-summary span {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.arguments-panel-dropdown > .arguments-panel-summary strong {
  margin-left: auto;
}

.arguments-panel-dropdown[open] > .arguments-panel-summary {
  border-bottom: 1px solid var(--line);
}

.arguments-panel-body {
  padding: 0 12px 12px;
}

.arguments-panel-body > .argument-header-view-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  margin-bottom: 9px;
}

.argument-order-save-controls {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin-right: auto;
}

.exhibit-template-tools {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.exhibit-template-tools summary {
  cursor: pointer;
  font-weight: 800;
}

.exhibit-template-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 10px;
}

.file-library-rows,
.argument-list {
  display: grid;
  gap: 12px;
}

.argument-workflow-section {
  display: grid;
  gap: 7px;
}

.argument-workflow-section-head {
  align-items: center;
  background: #f8fafc;
  border-bottom: 2px solid #bfdbfe;
  display: flex;
  justify-content: space-between;
  min-height: 34px;
  padding: 5px 9px;
}

.argument-workflow-section-head h3 {
  color: #172033;
  font-size: 14px;
  margin: 0;
}

.argument-workflow-section-head span {
  align-items: center;
  background: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
}

.argument-workflow-section-on_hold .argument-workflow-section-head {
  background: #fffbeb;
  border-bottom-color: #fbbf24;
}

.argument-workflow-section-resolved .argument-workflow-section-head {
  background: #f0fdf4;
  border-bottom-color: #4ade80;
}

.argument-workflow-rows {
  display: grid;
  gap: 8px;
}

.argument-workflow-empty {
  margin: 0;
  padding: 3px 9px 7px;
}

.file-library-card,
.argument-card {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.argument-card-compact {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.argument-card-compact.argument-status-on-hold {
  background: #fffcf2;
  border-color: #fbbf24;
}

.argument-card-compact.argument-status-resolved {
  background: #f5fdf7;
  border-color: #86efac;
}

.argument-card-compact.argument-priority {
  background: #fff8e8;
  border-color: #f59e0b;
  box-shadow: inset 4px 0 0 #e11d48;
}

.argument-quick-summary {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, auto) minmax(170px, 0.65fr);
  list-style: none;
  min-height: 42px;
  padding: 9px 52px 9px 10px;
  position: relative;
}

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

.argument-quick-summary::after {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  content: "+";
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
}

.argument-card-compact[open] > .argument-quick-summary {
  border-bottom: 1px solid var(--line);
}

.argument-card-compact[open] > .argument-quick-summary::after {
  content: "-";
}

.argument-quick-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argument-quick-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.argument-quick-title-row .argument-quick-title {
  flex: 1 1 auto;
}

.evidence-order-control {
  align-items: center;
  display: inline-grid;
  flex: 0 0 auto;
  gap: 3px;
  grid-template-columns: 28px 42px 28px;
}

.evidence-order-button {
  align-items: center;
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1d4ed8;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  width: 28px;
}

.evidence-order-button svg {
  fill: none;
  height: 17px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 17px;
}

.evidence-order-button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: .45;
}

.evidence-order-position-input {
  appearance: textfield;
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  box-sizing: border-box;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  min-width: 0;
  padding: 2px 3px;
  text-align: center;
  width: 42px;
}

.evidence-order-position-input::-webkit-inner-spin-button,
.evidence-order-position-input::-webkit-outer-spin-button {
  margin: 0;
}

.evidence-order-position-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .15);
  outline: none;
}

.evidence-order-position-input.is-dirty {
  background: #fff7ed;
  border-color: #f59e0b;
  color: #9a3412;
}

.evidence-order-position-input:disabled {
  background: #f1f5f9;
  color: #64748b;
  opacity: .7;
}

.supporting-point-reorder-tools,
.argument-order-controls {
  justify-self: start;
}

.argument-quick-main {
  align-items: center;
  column-gap: 7px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-column: 1;
  min-width: 0;
}

.argument-quick-copy {
  display: grid;
  gap: 2px;
  grid-column: 2;
  min-width: 0;
}

.argument-quick-point {
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argument-quick-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 3px 8px;
  grid-column: 2 / 4;
  grid-row: 2;
  justify-content: flex-end;
  line-height: 1.25;
}

.argument-workflow-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
}

.argument-workflow-actions button {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.argument-workflow-actions .argument-priority-button.active {
  background: #e11d48;
  border-color: #be123c;
  color: #fff;
}

.argument-workflow-actions .argument-hold-button {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.argument-workflow-actions .argument-resolve-button {
  background: #ecfdf5;
  border-color: #4ade80;
  color: #166534;
}

.argument-workflow-actions .argument-reactivate-button {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.argument-quick-meta em {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  cursor: default;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  padding: 0;
}

.argument-quick-meta em:not(:last-child)::after {
  color: #cbd5e1;
  content: "•";
  margin-left: 8px;
}

.argument-quick-buttons {
  align-items: center;
  align-self: start;
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
  display: flex;
  flex-wrap: nowrap;
  grid-column: 2;
  grid-row: 1;
  gap: 5px;
  justify-content: center;
  justify-self: center;
  margin-top: -1px;
  padding: 4px;
}

.argument-header-view-actions {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.argument-header-view-actions .ghost-button {
  border-color: #c7d7fe;
  color: #1d4ed8;
  white-space: nowrap;
}

.argument-quick-buttons button {
  background: #e9f2ff;
  border-color: #93c5fd;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.argument-quick-buttons button.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.argument-quick-buttons button:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.argument-quick-buttons button.active:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.argument-outline-count-button {
  align-items: center;
  display: inline-flex;
  gap: 2px;
}

.argument-child-outline-count {
  background: #fff;
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-weight: 900;
  padding: 0 5px;
}

.argument-child-outline-count:hover {
  background: #bfdbfe;
}

.argument-quick-buttons button.active .argument-child-outline-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.argument-expanded-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.argument-drawer-body {
  background: #f8fbff;
}

.argument-quick-drawer {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-sizing: border-box;
  margin-left: 24px;
  padding: 10px;
}

.argument-quick-drawer.supporting-points-workspace,
.argument-quick-drawer.argument-outline-list {
  max-width: calc(100% - 24px);
  width: min(728px, 65%);
}

.argument-quick-drawer-head {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.argument-quick-drawer-head strong {
  color: var(--text);
  font-size: 14px;
}

.argument-quick-drawer-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-right: auto;
}

.argument-quick-drawer-head .add-circle-button {
  align-items: center;
  border-color: #93c5fd;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 28px;
}

.argument-child-outline-groups {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.argument-outline-split {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.argument-child-outline-group {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
}

.argument-child-outline-group-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.argument-child-outline-group-head strong {
  color: var(--text);
  font-size: 13px;
}

.argument-child-outline-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.argument-main-point-field {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.argument-main-point-field textarea {
  min-height: 64px;
  overflow: hidden;
  resize: none;
}

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

.file-library-card-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.file-library-card-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.file-library-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: end;
}

.file-library-flags span {
  background: #e9f2ff;
  border-radius: 999px;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.file-storage-status {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
  padding: 3px 7px;
  width: fit-content;
}

.file-storage-status.storage-ok {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

.file-storage-status.storage-local {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.file-storage-status.storage-missing {
  background: #fff1f0;
  border-color: #fecaca;
  color: #b42318;
}

.file-library-grid,
.argument-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-library-grid label,
.argument-grid label,
.argument-grid .argument-field,
.exhibit-template-fields label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.file-library-grid .wide,
.argument-grid .wide,
.argument-grid .argument-field.wide {
  grid-column: 1 / -1;
}

.file-library-grid textarea,
.argument-grid textarea {
  min-height: 70px;
  resize: vertical;
}

.argument-support-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
}

.argument-event-support-block {
  grid-column: 1 / -1;
}

.event-arguments-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.event-argument-list {
  display: grid;
  gap: 6px;
}

.event-argument-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.event-argument-row strong,
.event-argument-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-argument-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.event-argument-row small {
  color: var(--muted);
  font-size: 11px;
}

.add-argument-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.argument-direct-event-add {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
}

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

.argument-support-head span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.argument-support-head em {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 2px 6px;
}

.argument-support-list {
  display: grid;
  gap: 6px;
  max-height: 160px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.argument-support-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.argument-support-chip span,
.argument-support-chip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argument-support-chip span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.argument-support-chip small {
  color: var(--muted);
  font-size: 11px;
}

.argument-support-chip button {
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  height: 22px;
  width: 22px;
}

.argument-support-add {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.argument-attach-more {
  background: #f8fbff;
  border: 1px dashed #93c5fd;
  border-radius: 7px;
  padding: 8px;
}

.argument-attach-more summary {
  align-items: center;
  color: #1d4ed8;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
}

.argument-attach-more summary::-webkit-details-marker {
  display: none;
}

.argument-attach-more summary span {
  font-size: 12px;
  font-weight: 900;
}

.argument-attach-more summary span::before {
  border: 1px solid #60a5fa;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.16);
  content: "+";
  display: inline-grid;
  height: 18px;
  margin-right: 6px;
  place-items: center;
  width: 18px;
}

.argument-attach-more summary em {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 3px 8px;
}

.argument-attach-more-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin: 7px 0;
}

.file-library-checks,
.file-library-attach-row,
.argument-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-library-checks label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  padding: 5px 9px;
}

.file-library-attach-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.argument-card-head input {
  min-width: 0;
  width: 100%;
}

.argument-card-head select {
  min-width: 150px;
}

.argument-actions.compact {
  flex: 0 0 auto;
}

.argument-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.argument-summary span,
.argument-summary em {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 3px 7px;
}

.argument-summary em {
  background: #f8fafc;
  border-color: var(--line);
  color: #475467;
}

.argument-summary p {
  color: #344054;
  flex-basis: 100%;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argument-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.argument-details summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

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

.argument-details summary::after {
  content: " +";
}

.argument-details[open] summary {
  margin-bottom: 9px;
}

.argument-details[open] summary::after {
  content: " -";
}

.tag-management-sections {
  display: grid;
  gap: 10px;
}

.tag-management-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0;
  padding: 0 10px;
}

.tag-management-section-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 10px 0;
}

.argument-field-label {
  color: var(--muted);
}

.argument-tag-picker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}

.argument-tag-picker summary {
  color: #243041;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.argument-tag-picker summary::-webkit-details-marker {
  display: none;
}

.argument-tag-picker summary::after {
  color: var(--muted);
  content: " +";
}

.argument-tag-picker[open] summary {
  margin-bottom: 8px;
}

.argument-tag-picker[open] summary::after {
  content: " -";
}

.argument-tag-options {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
  max-height: 220px;
  overflow: auto;
}

.argument-tag-category {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
}

.argument-tag-category > strong {
  color: var(--text);
  flex: 1 0 100%;
  font-size: 12px;
}

.argument-tag-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  display: inline-flex !important;
  font-size: 12px;
  font-weight: 800;
  gap: 6px !important;
  padding: 5px 8px;
}

.argument-tag-option input {
  height: 15px;
  margin: 0;
  width: 15px;
}

.argument-tag-picker > input {
  width: 100%;
}

.argument-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.argument-quick-tags .pill,
.argument-quick-tags .tag-pill {
  font-size: 10px;
  padding: 2px 5px;
}

.argument-tabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
}

.argument-tabs button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.argument-tabs button.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.argument-tab-panel {
  display: grid;
  gap: 10px;
}

.argument-proof-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.argument-proof-summary div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}

.argument-proof-summary strong,
.argument-proof-summary span {
  display: block;
}

.argument-proof-summary strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.argument-proof-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.argument-relation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 1 / -1;
}

.argument-relation-badges b {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #047857;
  font-size: 10px;
  padding: 2px 6px;
}

.argument-tag-related-list,
.argument-attach-more,
.argument-version-history {
  border-top: 1px solid var(--line);
  min-width: 0;
  padding-top: 7px;
}

.argument-event-support-block .argument-tag-related-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}

.argument-tag-related-list summary,
.argument-attach-more summary,
.argument-version-history summary {
  color: #1d4ed8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.argument-support-candidates {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  max-height: 220px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.argument-event-support-block .argument-support-candidates {
  max-height: 260px;
}

.argument-support-candidates button {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  grid-template-rows: auto auto;
  line-height: 1.25;
  min-height: 48px;
  overflow: visible;
  padding: 8px 9px;
  text-align: left;
}

.argument-support-candidates span,
.argument-support-candidates small {
  display: block;
  line-height: 1.25;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argument-support-candidates span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.argument-support-candidates small {
  color: var(--muted);
  font-size: 11px;
}

.tiny-button {
  font-size: 10px !important;
  padding: 3px 6px !important;
}

.argument-checklist {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.argument-checklist-list {
  display: grid;
  gap: 6px;
}

.argument-checklist-list label,
.argument-toggle {
  align-items: center;
  display: flex !important;
  gap: 7px !important;
}

.argument-checklist-list input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

.argument-mode-row {
  display: flex;
  justify-content: flex-start;
}

.argument-mini-timeline {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.argument-mini-event {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 8px;
  grid-template-columns: 130px minmax(0, 1fr) minmax(120px, .5fr) auto;
  padding: 6px 0;
}

.argument-mini-event:last-child {
  border-bottom: 0;
}

.argument-mini-event span,
.argument-mini-event em,
.argument-mini-event b {
  font-size: 11px;
}

.argument-mini-event strong {
  color: var(--text);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argument-mini-event em {
  color: var(--muted);
  font-style: normal;
}

.argument-mini-event b {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  padding: 2px 6px;
}

.presentation-settings-summary,
.presentation-placeholder-list {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.presentation-settings-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.presentation-settings-summary span,
.presentation-event-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}

.presentation-settings-summary strong,
.presentation-settings-summary small,
.presentation-event-row strong,
.presentation-event-row span {
  display: block;
  min-width: 0;
}

.presentation-settings-summary strong,
.presentation-event-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.presentation-settings-summary small,
.presentation-event-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.presentation-placeholder-list h3 {
  margin: 0;
}

.presentation-event-row {
  display: grid;
  gap: 6px;
  grid-template-columns: 140px minmax(0, 1fr) auto;
}

.argument-draft-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.argument-draft-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.argument-draft-grid .wide {
  grid-column: 1 / -1;
}

.argument-draft-grid textarea {
  min-height: 82px;
  resize: vertical;
}

.argument-draft-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.argument-draft-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.argument-version-history div {
  align-items: center;
  border-top: 1px solid #edf0f4;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 6px 0;
}

.argument-version-history strong,
.argument-version-history span {
  font-size: 11px;
}

.argument-version-history span {
  color: var(--muted);
}

.tag-glossary-panel .panel-header {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: max-content minmax(260px, 1fr);
  margin-bottom: 10px;
}

.tag-management-guidance {
  justify-self: center;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  max-width: 520px;
  text-align: center;
}

.tag-manager-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.1fr) auto;
  margin-bottom: 8px;
  padding: 10px;
}

.tag-manager-add,
.tag-manager-combine,
.tag-manager-import {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tag-manager-add input,
.tag-manager-add select,
.tag-manager-combine select {
  min-width: 0;
  width: 100%;
}

.tag-manager-combine span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tag-manager-status {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 10px;
  padding: 8px 9px;
}

.tag-manager-status.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

.tag-manager-status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.tag-glossary-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: start;
}

.tag-list-bulkbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.tag-list-bulkbar > div:first-child {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list-bulkbar strong {
  color: var(--text);
  font-size: 13px;
}

.tag-list-bulkbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-list-bulk-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list-bulk-actions select {
  min-width: 220px;
}

.tag-management-simple {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  align-items: start;
}

.tag-management-left {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.tag-management-single-picker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.tag-management-single-picker > summary {
  color: #243041;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.tag-management-single-picker > summary::-webkit-details-marker {
  display: none;
}

.tag-management-choice-list {
  margin: 10px 0 8px;
  max-height: 380px;
  overflow: auto;
}

.tag-management-inline-add {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.tag-management-choice-group {
  align-items: start;
}

.tag-management-parent-head {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 2px 0 4px;
}

.tag-management-parent-head > strong {
  align-items: baseline;
  color: #1e3a8a;
  display: flex;
  flex-wrap: wrap;
  font-size: 17px;
  gap: 7px;
  letter-spacing: 0;
  line-height: 1.25;
  min-width: 0;
}

.tag-management-parent-head > strong em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.tag-inline-plus {
  align-items: center;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #991b1b;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  min-height: 28px;
  padding: 3px 9px 3px 4px;
}

.tag-inline-plus span {
  align-items: center;
  background: #dc2626;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.tag-inline-plus:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.tag-management-child-list {
  display: grid;
  gap: 7px;
  padding-left: 12px;
}

.tag-management-choice {
  cursor: pointer;
  justify-content: space-between;
  min-width: 160px;
}

.tag-management-choice.selected {
  background: #eff6ff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.tag-management-choice em {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 2px 6px;
}

.tag-selected-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.tag-selected-editor-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.tag-selected-editor-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(190px, 0.55fr) minmax(260px, 1fr);
}

.tag-selected-editor-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.tag-bulk-tools {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.tag-bulk-tools summary {
  color: #243041;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.tag-bulk-tools summary::-webkit-details-marker {
  display: none;
}

.tag-bulk-tools summary span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 8px;
}

.tag-bulk-tools .tag-list-bulk-actions {
  margin-top: 10px;
}

.tag-bulk-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: 10px;
}

.tag-bulk-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  padding: 8px;
}

.tag-bulk-group strong {
  color: var(--text);
  font-size: 12px;
}

.tag-bulk-check {
  align-items: center;
  color: #344054;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
}

.tag-bulk-check input {
  height: 15px;
  margin: 0;
  width: 15px;
}

.tag-bulk-check span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-bulk-check em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.tag-management-workbench {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
}

.tag-management-picker,
.tag-management-editor-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.tag-management-picker {
  align-content: start;
  max-height: 640px;
  overflow: auto;
}

.tag-management-picker .tag-category-group {
  border-radius: 7px;
}

.tag-management-picker .tag-category-summary {
  background: #f8fafc;
}

.tag-management-picker-children {
  display: grid;
  gap: 6px;
}

.tag-management-picker-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 22px minmax(0, 1fr);
}

.tag-management-picker-row.selected .tag-management-tag-button {
  background: #eff6ff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.tag-management-tag-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #243041;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  padding: 6px 9px;
  text-align: left;
}

.tag-management-tag-button span {
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-management-tag-button em {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 2px 6px;
}

.tag-management-editor-panel {
  align-content: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-height: min(78vh, 860px);
  overflow: auto;
  padding: 12px;
  position: sticky;
  top: 10px;
}

.tag-management-editor-head {
  align-items: baseline;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.tag-management-editor-head strong {
  color: var(--text);
  font-size: 14px;
}

.tag-management-editor-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tag-management-editor-panel .tag-glossary-row {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-management-editor-panel .tag-table-row {
  align-items: stretch;
  grid-template-columns: 26px minmax(180px, 1fr) minmax(170px, 0.8fr);
}

.tag-management-editor-panel .tag-explanation-cell,
.tag-management-editor-panel .tag-glossary-actions {
  grid-column: 2 / -1;
}

.tag-management-editor-panel .tag-usage-panel {
  margin-top: 0;
}

.tag-category-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.tag-parent-dropdown {
  background: #fff;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.tag-category-summary {
  cursor: pointer;
  display: grid;
  gap: 5px;
  list-style: none;
  min-width: 0;
  padding: 10px 34px 10px 10px;
  position: relative;
}

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

.tag-category-summary::after {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "+";
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
}

.tag-parent-dropdown[open] > .tag-category-summary::after {
  content: "-";
}

.tag-category-summary-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.tag-category-summary-main .tag-glossary-pill {
  flex: 0 0 auto;
  max-width: none;
  min-width: max-content;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
  width: max-content;
  white-space: nowrap;
  word-break: normal;
}

.tag-category-summary-main strong,
.tag-category-summary-main em,
.tag-category-summary small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.tag-category-summary-main strong {
  color: var(--text);
}

.tag-category-summary small {
  display: block;
  line-height: 1.35;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-category-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 10px;
}

.tag-category-group > h3 {
  font-size: 14px;
  margin: 0;
}

.tag-category-children {
  display: grid;
  gap: 0;
  max-height: 390px;
  overflow: auto;
  padding-left: 0;
}

.tag-child-heading {
  align-items: baseline;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  text-transform: uppercase;
}

.tag-child-heading em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

.tag-glossary-row {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 6px;
  padding: 0;
}

.tag-child-row {
  background: #fff;
  border-left: 4px solid #bfdbfe;
}

.tag-parent-row {
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 0;
}

.tag-glossary-row.tag-disabled {
  background: #f1f5f9;
  opacity: 0.82;
}

.tag-glossary-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
}

.tag-glossary-head strong,
.tag-glossary-pill {
  background: #e9f2ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1e3a8a;
  display: inline-block;
  flex: 0 0 auto;
  max-width: none;
  min-width: max-content;
  overflow-wrap: normal;
  padding: 3px 8px;
  width: max-content;
  white-space: nowrap;
  word-break: normal;
}

.tag-glossary-row.tag-disabled .tag-glossary-pill,
.disabled-tag {
  background: #e5e7eb !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

.tag-glossary-head span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
}

.tag-usage-count {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
}

.tag-usage-count:hover,
.tag-usage-count:focus-visible {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.tag-glossary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-glossary-actions input {
  min-width: 0;
}

.tag-table-header,
.tag-table-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 30px minmax(190px, 1fr) minmax(150px, 0.8fr) minmax(260px, 1.25fr) minmax(210px, auto);
}

.tag-table-header {
  background: #eef2f7;
  border-bottom: 1px solid var(--line);
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 8px;
  text-transform: uppercase;
}

.tag-table-row {
  padding: 7px 8px;
}

.tag-row-select {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.tag-row-select input {
  height: 16px;
  margin: 0;
  width: 16px;
}

.tag-table-row > input {
  min-width: 0;
}

.tag-explanation-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tag-explanation-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.tag-parent-settings {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
}

.tag-parent-settings summary {
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.tag-parent-settings summary::-webkit-details-marker {
  display: none;
}

.tag-parent-settings summary::after {
  color: var(--muted);
  content: " +";
}

.tag-parent-settings[open] summary {
  margin-bottom: 8px;
}

.tag-parent-settings[open] summary::after {
  content: " -";
}

.tag-glossary-row textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  line-height: 1.35;
  min-height: 38px;
  resize: vertical;
  width: 100%;
}

.tag-glossary-row textarea.tag-explanation-dirty {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}

.tag-explanation-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.tag-explanation-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-linked-items {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px;
}

.tag-linked-items summary {
  color: #243041;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.tag-linked-items summary::-webkit-details-marker {
  display: none;
}

.tag-linked-items summary::after {
  color: var(--muted);
  content: " +";
}

.tag-linked-items[open] summary {
  margin-bottom: 7px;
}

.tag-linked-items[open] summary::after {
  content: " -";
}

.tag-usage-panel {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.tag-usage-panel-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-usage-panel-head strong {
  color: var(--text);
  font-size: 12px;
}

.tag-usage-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.tag-usage-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.tag-usage-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.tag-usage-row div,
.tag-usage-row span,
.tag-usage-row small {
  display: block;
  min-width: 0;
}

.tag-usage-row strong {
  color: var(--text);
  font-size: 12px;
}

.tag-usage-row span,
.tag-usage-row small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tag-migration-history {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.tag-migration-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 180px;
  overflow: auto;
}

.tag-migration-list div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(120px, 0.5fr) minmax(120px, 0.5fr) minmax(180px, 1fr);
  padding: 7px 8px;
}

.tag-picker-preview {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  padding: 7px 8px;
}

.tag-with-explanation {
  position: relative;
}

.tag-with-explanation[data-tag-tooltip] {
  cursor: help;
}

.tag-with-explanation[data-tag-tooltip]:hover::after,
.tag-with-explanation[data-tag-tooltip]:focus-visible::after {
  background: #111827;
  border-radius: 7px;
  bottom: calc(100% + 8px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  color: #fff;
  content: attr(data-tag-tooltip);
  font-size: 12px;
  font-weight: 700;
  left: 0;
  line-height: 1.35;
  max-width: min(320px, 70vw);
  min-width: 180px;
  padding: 8px 9px;
  pointer-events: none;
  position: absolute;
  white-space: normal;
  z-index: 100;
}

.tag-with-explanation[data-tag-tooltip]:hover::before,
.tag-with-explanation[data-tag-tooltip]:focus-visible::before {
  border: 6px solid transparent;
  border-top-color: #111827;
  bottom: calc(100% - 4px);
  content: "";
  left: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 101;
}

.argument-tag-summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.argument-tag-summary .tag-with-explanation {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
}

@media (max-width: 900px) {
  .tag-manager-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-list-bulkbar,
  .tag-list-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tag-management-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-management-simple {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-management-editor-panel {
    max-height: none;
    position: static;
  }

  .tag-selected-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-management-picker {
    max-height: none;
  }

  .tag-list-bulk-actions select {
    min-width: 0;
    width: 100%;
  }

  .tag-table-header {
    display: none;
  }

  .tag-table-row {
    align-items: stretch;
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .tag-table-row > input,
  .tag-explanation-cell,
  .tag-glossary-actions {
    grid-column: 2;
  }

  .tag-manager-add,
  .tag-manager-combine,
  .tag-manager-import {
    align-items: stretch;
    flex-direction: column;
  }

  .tag-manager-combine span {
    align-self: flex-start;
  }

  .argument-quick-summary,
  .argument-support-add {
    grid-template-columns: minmax(0, 1fr);
  }

  .argument-quick-main,
  .argument-quick-buttons,
  .argument-workflow-actions,
  .argument-quick-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .argument-quick-buttons,
  .argument-workflow-actions,
  .argument-quick-meta {
    justify-self: start;
    justify-content: flex-start;
  }
}

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

.project-export-status {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 10px;
  padding: 8px 9px;
}

.project-export-status.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #047857;
}

.project-export-status.error {
  background: #fff1f0;
  border-color: #fecaca;
  color: var(--red);
}

.project-export-preview {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #111827;
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 10px;
  min-height: 220px;
  padding: 10px;
  resize: vertical;
  white-space: pre;
  width: 100%;
}

.project-export-preview[hidden] {
  display: none;
}

.project-export-history {
  display: grid;
  gap: 8px;
}

.project-export-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.project-export-row strong,
.project-export-row span {
  display: block;
}

.project-export-row span,
.project-export-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}

.visual-toggle {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.visual-toggle input {
  accent-color: var(--blue);
}

.visual-toggle.standout-toggle input {
  accent-color: var(--red);
}

.visual-toggle span {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
}

.visual-toggle input:not(:checked) + span {
  background: #f8fafc;
  border-color: var(--line);
  color: var(--muted);
}

.master-temp-visual-note {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 4px;
  max-width: 150px;
}

.standout-toggle input:checked + span {
  background: #fff1f0;
  border-color: #fda29b;
  color: var(--red);
}

.spreadsheet-visual-toggle {
  min-width: 92px;
}

.master-event-label {
  align-items: center;
  color: #1f2937;
  display: flex;
  gap: 6px;
  font-weight: 800;
}

.master-related-dot {
  background: var(--related-color);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

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

.preview-actions {
  display: flex;
  gap: 10px;
}

.import-errors {
  color: var(--red);
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.success-log {
  color: var(--green);
  font-weight: 800;
}

.import-continue {
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
}

.import-preview-wrap {
  max-width: 100%;
  overflow-x: scroll;
}

.import-preview-table {
  min-width: 2200px;
  table-layout: fixed;
}

.import-preview-table th,
.import-preview-table td {
  min-width: 150px;
  width: 170px;
  word-break: break-word;
}

.import-preview-table th:nth-child(6),
.import-preview-table td:nth-child(6),
.import-preview-table th:nth-child(13),
.import-preview-table td:nth-child(13) {
  min-width: 260px;
  width: 300px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
}

.detail-panel {
  grid-column: 2;
  max-height: calc(100vh - 16px);
  min-height: 520px;
  overflow-x: hidden;
  overflow-y: auto;
  position: sticky;
  scrollbar-gutter: stable;
  top: 8px;
}

.detail-empty {
  color: var(--muted);
}

.detail-empty h2,
.detail-content h2 {
  color: var(--text);
  margin-top: 0;
}

.detail-title-row {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.detail-title-row h2 {
  margin-bottom: 0;
}

.detail-title-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.event-detail-timeline-focus {
  overflow: visible;
  position: relative;
}

.event-detail-timeline-count {
  align-items: center;
  background: #ffffff;
  border: 1px solid #2563eb;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 3px;
  position: absolute;
  right: -6px;
  top: -7px;
}

.quick-label-edit {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 12px 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.pill {
  background: var(--surface-2);
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.pill.danger {
  background: #fee4e2;
  color: var(--red);
}

.unfinished-event-status {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  max-width: min(100%, 600px);
  min-width: 0;
  white-space: nowrap;
}

.unfinished-event-pill {
  align-items: center;
  background: #fffdf0;
  border: 1px solid #dc2626;
  color: #a16207;
  display: inline-flex;
  gap: 5px;
}

.unfinished-event-pill .event-card-pencil-icon {
  height: 13px;
  width: 13px;
}

.unfinished-event-pill-label {
  flex: 0 0 auto;
}

.unfinished-event-reason {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warning-pill {
  background: #fef0c7;
  color: var(--amber);
}

.standout-pill {
  background: #fee4e2;
  color: var(--red);
}

.needs-date-text {
  color: var(--amber);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-left: 4px;
}

.detail-section {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.detail-section h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.detail-section p,
.detail-section ul {
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.detail-section p {
  white-space: pre-line;
}

.detail-section ul {
  padding-left: 18px;
}

.linked-arguments-list {
  display: grid;
  gap: 7px;
}

.linked-arguments-list button {
  background: #f8fbff;
  border: 1px solid #c7d7fe;
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 8px;
  text-align: left;
}

.linked-arguments-list strong {
  color: #1d4ed8;
  font-size: 13px;
}

.linked-arguments-list span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.linked-arguments-list b {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 10px;
  padding: 2px 6px;
}

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

.detail-section-head h3 {
  margin: 0;
}

.detail-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.attached-item-list {
  display: grid;
  gap: 8px;
}

.attached-item-card {
  align-items: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding: 9px;
}

.attached-item-card.attached-picture-card {
  grid-template-columns: 100px minmax(0, 1fr) auto;
  min-height: 116px;
}

.attached-item-thumb,
.attached-item-icon {
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 42px;
  width: 42px;
}

.attached-item-thumb {
  background: #fff;
  object-fit: cover;
}

.attached-picture-card .attached-item-thumb {
  height: 96px;
  width: 96px;
}

.attached-item-thumb-loading {
  align-items: center;
  background: #eef2ff;
  color: #3730a3;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.attached-item-card.attached-item-pending {
  background: #eff6ff;
  border-color: #93c5fd;
}

.attached-item-save-state {
  align-items: center;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin-top: 3px;
}

.attached-item-save-state::before {
  animation: attached-item-saving 900ms linear infinite;
  border: 2px solid #bfdbfe;
  border-radius: 50%;
  border-top-color: #2563eb;
  content: "";
  height: 12px;
  width: 12px;
}

@keyframes attached-item-saving {
  to { transform: rotate(360deg); }
}

.attached-item-thumb-error {
  background: #fff7ed;
  color: #9a3412;
}

.attached-item-icon {
  align-items: center;
  background: #e8edf6;
  color: #243041;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.attached-item-main {
  min-width: 0;
}

.attached-item-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.attached-item-head strong {
  color: #111827;
  font-size: 13px;
}

.attached-item-main > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.attached-item-main p {
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
}

.attached-item-type {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 6px;
  text-transform: uppercase;
}

.attached-item-type.transcript {
  background: #ecfdf5;
  border-color: #86efac;
  color: #047857;
}

.attached-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.attached-item-tags span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
}

.attached-item-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.related-events-section .section-title-row {
  margin-bottom: 8px;
}

.related-group-count {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  white-space: nowrap;
}

.related-group-count::before {
  background: var(--related-color, #64748b);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  content: "";
  height: 10px;
  width: 10px;
}

.related-event-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.related-event-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--related-color, #64748b);
  border-radius: 7px;
  color: #344054;
  display: grid;
  flex: 0 0 210px;
  gap: 4px;
  min-height: 96px;
  padding: 9px;
  position: relative;
  text-align: left;
}

.related-event-card:hover {
  border-color: #2563eb;
}

.related-event-card.current {
  background: #f8fafc;
  outline: 2px solid rgba(17, 24, 39, 0.16);
}

.related-event-card i {
  background: var(--related-color, #64748b);
  border-radius: 999px;
  height: 12px;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 12px;
}

.related-event-card span,
.related-event-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
  padding-right: 18px;
}

.related-event-card strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
}

.edit-form {
  display: grid;
  gap: 10px;
}

.edit-topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: -16px -16px 2px;
  padding: 10px 16px;
  position: sticky;
  top: -16px;
  z-index: 11;
}

.edit-topbar h2 {
  font-size: 18px;
  margin: 0 0 3px;
}

.edit-top-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  margin-right: 8px;
  min-width: 0;
}

.edit-top-action-icon,
.event-icon-button {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.edit-top-action-icon:hover,
.event-icon-button:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.edit-top-action-icon:focus-visible,
.event-icon-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.edit-top-action-icon.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.edit-top-action-icon.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.edit-top-action-icon.delete {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #dc2626;
}

.edit-top-action-icon.delete:hover,
.event-icon-button.delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.edit-top-action-icon svg,
.event-icon-button svg {
  fill: none;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.event-icon-button.edit {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.event-icon-button.add {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.event-icon-button.add:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.event-icon-button.edit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.event-icon-button.preview {
  color: #1e3a8a;
}

.event-icon-button.zoom {
  color: #1e3a8a;
}

.event-icon-button.close {
  color: #475569;
}

.event-icon-button.delete {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #dc2626;
}

.event-id-pill {
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.event-edit-section-heading {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}

.event-edit-section-heading:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 2px;
}

.event-edit-section-heading h3 {
  color: #1f2937;
  font-size: 14px;
  margin: 0;
}

.event-basic-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
}

.event-red-flag-top {
  color: #991b1b;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.event-unfinished-top {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.unfinished-reason-editor {
  display: grid;
  gap: 5px;
  max-width: 560px;
}

.unfinished-reason-editor[hidden] {
  display: none;
}

.custom-event-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.custom-event-fields h3 {
  font-size: 14px;
  margin: 0;
}

.custom-event-fields-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-dollar-total-preview {
  margin: 0;
}

.edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.contradiction-editor {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  min-width: 0;
}

.contradiction-editor select {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.additional-ranges-editor {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.range-style-editor {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.related-events-editor {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.related-events-editor select {
  min-height: 38px;
}

.related-search-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.related-search-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.related-event-editor-list,
.related-event-search-results {
  display: grid;
  gap: 6px;
}

.related-event-search-results {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
}

.related-event-editor-row,
.related-event-search-result {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.related-event-editor-row span,
.related-event-search-result span {
  color: var(--text);
  display: grid;
  font-weight: 800;
  gap: 2px;
  min-width: 0;
}

.related-event-editor-row strong,
.related-event-search-result strong,
.related-event-editor-row small,
.related-event-search-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-event-editor-row small,
.related-event-search-result small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.add-related-event-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.add-related-event-label {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.related-suggestions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.related-suggestions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.section-title-row h3 {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 720px) {
  .add-related-event-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.additional-range-list {
  display: grid;
  gap: 8px;
}

.additional-range-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  padding: 8px;
}

.additional-range-fields {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto;
}

.additional-range-description {
  display: grid;
  gap: 4px;
}

.additional-range-description textarea {
  min-height: 76px;
  resize: vertical;
  width: 100%;
}

.additional-range-visibility {
  justify-self: start;
}

.additional-date-detail-list {
  display: grid;
  gap: 7px;
}

.additional-date-detail-item {
  background: #f8fafc;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  display: grid;
  gap: 7px;
  padding: 8px 10px;
  width: 100%;
}

.additional-date-detail-jump {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.additional-date-detail-jump:hover,
.additional-date-detail-jump:focus-visible {
  background: #eff6ff;
  border-radius: 4px;
  color: #1d4ed8;
  outline: none;
}

.additional-date-detail-jump.disabled {
  cursor: default;
  opacity: 0.72;
}

.additional-date-detail-item.timeline-hidden {
  border-color: #cbd5e1;
}

.additional-date-detail-topline {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.additional-date-detail-visibility {
  color: #475467;
  font-size: 12px;
  justify-self: end;
  white-space: nowrap;
}

.additional-date-detail-main {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.additional-date-detail-main strong {
  font-size: 13px;
}

.additional-date-detail-main span,
.additional-date-detail-item small {
  color: var(--muted);
  font-size: 12px;
}

.additional-date-detail-item small {
  line-height: 1.35;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .additional-range-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .additional-date-detail-topline {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.three-column-grid {
  grid-template-columns: minmax(96px, 0.7fr) minmax(110px, 0.8fr) minmax(150px, 1fr);
}

.form-error {
  background: #fee4e2;
  border-radius: 6px;
  color: var(--red);
  display: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
}

.form-error.visible {
  display: block;
}

@media (max-width: 1180px) {
  .project-dashboard-sections {
    grid-template-columns: 1fr;
  }

  .project-member-row {
    grid-template-columns: 1fr;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .setup-page,
  .main-panel,
  .detail-panel {
    grid-column: 1;
  }

  .detail-panel {
    max-height: none;
    position: static;
  }

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

  .comm-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
  }

  .timeline-argument-controls {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr);
  }

  .timeline-argument-summary {
    grid-column: 1 / -1;
  }

  .view-template-bar {
    grid-template-columns: 1fr 1fr;
  }

  .view-template-actions {
    min-width: 0;
    position: static;
  }

  .edit-grid {
    grid-template-columns: 1fr;
  }

  .person-row,
  .person-create-row,
  .custom-field-row,
  .custom-field-create-row,
  .timeline-create-row,
  .timeline-manager-row,
  .file-library-toolbar,
  .file-library-grid,
  .files-filter-grid,
  .files-advanced-filter-grid,
  .checklist-quick-add-row,
  .checklist-filters,
  .files-upload-area,
  .files-upload-stack,
  .files-upload-row,
  .files-bucket-overview-head,
  .files-bucket-create-row,
  .files-actions-drop-layout,
  .files-bulk-bar,
  .files-bulk-row,
  .files-bulk-action,
  .file-edit-grid,
  .file-event-filter-grid,
  .file-related-event-card,
  .drive-connect-grid,
  .argument-grid,
  .legal-dates-compact-row,
  .supporting-points-list-layout,
  .supporting-point-list-row,
  .supporting-point-detail-head,
  .supabase-grid,
  .evidence-item,
  .bucket-create-row,
  .bucket-access-panel,
  .bucket-add-user-row,
  .bucket-upload-row,
  .bucket-doc {
    grid-template-columns: 1fr;
  }

  .supporting-point-list-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .supporting-point-list-row > .supporting-point-reorder-tools {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .supporting-point-list-row > .supporting-point-row-main,
  .supporting-point-list-row > .supporting-point-row-counts,
  .supporting-point-list-row > button {
    grid-column: 2;
  }

  .supporting-point-list-row > .supporting-point-row-counts {
    justify-content: flex-start;
  }

  .supporting-point-list-row > button {
    justify-self: start;
  }

  .supporting-point-drawer-row > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .supporting-point-drawer-row > summary > .supporting-point-reorder-tools {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .supporting-point-drawer-row > summary > .supporting-point-row-main,
  .supporting-point-drawer-row > summary > .supporting-point-row-counts {
    grid-column: 2;
  }

  .supporting-point-drawer-row > summary > .supporting-point-row-counts {
    justify-content: flex-start;
  }

  .supporting-point-drawer-row > summary > em {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .file-related-event-open {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .person-row textarea {
    grid-column: 1;
  }

  .person-foundation-details {
    grid-column: 1;
  }

  .person-organization-relationship-row,
  .person-contact-point-row,
  .person-address-row,
  .person-case-information {
    grid-template-columns: 1fr;
  }

  .person-profile-picture {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .person-organization-contacts > div {
    grid-template-columns: 1fr;
  }

  .files-filter-summary-row {
    grid-template-columns: 1fr;
  }

  .files-header-actions {
    grid-template-columns: 1fr;
  }

  .files-filter-summary-actions {
    justify-self: stretch;
    justify-content: flex-end;
  }

  .files-filter-header-search,
  .checklist-filter-header-search {
    max-width: none;
  }

  .checklist-filter-summary-row {
    grid-template-columns: 1fr;
  }

  .bucket-doc {
    align-items: stretch;
    display: grid;
  }

  .search-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .argument-quick-drawer.supporting-points-workspace,
  .argument-quick-drawer.argument-outline-list {
    width: auto;
  }

  .app-shell {
    padding: 12px;
  }

  .topbar,
  .project-workspace-banner,
  .project-dashboard-header,
  .project-card-head,
  .master-list .panel-header,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .project-role-block {
    text-align: left;
  }

  .project-workspace-banner {
    grid-template-columns: 1fr;
  }

  .tag-glossary-panel .panel-header {
    grid-template-columns: 1fr;
  }

  .tag-management-guidance {
    justify-self: start;
    text-align: left;
  }

  .project-banner-projects-button {
    justify-self: start;
  }

  .project-banner-nav {
    justify-content: flex-start;
  }

  .project-banner-actions {
    justify-self: start;
  }

  .project-banner-nav-gap {
    display: none;
  }

  .master-list-search {
    max-width: none;
    width: 100%;
  }

  .dashboard,
  .workspace-grid,
  .view-template-bar,
  .spreadsheet-view-bar {
    grid-template-columns: 1fr;
  }

  .toolbar .search-box,
  .toolbar .timeline-multi-picker,
  .toolbar select,
  .toolbar .date-filter {
    flex-basis: 100%;
    min-width: 0;
  }

  .timeline-argument-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-mode-toggle,
  .timeline-argument-checks,
  .timeline-argument-view-options {
    width: 100%;
  }

  .setup-content,
  .comm-grid,
  .supabase-grid,
  .files-workbench.file-detail-open,
  .project-permission-summary,
  .view-template-actions {
    grid-template-columns: 1fr;
  }

  .file-edit-panel {
    max-height: none;
    position: static;
  }

  .attached-item-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .attached-item-card.attached-picture-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .attached-picture-card .attached-item-thumb {
    height: 88px;
    width: 88px;
  }

  .attached-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .permission-matrix-header,
  .permission-matrix-row {
    grid-template-columns: minmax(170px, 1.5fr) repeat(5, minmax(46px, 0.7fr));
  }

  .metric {
    align-items: start;
    display: grid;
  }
}

.print-report {
  display: none;
}

.communication-comparison-shell {
  display: grid;
  gap: 10px;
}

.comparison-header {
  background: #0f172a;
  color: #fff;
}

.comparison-header span,
.comparison-header .field-note {
  color: #cbd5e1;
}

.comparison-header-actions,
.comparison-event-picker,
.comparison-timeline-toolbar,
.comparison-source-filters,
.comparison-window-actions,
.comparison-window-tools,
.comparison-link-grid,
.comparison-point-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comparison-header-actions select,
.comparison-event-picker select,
.comparison-event-picker input,
.comparison-timeline-toolbar input,
.comparison-timeline-toolbar select,
.comparison-source-filters input,
.comparison-source-filters select,
.comparison-window-tools input,
.comparison-points-panel input,
.comparison-points-panel select,
.comparison-points-panel textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  min-height: 32px;
  padding: 6px 8px;
}

.comparison-top-panel,
.comparison-source-picker,
.comparison-event-sidebar details,
.comparison-points-panel,
.comparison-window {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.comparison-top-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.comparison-timeline-toolbar {
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: visible;
  padding-bottom: 2px;
  position: relative;
  z-index: 20;
}

.comparison-event-picker label,
.comparison-timeline-toolbar label,
.comparison-points-panel label,
.comparison-event-sidebar label {
  color: #475569;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

.comparison-timeline-toolbar label {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  white-space: nowrap;
}

.comparison-timeline-toolbar > select,
.comparison-timeline-toolbar > details,
.comparison-timeline-toolbar > label,
.comparison-timeline-toolbar > button {
  flex: 0 0 auto;
}

.comparison-timeline-toolbar > select {
  max-width: 150px;
  min-width: 104px;
}

.comparison-timeline-toolbar .timeline-flag-filter-menu summary {
  min-height: 32px;
  padding: 4px 9px;
}

.comparison-timeline-toolbar .timeline-flag-filter-options {
  bottom: calc(100% + 6px);
  top: auto;
}

.comparison-timeline-toolbar .comparison-standout-toggle {
  min-height: 32px;
  padding: 4px 8px;
}

.comparison-timeline-toolbar .comparison-standout-toggle small {
  display: none;
}

.comparison-mini-timeline {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  max-height: 540px;
  min-height: 368px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

.comparison-timeline-toolbar .comparison-argument-filter-label {
  max-width: 185px;
}

.comparison-timeline-toolbar .comparison-argument-filter-label select {
  min-width: 0;
  width: 100%;
}

.comparison-timeline-toolbar .comparison-lane-select {
  background: #eff6ff;
  border: 2px solid #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  font-weight: 900;
  max-width: none;
  min-width: 230px;
  width: 250px;
}

.comparison-timeline-toolbar .comparison-lane-select:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
  outline: none;
}

.comparison-timeline-toolbar .comparison-date-filter-label {
  width: 112px;
}

.comparison-timeline-toolbar .comparison-date-filter-label input {
  width: 100%;
}

.comparison-reset-date-button {
  align-items: center;
  align-self: center;
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px !important;
  white-space: nowrap;
}

.comparison-loading-status {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 7px;
  color: #1d4ed8;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
}

.comparison-loading-status[hidden] {
  display: none;
}

.comparison-loading-status.is-loading {
  background: #dbeafe;
  color: #1e40af;
}

.comparison-loading-status-main {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.comparison-loading-status span {
  color: #475569;
  font-weight: 700;
}

.comparison-load-conversations-button {
  flex: 0 0 auto;
  min-height: 26px;
  white-space: nowrap;
}

.comparison-loading-progress {
  background: #bfdbfe;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.comparison-loading-progress i {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 24px;
  transition: width 180ms ease;
}

.comparison-loading-progress.is-indeterminate i {
  animation: comparisonLoadingSlide 1.1s ease-in-out infinite;
  left: -35%;
  position: absolute;
  width: 35% !important;
}

@keyframes comparisonLoadingSlide {
  0% {
    left: -35%;
  }
  55% {
    left: 42%;
  }
  100% {
    left: 100%;
  }
}

.comparison-timeline .timeline-scale {
  position: sticky;
  top: 0;
  z-index: 8;
}

.comparison-communication-overlay {
  bottom: 0;
  left: var(--timeline-label-width, 170px);
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 6;
}

.comparison-communication-marker {
  background: #dcfce7;
  border: 1px solid #16a34a;
  border-radius: 999px;
  color: #166534;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 6px;
  pointer-events: auto;
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
}

.comparison-mini-axis {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: space-between;
  left: 16px;
  position: absolute;
  right: 16px;
  top: 136px;
}

.comparison-mini-axis::before {
  background: #94a3b8;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.comparison-mini-axis span {
  background: #f8fafc;
  padding: 0 6px;
  position: relative;
  z-index: 1;
}

.comparison-mini-marker {
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #1d4ed8;
  height: 13px;
  position: absolute;
  top: 264px;
  transform: translateX(-50%);
  width: 13px;
}

.comparison-mini-marker.event { background: #dc2626; }
.comparison-mini-marker.sms { background: #16a34a; }
.comparison-mini-marker.file { background: #f59e0b; }
.comparison-mini-marker.point { background: #7c3aed; }

.comparison-mini-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 7px 8px 7px 12px;
  position: absolute;
  text-align: left;
  transform: translateX(-50%);
  width: 178px;
}

.comparison-mini-card::after {
  background: #cbd5e1;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  width: 1px;
}

.comparison-mini-card:nth-of-type(n + 3)::after {
  bottom: 100%;
  top: auto;
}

.comparison-mini-card strong,
.comparison-mini-card span,
.comparison-mini-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-mini-card strong {
  font-size: 12px;
}

.comparison-mini-card span,
.comparison-mini-card em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.comparison-mini-card-pin {
  border-radius: 999px;
  bottom: -24px;
  box-shadow: 0 0 0 2px #fff;
  height: 9px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 9px;
  z-index: 2;
}

.comparison-mini-card:nth-of-type(n + 3) .comparison-mini-card-pin {
  bottom: auto;
  top: -24px;
}

.comparison-mini-card.event {
  border-left: 5px solid #dc2626;
}

.comparison-mini-card.sms {
  border-left: 5px solid #16a34a;
}

.comparison-mini-card.email {
  border-left: 5px solid #0891b2;
}

.comparison-mini-card.file {
  border-left: 5px solid #f59e0b;
}

.comparison-mini-card.point {
  border-left: 5px solid #7c3aed;
}

.comparison-mini-card.event .comparison-mini-card-pin { background: #dc2626; }
.comparison-mini-card.sms .comparison-mini-card-pin { background: #16a34a; }
.comparison-mini-card.email .comparison-mini-card-pin { background: #0891b2; }
.comparison-mini-card.file .comparison-mini-card-pin { background: #f59e0b; }
.comparison-mini-card.point .comparison-mini-card-pin { background: #7c3aed; }

.comparison-mini-overflow {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  bottom: 8px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  position: absolute;
  right: 10px;
}

.comparison-mini-empty {
  color: #64748b;
  display: block;
  font-size: 12px;
  padding: 18px;
}

.comparison-event-edit-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.56);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1200;
}

.comparison-event-edit-modal.hidden {
  display: none;
}

.comparison-event-edit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 32px);
  max-width: min(1040px, calc(100vw - 32px));
  overflow: hidden;
  width: 100%;
}

.comparison-event-edit-header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.comparison-event-edit-header h3 {
  margin: 0;
}

.comparison-event-edit-header span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.comparison-event-edit-body {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.comparison-event-edit-body .edit-form {
  max-width: none;
}

.comparison-event-edit-body .edit-topbar {
  position: static;
}

.comparison-date-choice-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.48);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1300;
}

.comparison-date-choice-dialog {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  display: grid;
  gap: 10px;
  max-width: min(440px, calc(100vw - 36px));
  padding: 16px;
  width: 100%;
}

.comparison-date-choice-dialog h3,
.comparison-date-choice-dialog p {
  margin: 0;
}

.comparison-date-choice-dialog p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.comparison-snapshot-dialog {
  gap: 12px;
}

.comparison-snapshot-name-label,
.comparison-snapshot-attach-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.comparison-snapshot-name-label input {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 9px;
  width: 100%;
}

.comparison-snapshot-attach-label {
  align-items: start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px;
}

.comparison-snapshot-attach-label input {
  margin-top: 2px;
}

.comparison-date-choice-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-date-choice-actions button {
  display: grid;
  gap: 2px;
  min-height: 54px;
}

.comparison-date-choice-actions span {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
}

.transcript-speaker-scope-dialog {
  max-width: min(560px, calc(100vw - 36px));
}

.transcript-speaker-scope-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.transcript-speaker-scope-actions button {
  align-items: flex-start;
  justify-items: start;
  min-height: 72px;
  text-align: left;
}

.transcript-speaker-scope-actions strong {
  font-size: 0.9rem;
}

.fullscreen-event-detail-card {
  max-width: min(980px, calc(100vw - 32px));
}

.fullscreen-event-detail-body .detail-content {
  max-width: none;
}

.fullscreen-event-detail-body .detail-title-row {
  position: static;
}

.comparison-event-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(37, 99, 235, 0.04);
  box-sizing: border-box;
  overflow: hidden;
}

.comparison-event-card > .empty-small {
  margin: 0;
  padding: 12px;
}

.comparison-event-card-inner {
  border-left: 4px solid #2563eb;
  box-sizing: border-box;
  display: grid;
  gap: 7px;
  height: 100%;
  max-height: 190px;
  overflow: auto;
  padding: 8px 10px;
}

.comparison-event-card-head {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
}

.comparison-event-card-head strong,
.comparison-event-card-head time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-event-card-head time {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.comparison-event-card-indicators {
  --timeline-tile-scale: 0.95;
  justify-content: flex-start;
  max-width: 210px;
}

.comparison-event-card-indicators.empty {
  display: none;
}

.comparison-card-related-marker {
  align-items: center;
  background: var(--related-color, #64748b);
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
}

.comparison-event-card-body {
  display: grid;
  gap: 6px;
}

.comparison-event-details-block {
  display: grid;
  gap: 3px;
}

.comparison-event-details-block span {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-event-details-block p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  margin: 0;
  max-height: 58px;
  overflow: hidden;
}

.comparison-event-meta {
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 10px;
}

.comparison-layout {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(260px, 340px);
  min-height: calc(312px + 112px);
}

.comparison-focus-row {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-height: 210px;
}

.comparison-focus-row .comparison-event-card,
.comparison-focus-row .comparison-source-picker {
  min-height: 0;
}

.comparison-event-sidebar {
  align-self: stretch;
  min-height: 0;
}

.comparison-event-sidebar details {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 100%;
  min-height: calc(312px + 112px);
  max-height: calc(65vh + 112px);
  overflow: hidden;
}

.comparison-event-sidebar details,
.comparison-points-panel,
.comparison-source-picker {
  padding: 10px;
}

.comparison-event-sidebar summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comparison-event-sidebar summary b,
.comparison-event-count-toggle {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
}

.comparison-event-count-toggle {
  cursor: pointer;
  font-family: inherit;
}

.comparison-event-count-toggle:hover,
.comparison-event-count-toggle:focus-visible {
  background: #dbeafe;
  border-color: #60a5fa;
  outline: none;
}

.comparison-event-sidebar input {
  margin-bottom: 8px;
  width: 100%;
}

.comparison-event-sidebar select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  margin-bottom: 8px;
  min-height: 32px;
  padding: 6px 8px;
  width: 100%;
}

.comparison-event-list,
.comparison-source-list,
.comparison-remembered-points {
  display: grid;
  gap: 7px;
  max-height: 58vh;
  overflow: auto;
}

.comparison-event-list {
  align-content: start;
  max-height: calc(65vh + 6px);
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.comparison-event-row,
.comparison-source-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  color: #0f172a;
  display: grid;
  gap: 3px;
  padding: 8px;
  text-align: left;
}

.comparison-source-row {
  align-items: center;
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr);
}

.comparison-event-row.active {
  border-color: #2563eb;
  box-shadow: inset 4px 0 0 #2563eb;
}

.comparison-event-file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.comparison-event-file-link {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  max-width: 170px;
  min-height: 26px;
  padding: 3px 8px 3px 4px;
}

.comparison-event-file-link span {
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  flex: 0 0 auto;
  font-size: 10px;
  padding: 2px 5px;
}

.comparison-event-file-link,
.comparison-event-more-files {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-event-more-files {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 0;
}

.comparison-event-row span,
.comparison-source-row small,
.comparison-point-card span,
.comparison-point-card small {
  color: #64748b;
  font-size: 12px;
}

.comparison-main {
  display: grid;
  gap: 10px;
  min-height: calc(312px + 112px);
  min-width: 0;
}

.comparison-source-picker {
  display: grid;
  gap: 6px;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.comparison-source-picker-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.comparison-source-picker-head span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-top: 2px;
  max-width: 48ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-source-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.comparison-focus-row .comparison-source-list {
  max-height: none;
  min-height: 0;
}

.comparison-windows {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: start;
  min-height: calc(312px + 112px);
}

.comparison-empty-window {
  background: #fff;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #64748b;
  padding: 28px;
  text-align: center;
}

.comparison-window {
  align-content: start;
  align-self: start;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto auto;
  max-width: min(900px, 100%);
  min-width: 320px;
  overflow: visible;
  position: relative;
  resize: none;
  width: 430px;
}

.comparison-window.phone-window {
  border-radius: 26px;
  border-width: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.comparison-window.email-window {
  width: min(680px, 100%);
}

.comparison-window.is-resizing {
  user-select: none;
}

.comparison-window-resize-handle {
  background: transparent;
  border: 0;
  bottom: 12px;
  cursor: ew-resize;
  position: absolute;
  right: -18px;
  top: 54px;
  width: 12px;
  z-index: 8;
}

.comparison-window-resize-handle::after {
  background: rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  bottom: 10px;
  content: "";
  position: absolute;
  right: 5px;
  top: 10px;
  width: 4px;
}

.comparison-window-resize-handle:hover::after,
.comparison-window.is-resizing .comparison-window-resize-handle::after {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.comparison-window.minimized {
  grid-template-rows: auto;
}

.comparison-window header {
  align-items: start;
  background: #eef6ff;
  border-bottom: 1px solid #dbe4f0;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 9px;
}

.comparison-window header > div:first-child {
  min-width: 0;
}

.comparison-window header span {
  color: #475569;
  display: block;
  font-size: 12px;
  max-width: min(520px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-window-tools {
  align-content: start;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 4px;
  grid-auto-rows: min-content;
  grid-template-columns: minmax(150px, 1fr) 92px auto auto auto auto auto;
  padding: 6px;
}

.comparison-window-search-control {
  align-items: center;
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(72px, 1fr) auto auto auto;
  min-width: 0;
}

.comparison-window-tools input {
  min-width: 0;
  width: 100%;
}

.comparison-search-count {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 2px;
  justify-content: center;
  min-width: 38px;
  text-align: center;
  white-space: nowrap;
}

.comparison-search-position-input {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  color: #1d4ed8;
  font: inherit;
  font-weight: 900;
  height: 24px;
  padding: 2px 3px;
  text-align: center;
  width: 42px !important;
}

.comparison-search-position-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  outline: none;
}

.comparison-search-position-input::-webkit-outer-spin-button,
.comparison-search-position-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.comparison-search-position-input {
  -moz-appearance: textfield;
}

.comparison-window-tools .tiny-button {
  min-height: 28px;
  padding: 4px 7px;
  white-space: nowrap;
}

.comparison-window-tools [data-comparison-selection-event],
.comparison-window-tools [data-comparison-selection-jpg] {
  grid-column: auto;
}

.comparison-window-body {
  background: #f8fafc;
  align-items: stretch;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 65vh;
  min-height: 312px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  position: relative;
  scrollbar-gutter: stable;
  scrollbar-color: #2563eb #dbeafe;
  scrollbar-width: auto;
  width: 100%;
}

.comparison-window-body::-webkit-scrollbar {
  width: 16px;
}

.comparison-window-body::-webkit-scrollbar-track {
  background: #dbeafe;
  border-radius: 999px;
}

.comparison-window-body::-webkit-scrollbar-thumb {
  background: #2563eb;
  border: 3px solid #dbeafe;
  border-radius: 999px;
}

.comparison-window-body::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

.comparison-window-note {
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.comparison-scroll-date {
  align-self: center;
  background: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 5px 9px;
  position: sticky;
  top: 4px;
  width: fit-content;
  z-index: 4;
}

.comparison-window-load-more {
  align-self: center;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 12px;
}

.comparison-window-load-more:hover {
  background: #dbeafe;
}

.comparison-message {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  box-sizing: border-box;
  color: #0f172a;
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  height: auto;
  line-height: 1.35;
  max-width: 84%;
  min-width: min(260px, 100%);
  overflow-wrap: anywhere;
  overflow: hidden;
  padding: 8px 10px;
  position: static;
  text-align: left;
  white-space: normal;
}

.comparison-window.email-window .comparison-message {
  align-self: stretch;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.comparison-window.email-window .comparison-message.message-side-right,
.comparison-window.email-window .comparison-message.message-side-left {
  align-self: stretch;
}

.comparison-message.multi-selected {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.comparison-message-check {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
}

.comparison-message-check input {
  accent-color: #16a34a;
  margin: 0;
}

.comparison-message-content {
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  user-select: text;
  white-space: normal;
  width: 100%;
}

.comparison-message.message-side-right {
  align-self: flex-end;
}

.comparison-message.message-side-left {
  align-self: flex-start;
}

.comparison-message.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.comparison-message.matches {
  background: #fff7ed;
}

.comparison-search-mark {
  background: #facc15;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.25);
  color: #111827;
  font-weight: 900;
  padding: 0 2px;
}

.comparison-saved-highlight {
  background: #bbf7d0;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.28);
  color: #052e16;
  font-weight: 800;
  padding: 0 2px;
}

.comparison-message-meta {
  align-items: start;
  color: #475569;
  display: grid;
  font-size: 12px;
  gap: 2px;
  line-height: 1.25;
}

.comparison-message-meta strong {
  color: #0f172a;
}

.transcript-play-button {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
}

.transcript-play-button:hover {
  background: #dbeafe;
}

.transcript-audio-player {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 8px;
  left: 50%;
  max-width: min(720px, calc(100vw - 32px));
  padding: 10px;
  position: fixed;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  z-index: 9500;
}

.transcript-audio-player > div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.transcript-audio-player audio {
  width: 100%;
}

.comparison-message-subject {
  font-weight: 800;
}

.comparison-message-body {
  display: block;
  line-height: 1.38;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  user-select: text;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 720px) {
  .comparison-message {
    align-self: stretch;
    max-width: 100%;
    min-width: 0;
  }

  .comparison-message.message-side-right,
  .comparison-message.message-side-left {
    align-self: stretch;
  }
}

.comparison-points-panel {
  align-content: start;
  box-sizing: border-box;
  display: grid;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
}

.comparison-points-panel label,
.comparison-points-panel input,
.comparison-points-panel select,
.comparison-points-panel textarea,
.comparison-points-panel button {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.comparison-points-panel textarea {
  resize: vertical;
}

.comparison-points-head {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

.comparison-link-grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr;
}

.comparison-point-card {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.comparison-point-card img {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  max-width: 100%;
}

.comparison-point-card p {
  margin: 0;
}

@media (max-width: 1180px) {
  .comparison-focus-row,
  .comparison-layout {
    grid-template-columns: 1fr;
  }

  .comparison-layout,
  .comparison-main,
  .comparison-windows {
    min-height: 0;
  }

  .comparison-focus-row {
    max-height: none;
  }

  .comparison-event-sidebar details {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .comparison-event-list,
  .comparison-source-list,
  .comparison-remembered-points {
    max-height: 260px;
  }
}

@media print {
  @page {
    margin: 0.35in;
    size: landscape;
  }

  body.print-report-mode {
    background: #ffffff;
  }

  body.print-report-mode .app-shell {
    display: none !important;
  }

  body.print-report-mode .print-report {
    color: #111827;
    display: block;
    font-family: Arial, Helvetica, sans-serif;
  }

  .print-report-header {
    border-bottom: 2px solid #111827;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .print-report-header h1 {
    font-size: 22px;
    margin: 0 0 3px;
  }

  .print-report-header p,
  .print-report-meta {
    color: #374151;
    font-size: 11px;
    margin: 0;
  }

  .print-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
  }

  .print-timeline-frame {
    border: 1px solid #d1d5db;
    overflow: visible;
    padding: 8px;
  }

  .print-timeline-frame .timeline {
    border: 0;
    box-shadow: none;
    max-height: none;
    min-height: auto;
    overflow: visible;
  }

  .print-timeline-frame button {
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-spreadsheet-table {
    border-collapse: collapse;
    font-size: 9px;
    table-layout: fixed;
    width: 100%;
  }

  .print-spreadsheet-table th,
  .print-spreadsheet-table td {
    border: 1px solid #d1d5db;
    padding: 4px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
  }

  .print-spreadsheet-table th {
    background: #e5e7eb;
    color: #111827;
    font-size: 8px;
    text-transform: uppercase;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-row-number {
    text-align: center;
    width: 0.32in;
  }

  .print-spreadsheet-table tr {
    break-inside: avoid;
  }
}
.comm-existing-file-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto auto;
  gap: 8px;
  align-items: end;
  margin: 8px 0;
}

.comm-pdf-ocr-options {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1.3fr) repeat(2, minmax(140px, 1fr)) minmax(130px, .8fr);
  margin: 8px 0;
}

.comm-pdf-ocr-options label {
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
}

@media (max-width: 900px) {
  .comm-pdf-ocr-options { grid-template-columns: 1fr 1fr; }
}

.comm-imports-panel {
  margin-top: 10px;
  border-top: 1px solid #d8e0ea;
  padding-top: 8px;
}

.comm-import-list {
  max-height: 240px;
  overflow: auto;
}

.comm-import-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.4fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #e4e9f0;
}

.comm-import-row:first-child { border-top: 0; }
.comm-import-row small { display: block; color: #5d6875; }
.comm-import-progress { height: 6px; background: #e6ebf2; overflow: hidden; }
.comm-import-progress > span { display: block; height: 100%; background: #2563eb; }
.comm-import-row.is-failed .comm-import-progress > span { background: #c81e1e; }
.comm-import-row.is-complete .comm-import-progress > span { background: #17824b; }

.comm-legacy-library {
  margin-top: 10px;
  border-top: 1px solid #d8e0ea;
  padding-top: 8px;
}

.comm-legacy-library summary { cursor: pointer; font-weight: 700; }

@media (max-width: 900px) {
  .comm-existing-file-controls { grid-template-columns: 1fr; }
  .comm-import-row { grid-template-columns: 1fr auto; }
  .comm-import-row > :nth-child(2) { grid-column: 1 / -1; }
}

.collaborative-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.collaborative-save-state[data-status="unsaved"],
.collaborative-save-state[data-status="not-saved"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.collaborative-save-state[data-status="saving-"] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.collaborative-save-state[data-status="conflict"],
.collaborative-save-state[data-status="save-failed"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.collaborative-conflict-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 23 42 / 48%);
}

.collaborative-conflict-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / 24%);
}

.collaborative-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.collaborative-conflict-differences {
  margin-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.collaborative-conflict-differences > div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
