.app-shell,
.main,
.content,
.panel,
.module-head,
.panel-head,
.stats-grid,
.grid,
.settings-shell,
.archive-layout,
.workspace-grid,
.word-editor-shell,
.table-wrap {
  min-width: 0;
}

.main { overflow: clip; }
.content {
  width: min(100%, 1680px);
  margin-inline: auto;
  padding: clamp(16px, 1.8vw, 28px);
}
.topbar {
  min-width: 0;
  padding-inline: clamp(16px, 1.8vw, 28px);
}
.topbar > div:first-of-type { min-width: 0; flex: 1 1 auto; }
.topbar h1,
.topbar p,
.module-head h2,
.module-head p,
.panel-head h2,
.setting-copy strong,
.stat-card span {
  overflow-wrap: anywhere;
}
.topbar-actions { flex: 0 0 auto; }
.module-actions { min-width: 0; }
.module-actions .btn,
.quick-actions .btn,
.form-actions .btn {
  min-width: 0;
}
.panel { overflow: visible; }
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.stat-card {
  min-width: 0;
  align-content: start;
}
.stat-card strong {
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.grid.two,
.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.workflow {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.form-actions {
  flex-wrap: wrap;
}
.form-actions .btn {
  flex: 0 1 auto;
}
.table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
th, td {
  overflow-wrap: anywhere;
}
.actions {
  justify-content: flex-start;
}
.archive-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}
.archive-year-list a,
.settings-tab,
.backup-list a {
  min-width: 0;
}
.settings-tabs {
  grid-template-columns: 1fr;
}
.settings-group-head,
.maintenance-head {
  align-items: flex-start;
}
.setting-control > input:not([type="checkbox"]),
.setting-control > textarea,
.setting-control > select {
  width: min(100%, 560px);
}
.workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}
.report-commandbar,
.word-toolbar {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.report-commandbar {
  flex-wrap: nowrap;
}
.toolbar-record-status,
.toolbar-playback-status,
.audio-note-status,
.audio-note-meta {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-note-native {
  width: clamp(120px, 18vw, 168px);
}
.toolbar-audio-control .audio-note-native {
  width: clamp(132px, 20vw, 190px);
}
.word-canvas {
  max-width: 100%;
  padding: clamp(12px, 2vw, 28px);
}
.word-editor-page {
  width: min(794px, calc(100vw - 96px));
  padding: clamp(30px, 5vw, 64px);
}
.word-statusbar {
  min-width: 0;
}
.word-statusbar span {
  min-width: 0;
}
.document-page {
  width: min(calc(100% - 32px), 980px);
  padding: clamp(24px, 3.2vw, 42px);
}
.doc-brand,
.doc-contact,
.doc-title-row,
.kv,
.doc-section,
.doc-signatures {
  min-width: 0;
}
.doc-brand > div {
  min-width: 0;
}
.doc-brand span,
.doc-brand small,
.doc-contact span,
.kv dd {
  overflow-wrap: anywhere;
}
.thermal-receipt {
  width: min(72mm, calc(100vw - 20px));
}
.auth-card {
  padding: clamp(22px, 4vw, 28px);
}

