.triage { display: grid; gap: 24px; }
.panel, .result {
  border: 1px solid rgba(24, 52, 47, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 52, 47, 0.08);
  padding: 16px;
}
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-head img { width: 128px; height: 96px; object-fit: cover; border-radius: 6px; box-shadow: 0 1px 2px rgba(24, 52, 47, 0.08); }
.panel h1 { font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.panel fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.panel legend, .panel label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices button, .ghost, .mini {
  min-height: 44px;
  border: 1px solid rgba(24, 52, 47, 0.1);
  border-radius: 6px;
  background: #fff;
  color: #18342f;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}
.choices button[aria-pressed="true"] { border-color: #246b5b; background: #e8f1ee; }
.choices button:hover, .ghost:hover, .mini:hover { border-color: rgba(36, 107, 91, 0.6); }
.appetite { grid-template-columns: 1fr; }
.panel textarea, .panel input[type="text"], .panel input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid rgba(24, 52, 47, 0.15);
  border-radius: 6px;
  background: #f6faf8;
  color: #18342f;
  padding: 12px;
  font-size: 14px;
}
.panel label { margin-bottom: 16px; }
.pref-row, .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: #41514d; font-size: 14px; font-weight: 400; }
.ghost { color: #41514d; }
.submit, .mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #246b5b;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
}
.submit:hover { background: #18342f; }
.submit:disabled { background: rgba(65, 81, 77, 0.4); cursor: not-allowed; }
.error { border: 1px solid #c84933; border-radius: 6px; background: #fff3ef; padding: 12px; font-size: 14px; }
.result { min-height: 28rem; }
.result h2 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; margin-top: 8px; }
.kicker.leaf { color: #246b5b; }
.expect { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.expect li { border-radius: 6px; background: #f6faf8; padding: 12px; color: #41514d; font-size: 14px; }
.safety-note, .clinician, .meal p, .limit { color: #41514d; font-size: 14px; }
.safety-note { margin-top: 24px; border: 1px solid rgba(24, 52, 47, 0.1); border-radius: 6px; background: #f8f3ea; padding: 12px; }
.result.is-urgent { border-color: #c84933; background: #fff3ef; }
.result.is-caution { border-color: #d89a22; background: #fff9e9; }
.result.is-normal { border-color: #246b5b; background: #fff; }
.level { color: #c84933; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.meal, .clinician, .hidden-meals { margin-top: 12px; border: 1px solid rgba(24, 52, 47, 0.1); border-radius: 6px; background: #fff; padding: 16px; }
.meal h3, .limit h3 { margin: 0; font-size: 16px; }
.limit { margin-top: 12px; border-radius: 6px; background: #f6faf8; padding: 16px; }
.actions { margin-top: 16px; }
.mini { width: auto; border: 1px solid rgba(24, 52, 47, 0.1); background: #fff; color: #18342f; }
.thanks { color: #246b5b; font-size: 14px; font-weight: 600; }
@media (min-width: 900px) {
  .triage { grid-template-columns: 1.05fr 0.95fr; }
  .panel h1 { font-size: 36px; }
  .appetite, .goals { grid-template-columns: repeat(4, 1fr); }
  .appetite { grid-template-columns: repeat(3, 1fr); }
  .constraints { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 24px; }
}
@media (max-width: 640px) {
  .submit { width: 100%; }
}
