:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f4f0e8;
  color: #252936;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(169, 77, 154, 0.14), transparent 34rem),
    linear-gradient(180deg, #faf8f2 0%, #eee9df 100%);
}

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

input,
textarea,
select {
  min-height: 48px;
  font-size: 16px;
}

button {
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px 18px;
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #873ba1;
  color: #fff;
  font-weight: 800;
}

.brand-block strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.brand-block span,
.eyebrow,
.panel-head p,
.status-pill,
.step-tab small,
.question-top p,
.event-body p {
  color: #6f7480;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid rgba(135, 59, 161, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #873ba1;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.status-pill {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(135, 59, 161, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-action {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(135, 59, 161, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #873ba1;
  font-weight: 800;
}

.icon-action.danger {
  color: #b42338;
  border-color: rgba(180, 35, 56, 0.2);
}

.global-loading {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 10px 14px;
  border: 1px solid rgba(135, 59, 161, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(62, 50, 34, 0.1);
  color: #4a334f;
}

.global-loading i {
  width: 16px;
  height: 16px;
  border: 2px solid #eadff0;
  border-top-color: #873ba1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(135, 59, 161, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(60, 46, 29, 0.08);
}

.hero-panel h1 {
  margin: 4px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.hero-panel p {
  margin: 0;
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.score-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: 8px;
  background: #2f3440;
  color: #fff;
}

.score-card span {
  color: #cfd4dc;
}

.score-card strong {
  font-size: 38px;
}

.score-track,
.mini-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(135, 59, 161, 0.14);
}

.score-track {
  background: rgba(255, 255, 255, 0.18);
}

.score-track i,
.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b955b4;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.step-tab {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid #e2ddd4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #3a3f4c;
  text-align: left;
}

.step-tab span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f2edf2;
  color: #873ba1;
  font-weight: 800;
}

.step-tab.active {
  border-color: rgba(135, 59, 161, 0.46);
  background: #fff;
  box-shadow: 0 10px 30px rgba(64, 50, 36, 0.08);
}

.step-tab.active span {
  background: #873ba1;
  color: #fff;
}

.content-grid,
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 18px;
}

.content-grid.single {
  grid-template-columns: 1fr;
}

.workspace {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.panel,
.dimension-rail,
.summary-card,
.add-box {
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(62, 50, 34, 0.07);
}

.panel {
  padding: 22px;
}

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

.panel-head h2,
.summary-card h2,
.add-box summary {
  margin: 0 0 6px;
  color: #252936;
  font-size: 22px;
  letter-spacing: 0;
}

.panel-head p {
  margin: 0;
  line-height: 1.6;
}

.profile-grid,
.event-form,
.question-list,
.event-list {
  display: grid;
  gap: 14px;
}

.root-intro-card {
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #eadff0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #fff8fd 100%);
  box-shadow: inset 4px 0 0 #8c38ad;
}

.root-intro-mark {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #f2e5f6;
  color: #81349f;
  font-size: 13px;
  font-weight: 800;
}

.root-intro-card p {
  margin: 0;
  color: #333847;
  font-size: 15px;
  line-height: 1.85;
}

.root-intro-card p + p {
  margin-top: 8px;
}

.root-unified-panel {
  overflow: hidden;
}

.root-topic-head h2 {
  font-size: 26px;
}

.root-intro-unified {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(100, 64, 146, 0.1), inset 4px 0 0 #8c38ad;
}

.root-intro-unified p {
  max-width: 760px;
}

.root-start-button {
  justify-self: center;
  margin-top: 12px;
  min-width: 150px;
  border-radius: 999px;
}

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

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

.field span {
  color: #4c5360;
  font-weight: 800;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fff;
  color: #252936;
  outline: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
  line-height: 1.65;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #873ba1;
  box-shadow: 0 0 0 4px rgba(135, 59, 161, 0.12);
}

input:disabled,
textarea:disabled {
  background: #f5f1ea;
  color: #6b7280;
  cursor: not-allowed;
}

.sticky-actions,
.row-actions,
.pager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sticky-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.primary-action,
.secondary-action,
.ghost-button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  border: 1px solid #873ba1;
  background: #873ba1;
  color: #fff;
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-action {
  background: #fff;
  color: #873ba1;
}

.ghost-button {
  border: 1px solid #ded8cf;
  background: #fbfaf7;
  color: #666d78;
}

.danger {
  color: #b33a50;
}

.error {
  color: #b33a50;
  font-weight: 700;
}

.dimension-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.rail-title {
  padding: 6px 4px 10px;
  color: #873ba1;
  font-weight: 900;
}

.dimension-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #3a3f4c;
  text-align: left;
}

.dimension-button span {
  grid-column: 1 / -1;
  color: #6f7480;
  font-size: 12px;
}

.dimension-button small {
  color: #873ba1;
  font-weight: 900;
}

.dimension-button.active {
  border-color: rgba(135, 59, 161, 0.24);
  background: #fff1fb;
}

.mini-progress {
  flex: 0 0 120px;
  margin-top: 8px;
}

.question-row {
  padding: 18px;
  border: 1px solid #e7e0d7;
  border-radius: 8px;
  background: #fff;
}

.question-row.done {
  border-color: rgba(135, 59, 161, 0.28);
}

.question-row.needs-fill {
  border-color: #b33cc5;
  box-shadow: 0 0 0 4px rgba(179, 60, 197, 0.12), 0 18px 36px rgba(103, 45, 121, 0.16);
}

.question-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.question-top h3 {
  margin: 0 0 6px;
  color: #303542;
  font-size: 18px;
}

.question-top em {
  color: #b33a50;
  font-style: normal;
}

.question-top p {
  margin: 0;
  line-height: 1.6;
}

.question-top > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2edf2;
  color: #873ba1;
  font-size: 12px;
  font-weight: 900;
}

.row-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.insight-card {
  margin-top: 14px;
  padding: 16px;
  border-left: 4px solid #873ba1;
  border-radius: 8px;
  background: #faf7fb;
}

.insight-card strong {
  color: #873ba1;
}

.insight-card p {
  line-height: 1.65;
}

.insight-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.insight-card div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
}

.insight-card dt {
  color: #6f7480;
}

.insight-card dd {
  margin: 0;
}

.followup-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #eadce9;
  border-radius: 8px;
  background: #fffafd;
}

.followup-box > strong {
  color: #873ba1;
}

.followup-box > small {
  color: #7b667e;
  line-height: 1.5;
}

.followup-round {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f5ebf6;
  color: #873ba1;
  font-size: 12px;
  font-weight: 800;
}

.followup-prompt {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #d9c5db;
  border-radius: 8px;
  background: #fff;
}

.followup-prompt p,
.followup-question,
.followup-answer,
.followup-summary {
  margin: 0;
  line-height: 1.65;
}

.followup-question {
  color: #873ba1;
  font-weight: 800;
}

.followup-answer {
  color: #303542;
}

.followup-summary {
  color: #6f7480;
}

.followup-saved {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f3f8;
}

.pager-actions {
  justify-content: space-between;
  margin: 18px 0;
}

.add-box {
  margin-top: 18px;
  padding: 18px;
}

.add-box summary {
  cursor: pointer;
  font-weight: 900;
}

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

.summary-card {
  margin-top: 18px;
  padding: 20px;
}

.summary-card p {
  margin: 0;
  color: #4f5664;
  line-height: 1.7;
}

.dimension-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dimension-preview span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8eef9;
  color: #873ba1;
  font-weight: 700;
  font-size: 13px;
}

.report-panel {
  display: grid;
  gap: 14px;
}

.report-history-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: #fff;
  color: #626875;
}

.report-list {
  display: grid;
  gap: 14px;
}

.generating-notice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(135, 59, 161, 0.24);
  border-radius: 8px;
  background: #fff1fb;
  color: #4a334f;
}

.generating-notice strong {
  color: #873ba1;
  font-size: 16px;
}

.generating-notice span {
  line-height: 1.6;
}

.report-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: #fff;
}

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

.report-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.report-head small {
  color: #777c86;
}

.report-content {
  color: #343946;
  line-height: 1.7;
}

.report-mine-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background: radial-gradient(circle at 18% 8%, rgba(170, 92, 194, 0.16), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff9fc 58%, #f7fbff 100%);
  border: 1px solid #eadff0;
}

.mine-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: #2f3442;
  color: #fff;
}

.heart-lamp {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 32% 68% 48% 52% / 46% 34% 66% 54%;
  background: radial-gradient(circle at 32% 28%, #fff8c8 0 10%, #f2c866 11% 28%, #9a4bb4 29% 58%, #2d3858 59% 100%);
  box-shadow: 0 0 30px rgba(179, 92, 210, 0.44), inset -12px -16px 24px rgba(20, 24, 38, 0.34);
}

.mine-hero h2,
.mine-section h3 {
  margin: 0 0 8px;
}

.mine-hero p,
.mine-section p,
.mirror-list li {
  line-height: 1.85;
}

.mine-section {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #eee4db;
}

.mine-section h3 {
  color: #873ba1;
}

.mine-tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2e5f6;
  color: #81349f;
  font-weight: 800;
  font-size: 13px;
}

.principle-formula {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f1fb;
  color: #51315f;
  font-weight: 900;
}

.mirror-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.report-content h3,
.report-content h4 {
  margin: 12px 0 6px;
  color: #873ba1;
}

.report-content li {
  margin-left: 20px;
}

.chronicle-report {
  display: grid;
  gap: 20px;
  color: #2d313b;
}

.chronicle-section {
  padding-bottom: 18px;
  border-bottom: 1px solid #e5ded3;
}

.chronicle-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.chronicle-section h2 {
  margin: 0 0 12px;
  color: #71348a;
  font-size: 22px;
}

.chronicle-period {
  margin-top: 14px;
  padding: 16px;
  border-left: 3px solid #b789c7;
  background: #faf7fb;
}

.chronicle-period h3 {
  margin-top: 0;
}

.report-archive-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 27, 35, 0.58);
}

.report-archive {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(100%, 1040px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #ded6e2;
  border-radius: 8px;
  background: #f8f7f9;
  box-shadow: 0 24px 70px rgba(31, 22, 35, 0.28);
}

.report-archive-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e5ded3;
  background: #fff;
}

.report-archive-header h2 {
  margin: 2px 0 6px;
  font-size: 26px;
}

.report-archive-header p {
  margin: 0;
}

.archive-close {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd4df;
  border-radius: 50%;
  background: #fff;
  color: #5e5262;
  font-size: 26px;
  line-height: 1;
}

.report-archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 24px;
  border-bottom: 1px solid #e5ded3;
  background: #f8f5f9;
}

.report-archive-toolbar span {
  color: #646974;
  font-size: 14px;
}

.report-archive-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 18px 24px 24px;
  overflow-y: auto;
}

.report-archive-item {
  overflow: hidden;
  border: 1px solid #e1dae4;
  border-radius: 8px;
  background: #fff;
}

.report-archive-item.is-expanded {
  border-color: #b88ac6;
}

.report-archive-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  color: #272b35;
  text-align: left;
}

.report-archive-summary:hover {
  background: #fbf8fc;
}

.report-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f1e8f4;
  color: #71348a;
  font-size: 12px;
  font-weight: 800;
}

.report-archive-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.report-archive-title strong,
.report-archive-title small {
  overflow-wrap: anywhere;
}

.report-archive-title strong {
  font-size: 16px;
}

.report-archive-title small {
  color: #737884;
}

.report-expand-mark {
  color: #873ba1;
  font-size: 24px;
  text-align: center;
}

.report-archive-detail {
  padding: 0 18px 20px;
  border-top: 1px solid #eee8ef;
}

.report-detail-loading {
  padding: 18px;
  border-top: 1px solid #eee8ef;
  color: #737884;
  text-align: center;
}

.report-archive-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 0;
}

.report-archive-detail .report-content {
  max-width: 860px;
  margin: 0 auto;
}

.event-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: #fff;
}

.event-time {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: #fff1fb;
  color: #873ba1;
  font-weight: 900;
  text-align: center;
}

.event-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.event-body p {
  margin: 0;
  line-height: 1.65;
}

.native-root-intro {
  margin-bottom: 18px;
  padding: 22px 24px;
  border-left: 4px solid #873ba1;
  background: #fff;
}

.native-root-intro h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.native-root-intro p,
.native-root-heading p {
  margin: 0;
  color: #626875;
  line-height: 1.7;
}

.native-root-grid {
  display: grid;
  gap: 18px;
}

.native-root-section {
  padding: 22px;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: #fff;
}

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

.native-root-heading h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.native-root-heading > span {
  flex: 0 0 auto;
  color: #873ba1;
  font-weight: 800;
}

.native-root-form {
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.native-root-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.native-root-list {
  margin-top: 18px;
}

.event-story {
  margin-bottom: 8px !important;
  color: #303540;
}

.native-root-error {
  margin-bottom: 14px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #d9d0c5;
  border-radius: 8px;
  background: #fff;
  color: #777c86;
  text-align: center;
}

.is-hidden {
  display: none;
}

.feedback-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: #fff;
}

.feedback-strip div {
  display: grid;
  gap: 4px;
}

.feedback-strip span,
.status-note {
  color: #667085;
}

.feedback-panel {
  margin-top: 18px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(140px, 0.25fr) minmax(0, 0.4fr);
  gap: 12px;
  align-items: start;
}

.feedback-grid select {
  min-height: 46px;
  border: 1px solid #d8cfc5;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font: inherit;
  padding: 0 12px;
}

.feedback-message {
  grid-column: 1 / -1;
}

.feedback-message textarea {
  min-height: 110px;
}

@media (max-width: 860px) {
  .app-shell {
    padding: 12px;
  }

  .app-header,
  .hero-panel,
  .step-tabs,
  .content-grid,
  .workspace,
  .profile-grid,
  .custom-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    position: static;
    display: grid;
  }

  .hero-panel {
    padding: 18px;
  }

  .score-card {
    padding: 16px;
  }

  .step-tabs {
    gap: 8px;
  }

  .dimension-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-title {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 16px;
  }

  .panel-head {
    display: grid;
  }

  .mini-progress {
    width: 100%;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

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

  .native-root-heading {
    display: grid;
  }

  .feedback-strip {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-bottom: 88px;
  }

  .app-header {
    align-items: start;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .report-archive-backdrop {
    padding: 0;
  }

  .report-archive {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .report-archive-header,
  .report-archive-toolbar,
  .report-archive-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .report-archive-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .report-history-link {
    align-items: stretch;
    flex-direction: column;
  }

  .report-archive-summary {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .report-type-badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .sticky-actions {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 18;
    padding: 10px;
    border: 1px solid rgba(135, 59, 161, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(62, 50, 34, 0.12);
  }

  .sticky-actions button,
  .row-actions button,
  .pager-actions button {
    width: 100%;
  }

  .brand-block strong {
    font-size: 17px;
  }

  .step-tab {
    grid-template-columns: 32px 1fr;
  }

  .step-tab small {
    grid-column: 2;
  }

  .dimension-rail {
    grid-template-columns: 1fr;
  }
}
