:root {
  --ink: #282431;
  --muted: #746e7e;
  --primary: #655a7c;
  --primary-strong: #504466;
  --accent: #ab92bf;
  --accent-soft: #eee7f2;
  --paper: #fffaf4;
  --surface: #fffefd;
  --canvas: #f8f2eb;
  --line: #e7ded7;
  --success: #43725b;
  --success-soft: #e7f2eb;
  --danger: #a64c50;
  --danger-soft: #f9e8e7;
  --warning: #9a6b2f;
  --warning-soft: #fbf0d9;
  --shadow: 0 12px 36px rgba(74, 61, 83, 0.07);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 8px;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--primary-strong);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

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

a {
  color: var(--primary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 252px;
  flex-direction: column;
  padding: 26px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.97);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.app-brand img {
  flex: 0 0 auto;
  border-radius: 7px;
  mix-blend-mode: multiply;
  object-fit: cover;
}

.app-brand > span > span {
  color: #8974a3;
}

.sidebar-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin: 32px 0 18px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(101, 90, 124, 0.18);
}

.sidebar-primary-action:hover {
  background: var(--primary-strong);
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  padding: 9px 12px;
  color: #625d69;
  font-weight: 650;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav .nav-active {
  background: var(--accent-soft);
  color: var(--primary-strong);
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--primary);
  font-size: 17px;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.sidebar-user {
  min-width: 0;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: 13px;
}

.sidebar-user span {
  color: var(--muted);
  font-size: 11px;
}

.mobile-header {
  display: none;
}

.container {
  width: calc(100% - 252px);
  margin: 0 0 0 252px;
  padding: 42px 40px 64px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 20px;
}

.page-heading {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.compact-heading {
  min-height: 70px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #8c78a3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button,
.downloads a,
.meeting-actions a,
.primary-link-button,
.secondary-link-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.primary-link-button:hover,
.downloads a:hover,
.meeting-actions a:hover {
  background: var(--primary-strong);
}

.secondary-button,
.secondary-link-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--primary);
}

.secondary-button:hover,
.secondary-link-button:hover {
  background: var(--accent-soft);
}

.danger-button {
  border-color: #e8cccc;
  background: transparent;
  color: var(--danger);
}

.danger-button:hover {
  background: var(--danger-soft);
}

.retry-button {
  background: var(--warning);
}

button:disabled {
  background: #c6bdca;
  cursor: not-allowed;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 18px;
  text-decoration: none;
}

.icon-button:hover {
  background: var(--accent-soft);
}

.text-link {
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.quick-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.quick-action:hover {
  border-color: #cbbbd4;
  transform: translateY(-1px);
}

.quick-action-primary {
  background: var(--primary);
  color: #fff;
}

.quick-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 19px;
}

.quick-action-primary .quick-action-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action small {
  margin-top: 2px;
  color: var(--muted);
}

.quick-action-primary small {
  color: #e7dfee;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.stat-card {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 650;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  color: var(--primary-strong);
  font-size: 30px;
  line-height: 1;
}

.section-header,
.section-actions,
.meeting-meta,
.downloads,
.meeting-actions,
.recorder-actions,
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header h1,
.section-header h2 {
  margin-bottom: 0;
}

.meeting-cards {
  display: grid;
}

.meeting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto 34px;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  border-top: 1px solid var(--line);
}

.meeting-card-download {
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.meeting-card-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.meeting-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 800;
}

.meeting-card-copy {
  min-width: 0;
}

.meeting-card-copy strong,
.meeting-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-card-copy small {
  margin-top: 3px;
  color: var(--muted);
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 54px 20px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 28px;
}

.empty-state p {
  max-width: 460px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #49434f;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8cec8;
  border-radius: 6px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(171, 146, 191, 0.17);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(101, 90, 124, 0.52);
  outline-offset: 2px;
}

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

.form-panel {
  max-width: 900px;
}

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

.form-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-section-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section-heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 800;
}

.form-section-heading h2,
.form-section-heading p {
  margin-bottom: 0;
}

.form-section-heading p {
  color: var(--muted);
  font-size: 13px;
}

.file-dropzone {
  display: grid;
  justify-items: center;
  min-height: 190px;
  place-content: center;
  border: 1px dashed #bbaac5;
  border-radius: 8px;
  background: #fcf8fd;
  text-align: center;
  cursor: pointer;
}

.file-dropzone:hover {
  background: var(--accent-soft);
}

.file-dropzone-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
}

.file-dropzone small {
  color: var(--muted);
  font-weight: 500;
}

.file-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.file-selection {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
}

.file-dropzone-active,
.file-dropzone:focus {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filters a,
.pagination a {
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.filters .filter-active {
  background: var(--accent-soft);
  color: var(--primary-strong);
}

.meetings-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.meetings-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.meetings-table th,
.meetings-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.meetings-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-actions {
  min-width: 170px;
}

.meeting-actions a,
.meeting-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.meeting-actions form,
.inline-action-form {
  display: inline-flex;
}

.status-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-done {
  background: var(--success-soft);
  color: var(--success);
}

.status-failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-uploaded,
.status-normalizing_audio,
.status-transcribing,
.status-assigning_speakers,
.status-generating_protocol,
.status-exporting {
  background: var(--warning-soft);
  color: var(--warning);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.meeting-heading {
  margin-bottom: 20px;
}

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

.action-toolbar {
  margin: 0 0 20px;
  padding: 12px;
}

.downloads a {
  min-height: 36px;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--primary-strong);
  font-size: 13px;
}

.downloads .primary-link-button {
  background: var(--primary);
  color: #fff;
}

.detail-retry {
  margin-bottom: 20px;
}

.protocol-summary {
  margin-bottom: 20px;
  border-left: 4px solid var(--accent);
}

.protocol-summary p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.7;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.protocol-grid .panel {
  margin-top: 0;
}

.protocol-section ul {
  margin: 0;
  padding-left: 20px;
}

.protocol-section li + li {
  margin-top: 10px;
}

.speaker-annotation {
  margin: 0;
}

.transcript-section pre,
pre {
  max-height: 600px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #faf7f4;
  color: #413b46;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.processing-progress,
.meeting-processing,
.processing-metrics {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.processing-progress[hidden] {
  display: none;
}

.processing-progress-header,
.recorder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.processing-progress-header h2,
.recorder h2 {
  margin: 0;
}

.processing-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.processing-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 450ms ease;
}

.processing-progress-fill-waiting {
  background-image: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 180% 100%;
  animation: progress-waiting 1.2s linear infinite;
}

.processing-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.processing-step-active {
  color: var(--primary);
  font-weight: 800;
}

.processing-step-done {
  color: var(--success);
}

@keyframes progress-waiting {
  from { background-position: 0 0; }
  to { background-position: 180% 0; }
}

.recorder {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #faf7fb;
}

.recorder-status,
.muted {
  color: var(--muted);
}

.recording-indicator {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c8bdca;
}

.recording-indicator-active {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(166, 76, 80, 0.13);
}

.recorder audio,
.review-audio audio {
  width: 100%;
  max-width: 100%;
}

.recorder-error,
.field-error,
.form-error {
  color: var(--danger);
  font-weight: 700;
}

.form-error,
.error {
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
}

.form-error {
  margin-bottom: 16px;
  padding: 10px 12px;
}

.error-cell {
  max-width: 320px;
  overflow-wrap: anywhere;
}

.review-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 20px;
}

.review-page > * {
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.review-audio {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  gap: 18px;
  align-items: start;
}

.review-column {
  min-width: 0;
  max-width: 100%;
}

.review-column form,
.review-page .page-heading,
.review-page .meeting-meta,
.review-page .meetings-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.review-segment,
.review-column form,
.review-column input,
.review-column textarea,
.review-column select,
.review-column button {
  min-width: 0;
  max-width: 100%;
}

.review-column input,
.review-column textarea,
.review-column select,
.review-column button {
  width: 100%;
}

.review-segments {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  max-height: 820px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

.review-segment {
  display: grid;
  width: 100%;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px;
  background: #faf7f4;
}

.review-page .meetings-table-wrap {
  overflow-x: auto;
}

.seek-button {
  justify-self: start;
}

.nested-panel {
  min-width: 0;
  max-width: 100%;
  padding-top: 24px;
}

.checkbox-grid {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkbox-grid input {
  width: auto;
}

.public-header {
  display: flex;
  width: min(1100px, calc(100% - 40px));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.public-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-header nav > a:first-child {
  font-weight: 700;
  text-decoration: none;
}

.public-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.auth-panel {
  width: min(500px, 100%);
  margin: 0 auto;
  padding: 38px;
}

.auth-intro {
  margin-bottom: 26px;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.password-control input {
  min-width: 0;
  border-radius: 6px 0 0 6px;
}

.password-toggle {
  min-height: 0;
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .app-sidebar {
    width: 220px;
  }

  .container {
    width: calc(100% - 220px);
    margin-left: 220px;
    padding: 36px 30px 56px;
  }

  .protocol-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 244, 0.96);
  }

  .mobile-header nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-user-menu {
    position: relative;
  }

  .mobile-user-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 50%;
    padding: 0;
    background: var(--accent);
  }

  .mobile-user-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 36px));
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .mobile-user-panel[hidden] {
    display: none;
  }

  .mobile-user-panel span {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-user-panel form {
    margin-top: 8px;
  }

  .mobile-header nav a {
    font-weight: 750;
    text-decoration: none;
  }

  .mobile-add {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
  }

  .container {
    width: 100%;
    margin-left: 0;
    padding: 28px 18px 52px;
  }

  .quick-actions,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card span {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .review-grid,
  .rating-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .review-grid {
    display: block;
  }

  .review-column + .review-column {
    margin-top: 20px;
  }

  .review-page,
  .review-column,
  .review-column form,
  .review-segment,
  .review-segments {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 28px;
  }

  .mobile-header .app-brand {
    font-size: 18px;
  }

  .page-heading,
  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading {
    min-height: 0;
  }

  .page-heading > .primary-link-button,
  .form-submit-row button,
  .review-column button {
    width: 100%;
  }

  .quick-actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-meetings-table {
    min-width: 0;
  }

  .compact-meetings-table th:nth-child(2),
  .compact-meetings-table td:nth-child(2) {
    display: none;
  }

  .compact-meetings-table th,
  .compact-meetings-table td {
    padding-inline: 7px;
  }

  .compact-meetings-table .meeting-actions {
    min-width: 0;
  }

  .meeting-card {
    grid-template-columns: minmax(0, 1fr) auto auto 34px;
    gap: 8px;
    padding: 11px 0;
  }

  .meeting-card > .status-badge {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-left: 55px;
  }

  .panel {
    padding: 18px;
  }

  .auth-panel {
    padding: 24px;
  }

  .public-header {
    width: min(100% - 28px, 1100px);
  }

  .public-header nav > a:first-child {
    display: none;
  }
}
