:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --panel-muted: #eef3f1;
  --text: #17201c;
  --muted: #65736c;
  --line: #d9e3df;
  --focus: #1e7f63;
  --focus-strong: #145b48;
  --blue: #315fbd;
  --blue-soft: #eef4ff;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --success: #13795b;
  --success-bg: #ecfdf5;
  --warning: #946200;
  --warning-bg: #fff7df;
  --shadow: 0 22px 60px rgba(28, 45, 38, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(30, 127, 99, 0.08), rgba(49, 95, 189, 0.08)),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
textarea,
select,
.upload-button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.workspace {
  width: min(1600px, 100%);
  min-width: 0;
  background: var(--panel);
  border: 1px solid rgba(217, 227, 223, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 2vw, 32px);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--focus);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--focus-strong);
  background: var(--panel-muted);
  font-size: 14px;
  font-weight: 700;
}

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

.mode-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  width: fit-content;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
  font-weight: 800;
}

.mode-tab:hover {
  background: var(--panel-muted);
  color: var(--text);
  box-shadow: none;
}

.mode-tab.active {
  background: var(--focus-strong);
  color: #ffffff;
}

.mode-link {
  text-decoration: none;
}

.mode-panel {
  display: grid;
  gap: 22px;
}

.flow-section {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.section-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-heading p,
.batch-summary {
  color: var(--muted);
  line-height: 1.6;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.task-form,
.extract-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.extract-form {
  grid-template-columns: 1fr;
}

.voice-workbench {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.voice-control-panel,
.live-transcript-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.voice-control-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.voice-control-panel .voice-status-error {
  color: var(--danger);
  font-weight: 700;
}

.voice-actions {
  display: grid;
  gap: 10px;
}

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

.live-transcript-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.live-transcript-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.empty-live {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.live-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.live-message p {
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.field-label,
.field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.conversation-template-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(320px, 100%);
}

.conversation-pickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.conversation-template-picker span {
  flex: 0 0 auto;
}

.conversation-template-picker select {
  min-height: 38px;
  min-width: 220px;
  padding-right: 34px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  min-height: 46px;
  padding: 0 12px;
}

select {
  min-height: 46px;
  padding: 0 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  resize: vertical;
  min-height: 110px;
  padding: 12px;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 127, 99, 0.12);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.split-actions {
  justify-content: space-between;
  align-items: center;
}

button,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--focus-strong);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--focus-strong);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  background: var(--panel-muted);
}

button:hover,
.upload-button:hover {
  background: #0d4d3d;
  box-shadow: 0 12px 26px rgba(20, 91, 72, 0.22);
}

button:active,
.upload-button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
  box-shadow: none;
}

button.recording {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

button.recording:hover {
  background: #8f1d15;
  box-shadow: 0 12px 26px rgba(180, 35, 24, 0.18);
}

.button-secondary,
.button-small,
.upload-button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.button-secondary:hover,
.button-small:hover,
.upload-button:hover {
  background: var(--panel-muted);
  box-shadow: none;
}

.progress-analysis-link {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.progress-analysis-link:hover {
  background: #244b9c;
  box-shadow: 0 12px 26px rgba(49, 95, 189, 0.2);
}

.upload-button {
  position: relative;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-button:has(input:disabled) {
  cursor: wait;
  opacity: 0.68;
}

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

.batch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.meeting-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.meeting-summary p {
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.meeting-summary details {
  color: var(--muted);
  font-size: 14px;
}

.meeting-summary summary {
  cursor: pointer;
  font-weight: 800;
}

.meeting-summary pre {
  max-height: 220px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel-muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.bindings-list {
  display: grid;
  gap: 10px;
}

.binding-row {
  display: grid;
  grid-template-columns: 58px minmax(160px, 1fr) auto minmax(160px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.speaker-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.speaker-badge {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-badge {
  background: var(--panel-muted);
  color: var(--muted);
}

.status-badge.created,
.status-badge.bound {
  background: var(--success-bg);
  color: var(--success);
}

.status-badge.failed,
.status-badge.unbound {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.binding-meta {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status-link {
  text-decoration: none;
}

.tasklist-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.tasklist-controls .field {
  min-width: 0;
}

.bitable-target-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.bitable-target-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bitable-target-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.speaker-match-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.speaker-match-head,
.speaker-match-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.speaker-match-list {
  display: grid;
  gap: 10px;
}

.speaker-match-row select {
  min-width: 180px;
}

.tasklist-visible-field {
  margin-bottom: 12px;
}

#selected-tasklist-meta a {
  color: var(--focus-strong);
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tasks-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.tasklist-tasks-table {
  min-width: 1040px;
}

.assignment-tasks-table {
  table-layout: fixed;
  min-width: 1720px;
}

.assignment-col-select {
  width: 48px;
}

.assignment-col-description {
  width: 280px;
}

.assignment-col-priority {
  width: 70px;
}

.assignment-col-owner {
  width: 190px;
}

.assignment-col-status {
  width: 120px;
}

.assignment-col-start,
.assignment-col-due {
  width: 150px;
}

.assignment-col-duration {
  width: 96px;
}

.assignment-col-remark {
  width: 500px;
}

.assignment-col-write-status {
  width: 120px;
}

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

.tasks-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tasks-table td {
  font-size: 13px;
}

.tasks-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.table-input,
.table-textarea {
  width: 100%;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.table-textarea {
  min-height: 72px;
  resize: vertical;
}

.speaker-input {
  width: 74px;
}

.mobile-cell,
.remark-cell,
.evidence-cell {
  color: var(--muted);
  line-height: 1.45;
}

.remark-cell {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inline-warning {
  color: var(--warning);
  font-size: 14px;
  font-weight: 700;
}

.progress-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.progress-toolbar h2 {
  margin-bottom: 6px;
}

.progress-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.metric-tile {
  display: grid;
  gap: 8px;
  min-height: 136px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.metric-action {
  width: 100%;
  justify-items: start;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
}

.metric-action:hover {
  border-color: var(--focus);
  background: #f6fbf9;
  box-shadow: 0 12px 24px rgba(20, 91, 72, 0.09);
}

.metric-action:focus-visible {
  outline: 3px solid rgba(30, 127, 99, 0.22);
  outline-offset: 2px;
}

.metric-tile span,
.metric-tile small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-tile strong {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.metric-tile.danger strong {
  color: var(--danger);
}

.metric-tile.warning strong {
  color: var(--warning);
}

.metric-tile.health-red strong {
  color: var(--danger);
}

.metric-tile.health-yellow strong {
  color: var(--warning);
}

.metric-tile.health-green strong {
  color: var(--success);
}

.action-list-section {
  margin-bottom: 22px;
}

.executive-action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.action-list-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.action-list-group.has-items {
  border-color: rgba(148, 98, 0, 0.28);
  background: #fffdf5;
}

.action-list-head {
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.action-list-head:hover {
  background: transparent;
  box-shadow: none;
}

.action-list-head span {
  color: var(--muted);
  font-size: 13px;
}

.action-list-head strong {
  font-size: 28px;
  line-height: 1;
}

.action-list-preview {
  display: grid;
  gap: 10px;
}

.action-preview-item {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.action-preview-item strong {
  overflow-wrap: anywhere;
}

.action-preview-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-breakdowns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

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

.breakdown-row {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.breakdown-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.breakdown-row span,
.empty-breakdown {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breakdown-row.has-risk strong {
  color: var(--danger);
}

.breakdown-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--panel-muted);
  overflow: hidden;
}

.breakdown-bar span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: var(--focus-strong);
}

.owner-analysis-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.owner-sort-field {
  width: min(220px, 100%);
}

.owner-progress-wrap {
  margin-top: 4px;
}

.owner-progress-table {
  min-width: 1180px;
}

.owner-rate {
  display: grid;
  gap: 8px;
  min-width: 140px;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.risk-red {
  background: var(--danger-bg);
  color: var(--danger);
}

.risk-yellow {
  background: var(--warning-bg);
  color: var(--warning);
}

.risk-green {
  background: var(--success-bg);
  color: var(--success);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 28, 0.42);
}

.modal-panel {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.due-detail-body {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.due-detail-section {
  display: grid;
  gap: 12px;
}

.due-detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.due-detail-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.due-task-list {
  display: grid;
  gap: 10px;
}

.due-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.due-task-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
}

.due-task-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 320px;
}

.due-task-meta code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.result {
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  line-height: 1.6;
}

.result strong {
  display: block;
  margin-bottom: 6px;
}

.result-success {
  border-color: rgba(19, 121, 91, 0.25);
  background: var(--success-bg);
  color: var(--success);
}

.result-error {
  border-color: rgba(180, 35, 24, 0.25);
  background: var(--danger-bg);
  color: var(--danger);
}

.result-warning {
  border-color: rgba(148, 98, 0, 0.25);
  background: var(--warning-bg);
  color: var(--warning);
}

.result code {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.notification-result-block {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.notification-result-block > span {
  font-size: 13px;
  font-weight: 800;
}

.notification-result-block ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.notification-result-block li {
  overflow-wrap: anywhere;
}

.notification-result-block li span {
  color: inherit;
  opacity: 0.82;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(19, 121, 91, 0.25);
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success);
  box-shadow: 0 18px 48px rgba(23, 32, 28, 0.16);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.toast-warning {
  border-color: rgba(148, 98, 0, 0.25);
  background: var(--warning-bg);
  color: var(--warning);
}

.toast-error {
  border-color: rgba(180, 35, 24, 0.25);
  background: var(--danger-bg);
  color: var(--danger);
}

body.is-loading {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(244, 247, 246, 0.82), rgba(238, 244, 255, 0.78)),
    rgba(244, 247, 246, 0.76);
  backdrop-filter: blur(10px);
}

.loading-panel {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(217, 227, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(23, 32, 28, 0.16);
  text-align: center;
}

.loading-visual {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 54px minmax(92px, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 320px;
  min-height: 112px;
  margin: 0 auto 18px;
}

.loading-dialogues,
.loading-checks {
  display: grid;
  gap: 9px;
}

.loading-dialogues span,
.loading-checks span {
  position: relative;
  display: block;
  height: 24px;
  border: 1px solid rgba(217, 227, 223, 0.95);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.loading-dialogues span {
  animation: loading-dialogue 1.8s ease-in-out infinite;
}

.loading-dialogues span:nth-child(1) {
  width: 92%;
}

.loading-dialogues span:nth-child(2) {
  width: 78%;
  margin-left: auto;
  animation-delay: 0.16s;
}

.loading-dialogues span:nth-child(3) {
  width: 88%;
  animation-delay: 0.32s;
}

.loading-dialogues span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--focus);
}

.loading-dialogues span::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 22px;
  right: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(49, 95, 189, 0.36), rgba(30, 127, 99, 0.24));
}

.loading-bridge {
  position: relative;
  height: 2px;
  border-radius: 999px;
  background: rgba(217, 227, 223, 0.95);
  overflow: hidden;
}

.loading-bridge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  animation: loading-bridge 1.4s ease-in-out infinite;
}

.loading-checks span {
  animation: loading-check 1.8s ease-in-out infinite;
}

.loading-checks span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-checks span:nth-child(3) {
  animation-delay: 0.4s;
}

.loading-checks span::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.loading-checks span::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 28px;
  right: 11px;
  height: 3px;
  border-radius: 999px;
  background: rgba(23, 32, 28, 0.18);
}

.loading-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.loading-message {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@keyframes loading-dialogue {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.72;
  }

  45% {
    transform: translateX(10px);
    opacity: 1;
  }
}

@keyframes loading-bridge {
  0% {
    transform: translateX(0);
  }

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

@keyframes loading-check {
  0%,
  100% {
    border-color: rgba(217, 227, 223, 0.95);
    transform: translateY(0);
  }

  45% {
    border-color: rgba(19, 121, 91, 0.42);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dialogues span,
  .loading-bridge::after,
  .loading-checks span {
    animation: none;
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .app-shell {
    align-items: start;
    padding-top: 18px;
  }

  .topbar,
  .form-actions,
  .split-actions,
  .mode-tabs,
  .voice-actions,
  .progress-toolbar,
  .progress-toolbar-actions,
  .owner-analysis-head {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .voice-workbench {
    grid-template-columns: 1fr;
  }

  .task-form {
    grid-template-columns: 1fr;
  }

  .tasklist-controls {
    grid-template-columns: 1fr;
  }

  .field-head {
    align-items: stretch;
  }

  .conversation-template-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
  }

  .conversation-pickers {
    width: 100%;
  }

  .conversation-template-picker select {
    min-width: 0;
  }

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

  .bitable-target-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-metrics,
  .executive-action-list,
  .progress-breakdowns {
    grid-template-columns: 1fr;
  }

  .modal-head,
  .due-task-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .due-task-meta {
    justify-content: flex-start;
    max-width: none;
  }

  .status-pill {
    width: fit-content;
  }

  button,
  .button-link {
    width: 100%;
  }

  .binding-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .loading-overlay {
    padding: 16px;
  }

  .loading-panel {
    padding: 24px 18px;
  }

  .loading-visual {
    grid-template-columns: minmax(80px, 1fr) 38px minmax(80px, 1fr);
    gap: 8px;
  }
}
