:root {
  color-scheme: light;
  --ink: #28342d;
  --muted: #788078;
  --line: #e6e0d7;
  --paper: #fffdfa;
  --canvas: #f6f0e7;
  --green: #285541;
  --green-soft: #e7f0eb;
  --gold: #d69a42;
  --danger: #9c493e;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.access-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #183a2e, #39705a); }
.access-card { width: min(460px, 100%); padding: 38px; border-radius: 25px; background: #fffdfa; box-shadow: 0 28px 70px rgba(14,40,30,.28); }
.access-card .eyebrow { color: #557366; }
.access-card h1 { margin: 0; color: var(--ink); font-size: 34px; letter-spacing: -.03em; }
.access-card > p:not(.eyebrow):not(.access-error) { color: var(--muted); line-height: 1.65; }
.access-card form { display: grid; gap: 14px; margin-top: 25px; }
.access-card label { display: grid; gap: 8px; color: #5e675f; font-size: 13px; }
.access-card input { min-height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; text-transform: uppercase; letter-spacing: .12em; }
.access-card button { min-height: 54px; border: 0; border-radius: 14px; color: #fff; background: var(--green); font-weight: 700; }
.access-card .remember-login { display: flex; grid-template-columns: none; align-items: center; gap: 9px; line-height: 1.45; }
.access-card .remember-login input { width: 18px; min-height: 18px; padding: 0; text-transform: none; letter-spacing: 0; }
.access-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 11px; color: #9b493d; background: #fff0ed; font-size: 12px; }

.page-shell { width: min(940px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.hero { position: relative; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; overflow: hidden; padding: 48px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #1f4435, #39705a); box-shadow: 0 22px 50px rgba(36, 77, 61, .18); }
.hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -100px; top: -150px; border-radius: 50%; background: rgba(255,255,255,.08); }
.eyebrow, .step, .result-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: #cee0d5; }
.hero h1 { margin: 0; white-space: pre-line; font-size: clamp(36px, 6vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.hero-copy > p:last-child { max-width: 620px; margin: 18px 0 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.hero-badge { display: grid; grid-template-columns: repeat(3, 52px); gap: 8px; position: relative; z-index: 1; }
.hero-badge span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.09); font-weight: 800; }
.forget-device { position: absolute; right: 24px; bottom: 18px; z-index: 2; padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); font-size: 11px; }

.card { margin-top: 22px; padding: 30px; border: 1px solid rgba(43,55,48,.06); border-radius: 24px; background: var(--paper); box-shadow: 0 8px 25px rgba(70,58,42,.055); }
.section-heading, .result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.step { margin-bottom: 5px; color: #9a8264; }
.section-heading h2, .result-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.status-pill, .unit-label { padding: 7px 12px; border-radius: 999px; color: #567164; background: var(--green-soft); font-size: 12px; }
.section-description { margin: 9px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.field { display: grid; gap: 9px; color: #5e675f; font-size: 14px; }
.full-field { margin-top: 22px; }
.version-field { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.version-field legend { margin-bottom: 9px; color: #5e675f; font-size: 14px; }
.version-field-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.version-field-head legend { margin: 0; }
.meal-mode-toggle { min-height: 38px; padding: 0 14px; border: 1px solid #7fa18f; border-radius: 999px; color: #285541; background: #edf5f0; font-weight: 750; }
.version-options, .meal-options { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 7px; scrollbar-width: thin; }
.version-option, .meal-option { min-width: max-content; cursor: pointer; }
.version-option > input { position: absolute; opacity: 0; pointer-events: none; }
.version-option > span { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: #667169; background: #faf7f2; transition: border-color .18s, background .18s, box-shadow .18s; }
.version-option i { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 auto; border: 1px solid #cfc8be; border-radius: 50%; color: transparent; background: #fff; font-size: 10px; font-style: normal; }
.version-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-option > input:checked + span { border-color: #6f9985; color: #285541; background: #edf4ef; box-shadow: 0 0 0 3px rgba(62,112,88,.08); }
.version-option > input:checked + span i { color: #fff; border-color: #39705a; background: #39705a; }
.version-option > input:focus-visible + span { outline: 3px solid rgba(68,122,97,.18); outline-offset: 2px; }
select, .fixed-control input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: #faf7f2; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
select:focus, input:focus { border-color: #6e9a86; box-shadow: 0 0 0 4px rgba(68,122,97,.10); }
.info-note { margin: 14px 0 0; padding: 13px 15px; border-radius: 12px; color: #557063; background: #edf4ef; font-size: 13px; line-height: 1.5; }

.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.macro-input { display: grid; gap: 10px; padding: 18px; border-radius: 17px; }
.macro-input > span:first-child { color: #6e766f; font-size: 13px; }
.macro-input > span:last-child { display: flex; align-items: baseline; gap: 5px; }
.macro-input input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 28px; font-weight: 750; }
.macro-input input:focus { box-shadow: none; }
.macro-input em { color: #838a84; font-size: 13px; font-style: normal; }
.macro-input.carb { background: #fff0da; }
.macro-input.protein { background: #e6f0eb; }
.macro-input.fat { background: #f2eadf; }

.source-groups { display: grid; gap: 20px; }
.source-group { padding: 18px; border: 1px solid #eee8df; border-radius: 17px; background: #fcfaf6; }
.source-group-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #5e675f; font-size: 14px; font-weight: 700; }
.source-group-heading small { padding: 4px 8px; border-radius: 999px; color: #64786d; background: #eaf2ed; font-size: 10px; font-weight: 600; }
.source-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.source-option { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 66px; padding: 11px 12px; border: 1px solid #e7e0d7; border-radius: 13px; background: #fff; transition: border-color .18s, background .18s, box-shadow .18s; }
.source-option.selected { border-color: #7da18f; background: #f0f6f2; box-shadow: 0 0 0 2px rgba(70,119,95,.08); }
.source-check { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.source-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.source-check strong, .source-check small { display: block; }.source-check strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.source-check small { margin-top: 4px; color: #8b928c; font-size: 9px; line-height: 1.35; }
.share-control { display: flex; align-items: center; gap: 4px; color: #7b827c; font-size: 10px; }
.share-control input { width: 50px; height: 36px; border: 1px solid #ddd6cc; border-radius: 9px; text-align: center; background: #fff; }
.share-control input:disabled { opacity: .35; cursor: not-allowed; }
.share-control em { font-style: normal; }
.share-help { margin: 12px 2px 0; color: #838a84; font-size: 11px; line-height: 1.5; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; }
.carb-dot { background: #d89a3e; }.protein-dot { background: #4d816b; }.fat-dot { background: #95744d; }
.macro-composers { display: grid; gap: 18px; margin-top: 24px; }
.macro-composer { padding: 22px; border: 1px solid #e9e2d9; border-radius: 19px; background: #fcfaf6; }
.macro-composer.status-under { border-color: #e2bb63; background: #fff9e8; box-shadow: 0 0 0 2px rgba(207,154,43,.08); }
.macro-composer.status-matched { border-color: #74a68d; background: #f0f7f3; box-shadow: 0 0 0 2px rgba(50,124,89,.08); }
.macro-composer.status-over { border-color: #d46c5b; background: #fff0ed; box-shadow: 0 0 0 3px rgba(190,68,49,.10); }
.carb-composer { --macro-accent: #d89a3e; --macro-soft: #fff2df; }
.protein-composer { --macro-accent: #4d816b; --macro-soft: #eaf3ee; }
.fat-composer { --macro-accent: #95744d; --macro-soft: #f4ecdf; }
.macro-composer-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.macro-kicker { color: #707870; font-size: 12px; font-weight: 700; }
.macro-composer h3 { margin: 6px 0 0; font-size: 17px; }
.target-current { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 13px; background: var(--macro-soft); color: #616a63; font-size: 12px; white-space: nowrap; }
.target-current label, .target-current > span { display: flex; align-items: baseline; gap: 4px; }
.target-current input { width: 68px; padding: 3px 4px; border: 0; border-bottom: 1px solid rgba(62,73,66,.22); outline: 0; color: var(--ink); background: transparent; text-align: right; font-size: 19px; font-weight: 750; }
.target-current input:focus { box-shadow: none; border-color: var(--macro-accent); }
.target-current strong { color: var(--ink); font-size: 19px; }
.target-current em { color: #7b827c; font-size: 10px; font-style: normal; }
.target-current .slash { color: #aaa69e; }
.macro-progress { overflow: hidden; height: 6px; margin-top: 17px; border-radius: 999px; background: #ebe6de; }
.macro-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--macro-accent); transition: width .22s ease; }
.macro-progress span.over { background: #c66857; }
.macro-balance { display: flex; justify-content: space-between; margin-top: 7px; color: #858c86; font-size: 10px; }
.macro-balance span:first-child.met { color: #39715a; }.macro-balance span:first-child.over { color: #a65043; }
.food-selector { margin-top: 17px; border: 1px solid #e2dbd2; border-radius: 13px; background: #fff; }
.food-selector summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 15px; color: #59635b; cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
.food-selector summary::-webkit-details-marker { display: none; }
.food-selector summary::after { content: "＋"; color: #7c897f; font-size: 18px; font-weight: 400; }
.food-selector[open] summary::after { content: "－"; }
.food-selector.compact:not([open]) summary { min-height: 38px; padding: 0 12px; color: #627269; background: #f4f8f5; font-size: 11px; }
.fixed-food-selector { margin-bottom: 12px; border: 1px solid #ddd5ca; border-radius: 14px; background: #fff; overflow: hidden; }
.fixed-food-selector summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; color: #506158; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.fixed-food-selector summary::-webkit-details-marker { display: none; }
.fixed-food-selector summary small { color: #849188; font-size: 10px; font-weight: 500; }
.fixed-food-selector.compact:not([open]) summary { min-height: 38px; background: #f4f8f5; font-size: 11px; }
.fixed-food-selector:not([open]) .fixed-picker-options { display: none; }
.picker-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; border-top: 1px solid #f0ebe4; }
.picker-choice { display: inline-flex; width: fit-content; max-width: 100%; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid #ebe5dd; border-radius: 11px; background: #fcfaf7; cursor: pointer; }
.picker-choice.checked { border-color: #83a493; background: #edf5f0; }
.picker-choice input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.picker-choice strong, .picker-choice small { display: block; }.picker-choice strong { font-size: 12px; }.picker-choice small { margin-top: 3px; color: #8a918b; font-size: 9px; line-height: 1.35; }
.selected-foods { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.empty-selection { margin: 0; padding: 15px; border: 1px dashed #ddd6cd; border-radius: 11px; color: #999c97; text-align: center; font-size: 11px; }
.selected-food-row { display: inline-flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 8px; align-items: center; padding: 11px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #eee8df; }
.selected-food-row.matching { background: #f2f7f4; box-shadow: inset 0 0 0 1px #a6bfb2; }
.selected-food-name strong, .selected-food-name small { display: block; }.selected-food-name strong { font-size: 13px; }.selected-food-name small { margin-top: 3px; color: #929791; font-size: 9px; line-height: 1.35; }
.gram-input { display: flex; align-items: center; gap: 5px; }
.gram-input input { width: 78px; height: 40px; padding: 0 8px; border: 1px solid #ddd6cc; border-radius: 10px; text-align: right; background: #fff; }
.gram-input input:disabled { color: #315745; border-color: #aac0b5; background: #e7f0eb; font-weight: 700; opacity: 1; }
.gram-input em { color: #747c76; font-size: 11px; font-style: normal; }
.match-target { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 1px solid #ddd7ce; border-radius: 9px; color: #69736c; background: #faf8f4; font-size: 10px; cursor: pointer; white-space: nowrap; }
.match-target input { width: 15px; height: 15px; accent-color: var(--green); }
.matching .match-target { color: #315745; border-color: #9eb7aa; background: #e1ede6; }
.matching.match-unavailable { border-color: #d17061; background: #fff0ed; }
.matching.match-unavailable .gram-input input { color: #9a493d; border-color: #d79b91; background: #f9ded9; }
.matching.match-unavailable .match-target { color: #93463b; border-color: #d38b7f; background: #f8dcd7; }
.remove-food { border: 0; padding: 6px; color: #9a6d64; background: transparent; font-size: 10px; }
.match-help { margin: 16px 2px 0; padding: 12px 14px; border-radius: 11px; color: #5d7066; background: #edf4ef; font-size: 11px; line-height: 1.6; }
.auto-fat-panel { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; align-items: center; margin-top: 16px; padding: 17px 18px; border: 1px solid #dfd2c1; border-radius: 14px; background: #f7efe3; }
.auto-fat-panel > span { color: #6d655c; font-size: 13px; font-weight: 700; }
.auto-fat-panel > strong { display: flex; align-items: baseline; gap: 5px; color: #6b4e2f; }
.auto-fat-panel b { font-size: 31px; line-height: 1; }
.auto-fat-panel em { color: #867564; font-size: 12px; font-style: normal; }
.auto-fat-panel p { grid-column: 1 / -1; margin: 6px 0 0; color: #857b70; font-size: 10px; line-height: 1.55; }
.auto-fat-result { margin-top: 4px; padding-right: 12px; padding-left: 12px; border-radius: 13px; background: rgba(255,241,212,.08); }
.fixed-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid #eee8df; }
.fixed-section-first { margin-top: 22px; padding: 18px; border: 1px solid #e4ddd3; border-radius: 17px; background: #f8f4ed; }
.fixed-section h3 { margin: 0; font-size: 17px; }
.fixed-section > p { margin: 6px 0 15px; color: var(--muted); font-size: 13px; }
.fixed-foods { display: grid; gap: 12px; }
.fixed-picker-options { display: flex; flex-wrap: wrap; gap: 8px; }
.fixed-picker-choice { position: relative; display: inline-flex; align-items: center; min-height: 39px; padding: 8px 12px; border: 1px solid #ddd6cc; border-radius: 11px; color: #626d66; background: #fff; cursor: pointer; }
.fixed-picker-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fixed-picker-choice span { display: grid; gap: 2px; }
.fixed-picker-choice strong { font-size: 12px; }
.fixed-picker-choice small { color: #789083; font-size: 8px; }
.fixed-picker-choice.checked { color: #285541; border-color: #91b09f; background: #e7f1eb; box-shadow: inset 0 0 0 1px rgba(40,85,65,.08); }
.fixed-picker-choice.checked strong::before { content: "✓ "; }
.fixed-selected-foods { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.fixed-selected-foods > .empty-selection { grid-column: 1 / -1; }
.fixed-food { display: inline-flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 15px; border-radius: 14px; background: #faf7f2; }
.fixed-food strong, .fixed-food small { display: block; }
.fixed-food strong { font-size: 14px; }.fixed-food small { margin-top: 4px; color: #899089; font-size: 10px; line-height: 1.35; }
.fixed-control { display: flex; align-items: center; gap: 6px; color: #747b75; font-size: 12px; }
.fixed-control input { width: 65px; min-height: 42px; padding: 0 7px; text-align: center; }
.fixed-control em { font-style: normal; white-space: nowrap; }
.fixed-food.locked { border: 1px solid #a9c1b5; background: #edf5f0; }
.unlock-food { padding: 5px 8px; border: 1px solid #86aa97; border-radius: 8px; color: #285541; background: #fff; font-size: 9px; font-weight: 700; }
.cross-over { padding: 10px; border: 2px solid #d86b5f; border-radius: 16px; background: #fff1ef; }
.cross-over-warning { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px; color: #953d34; background: #ffdeda; font-size: 10px; }
.cross-over-warning button { padding: 7px 10px; border: 0; border-radius: 8px; color: #fff; background: #b74b40; font-weight: 750; white-space: nowrap; }
.fixed-food.locked .fixed-control input { color: #285541; border-color: #9eb7aa; background: #fff; font-weight: 750; opacity: 1; }
.fixed-lock-label { display: block; margin-top: 5px; color: #3f7058; font-size: 9px; font-weight: 700; }
.daily-fixed-items { display: grid; gap: 9px; margin-top: 18px; }
.daily-fixed-item { display: flex; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid #e9e2d8; border-radius: 13px; background: #faf7f2; }
.daily-fixed-item strong, .daily-fixed-item small { display: block; }
.daily-fixed-item small { margin-top: 4px; color: #7f8881; font-size: 10px; line-height: 1.5; }
.daily-fixed-item span:last-child { color: #587164; font-size: 11px; white-space: nowrap; }
.client-expiry { display: inline-flex; width: fit-content; margin: 8px 0 0; padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #e6f1eb; background: rgba(255,255,255,.08); font-size: 12px; }
.meal-choice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.meal-choice-row .field { margin: 0; }
.meal-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.meal-field legend { margin-bottom: 7px; color: #6e7770; font-size: 11px; }
.meal-option > input { position: absolute; opacity: 0; pointer-events: none; }
.meal-option > span { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 15px; border: 1px solid #d9d1c5; border-radius: 999px; color: #637068; background: #faf7f2; font-size: 12px; font-weight: 750; }
.meal-option > input:checked + span { color: #fff; border-color: #39705a; background: #39705a; box-shadow: 0 0 0 3px rgba(62,112,88,.08); }
.training-day-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 13px; padding: 12px; border: 1px solid #c8d9e8; border-radius: 14px; background: #f2f7fb; }
.training-day-toggle { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.training-day-toggle input { width: 21px; height: 21px; accent-color: #3f7096; }
.training-day-toggle span, .training-day-toggle strong, .training-day-toggle small { display: block; }
.training-day-toggle strong { color: #34566f; font-size: 13px; }
.training-day-toggle small { margin-top: 2px; color: #758998; font-size: 9px; line-height: 1.45; }
.training-foods-summary { display: grid; gap: 8px; }
.training-food-summary-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 10px 12px; border-radius: 11px; color: #fff; background: #3f7096; }
.training-food-summary-item div { min-width: 0; }
.training-food-summary-item span, .training-food-summary-item strong, .training-food-summary-item small { display: block; }
.training-food-summary-item span { color: #dbeaf4; font-size: 9px; font-weight: 800; }
.training-food-summary-item strong { margin-top: 2px; font-size: 13px; }
.training-food-summary-item small { margin-top: 2px; font-size: 9px; opacity: .8; }
.training-food-summary-item b { align-self: center; font-size: 13px; }
.training-food-summary-item em { grid-column: 1 / -1; color: #dbeaf4; font-size: 9px; font-style: normal; }
.custom-food-toggle { display: flex; gap: 6px; align-items: center; min-height: 42px; padding: 0 11px; border: 1px solid #d9d1c5; border-radius: 12px; color: #315a49; background: #f8fbf9; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.custom-food-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-food-toggle:has(input:checked) { color: #fff; border-color: #39705a; background: #39705a; }
.standalone-custom-toggle { width: fit-content; margin-top: 12px; }
.custom-food-panel { display: grid; gap: 13px; margin-top: 16px; padding: 16px; border: 1px solid #d9e4dd; border-radius: 16px; background: #f6faf7; }
.custom-food-warning { margin: 0; padding: 11px 13px; border-radius: 11px; color: #805f32; background: #fff5dc; font-size: 12px; line-height: 1.7; }
.natural-food-search-panel { display: grid; gap: 9px; padding: 13px; border: 1px solid #d9e4dd; border-radius: 13px; background: #fff; }
.natural-food-search-input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #dcd5cb; border-radius: 10px; background: #fbf9f5; }
.natural-food-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 330px; overflow: auto; }
.natural-food-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid #dfe7e2; border-radius: 11px; background: #f8fbf9; }
.natural-food-result div { display: grid; gap: 2px; min-width: 0; }
.natural-food-result strong { font-size: 12px; }
.natural-food-result small, .natural-food-result em { overflow-wrap: anywhere; color: #7a857f; font-size: 9px; font-style: normal; line-height: 1.4; }
.natural-food-result button { min-height: 34px; padding: 0 10px; border: 1px solid #9fb9ad; border-radius: 9px; color: #285b46; background: #edf5f0; font-weight: 700; }
.custom-history-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.custom-history-head div { display: grid; gap: 3px; }
.custom-history-head small { color: #7a857f; font-size: 11px; }
.custom-history-head > span { color: #60776c; font-size: 11px; }
.custom-food-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.custom-history-item { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid #dfe7e2; border-radius: 11px; background: #fff; }
.custom-history-item input { width: 18px; height: 18px; accent-color: #285b46; }
.custom-history-item span { display: grid; gap: 2px; min-width: 0; }
.custom-history-item strong { overflow-wrap: anywhere; font-size: 12px; }
.custom-history-item small { color: #7a857f; font-size: 9px; }
.custom-history-item button { border: 0; color: #a35448; background: transparent; font-size: 10px; }
.custom-food-editors { display: grid; gap: 10px; }
.custom-food-editor { display: grid; gap: 10px; padding: 13px; border: 1px solid #ded7cd; border-radius: 13px; background: #fff; }
.custom-food-editor-head { display: flex; justify-content: space-between; align-items: center; }
.custom-food-editor-head strong { color: #315a49; font-size: 13px; }
.custom-food-editor-head button { border: 0; color: #a35448; background: transparent; }
.custom-food-editor-grid { display: grid; grid-template-columns: 1.35fr .9fr .8fr; gap: 9px; }
.custom-food-editor-grid label { display: grid; gap: 5px; color: #68766f; font-size: 10px; }
.custom-food-editor-grid input, .custom-food-editor-grid select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #dcd5cb; border-radius: 9px; background: #fbf9f5; }
.custom-food-editor .custom-macros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.custom-food-editor-actions { display: flex; justify-content: flex-end; }
.custom-food-editor-actions button, .add-custom-food { min-height: 42px; padding: 9px 14px; border: 1px solid #9fb9ad; border-radius: 10px; color: #285b46; background: #edf5f0; font-weight: 700; }
.custom-food-editor-actions button { color: #fff; background: #285b46; }
.custom-food-editor-actions button:disabled, .add-custom-food:disabled { opacity: .5; }
.fixed-food.custom-member-food { border-color: #b7cfc3; background: #f1f8f4; }
.member-custom-label { display: inline-flex; width: fit-content; margin-top: 4px; padding: 2px 6px; border-radius: 999px; color: #35634f; background: #dcece3; font-size: 8px; font-style: normal; }
@media (max-width: 720px) {
  .meal-choice-row { grid-template-columns: 1fr; gap: 10px; }
  .training-day-panel { grid-template-columns: minmax(0, 1fr); }
  .training-food-summary-item { grid-template-columns: minmax(0, 1fr); }
  .training-food-summary-item em { grid-column: auto; }
  .custom-food-toggle { min-height: 48px; }
  .custom-food-panel { padding: 12px; }
  .custom-food-history { grid-template-columns: 1fr; }
  .natural-food-results { grid-template-columns: 1fr; }
  .custom-food-editor-grid { grid-template-columns: 1fr; }
  .custom-food-editor .custom-macros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .custom-food-editor .custom-macros { grid-template-columns: 1fr; }
  .share-dialog-actions { grid-template-columns: 1fr; }
}

.actions { display: grid; grid-template-columns: 160px 160px 1fr; gap: 14px; margin-top: 22px; }
.button { min-height: 54px; border: 0; border-radius: 15px; font-weight: 700; }
.button.primary { color: #fff; background: var(--green); box-shadow: 0 12px 24px rgba(40,85,65,.18); }
.button.secondary { border: 1px solid #d9d2c8; color: #5c655e; background: var(--paper); }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }
.error { margin: 20px 0 0; padding: 14px 18px; border: 1px solid #ebc6bf; border-radius: 13px; color: var(--danger); background: #fff0ed; font-size: 14px; }

.result { scroll-margin-top: 18px; margin-top: 22px; padding: 32px; border-radius: 25px; color: #fff; background: #244d3d; box-shadow: 0 20px 45px rgba(36,77,61,.2); }
.coach-plan-banner { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-bottom: 20px; padding: 13px 15px; border: 1px solid rgba(255,241,212,.3); border-radius: 14px; color: #fff1d4; background: rgba(255,241,212,.08); }
.coach-plan-banner strong { padding: 5px 8px; border-radius: 999px; color: #244d3d; background: #fff1d4; font-size: 10px; white-space: nowrap; }
.coach-plan-banner span { font-size: 11px; line-height: 1.55; }
.result-guidance { margin-bottom: 18px; padding: 15px 16px; border: 1px solid rgba(192,220,205,.26); border-radius: 15px; background: rgba(255,255,255,.065); }
.guidance-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.guidance-head button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff1d4; background: rgba(255,255,255,.08); font-size: 9px; }
.result-guidance span { color: #b8d1c4; font-size: 9px; letter-spacing: .12em; }
.result-guidance h3 { margin: 4px 0 0; color: #fff; font-size: 16px; }
.result-guidance ul { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 18px; color: #e5efe9; font-size: 11px; line-height: 1.6; }
.result-kicker { color: #b8d1c4; }
.result-heading button { border: 1px solid rgba(255,255,255,.22); border-radius: 11px; padding: 10px 13px; color: #fff; background: rgba(255,255,255,.08); }
.result-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.result-heading .share-card-button { color: #244d3d; border-color: #fff1d4; background: #fff1d4; font-weight: 750; }
.share-dialog { width: min(560px, calc(100% - 22px)); max-height: 92vh; padding: 0; border: 0; border-radius: 20px; background: #fffdfa; box-shadow: 0 24px 80px rgba(20,35,28,.35); }
.share-dialog::backdrop { background: rgba(20,35,28,.56); }
.share-dialog-panel { display: grid; gap: 13px; padding: 18px; }
.share-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.share-dialog-head span { color: #8f7657; font-size: 10px; font-weight: 700; }
.share-dialog-head h2 { margin: 4px 0 0; font-size: 20px; }
.share-dialog-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eee8df; font-size: 20px; }
.share-dialog-panel > p { margin: 0; color: #758079; font-size: 11px; line-height: 1.6; }
.share-dialog img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 14px; background: #244d3d; }
.share-dialog-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.share-dialog-actions a, .share-dialog-actions button { display: grid; place-items: center; min-height: 46px; border: 1px solid #cfc7bc; border-radius: 11px; color: #285541; background: #fff; text-decoration: none; font-weight: 700; }
.share-dialog-actions button { color: #fff; border-color: #285541; background: #285541; }
.result-foods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.result-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed rgba(255,255,255,.2); border-radius: 13px; color: rgba(255,255,255,.58); text-align: center; font-size: 12px; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.055); }
.result-row strong, .result-row small { display: block; overflow-wrap: anywhere; }.result-row strong { font-size: 14px; }.result-row small { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 10px; }
.result-row b { color: #fff1d4; font-size: 23px; white-space: nowrap; }.result-row b em { font-size: 11px; font-style: normal; font-weight: 500; }
.result-row.natural-custom-result { border-color: rgba(244,193,87,.7); background: rgba(244,193,87,.18); box-shadow: inset 0 3px 0 rgba(244,193,87,.72); }
.result-row.natural-custom-result small { color: #ffe2a0; }
.result-row.manual-custom-result { border-color: rgba(224,104,90,.78); background: rgba(180,63,54,.22); box-shadow: inset 0 3px 0 rgba(224,104,90,.8); }
.result-row.manual-custom-result small { color: #ffc0b7; }
.result-row.auto-fat-result { grid-column: span 2; margin: 0; padding: 14px; background: rgba(255,241,212,.08); }
.summary-category { min-width: 0; padding: 12px; border: 1px solid #d8dfcd; border-radius: 14px; color: #283124; background: #fff; }
.summary-category h3 { margin: 0 0 9px; font-size: 13px; }
.summary-food-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.summary-food-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #d8dfcd; border-radius: 999px; color: #283124; background: #f8fbf2; font-size: 11px; }
.summary-food-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-food-chip b { white-space: nowrap; font-size: 11px; }.summary-food-chip em { font-style: normal; font-weight: 500; }
.summary-food-chip small { display: none; }.summary-food-chip.natural-custom-result { border-color: #d7ad55; background: #fff8dc; }.summary-food-chip.manual-custom-result { border-color: #d9867a; background: #fff0ed; }
.summary-empty { margin: 0; color: #73806f; font-size: 11px; }
.result-supplement-section { margin-top: 8px; padding: 8px; border: 1px solid rgba(255,225,166,.24); border-radius: 10px; background: rgba(255,241,212,.07); }
.result-subheading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.result-subheading span { color: #dfc797; font-size: 9px; letter-spacing: .14em; }
.result-subheading h3 { margin: 1px 0 0; color: #fff5df; font-size: 12px; }
.result-subheading > small { color: rgba(255,245,223,.56); font-size: 10px; }
.result-supplements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 5px; }
.meal-supplement-track { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px; align-items: center; margin-top: 4px; padding: 4px 5px 4px 9px; border: 1px solid rgba(229, 197, 137, .28); border-radius: 8px; background: rgba(255, 244, 220, .045); }
.meal-supplement-track::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 3px; width: 2px; border-radius: 99px; background: #c49a53; }
.meal-supplement-track-head { display: grid; gap: 2px; color: #fff0ca; }
.meal-supplement-track-head span { width: max-content; padding: 1px 4px; border: 0; border-radius: 99px; color: #e8c887; font-size: 8px; font-weight: 800; }
.meal-supplement-track-head strong { display: none; }
.meal-supplement-track .result-supplements { grid-template-columns: 1fr; margin-top: 0; }
.meal-supplement-result { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; cursor: pointer; }
.meal-supplement-result input { width: 15px; height: 15px; accent-color: #c49a53; }
.meal-supplement-result em { display: none; }
.version-supplements { margin-top: 9px; border-width: 1px; background: rgba(255, 238, 201, .09); box-shadow: none; }
.legacy-meal-supplement-section { display: none !important; }
.supplement-result { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px; color: #244d3d; background: #fff2d7; }
.supplement-result strong, .supplement-result small { display: block; overflow-wrap: anywhere; }
.supplement-result strong { font-size: 11px; }
.supplement-result small { max-width: 100%; margin-top: 1px; overflow: hidden; color: #907957; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.supplement-result b { color: #6d4e22; font-size: 12px; white-space: nowrap; }
.supplement-result button { padding: 3px 5px; border: 1px solid #b99a67; border-radius: 6px; color: #6d4e22; background: rgba(255,255,255,.5); font-size: 8px; font-weight: 700; }
.version-supplement-result.supplement-taken { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 11px; filter: grayscale(1); opacity: .48; background: #d7d7d2; }
.version-supplement-result.supplement-taken small, .version-supplement-result.supplement-taken b { display: none; }
.version-supplement-result.supplement-taken button { padding: 4px 7px; color: #59605c; border-color: #8b918d; background: transparent; font-size: 9px; }
.fixed-result { opacity: .9; }
.actual-panel { margin-top: 14px; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.09); }
.actual-panel h3 { margin: 0; color: #dbe9e1; font-size: 14px; }
.actual-panel > p { margin: 8px 0 0; color: rgba(255,255,255,.52); font-size: 9px; }
.actual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.actual-grid div { display: grid; gap: 1px; }.actual-grid span { color: rgba(255,255,255,.62); font-size: 10px; }.actual-grid strong { font-size: 17px; }.actual-grid small { font-size: 9px; }.actual-grid .good { color: #b9d7c8; }.actual-grid .notice { color: #f2ca8e; }
.calculator-checkin { display: grid; gap: 13px; margin-top: 18px; padding: 18px; border: 1px solid rgba(255,241,212,.24); border-radius: 18px; background: rgba(255,255,255,.075); }
.calculator-checkin-compact-row { display: grid; grid-template-columns: 1.1fr 1.45fr 1fr; gap: 8px; align-items: stretch; }
.calculator-checkin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.calculator-checkin-head span { color: #dfc797; font-size: 9px; letter-spacing: .14em; }
.calculator-checkin-head h3 { margin: 4px 0 0; color: #fff; font-size: 18px; }
.checkin-cat-progress { display: flex; align-items: center; gap: 8px; min-width: 112px; padding: 5px 10px 5px 5px; border-radius: 13px; background: rgba(255,255,255,.09); }
.checkin-cat-progress img { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; }
.checkin-cat-progress small { color: #fff1d4; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
.checkin-success-confirm { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(255,255,255,.06); font-weight: 700; cursor: pointer; }
.checkin-success-confirm input { width: 21px; height: 21px; accent-color: #f3a440; }
.checkin-photo-picker { display: grid; gap: 6px; padding: 13px 14px; border: 1px dashed rgba(255,255,255,.22); border-radius: 13px; color: #fff; cursor: pointer; }
.checkin-photo-choice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.checkin-photo-choice-button { display: grid; place-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 11px; color: #fff; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 700; cursor: pointer; }
.checkin-photo-choice-button.secondary { color: #244d3d; border-color: #fff1d4; background: #fff1d4; }
.checkin-photo-choice-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.calculator-checkin-compact-row .calculator-checkin-head { min-width: 0; }
.calculator-checkin-compact-row .calculator-checkin-head > div:first-child { display: none; }
.calculator-checkin-compact-row .checkin-cat-progress { height: 100%; min-width: 0; }
.calculator-checkin-compact-row .checkin-success-confirm { min-width: 0; padding: 0 10px; font-size: 11px; }
.calculator-checkin-compact-row .checkin-photo-picker { display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; font-size: 11px; }
.calculator-checkin-compact-row .checkin-photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkin-photo-picker > input { width: 100%; color: #dbe9e1; font-size: 11px; }
.checkin-photo-picker small { color: rgba(255,255,255,.55); font-size: 9px; line-height: 1.5; }
.calculator-photo-preview { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 11px; width: 100%; min-height: 96px; padding: 8px; overflow: hidden; border-radius: 13px; background: rgba(0,0,0,.14); }
.calculator-photo-preview img { display: block; width: 132px; height: 96px; object-fit: cover; border-radius: 9px; }
.calculator-photo-preview > span { padding-right: 78px; color: #dceae2; font-size: 10px; line-height: 1.5; }
.calculator-photo-preview button { position: absolute; top: 9px; right: 9px; min-height: 34px; padding: 0 11px; border: 0; border-radius: 999px; color: #fff; background: rgba(25,42,34,.78); }
.checkin-submit-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; }
.submit-calculator-checkin { min-height: 50px; border: 0; border-radius: 13px; color: #244d3d; background: #fff1d4; font-weight: 800; }
.submit-and-share-checkin { color: #fff; background: #4b8068; }
.submit-calculator-checkin:disabled { cursor: not-allowed; opacity: .5; }
.view-checkin-calendar { display: grid; place-items: center; min-height: 48px; border: 1px solid rgba(255,241,212,.44); border-radius: 13px; color: #fff1d4; background: rgba(255,255,255,.08); text-decoration: none; font-weight: 800; }
.calculator-checkin-status { margin: 0; color: rgba(255,255,255,.64); font-size: 10px; line-height: 1.55; }
.version-option.locked-today { opacity: .48; }
.version-option.locked-today span::after { content: "今日已锁定其他版本"; display: block; margin-top: 3px; color: #8a765d; font-size: 9px; font-weight: 500; }
.build-version { display: block; margin-top: 10px; color: #8b958e; font-size: 10px; }
.standard-note { margin-top: 20px; padding: 22px 28px; border-radius: 18px; color: #707871; background: transparent; font-size: 12px; line-height: 1.7; }
.standard-note strong { color: #4d5850; }.standard-note p { margin: 5px 0 0; }

[hidden] { display: none !important; }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 22px, 940px); padding-top: 12px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; border-radius: 22px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); line-height: 1.16; letter-spacing: -.035em; }
  .hero-copy > p:last-child { margin-top: 14px; font-size: 14px; line-height: 1.7; }
  .hero-badge { grid-template-columns: repeat(3, 40px); }
  .hero-badge span { border-radius: 13px; font-size: 13px; }
  .card, .result { padding: 23px 19px; border-radius: 20px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 21px; line-height: 1.25; }
  .status-pill, .unit-label { padding: 6px 9px; font-size: 10px; white-space: nowrap; }
  .version-option > span { min-height: 40px; }
  .macro-grid { grid-template-columns: 1fr; }
  .macro-grid { gap: 9px; }
  .macro-input { grid-template-columns: 1fr 1fr; align-items: center; padding: 14px 16px; }
  .macro-input > span:last-child { justify-content: flex-end; }
  .macro-input input { max-width: 110px; text-align: right; font-size: 24px; }
  .fixed-selected-foods { grid-template-columns: 1fr; }
  .source-options { grid-template-columns: 1fr; }
  .macro-composer { padding: 17px 14px; }
  .macro-composer-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .target-current { width: 100%; justify-content: space-between; }
  .fat-composer .target-current { white-space: normal; }
  .auto-fat-panel { padding: 15px; }
  .picker-options { grid-template-columns: 1fr 1fr; }
  .selected-food-row { grid-template-columns: 1fr 94px; }
  .match-target { justify-content: center; }
  .remove-food { text-align: right; }
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .primary { grid-column: 1 / -1; }
  .result-heading { align-items: center; }
  .result-heading h2 { font-size: 21px; }
  .result-heading button { font-size: 11px; }
  .result-heading { align-items: flex-start; flex-direction: column; }
  .result-heading-actions { width: 100%; justify-content: stretch; }
  .result-heading-actions button { flex: 1; }
  .result-foods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .result-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .result-row b { font-size: 22px; }
  .result-row.auto-fat-result { grid-column: 1 / -1; }
  .result-supplement-section { margin-top: 5px; padding: 5px; border-radius: 8px; }
  .result-subheading h3 { font-size: 10px; }
  .result-subheading > small { display: none; }
  .result-supplements { grid-template-columns: 1fr; }
  .meal-supplement-track { grid-template-columns: 30px minmax(0, 1fr); gap: 2px; margin-top: 2px; padding: 2px 3px 2px 7px; }
  .meal-supplement-track::before { top: 3px; bottom: 3px; left: 2px; width: 1px; }
  .meal-supplement-track-head span { padding: 0 2px; font-size: 7px; }
  .supplement-result { gap: 3px; min-height: 27px; padding: 3px 5px; }
  .supplement-result strong { font-size: 10px; }
  .supplement-result small { font-size: 7px; }
  .supplement-result b { font-size: 10px; }
  .meal-supplement-result input { width: 13px; height: 13px; }
  .version-supplements { margin-top: 5px; padding: 5px; }
  .calculator-checkin { padding: 14px; }
  .calculator-checkin-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .calculator-checkin-compact-row .checkin-cat-progress { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 3px; padding: 4px; }
  .calculator-checkin-compact-row .checkin-cat-progress img { width: 40px; height: 40px; }
  .calculator-checkin-compact-row .checkin-cat-progress small { min-width: 0; white-space: normal; font-size: 8px; line-height: 1.25; }
  .calculator-checkin-compact-row .checkin-success-confirm { gap: 5px; padding: 5px 6px; font-size: 10px; line-height: 1.25; }
  .calculator-checkin-compact-row .checkin-success-confirm input { flex: 0 0 18px; width: 18px; height: 18px; }
  .calculator-checkin-compact-row .checkin-photo-picker { grid-column: 1 / -1; display: grid; gap: 7px; padding: 8px; font-size: 12px; line-height: 1.35; }
  .checkin-photo-choice-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .checkin-photo-choice-button { min-height: 44px; }
}

@media (max-width: 390px) {
  .page-shell { width: min(100% - 14px, 940px); }
  .hero { padding: 25px 18px; }
  .hero h1 { font-size: 29px; }
  .hero-badge { display: none; }
  .card, .result { padding: 20px 14px; }
  .target-current { gap: 6px; padding: 9px 10px; font-size: 10px; }
  .target-current input { width: 57px; font-size: 17px; }
  .target-current strong { font-size: 17px; }
  .picker-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
