:root {
  --butter: #f6cc5c; --butter-deep: #e5ad2d; --cream: #fff9e9; --paper: #fffdf7;
  --cocoa: #493936; --muted: #8a7971; --blush: #f5d9d5; --mint: #cfe2d7;
  --line: rgba(73,57,54,.13); --shadow: 0 18px 55px rgba(83,57,30,.12);
  --radius: 24px; --font: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cocoa); background: var(--cream); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 46px; height: 46px; border-radius: 24%; object-fit: cover; }
.landing-nav-actions { display: flex; align-items: center; gap: 12px; }.language-link,.app-language a { color: #9c6b17; font-size: 11px; font-weight: 800; letter-spacing: .04em; }.app-language { padding: 0 10px 18px; margin-top: -24px; }.guest-signin { margin-top: auto; }
.btn { border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 750; background: transparent; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--butter); box-shadow: 0 8px 20px rgba(229,173,45,.24); }
.btn-primary:hover { background: #f8d46f; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.6); }
.btn-text { padding-inline: 8px; }
.btn-text span { margin-left: 6px; }
.btn-large { padding: 15px 25px; }
.btn-block { width: 100%; }
.btn-soft { background: #fff4ce; border: 1px solid #efd789; }
.btn-danger-text { color: #ad514b; }
.eyebrow { display: inline-block; color: #aa7417; font-weight: 850; font-size: 11px; letter-spacing: .16em; }
.landing { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 75% 15%, rgba(246,204,92,.26), transparent 28%), var(--cream); }
.landing-nav { max-width: 1180px; height: 90px; margin: auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; }
.hero { max-width: 1180px; min-height: 660px; margin: auto; padding: 50px 28px 90px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 60px; }
.hero h1 { margin: 20px 0 24px; font-size: clamp(48px, 5vw, 75px); line-height: 1.08; letter-spacing: -.055em; font-weight: 850; }
.hero h1 em { color: #d39b27; font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; height: 8px; border-radius: 9px; background: var(--blush); left: 0; right: 0; bottom: 0; z-index: -1; transform: rotate(-1deg); }
.hero-copy > p { max-width: 530px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.hero-art { height: 560px; position: relative; }
.sun { position: absolute; width: 390px; height: 390px; border-radius: 50%; background: var(--butter); top: 65px; left: 65px; }
.preview-card { position: absolute; background: var(--paper); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); border-radius: 28px; }
.preview-main { width: 335px; padding: 18px; left: 90px; top: 28px; transform: rotate(2.2deg); }
.preview-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 750; }
.cat-portrait { height: 295px; border-radius: 20px; margin-top: 14px; background: linear-gradient(145deg,#fff4ce,#f7df9e); display: grid; place-items: center; overflow: hidden; }
.cat-portrait img { width: 75%; height: 75%; }
.cat-portrait .hero-belly-cat { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.preview-main h3 { margin: 16px 0 6px; font-size: 18px; }
.preview-main p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.preview-icons { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.preview-back { width: 190px; padding: 18px; right: -6px; bottom: 65px; transform: rotate(-5deg); display: grid; gap: 8px; }
.preview-back span { color: var(--muted); font-size: 12px; }.preview-back strong { background: #f7f0df; padding: 10px; border-radius: 12px; font-size: 13px; }
.spark { position: absolute; color: #dca929; font-size: 28px; }.s1 { right: 20px; top: 55px; }.s2 { left: 35px; bottom: 75px; }
.paw { position: absolute; opacity: .25; transform: rotate(20deg); }.paw-1 { right: 15px; top: 180px; font-size: 34px; }.paw-2 { left: 5px; bottom: 130px; font-size: 25px; }
.landing-showcase {max-width:1180px;margin:0 auto;padding:40px 28px 24px}
.landing-showcase > header {max-width:720px;margin-bottom:25px}
.landing-showcase h2 {font-size:clamp(28px,4vw,39px);line-height:1.2;margin:10px 0 12px}
.landing-showcase header p {color:#796963;font-size:14px;line-height:1.7}
.showcase-grid {display:grid;grid-template-columns:1fr 1fr;gap:24px}
.showcase-card {min-width:0;border:1px solid #e6ded3;border-radius:24px;background:#fffdf7;padding:22px}
.showcase-card h3 {font-size:22px;line-height:1.4;margin:0 0 10px}
.showcase-card > p {color:#796963;line-height:1.7;font-size:15px;margin:0 0 20px;min-height:52px}
.showcase-image {display:block;overflow:hidden;border:1px solid #e6ded3;border-radius:14px;background:#fff9e8;color:#69512a;text-decoration:none}
.showcase-image img {display:block;width:100%;height:auto}
.showcase-image span {display:block;padding:10px 14px;font-size:13px;text-align:right;font-weight:700}
.showcase-image:focus-visible {outline:3px solid #795b97;outline-offset:4px}
@media(max-width:700px){.landing-showcase {padding:32px 20px 16px}.showcase-grid {grid-template-columns:1fr;gap:18px}.showcase-card {padding:18px}.showcase-card > p {min-height:0}}
.feature-strip { max-width: 1180px; margin: 0 auto 80px; padding: 40px 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); gap: 38px; }
.feature-strip article > span { font-size: 12px; color: #b78e35; font-weight: 800; }.feature-strip h2 { font-size: 18px; margin: 11px 0; }.feature-strip p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.landing-footer { padding: 35px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(54,40,36,.52); backdrop-filter: blur(8px); animation: fade .18s ease; }
.modal { width: min(100%, 480px); max-height: calc(100vh - 36px); overflow: auto; padding: 38px; border-radius: 30px; background: var(--paper); box-shadow: 0 28px 90px rgba(44,30,25,.28); position: relative; animation: rise .24s ease; }
.modal-close { position: absolute; right: 18px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4ecdc; font-size: 25px; line-height: 1; }
.auth-modal { text-align: center; }.auth-mark { width: 80px; height: 80px; }.modal h2 { margin: 10px 0 6px; font-size: 28px; letter-spacing: -.025em; }.modal > p { color: var(--muted); margin: 0 0 24px; }.auth-language { display: grid; gap: 7px; margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: left; }.auth-language select { padding: 10px 12px; }
form { display: grid; gap: 16px; text-align: left; } form label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; } input, textarea, select { width: 100%; border: 1px solid var(--line); background: #fffdf9; border-radius: 14px; padding: 13px 14px; outline: none; transition: .18s; } input:focus, textarea:focus, select:focus { border-color: #d7aa3b; box-shadow: 0 0 0 3px rgba(246,204,92,.22); } textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.auth-switch { margin-top: 19px; border: 0; color: #a06f17; background: transparent; font-size: 13px; }.toast { position: fixed; z-index: 200; left: 50%; bottom: 30px; transform: translate(-50%,30px); padding: 12px 18px; color: white; background: var(--cocoa); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; font-weight: 700; font-size: 14px; }.toast.show { opacity: 1; transform: translate(-50%,0); }.toast.error { background: #a64943; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0,1fr); }.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px 22px; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; }.app-brand { padding: 0 8px 34px; }.app-brand span { display: grid; }.app-brand small { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }.sidebar nav { display: grid; gap: 6px; }.nav-item { height: 50px; border: 0; border-radius: 15px; padding: 0 14px; display: flex; align-items: center; gap: 13px; background: transparent; color: #7e6e68; font-weight: 720; }.nav-item:hover { background: #fff6da; }.nav-item.active { color: var(--cocoa); background: #ffefbd; }.nav-item svg { width: 21px; }.publish-button { margin-top: 24px; display: flex; justify-content: center; align-items: center; gap: 7px; }.publish-button svg { width: 18px; }.sidebar-user { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; min-width: 0; }.sidebar-user span { display: grid; min-width: 0; }.sidebar-user strong,.sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sidebar-user strong { font-size: 13px; }.sidebar-user small { color: var(--muted); font-size: 11px; }
.main-panel { min-width: 0; }.page { max-width: 1110px; padding: 48px 42px 90px; margin: auto; }.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }.page-header h1 { margin: 6px 0 0; font-size: 32px; letter-spacing: -.035em; }.page-header p { color: var(--muted); margin: 8px 0 0; font-size: 13px; }.icon-button { border: 1px solid var(--line); width: 43px; height: 43px; border-radius: 50%; background: var(--paper); font-size: 23px; }.feed-layout { display: grid; grid-template-columns: minmax(0,650px) 270px; align-items: start; gap: 28px; }.feed-list { display: grid; gap: 24px; }.post-card { background: var(--paper); border: 1px solid rgba(73,57,54,.09); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(83,57,30,.055); }.post-author { display: flex; align-items: center; gap: 11px; padding: 16px 18px; }.post-author > span { display: grid; }.post-author strong { font-size: 14px; }.post-author small { margin-top: 2px; color: var(--muted); font-size: 11px; }.ai-badge { margin-left: 7px; padding: 3px 6px; color: #7760a0; background: #eee9f8; border-radius: 6px; font-size: 8px; font-style: normal; vertical-align: 2px; }.avatar { flex: none; border-radius: 50%; object-fit: cover; background: #f5e4b5; border: 2px solid white; box-shadow: 0 0 0 1px var(--line); }.avatar.sm { width: 38px; height: 38px; }.avatar.md { width: 44px; height: 44px; }.avatar.xl { width: 105px; height: 105px; }.avatar-fallback { display: grid; place-items: center; }.post-images { position: relative; display: grid; background: #eee7d9; max-height: 650px; overflow: auto; scroll-snap-type: x mandatory; grid-auto-flow: column; grid-auto-columns: 100%; scrollbar-width: none; }.post-images::-webkit-scrollbar { display: none; }.post-images img { width: 100%; height: min(650px,70vh); object-fit: cover; scroll-snap-align: start; }.image-count { position: absolute; right: 13px; top: 13px; padding: 5px 9px; border-radius: 99px; color: white; background: rgba(30,24,22,.62); font-size: 11px; }.post-body { padding: 14px 18px 18px; }.post-actions { display: flex; gap: 16px; }.action-button { display: flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: transparent; }.action-button svg { width: 23px; }.action-button span { font-size: 12px; font-weight: 750; }.action-button.liked { color: #d2635d; }.action-button.liked svg { fill: currentColor; }.caption { margin: 12px 0 7px; font-size: 14px; line-height: 1.65; }.caption strong,.comments-preview strong { margin-right: 5px; }.comments-preview p { margin: 5px 0; font-size: 12px; color: #6f605b; }.comment-form { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }.comment-form input { border: 0; padding: 7px 0; background: transparent; }.comment-form input:focus { box-shadow: none; }.comment-form button { border: 0; background: transparent; color: #a67419; font-weight: 800; }.feed-aside { position: sticky; top: 28px; display: grid; gap: 16px; }.aside-card { padding: 22px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }.greeting-card { background: #ffeeb7; overflow: hidden; position: relative; min-height: 250px; }.mini-date { font-size: 11px; color: #8c6e2f; }.greeting-card h2 { max-width: 170px; font-size: 22px; margin: 17px 0 10px; }.greeting-card p { position: relative; z-index: 1; max-width: 190px; font-size: 12px; line-height: 1.7; color: #786648; }.sleeping-cat { position: absolute; font-size: 75px; right: 5px; bottom: 7px; transform: rotate(-6deg); color: #b47f2c; }.rules-card h3 { margin: 0 0 9px; font-size: 14px; }.rules-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.loading,.empty-state { min-height: 390px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 35px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }.loader-paw,.empty-state > span { font-size: 48px; animation: bob 1.2s ease-in-out infinite; }.loading p,.empty-state p { color: var(--muted); font-size: 13px; max-width: 340px; line-height: 1.7; }.empty-state h2 { margin: 13px 0 0; }.diary-layout { display: grid; grid-template-columns: minmax(440px,1.1fr) minmax(340px,.9fr); gap: 24px; align-items: start; }.calendar,.entry-card,.settings-card,.profile-summary { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; }.calendar-toolbar h2 { font-size: 18px; }.calendar-toolbar button { width: 36px; height: 36px; border: 0; background: #fff5d3; border-radius: 50%; }.week-row,.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }.week-row { margin: 16px 0 7px; }.week-row span { text-align: center; color: var(--muted); font-size: 10px; }.calendar-cell { aspect-ratio: 1; min-width: 0; border: 0; border-radius: 14px; background: transparent; display: grid; place-content: center; gap: 5px; font-size: 13px; }.calendar-cell:hover { background: #fff6dc; }.calendar-cell.selected { background: var(--butter); font-weight: 850; }.calendar-cell.today:not(.selected) span { color: #b27611; font-weight: 850; }.calendar-cell b { height: 4px; display: flex; justify-content: center; gap: 2px; }.calendar-cell i { width: 4px; height: 4px; border-radius: 50%; background: var(--dot); }.entry-card { position: sticky; top: 25px; }.entry-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; }.entry-heading span { color: #aa781d; font-size: 11px; font-weight: 750; }.entry-heading h2 { margin: 5px 0 0; font-size: 21px; }.entry-heading select { width: 130px; padding: 10px; }.note-label textarea { min-height: 120px; }.entry-card fieldset,.small-modal fieldset { border: 0; padding: 0; margin: 5px 0; }.entry-card legend,.small-modal legend { margin-bottom: 10px; font-size: 13px; font-weight: 750; }.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.care-chip input { position: absolute; opacity: 0; }.care-chip span { padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: #fffdfa; font-size: 11px; text-align: center; }.care-chip input:checked + span { background: #fff0bd; border-color: #e7c561; }.count-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }.count-row label { padding: 10px; border-radius: 11px; background: #f8f3e9; font-size: 11px; }.count-row input { padding: 5px; margin-top: 5px; background: white; }.diary-empty { max-width: 650px; margin: 70px auto; }
.fun-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }.fun-card { min-height: 260px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }.fun-card:nth-child(4n+1) { background: #fff0bd; }.fun-card:nth-child(4n+2) { background: #f5e7e4; }.fun-card:nth-child(4n+3) { background: #e0eee7; }.fun-card small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.fun-emoji { float: right; font-size: 40px; }.fun-card h2 { max-width: 440px; font-size: 21px; line-height: 1.35; margin: 18px 0 10px; }.fun-card p { color: #796a64; font-size: 13px; line-height: 1.75; }.fun-card details summary { color: #9d6a14; font-size: 12px; font-weight: 750; }.quiz-choices { display: grid; gap: 8px; }.quiz-choices button { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); text-align: left; font-size: 12px; }.quiz-choices button span { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; margin-right: 8px; background: #f4e8ca; font-weight: 800; }.quiz-choices button.correct { background: #d8eadb; border-color: #8fbe98; }.quiz-choices button.wrong { background: #f2d5d2; border-color: #d09a95; }
.profile-hero { margin: -48px -42px 28px; }.profile-cover { height: 190px; border-radius: 0 0 30px 30px; background: linear-gradient(135deg,#efd07b,#f7e4af 55%,#f0d6cc); position: relative; overflow: hidden; }.profile-cover span:first-child { position: absolute; font-size: 80px; opacity: .22; left: 18%; top: 20px; }.profile-cover span:last-child { position: absolute; font-size: 120px; opacity: .13; right: 15%; top: 30px; transform: rotate(15deg); }.profile-identity { display: flex; align-items: end; gap: 19px; padding: 0 35px; margin-top: -50px; position: relative; }.profile-identity h1 { margin: 0 0 3px; font-size: 28px; }.profile-identity p { margin: 0 0 10px; color: var(--muted); }.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }.settings-card h2,.profile-summary h2 { margin: 0 0 20px; font-size: 19px; }.handle-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }.handle-input span { padding-left: 13px; color: var(--muted); }.handle-input input { border: 0; padding-left: 4px; }.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 28px; }.stat-row span { padding: 14px 5px; border-radius: 14px; background: #fff5d5; text-align: center; font-size: 10px; color: var(--muted); }.stat-row strong { display: block; font-size: 22px; color: var(--cocoa); }.cat-list { display: grid; gap: 10px; margin-bottom: 18px; }.cat-row { display: flex; align-items: center; gap: 11px; padding: 11px; background: #faf5e9; border-radius: 14px; }.cat-row i { width: 34px; height: 34px; border-radius: 50%; }.cat-row span { display: grid; }.cat-row strong { font-size: 13px; }.cat-row small,.muted-copy { color: var(--muted); font-size: 11px; }.photo-picker { min-height: 160px; border: 1.5px dashed #d9bd73; border-radius: 18px; place-content: center; text-align: center; background: #fff9e9; }.photo-picker input { position: absolute; opacity: 0; pointer-events: none; }.photo-picker span { font-size: 35px; color: #b68724; }.photo-picker small { color: var(--muted); font-weight: 400; }.photo-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }.photo-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }.form-progress { margin: 0; min-height: 16px; color: #9b6b13; font-size: 11px; text-align: center; }.color-options { display: flex; gap: 10px; }.color-options input { position: absolute; opacity: 0; }.color-options span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 1px var(--line); }.color-options input:checked + span { box-shadow: 0 0 0 3px var(--cocoa); }.mobile-nav { display: none; }
.food-search { display: block; padding: 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }.food-search label > span { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 800; }.food-search label > div { display: flex; gap: 9px; }.food-search label input { min-width: 0; }.food-search label select { width: 150px; flex: none; }.food-search label button { flex: none; }.food-search > small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }.food-tools { display: grid; gap: 10px; margin: 16px 0; }.food-tool-disclosure { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }.food-tool-disclosure > summary { min-height: 78px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }.food-tool-disclosure > summary::-webkit-details-marker { display: none; }.food-tool-disclosure > summary::after { content: "+"; width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #fff1bf; color: #9d6a14; font-size: 20px; font-weight: 700; }.food-tool-disclosure[open] > summary::after { content: "−"; }.food-tool-disclosure > summary span { min-width: 0; display: grid; gap: 3px; }.food-tool-disclosure > summary small { color: #a87518; font-size: 9px; font-weight: 850; letter-spacing: .08em; }.food-tool-disclosure > summary strong { font-size: 15px; }.food-tool-disclosure > summary em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.45; }.food-tool-body { padding: 0 18px 18px; }.food-intro { display: grid; grid-template-columns: 85px 1fr 245px; align-items: center; gap: 22px; padding: 24px; margin-bottom: 10px; border-radius: var(--radius); background: linear-gradient(120deg,#ffe9a7,#fff5d5); border: 1px solid #ead188; }.food-intro h2 { margin: 0 0 7px; font-size: 20px; }.food-intro p { margin: 0; max-width: 540px; color: #796743; font-size: 12px; line-height: 1.65; }.food-intro label { font-size: 11px; font-weight: 800; }.food-intro select { margin-top: 6px; background: rgba(255,255,255,.7); }.food-lab-icon { width: 70px; height: 70px; display: grid; place-content: center; position: relative; border-radius: 22px; background: var(--paper); box-shadow: 0 8px 20px rgba(120,84,20,.12); font-size: 27px; font-weight: 900; }.food-lab-icon i { display: block; color: #af7920; font-size: 9px; font-style: normal; letter-spacing: .12em; }.food-guidance { padding: 16px 20px; margin-bottom: 0; border-left: 4px solid #d9aa35; border-radius: 6px 15px 15px 6px; background: var(--paper); }.food-guidance strong { font-size: 13px; }.food-guidance p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }.lookup-status { display: flex; justify-content: space-between; gap: 15px; padding: 12px 16px; margin-bottom: 16px; border-radius: 13px; background: #e3efe6; font-size: 11px; }.lookup-status.not_found { background: #f7ebdc; }.lookup-status span { color: var(--muted); }.lookup-status.needs_product { display: grid; background: #fff0c7; }.lookup-status.needs_product strong,.lookup-status.needs_product span { display: block; }.lookup-status.needs_product span { margin-top: 4px; }.food-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }.food-suggestions .btn { padding: 7px 10px; background: rgba(255,255,255,.72); font-size: 10px; }.food-comparison { padding: 24px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }.section-title span { color: #a87518; font-size: 10px; font-weight: 800; }.section-title h2 { margin: 3px 0 0; }.comparison-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }.food-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 12px; }.food-table th,.food-table td { min-width: 145px; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }.food-table th:first-child { min-width: 160px; color: var(--muted); background: #fbf6eb; }.food-table thead th { background: #fff0bc; color: var(--cocoa); }.food-table thead th:first-child { background: #f5ecda; }.food-table thead strong,.food-table thead small,.food-table td small { display: block; }.food-table thead small,.food-table td small { margin-top: 3px; color: #927a52; font-weight: 500; }.food-table tr:last-child th,.food-table tr:last-child td { border-bottom: 0; }.food-table th:last-child,.food-table td:last-child { border-right: 0; }.source-pill { display: inline-block; padding: 3px 6px; border-radius: 6px; background: #e7f0e8; font-size: 9px; }.source-card { margin-top: 22px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }.source-card h2 { margin-top: 0; font-size: 18px; }.source-card > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }.source-card article strong { font-size: 12px; }.source-card article p { color: var(--muted); font-size: 11px; line-height: 1.7; }.source-links { padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }.source-links a { color: #9a6814; text-decoration: underline; }.food-empty { margin-top: 40px; }.form-two,.nutrient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.food-modal fieldset { border: 0; padding: 0; margin: 0; }.food-modal legend { margin-bottom: 9px; font-size: 13px; font-weight: 800; }.nutrient-grid label { font-size: 10px; }.inline-check { display: flex; align-items: center; gap: 8px; }.inline-check input { width: auto; }.inline-check span { font-size: 11px; }
.food-table thead th { position: relative; }.food-table td small a { color: #8a6119; text-decoration: underline; }.food-remove { position: absolute; top: 7px; right: 7px; width: 23px; height: 23px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.72); color: #8c6e4e; font-size: 16px; line-height: 1; }
.food-suggestions { display: grid; grid-template-columns: repeat(auto-fill,minmax(225px,1fr)); gap: 9px; }.food-suggestion-card { min-width: 0; padding: 9px; display: flex; align-items: center; gap: 10px; position: relative; border: 1px solid rgba(166,125,38,.24); border-radius: 15px; background: rgba(255,255,255,.72); color: var(--ink); text-align: left; }.food-suggestion-card:hover { border-color: #d8a930; transform: translateY(-1px); }.food-suggestion-card.selected { background: #f6cc5c; box-shadow: inset 0 0 0 2px #c8921d; }.food-suggestion-card.selected::after { content: "✓"; width: 20px; height: 20px; display: grid; place-items: center; position: absolute; top: 7px; right: 7px; border-radius: 50%; background: #60451f; color: #fff; font-size: 12px; font-weight: 900; }.food-suggestion-card > span:last-child { min-width: 0; }.food-suggestion-card strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 10px; line-height: 1.35; }.food-suggestion-card small { display: block; margin-top: 4px; color: #8c7650; font-size: 9px; }.food-thumb { flex: none; width: 54px; height: 54px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid #eadfca; border-radius: 12px; background: linear-gradient(145deg,#fffdf7,#f1e7d2); color: #ae7b25; font-size: 20px; font-weight: 850; }.food-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }.comparison-thumb { width: 58px; height: 58px; margin: 0 0 8px; }.food-search-notice { margin: 0; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.58); color: #6f5a2f; font-size: 10px; }.food-selection-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid rgba(155,111,26,.2); }.food-selection-actions > span { flex: 1; color: var(--cocoa); }.food-selection-actions .btn { flex: none; }
.food-pagination { padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(155,111,26,.18); }.food-pagination > span,.food-result-count { margin: 0; color: #7e6946; font-size: 10px; }.food-pagination > div { display: flex; align-items: center; gap: 5px; }.food-pagination button { min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid rgba(166,125,38,.24); border-radius: 9px; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; }.food-pagination button.active { background: var(--butter); border-color: #d3a12a; }.food-pagination button:disabled { cursor: default; }.food-pagination i { padding: 0 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.metric-label { min-height: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }.metric-info { flex: none; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 1px solid #cfc8bf; border-radius: 50%; background: #f1efec; color: #8b8580; font: 800 11px/1 Georgia,serif; }.metric-info:hover { color: #655e58; background: #e7e4df; }.metric-modal { max-width: 500px; }.metric-modal p { color: #655b55; font-size: 14px; line-height: 1.75; }.metric-modal small { display: block; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.food-profile-card { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }.food-profile-card .section-title { margin-bottom: 15px; }.food-profile-card form { gap: 12px; }.food-profile-card form > .btn { justify-self: start; }.food-profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.food-profile-grid label { font-size: 10px; }.food-profile-grid select { padding: 10px 11px; }.food-profile-result { margin-top: 18px; padding: 17px; border-radius: 16px; background: #fff4ce; }.food-profile-result > strong,.food-profile-candidates > strong { font-size: 12px; }.food-profile-result ul { margin: 9px 0 0; padding-left: 18px; }.food-profile-result li { margin: 6px 0; color: #75664f; font-size: 11px; line-height: 1.6; }.food-profile-pending { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(142,107,41,.2); color: var(--muted); font-size: 10px; line-height: 1.65; }.food-profile-candidates { display: grid; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(142,107,41,.2); }.food-profile-candidates span { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.66); font-size: 10px; }.food-profile-candidates small { display: block; margin-top: 2px; color: var(--muted); }
.food-recommendation-list { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(142,107,41,.2); }.food-recommendation-list > strong { font-size: 12px; }.food-recommendation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 9px; padding: 13px; border: 1px solid rgba(170,123,30,.25); border-radius: 15px; background: rgba(255,255,255,.78); }.food-recommendation > div { min-width: 0; display: flex; align-items: center; gap: 12px; }.food-recommendation span { min-width: 0; }.food-recommendation small { display: block; color: #9a6b16; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.food-recommendation strong { display: block; margin-top: 3px; font-size: 11px; }.food-recommendation p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.food-recommendation .btn { flex: none; }.food-recommendation-note { margin: 10px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.55; }.recommendation-thumb { width: 70px; height: 70px; }
.food-recommendation .food-recommendation-reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 7px; }.food-recommendation-reasons b { margin-right: 2px; color: #6f5930; font-size: 9px; }.food-recommendation-reasons span { padding: 3px 6px; border-radius: 999px; background: #fff0bd; color: #76571d; font-size: 8px; line-height: 1.35; }
.medical-shortlist { padding: 13px; border: 1px solid #dfb55b; border-radius: 15px; background: #fff8e6; }.catalog-health { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }.catalog-health > summary { color: #986714; font-size: 11px; font-weight: 800; cursor: pointer; }.catalog-health > div { display: grid; gap: 12px; margin-top: 12px; }.catalog-health p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.catalog-health .btn { justify-self: start; }.catalog-health-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }.catalog-health-grid span { padding: 10px; display: grid; border-radius: 11px; background: #faf4e7; color: var(--muted); font-size: 9px; }.catalog-health-grid b { color: var(--cocoa); font-size: 17px; }
.food-page { display: flex; flex-direction: column; }.food-page > .page-header { order: 0; }.food-page > .food-tools { order: 1; margin-top: 0; }.food-page > .food-search { order: 2; }.food-page > #food-search-status { order: 3; }.food-page > .food-comparison { order: 4; }.food-page > .food-empty { order: 5; }.food-page > .source-card { order: 6; }.page-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.food-modal { width: min(100%,620px); }.food-label-scan { display: grid; gap: 10px; margin: 18px 0; }.food-label-picker { min-height: 132px; padding: 18px; display: grid; place-content: center; justify-items: center; gap: 5px; border: 1.5px dashed #d9bd73; border-radius: 18px; background: #fff9e9; text-align: center; cursor: pointer; }.food-label-picker input { position: absolute; opacity: 0; pointer-events: none; }.food-label-picker > span { font-size: 30px; }.food-label-picker strong { font-size: 13px; }.food-label-picker small { max-width: 320px; color: var(--muted); font-size: 10px; line-height: 1.45; }.food-label-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.food-label-preview:empty { display: none; }.food-label-preview img { width: 100%; aspect-ratio: 4/3; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #f6f0e5; }.food-label-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 9px; text-align: center; }.food-label-divider::before,.food-label-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(15px) scale(.98); opacity: 0; } } @keyframes bob { 50% { transform: translateY(-8px) rotate(7deg); } }
@media (max-width: 950px) { .hero { grid-template-columns: 1fr; padding-top: 40px; }.hero-copy { text-align: center; }.hero-copy > p { margin-inline: auto; }.hero-actions,.trust-row { justify-content: center; }.hero-art { width: min(100%,540px); margin: auto; }.feature-strip { grid-template-columns: 1fr; gap: 20px; }.feed-layout { grid-template-columns: 1fr; }.feed-aside { display: none; }.diary-layout { grid-template-columns: 1fr; }.entry-card { position: static; }.profile-columns { grid-template-columns: 1fr; }.food-intro { grid-template-columns: 75px 1fr; }.food-intro label { grid-column: 1/-1; }.source-card > div { grid-template-columns: 1fr; gap: 8px; }.food-profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { html,body { width: 100%; max-width: 100%; overflow-x: hidden; }.landing { width: 100vw; max-width: 100vw; overflow-x: hidden; }.landing-nav { width: 100vw; max-width: 100vw; height: 74px; padding-inline: 18px; }.landing-nav-actions { flex: none; gap: 7px; }.brand img { width: 40px; }.hero { display: block; min-height: auto; width: 100vw; max-width: 100vw; margin: 0; padding: 55px 20px 45px; }.hero-copy { min-width: 0; width: 100%; max-width: 100%; }.hero h1 { font-size: clamp(36px,11.5vw,45px); overflow-wrap: anywhere; }.hero h1 em { white-space: normal; }.hero-copy > p { font-size: 16px; }.hero-actions { flex-direction: column; }.hero-actions .btn { width: 100%; }.trust-row { gap: 10px 18px; }.trust-row span { white-space: nowrap; }.hero-art { width: 100%; margin-top: 10px; transform: scale(.75); transform-origin: top center; margin-bottom: -130px; }.feature-strip { width: 100vw; max-width: 100vw; padding-inline: 22px; }.app-shell { display: block; }.sidebar { display: none; }.page { padding: 29px 14px 100px; }.page-header { margin-bottom: 19px; align-items: flex-start; gap: 12px; }.page-header h1 { font-size: 27px; }.page-header-actions { display: grid; justify-items: stretch; }.page-header-actions .btn { padding: 9px 11px; font-size: 10px; }.post-card { border-radius: 20px; }.post-images img { height: auto; min-height: 360px; max-height: 72vh; }.mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(70px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); align-items: center; background: rgba(255,253,247,.92); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }.mobile-nav .nav-item { height: 55px; padding: 4px; display: grid; place-content: center; justify-items: center; gap: 2px; border-radius: 12px; font-size: 9px; }.mobile-nav .nav-item svg { width: 21px; height: 21px; }.mobile-publish { justify-self: center; align-self: start; width: 52px; height: 52px; border: 5px solid #fffdf7; border-radius: 50%; margin-top: -22px; display: grid; place-items: center; background: var(--butter); box-shadow: 0 6px 20px rgba(87,59,20,.2); }.mobile-publish svg { width: 22px; }.fun-grid { grid-template-columns: 1fr; }.calendar,.entry-card,.settings-card,.profile-summary { padding: 18px; }.calendar-cell { border-radius: 11px; }.entry-heading { display: grid; }.entry-heading select { width: 100%; }.profile-hero { margin: -29px -14px 25px; }.profile-cover { height: 145px; border-radius: 0 0 24px 24px; }.profile-identity { padding-inline: 20px; }.profile-identity .avatar.xl { width: 90px; height: 90px; }.modal { padding: 29px 20px; border-radius: 24px; }.toast { bottom: 90px; width: max-content; max-width: calc(100vw - 30px); text-align: center; } }
@media (max-width: 390px) { .hero h1 { font-size: 39px; }.hero-art { transform: scale(.66); margin-bottom: -175px; }.food-page > .page-header { display: grid; }.food-page .page-header-actions { width: 100%; grid-template-columns: 1fr 1fr; }.care-grid,.count-row,.form-two,.nutrient-grid,.food-profile-grid { grid-template-columns: 1fr; }.calendar { padding: 12px; }.calendar-cell { font-size: 11px; }.food-intro { grid-template-columns: 1fr; }.food-lab-icon { display: none; }.food-search label > div { display: grid; }.food-search label select { width: 100%; }.lookup-status { display: grid; }.food-pagination { align-items: flex-start; flex-direction: column; }.food-pagination > div { flex-wrap: wrap; }.food-selection-actions,.food-recommendation { align-items: stretch; flex-direction: column; }.food-recommendation .btn { width: 100%; }.catalog-health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; } }

/* Feed media keeps its natural aspect ratio so no part of a posted photo is cropped. */
.food-page > .food-calculator { order: 5; }

/* Social discovery, profile photo walls, and photo detail views. */
.post-author { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.feed-controls { display: grid; gap: 12px; margin-bottom: 20px; }
.feed-filter { display: flex; gap: 8px; }
.user-search-form { display: flex; gap: 8px; }
.user-search-form input { min-width: 0; }
.user-search-form button { flex: none; }
.user-search-results { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 8px; }
.user-search-result { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: inherit; text-align: left; cursor: pointer; }
.user-search-result span { display: grid; min-width: 0; }
.user-search-result small { color: var(--muted); }
.profile-posts { margin-top: 24px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.profile-post { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #f1eadc; cursor: pointer; }
.profile-post img { width: 100%; height: 100%; object-fit: cover; }
.public-profile-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.public-profile-heading h2 { margin: 0 0 4px; }
.public-profile-heading p { margin: 0; color: var(--muted); }
.photo-modal-backdrop { background: rgba(15,12,10,.84); }
.photo-modal { width: min(100%, 900px); max-height: calc(100vh - 36px); overflow: auto; padding: 20px; border-radius: 24px; background: #171311; color: white; position: relative; }
.photo-modal .modal-close { color: white; background: rgba(255,255,255,.15); }
.photo-modal-images { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.photo-modal-images img { width: 100%; max-height: 78vh; flex: 0 0 100%; object-fit: contain; scroll-snap-align: center; }
.photo-modal p { margin: 12px 4px 0; color: rgba(255,255,255,.84); }
.mobile-nav:not(.guest) { grid-template-columns: repeat(6, 1fr); }
.messages-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; min-height: 560px; }
.chat-threads { display: grid; align-content: start; gap: 8px; }
.chat-thread { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: inherit; text-align: left; cursor: pointer; }
.chat-thread.active { background: #fff0bc; }
.chat-thread > span { display: grid; min-width: 0; }.chat-thread small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.chat-panel,.chat-placeholder { min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.chat-panel { display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; }.chat-panel > header { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-bottom: 1px solid var(--line); }.chat-panel > header > div { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; }.chat-panel > header small { grid-column: 2; color: var(--muted); }
.chat-messages { display: grid; align-content: start; gap: 8px; padding: 17px; overflow: auto; }.chat-message { justify-self: start; max-width: 75%; padding: 8px 11px; border-radius: 15px; background: #f5eee1; }.chat-message.mine { justify-self: end; background: #fff0bc; }.chat-message p { margin: 0; line-height: 1.5; }.chat-message small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.voice-message { border: 0; background: transparent; color: inherit; font-weight: 750; cursor: pointer; }.chat-composer { display: flex; gap: 7px; padding: 12px; border-top: 1px solid var(--line); }.chat-composer input { min-width: 0; }.chat-composer button { flex: none; }.chat-placeholder { display: grid; place-content: center; justify-items: center; color: var(--muted); }.chat-placeholder span { font-size: 45px; }
.food-page > .food-empty { order: 6; }
.food-page > .source-card { order: 7; }
.food-calculator { padding: 24px; margin-bottom: 16px; border: 1px solid #ead188; border-radius: var(--radius); background: linear-gradient(135deg,#fff8df,#fffdf7); }
.food-calculator .section-title { margin-bottom: 8px; }.food-calculator .section-title span { color: #a87518; font-size: 10px; font-weight: 850; letter-spacing: .08em; }.food-calculator-intro { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }.food-calculator-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }.food-input-with-unit { display: flex; align-items: center; gap: 8px; }.food-input-with-unit input { min-width: 0; flex: 1; }.food-input-with-unit span { color: var(--muted); font-size: 11px; }.food-calculator-selection { padding: 0; margin: 18px 0; border: 0; }.food-calculator-selection legend { margin-bottom: 8px; font-size: 12px; font-weight: 850; }.food-calculator-selection > div { display: grid; gap: 8px; }.food-calculator-selection > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }.food-calculator-food { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); cursor: pointer; }.food-calculator-food.selected { border-color: #dbb43f; background: #fff8db; }.food-calculator-food > span:first-of-type { display: flex; align-items: center; gap: 9px; min-width: 0; }.food-calculator-food input[type=checkbox] { width: auto; }.food-calculator-food strong,.food-calculator-food small { display: block; }.food-calculator-food strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.food-calculator-food small { margin-top: 3px; color: var(--muted); font-size: 9px; }.food-calculator-share { display: flex; align-items: center; gap: 4px; }.food-calculator-share input { width: 64px; padding: 7px 6px; }.food-calculator-share small { margin: 0; }.calculator-thumb { width: 34px; height: 34px; flex: none; }.food-calculator-empty { padding: 14px; margin: 0; border: 1px dashed #d9bd73; border-radius: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }.food-calculator-result { padding: 18px; margin-top: 18px; border-radius: 16px; background: #fff; border: 1px solid #ead188; }.food-calorie-total { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 12px; }.food-calorie-total span { color: var(--muted); font-size: 11px; }.food-calorie-total strong { color: #a06e16; font-size: 24px; }.food-calorie-total small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.5; }.food-calculator-portions { display: grid; gap: 8px; margin-top: 16px; }.food-calculator-portions > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding-top: 9px; border-top: 1px solid var(--line); }.food-calculator-portions > div > span { display: flex; align-items: center; gap: 8px; min-width: 0; }.food-calculator-portions strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.food-calculator-portions small { color: var(--muted); font-size: 9px; }.calculator-result-thumb { width: 27px; height: 27px; flex: none; }.food-calculator-note { padding-top: 12px; margin: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.post-images { max-height: none; overflow-x: auto; overflow-y: hidden; align-items: start; }
.food-calculator-count { display: inline-block; margin-left: 5px; padding: 3px 7px; border-radius: 999px; background: #fff0bd; color: #8f671d; font-size: 9px; font-weight: 800; vertical-align: 2px; }
.food-calculator-total-grams { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.food-calculator-total-grams strong { color: var(--cocoa); font-size: 15px; }
.store-downloads { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.store-badge { display:flex; gap:12px; align-items:center; min-width:165px; min-height:62px; padding:10px 18px; border:1px solid #302522; border-radius:14px; background:#302522; color:#fff; text-decoration:none; transition:transform .18s, box-shadow .18s; }
.store-badge:hover { transform:translateY(-2px); box-shadow:0 8px 20px #30252218; }
.store-badge small { display:block; font-size:11px; line-height:1.4; color:inherit; }
.store-badge strong { display:block; font-size:20px; line-height:1.25; }
.store-symbol { font-size:28px; line-height:1; }
.store-pending { background:transparent; color:#786760; border-color:#d5ccc0; cursor:default; }
.store-pending:hover { transform:none; box-shadow:none; }
.store-release-note { display:block; max-width:410px; margin-top:10px; font-size:11px; line-height:1.6; color:#786760; }
.post-images img { width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; background: #eee7d9; }
.caption { white-space: pre-wrap; }
.caption-block,.comment-item { min-width: 0; }
.comment-item + .comment-item { margin-top: 7px; }
.translation-tools { margin: -2px 0 8px; }
.translate-button { padding: 2px 0; border: 0; background: transparent; color: #9b6b13; font-size: 10px; font-weight: 800; }
.translate-button:disabled { cursor: wait; opacity: .6; }
.translation-output { margin: 5px 0 0!important; padding: 7px 9px; border-left: 2px solid #e0b74e; border-radius: 0 8px 8px 0; background: #fff9e9; color: #625650!important; white-space: pre-wrap; line-height: 1.6!important; }
.translation-output[hidden] { display: none; }
.quiz-choices button { cursor: pointer; }
.quiz-choices button[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(96,69,31,.2); }
.barcode-scanner { width: min(100%,560px); }
.barcode-video-wrap { position: relative; width: 100%; aspect-ratio: 4/3; margin: 16px 0 10px; overflow: hidden; border-radius: 18px; background: #201f1c; }
.barcode-video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; }
.barcode-frame { position: absolute; inset: 22% 10%; border: 3px solid #f6cc5c; border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.2); }
.barcode-frame::before,.barcode-frame::after { content: ""; position: absolute; left: 8%; right: 8%; height: 2px; background: rgba(255,255,255,.85); }
.barcode-frame::before { top: 43%; }.barcode-frame::after { top: 57%; }
.barcode-scan-actions,.barcode-fallback-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.barcode-file-button { position: relative; overflow: hidden; cursor: pointer; }
.barcode-file-button input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.barcode-manual-form { margin-top: 14px; }
.food-recommendation { display: block; }
.food-recommendation > .food-recommendation-main { align-items: flex-start; }
.food-recommendation-copy { min-width: 0; flex: 1; }
.food-considerations { display: grid; gap: 6px; margin: 12px 0; }
.food-recommendation > .food-recommendation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.food-recommendation .food-recommendation-actions .btn { flex: 1 1 160px; min-width: 0; max-width: 100%; margin: 0; white-space: normal; }
.food-recommendation .food-recommendation-reasons b { font-size: 12px; }
.food-recommendation .food-recommendation-reasons span { font-size: 12px; border-radius: 8px; }
.food-recommendation .food-consideration { padding: 10px 12px; border: 1px solid #b88b41; border-radius: 10px; background: #fff5da; color: #594329; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.food-recommendation .food-consideration.unknown { border-color: #aa9dad; background: #faf7fc; color: #554b59; }
.food-consideration b { display: block; margin-bottom: 3px; font-size: 12px; }
.barcode-manual-form label > div { display: flex; gap: 8px; margin-top: 6px; }
.barcode-manual-form input { flex: 1; min-width: 0; }
.barcode-miss-modal code { display: block; width: fit-content; margin: 12px 0; padding: 6px 9px; border-radius: 8px; background: #f4eee1; }
@media (max-width: 480px) { .barcode-video-wrap { aspect-ratio: 3/4; }.barcode-scan-actions .btn,.barcode-file-button,.barcode-fallback-actions .btn { width: 100%; justify-content: center; }.barcode-manual-form label > div { display: grid; } }
@media (max-width: 600px) { .food-calculator { padding: 18px; }.food-calculator-grid { grid-template-columns: 1fr; }.food-calculator-portions > div { grid-template-columns: minmax(0,1fr) auto; }.food-calculator-portions small { grid-column: 2; }.food-calculator-food strong { max-width: 45vw; } }
/* One clear entry per tool. Search uses the same disclosure surface as the guide. */
.food-helper-panel[hidden]{display:none!important}
.food-helper-panel{grid-column:1/-1;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--paper);min-width:0}
.food-helper-panel .food-profile-card{margin:0;padding:0;border:0;background:transparent}
.food-search-disclosure .food-search{margin:0 0 16px;padding:0;border:0;background:transparent}
.food-tool-disclosure>summary>span{min-width:0}
.food-tool-disclosure>summary::after{flex-shrink:0}
@media(max-width:700px){.food-search-disclosure .food-search label>div{display:grid;grid-template-columns:minmax(0,1fr)}.food-search-disclosure .food-search select,.food-search-disclosure .food-search input{width:100%;min-width:0}.food-search-disclosure .food-search button{width:100%}}
/* A grid's automatic minimum must not stretch the comparison outside a phone. */
.food-tools{grid-template-columns:minmax(0,1fr);min-width:0}
.food-tools>*,.food-tool-body,.food-comparison{min-width:0;max-width:100%}
.comparison-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.comparison-navigation{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.comparison-navigation span{flex:1;min-width:0;font-size:13px;color:var(--muted)}
.comparison-navigation .btn{flex:none;min-width:44px;min-height:44px;padding:8px 12px}
