:root {
  color-scheme: light;
  --page: #f4f6f1;
  --surface: #ffffff;
  --surface-muted: #f7f8f5;
  --ink: #18362e;
  --ink-strong: #102b24;
  --muted: #6f7e78;
  --line: #e3e9e4;
  --accent: #35735d;
  --accent-strong: #285c4b;
  --accent-soft: #e5f0ea;
  --lime: #cfe9a8;
  --amber: #b87422;
  --amber-soft: #fff3df;
  --red: #b25348;
  --red-soft: #fbe9e6;
  --blue: #567b92;
  --blue-soft: #eaf1f5;
  --shadow: 0 18px 52px rgba(26, 59, 48, 0.08);
  --radius: 22px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 2%, rgba(207, 233, 168, 0.35), transparent 25rem),
    linear-gradient(180deg, #f7f8f4 0, var(--page) 24rem);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--accent-strong);
  border: 1px solid rgba(53, 115, 93, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 9px 25px rgba(31, 82, 63, 0.08);
}

.brand-mark svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.hero-suffix {
  display: inline-block;
  white-space: nowrap;
}

.hero-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: 24px;
}

.panel {
  border: 1px solid rgba(219, 227, 220, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 28px;
}

.result-panel {
  min-height: 720px;
  padding: 28px;
}

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

.panel-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#result-title {
  scroll-margin-top: 24px;
  outline: none;
}

.example-presets {
  margin: -4px 0 28px;
  padding: 16px;
  border: 1px solid #dfe8e1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 94% 0, rgba(207, 233, 168, 0.22), transparent 9rem),
    #f7f9f6;
}

.example-presets-heading h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 700;
}

.example-presets-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.example-preset-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.example-preset-button {
  min-height: 33px;
  padding: 0 11px;
  cursor: pointer;
  color: #5e7069;
  border: 1px solid #dbe4de;
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.example-preset-button:hover {
  color: var(--accent-strong);
  border-color: rgba(53, 115, 93, 0.35);
  background: #f1f7f3;
  transform: translateY(-1px);
}

.example-preset-button:focus-visible {
  outline: 3px solid rgba(53, 115, 93, 0.18);
  outline-offset: 2px;
}

.example-preset-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.example-preset-button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow: 0 6px 14px rgba(40, 92, 75, 0.15);
}

.form-section + .form-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-title-row,
.result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row {
  margin-bottom: 16px;
}

.section-title-row h3,
.result-section-heading h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 700;
}

.section-title-row > span,
.section-aside {
  color: #75847e;
  font-size: 12px;
}

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

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

.span-two {
  grid-column: span 2;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field > span:first-child {
  overflow: hidden;
  color: #4c5f58;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field em {
  color: #7f8d87;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.input-wrap,
.select-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  height: 43px;
  align-items: center;
  border: 1px solid #dce4de;
  border-radius: 10px;
  background: var(--surface-muted);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap:focus-within,
.select-wrap:focus-within {
  border-color: rgba(53, 115, 93, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(53, 115, 93, 0.1);
}

.input-wrap input,
.select-wrap select {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 11px;
  color: var(--ink-strong);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.input-wrap input {
  appearance: textfield;
}

.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.input-wrap input[type="date"] {
  padding-right: 10px;
  font-weight: 500;
}

.input-wrap small {
  flex: 0 0 auto;
  padding-right: 9px;
  color: #74847d;
  font-size: 11px;
  white-space: nowrap;
}

.input-wrap.long-unit input {
  padding-right: 4px;
}

.input-wrap.long-unit small {
  padding-right: 6px;
  font-size: 10px;
}

.select-wrap::after {
  position: absolute;
  right: 10px;
  width: 6px;
  height: 6px;
  content: "";
  pointer-events: none;
  border-right: 1.5px solid #71817b;
  border-bottom: 1.5px solid #71817b;
  transform: translateY(-2px) rotate(45deg);
}

.select-wrap select {
  padding-right: 28px;
  appearance: none;
}

.paired-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paired-inputs .input-wrap {
  flex: 1;
}

.paired-inputs i {
  color: #a6b0ac;
  font-size: 13px;
  font-style: normal;
}

.compact-grid {
  align-items: end;
}

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

.condition-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  position: relative;
  cursor: pointer;
}

.check-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-pill span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #60716b;
  border: 1px solid #dfe6e1;
  border-radius: 99px;
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 500;
  transition: 150ms ease;
}

.check-pill input:focus-visible + span {
  outline: 3px solid rgba(53, 115, 93, 0.2);
  outline-offset: 2px;
}

.check-pill input:checked + span {
  color: var(--accent-strong);
  border-color: rgba(53, 115, 93, 0.35);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(53, 115, 93, 0.04);
}

.review-pill input:checked + span {
  color: #8b571c;
  border-color: #e9c28d;
  background: var(--amber-soft);
}

.form-error {
  margin-top: 22px;
  padding: 11px 13px;
  color: #873e37;
  border: 1px solid #f1c6c0;
  border-radius: 10px;
  background: var(--red-soft);
  font-size: 13px;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.primary-button {
  display: inline-flex;
  min-width: 154px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(40, 92, 75, 0.18);
  font-size: 14px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: #1f5141;
  box-shadow: 0 12px 27px rgba(40, 92, 75, 0.24);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.primary-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.text-button {
  padding: 7px 0;
  cursor: pointer;
  color: #71817b;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.text-button:hover {
  color: var(--accent);
}

.text-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

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

.empty-state,
.loading-state {
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 84px;
  height: 84px;
  margin-bottom: 21px;
  place-items: center;
  color: var(--accent);
  border-radius: 28px;
  background: var(--accent-soft);
  transform: rotate(-3deg);
}

.empty-illustration svg {
  width: 52px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: rotate(3deg);
}

.empty-state h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 17px;
}

.empty-state p,
.loading-state p {
  max-width: 310px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.loading-mark {
  width: 30px;
  height: 30px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

.result-content {
  animation: reveal 280ms ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.outcome-card {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  color: #fff;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(207, 233, 168, 0.28), transparent 9rem),
    var(--accent-strong);
}

.outcome-card.warning {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 222, 166, 0.2), transparent 9rem),
    #79531f;
}

.outcome-card.danger {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 213, 207, 0.18), transparent 9rem),
    #7b3932;
}

.outcome-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
}

.outcome-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.outcome-card p {
  margin: 0;
}

#outcome-eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.outcome-card h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

#outcome-description {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.summary-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-muted);
}

.summary-card > span {
  color: #667871;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.summary-card strong {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: var(--ink-strong);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card strong small {
  margin-left: 3px;
  color: #778680;
  font-size: 11px;
  font-weight: 500;
}

.summary-card p {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.result-section-heading {
  margin-bottom: 16px;
}

.result-subsection {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #e0e7e2;
}

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

.detail-heading h4 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 700;
}

.energy-breakdown {
  padding: 15px;
  border: 1px solid #dce7df;
  border-radius: 13px;
  background: #f6f9f6;
}

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

.detail-metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e8e3;
  border-radius: 9px;
  background: #fff;
}

.detail-metric span {
  display: block;
  color: #73827c;
  font-size: 12px;
  font-weight: 600;
}

.detail-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.35;
}

.detail-metric strong small {
  margin-left: 4px;
  color: #778680;
  font-size: 10px;
  font-weight: 500;
}

.emphasis-metric {
  border-color: #cfe0d4;
  background: #edf5f0;
}

.energy-deficit-block {
  margin-top: 13px;
}

.detail-label {
  display: block;
  margin-bottom: 7px;
  color: #65766f;
  font-size: 12px;
  font-weight: 700;
}

.energy-deficit-ranges {
  display: grid;
  gap: 7px;
}

.energy-range-card {
  padding: 10px 11px;
  border: 1px solid #e1e7e2;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
}

.energy-range-card strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.energy-range-card p {
  margin: 4px 0 0;
  color: #6e7e78;
  font-size: 12px;
  line-height: 1.5;
}

.calculation-method,
.calculation-note {
  margin: 10px 0 0;
  color: #687871;
  font-size: 12px;
  line-height: 1.6;
}

.calculation-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(53, 115, 93, 0.06);
}

.macro-list {
  display: grid;
  gap: 9px;
}

.macro-item {
  padding: 11px 12px;
  border: 1px solid #e1e7e2;
  border-radius: 10px;
  background: #fafbf9;
}

.macro-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.macro-heading span {
  color: #4e625b;
  font-size: 13px;
  font-weight: 600;
}

.macro-heading strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.macro-heading small {
  margin-left: 5px;
  color: #71817b;
  font-size: 11px;
  font-weight: 500;
}

.macro-track {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: #edf0ed;
}

.macro-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--accent));
  transform-origin: left;
  animation: grow 550ms cubic-bezier(.2, .75, .2, 1) both;
}

.macro-range,
.macro-basis {
  margin: 7px 0 0;
  color: #687871;
  font-size: 12px;
  line-height: 1.5;
}

.macro-basis {
  color: #7b8984;
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.target-card {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e0e6e1;
  border-radius: 10px;
  background: #fafbf9;
}

.target-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.target-heading span {
  color: #566861;
  font-size: 12px;
  font-weight: 600;
}

.target-heading strong {
  flex: 0 0 auto;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.target-card p {
  margin: 6px 0 0;
  color: #778680;
  font-size: 12px;
  line-height: 1.55;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.module-tags-label {
  margin-right: 2px;
  color: #87948f;
  font-size: 10px;
  font-weight: 600;
}

.module-tag {
  padding: 2px 6px;
  color: #4f7165;
  border-radius: 99px;
  background: #e8f1ec;
  font-size: 11px;
  font-weight: 600;
}

.meal-metrics {
  margin-top: 2px;
}

.meal-notes {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 17px;
  color: #6c7b75;
  font-size: 12px;
  line-height: 1.55;
}

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

.guidance-card {
  padding: 15px;
  border-radius: 13px;
}

.monitoring-card {
  border: 1px solid #d8e4e9;
  background: #f2f7f9;
}

.caution-card {
  border: 1px solid #efd7d2;
  background: #fff7f5;
}

.guidance-card h4 {
  margin: 0 0 11px;
  color: var(--ink-strong);
  font-size: 14px;
}

.guidance-card h4 span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  place-items: center;
  color: var(--blue);
  border-radius: 6px;
  background: rgba(86, 123, 146, 0.12);
  font-size: 11px;
}

.caution-card h4 span {
  color: var(--red);
  background: rgba(178, 83, 72, 0.11);
}

.guidance-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guidance-card li {
  position: relative;
  padding-left: 11px;
  color: #64746e;
  font-size: 13px;
  line-height: 1.6;
}

.guidance-card li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--blue);
}

.caution-card li::before {
  background: var(--red);
}

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

.action-card {
  padding: 15px;
  border-radius: 13px;
}

.prioritize-card {
  border: 1px solid #dce9de;
  background: #f3f8f3;
}

.limit-card {
  border: 1px solid #eee3d5;
  background: #fbf7f1;
}

.avoid-card {
  grid-column: 1 / -1;
  border: 1px solid #efd7d2;
  background: #fff7f5;
}

.action-card h4 {
  margin: 0 0 11px;
  color: var(--ink-strong);
  font-size: 14px;
}

.action-card h4 span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  place-items: center;
  border-radius: 6px;
  background: rgba(53, 115, 93, 0.1);
  color: var(--accent);
}

.limit-card h4 span {
  color: #a56c28;
  background: rgba(184, 116, 34, 0.1);
}

.avoid-card h4 span {
  color: var(--red);
  background: rgba(178, 83, 72, 0.11);
}

.action-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-card li {
  position: relative;
  padding-left: 11px;
  color: #64746e;
  font-size: 13px;
  line-height: 1.6;
}

.action-card li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: #7ca08f;
}

.limit-card li::before {
  background: #c79352;
}

.avoid-card li::before {
  background: var(--red);
}

.finding-list,
.blocking-list {
  display: grid;
  gap: 8px;
}

.finding-item,
.blocking-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf9;
}

.finding-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #9ca7a2;
  box-shadow: 0 0 0 4px #eef1ef;
}

.finding-item.alert .finding-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.finding-item.repeat_recommended .finding-dot,
.finding-item.insufficient_data .finding-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.finding-item.no_alert .finding-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.finding-copy strong,
.blocking-item strong {
  display: block;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 600;
}

.finding-copy p,
.blocking-item p {
  margin: 4px 0 0;
  color: #75847e;
  font-size: 12px;
  line-height: 1.6;
}

.blocking-section {
  color: #8d4d45;
}

.blocking-item {
  border-color: #efd3cf;
  background: #fff8f7;
}

.blocking-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #fff;
  border-radius: 7px;
  background: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.blocking-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.blocking-heading strong {
  flex: 1;
}

.blocking-category {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #9f4b43;
  border-radius: 99px;
  background: #f9e5e2;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.blocking-evidence-label {
  display: block;
  margin-top: 8px;
  color: #9b6a64;
  font-size: 12px;
  font-weight: 700;
}

.blocking-evidence {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding-left: 17px;
  color: #8b625d;
  font-size: 12px;
  line-height: 1.55;
}

.blocking-item .blocking-action {
  margin-top: 8px;
  color: #82443d;
  font-weight: 600;
}

.result-footnote {
  margin: 15px 0 0;
  color: #75847e;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .page-shell {
    width: min(720px, calc(100% - 36px));
  }

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

  .result-panel {
    min-height: 650px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: calc(100% - 24px);
    padding: 28px 0 36px;
  }

  .hero {
    grid-template-columns: auto 1fr;
    margin-bottom: 22px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .hero-description {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
  }

  .form-panel,
  .result-panel {
    padding: 21px 18px;
    border-radius: 18px;
  }

  .result-panel {
    min-height: 0;
  }

  .empty-state,
  .loading-state {
    min-height: 420px;
  }

  .panel-heading {
    margin-bottom: 24px;
  }

  .example-presets {
    margin-bottom: 24px;
    padding: 14px;
  }

  .example-preset-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-preset-button {
    width: 100%;
    padding: 0 8px;
  }

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

  .span-two-mobile,
  .activity-field,
  .pressure-field {
    grid-column: span 2;
  }

  .input-wrap input,
  .select-wrap select {
    font-size: 16px;
  }

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

  .summary-card:last-child {
    grid-column: 1 / -1;
  }

  .target-grid,
  .guidance-columns,
  .action-columns {
    grid-template-columns: 1fr;
  }

  .avoid-card {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
