:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --text: #18222f;
  --muted: #657386;
  --line: #d9e1ea;
  --primary: #145c72;
  --primary-dark: #0c4051;
  --accent: #b8612f;
  --danger: #b3261e;
  --warning: #8a5a00;
  --success: #2f6f4e;
  --shadow: 0 12px 30px rgba(24, 34, 47, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 40px);
  background: #fdfefe;
  border-bottom: 1px solid var(--line);
}

.app-header h1 {
  margin: 2px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #c9d7e2;
  border-radius: 8px;
  background: #eaf4f6;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: normal;
  max-width: 100%;
}
.app-header > div { min-width: 0; max-width: 100%; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.header-actions .workspace-control { margin-top: 0; }
[data-account] { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.compact-button { min-height: 34px; padding: 5px 10px; }
input[type="file"] { max-width: 100%; }

.main-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 clamp(12px, 4vw, 36px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.main-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 14px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.app-shell {
  width: calc(100% - clamp(24px, 4vw, 64px));
  max-width: none;
  margin: 24px auto 56px;
}

.login-panel {
  width: min(100%, 460px);
  margin: 8vh auto 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel h2 { margin-top: 0; }
.login-panel .primary-button { min-width: 140px; }
.no-wrap { white-space: nowrap; }

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}

.summary-card {
  min-height: 160px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 17px;
}

.count-pill,
.status-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill {
  border: 1px solid transparent;
}

.status-pill.status-new {
  background: #e8f1ff;
  border-color: #b8d2f5;
  color: #174f96;
}

.status-pill.status-contacted {
  background: #e3f5f4;
  border-color: #a9d9d5;
  color: #12625f;
}

.status-pill.status-hearing {
  background: #fcebed;
  border-color: #edbdc6;
  color: #8b3343;
}

.status-pill.status-preparing {
  background: #eef0ff;
  border-color: #c8ccf3;
  color: #434f9c;
}

.status-pill.status-proposed {
  background: #f2e9fb;
  border-color: #d7bce9;
  color: #67318a;
}

.status-pill.status-considering {
  background: #fff4cc;
  border-color: #e8cf75;
  color: #775500;
}

.status-pill.status-on-hold {
  background: #fff0df;
  border-color: #e8bd8c;
  color: #8a4700;
}

.status-pill.status-won {
  background: #e6f4ea;
  border-color: #add7ba;
  color: #23653b;
}

.status-pill.status-lost {
  background: #eef1f4;
  border-color: #c9d0d8;
  color: #4e5966;
}

.status-pill.status-unset {
  background: #fff;
  border-color: #aeb8c2;
  color: #4d5965;
}

.status-pill.status-other {
  background: #f5ece8;
  border-color: #d8bbb0;
  color: #744535;
}

.priority-pill.high {
  background: #fdecea;
  color: var(--danger);
}

.priority-pill.medium {
  background: #fff4d9;
  color: var(--warning);
}

.priority-pill.low {
  background: #edf7ef;
  color: var(--success);
}

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

.linked-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.linked-item:hover,
.linked-item:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.linked-item strong {
  font-size: 15px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 13px;
}

.deal-status-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: #fbfcfd;
  border: 1px dashed #cbd6e0;
  border-radius: 8px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

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

.toolbar.deal-filters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.deal-filters .button-row { align-self: end; }
.deal-filter-error { grid-column: 1 / -1; margin: 0; }

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

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #bfccd8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(20, 92, 114, 0.14);
}

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

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button {
  padding: 8px 14px;
  background: #fff;
  border-color: #b8c7d4;
  color: var(--primary-dark);
}

.danger-button {
  padding: 8px 14px;
  background: #fff;
  border-color: #e7bbb7;
  color: var(--danger);
}

.icon-button {
  width: 40px;
  background: #fff;
  border-color: #b8c7d4;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.deal-table {
  min-width: 1240px;
}

.deal-date-column,
.deal-action-column {
  width: 1%;
  white-space: nowrap;
}

th.deal-date-column {
  padding: 0;
}

.deal-company-column,
.deal-title-column {
  min-width: 140px;
  overflow-wrap: anywhere;
}

.deal-money-column {
  min-width: 126px;
  text-align: right;
  white-space: nowrap;
}

.amount-value {
  white-space: nowrap;
}

.amount-tax-note {
  display: block;
  margin-top: 3px;
  color: var(--warning-text, #8a4b12);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-start;
  width: 100%;
  min-width: 76px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
  text-decoration: underline;
}

.sort-indicator {
  display: inline-block;
  width: 1em;
  color: var(--text);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  white-space: nowrap;
}

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

td a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.deal-table td:nth-child(4),
.deal-table td:nth-child(10) {
  overflow-wrap: anywhere;
}

.deal-table td:nth-child(11),
.deal-table td:nth-child(12),
.deal-table td:nth-child(12) button,
.table-wrap td .button-row,
.table-wrap td button {
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 16px;
  align-items: start;
}

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

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

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

.readonly-item {
  padding: 10px 12px;
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readonly-item .value {
  margin-top: 3px;
  font-weight: 700;
  word-break: break-word;
}

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

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

.history-item p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.task-row > strong,
.task-row > .button-row {
  grid-column: 1 / -1;
}

.save-result {
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.save-result.error {
  color: var(--danger);
}

.task-status {
  display: grid;
  gap: 6px;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.schedule-actions {
  margin-bottom: 12px;
}

.schedule-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.schedule-row.is-next {
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.next-label {
  color: var(--primary-dark);
}

.plan-kind {
  display: inline-block;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}

.plan-kind.customer {
  background: #e6f3f5;
  color: #145c72;
}

.plan-kind.internal {
  background: #f5ecf0;
  color: #843856;
}

.schedule-content,
.completion-result p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0;
}

.completion-result {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0;
}

.completed-schedules {
  margin-top: 16px;
}

.completed-schedules summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}

.detail-layout > *,
.page-title > *,
.field {
  min-width: 0;
}

.page-title h2,
.linked-item strong,
.task-row strong {
  overflow-wrap: anywhere;
}

.task-row.done {
  opacity: 0.72;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 24, 36, 0.48);
}

.modal {
  width: min(760px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

#modal-body {
  padding: 18px;
}

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: #fff8ef;
  border-radius: 8px;
}

.nowrap {
  white-space: nowrap;
}

.datetime-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.datetime-input-row input {
  flex: 1 1 210px;
  min-width: 0;
}

.datetime-panel {
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.datetime-panel::backdrop {
  background: rgba(14, 24, 36, 0.12);
}

.datetime-time-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.picker-error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

.datetime-panel .flatpickr-calendar {
  top: 0;
  width: 100%;
  box-shadow: none;
  border-radius: 0;
}

.datetime-panel .flatpickr-rContainer,
.datetime-panel .flatpickr-days,
.datetime-panel .dayContainer {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.datetime-panel .flatpickr-day {
  flex-basis: calc(100% / 7);
  width: calc(100% / 7);
  max-width: none;
  height: 36px;
  line-height: 34px;
  border-radius: 4px;
}

.datetime-panel .flatpickr-day.selected {
  background: var(--primary);
  border-color: var(--primary);
}

.datetime-panel .flatpickr-calendar input,
.datetime-panel .flatpickr-calendar select {
  min-height: 0;
  border: 0;
  border-radius: 0;
  font-size: 16px;
}

.datetime-panel .flatpickr-day:focus-visible,
.datetime-panel button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.analytics-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 24px 0;
  border-top: 1px solid var(--border, #d5dcdf);
  margin-bottom: 20px;
}

.workspace-control { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; font-size: 14px; }
.workspace-control select { max-width: 220px; }
.customer-search { display: flex; align-items: flex-end; gap: 12px; margin: 20px 0; }
.customer-search .field { flex: 1; }
.customer-search button { min-height: 42px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; }
.check-label input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin-top: 4px; }
.import-rows { display: grid; gap: 10px; max-height: 55vh; overflow: auto; }
.import-row { padding: 12px; border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
.import-row details p { white-space: pre-wrap; }
.storage-warning:not(:empty) { padding: 12px 24px; background: #fff1df; color: #75450c; }
.readonly-item .value { overflow-wrap: anywhere; white-space: pre-wrap; }

#app:focus { outline: none; }

.analytics-section h3 { margin-top: 0; }
.analytics-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0; }
.analytics-controls .field { flex: 1 1 160px; min-width: 0; }
.analytics-controls input, .analytics-controls select { width: 100%; min-width: 0; }
.analytics-controls .button-row { flex: 0 1 190px; }
.analytics-controls button { min-height: 42px; }
.filter-select { position: relative; }
.audit-record { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
[data-deal-form] details { padding: 12px 0; border-top: 1px solid #d7dfe4; }
[data-deal-form] details > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
[data-deal-form] [hidden] { display: none; }
.filter-trigger { width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left; }
.filter-trigger span:first-child { overflow-wrap: anywhere; }
.filter-panel { position: absolute; top: 100%; left: 0; z-index: 20; width: max(100%, 300px); max-width: calc(100vw - 48px); padding: 12px; border: 1px solid #aebcc5; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px #0002; }
.filter-panel[hidden] { display: none; }
.filter-panel p { margin: 0 0 8px; overflow-wrap: anywhere; }
.filter-options { max-height: 250px; overflow-y: auto; }
.filter-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.filter-select .filter-options input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filter-select:last-of-type .filter-panel { left: auto; right: 0; }
@media (max-width: 600px) { .analytics-controls .filter-select { flex-basis: 100%; } .filter-panel { width: 100%; max-width: 100%; } }
.analysis-note { color: #56626a; font-size: 13px; line-height: 1.8; }
.summary-explanations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 20px; }
.summary-explanations h4 { margin: 0 0 8px; }
.summary-explanations p { margin: 8px 0; line-height: 1.8; overflow-wrap: anywhere; }
[data-sales-summary] .analysis-table td:nth-child(2),
[data-sales-summary] .analysis-table td:nth-child(4),
[data-sales-summary] .analysis-table td:nth-child(7),
[data-sales-summary] .analysis-table td > .metric-link { white-space: nowrap; }
@media (max-width: 700px) { .summary-explanations { grid-template-columns: minmax(0, 1fr); } }
.analysis-warning { color: #925623; font-size: 13px; }
.applied-filter { display: inline-block; max-width: 100%; margin: 4px 0 0; padding: 7px 10px; border: 1px solid #b8cbd0; background: #f1f7f8; color: #244f59; font-size: 14px; }
.amount-range-field { flex-basis: 190px; }
.metric-overview { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 24px 0; }
.metric-overview > span { max-width: 100%; }
.metric-overview small, .analysis-table small { display: block; font-size: 12px; line-height: 1.8; font-weight: 400; }
.metric-link { background: transparent; border: 0; border-radius: 0; padding: 2px 3px; color: #096967; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.metric-link:focus-visible { outline: 2px solid #096967; outline-offset: 2px; }
.analysis-table { min-width: 800px; }
.analysis-table th, .analysis-table td { vertical-align: top; }
.analysis-table td { min-width: 110px; }
.analysis-table small .metric-link { font-size: 12px; }
.funnel { display: grid; gap: 14px; margin: 22px 0; }
.funnel-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 240px; align-items: center; gap: 14px; }
.funnel-row > strong { font-size: 14px; }
.funnel-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.funnel-rate { white-space: nowrap; }
.funnel-track { height: 24px; background: #e9eded; }
.funnel-bar { height: 100%; background: #197977; }
.funnel-bar.stage-1 { background: #577a42; }
.funnel-bar.stage-2 { background: #b37d38; }
.funnel-bar.stage-3 { background: #945465; }
.drill-list { display: grid; gap: 10px; }
.drill-deal-link { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.drill-deal-link:hover strong { text-decoration: underline; }
.pipeline-supplement { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pipeline-supplement h4 { margin-top: 0; }
.pipeline-supplement [data-pipeline-group="all"] { border-top: 2px solid var(--line); }
.deal-expected-timing { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.drill-totals { margin-top: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drill-amounts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 4px 0; }
.drill-amounts strong, .drill-totals strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.readonly-grid strong { display: block; overflow-wrap: anywhere; }
[data-facts-form] label:has(input[type="checkbox"]) { display: flex; align-items: start; gap: 10px; }
[data-facts-form] input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; }

@media (max-width: 820px) {
  .funnel-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .funnel-row > strong { font-size: 14px; }
  .funnel-value { justify-content: flex-start; font-size: 22px; grid-row: 2; }
  .funnel-track { grid-row: 3; }
  .analytics-controls .button-row { flex-basis: 100%; }
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions { justify-content: flex-start; }
  [data-account] { flex-wrap: wrap; }

  .app-shell {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .page-title,
  .detail-layout {
    display: grid;
  }

  .dashboard-grid,
  .detail-layout,
  .toolbar,
  .form-grid,
  .readonly-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
  }

  .task-row {
    grid-template-columns: 1fr;
  }
}
/* Imported source text retains its original line boundaries. */
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Meeting records share the app's unframed sections and form controls. */
.meeting-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.meeting-drop { border: 1px dashed #7c8792; padding: 12px; display: grid; gap: 8px; }
.meeting-todo { min-width: 0; margin: 12px 0; padding: 12px 0; border: 0; border-top: 1px solid #d5dce2; }
.meeting-todo label { display: grid; gap: 6px; min-width: 0; margin-bottom: 10px; }
.meeting-todo input, .meeting-todo select, .meeting-todo textarea { max-width: 100%; min-width: 0; width: 100%; }
.meeting-todo .check-label { display: flex; }
.meeting-todo .check-label input { width: auto; }
.meeting-drop input { max-width: 100%; min-width: 0; }
