:root{font-family:system-ui,sans-serif;color:#414f58;background:#faf7f0;font-size:16px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 100% 0,#f1d5a077,transparent 45%),radial-gradient(ellipse at 0 50%,#ccdde5,transparent 40%)}main{max-width:690px;margin:auto;padding:20px 16px 60px}header{display:flex;gap:12px;align-items:center;margin-bottom:14px}header img{width:64px;height:64px;object-fit:cover;border-radius:20px;background:white}header strong{font-size:24px;display:block}small{display:block;font-size:12px;color:#58656d}header button{margin-left:auto;width:auto}.notice{background:#f1d5a0;border-radius:12px;padding:10px 14px;font-size:13px}.hero{background:#ccdde5;border-radius:28px;padding:22px;margin:16px 0}.hero h1{margin:0;font-size:30px;letter-spacing:-.7px}.hero p{margin:8px 0 0}h2{font-size:22px}h3{margin:0 0 10px}form,.panel,.member{background:white;border:1px solid #e5e0d7;border-radius:20px;padding:18px;margin:12px 0}label{display:block;font-size:14px;font-weight:600;margin:14px 0}input,select{display:block;width:100%;padding:12px;border:1px solid #b9c2c4;border-radius:12px;background:#fff;color:#414f58;font:inherit;margin-top:6px}button{border:0;border-radius:13px;background:#b9500c;color:white;padding:13px 16px;font:inherit;font-weight:650;cursor:pointer;width:100%;margin:5px 0}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #365f82;outline-offset:2px}.quiet{background:#f4f0e8;color:#414f58}.danger{background:#963f48}nav{display:flex;gap:6px}nav button{background:white;color:#414f58;border:1px solid #e5e0d7}nav button.active{background:#b9500c;color:white}.fine{font-size:12px;color:#58656d}.toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e5e0d7;padding:9px 0}.toggle input{width:21px;height:21px;accent-color:#b9500c}.member .actions{display:flex;gap:8px}.member p{margin:6px 0}#message:not(:empty){padding:12px;background:#d6dec8;border-radius:12px;margin-top:12px}#message.error{background:#e8c5b5}[hidden]{display:none!important}body.no-pattern{background:#faf7f0}body.compact form,body.compact .member{padding:12px} @media(max-width:360px){header strong{font-size:20px}header img{width:45px;height:45px}main{padding:12px}nav button{padding:10px 5px}}
.editor{max-width:900px}.editor textarea{display:block;width:100%;font:inherit;color:#414f58;border:1px solid #b9c2c4;border-radius:12px;padding:12px;margin-top:6px}.fields,.ingredient{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.ingredient{padding:12px;background:#faf7f0;border:1px solid #e5e0d7;border-radius:14px;margin:12px 0}.ingredient label{margin:6px 0}.ingredient button{grid-column:1/-1}.actions{display:flex;gap:8px}.recipe-photo{width:100%;max-height:300px;object-fit:contain;border-radius:12px}button:disabled{opacity:.5;cursor:not-allowed}.editor a{color:#9b440b}.editor #status:not(:empty){padding:12px;border-radius:12px;background:#f1d5a0}@media(max-width:450px){.fields,.ingredient{grid-template-columns:1fr}}
nav{flex-wrap:wrap}nav button{flex:1 1 28%;min-width:0}textarea{display:block;width:100%;padding:12px;border:1px solid #b9c2c4;border-radius:12px;color:#414f58;font:inherit;margin-top:6px;resize:vertical}.child-alert{background:#fff4de}.child-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;margin:12px 0}.child-calendar span,.child-calendar small{padding:7px 0;border-radius:9px}.logged-day{background:#d6dec8}.reaction-day{background:#e8c5b5;font-weight:bold}.child-nav button{font-size:14px}.child-nav{margin:10px 0}

/* v0.45 — Vanilla cloud, mandarin accent, shared interface */
:root{--paper:#FAF7F0;--ink:#414F58;--muted:#63727B;--orange:#B9500C;--accent:#F59A23;--blue:#CCDDE5;--butter:#F1D5A0;--peach:#E8C5B5;--sage:#D6DEC8;--line:#E6DFD3;--white:#FFFDF9;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5;color:var(--ink);background:var(--paper)}
body{min-height:100dvh;background:radial-gradient(circle at 1px 1px,#e9cda75c 1px,transparent 1.5px) 0 0/27px 27px,radial-gradient(ellipse at 100% 0,#f1d5a063,transparent 42%),var(--paper)}
body.no-pattern{background:var(--paper)}main{padding: max(15px,env(safe-area-inset-top)) 18px 45px;max-width:780px}main.consumer{max-width:740px}body.signed-in main.consumer{padding-bottom:calc(100px + env(safe-area-inset-bottom))}header{padding:5px 0 12px;gap:11px;border-bottom:1px solid var(--line);margin-bottom:13px}header img{width:48px;height:48px;object-fit:contain;background:#f6e6d6;border:1px solid white;border-radius:16px}header strong{font-size:21px;letter-spacing:-.55px;line-height:1.15}header small{font-size:11px;margin-top:3px}header button{font-size:12px;padding:8px 12px;min-height:36px}.notice{background:#fff3de;border:1px solid #eed9b3;padding:8px 12px;color:#755631;font-size:11px;border-radius:10px}.hero{background:var(--blue);position:relative;overflow:hidden;padding:24px;border-radius:24px}.hero h1,.hero h2{margin:0;letter-spacing:-.7px}.hero p{max-width:50ch}.hero h1{font-size:28px}h2{letter-spacing:-.55px;font-size:21px;line-height:1.25}h3{font-size:17px;line-height:1.3}p{overflow-wrap:anywhere}form,.panel,.member{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:16px;margin:12px 0;min-width:0}label{font-weight:550;line-height:1.4}input,select,textarea{border-color:#c5c8c5;min-height:44px;max-width:100%;background:white}input[type=checkbox],input[type=radio]{display:inline-block;width:19px;height:19px;min-height:0;vertical-align:middle;accent-color:var(--orange);margin:0 5px 0 0;padding:0}input[type=file]{font-size:13px}fieldset{min-width:0;border:1px solid var(--line);border-radius:12px}button{min-height:44px;background:var(--orange);border-radius:13px;font-weight:650;line-height:1.25}button.quiet{background:#f2eee6;color:var(--ink);border:1px solid #e8e0d4}button.danger{background:#963f48}button:focus-visible,a:focus-visible{outline:3px solid #365f82;outline-offset:3px}button:disabled{opacity:.55}a{color:var(--orange)}.fine,small{color:var(--muted)}.actions{flex-wrap:wrap}.actions button{flex:1 1 100px;min-width:0}.section-eyebrow,.eyebrow{font-size:10px;letter-spacing:1px;font-weight:750;color:var(--muted)}.section-eyebrow{margin:18px 0 8px}.family-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 15px}.family-chip{width:auto;min-height:35px;font-size:12px;border:1px solid var(--line);background:white;color:var(--ink);padding:8px 13px;border-radius:100px;margin:0;max-width:100%;overflow-wrap:anywhere}.family-chip.current{background:var(--ink);color:white}.home-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:244px;border-radius:25px;background:var(--blue);padding:22px 18px;margin:0 0 23px}.home-hero:before,.home-hero:after{content:'';position:absolute;z-index:-1;border-radius:50%;border:18px solid #ffffff38;width:180px;height:180px;right:-72px;top:-50px}.home-hero:after{width:240px;height:240px;background:#f9e9cf65;border:0;right:-80px;top:auto;bottom:-145px}.hero-copy{position:relative;z-index:1;width:66%;max-width:440px}.home-hero h1{margin:10px 0 8px;font-size:clamp(24px,5.8vw,38px);line-height:1.08;letter-spacing:-1.2px}.home-hero p{font-size:14px;margin:0 0 13px;max-width:230px}.home-hero img{position:absolute;bottom:0;right:0;width:44%;height:90%;object-fit:contain;object-position:bottom right;pointer-events:none;z-index:0}.hero-cta{width:auto;max-width:100%;font-size:13px;padding:12px 14px;background:#b9500c;color:#fff;box-shadow:0 4px 0 #8c3d0c23}.hero-cta span{margin-left:4px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:20px}.section-heading h2{margin:0}.text-link{width:auto;min-height:35px;padding:6px 0;background:transparent;color:var(--orange);font-size:12px;white-space:normal;box-shadow:none;text-align:left}.home-menu h3{margin:0 0 5px}.home-menu p{margin:5px 0;font-size:13px}.summary-line{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.summary-line:last-child{border:0}.summary-line strong{text-align:right;overflow-wrap:anywhere}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.module-card{display:flex;flex-direction:column;gap:9px;align-items:flex-start;justify-content:space-between;text-align:left;background:var(--blue);color:var(--ink);border:1px solid #ffffffb8;min-height:108px;padding:13px;margin:0;border-radius:18px}.module-card:nth-child(2){background:var(--sage)}.module-card:nth-child(3){background:var(--butter)}.module-card:nth-child(4){background:var(--peach)}.module-card svg{width:25px;height:25px;flex-shrink:0}.module-card strong{font-size:14px;display:block;overflow-wrap:anywhere}.module-card small{font-size:11px;font-weight:400;line-height:1.35;margin-top:3px}.reference-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:13px;align-items:center;background:var(--white);border:1px solid var(--line);padding:11px;border-radius:18px;margin-top:16px}.reference-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}.reference-card h3{margin:4px 0}.reference-card p{font-size:11px;margin:3px 0}.reference-card .eyebrow{font-size:9px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,740px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;background:#fffdf8;border:1px solid #e6dfd3;border-radius:19px 19px 0 0;padding:5px 5px calc(5px + env(safe-area-inset-bottom));box-shadow:0 -5px 22px #414f5810}.bottom-nav button.nav-item{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:54px;margin:0;padding:6px 2px;border:none;background:transparent;color:var(--ink);border-radius:12px;font-size:10px}.bottom-nav button.nav-item svg{width:21px;height:21px}.bottom-nav button.nav-item strong{font-weight:550}.bottom-nav button.nav-item.active{background:#ffead1;color:#9c4008}.bottom-nav button.nav-item.active strong{font-weight:750}.child-nav button{font-size:12px;min-width:0;overflow-wrap:anywhere}.tab{min-width:0}.recipe-photo{max-height:260px;object-fit:cover}.toggle input{flex:none}body.compact .module-card{min-height:82px;padding:10px}body.compact .home-hero{min-height:200px}body.compact .hero{padding:15px}body.no-pattern .home-hero:before,body.no-pattern .home-hero:after{display:none}audio{max-width:100%}#message{overflow-wrap:anywhere}#catalogItems article h3{font-size:20px}#billingOffers p{background:#fff3de;border-radius:12px;padding:12px;font-weight:650}#assistantAnswer{line-height:1.55}#assistantAnswer p{background:#e8eff1;border-radius:12px;padding:12px}#assistantProposal{border-color:#e2b87c}#assistantTimer{font-variant-numeric:tabular-nums}@media(min-width:650px){.home-hero{min-height:290px;padding:28px}.hero-copy{width:62%}.home-hero img{width:40%;height:96%}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-card{min-height:120px}.bottom-nav{bottom:10px;border-radius:22px;padding:6px}.bottom-nav button.nav-item{font-size:12px}.reference-card{grid-template-columns:130px minmax(0,1fr)}}@media(max-width:360px){main{padding-left:12px;padding-right:12px}header strong{font-size:18px}header small{font-size:10px}.home-hero{padding:18px 12px;min-height:225px}.home-hero h1{font-size:24px}.home-hero p{font-size:12px}.hero-cta{padding:10px 8px;font-size:12px}.module-card strong{font-size:13px}.bottom-nav button.nav-item{font-size:9px}}@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s,box-shadow .15s}button:hover:not(:disabled){filter:brightness(.97)}}

.telegram-mini-app {
  --mini-top: max(env(safe-area-inset-top), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --mini-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
}
.telegram-mini-app main.consumer {
  padding-top: calc(12px + var(--mini-top));
  padding-left: max(16px, env(safe-area-inset-left), var(--tg-content-safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right), var(--tg-content-safe-area-inset-right, 0px));
}
body.telegram-mini-app.signed-in main.consumer { padding-bottom: calc(100px + var(--mini-bottom)); }
.telegram-mini-app .bottom-nav { padding-bottom: calc(6px + var(--mini-bottom)); }
@font-face {
  font-family: Onest;
  src: url('/fonts/onest-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
main.consumer { font-family: Onest, system-ui, sans-serif; }
.telegram-mini-app .browser-welcome { display: none; }
.telegram-mini-app .telegram-welcome:not([hidden]) {
  --welcome-padding: clamp(13px, 4vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 34%, 164px);
  align-items: center;
  gap: 6px;
  overflow: hidden;
  min-height: 248px;
  padding: 22px var(--welcome-padding);
  background: var(--blue);
}
.telegram-welcome > div { min-width: 0; }
.telegram-welcome > .fine { grid-column: 1 / -1; }
.telegram-welcome h1,
.assistant-intro h2 { font-size: clamp(1.55rem, 5.5vw, 2rem); line-height: 1.1; }
.telegram-welcome p { margin: 10px 0 14px; line-height: 1.42; }
.welcome-last-line { display: block; }
.telegram-welcome img {
  align-self: end;
  width: 100%;
  height: auto;
  margin-bottom: -22px;
}
.telegram-welcome button {
  width: auto;
  max-width: 100%;
  min-height: 46px;
  padding-inline: clamp(8px, 2.7vw, 15px);
  white-space: normal;
  overflow-wrap: anywhere;
}
.telegram-mini-app #assistant .hero { background: var(--blue); }
.telegram-mini-app .assistant-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px;
}
.telegram-mini-app .assistant-intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -30px -52px auto auto;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: var(--butter);
  opacity: .38;
}
.telegram-mini-app .assistant-intro p { max-width: 35ch; }
.assistant-more { margin: 10px 0 14px; font-size: .875rem; }
.assistant-more summary { cursor: pointer; }
.telegram-mini-app #assistantAnswer strong { color: var(--orange); font-size: .875rem; }
.assistant-voice { margin-top: 12px; }
.assistant-voice summary {
  width: fit-content;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  font-weight: 650;
  cursor: pointer;
}
.assistant-voice audio { max-width: 100%; margin-top: 8px; }
.assistant-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.assistant-compose input { min-width: 0; }
.assistant-compose button { margin: 0; }
.telegram-mini-app #assistantQuick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#assistantQuick .assistant-shortcut {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  min-height: 62px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.3;
  font-weight: 650;
}
.assistant-shortcut-icon { flex: 0 0 auto; font-size: 1.15em; }
.telegram-mini-app #assistantQuick button:nth-child(4n+1) { background: #F1D5A0; }
.telegram-mini-app #assistantQuick button:nth-child(4n+2) { background: #D6DEC8; }
.telegram-mini-app #assistantQuick button:nth-child(4n+3) { background: #E8C5B5; }
.telegram-mini-app #assistantQuick button:nth-child(4n+4) { background: #CCDDE5; }
