:root {
  --ink: #2d2638;
  --muted: #837c8c;
  --line: #ece5ee;
  --paper: #fffdfa;
  --ground: #fbf7f1;
  --green: #6648dc;
  --green-dark: #5034be;
  --mint: #f0ebff;
  --yellow: #f7c660;
  --shadow: 0 14px 34px #54406e12;
  --radius: 24px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 3%, #eee6ff 0, transparent 27%),
    radial-gradient(ellipse at 5% 34%, #ffead8 0, transparent 22%),
    var(--ground);
}

.app-shell, .main-area { background: transparent; }
.sidebar {
  background: #fffdfaf2;
  border-color: #eee5dc;
  backdrop-filter: blur(16px);
}
.brand { color: var(--ink); }
.brand-mark {
  background: linear-gradient(145deg, #8668f5, #5e40d2);
  box-shadow: 0 7px 18px #6243d338;
}
.side-label, .eyebrow { color: #8c8295; }
.nav-item { color: #706b79; border-radius: 14px; }
.nav-item:hover, .nav-item.active { background: #f0ebff; color: #5940c7; }
.premium-card {
  color: white;
  background: linear-gradient(145deg, #7658eb, #5033bc);
  border: 0;
  box-shadow: 0 12px 26px #6144ca28;
}
.premium-card p { color: #eee9ff; }
.premium-card .sparkle, .premium-card .text-button { color: #fff2bb; }
.profile-mini { border-color: var(--line); }
.avatar { background: #eee8ff; color: #5940c7; }
.topbar {
  background: #fffaf5d9;
  border-color: #eee5dc;
  backdrop-filter: blur(16px);
}
.main-area { position: relative; isolation: isolate; }
.main-area::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(42vw, 550px);
  height: 300px;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 12%, #eadfff88, transparent 64%);
}
.view-container { position: relative; }
h1 em { color: #6548dc; }
.welcome-row { position: relative; padding: 3px 0 5px; }
.welcome-row::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4%;
  top: -25px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff1c8 0 8%, #f5eaff 9% 48%, #f5eaff00 70%);
  pointer-events: none;
}
.welcome-row h1 em { color: #6548dc; }
.streak-pill { border-color: #ebe3f2; background: #fffdfa; }
.streak-pill span { color: #8d70ef; }
.welcome-row { margin-bottom: 12px; }
.photo-hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 390px);
  min-height: 62px;
  margin: 0 0 17px;
  padding: 10px 14px;
  border: 1px solid #e5dcf6;
  border-radius: 18px;
  background: linear-gradient(120deg, #fffdfa, #f1ebff);
  color: #5540b8;
  box-shadow: 0 9px 22px #6548dc12;
  text-align: left;
}
.photo-hero-cta:hover { border-color: #cfc0f5; background: linear-gradient(120deg, #fff, #ece5ff); }
.photo-hero-cta:focus-visible, .photo-actions button:focus-visible { outline: 3px solid #8c75e9; outline-offset: 3px; }
.photo-hero-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 13px; background: #ebe4ff; font-size: 20px; }
.photo-hero-copy { display: grid; gap: 3px; min-width: 0; }
.photo-hero-copy strong { font-size: 12px; }
.photo-hero-copy small { color: #7d7590; font-size: 9px; line-height: 1.4; }
.photo-hero-arrow { margin-left: auto; font-size: 19px; }
.card {
  border-color: #eee6ed;
  border-radius: 24px;
  box-shadow: 0 12px 32px #57456d10;
}
.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr);
  gap: 16px;
}
.calorie-card {
  grid-column: 1;
  grid-row: span 2;
  padding: 24px 26px 20px;
  color: #fff;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #5a3bc7 0%, #7052e7 58%, #7b60ef 100%);
  box-shadow: 0 18px 40px #6043cf35;
}
.calorie-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -55px;
  top: 14px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, #c4b4ff35, #c4b4ff00 72%);
  pointer-events: none;
}
.calorie-card > * { position: relative; z-index: 1; }
.calorie-card .eyebrow { color: #e1d9ff; }
.calorie-card h2 { color: #fff; font-size: 24px; }
.calorie-card .more-button { color: #eee8ff; }
.calorie-content { gap: 20px; justify-content: space-between; padding: 18px 2px 22px; }
.ring-wrap { width: 164px; height: 164px; flex: 0 0 164px; }
.ring-track { stroke: #ffffff32; }
.ring-progress { stroke: #c8b9ff; }
.ring-label strong { color: #fff; font-size: 29px; }
.ring-label span, .muted { color: #e3dcff; }
.calorie-stats { min-width: 145px; flex: 1; }
.calorie-stats > strong { color: #fff; font-size: 25px; }
.target-line { color: #e2dbff; }
.target-line span:last-child, .macro-value { color: #fff; }
.calorie-stats .mini-bar { background: #ffffff32; }
.calorie-stats .mini-bar span { background: linear-gradient(90deg, #ffd87c, #ffb98f); }
.calorie-card .link-button { color: #fff2bb; }
.macro-row { border-color: #ffffff35; padding-top: 17px; gap: 14px; }
.macro-title { color: #eeeaff; font-size: 10px; }
.macro-value { font-size: 10px; }
.macro-dot.protein { background: #a8f0ca; }
.macro-dot.carbs { background: #ffd77a; }
.macro-dot.fat { background: #ffb6aa; }
.protein-fill { background: #a8f0ca !important; }
.carbs-fill { background: #ffd77a !important; }
.fat-fill { background: #ffb6aa !important; }
#protein-bar, #carbs-bar, #fat-bar { width: var(--progress-width, 0%) !important; }
.calorie-card .mini-bar { background: #ffffff30; }
.dashboard-note { color: #e6e0ff; opacity: .88; }
.water-card {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  background: linear-gradient(145deg, #e5f2ff, #f4f7ff);
  border-color: #e2e9fa;
}
.water-card .eyebrow { color: #7284a7; }
.water-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #d8e9ff;
  color: #5489e4;
}
.water-count strong { color: #2d2638; }
.water-glass { border-color: #a9c8f4; background: #ffffffa8; }
.water-glass.filled::after { background: linear-gradient(180deg, #83b5ff, #578ce9); }
.add-water { background: #d8e8ff; color: #477bd3; border-radius: 12px; }
.water-footer { color: #71809d; }
.weight-card {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  padding: 22px;
  background: linear-gradient(145deg, #f0eaff, #faf6ff);
  border-color: #e9e0fa;
}
.weight-card .eyebrow { color: #8474ad; }
.weight-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #e3d8ff;
  color: #7256d8;
  font-size: 20px;
}
.weight-main { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.weight-main strong { font: 800 30px Manrope, sans-serif; letter-spacing: -1px; }
.weight-main span { color: var(--muted); font-size: 12px; }
.weight-note { margin: 0; color: #817792; font-size: 10px; line-height: 1.5; }
.weight-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid #e8def8;
  border-radius: 11px;
  background: #ffffffb8;
  color: #6348c4;
  font-size: 10px;
  font-weight: 700;
}
.meals-card { grid-column: 1; grid-row: 3; }
.meal-row { border-color: #f0eaf0; }
.meal-emoji { background: #f3edff; }
.meal-kcal { color: #5a40c5; }
.meal-repeat, .meal-delete { border-color: #ece5ef; color: #684fd0; border-radius: 10px; }
.add-meal-button { border-color: #d9cffa; background: #f8f5ff; color: #5c42ca; }
.insight-card {
  grid-column: 2;
  grid-row: 3;
  min-height: 0;
  background: linear-gradient(145deg, #fff0df, #fff8ed 68%, #f8eaff);
  border-color: #f2e4dc;
}
.insight-card h2 { max-width: 320px; }
.insight-icon, .insight-card .link-button { color: #694bd3; }
.insight-leaf { color: #eadcf7; }
.week-card { grid-column: 1 / -1; grid-row: 4; }
.week-chart { background: repeating-linear-gradient(to top, transparent 0, transparent 37px, #eee9f2 38px, #eee9f2 39px); border-color: #e8e0eb; }
.week-column::before, .legend-dot, .chart-legend i { background: #9e88f4; }
.week-column.today::before { background: #6245d8; }
.page-heading .eyebrow { color: #8c8295; }
.primary-button, .bottom-nav .camera-nav {
  background: linear-gradient(135deg, #795df0, #5739c6);
  box-shadow: 0 8px 18px #6545d32b;
}
.primary-button:hover, .bottom-nav .camera-nav:hover { background: linear-gradient(135deg, #866cf4, #5739c6); }
.secondary-button { background: #f0ebff; color: #5b42c6; box-shadow: none; }
.link-button, .text-button { color: #6044cf; }
.day-switcher { border: 1px solid #eee5ee; border-radius: 16px; background: #fffdfa; }
.day-switcher button { color: #6e51d7; }
.day-switcher .today-button { border-color: #e8dffc; color: #6247ce; }
.diary-summary {
  color: #fff;
  background: linear-gradient(135deg, #5b3dc7, #785cf0);
  border: 0;
  box-shadow: 0 12px 28px #6749d329;
}
.diary-summary .eyebrow, .diary-summary small { color: #e8e1ff; }
.diary-summary > div + div { border-color: #ffffff35; }
.diary-meal-group { border-color: #eee5ee; box-shadow: 0 8px 22px #55426b0b; }
.meal-group-head button { color: #6044cf; }
.select-pill, .recipe-toolbar input, .catalog-search, .chat-form { border-color: #e8e1ed; }
.progress-stats .card { background: linear-gradient(145deg, #fffdfa, #f5efff); }
.progress-stats .card:nth-child(2) { background: linear-gradient(145deg, #fffdfa, #fff3df); }
.progress-stats .card:nth-child(3) { background: linear-gradient(145deg, #f1efff, #fffdfa); }
.stat-icon.green, .stat-icon.yellow, .stat-icon.blue { background: #eee8ff; color: #684bd2; }
.large-chart { background: repeating-linear-gradient(to top, transparent 0, transparent 48px, #eee9f2 49px, #eee9f2 50px); border-color: #e8e0eb; }
.large-bar-group i { background: #a493f1; }
.large-bar-group b { background: #eadfff; }
.large-bar-group.today i { background: #6548dc; }
.progress-note { background: linear-gradient(110deg, #f4edff, #fff4e6); border-color: #eee3f2; }
.progress-note > span { color: #7657df; }
.recipe-card { border-color: #eee6ed; box-shadow: 0 10px 26px #57456d0c; }
.recipe-art { background: linear-gradient(140deg, #efe7ff, #fff0df); }
.recipe-card:nth-child(3n+2) .recipe-art { background: linear-gradient(140deg, #fff0df, #fde8e1); }
.recipe-card:nth-child(3n) .recipe-art { background: linear-gradient(140deg, #e4f3ec, #eee8ff); }
.recipe-open { color: #6044cf; }
.filter-chip.selected, .catalog-filters button.selected { background: #f0ebff; border-color: #f0ebff; color: #5e43cb; }
.catalog-search { background: #fbf8ff; }
.food-row:hover { background: #fbf8ff; }
.food-emoji, .food-add { background: #f1ecff; color: #674bd2; }
.catalog-custom-button, .load-more-recipes { border-color: #ddd2f7; background: #fbf9ff; color: #5d42ca; }
.assistant-orb, .chat-avatar { background: #eee8ff; color: #6548d7; }
.assistant-disclaimer { background: #f6f0e9; }
.chat-message.user { background: #f0ebff; }
.suggestion-row button { border-color: #e8e1ed; }
.chat-form button { background: #6749db; }
.bottom-nav { display: none; }
.modal-backdrop { background: #2b203c70; backdrop-filter: blur(7px); }
.modal {
  border: 1px solid #eee4ef;
  border-radius: 26px;
  background: #fffdfa;
  box-shadow: 0 24px 80px #241a383b;
}
.modal-close { background: #f1edfa; color: #635b70; }
.modal-icon { background: #eee8ff; color: #684bd2; }
.photo-drop {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 13px;
  height: auto;
  min-height: 0;
  padding: 18px;
  border: 0;
  border-radius: 21px;
  background: linear-gradient(135deg, #795cf0, #5638c4);
  box-shadow: 0 14px 26px #6647d22a;
  color: #fff;
}
.photo-preview { color: inherit; }
.photo-preview small { color: #e9e2ff; }
.photo-preview strong { font-size: 12px; }
.photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; }
.photo-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #ffffffc9; border-radius: 13px; background: #fffdfa; color: #5d43c7; font-size: 11px; font-weight: 700; }
.photo-actions button:hover { background: #f0ebff; }
.photo-drop:has(img) { min-height: 0; padding: 10px; }
.camera-icon { color: #fff; }
.camera-icon svg { display: block; width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.meal-source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 10px 0 1px; }
.meal-source-links button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid #eee6ef; border-radius: 14px; background: #fffdfa; text-align: left; }
.meal-source-links button > span:last-child { display: grid; gap: 3px; min-width: 0; }
.meal-source-links strong { color: #373044; font-size: 10px; }
.meal-source-links small { color: #8a8291; font-size: 8px; line-height: 1.35; }
.source-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 11px; background: #f0ebff; color: #684bd2; font-size: 19px; }
.text-entry-toggle { border-color: #e7dff0; color: #6044cf; }
.modal-meal-types button { border-color: #eee6ef; background: #fffdfa; }
.meal-result { background: #f2edff; border-color: #e8defa; }
.premium-hero { background: linear-gradient(135deg, #6042cf, #8064f1); color: #fff; }
.premium-hero .eyebrow, .premium-hero p:last-child { color: #e9e2ff; }
.premium-features div:first-letter { color: #684bd2; }
.premium-price { border-color: #ece5ee; }
.toast { background: #34264e; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #a38af6;
  outline-offset: 2px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  max-width: 640px;
  margin: -11px 0 18px;
  padding: 8px;
  border: 1px solid #eee6ec;
  border-radius: 21px;
  background: #fffdfa;
  box-shadow: 0 8px 20px #55426b08;
}
.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 3px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #797282;
}
.week-day span { font-size: 10px; }
.week-day strong { font: 700 15px Manrope, sans-serif; color: #332c3d; }
.week-day.selected { background: #eee8ff; color: #6548d9; }
.week-day.selected strong { color: #5337c1; }

@media (min-width: 921px) {
  .week-strip { margin-top: -12px; }
}
@media (min-width: 761px) and (max-width: 920px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calorie-card, .meals-card, .insight-card, .week-card { grid-column: 1 / -1; grid-row: auto; }
  .water-card { grid-column: 1; grid-row: auto; }
  .weight-card { grid-column: 2; grid-row: auto; }
}
@media (max-width: 760px) {
  .topbar { height: 60px; padding: 0 17px; }
  .view-container { padding: 24px 16px 122px; }
  .welcome-row { gap: 8px; margin-bottom: 20px; }
  .welcome-row { margin-bottom: 10px; }
  .photo-hero-cta { width: 100%; max-width: none; min-height: 58px; margin-bottom: 13px; padding: 9px 11px; }
  .welcome-row h1 { font-size: 23px; }
  .welcome-row .subheading { max-width: 245px; line-height: 1.55; }
  .welcome-row::after { right: 1%; top: 22px; width: 70px; height: 70px; opacity: .7; }
  .streak-pill { margin-top: 5px; padding: 8px 9px; }
  .week-strip { gap: 4px; margin: -8px 0 13px; padding: 6px; border-radius: 18px; }
  .week-day { padding: 8px 1px; border-radius: 13px; }
  .week-day span { font-size: 9px; }
  .week-day strong { font-size: 14px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .calorie-card, .meals-card, .insight-card, .week-card { grid-column: 1 / -1; grid-row: auto; }
  .calorie-card { padding: 20px 19px 17px; border-radius: 25px; }
  .calorie-card h2 { font-size: 22px; }
  .calorie-content { gap: 12px; padding: 16px 0 18px; }
  .ring-wrap { width: 132px; height: 132px; flex-basis: 132px; }
  .ring-label strong { font-size: 24px; }
  .calorie-stats { min-width: 0; }
  .calorie-stats > strong { font-size: 20px; }
  .target-line { gap: 8px; font-size: 9px; }
  .macro-row { gap: 7px; padding-top: 14px; }
  .macro-title { font-size: 8px; gap: 4px; flex-wrap: wrap; }
  .macro-value { width: 100%; margin-left: 11px; font-size: 9px; }
  .water-card, .weight-card { grid-column: auto; grid-row: auto; padding: 15px 13px; border-radius: 20px; }
  .water-card .card-heading, .weight-card .card-heading { align-items: center; }
  .water-card .eyebrow, .weight-card .eyebrow { font-size: 8px; letter-spacing: .9px; }
  .water-card h2, .weight-card h2 { font-size: 15px; }
  .water-icon, .weight-icon { width: 34px; height: 34px; border-radius: 12px; }
  .water-count { margin: 12px 0; }
  .water-count strong { font-size: 25px; }
  .water-glasses { gap: 4px; }
  .water-glass { width: 14px; height: 21px; }
  .water-footer { margin-top: 9px; gap: 4px; font-size: 8px; }
  .add-water { flex: 0 0 27px; }
  .weight-main { margin: 12px 0 4px; }
  .weight-main strong { font-size: 27px; }
  .weight-note { min-height: 30px; font-size: 8px; }
  .weight-edit { margin-top: 8px; padding: 8px 7px; font-size: 8px; }
  .meals-card, .insight-card, .week-card { padding: 18px; }
  .insight-card { min-height: 0; }
  .week-chart { height: 105px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .subheading { line-height: 1.55; }
  .bottom-nav {
    display: flex;
    position: fixed;
    z-index: 8;
    left: 50%;
    right: auto;
    bottom: max(9px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100% - 20px), 470px);
    min-height: 67px;
    height: auto;
    padding: 6px 7px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee5ef;
    border-radius: 22px;
    background: #fffdf9f2;
    box-shadow: 0 10px 30px #36244620;
    backdrop-filter: blur(18px);
  }
  .bottom-nav button {
    flex: 1 1 0;
    min-width: 0;
    gap: 3px;
    font-size: 8px;
    white-space: nowrap;
    color: #817a8a;
  }
  .bottom-nav button span { font-size: 19px; }
  .bottom-nav button.active { color: #6044d1; }
  .bottom-nav .camera-nav {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    min-width: 45px;
    margin: -16px 1px 0;
    border-radius: 16px;
    color: white;
  }
  .bottom-nav .camera-nav span { font-size: 24px; }
  .modal { border-radius: 24px; }
  .meal-source-links { gap: 7px; }
  .meal-source-links button { gap: 7px; padding: 9px 7px; }
  .meal-source-links strong { font-size: 9px; }
  .meal-source-links small { font-size: 7px; }
  .source-icon { flex-basis: 30px; height: 30px; font-size: 17px; }
  .modal-meal-types > div { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .photo-actions { gap: 6px; }
  .photo-actions button { gap: 5px; padding: 8px 5px; font-size: 10px; }
}
@media (max-width: 360px) {
  .view-container { padding-inline: 12px; }
  .welcome-row h1 { font-size: 21px; }
  .streak-pill { font-size: 8px; }
  .calorie-card { padding-inline: 15px; }
  .ring-wrap { width: 116px; height: 116px; flex-basis: 116px; }
  .bottom-nav { width: calc(100% - 12px); padding-inline: 4px; }
  .bottom-nav button { font-size: 7px; }
  .bottom-nav .camera-nav { flex-basis: 41px; width: 41px; min-width: 41px; height: 41px; }
}

.demo-note {
  margin: 8px 0;
  padding: 9px 11px;
  border: 1px solid #e7dff0;
  border-radius: 10px;
  background: #f7f3ff;
  color: #6044cf;
  font-size: 10px;
  line-height: 1.5;
}
.consent-settings {
  min-width: 0;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #e9ddf0;
  border-radius: 14px;
  background: #fffdfa;
}
.consent-settings legend { padding: 0 5px; color: #5d5265; font-size: 11px; font-weight: 700; }
.consent-settings label { display: flex; align-items: flex-start; gap: 8px; margin: 7px 0; color: #746b78; font-size: 10px; line-height: 1.5; }
.consent-settings input { margin-top: 2px; accent-color: #6648dc; }
.consent-settings small { display: block; color: #8a8291; font-size: 9px; line-height: 1.5; }
.demo-mode-settings { background: linear-gradient(135deg, #f9f6ff, #fffdfa); }
.trinity-return{position:fixed;bottom:12px;left:24px;z-index:30;font-size:11px;text-decoration:none;color:#6c607d;background:#fffaf2e8;padding:7px 10px;border-radius:12px}.trinity-return span{font-size:10px}@media(max-width:800px){.trinity-return{position:static;display:block;padding:8px 20px;border-radius:0;text-align:center;background:#eee7fa;color:#594582}}

.offline-photo-editor { padding:18px; margin:18px 0; border:1px solid #d8c7ed; border-radius:20px; background:linear-gradient(130deg,#fcf8ff,#f1fbf5); }
.offline-photo-editor[hidden] { display:none; }
.offline-photo-editor h3 { margin-top:0; }
.offline-photo-editor label { display:flex;flex-direction:column;gap:6px;margin:14px 0;font-weight:600;font-size:14px; }
.offline-photo-editor input,.offline-photo-editor select { padding:12px;border:1px solid #d9d4df;border-radius:12px;background:#fff;width:100%;box-sizing:border-box;font:inherit; }
.offline-candidates { display:flex;flex-wrap:wrap;gap:8px; }
.offline-candidates button { border:1px solid #d7c5eb;border-radius:20px;padding:10px 12px;background:white;color:#573579; }
.offline-candidates button.selected { background:#6d3daa;color:white; }
.offline-reference-note,#offline-recognition-note { font-size:13px;line-height:1.5;color:#5c5266; }
.offline-ingredient { display:grid;grid-template-columns:minmax(0,1fr) 88px 34px;align-items:center;gap:8px;margin:10px 0; }
.offline-ingredient label { margin:0;font-size:12px; }
.offline-ingredient input { padding:9px; }
.offline-ingredient button { background:transparent;border:0;font-size:22px;color:#6b3c89; }
.offline-ingredient small { display:block;font-size:11px;color:#6e6574; }
.photo-assistant-summary { display:flex;gap:12px;align-items:flex-start;margin:14px 0;padding:14px;border-radius:16px;background:linear-gradient(135deg,#f2eaff,#effaf3);border:1px solid #dfd2f0; }
.photo-assistant-summary[hidden] { display:none; }
.photo-assistant-avatar { display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:50%;background:linear-gradient(145deg,#7551d4,#b171cf);color:#fff;font-size:20px; }
.photo-assistant-summary strong { font-size:13px;color:#513373; }
.photo-assistant-summary p { margin:5px 0 9px;font-size:12px;line-height:1.45;color:#514760; }
.photo-assistant-summary button { border:0;background:#6845a3;color:#fff;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:700; }
.spanish-food-results { display:grid;gap:7px;margin:7px 0 12px;max-height:260px;overflow:auto; }
.spanish-food-results button { display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:1px solid #e6deeb;border-radius:12px;padding:10px;background:#fff;color:#36333a; }
.spanish-food-results button small { display:block;color:#827987;font-size:10px;margin-top:3px; }
.spanish-food-results button strong { white-space:nowrap;color:#67419e;font-size:12px; }
.offline-ingredient strong { display:block;color:#6940ab;font-size:16px;margin:5px 0; }
.meal-result .result-top { gap:12px; }
.meal-result .result-top>div { min-width:0; }
.meal-result .result-top>strong { white-space:nowrap; }
.meal-result .estimate-note { line-height:1.5; }
.result-breakdown { margin:15px 0;display:grid;gap:9px;font-size:12px; }
.result-breakdown[hidden] { display:none; }
.result-breakdown>div { display:flex;justify-content:space-between;align-items:center;gap:12px; }
.result-breakdown strong { white-space:nowrap;color:#6940ab; }

.portion-row[hidden] { display:none; }

#android-photo-download[hidden] { display:none; }
.barcode-actions { display:flex;flex-wrap:wrap;gap:10px;margin:15px 0; }
.barcode-actions button[hidden] { display:none; }
.barcode-result { background:linear-gradient(120deg,#f1e9ff,#f2fbf3);border:1px solid #ded0f1;border-radius:16px;padding:18px;margin:14px 0; }
.barcode-result[hidden] { display:none; }
.barcode-result h3 { margin:0 0 10px;font-size:16px; }
.barcode-result>strong { display:block;color:#6940ab;font-size:24px; }
.barcode-result p,.barcode-result div { font-size:12px;line-height:1.5; }
