﻿:root {
  --bg: #f6efe4;
  --paper: #fffaf2;
  --line: #e8dac4;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #14532d;
  --brand-strong: #0f3f23;
  --warm: #b45309;
  --cream: #fff3dd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 83, 45, 0.16), transparent 32%),
    linear-gradient(180deg, #f8f3ea 0%, #f2eadc 100%);
}

.app-shell {
  width: min(980px, calc(100vw - 24px));
  margin: 18px auto 40px;
  display: grid;
  gap: 16px;
}

.hero-panel,
.card {
  border-radius: 24px;
  border: 1px solid rgba(120, 92, 48, 0.14);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 18px 42px rgba(120, 92, 48, 0.08);
}

.hero-panel {
  padding: 24px;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.96), rgba(180, 83, 9, 0.92));
  color: #fffbf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  opacity: 0.75;
}

.hero-panel h1,
.card h2 {
  margin: 0 0 8px;
}

.hero-copy {
  margin: 0;
  max-width: 620px;
  line-height: 1.6;
}

.workflow-warning-copy {
  color: #fff7ed;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.weekly-schedule-box {
  margin-top: 14px;
  max-width: 640px;
  padding: 12px;
  border: 1px solid rgba(255, 247, 237, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.weekly-schedule-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
  color: #fff7ed;
  font-weight: 800;
}

.weekly-schedule-head small {
  color: rgba(255, 251, 242, 0.82);
  font-weight: 600;
}

.weekly-schedule-photo-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 251, 242, 0.12);
}

.weekly-schedule-photo-link img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.weekly-schedule-loading,
.weekly-schedule-missing {
  margin: 0;
  color: #fff7ed;
  font-weight: 800;
}

.hero-role-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  width: min(320px, 100%);
  flex: 0 0 auto;
}

.role-switch-btn {
  text-align: center;
  font-weight: 700;
}

.role-switch-btn:disabled {
  cursor: not-allowed;
  opacity: 0.88;
  transform: none;
}

.card {
  padding: 18px;
  overflow: hidden;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

label,
.input-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

span,
label > span {
  font-size: 14px;
  font-weight: 700;
}

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

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #14532d 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #fffdf8, #f7f3e8);
  color: var(--ink);
}

input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  overflow: hidden;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.option-btn {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fffdf8;
  box-shadow: 0 10px 20px rgba(20, 83, 45, 0.22);
}

.warning-btn {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #ea580c, #fb923c);
  color: #fff7ed;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.24);
}

.warning-btn:disabled {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff7ed;
  opacity: 0.92;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
  cursor: not-allowed;
}

.secondary-btn {
  background: #d1d5db;
  color: #374151;
  box-shadow: none;
}

.ghost-btn {
  background: rgba(255, 251, 242, 0.18);
  color: #fffaf0;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.card .ghost-btn {
  color: var(--brand);
  background: var(--cream);
  border-color: rgba(180, 83, 9, 0.12);
}

.option-btn {
  background: #efe4cf;
  color: #5b3411;
}

.option-btn.active {
  background: #166534;
  color: #fff;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

.muted {
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.steps-wrap {
  display: grid;
  gap: 16px;
}

.step-card.done {
  border-color: rgba(20, 83, 45, 0.3);
  background: linear-gradient(180deg, rgba(238, 252, 242, 0.98), rgba(255, 250, 242, 0.92));
}

.step-card {
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  transform-origin: top center;
}

.step-card.locked-step {
  transform: none;
  opacity: 0.7;
  filter: none;
}

.step-card.editing-step {
  transform: scale(1);
  opacity: 1;
  filter: none;
}

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

.step-index {
  margin: 0 0 6px;
  color: var(--warm);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-title {
  margin: 0;
}

.step-description {
  margin: 12px 0 0;
  line-height: 1.6;
}

.step-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #b91c1c;
  font-weight: 700;
}

.alert-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.2;
}

.status-pill {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.step-card.done .status-pill {
  background: #dcfce7;
  color: #166534;
}

.section-title {
  margin: 20px 0 10px;
  font-weight: 700;
  color: #3f3f46;
}

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

.standard-card,
.photo-slot {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffdfa;
  padding: 10px;
}

.standard-card {
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.standard-card img,
.task-image {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.standard-card img {
  height: 110px;
}

.compact-standard-gallery .standard-grid {
  grid-template-columns: minmax(120px, 180px);
}

.compact-standard-gallery .standard-card {
  width: 100%;
  max-width: 180px;
}

.compact-standard-gallery .standard-card img {
  height: 110px;
  object-fit: cover;
}

.standard-card span {
  font-size: 13px;
  font-weight: 600;
}

.photo-slot small {
  color: var(--muted);
}

.photo-preview {
  width: 100%;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(20, 83, 45, 0.12);
  background: #f8f5ef;
}

.photo-slot.has-photo {
  border-color: rgba(20, 83, 45, 0.28);
  background: #f6fcf7;
}

.photo-slot.has-saved-photo {
  background: #f3fbf4;
}

.photo-slot.has-photo input[type="file"] {
  display: none;
}

.photo-slot input[type="file"] {
  color: transparent;
  text-shadow: none;
}

.photo-slot input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
}

.photo-slot input[type="file"]::file-selector-button {
  color: transparent;
  width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.photo-slot input[type="file"]::before {
  content: "拍照";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ece7df;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.photo-slot .photo-hint {
  display: none;
}

.photo-slot.has-photo .photo-preview {
  cursor: pointer;
}

.task-banner,
.inventory-link-box {
  margin-top: 18px;
}

.task-banner {
  padding: 14px;
  border-radius: 20px;
  background: #fff7ed;
}

.compact-task-banner {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.compact-task-banner .task-image {
  width: 100%;
  max-width: 180px;
  height: 110px;
  margin-top: 0;
}

.compact-task-banner .task-updated {
  max-width: 220px;
}

.task-image {
  margin-top: 10px;
  max-height: 360px;
  border: 1px solid rgba(180, 83, 9, 0.16);
}

.empty-task {
  object-fit: contain;
  background: #fffaf5;
}

.fields-wrap {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.compact-field textarea {
  min-height: 56px;
}

.compact-textarea {
  min-height: 56px;
}

.input-card .ghost-btn {
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

.inline-photo-group {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.inline-photo-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inline-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.inline-photo-slot {
  padding: 6px;
  min-width: 0;
  gap: 4px;
}

.inline-photo-slot span {
  font-size: 12px;
}

.inline-photo-slot .photo-preview {
  height: 42px;
  border-radius: 8px;
}

.inline-photo-slot input {
  width: 100%;
  min-width: 0;
  padding: 6px 4px;
  font-size: 11px;
  border-radius: 10px;
}

.inline-photo-slot small {
  font-size: 11px;
}

.compact-conditional-photo-group .inline-photo-grid {
  grid-template-columns: minmax(120px, 180px);
}

.compact-conditional-photo-group .inline-photo-slot {
  width: 100%;
  max-width: 180px;
}

.compact-conditional-photo-group .inline-photo-slot .photo-preview {
  height: 54px;
}

.inline-photo-slot input[type="file"]::before {
  min-width: 56px;
  padding: 6px 10px;
  font-size: 11px;
}

.warning-field {
  padding: 12px;
  border-radius: 18px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.warning-field > span {
  color: #9f1239;
}

.warning-field textarea {
  background: #fff;
  border-color: #fda4af;
}

.boolean-wrap {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.boolean-buttons {
  display: flex;
  gap: 10px;
}

.step-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.login-card .primary-btn {
  margin-top: 10px;
}

.login-card .primary-btn.is-started {
  background: #d1d5db;
  color: #374151;
  box-shadow: none;
  transform: scale(0.8);
  transform-origin: center center;
  width: 80%;
  justify-self: start;
}

.save-hint,
#sessionHint {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.save-hint {
  display: none;
}

.finish-card {
  border: 1px solid rgba(20, 83, 45, 0.26);
}

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

.finish-actions .primary-btn,
.finish-actions .secondary-btn,
.finish-actions .warning-btn {
  flex: 1 1 220px;
}

.primary-btn:disabled {
  background: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

.summary-path {
  font-weight: 700;
  color: var(--brand);
  word-break: break-all;
}

.preview-dialog {
  width: min(92vw, 720px);
  border: none;
  border-radius: 24px;
  padding: 16px;
}

.preview-dialog::backdrop {
  background: rgba(17, 24, 39, 0.48);
}

.preview-dialog img {
  width: 100%;
  border-radius: 16px;
}

.preview-notes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.preview-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.close-btn {
  margin-left: auto;
  margin-bottom: 12px;
  display: block;
  border: none;
  background: #efe4cf;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.small-btn {
  padding: 10px 14px;
}

.task-status-box {
  display: grid;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.workflow-finished .step-card:not(.done) {
  opacity: 0.6;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 16px, 980px);
    margin-top: 10px;
  }

  .hero-panel {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-role-buttons {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid.two,
  .boolean-buttons {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .login-card .field-grid.two {
    gap: 14px;
  }

  .login-card input[type="date"] {
    width: 100%;
    max-width: 100%;
  }

  .card {
    padding: 14px;
    border-radius: 20px;
  }

  .login-card .primary-btn.is-started {
    width: 80%;
  }

  .compact-standard-gallery .standard-card img {
    height: 84px;
  }

  .standard-card img {
    height: 84px;
  }

  .compact-task-banner .task-image {
    height: 84px;
  }

  .inline-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .inline-photo-slot {
    padding: 6px;
  }

  .inline-photo-slot span,
  .inline-photo-slot small,
  .inline-photo-slot input {
    font-size: 10px;
  }

  .inline-photo-slot .photo-preview {
    height: 34px;
  }

  .photo-slot input[type="file"]::before {
    min-width: 62px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .inline-photo-slot input[type="file"]::before {
    min-width: 48px;
    padding: 5px 8px;
    font-size: 10px;
  }
}

.mrcg-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 116, 144, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(217, 119, 6, 0.2), transparent 30%),
    linear-gradient(180deg, #f7f4ec 0%, #eef6f2 100%);
}

.mrcg-shell {
  max-width: 760px;
}

.mrcg-hero {
  background: linear-gradient(135deg, #0f766e, #92400e);
}

.mrcg-card {
  display: grid;
  gap: 16px;
}

.upload-drop {
  border: 2px dashed rgba(15, 118, 110, 0.35);
  border-radius: 22px;
  padding: 18px;
  background: rgba(240, 253, 250, 0.78);
  text-align: center;
  cursor: pointer;
}

.upload-drop strong {
  font-size: 22px;
  color: #115e59;
}

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

.upload-drop input {
  margin-top: 12px;
  background: #fff;
}

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

.mrcg-preview-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.mrcg-preview-item span {
  color: #92400e;
}

.mrcg-preview-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.mrcg-upload-btn {
  width: 100%;
  font-size: 18px;
  padding: 15px 18px;
}

.mrcg-status-box {
  display: grid;
  gap: 8px;
}

.vegetable-body {
  background:
    radial-gradient(circle at 5% 0%, rgba(34, 197, 94, 0.22), transparent 26%),
    radial-gradient(circle at 95% 12%, rgba(132, 204, 22, 0.18), transparent 30%),
    linear-gradient(180deg, #f0fdf4 0%, #fefce8 48%, #f7fee7 100%);
}

.vegetable-shell {
  max-width: 860px;
}

.vegetable-hero {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(217, 249, 157, 0.34), transparent 30%),
    linear-gradient(135deg, #14532d, #15803d 54%, #84cc16);
}

.vegetable-body .primary-btn {
  background: linear-gradient(135deg, #15803d, #22c55e);
  box-shadow: 0 10px 20px rgba(21, 128, 61, 0.2);
}

.vegetable-body .secondary-btn {
  background: #dcfce7;
  color: #166534;
}

.vegetable-step-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.92));
  border-color: rgba(22, 101, 52, 0.14);
}

.vegetable-step-card.done .status-pill {
  background: #dcfce7;
  color: #166534;
}

.step-time {
  margin: 6px 0 0;
}

.vegetable-items {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.veg-item {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.veg-item > p {
  margin: 0;
  font-weight: 800;
  color: #164e63;
  line-height: 1.55;
}

.status-row-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.status-row-item .boolean-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.status-row-item .option-btn {
  min-width: 48px;
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.link-status-item .veg-link {
  grid-column: 1;
  grid-row: 2;
}

.link-status-item .boolean-buttons {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.quality-item {
  border-color: rgba(249, 115, 22, 0.22);
  background: rgba(255, 247, 237, 0.78);
}

.quality-detail {
  background: transparent;
}

.measurement-item {
  border-color: rgba(2, 132, 199, 0.2);
  background: rgba(240, 249, 255, 0.78);
}

.measurement-grid {
  display: grid;
  gap: 10px;
}

.measurement-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(254, 226, 226, 0.72);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.measurement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.measurement-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.measurement-input-wrap input {
  border-radius: 12px;
  padding: 8px 10px;
}

.measurement-input-wrap em {
  color: #0c4a6e;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.measurement-range {
  grid-column: 1 / -1;
  color: #64748b;
  font-weight: 700;
}

.measurement-warning {
  grid-column: 1 / -1;
  color: #dc2626;
  font-size: 13px;
}

.veg-link {
  width: fit-content;
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
  border: 1px solid rgba(14, 116, 144, 0.14);
}

.veg-link.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.vegetable-photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.veg-standard-gallery {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(236, 254, 255, 0.7);
  border: 1px solid rgba(14, 116, 144, 0.1);
}

.veg-standard-gallery > span {
  color: #0e7490;
}

.veg-standard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.veg-standard-card {
  border: 0;
  text-align: center;
  padding: 8px;
}

.veg-standard-card img {
  height: 70px;
}

.veg-standard-card span {
  color: #0369a1;
  font-weight: 800;
}

.vegetable-photo-grid .inline-photo-slot .photo-preview {
  height: 58px;
}

.vegetable-step-card .step-actions {
  margin-top: 18px;
}

.vegetable-step-card.locked-step {
  opacity: 0.7;
}

.beef-pork-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(248, 113, 113, 0.18), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(217, 119, 6, 0.18), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #fef2f2 52%, #fffbeb 100%);
}

.beef-pork-shell {
  max-width: 860px;
}

.beef-pork-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, #7f1d1d, #b45309 54%, #f97316);
}

.beef-pork-body .primary-btn {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  box-shadow: 0 10px 20px rgba(153, 27, 27, 0.2);
}

.beef-pork-body .secondary-btn {
  background: #fee2e2;
  color: #7f1d1d;
}

.beef-pork-step-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92));
  border-color: rgba(153, 27, 27, 0.14);
}

.beef-pork-step-card.done .status-pill {
  background: #fee2e2;
  color: #991b1b;
}

.beef-pork-body .veg-item > p,
.beef-pork-body .input-card > span {
  color: #7f1d1d;
}

.beef-pork-body .quality-item {
  border-color: rgba(153, 27, 27, 0.2);
  background: rgba(255, 247, 237, 0.78);
}

.beef-pork-body .veg-link {
  background: rgba(153, 27, 27, 0.08);
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.14);
}

.beef-pork-body .veg-standard-gallery {
  background: rgba(255, 247, 237, 0.78);
  border-color: rgba(153, 27, 27, 0.1);
}

.beef-pork-body .veg-standard-gallery > span,
.beef-pork-body .veg-standard-card span {
  color: #991b1b;
}

.seafood-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.2), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.16), transparent 30%),
    linear-gradient(180deg, #eff6ff 0%, #ecfeff 52%, #f8fafc 100%);
}

.seafood-shell {
  max-width: 860px;
}

.seafood-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(125, 211, 252, 0.28), transparent 30%),
    linear-gradient(135deg, #0c4a6e, #0284c7 54%, #06b6d4);
}

.seafood-body .primary-btn {
  background: linear-gradient(135deg, #0369a1, #0891b2);
  box-shadow: 0 10px 20px rgba(3, 105, 161, 0.2);
}

.seafood-body .secondary-btn {
  background: #dbeafe;
  color: #1e3a8a;
}

.seafood-step-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  border-color: rgba(14, 116, 144, 0.14);
}

.seafood-step-card.done .status-pill {
  background: #cffafe;
  color: #155e75;
}

.seafood-body .veg-item > p,
.seafood-body .input-card > span {
  color: #0c4a6e;
}

.seafood-body .quality-item {
  border-color: rgba(14, 116, 144, 0.2);
  background: rgba(236, 254, 255, 0.78);
}

.seafood-body .veg-link {
  background: rgba(14, 116, 144, 0.08);
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.14);
}

.waterbar-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.2), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(20, 184, 166, 0.16), transparent 32%),
    linear-gradient(180deg, #fff7ed 0%, #f0fdfa 52%, #fffbeb 100%);
}

.waterbar-shell {
  max-width: 860px;
}

.waterbar-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(45, 212, 191, 0.25), transparent 32%),
    linear-gradient(135deg, #92400e, #d97706 50%, #0f766e);
}

.waterbar-body .primary-btn {
  background: linear-gradient(135deg, #b45309, #0f766e);
  box-shadow: 0 10px 20px rgba(180, 83, 9, 0.2);
}

.waterbar-body .secondary-btn {
  background: #fef3c7;
  color: #92400e;
}

.waterbar-step-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.92));
  border-color: rgba(180, 83, 9, 0.14);
}

.waterbar-step-card.done .status-pill {
  background: #ccfbf1;
  color: #115e59;
}

.waterbar-body .veg-item > p,
.waterbar-body .input-card > span {
  color: #92400e;
}

.waterbar-body .quality-item {
  border-color: rgba(180, 83, 9, 0.2);
  background: rgba(255, 251, 235, 0.82);
}

.waterbar-body .veg-link {
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.14);
}

.supervisor-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(180, 83, 9, 0.16), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #fff7ed 48%, #eff6ff 100%);
}

.supervisor-shell {
  max-width: 900px;
}

.supervisor-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(251, 191, 36, 0.22), transparent 32%),
    linear-gradient(135deg, #111827, #92400e 48%, #1d4ed8);
}

.supervisor-body .primary-btn {
  background: linear-gradient(135deg, #7c2d12, #1d4ed8);
  box-shadow: 0 10px 20px rgba(124, 45, 18, 0.18);
}

.supervisor-body .secondary-btn {
  background: #e0e7ff;
  color: #1e3a8a;
}

.supervisor-step-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.93));
  border-color: rgba(124, 45, 18, 0.16);
}

.supervisor-step-card.done .status-pill {
  background: #dbeafe;
  color: #1d4ed8;
}

.supervisor-body .veg-item > p,
.supervisor-body .input-card > span {
  color: #7c2d12;
}

.supervisor-body .quality-item,
.supervisor-body .schedule-item,
.supervisor-body .clean-plan-item {
  border-color: rgba(124, 45, 18, 0.18);
  background: rgba(255, 251, 235, 0.75);
}

.supervisor-notice {
  border-color: rgba(29, 78, 216, 0.16);
  background: rgba(239, 246, 255, 0.78);
}

.supervisor-notice span {
  display: block;
  line-height: 1.75;
}

.supervisor-loss-summary {
  display: block;
}

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

.loss-summary-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.loss-summary-card strong {
  color: #7c2d12;
}

.loss-summary-card span {
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13px;
}

.loss-summary-card p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}

.loss-summary-photo {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(124, 45, 18, 0.12);
}

@media (max-width: 720px) {
  .vegetable-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-row-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .status-row-item .option-btn {
    min-width: 42px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .veg-standard-card img {
    height: 58px;
  }
}
