/* © Егор — клиентский проект портфолио. Код демо обезличен; повторное использование запрещено. */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: #F2F3F5; color: #191E28;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 18px 12px 6px; width: 100%; }
.phone {
  width: 390px; height: 844px; flex: none;
  background: #191E28; border-radius: 52px; padding: 10px;
  box-shadow: 0 30px 70px rgba(25, 30, 40, .28);
  transform-origin: top center;
}
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 42px; overflow: hidden;
  background: #FBFBF9; color: #191E28;
  display: flex; flex-direction: column;
  --acc: #B8E62E; --acc-ink: #4C7A00; --alt: #F2F3F5; --mute: #6B7280; --card: #FFFFFF;
}
.screen.dark { background: #14171C; color: #F4F5F7; --alt: #1E232B; --mute: #9AA9B; --mute: #98A2B0; --card: #1E232B; }
.island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 30px; border-radius: 20px; background: #0B0D10; z-index: 40;
}
.statusbar {
  height: 54px; flex: none; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 26px 6px; font-size: 14px; font-weight: 700;
}
.statusbar .sicons { display: flex; gap: 6px; align-items: center; }
.statusbar .sicons i { display: block; background: currentColor; border-radius: 2px; }
.sig { width: 16px; height: 10px; clip-path: polygon(0 100%, 0 60%, 22% 60%, 22% 40%, 45% 40%, 45% 20%, 70% 20%, 70% 0, 100% 0, 100% 100%); }
.bat { width: 22px; height: 11px; border-radius: 3px; opacity: .9; }
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 18px; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.hello { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.sub { color: var(--mute); font-size: 13px; font-weight: 600; margin-top: 2px; }
.block { background: var(--alt); border-radius: 22px; padding: 16px; margin-top: 14px; }
.block.white { background: var(--card); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ringwrap { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .tr { stroke: rgba(120, 130, 145, .18); }
.ring .pr { stroke: var(--acc); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-size: 22px; font-weight: 800; }
.ring .num span { font-size: 11px; color: var(--mute); font-weight: 600; }
.macros { display: grid; gap: 8px; flex: 1; }
.macro { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; }
.macro .bar { height: 6px; border-radius: 4px; background: rgba(120, 130, 145, .18); flex: 1; margin: 0 10px; overflow: hidden; }
.macro .bar i { display: block; height: 100%; border-radius: 4px; background: var(--acc); }
.macro span { color: var(--mute); font-weight: 600; }
.btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: #191E28; color: #fff; border-radius: 16px; padding: 13px 18px; font-size: 14px;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.97); }
.btn.acc { background: var(--acc); color: #191E28; }
.btn.ghost { background: var(--alt); color: inherit; }
.btn.wide { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 12px; border-radius: 12px; }
.screen.dark .btn { background: #F4F5F7; color: #14171C; }
.screen.dark .btn.acc { background: var(--acc); color: #14171C; }
.screen.dark .btn.ghost { background: var(--alt); color: #F4F5F7; }
.water { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.glass { width: 26px; height: 34px; border-radius: 7px 7px 9px 9px; background: rgba(120, 130, 145, .16); cursor: pointer; border: 0; transition: background .15s; }
.glass.on { background: var(--acc); }
.meal { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.meal + .meal { border-top: 1px solid rgba(120, 130, 145, .12); }
.meal .dot { width: 38px; height: 38px; border-radius: 12px; background: var(--alt); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.screen.dark .meal .dot { background: rgba(120, 130, 145, .16); }
.meal .t { flex: 1; min-width: 0; }
.meal .t b { font-size: 14px; font-weight: 700; display: block; }
.meal .t span { font-size: 12px; color: var(--mute); font-weight: 600; }
.meal .k { font-size: 14px; font-weight: 800; }
.meal .x { border: 0; background: none; color: var(--mute); font-size: 16px; cursor: pointer; padding: 4px; }
.fabrow { display: flex; gap: 10px; margin-top: 14px; }
.fabrow .btn { flex: 1; }
.tabbar {
  flex: none; display: flex; padding: 8px 10px 22px; background: var(--card);
  border-radius: 26px 26px 0 0;
}
.screen.dark .tabbar { background: #1E232B; }
.tab { flex: 1; border: 0; background: none; cursor: pointer; font: inherit; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 6px 0; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--acc-ink); }
.screen.dark .tab.on { color: var(--acc); }
.week { display: flex; gap: 6px; margin-top: 12px; }
.wd { flex: 1; border: 0; background: var(--alt); border-radius: 14px; padding: 8px 0 7px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.wd i { width: 7px; height: 7px; border-radius: 50%; background: rgba(120, 130, 145, .3); }
.wd.done i { background: var(--acc); }
.wd.today { background: #191E28; color: #fff; }
.screen.dark .wd.today { background: var(--acc); color: #14171C; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 26px; height: 26px; border-radius: 9px; border: 0; background: var(--alt); color: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.screen.dark .stepper button { background: rgba(120, 130, 145, .2); }
.stepper b { font-size: 12px; min-width: 44px; text-align: center; }
.seg { display: flex; background: var(--alt); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--mute); padding: 8px 0; border-radius: 11px; cursor: pointer; }
.seg button.on { background: var(--card); color: inherit; box-shadow: 0 2px 8px rgba(25, 30, 40, .08); }
.screen.dark .seg button.on { background: #14171C; color: #F4F5F7; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; margin-top: 16px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; border-radius: 8px 8px 4px 4px; background: var(--acc); min-height: 4px; }
.bars .b span { font-size: 10px; color: var(--mute); font-weight: 700; }
.bars .b.dim i { background: rgba(120, 130, 145, .25); }
.input {
  width: 100%; border: 0; outline: none; font: inherit; font-size: 14px; font-weight: 600;
  background: var(--alt); color: inherit; border-radius: 14px; padding: 12px 14px;
}
.screen.dark .input { background: rgba(120, 130, 145, .16); }
.input::placeholder { color: var(--mute); }
.overlay {
  position: absolute; inset: 0; z-index: 30; background: #FBFBF9; color: #191E28;
  display: flex; flex-direction: column; padding: 60px 18px 24px;
  animation: rise .22s ease;
}
.screen.dark .overlay { background: #14171C; color: #F4F5F7; }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.ovl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ovl-head b { font-size: 18px; font-weight: 800; }
.ovl-head button { border: 0; background: var(--alt); color: inherit; width: 34px; height: 34px; border-radius: 12px; font-size: 15px; cursor: pointer; }
.photo { border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: var(--alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanline { position: relative; }
.scanline::after {
  content: ""; position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px;
  background: var(--acc); top: 10%; animation: scan 1.3s ease-in-out infinite alternate;
  box-shadow: 0 0 18px var(--acc);
}
@keyframes scan { from { top: 8%; } to { top: 88%; } }
.mascot { width: 84px; height: 84px; object-fit: contain; margin: 18px auto 6px; display: block; }
.kcalbig { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.kcalbig span { font-size: 15px; color: var(--mute); font-weight: 700; }
.kcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.kcard { background: var(--alt); border-radius: 16px; padding: 12px 10px; text-align: center; }
.kcard b { font-size: 17px; font-weight: 800; display: block; }
.kcard span { font-size: 11px; color: var(--mute); font-weight: 700; }
.list { margin-top: 12px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: none; }
.food { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; font: inherit; color: inherit; padding: 11px 4px; cursor: pointer; text-align: left; }
.food + .food { border-top: 1px solid rgba(120, 130, 145, .12); }
.food b { font-size: 14px; font-weight: 700; display: block; }
.food span { font-size: 12px; color: var(--mute); font-weight: 600; }
.food .plus { width: 30px; height: 30px; border-radius: 10px; background: var(--acc); color: #191E28; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.switch { width: 46px; height: 28px; border-radius: 16px; border: 0; background: rgba(120, 130, 145, .3); cursor: pointer; position: relative; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--acc); }
.switch.on::after { left: 21px; }
.accents { display: flex; gap: 10px; margin-top: 10px; }
.acc-dot { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; }
.acc-dot.on { outline: 3px solid rgba(120, 130, 145, .35); outline-offset: 2px; }
.prow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 14px; font-weight: 700; }
.prow + .prow { border-top: 1px solid rgba(120, 130, 145, .12); }
.toast {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 50;
  background: #191E28; color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 14px; padding: 10px 16px; white-space: nowrap; animation: rise .2s ease;
}
.screen.dark .toast { background: var(--acc); color: #14171C; }
.caption { padding: 10px 16px 14px; color: #6B7280; font-size: 12.5px; font-weight: 600; text-align: center; }
.hintline { font-size: 12px; color: var(--mute); font-weight: 600; margin-top: 8px; }
