:root {
  --page: #f4fbf7;
  --paper: #ffffff;
  --paper-soft: #f2faf6;
  --ink: #12332c;
  --muted: #698078;
  --faint: #91aaa1;
  --line: #d9eae3;
  --line-strong: #bdd9cf;
  --green: #27a77a;
  --green-dark: #147656;
  --green-soft: #dcf6eb;
  --blue: #4aa7c8;
  --blue-soft: #e4f6fb;
  --amber: #bd7b19;
  --amber-soft: #fff2d6;
  --red: #c85d4e;
  --red-soft: #ffe8e4;
  --shadow: 0 22px 70px rgba(25, 86, 66, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(39, 167, 122, 0.07) 0 25%, transparent 25% 50%, rgba(74, 167, 200, 0.1) 50% 75%, transparent 75%) 0 0 / 32px 32px,
    radial-gradient(circle at 8% 8%, rgba(39, 167, 122, 0.18), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(74, 167, 200, 0.15), transparent 32%),
    linear-gradient(180deg, #fbfffd 0%, var(--page) 100%);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(280px, 1fr) minmax(220px, auto);
  gap: 18px;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(217, 234, 227, 0.86);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.account-panel,
.nav-list,
.top-actions,
.filter-group {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 14px 32px rgba(39, 167, 122, 0.22);
  font-size: 24px;
  font-weight: 900;
}

.brand h1,
.desk-header h2,
.login-panel h2,
.section-heading h3,
.archive-hero h3,
.kanban-head h3,
.card-title {
  margin: 0;
  line-height: 1.12;
}

.brand h1 {
  font-size: 19px;
}

.eyebrow,
.panel-label {
  margin: 0 0 5px;
  color: var(--faint);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.nav-list {
  justify-content: center;
  gap: 8px;
}

.nav-item,
.ghost-button,
.danger-button,
.primary-button,
.file-button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
}

.nav-item span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-soft);
}

.nav-item:hover,
.nav-item.active {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: rgba(39, 167, 122, 0.2);
}

.account-panel {
  justify-content: flex-end;
  gap: 10px;
}

.account-card {
  min-width: 150px;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 250, 246, 0.9);
}

.account-card strong {
  font-size: 14px;
}

.account-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workspace {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.login-view {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: center;
}

.login-view[hidden] {
  display: none;
}

.login-panel,
.register-panel {
  display: grid;
  gap: 20px;
  padding: 34px;
  border: 1px solid rgba(217, 234, 227, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.register-panel {
  padding: 24px;
  background: rgba(242, 250, 246, 0.86);
}

.login-panel h2 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 560px;
}

.register-panel h3 {
  margin: 0;
  font-size: 24px;
}

.login-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-grid,
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.logged-out .desk-header,
body.logged-out .status-strip,
body.logged-out .view {
  display: none;
}

.desk-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.desk-header h2 {
  font-size: clamp(30px, 4.5vw, 52px);
}

.top-actions,
.filter-group {
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button,
.danger-button,
.primary-button {
  padding: 0 16px;
  white-space: nowrap;
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.danger-button {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(200, 93, 78, 0.18);
}

.primary-button {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.file-button:hover,
.task-card:hover,
.metric:hover,
.submission-mini:hover,
.review-card:hover,
.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(25, 86, 66, 0.1);
}

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

.metric {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.metric-value {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pending .metric-value {
  color: var(--amber);
}

.returned .metric-value {
  color: var(--red);
}

.approved .metric-value {
  color: var(--green);
}

.total .metric-value {
  color: var(--blue);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: lift 220ms ease both;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  grid-template-areas:
    "tasks tasks"
    "form queue";
  gap: 16px;
}

.task-rail {
  grid-area: tasks;
}

.form-panel {
  grid-area: form;
}

.queue-panel {
  grid-area: queue;
}

.task-rail,
.form-panel,
.queue-panel,
.task-editor,
.task-list-panel,
.task-insight-panel,
.user-editor,
.user-list-panel,
.toolbar,
.archive-hero,
.archive-card,
.review-card,
.kanban-column {
  border: 1px solid rgba(217, 234, 227, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.task-rail,
.form-panel,
.queue-panel,
.task-editor,
.task-list-panel,
.task-insight-panel,
.user-editor,
.user-list-panel {
  padding: 20px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h3,
.archive-hero h3 {
  font-size: 22px;
  font-weight: 900;
}

.task-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.task-card {
  min-height: 92px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, var(--paper-soft));
  text-align: left;
}

.task-card.active {
  border-color: rgba(39, 167, 122, 0.42);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(39, 167, 122, 0.08);
}

.task-card strong {
  font-size: 15px;
}

.task-card small {
  color: var(--muted);
  line-height: 1.5;
}

.task-dot {
  width: 28px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

input::placeholder,
textarea::placeholder {
  color: #9bb1a9;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(39, 167, 122, 0.13);
}

textarea {
  resize: vertical;
}

.upload-zone {
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-soft);
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.upload-zone:hover {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-zone strong,
.upload-zone small {
  display: block;
}

.upload-zone small {
  margin-top: 5px;
  color: var(--muted);
}

.submit-button {
  width: 100%;
}

.file-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.file-list li,
.file-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfffd;
  font-size: 13px;
}

.file-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.file-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info strong {
  color: var(--muted);
  font-size: 12px;
}

.file-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.file-button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--green-dark);
  background: var(--paper);
  border-color: var(--line);
  font-size: 12px;
}

.submission-list,
.archive-grid,
.kanban-stack {
  display: grid;
  gap: 12px;
}

.empty-state {
  padding: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbfffd;
  text-align: center;
}

.empty-state.compact {
  padding: 18px;
  font-size: 13px;
}

.submission-mini,
.review-card,
.archive-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfffd;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.submission-mini {
  position: relative;
  padding-left: 20px;
}

.timeline-pin {
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: 34px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-title {
  font-size: 16px;
  font-weight: 900;
}

.meta,
.reason,
.content-preview {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.reason {
  color: var(--red);
  background: var(--red-soft);
  border-radius: var(--radius);
  padding: 9px 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-returned {
  color: var(--red);
  background: var(--red-soft);
}

.status-approved {
  color: var(--green-dark);
  background: var(--green-soft);
}

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

.toolbar label {
  min-width: 190px;
  margin-bottom: 0;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.kanban-column {
  min-height: 430px;
  padding: 14px;
}

.kanban-column.pending {
  background: linear-gradient(180deg, rgba(255, 242, 214, 0.82), rgba(255, 255, 255, 0.82));
}

.kanban-column.returned {
  background: linear-gradient(180deg, rgba(255, 232, 228, 0.82), rgba(255, 255, 255, 0.82));
}

.kanban-column.approved {
  background: linear-gradient(180deg, rgba(220, 246, 235, 0.88), rgba(255, 255, 255, 0.82));
}

.kanban-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 4px 14px;
}

.kanban-head h3 {
  font-size: 18px;
}

.kanban-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.kanban-head span {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--paper);
  font-weight: 900;
}

.review-card {
  display: grid;
  gap: 12px;
}

.review-files,
.review-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.review-actions textarea {
  min-height: 76px;
}

.review-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.task-manager {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  grid-template-areas:
    "editor list"
    "insight insight";
  gap: 16px;
  align-items: start;
}

.user-manager {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.task-editor {
  grid-area: editor;
}

.task-list-panel {
  grid-area: list;
}

.task-insight-panel {
  grid-area: insight;
}

.form-actions,
.task-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions > *,
.task-actions > * {
  flex: 1 1 110px;
}

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

.user-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.user-summary span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--paper-soft);
  font-size: 12px;
  font-weight: 900;
}

.user-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.user-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.managed-task-card,
.user-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfffd;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.managed-task-card:hover,
.user-card:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 167, 122, 0.26);
  box-shadow: 0 14px 34px rgba(25, 86, 66, 0.1);
}

.managed-task-card.selected {
  border-color: rgba(39, 167, 122, 0.45);
  box-shadow: 0 0 0 3px rgba(39, 167, 122, 0.1), var(--shadow);
}

.user-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-actions .ghost-button,
.user-actions .danger-button {
  min-height: 34px;
  padding: 0 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.task-progress,
.insight-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.task-progress span,
.insight-metrics span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--paper-soft);
  font-size: 12px;
  font-weight: 900;
}

.insight-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
}

.insight-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.insight-head h3 {
  margin: 0;
  font-size: 22px;
}

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

.roster-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfffd;
}

.roster-block header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.roster-block h4 {
  margin: 0;
  font-size: 15px;
}

.roster-block header span {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 900;
}

.roster-row {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.roster-row strong {
  font-size: 14px;
}

.roster-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.archive-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 14px;
}

.archive-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.archive-card {
  min-height: 142px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  color: white;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 51, 44, 0.38);
  backdrop-filter: blur(10px);
}

.preview-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(18, 51, 44, 0.22);
  overflow: hidden;
}

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

.preview-head h3 {
  max-width: min(620px, 62vw);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.preview-body {
  min-height: 320px;
  overflow: auto;
  background: #f9fbf8;
}

.preview-image,
.preview-media {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  margin: 0 auto;
}

.preview-frame {
  display: block;
  width: 100%;
  height: min(680px, calc(100vh - 170px));
  border: 0;
  background: white;
}

.preview-audio {
  width: calc(100% - 40px);
  margin: 40px 20px;
}

.preview-text {
  margin: 0;
  padding: 18px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
}

.preview-fallback {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
}

.preview-fallback p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .login-view {
    grid-template-columns: 1fr;
  }

  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .account-panel {
    justify-content: space-between;
  }

  .member-board,
  .task-manager,
  .user-manager,
  .kanban-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tasks"
      "form"
      "queue";
  }

  .task-manager {
    grid-template-areas:
      "editor"
      "list"
      "insight";
  }

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

@media (max-width: 680px) {
  .workspace {
    width: calc(100vw - 28px);
    padding: 18px 0 32px;
  }

  .app-header {
    padding: 14px;
  }

  .desk-header,
  .toolbar,
  .archive-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .status-strip,
  .login-grid,
  .field-grid,
  .user-summary {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .filter-group,
  .form-actions,
  .task-actions,
  .toolbar label,
  .toolbar .ghost-button {
    width: 100%;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .file-chip {
    align-items: stretch;
    flex-direction: column;
  }

  .file-actions,
  .review-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .user-card-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .insight-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .preview-modal {
    padding: 12px;
  }

  .preview-dialog {
    max-height: calc(100vh - 24px);
  }

  .preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-head h3 {
    max-width: 100%;
  }
}
