:root {
  color-scheme: light;
  --ink: #20201f;
  --muted: #706b64;
  --line: #dfdad2;
  --panel: #ffffff;
  --soft: #f6f2ec;
  --accent: #9f4f3a;
  --accent-dark: #713629;
  --green: #2f6f5f;
  --gold: #b38742;
  --danger: #b44747;
  --shadow: 0 18px 42px rgba(58, 45, 35, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #f8f5f0;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.site-logo {
  display: block;
  width: min(268px, 62vw);
  height: auto;
  margin: 0 0 18px;
  opacity: 0.9;
  filter: drop-shadow(0 10px 20px rgba(58, 45, 35, 0.08));
}

.topbar,
.admin-toolbar,
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 17px;
  line-height: 1.4;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  color: var(--accent-dark);
  font-weight: 700;
}

.progress {
  margin: 18px 0 24px;
}

.progress-line {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #e8dfd3;
  border-radius: 999px;
}

.progress-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.25s ease;
}

.progress p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form-panel,
.thanks,
.consent-panel,
.detail-section,
.warning-box,
.report-section,
.report-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 22px;
}

.section-title {
  margin: 24px 0 12px;
  border-top: 1px solid var(--line);
}

.section-title span {
  display: inline-block;
  transform: translateY(-50%);
  padding: 0 10px 0 0;
  background: var(--panel);
  color: var(--accent-dark);
  font-weight: 800;
}

.question {
  padding: 18px 0;
  border-bottom: 1px solid #eee7dd;
}

.question h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.question-purpose {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.required-mark,
.soft-mark,
.status-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.required-mark,
.status-pill {
  color: #fff;
  background: var(--accent);
}

.soft-mark {
  color: var(--green);
  background: #e4f0eb;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffdf9;
  color: var(--ink);
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(159, 79, 58, 0.12);
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.option-chip {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  cursor: pointer;
}

.option-chip input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.upload-box {
  display: grid;
  min-height: 128px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #c9b9a8;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-box span {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
}

.upload-box small {
  color: var(--muted);
}

.preview img,
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview {
  width: 116px;
  height: 116px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.consent-panel,
.thanks {
  margin-top: 22px;
  padding: 20px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
}

.check-line.required {
  color: var(--ink);
  font-weight: 700;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.primary-action,
.secondary-action,
.login-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action,
.login-panel button {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: var(--accent);
}

.primary-action:hover,
.login-panel button:hover {
  background: var(--accent-dark);
}

.secondary-action {
  color: var(--accent-dark);
  background: #eadfd4;
}

.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--danger);
  font-weight: 800;
  cursor: pointer;
}

.small {
  width: auto;
  min-height: 36px;
  margin: 0;
  font-size: 13px;
}

.status-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.admin-body {
  background: #f4f1ec;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px;
  background: #27231f;
  color: #fff;
}

.admin-logo {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
  margin: 0 0 22px;
  padding: 10px 12px;
  border: 1px solid rgba(224, 184, 148, 0.18);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.06);
  filter: invert(1) brightness(1.85) sepia(0.18) saturate(0.7);
  opacity: 0.86;
}

.admin-sidebar .eyebrow,
.admin-sidebar .ghost-link {
  color: #e0b894;
}

.admin-title {
  max-width: 228px;
  margin: 0 0 18px;
  color: #fff8ee;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
}

.login-panel {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.login-panel input {
  border-color: #4b423b;
  background: #312c27;
  color: #fff;
}

.my-invite-box {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(224, 184, 148, 0.22);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.07);
}

.my-invite-box p {
  margin: 0;
  color: #e0b894;
  font-size: 12px;
  font-weight: 800;
}

.my-invite-box b {
  color: #fff8ee;
  font-size: 18px;
  letter-spacing: 0;
}

.my-invite-box code {
  overflow-wrap: anywhere;
  color: rgba(255, 248, 238, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

.invite-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.copy-link-btn {
  min-width: 54px;
  min-height: 32px;
  border: 1px solid rgba(224, 184, 148, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff8ee;
  background: rgba(255, 248, 238, 0.1);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.copy-link-btn:hover {
  background: rgba(255, 248, 238, 0.16);
}

.logout-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(224, 184, 148, 0.38);
  border-radius: 8px;
  color: #fff8ee;
  background: rgba(159, 79, 58, 0.92);
  font-weight: 900;
  cursor: pointer;
}

.logout-action:hover {
  background: #8f3f2f;
}

.admin-content {
  padding: 26px;
  overflow: hidden;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-search,
.owner-filter {
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-search input,
.owner-filter select {
  height: 42px;
}

.owner-filter {
  min-width: 180px;
}

.owner-filter select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf9;
  outline: none;
  font-weight: 800;
}

.owner-filter select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(159, 79, 58, 0.12);
}

.sent-filter {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sent-filter > div {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6efe7;
}

.sent-filter-btn {
  height: 34px;
  min-width: 62px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.sent-filter-btn.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 16px rgba(159, 79, 58, 0.18);
}

.date-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.date-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.date-filter input {
  width: 156px;
  height: 42px;
}

.task-list-panel {
  min-width: 0;
}

.list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.task-list {
  max-height: none;
  overflow: auto;
}

.user-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-table th {
  background: #f1e8dd;
  color: var(--accent-dark);
  font-size: 12px;
  white-space: nowrap;
}

.user-table td {
  background: #fff;
}

.user-table tr.active td {
  background: #fff8f1;
}

.user-table b {
  font-size: 15px;
}

.phone-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.phone-cell span {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.phone-copy-btn {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--accent-dark);
  background: #f6efe7;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.phone-copy-btn:hover {
  background: #eadfd4;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 280px;
}

.muted-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 10px 24px rgba(76, 49, 39, 0.06);
}

.audit-log-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.audit-log-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.audit-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f1e9;
}

.audit-log-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.audit-log-toolbar input {
  width: 156px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf9;
  outline: none;
}

.audit-log-table th {
  background: #f1e8dd;
  color: var(--accent-dark);
  font-size: 12px;
  white-space: nowrap;
}

.audit-log-table td {
  vertical-align: top;
  background: #fff;
}

.pagination-info,
.pagination-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination-controls,
.page-size-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-controls .secondary-action[disabled] {
  cursor: not-allowed;
  opacity: 0.46;
}

.page-size-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6efe7;
}

.page-size-btn {
  min-width: 46px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.page-size-btn.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 16px rgba(159, 79, 58, 0.18);
}

.task-row {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.task-row.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(159, 79, 58, 0.1);
}

.task-row small {
  color: var(--muted);
}

.task-row b {
  font-size: 17px;
}

.task-detail {
  min-width: 0;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.detail-head,
.detail-section,
.warning-box {
  margin-bottom: 14px;
  padding: 18px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-row span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
}

.warning-box {
  border-color: #e6b2a5;
  background: #fff5f2;
  color: #7c2f23;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

td,
th {
  padding: 10px;
  border-bottom: 1px solid #eee7dd;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
}

pre {
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #27231f;
  color: #fff7ec;
  white-space: pre-wrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-row h3 {
  margin: 0;
}

.photo-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.sub-admin-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.sub-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sub-admin-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.sub-admin-form button {
  justify-self: start;
}

.sub-admin-list {
  display: grid;
  gap: 12px;
}

.sub-admin-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr) minmax(300px, 1.2fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #eee7dd;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf9 0%, #fbf4ec 100%);
}

.sub-admin-card div {
  display: grid;
  gap: 6px;
}

.sub-admin-identity,
.sub-admin-metrics,
.sub-admin-controls {
  padding: 12px;
  border: 1px solid rgba(216, 199, 181, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.sub-admin-identity {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px !important;
}

.sub-admin-avatar {
  display: grid !important;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.sub-admin-identity b {
  color: var(--ink);
  font-size: 17px;
}

.sub-admin-metrics {
  align-content: start;
}

.sub-admin-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
}

.sub-admin-note {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.sub-admin-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sub-admin-note div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.sub-admin-name-input,
.sub-admin-password-input {
  height: 36px;
  padding: 8px 10px;
}

.sub-admin-card small,
.sub-admin-card span {
  color: var(--muted);
}

.sub-admin-stats {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-admin-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #eadfd4;
  border-radius: 8px;
  background: #fffaf4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sub-admin-stats b {
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1;
}

.sub-admin-card code {
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
}

.sub-admin-card .copy-link-btn {
  border-color: #dbcbbb;
  color: var(--accent-dark);
  background: #eadfd4;
}

.sub-admin-card .copy-link-btn:hover {
  background: #e0d0bd;
}

.report-editor {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

body.report-editor-open {
  overflow: hidden;
}

.report-editor-fullscreen {
  position: fixed;
  inset: 18px;
  z-index: 50;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
  padding: 22px;
  border-radius: 8px;
  background: #fbf7f0;
  box-shadow: 0 28px 80px rgba(32, 24, 18, 0.28);
}

.report-editor-fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(39, 35, 31, 0.42);
  backdrop-filter: blur(3px);
}

.report-editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  margin-top: 12px;
  min-height: 0;
}

.report-editor-fullscreen .report-editor-grid {
  grid-template-columns: minmax(520px, 1.25fr) minmax(380px, 0.75fr);
  height: 100%;
}

.report-editor iframe {
  width: 100%;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.report-editor-fullscreen iframe {
  height: 100%;
  min-height: 0;
}

.pdf-page-list {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 2px 8px 2px 2px;
}

.pdf-page-thumb {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid #e4d8ca;
  border-radius: 8px;
  padding: 10px;
  background: #fffaf4;
  box-shadow: 0 10px 24px rgba(58, 45, 35, 0.08);
  cursor: pointer;
  text-align: left;
}

.pdf-page-thumb span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.pdf-page-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

.pdf-page-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(159, 79, 58, 0.12), 0 16px 32px rgba(58, 45, 35, 0.12);
}

.report-edit-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.report-editor-fullscreen .report-edit-list {
  max-height: none;
  height: 100%;
}

.report-edit-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #eee7dd;
  border-radius: 8px;
  background: #fffaf4;
}

.report-edit-row.active {
  border-color: var(--accent);
  background: #fff5ec;
  box-shadow: 0 0 0 3px rgba(159, 79, 58, 0.1);
}

.report-edit-row span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.report-edit-row textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.65;
}

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

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  margin: 20px 0;
}

.photo-evidence-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(58, 45, 35, 0.08);
}

.photo-evidence-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  background: var(--soft);
}

.photo-evidence-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 60%;
  background: linear-gradient(180deg, rgba(32, 32, 31, 0.1), transparent 62%);
  pointer-events: none;
}

.photo-evidence-card .mark {
  position: absolute;
  z-index: 2;
  left: 12%;
  right: 12%;
  display: block;
  height: 1px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.photo-evidence-card .shoulder {
  top: 30%;
}

.photo-evidence-card .waist {
  top: 52%;
}

.photo-evidence-card .hem {
  top: 68%;
}

.photo-evidence-card .center {
  top: 43%;
  left: auto;
  right: 8%;
  width: 1px;
  height: 88px;
  border-top: 0;
  border-left: 1px solid rgba(229, 196, 154, 0.9);
}

.photo-evidence-card .shoulder::before,
.photo-evidence-card .waist::before,
.photo-evidence-card .hem::before {
  content: attr(data-label);
}

.photo-evidence-card .shoulder {
  --label: "肩线";
}

.photo-evidence-card .waist {
  --label: "腰线";
}

.photo-evidence-card .hem {
  --label: "下摆";
}

.photo-evidence-card .mark {
  font-size: 0;
}

.photo-evidence-card .mark::before {
  content: "";
}

.photo-evidence-card .shoulder::before {
  content: "肩线";
  font-size: 11px;
}

.photo-evidence-card .waist::before {
  content: "腰线";
  font-size: 11px;
}

.photo-evidence-card .hem::before {
  content: "下摆";
  font-size: 11px;
}

.photo-evidence-card .center::before {
  content: "视觉重心";
  position: absolute;
  top: -18px;
  right: -20px;
  width: 60px;
  font-size: 11px;
  color: #e5c49a;
}

.photo-evidence-card div {
  padding: 14px;
}

.photo-evidence-card b {
  color: var(--accent-dark);
}

.photo-evidence-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.report-subline {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.confirm-panel,
.cannot-panel {
  padding: 18px;
  border-radius: 6px;
  background: #f8f4ee;
}

.confirm-panel h3,
.cannot-panel h3 {
  color: var(--accent-dark);
}

.confirm-panel ol,
.cannot-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
}

.cannot-panel {
  margin-top: 16px;
  border: 1px solid #eadfd4;
  background: #fffaf4;
}

.report-page {
  background: #ece7df;
}

.report-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.report-hero {
  padding: 36px 0 24px;
}

.report-hero h1 {
  max-width: 820px;
}

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

.keyword-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eadfd4;
  color: var(--accent-dark);
  font-weight: 800;
}

.report-section,
.report-card {
  margin: 14px 0;
  padding: 20px;
}

.report-page-card {
  position: relative;
  min-height: 794px;
  margin: 24px 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-page-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--green));
}

.report-page-card::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 34px;
  width: 142px;
  height: 46px;
  background: url("/assets/yunlu-logo.png") center / contain no-repeat;
  opacity: 0.24;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.report-page-card > * {
  position: relative;
  z-index: 1;
}

.report-page-card.cover-page {
  display: grid;
  align-content: center;
  min-height: 794px;
  color: #f8efe7;
  background:
    linear-gradient(135deg, rgba(32, 32, 31, 0.92), rgba(113, 54, 41, 0.88)),
    linear-gradient(90deg, #20201f, #713629);
}

.report-page-card.cover-page::before {
  height: 100%;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.25) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.18) 50%, transparent 51%);
  background-size: 42px 42px;
}

.report-page-card.cover-page::after {
  top: 34px;
  right: 38px;
  width: 220px;
  height: 72px;
  opacity: 0.72;
  filter: invert(1) sepia(0.18) saturate(0.7) brightness(1.5);
  mix-blend-mode: screen;
}

.page-no {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.report-subtitle {
  max-width: 680px;
  color: inherit;
  font-size: 20px;
  line-height: 1.7;
}

.cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: center;
}

.cover-photo-frame {
  position: relative;
  justify-self: end;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.cover-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 32, 31, 0.08), rgba(32, 32, 31, 0.46)),
    radial-gradient(circle at 50% 20%, transparent 0 44%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.cover-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.cover-photo-frame small {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.cover-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.cover-photo-placeholder span {
  font-size: 54px;
  font-weight: 900;
}

.cover-photo-placeholder b {
  color: #e5c49a;
  font-size: 12px;
  line-height: 1.5;
}

.cover-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.cover-meta span {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f9efe6;
  font-weight: 800;
}

.premium-strip,
.photo-proof-head,
.scope-board,
.diagnosis-dashboard,
.keyword-showcase,
.section-visual,
.conflict-flow,
.four-gate,
.body-analysis,
.quality-board,
.ability-matrix {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.premium-strip {
  grid-template-columns: repeat(3, 1fr);
}

.photo-proof-head {
  grid-template-columns: repeat(3, 1fr);
}

.mini-stat {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-stat b {
  display: block;
  margin-bottom: 8px;
  color: #e5c49a;
  font-size: 20px;
}

.mini-stat span {
  color: rgba(255, 255, 255, 0.78);
}

.scope-board {
  grid-template-columns: repeat(4, 1fr);
}

.report-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  line-height: 1.8;
}

.report-grid,
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.diagnosis-dashboard,
.body-analysis,
.quality-board {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.score-ring {
  --score: 50;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--accent) calc(var(--score) * 1%), #e8dfd3 0);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}

.score-ring b {
  font-size: 34px;
  color: var(--accent-dark);
}

.score-ring span {
  color: var(--muted);
  font-weight: 800;
}

.meter-panel,
.ability-matrix {
  padding: 18px;
  border-radius: 6px;
  background: #f8f4ee;
}

.meter-row {
  margin: 0 0 16px;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.meter-top span {
  color: var(--accent-dark);
  font-weight: 900;
}

.meter-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ded4;
}

.meter-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--accent));
}

.meter-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.keyword-showcase {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.keyword-tile {
  min-height: 270px;
  padding: 24px;
  border-radius: 6px;
  color: #fff;
  background: #713629;
}

.keyword-tile.tone-2 {
  background: #2f6f5f;
}

.keyword-tile.tone-3 {
  background: #20201f;
}

.keyword-tile span {
  display: block;
  color: #e5c49a;
  font-weight: 900;
}

.keyword-tile b {
  display: block;
  margin: 42px 0 18px;
  font-size: 34px;
}

.keyword-tile p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.section-visual {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  padding: 20px;
  border-radius: 6px;
  background: #f8f4ee;
}

.panel-title span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.panel-title h3 {
  margin: 8px 0 0;
  font-size: 28px;
}

.advantage-scale,
.conflict-flow,
.four-gate {
  grid-template-columns: repeat(3, 1fr);
}

.visual-tag,
.flow-step,
.four-gate div,
.course-day,
.action-card {
  display: grid;
  align-content: center;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.visual-tag {
  text-align: center;
  color: var(--accent-dark);
  font-weight: 900;
}

.flow-step {
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.flow-step b,
.four-gate b {
  color: var(--accent-dark);
  font-size: 18px;
}

.flow-step p,
.four-gate span {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.four-gate {
  grid-template-columns: repeat(4, 1fr);
}

.four-gate div {
  min-height: 126px;
  text-align: center;
  background: #f8f4ee;
}

.body-map {
  position: relative;
  min-height: 430px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(159, 79, 58, 0.2) 50%, transparent 51%),
    #f8f4ee;
}

.body-map i {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  background: #d2a184;
}

.body-map .head {
  top: 44px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.body-map .torso {
  top: 128px;
  width: 120px;
  height: 142px;
  border-radius: 48px 48px 18px 18px;
  background: #9f4f3a;
}

.body-map .waist {
  top: 250px;
  width: 132px;
  height: 8px;
  background: #b38742;
}

.body-map .legs {
  top: 280px;
  width: 90px;
  height: 116px;
  border-radius: 10px 10px 42px 42px;
  background: #2f6f5f;
}

.body-map span {
  position: absolute;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.label-face {
  top: 64px;
  right: 18px;
}

.label-waist {
  top: 236px;
  left: 16px;
}

.label-line {
  bottom: 52px;
  right: 24px;
}

.focus-diagram {
  position: relative;
  min-height: 280px;
  border-radius: 6px;
  background: #20201f;
}

.focus-diagram span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.focus-diagram .main-dot {
  top: 92px;
  left: 50%;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  background: var(--gold);
  color: #20201f;
  font-size: 28px;
}

.focus-diagram span:nth-child(2) {
  top: 28px;
  left: 38px;
}

.focus-diagram span:nth-child(3) {
  right: 42px;
  bottom: 44px;
}

.focus-diagram span:nth-child(4) {
  left: 44px;
  bottom: 32px;
}

.priority-ladder {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.priority-ladder div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border-radius: 6px;
  background: #f8f4ee;
}

.priority-ladder span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.priority-ladder p {
  margin: 0;
}

.course-timeline {
  height: 12px;
  margin: 18px 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 25%, var(--gold) 25% 50%, var(--green) 50% 75%, #20201f 75% 100%);
}

.course-day {
  min-height: 190px;
}

.course-day b {
  color: var(--accent);
}

.course-day h3 {
  margin: 12px 0;
}

.action-card {
  margin-bottom: 18px;
  min-height: 160px;
  color: #fff;
  background: #2f6f5f;
}

.action-card b {
  color: #e5c49a;
  font-size: 15px;
}

.action-card p {
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1.45;
}

.final-quote {
  margin: 12px 0 26px;
  padding: 30px;
  border-left: 6px solid var(--accent);
  background: #f8f4ee;
  color: var(--accent-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
}

.course-grid div {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.report-note {
  margin-top: 20px;
  color: var(--muted);
}

.refined-cover {
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 520px;
}

.refined-cover .cover-meta {
  max-width: 620px;
}

.refined-scope .report-card {
  min-height: 230px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 238, 0.94)),
    #fff;
}

.dimension-grid,
.soft-board,
.future-board,
.body-evidence-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.dimension-grid {
  grid-template-columns: repeat(4, 1fr);
}

.dimension-tile {
  min-height: 250px;
  padding: 22px;
  border-radius: 6px;
  background:
    linear-gradient(160deg, rgba(248, 244, 238, 0.96), rgba(255, 255, 255, 0.96)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(58, 45, 35, 0.07);
}

.dimension-tile span {
  color: var(--gold);
  font-weight: 900;
}

.dimension-tile b {
  display: block;
  margin: 36px 0 14px;
  color: var(--accent-dark);
  font-size: 24px;
}

.dimension-tile p {
  color: var(--muted);
  line-height: 1.8;
}

.summary-panel {
  margin: 20px 0;
  padding: 24px;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: #f8f4ee;
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.75;
}

.soft-board {
  grid-template-columns: repeat(3, 1fr);
  padding: 18px;
  border-radius: 6px;
  background: #f8f4ee;
}

.soft-board .report-card {
  margin: 0;
  background: #fffdf9;
}

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

.report-photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(58, 45, 35, 0.09);
}

.report-photo-card img,
.photo-empty {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.9;
  object-fit: cover;
  object-position: center 28%;
  background: #eee5da;
}

.photo-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.report-photo-card div {
  padding: 14px;
}

.report-photo-card b {
  color: var(--accent-dark);
}

.report-photo-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.photo-line {
  position: absolute;
  left: 12%;
  right: 12%;
  z-index: 2;
  height: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.photo-line.shoulder {
  top: 31%;
}

.photo-line.waist {
  top: 53%;
}

.photo-line.hem {
  top: 69%;
}

.improvement-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  margin-top: 18px;
}

.improvement-layout.single-column {
  grid-template-columns: 1fr;
}

.improvement-photos {
  min-width: 0;
}

.improvement-content {
  display: grid;
  gap: 12px;
}

.improvement-content .report-card {
  margin: 0;
}

.reason-list {
  padding: 18px;
  border-radius: 6px;
  background: #f8f4ee;
}

.reason-list h3 {
  margin-bottom: 10px;
  color: var(--accent-dark);
}

.reason-list ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
}

.future-board {
  grid-template-columns: repeat(4, 1fr);
}

.future-board .report-card {
  margin: 0;
  min-height: 190px;
  background: #f8f4ee;
}

.report-page-card.cover-page .page-no {
  color: #e5c49a;
}

.report-page-card.cover-page h2 {
  max-width: 650px;
  color: #fff8ee;
  font-size: 54px;
}

.report-page-card.cover-page .report-subtitle {
  color: rgba(255, 248, 238, 0.88);
}

@media (max-width: 900px) {
  .admin-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .task-list {
    max-height: none;
  }

  .scope-board,
  .dimension-grid,
  .soft-board,
  .future-board,
  .body-evidence-grid,
  .improvement-layout,
  .cover-layout,
  .refined-cover {
    grid-template-columns: 1fr;
  }

  .cover-photo-frame {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar,
  .admin-toolbar,
  .detail-head {
    display: grid;
  }

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

  .app-shell {
    width: min(100% - 24px, 960px);
  }

  .report-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .report-page-card {
    min-height: auto;
    padding: 26px 18px;
  }

  .report-page-card.cover-page h2 {
    font-size: 38px;
  }

  .keyword-showcase,
  .conflict-flow,
  .course-grid,
  .report-grid,
  .sub-admin-card,
  .sub-admin-controls {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body.report-page {
    background: #fff !important;
  }

  .report-shell {
    width: 100% !important;
    padding: 0 !important;
  }

  .report-page-card {
    min-height: 180mm;
    margin: 0 !important;
    break-after: page;
    page-break-after: always;
    box-shadow: none !important;
  }

  .report-page-card:last-of-type {
    break-after: auto;
    page-break-after: auto;
  }

  .report-page-card.cover-page {
    min-height: 180mm;
  }

  .report-card,
  .report-photo-card,
  .summary-panel,
  .reason-list,
  .action-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* =========================================================
   Premium Consumer Homepage — Apple-inspired redesign
   Scope: .consumer-app only. Admin styles remain untouched.
   ========================================================= */

.consumer-app {
  /* ----- Design tokens ----- */
  --c-ink: #1d1d1f;
  --c-ink-secondary: #6e6e73;
  --c-ink-tertiary: #86868b;
  --c-surface: #ffffff;
  --c-bg: #f5f5f7;
  --c-bg-warm: #fbf9f6;
  --c-line: rgba(0, 0, 0, 0.08);
  --c-line-strong: rgba(0, 0, 0, 0.16);
  --c-accent: #8b4d3a;
  --c-accent-light: #a8644d;
  --c-accent-glow: rgba(139, 77, 58, 0.12);
  --c-gold: #b38742;
  --c-green: #2f6f5f;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.1);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--c-ink);
  background:
    radial-gradient(ellipse at top, rgba(184, 169, 151, 0.12) 0%, transparent 60%),
    var(--c-bg-warm);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.consumer-app * {
  -webkit-tap-highlight-color: transparent;
}

.consumer-app .app-shell {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

/* ----- Hero / Topbar ----- */
.consumer-app .topbar {
  position: relative;
  display: block;
  text-align: center;
  margin-bottom: 52px;
}

.consumer-app .ghost-link {
  position: absolute;
  top: 2px;
  right: 0;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-ink-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.consumer-app .ghost-link:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--c-ink);
}

.consumer-app .site-logo {
  width: min(200px, 52vw);
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 16px 32px rgba(139, 77, 58, 0.1));
  opacity: 1;
}

.consumer-app .eyebrow {
  margin: 0 0 12px;
  color: var(--c-accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consumer-app h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--c-ink);
}

.consumer-app .hero-lead {
  max-width: 520px;
  margin: 0 auto;
  color: var(--c-ink-secondary);
  font-size: 17px;
  line-height: 1.65;
}

/* ----- Progress ----- */
.consumer-app .progress {
  margin: 0 0 42px;
}

.consumer-app .progress-line {
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.consumer-app .progress-line span {
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-gold) 100%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.consumer-app .progress p {
  margin: 12px 0 0;
  color: var(--c-ink-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ----- Form & Thanks panels ----- */
.consumer-app .form-panel,
.consumer-app .thanks {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px;
}

/* ----- Section titles ----- */
.consumer-app .section-title {
  margin: 52px 0 22px;
  border-top: 0;
}

.consumer-app .section-title span {
  display: block;
  transform: none;
  padding: 0;
  background: transparent;
  color: var(--c-ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.consumer-app .section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
}

/* ----- Questions ----- */
.consumer-app .question {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}

.consumer-app .question h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-ink);
}

.consumer-app .question-purpose {
  margin-bottom: 16px;
  color: var(--c-ink-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.consumer-app .required-mark,
.consumer-app .soft-mark {
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.consumer-app .required-mark {
  background: var(--c-accent);
}

.consumer-app .soft-mark {
  color: var(--c-green);
  background: rgba(47, 111, 95, 0.08);
}

/* ----- Inputs ----- */
.consumer-app input[type="text"],
.consumer-app textarea {
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: 16px;
  transition: var(--transition);
}

.consumer-app input[type="text"]:focus,
.consumer-app textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-glow);
}

/* ----- Option chips ----- */
.consumer-app .options {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.consumer-app .option-chip {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  transition: var(--transition);
}

.consumer-app .option-chip:hover {
  border-color: var(--c-line-strong);
  background: rgba(139, 77, 58, 0.02);
  transform: translateY(-1px);
}

.consumer-app .option-chip:has(input:checked) {
  border-color: var(--c-accent);
  background: rgba(139, 77, 58, 0.04);
  box-shadow: 0 0 0 1px var(--c-accent);
}

.consumer-app .option-chip input {
  width: 20px;
  height: 20px;
  accent-color: var(--c-accent);
}

.consumer-app .option-chip span {
  color: var(--c-ink);
  font-size: 15px;
}

.consumer-app .more-options-btn {
  margin-top: 12px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.consumer-app .more-options-btn:hover {
  border-color: var(--c-line-strong);
  color: var(--c-ink);
}

/* ----- Upload box ----- */
.consumer-app .upload-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 160px;
  padding: 28px;
  border: 1.5px dashed var(--c-line-strong);
  border-radius: var(--radius-md);
  background: rgba(139, 77, 58, 0.02);
  transition: var(--transition);
}

.consumer-app .upload-box:hover {
  border-color: var(--c-accent-light);
  background: rgba(139, 77, 58, 0.04);
}

.consumer-app .upload-box span {
  color: var(--c-accent);
  font-size: 16px;
  font-weight: 600;
}

.consumer-app .upload-box small {
  color: var(--c-ink-tertiary);
  font-size: 13px;
}

.consumer-app .preview {
  width: 132px;
  height: 132px;
  margin-top: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ----- Primary action ----- */
.consumer-app .primary-action {
  min-height: 54px;
  margin-top: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-light) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(139, 77, 58, 0.25);
  transition: var(--transition);
}

.consumer-app .primary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 77, 58, 0.32);
}

.consumer-app .primary-action:active:not(:disabled) {
  transform: translateY(0);
}

.consumer-app .primary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ----- Thanks page ----- */
.consumer-app .thanks {
  text-align: center;
  padding: 72px 48px;
}

.consumer-app .thanks .eyebrow {
  margin-bottom: 16px;
}

.consumer-app .thanks h2 {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.consumer-app .thanks p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--c-ink-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .consumer-app .app-shell {
    padding: 36px 0 64px;
  }

  .consumer-app .topbar {
    margin-bottom: 36px;
  }

  .consumer-app .ghost-link {
    position: static;
    display: inline-flex;
    margin-top: 20px;
  }

  .consumer-app .form-panel,
  .consumer-app .thanks {
    padding: 28px;
    border-radius: var(--radius-md);
  }

  .consumer-app .options {
    grid-template-columns: 1fr;
  }

  .consumer-app .section-title {
    margin-top: 40px;
  }
}
