:root {
  --bg: #f5efe6;
  --surface: rgba(255, 251, 247, 0.88);
  --surface-strong: #fffaf5;
  --surface-dark: #1f2622;
  --text: #1c1d1a;
  --muted: #6d695d;
  --line: rgba(28, 29, 26, 0.1);
  --brand: #b7663e;
  --brand-deep: #915033;
  --accent: #2f5b4f;
  --accent-soft: rgba(47, 91, 79, 0.12);
  --gold: #c89c58;
  --success: #2f7d57;
  --danger: #b44733;
  --warning: #9b7328;
  --shadow-xl: 0 24px 70px rgba(64, 45, 25, 0.12);
  --shadow-lg: 0 16px 40px rgba(64, 45, 25, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(183, 102, 62, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(47, 91, 79, 0.16), transparent 24%),
    linear-gradient(180deg, #f9f4ed 0%, #efe4d7 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 0 35%),
    radial-gradient(circle at 80% 10%, rgba(200, 156, 88, 0.12), transparent 0 24%);
}

.page-shell {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.topbar,
.panel,
.hero,
.job-card,
.package-card,
.status-box,
.auth-panel,
.feature-card,
.price-card,
.step-card,
.metric-card,
.estimate-card,
.note-card {
  background: var(--surface);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), #da9167);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.hero h1,
.panel-head h2,
.package-head h3,
.step-card h3,
.auth-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-copy strong {
  font-size: 20px;
}

.brand-copy small,
.subtle,
.lede,
.field small,
.empty-state,
.transaction-item p,
.price-card p,
.step-card p,
.feature-card span {
  color: var(--muted);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.topnav a,
.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.topnav a {
  border-color: rgba(28, 29, 26, 0.08);
  background: rgba(255, 255, 255, 0.4);
}

.topnav a.active {
  background: rgba(28, 29, 26, 0.9);
  color: #fff;
}

.account-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.account-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.account-chip.highlight {
  background: linear-gradient(135deg, rgba(47, 91, 79, 0.14), rgba(200, 156, 88, 0.18));
}

.account-chip span,
.account-chip small {
  font-size: 12px;
  color: var(--muted);
}

.account-chip strong {
  font-size: 18px;
}

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

.primary-button {
  background: linear-gradient(135deg, var(--brand), #dd8b5d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(183, 102, 62, 0.24);
  cursor: pointer;
}

.primary-button.compact {
  min-height: 44px;
  padding: 0 16px;
}

.secondary-button {
  border-color: rgba(47, 91, 79, 0.16);
  background: rgba(255, 255, 255, 0.66);
}

.topnav a:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.flash-success {
  color: #145b3a;
  background: rgba(47, 125, 87, 0.12);
  border-color: rgba(47, 125, 87, 0.16);
}

.flash-error {
  color: #8f2f22;
  background: rgba(180, 71, 51, 0.12);
  border-color: rgba(180, 71, 51, 0.16);
}

.flash-warning {
  color: #785516;
  background: rgba(155, 115, 40, 0.12);
  border-color: rgba(155, 115, 40, 0.16);
}

.hero,
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.hero {
  padding: 34px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 250, 245, 0.94), rgba(244, 233, 220, 0.84)),
    linear-gradient(180deg, transparent, rgba(47, 91, 79, 0.05));
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero h1,
.auth-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
}

.lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.campaign-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(200, 156, 88, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 247, 236, 0.96), rgba(244, 231, 210, 0.92)),
    radial-gradient(circle at top right, rgba(47, 91, 79, 0.14), transparent 36%);
  box-shadow: var(--shadow-lg);
}

.campaign-banner-compact {
  padding: 24px 28px;
}

.campaign-copy,
.campaign-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campaign-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.campaign-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.campaign-copy strong,
.campaign-points {
  color: var(--brand-deep);
}

.campaign-meta {
  align-items: flex-start;
  justify-content: center;
}

.campaign-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47, 91, 79, 0.1);
  border: 1px solid rgba(47, 91, 79, 0.14);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-points {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-card,
.metric-card,
.price-card,
.step-card {
  padding: 18px;
  border-radius: 20px;
}

.feature-card strong,
.metric-card strong,
.price-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.45;
}

.metric-card span,
.price-card span,
.feature-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

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

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.compact-panel {
  padding: 20px;
}

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

.panel-head h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.sidebar-stack {
  display: grid;
  gap: 22px;
  align-content: start;
}

.note-card {
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 91, 79, 0.1), rgba(200, 156, 88, 0.12));
}

.note-card strong {
  display: block;
  margin-bottom: 6px;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.job-form,
.field,
.prompt-item {
  display: flex;
  flex-direction: column;
}

.job-form {
  gap: 18px;
}

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

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

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

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

.field span {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(183, 102, 62, 0.4);
  box-shadow: 0 0 0 4px rgba(183, 102, 62, 0.12);
}

.fixed-field-value {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(250, 246, 241, 0.9);
  color: var(--text);
  font-weight: 600;
}

.upload-field {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(47, 91, 79, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 229, 220, 0.62));
}

.rich-upload {
  gap: 12px;
}

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

.upload-actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-button,
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
}

.mini-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.mini-button.accent {
  background: rgba(47, 91, 79, 0.1);
  border-color: rgba(47, 91, 79, 0.18);
}

.upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.upload-meta strong {
  color: var(--text);
  font-size: 15px;
}

.upload-meta em {
  font-style: normal;
}

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

.preview-grid-outfit {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.preview-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1e6db;
}

.preview-card-outfit img {
  aspect-ratio: 4 / 5;
}

.preview-card-meta {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.preview-card-meta strong,
.preview-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-card-meta strong {
  font-size: 13px;
}

.preview-card-meta span {
  font-size: 12px;
  color: var(--muted);
}

.preview-remove {
  width: calc(100% - 24px);
  min-height: 36px;
  margin: 0 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 71, 51, 0.18);
  background: rgba(180, 71, 51, 0.08);
  color: var(--danger);
  cursor: pointer;
}

.empty-preview {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mode-field {
  gap: 12px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mode-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.mode-option span {
  margin: 0;
  font-size: 18px;
}

.mode-option small {
  color: var(--muted);
  line-height: 1.6;
}

.mode-option:has(input:checked) {
  border-color: rgba(183, 102, 62, 0.35);
  background: linear-gradient(135deg, rgba(183, 102, 62, 0.1), rgba(255, 255, 255, 0.84));
  box-shadow: 0 0 0 4px rgba(183, 102, 62, 0.08);
}

.background-upload.is-disabled {
  opacity: 0.72;
}

.upload-field input {
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.upload-field input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.segmented {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.segmented label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  margin-top: 4px;
  color: var(--muted);
}

.estimate-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 228, 214, 0.9));
}

.estimate-row,
.rule-item,
.transaction-item,
.job-card-head,
.package-head,
.runtime-copy,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.estimate-row span,
.rule-item span {
  color: var(--muted);
}

.estimate-row.total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.estimate-row.total strong {
  font-size: 24px;
  color: var(--brand-deep);
}

.form-actions {
  margin-top: 6px;
}

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 24, 22, 0.55);
  backdrop-filter: blur(12px);
}

.camera-modal.hidden {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 24, 22, 0.42);
  backdrop-filter: blur(10px);
}

.success-modal.hidden {
  display: none;
}

.camera-panel {
  width: min(100%, 760px);
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-xl);
}

.success-panel {
  width: min(100%, 520px);
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 250, 245, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-xl);
}

.camera-head,
.camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.camera-stage {
  position: relative;
  overflow: hidden;
  margin: 16px 0;
  border-radius: 22px;
  background: #101413;
}

.camera-stage video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.camera-tip {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16, 20, 19, 0.58);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.price-grid,
.steps-grid,
.recent-jobs,
.package-grid {
  display: grid;
  gap: 16px;
}

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

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(28, 29, 26, 0.92);
  color: #fff;
  font-weight: 700;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.step-card p,
.price-card p {
  margin: 0;
  line-height: 1.7;
}

.rule-list,
.transaction-list,
.event-list {
  display: grid;
  gap: 12px;
}

.rule-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
}

.transaction-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.transaction-item strong {
  display: block;
  margin-bottom: 4px;
}

.delta {
  font-weight: 700;
  white-space: nowrap;
}

.delta.positive {
  color: var(--success);
}

.delta.negative {
  color: var(--danger);
}

.recent-jobs {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.job-card,
.package-card {
  padding: 18px;
  border-radius: 22px;
}

.job-card p,
.package-card p,
.analysis-preview {
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.status-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-queued,
.status-running {
  background: rgba(155, 115, 40, 0.12);
  color: var(--warning);
}

.status-completed,
.status-success {
  background: rgba(47, 125, 87, 0.12);
  color: var(--success);
}

.status-failed {
  background: rgba(180, 71, 51, 0.12);
  color: var(--danger);
}

.role-pill {
  background: rgba(47, 91, 79, 0.12);
  color: var(--accent);
}

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

.status-box {
  padding: 18px;
  border-radius: 20px;
}

.status-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.status-box strong {
  font-size: 26px;
}

.progress-track {
  height: 14px;
  margin: 18px 0 14px;
  border-radius: 999px;
  background: rgba(183, 102, 62, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: width 0.35s ease;
}

.event-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.event-item strong {
  display: inline-block;
  margin-right: 8px;
}

.error-text {
  color: var(--danger);
}

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

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

.image-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f1e6db;
}

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

.prompt-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.prompt-block summary {
  cursor: pointer;
  font-weight: 700;
}

.prompt-item {
  gap: 8px;
  margin-top: 12px;
}

.prompt-item pre {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: #f7ecdf;
  border: 1px solid rgba(47, 91, 79, 0.12);
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.65;
}

.empty-panel {
  text-align: center;
}

.table-shell {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255, 255, 255, 0.52);
}

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

.data-table thead th {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.auth-shell {
  align-items: stretch;
}

.auth-copy {
  padding: 18px 8px;
  align-self: center;
}

.auth-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: var(--brand-deep);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .hero,
  .auth-shell {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .topnav,
  .account-zone {
    justify-content: flex-start;
  }

  .panel-head,
  .form-actions,
  .runtime-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .status-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top center, rgba(183, 102, 62, 0.18), transparent 30%),
      linear-gradient(180deg, #f9f4ed 0%, #efe4d7 100%);
  }

  .page-shell {
    padding: 12px;
  }

  .topbar {
    position: sticky;
    top: 10px;
    z-index: 30;
    padding: 14px;
    border-radius: 20px;
  }

  .topnav,
  .account-zone {
    width: 100%;
    gap: 8px;
  }

  .topnav a,
  .ghost-button,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero,
  .panel,
  .auth-panel,
  .job-card,
  .package-card,
  .feature-card,
  .step-card,
  .price-card,
  .metric-card,
  .status-box {
    border-radius: 20px;
  }

  .hero,
  .panel,
  .auth-panel {
    padding: 18px 16px;
  }

  .campaign-banner {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    border-radius: 20px;
  }

  .campaign-copy h2 {
    font-size: 30px;
  }

  .campaign-copy p {
    font-size: 14px;
    line-height: 1.72;
  }

  .campaign-points {
    font-size: 36px;
  }

  .campaign-actions {
    width: 100%;
  }

  .hero h1,
  .auth-copy h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .lede {
    font-size: 14px;
    line-height: 1.72;
  }

  .field input,
  .field select {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .upload-topline,
  .upload-meta,
  .camera-head,
  .camera-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-actions-inline {
    width: 100%;
  }

  .mini-button {
    flex: 1 1 0;
    justify-content: center;
  }

  .segmented label {
    display: flex;
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
  }

  .estimate-row.total strong,
  .status-box strong {
    font-size: 22px;
  }

  .recent-jobs,
  .package-grid,
  .image-grid,
  .price-grid,
  .steps-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 250, 245, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xl);
  }

  .table-shell {
    border-radius: 16px;
  }

  .camera-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .success-panel {
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .hero h1,
  .auth-copy h1 {
    font-size: 30px;
  }

  .panel-head h2 {
    font-size: 24px;
  }

  .metric-card strong,
  .price-card strong {
    font-size: 18px;
  }
}
