/*
 * まいログ DESIGN SYSTEM v3 — この1ファイルが色・余白・角丸・影・部品の最終決定。
 * styles.css / body.css（旧FITNESS OSの配置）の後に読み込み、新旧すべての画面に同じ見た目を与える。
 * 方針：白いカード＋やわらかい影（すりガラスのぼかしは使わない：重い・参考画像と違う）、
 *       空色〜ラベンダーの背景、48px以上のタップ領域、文字コントラスト4.5:1以上、動きは控えめ。
 */
:root {
  /* 面 */
  --bg: #f4f6fd;
  --card: #ffffff;
  --card-2: #f3f5fc;
  --sep: rgba(84, 98, 170, .13);
  /* 文字（白地で 4.5:1 以上） */
  --text: #232c58;
  --text-2: #56628a;
  --text-3: #6b7699;
  --navy: #232c58;
  --navy-2: #46527d;
  /* ブランド */
  --accent: #5b4fd6;
  --accent-2: #3d6fd3;
  --accent-soft: #eeebff;
  --grad-primary: linear-gradient(120deg, #6150dc, #4570d6);
  --sky-hero: linear-gradient(160deg, #cfeaff 0%, #dcdcff 52%, #f4ddff 100%);
  /* 記録の種類（文字色／淡い面） */
  --meal: #b3570d;        --meal-soft: #fff1e3;   --tone-meal: #ff9f4f;
  --workout: #4a5fd0;     --workout-soft: #e9eeff; --tone-workout: #6f8cf5;
  --mood: #9a6a00;        --mood-soft: #fff6d8;   --tone-mood: #ffc93d;
  --task: #13805e;        --task-soft: #e1f6ee;   --tone-task: #3cc495;
  --body: #6e4fd0;        --body-soft: #f0eaff;   --tone-body: #a586f5;
  /* 栄養 */
  --kcal: #b85512;
  --protein: #13805e;     --tone-protein: #3cc495;
  --fat: #a45f00;         --tone-fat: #ffb53d;
  --carbs: #2f62c4;       --tone-carbs: #5f95f5;
  /* 入力 */
  --edit-bg: #fbfcff;
  --edit-border: #cfd5ee;
  --edit-focus: #6b5ee6;
  --success: #13805e;
  --danger: #c23a5b;
  /* 形 */
  --radius: 22px;
  --radius-sm: 15px;
  --radius-xs: 11px;
  --tap: 48px;
  --shadow: 0 1px 3px rgba(52, 64, 140, .05), 0 8px 24px rgba(52, 64, 140, .07);
  --shadow-lift: 0 2px 6px rgba(52, 64, 140, .08), 0 14px 32px rgba(52, 64, 140, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', system-ui, sans-serif;
  /* 旧CSSのすりガラス変数を無効化（同じ見た目・軽い描画） */
  --glass: var(--card);
  --glass-strong: var(--card);
  --glass-tile: var(--card);
  --blur: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12142a; --card: #1e2140; --card-2: #282c52; --sep: rgba(196, 206, 255, .14);
    --text: #f3f4ff; --text-2: #c3c9e6; --text-3: #a9b0d2; --navy: #f3f4ff; --navy-2: #c8cff5;
    --accent: #ab9fff; --accent-2: #8fb6ff; --accent-soft: #2f2b58;
    --grad-primary: linear-gradient(120deg, #5e4fd6, #3e66c8);
    --sky-hero: linear-gradient(160deg, #22355e 0%, #2d2c5e 55%, #3d2c58 100%);
    --meal: #ffb87a; --meal-soft: #3a2a24; --workout: #a9b9ff; --workout-soft: #262f57;
    --mood: #ffd56b; --mood-soft: #3a3320; --task: #6fe0b5; --task-soft: #1d3a33;
    --body: #c8b5ff; --body-soft: #322a55;
    --kcal: #ffb27a; --protein: #6fe0b5; --fat: #ffd06b; --carbs: #9cbcff;
    --edit-bg: #242748; --edit-border: #474d7e; --edit-focus: #ab9fff;
    --success: #6fe0b5; --danger: #ff8fa6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .22);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 30px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

/* ── 土台 ── */
html { background: var(--bg); }
body {
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 120% 420px at 10% -60px, rgba(150, 205, 255, .30), transparent 70%),
                    radial-gradient(ellipse 90% 380px at 100% 60px, rgba(198, 168, 255, .22), transparent 70%);
  background-repeat: no-repeat;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  body { background-image: radial-gradient(ellipse 120% 420px at 10% -60px, rgba(70, 110, 200, .22), transparent 70%); }
}
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button:not(:disabled), a, summary { touch-action: manipulation; }
h1, h2, h3, h4 { letter-spacing: -.02em; color: var(--text); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tiny, .small, .muted { line-height: 1.6; }
.muted { color: var(--text-2); }
main.content { --gutter: 16px; max-width: 640px; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
/* 横にスクロールする列は画面端まで伸ばすが、ページ自体は横スクロールさせない */
.record-category-nav { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); max-width: none; }
main.content { overflow-x: clip; }

/* ── ヘッダー・下部ナビ（ぼかしなしの不透明面） ── */
.app-header, .tabbar, .sheet-footer, .toast {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.app-header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--sep); box-shadow: none; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.date-main { color: var(--text); font-weight: 700; letter-spacing: -.03em; }
.date-sub.is-today { color: var(--accent); }
.date-button, .icon-btn { border-radius: 14px; min-width: 44px; min-height: 44px; }
.icon-btn { color: var(--accent); }
.date-button:active, .icon-btn:active { background: var(--accent-soft); }
.today-pill { color: #fff; background: var(--grad-primary); min-height: 36px; padding: 6px 13px; border-radius: 999px; }
.tabbar {
  background: color-mix(in srgb, var(--card) 97%, transparent);
  border-top: 1px solid var(--sep);
  box-shadow: 0 -6px 24px rgba(60, 70, 150, .07);
  padding-top: 4px;
}
.tab { border-radius: 14px; color: var(--text-3); font-weight: 600; font-size: 11px; min-height: 52px; transition: color .12s ease; }
.tab[aria-current='page'] { color: var(--accent); }
.tab[aria-current='page'] > .icon { stroke-width: 2.5; filter: none; }
.tab-plus-circle { background: var(--grad-primary); border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(91, 79, 214, .32); }
.tab-plus-label { font-weight: 700; color: var(--accent); }

/* ── カード・見出し ── */
.card, .mx-card, .day-chart-card, .day-mood-card, .day-editor, .day-timeline-list, .day-time-map-card,
.day-connected-tile, .profile-option, .quick-choice, .life-report, .week-panel, .next-panel,
.settings-group > .card, .lib-group {
  background: var(--card);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .mx-card, .day-chart-card { padding: 16px; }
.card.flush { padding: 0; }
.mx-card { margin: 0 0 14px; }
.mx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.mx-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.mx-note { color: var(--text-2); font-size: 12px; font-weight: 650; line-height: 1.5; }
.section-title { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.section-title .dot { width: 9px; height: 9px; border-radius: 50%; }
:where(.week-title, .next-head h2, .day-panel-title h3, .meal-name, .wx-name) { color: var(--text); }

/* ── ボタン ── */
.btn, .day-submit, .day-home-add-submit {
  min-height: var(--tap); border-radius: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .09s var(--ease), filter .12s ease, background-color .12s ease;
}
.btn:active:not(:disabled), .day-submit:active, .mx-quick-item:active, .mx-guide-item:active, .profile-option:active, .quick-choice:active, .mx-mood:active:not(:disabled) {
  transform: scale(.97);
}
.btn-primary, .day-submit, .day-home-add-submit { background: var(--grad-primary); color: #fff; border: 0; box-shadow: 0 5px 14px rgba(91, 79, 214, .2); }
.btn-meal { background: var(--meal-soft); color: var(--meal); border: 1px solid color-mix(in srgb, var(--meal) 20%, transparent); }
.btn-workout { background: var(--workout-soft); color: var(--workout); border: 1px solid color-mix(in srgb, var(--workout) 20%, transparent); }
.btn-tint { background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.btn-plain { background: var(--card-2); color: var(--text); border: 1px solid var(--sep); }
.btn-danger { border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); }
.btn.is-busy, button.is-busy { opacity: .7; pointer-events: none; }

/* ── 入力 ── */
.input, input[type='text'], input[type='number'], input[type='search'], input[type='date'], input[type='time'],
input[type='email'], input[type='tel'], input[type='password'], select, textarea {
  color: var(--text); border: 1px solid var(--edit-border); background-color: var(--edit-bg); border-radius: 13px; min-height: 46px;
  font-size: 16px; /* iPhone で入力時に拡大されない */
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--edit-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); outline: none; }
[aria-invalid='true'] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent) !important; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); }
.field { color: var(--text-2); }
.seg { background: var(--card-2); border-radius: 15px; padding: 3px; border: 1px solid var(--sep); }
.seg button, .seg .seg-link { border-radius: 12px; min-height: 44px; font-weight: 700; color: var(--text-2); }
.seg button[aria-pressed='true'], .seg .seg-link[aria-current='page'] { background: var(--card); color: var(--accent); box-shadow: 0 2px 8px rgba(45, 49, 126, .1); }

/* ── シート・ダイアログ・トースト ── */
:where(.sheet, .dialog, .quick-panel) { background: var(--card); border: 1px solid var(--sep); box-shadow: 0 18px 45px rgba(18, 27, 84, .18); }
.sheet-header { background: var(--card); border-bottom: 1px solid var(--sep); }
.sheet-footer { background: var(--card); }
.sheet-title { font-weight: 700; }
.sheet-backdrop, .quick-backdrop { background: rgba(30, 36, 82, .46); }
.toast { background: #2a3163; color: #fff; border-radius: 999px; box-shadow: 0 10px 26px rgba(20, 26, 70, .28); }
.quick-panel-top { background: var(--sky-hero); border-radius: 18px; }
.quick-choice { min-height: 84px; transition: transform .1s var(--ease); }
.quick-choice-emoji { font-size: 26px; }

/* ── 共通のヒーロー（ホーム・記録・分析・マイページ・体型） ── */
.mx-hero, .record-intro, .hx-hero, .profile-hero, .bm-hero, .day-intro {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--sky-hero);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(90, 110, 200, .14);
}
.mx-hero::before, .record-intro::before, .hx-hero::before, .profile-hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .34);
}
.mx-hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -60px; bottom: -120px; width: 300px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .22);
}
@media (prefers-color-scheme: dark) {
  .mx-hero, .record-intro, .hx-hero, .profile-hero, .bm-hero, .day-intro { border-color: rgba(255, 255, 255, .07); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
  .mx-hero::before, .record-intro::before, .hx-hero::before, .profile-hero::before { background: rgba(255, 255, 255, .05); }
  .mx-hero::after { background: rgba(255, 255, 255, .03); }
}
.record-intro, .hx-hero { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; align-items: center; padding: 16px; min-height: 112px; margin: 0 0 14px; }
.record-intro strong, .hx-hero h2 { color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.4; margin: 4px 0; }
.record-intro p, .hx-hero p { color: var(--text-2); font-size: 12.5px; line-height: 1.6; margin: 4px 0 0; }
.hx-hero small { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.record-buddy, .hx-hero-buddy { width: 92px; height: 92px; object-fit: contain; }
.profile-hero { padding: 16px; }
.profile-hero h2 { color: var(--text); font-weight: 800; line-height: 1.4; }
.profile-mascot { width: 104px; height: 104px; object-fit: contain; background: transparent; border-radius: 0; }
.bm-hero h2 { font-weight: 800; }
.day-intro h2 { color: var(--text); font-weight: 700; }

/* ── ホーム：ファーストビュー ── */
.mx-hero { padding: 16px 12px 12px; margin: 2px 0 12px; }
.mx-hero-head { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: end; gap: 4px; min-height: 112px; }
.mx-hero-copy { padding: 0 0 16px 4px; min-width: 0; }
.mx-hero-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--text); }
.mx-hero-sub { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.mx-hero-buddy { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.mx-buddy { width: 136px; height: 136px; object-fit: contain; margin-bottom: -30px; position: relative; z-index: 2;
  transform-origin: 50% 90%; animation: mx-float 4.8s ease-in-out infinite; }
.mx-buddy.is-react { animation: mx-react .7s var(--ease) 1, mx-float 4.8s ease-in-out .7s infinite; }
.mx-bubble {
  position: relative; display: inline-block; margin: 12px 0 0; width: fit-content; max-width: 100%;
  padding: 8px 13px; border-radius: 16px;
  font-size: 13px; font-weight: 700; line-height: 1.45;
  color: #3b4785; background: #fff; box-shadow: 0 6px 16px rgba(70, 90, 170, .14);
}
.mx-bubble::after { /* 相棒に向かうしっぽ */
  content: ''; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: inherit; border-radius: 3px; transform: rotate(45deg);
}
@keyframes mx-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-1.2deg); } }
@keyframes mx-react { 0% { transform: scale(1); } 30% { transform: scale(1.08, .92) translateY(2px); } 60% { transform: scale(.96, 1.06) translateY(-8px); } 100% { transform: scale(1); } }
.mx-hero .mx-summary.card { position: relative; z-index: 1; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; padding: 12px 14px 8px; box-shadow: 0 6px 20px rgba(80, 96, 180, .1); }
@media (prefers-color-scheme: dark) {
  .mx-hero .mx-summary.card { background: rgba(24, 27, 54, .82); border-color: rgba(255, 255, 255, .06); }
  .mx-bubble { color: #2f3a78; background: #f4f4ff; }
}
.mx-gauge-wrap { position: relative; display: grid; place-items: center; margin: -4px auto 0; width: min(206px, 100%); }
.mx-gauge.kcal-ring { width: 100%; height: auto; display: block; overflow: visible; flex: none; }
.mx-gauge .ring-fill { animation: none; }
.mx-gauge .ring-track { fill: none; stroke: #e8ecf8; stroke-width: 17; stroke-linecap: round; }
.mx-gauge .ring-fill { fill: none; stroke: url(#mx-gauge-grad); stroke-width: 17; stroke-linecap: round; filter: none; transition: stroke-dasharray .6s var(--ease); }
.mx-gauge.is-over .ring-fill { stroke: #ff8a7a; }
@media (prefers-color-scheme: dark) { .mx-gauge .ring-track { stroke: #303560; } }
.mx-gauge-center { position: absolute; inset: 21% 0 auto; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mx-gauge-icon { font-size: 22px; }
.mx-gauge-num { font-size: 42px; font-weight: 800; letter-spacing: -.04em; color: var(--text); margin-top: 2px; }
.mx-gauge-unit { font-size: 16px; font-weight: 700; color: var(--text); }
.mx-gauge-target { font-size: 12px; font-weight: 700; color: var(--text-2); margin-top: 6px; }
.mx-gauge-left { text-align: center; margin: -10px 0 8px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.mx-gauge-left.is-over { color: var(--danger); }
.mx-empty-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: -12px 0; color: var(--meal); font-weight: 700; text-decoration: none; }
.mx-pfc-row.pfc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--sep); padding-top: 12px; margin-top: 2px; }
.mx-pfc .label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.mx-pfc .label i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mx-pfc .value { margin: 4px 0 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mx-pfc .value b { font-size: 19px; font-weight: 800; color: var(--text); }
.mx-pfc .bar { height: 7px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.mx-pfc .bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.mx-pfc.c-protein .label i, .mx-pfc.c-protein .bar i { background: var(--tone-protein); }
.mx-pfc.c-fat .label i, .mx-pfc.c-fat .bar i { background: var(--tone-fat); }
.mx-pfc.c-carbs .label i, .mx-pfc.c-carbs .bar i { background: var(--tone-carbs); }
.mx-summary .daily-focus { margin-top: 8px; border-top: 1px solid var(--sep); }
.mx-summary .daily-focus > summary { min-height: 44px; padding: 0; display: flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); }
.mx-summary .summary-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: var(--text-2); margin-top: 0; padding: 0; border: 0; }
.mx-hero-body { position: relative; }
.mx-hero-body > [data-testid='summary'] { margin: 0; }
.mx-hero-link { position: absolute; z-index: 2; top: 4px; right: 4px; display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--accent); font-size: 12.5px; font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) { .mx-hero-link { color: #d8d3ff; } }

/* クイック記録 */
.mx-quick.home-quick-starts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.mx-quick-item.home-quick-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 82px; padding: 8px 2px; border-radius: 18px; text-decoration: none;
  background: var(--card); border: 1px solid var(--sep); box-shadow: var(--shadow); color: var(--text);
  transition: transform .09s var(--ease);
}
.mx-quick-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; font-size: 23px; }
.mx-quick-item strong { font-size: 12px; font-weight: 700; white-space: nowrap; }
.tone-meal .mx-quick-icon { background: var(--meal-soft); }
.tone-workout .mx-quick-icon { background: var(--workout-soft); }
.tone-mood .mx-quick-icon { background: var(--mood-soft); }
.tone-task .mx-quick-icon { background: var(--task-soft); }
.tone-body .mx-quick-icon { background: var(--body-soft); }

/* 気分 */
.day-teaser { display: block; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; min-height: 0; }
.mx-mood-row.day-mood-tap-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mx-mood.day-mood-tap-button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; padding: 6px 0 4px;
  background: transparent; border: 0; border-radius: 16px; color: var(--text-2); font: inherit;
}
.mx-mood-emoji { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 30px; background: var(--card-2);
  transition: transform .15s var(--ease), box-shadow .15s ease, background-color .15s ease; }
.mx-mood small { font-size: 11px; font-weight: 600; white-space: nowrap; }
.mx-mood.is-current .mx-mood-emoji { background: var(--mood-soft); box-shadow: 0 0 0 3px #ff9fbd, 0 6px 14px rgba(255, 120, 160, .25); transform: scale(1.06); }
.mx-mood.is-current small { color: var(--text); font-weight: 800; }
.mx-mood.is-pop .mx-mood-emoji { animation: mx-pop .45s var(--ease); }
@keyframes mx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1.06); } }
.day-mood-tap-history { margin: 10px 0 0; text-align: center; }
.mx-link-card { display: flex; align-items: center; gap: 10px; min-height: 56px; text-decoration: none; color: var(--text); font-weight: 700; }
.mx-link-card b { margin-left: auto; color: var(--text-3); }

/* やること */
.mx-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #b0305d; background: #ffe6ef; }
.mx-pill.is-good { color: var(--task); background: var(--task-soft); }
.mx-progress { position: relative; height: 22px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin: 0 0 8px; }
.mx-progress i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #6fd9b3, #3cc495); transition: width .5s var(--ease); }
.mx-progress span { position: relative; display: flex; align-items: center; height: 100%; padding: 0 10px; font-size: 11.5px; font-weight: 700; color: var(--text); }
.mx-task { display: flex; align-items: center; gap: 6px; min-height: 54px; border-bottom: 1px solid var(--sep); transition: opacity .25s ease; }
.mx-task:last-child { border-bottom: 0; }
.mx-check { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-left: -6px; padding: 0; border: 0; background: transparent; color: transparent; }
.mx-check::before { content: ''; position: absolute; }
.mx-check .icon { width: 28px; height: 28px; padding: 4px; border-radius: 9px; border: 2px solid #b9c1df; stroke: currentColor; stroke-width: 3;
  transition: background-color .18s ease, border-color .18s ease, transform .18s var(--ease); box-sizing: border-box; }
.mx-check.is-on { color: #fff; }
.mx-check.is-on .icon { background: var(--tone-task); border-color: var(--tone-task); }
.mx-task-copy { min-width: 0; display: flex; flex-direction: column; }
.mx-task-copy strong { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.mx-task-copy small { font-size: 12px; color: var(--text-2); }
.mx-task.is-done .mx-task-copy strong { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 70%, transparent); }
.mx-task.is-completing .mx-check { color: #fff; }
.mx-task.is-completing .mx-check .icon { background: var(--tone-task); border-color: var(--tone-task); transform: scale(1.18); }
.mx-task.is-completing .mx-task-copy strong { text-decoration: line-through; }
.mx-task.is-completing { opacity: .6; }
.mx-done-list { margin-top: 4px; }
.mx-empty { display: flex; align-items: center; gap: 12px; padding: 6px 0 10px; }
.mx-empty img { width: 56px; height: 56px; flex: none; }
.mx-empty p { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.6; }
.mx-tasks.is-all-done .mx-empty p { color: var(--task); }
.mx-add.day-home-add-task { margin-top: 6px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 15px; background: transparent; }
.mx-add > summary { min-height: 48px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); cursor: pointer; list-style: none; }
.mx-add > summary::-webkit-details-marker { display: none; }
.mx-add .day-home-add-form { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; padding: 0 10px 10px; }
.mx-add .day-home-add-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.mx-add .day-home-add-submit { grid-column: 1 / -1; }
.mx-more { display: flex; justify-content: center; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* 旧 .day-home-tasks の箱は使わない（カードの中の一覧） */
.mx-tasks .day-home-tasks { border: 0; background: none; padding: 0; margin: 0; box-shadow: none; border-radius: 0; }

/* 今日のおすすめ */
.mx-guide { background: linear-gradient(140deg, #fffaf0, var(--card) 60%); }
@media (prefers-color-scheme: dark) { .mx-guide { background: var(--card); } }
.mx-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mx-guide-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 16px;
  background: var(--card-2); color: var(--text); text-decoration: none; transition: transform .09s var(--ease); }
.mx-guide-emoji { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--card); font-size: 22px; }
.mx-guide-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-guide-copy strong { font-size: 14.5px; font-weight: 700; }
.mx-guide-copy > span { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.mx-guide-copy small { font-size: 11px; color: var(--text-3); }
.mx-guide-go { margin-left: auto; font-size: 20px; color: var(--text-3); }

/* ── 旧FITNESS OSのカードを同じ質感に ── */
.next-panel, .week-panel { padding: 16px; margin: 0 0 14px; }
.next-guide { margin: -2px 0 12px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.next-count { color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.next-main { color: #fff; background: var(--grad-primary); border-radius: 18px; box-shadow: 0 8px 20px rgba(91, 79, 214, .2); }
.next-item { background: var(--card-2); border: 1px solid var(--sep); border-radius: 14px; min-height: 48px; }
.week-dots { background: var(--card-2); border: 0; border-radius: 16px; padding: 12px 8px; }
.week-dot { color: var(--text-2); }
.week-dot.is-current .week-dot-mark { box-shadow: 0 0 0 4px var(--accent-soft); }
.week-stat, .bm-stat { border-radius: 16px; background: var(--card-2); border: 0; }
.bm-stat strong { color: var(--text); font-weight: 700; }
.home-section-nav button { min-height: 44px; border-radius: 999px; }
.meal-card { padding: 0; overflow: hidden; border-radius: var(--radius); }
.meal-head { border-bottom: 1px solid var(--sep); background: linear-gradient(95deg, var(--meal-soft), var(--card) 70%); }
.wx-card, .wx-reuse { border: 1px solid var(--sep); border-radius: var(--radius); overflow: hidden; }
.wx-head { border-bottom: 1px solid var(--sep); background: linear-gradient(95deg, var(--workout-soft), var(--card) 70%); }
.meal-name, .wx-name { font-weight: 700; }
.meal-empty, .meal-pfc, .wx-note, .wx-completion-hint { color: var(--text-2); }
.profile-option { min-height: 72px; border-radius: 18px; }
.profile-option-emoji { border-radius: 14px; background: var(--accent-soft); }
.profile-option-text strong { font-weight: 700; }
.settings-group h3 { color: var(--text-2); font-size: 13px; font-weight: 700; }
.kv, .lib-row, .library-controls { border-color: var(--sep); }
.kv > span:first-child { flex: none; white-space: nowrap; }
.kv > span:last-child { min-width: 0; }
.record-filter-chip { border-radius: 999px; background: var(--card); border: 1px solid var(--sep); min-height: 44px; font-weight: 700; color: var(--text-2); }
.record-filter-chip.is-active { background: var(--grad-primary); color: #fff; border-color: transparent; }
.record-category-nav { scrollbar-width: none; gap: 7px; }
.day-kind-button { border-radius: 18px; box-shadow: var(--shadow); }
.day-kind-button.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.day-quick-btn, .day-mood-chip { border-radius: 14px; min-height: 44px; }
.day-mood-chip.selected { border-color: var(--accent); background: var(--accent-soft); }
.day-event-time { color: var(--accent); }
.day-event-symbol { background: var(--accent-soft); }

/* ── 記録：種類の切り替えを1列に、任意項目は折りたたむ ── */
.day-kind-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.day-kind-button { min-height: 64px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--card); border: 1px solid var(--sep); }
.day-kind-button > span { font-size: 21px; line-height: 1; }
.day-kind-button strong { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.day-kind-button small { display: none; }
.day-kind-button.active { background: var(--accent-soft); color: var(--accent); }
.day-more { margin: 2px 0 10px; border-radius: 14px; background: var(--card-2); }
.day-more > summary { min-height: 46px; display: flex; align-items: center; padding: 0 14px; font-size: 13.5px; font-weight: 700; color: var(--accent); cursor: pointer; list-style: none; }
.day-more > summary::-webkit-details-marker { display: none; }
.day-more[open] { padding-bottom: 6px; }
.day-more .day-single-field { padding: 0 12px; }

/* 記録の時刻欄は「12:00」が切れない幅に */
.day-form-row { grid-template-columns: minmax(136px, 1fr) minmax(0, 1.5fr); }
.day-form-row input[type='time'] { min-width: 0; width: 100%; padding-right: 6px; }
/* 食事の見出し：長い名前（補食・プロテイン）でも「未記録」を縦書きにしない */
.meal-head { gap: 8px; }
.meal-head .meal-name { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.meal-head .meal-empty, .meal-head .meal-kcal { flex: none; white-space: nowrap; }

/* 体型画面の6つの移動ボタンは1列の横スクロールにまとめて、測定欄を上に出す。
   食品の種類（6つ）は「全部が横スクロールなしで見える」を優先して、従来の3列×2段のまま */
.bm-jumps {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin-left: calc(-1 * var(--gutter, 16px)); margin-right: calc(-1 * var(--gutter, 16px));
  padding: 2px var(--gutter, 16px) 6px;
}
.bm-jumps::-webkit-scrollbar { display: none; }
.bm-jumps .quick-jump { flex: none; min-height: 44px; padding: 6px 15px; border-radius: 999px; white-space: nowrap; scroll-snap-align: start; font-size: 14px;
  background: var(--card); color: var(--text-2); border: 1px solid var(--sep); font-weight: 700; }
.bm-jumps .quick-jump:first-child { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* ── 分析：カロリーの棒グラフ ── */
.hx-bars.hx-chart { display: block; height: auto; margin: 14px 0 0; gap: 0; }
.hx-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.hx-chart .hx-axis { stroke: var(--sep); stroke-width: 1; }
.hx-chart .hx-none { fill: color-mix(in srgb, var(--text-3) 22%, transparent); }
.hx-chart .hx-wk { fill: var(--tone-workout); }
.hx-chart .hx-target-line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.hx-chart .hx-tl { fill: var(--accent); font-size: 10.5px; font-weight: 700; text-anchor: end; }
.hx-chart .hx-xl { fill: var(--text-2); font-size: 11px; font-weight: 700; text-anchor: middle; }
.hx-explain { margin-top: 6px; }
.hx-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); margin: 0 0 6px; }
.hx-key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 2px; }
.hx-key.kcal { background: linear-gradient(#ffc06a, #ff9049); }
.hx-key.target { height: 0; border-top: 2px dashed var(--accent); border-radius: 0; }
.hx-key.workout { border-radius: 50%; background: var(--tone-workout); }
.hx-read { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--card-2); font-size: 13px; line-height: 1.65; color: var(--text); }

/* ── 達成の紙吹雪・はじめての案内 ── */
.fx-confetti { position: fixed; z-index: 90; width: 0; height: 0; pointer-events: none; }
.fx-confetti i { position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 3px; opacity: 0;
  animation: fx-burst 1s cubic-bezier(.15, .8, .3, 1) forwards; }
@keyframes fx-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(var(--rot)) scale(1); }
}
.mx-hint { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 44px 12px 12px;
  border-radius: 18px; background: var(--card); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.mx-hint[hidden] { display: none; }
.mx-hint img { flex: none; }
.mx-hint strong { font-size: 14px; font-weight: 800; }
.mx-hint p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.mx-hint-close { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; color: var(--text-3); font-size: 20px; }

/* ── 小さい画面・大きい画面 ── */
@media (max-width: 359px) {
  main.content { --gutter: 12px; }
  .mx-hero-head { grid-template-columns: minmax(0, 1fr) 104px; }
  .mx-buddy { width: 104px; height: 104px; }
  .mx-hero-title { font-size: 22px; }
  .mx-bubble { font-size: 12px; padding: 7px 10px; }
  .mx-gauge-num { font-size: 38px; }
  .mx-quick.home-quick-starts { gap: 5px; }
  .mx-quick-item.home-quick-link { min-height: 74px; }
  .mx-quick-icon { width: 38px; height: 38px; font-size: 20px; }
  .mx-quick-item strong { font-size: 11px; }
  .mx-mood-emoji { width: 44px; height: 44px; font-size: 26px; }
  .mx-pfc .value b { font-size: 16px; }
}
@media (min-width: 600px) {
  .mx-hero { padding: 24px 22px 18px; }
  .mx-hero-head { grid-template-columns: minmax(0, 1fr) 160px; }
  .mx-buddy { width: 160px; height: 160px; }
  .mx-hero-title { font-size: 30px; }
}

/* 縦が短い画面（Safariのタブ表示など）ではヒーローを詰めて、クイック記録を近づける */
@media (max-height: 720px) {
  .mx-hero-head { min-height: 96px; }
  .mx-hero-title { font-size: 22px; }
  .mx-hero-sub { font-size: 14px; margin-top: 3px; }
  .mx-bubble { margin-top: 8px; padding: 6px 11px; }
  .mx-buddy { width: 112px; height: 112px; margin-bottom: -24px; }
  .mx-gauge-wrap { width: min(176px, 100%); }
  .mx-gauge-num { font-size: 36px; }
  .mx-gauge-icon { font-size: 18px; }
}

/* ── 動きを減らす設定 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mx-buddy, .mx-buddy.is-react { animation: none !important; }
  html { scroll-behavior: auto !important; }
}

/* ── 料理と買い物 ── */
.kc-tabs { margin: 4px 0 14px; }
.kc-tabs .seg-link { font-size: 14px; padding: 0 4px; text-align: center; white-space: nowrap; }
@media (max-width: 360px) { .kc-tabs .seg-link { font-size: 12.5px; } }
.kc-body > * + * { margin-top: 12px; }
.kc-plan h2 { margin: 0; font-size: 19px; }
.kc-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kc-people, .kc-dish-n, .kc-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.kc-num { width: 4.6em; min-height: 44px; text-align: center; padding: 6px; }
.kc-dishes { display: grid; gap: 8px; margin: 12px 0 0; }
.kc-dish { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 12px; border-radius: var(--radius-sm); background: var(--card-2); }
.kc-dish-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-dish-name small { color: var(--text-3); font-size: 12px; }
.kc-actions { display: flex; gap: 8px; margin-top: 12px; }
.kc-actions-wrap { flex-wrap: wrap; }
.kc-actions .btn { flex: 1 1 auto; }
.kc-manual { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 10px; }
.kc-manual .input[type="text"] { grid-column: 1 / -1; }
.kc-kind { width: auto; min-width: 0; padding-right: 26px; }
.kc-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.kc-progress-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.kc-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tone-task), var(--task)); border-radius: inherit; transition: width .3s ease; }
.kc-groups { display: grid; gap: 12px; }
.kc-group { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 12px 4px; }
.kc-group-title { display: flex; align-items: baseline; gap: 8px; margin: 2px 4px 6px; font-size: 16px; }
.kc-group-title small { color: var(--text-3); font-weight: 700; font-size: 12px; }
.kc-items { list-style: none; margin: 0; padding: 0; }
.kc-item { border-top: .5px solid var(--sep); padding: 8px 0; }
.kc-item:first-child { border-top: 0; }
.kc-item-main { display: flex; align-items: center; gap: 10px; }
.kc-check { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--edit-border); background: var(--edit-bg); color: transparent; display: grid; place-items: center; }
.kc-check[aria-pressed='true'] { background: var(--task); border-color: var(--task); color: #fff; }
.kc-item-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-item-name { font-size: 16px; overflow-wrap: anywhere; }
.kc-amount { margin-left: 8px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.kc-item-copy small { color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }
.kc-item.is-bought .kc-item-name { color: var(--text-2); }
.kc-item.is-have .kc-item-name { color: var(--text-3); text-decoration: line-through; }
.kc-have { flex: none; min-height: 36px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--sep); background: var(--card); font-size: 12px; font-weight: 700; color: var(--text-2); }
.kc-have[aria-pressed='true'] { background: var(--card-2); }
.kc-item-buy { display: grid; grid-template-columns: minmax(0, 7em) minmax(0, 1fr); gap: 6px; margin: 8px 0 2px 54px; }
.kc-price-wrap { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text-2); }
.kc-price, .kc-store { min-height: 44px; min-width: 0; width: 100%; }
.kc-spend-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kc-spend-row div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card-2); }
.kc-spend-row small { font-size: 12px; font-weight: 700; color: var(--text-2); }
.kc-spend-row b { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.kc-stores { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.kc-stores li, .kc-past-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; font-size: 14px; }
.kc-stores small, .kc-past-list small { color: var(--text-3); }
.kc-past { display: grid; gap: 8px; }
.kc-past-item summary, .kc-cooked summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.kc-past-item summary::-webkit-details-marker, .kc-cooked summary::-webkit-details-marker { display: none; }
.kc-past-date { font-size: 13px; font-weight: 700; color: var(--text-2); }
.kc-past-title { flex: 1; min-width: 8em; font-weight: 700; overflow-wrap: anywhere; }
.kc-past-item summary small { color: var(--text-3); font-size: 12px; }
.kc-past-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.kc-recipe-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.kc-recipes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.kc-recipe-card { padding: 12px; }
.kc-recipe-card h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.kc-recipe-card .chips { gap: 6px; }
.kc-recipe-card .chip { padding: 6px 12px; font-size: 14px; }
.kc-tags { margin: 0; }
.field.kc-inline { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
.kc-recipe-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.kc-pick-list { display: grid; gap: 12px; margin-top: 12px; }
.kc-pick-dish { display: grid; gap: 6px; }
.kc-recipe-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kc-recipe-title h2 { margin: 0; font-size: 22px; }
.kc-ing h3, .kc-steps h3, .kc-memo h3 { font-size: 15px; margin: 16px 0 6px; color: var(--text-2); }
.kc-ing-list { list-style: none; padding: 0; margin: 0; border-radius: var(--radius-sm); background: var(--card-2); }
.kc-ing-list li { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-top: .5px solid var(--sep); }
.kc-ing-list li:first-child { border-top: 0; }
.kc-ing-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kc-ing-list li small { color: var(--text-3); font-size: 11px; }
.kc-steps ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; line-height: 1.55; }
.kc-memo p { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.kc-text { min-height: 96px; resize: vertical; line-height: 1.5; }
.kc-danger { color: var(--danger); }
.kc-stars { display: flex; gap: 4px; }
.kc-star { width: 44px; height: 44px; border: 0; background: none; color: var(--edit-border); display: grid; place-items: center; }
.kc-star[aria-pressed='true'] { color: #f5b400; }
.kc-two { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.kc-cook-for { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 18px; }
.kc-cook-for small { color: var(--text-3); font-size: 13px; }
.kc-cooked-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-cooked-name small { color: var(--text-3); font-size: 12px; }
.kc-cooked-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--text-2); }
.kc-cooked-meta b { font-size: 17px; color: var(--accent); }
.kc-logs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.kc-log { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card-2); }
.kc-log-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kc-log-head span { color: var(--text-2); font-size: 13px; }
.kc-log-stars { color: #d79a00 !important; letter-spacing: 1px; }
.kc-log p { margin: 4px 0; }
.kc-log-text { white-space: pre-wrap; line-height: 1.5; }
.kc-log-text small { display: block; color: var(--text-3); font-size: 11px; font-weight: 700; }
@media (max-width: 360px) {
  .kc-item-buy { margin-left: 0; }
  .kc-recipe-top { grid-template-columns: 1fr; }
}
.mx-kitchen { padding: 10px 16px; }
.mx-kitchen-emoji { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--meal-soft); flex: none; }
.mx-kitchen-copy { display: flex; flex-direction: column; min-width: 0; }
.mx-kitchen-copy small { color: var(--text-3); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-recipes > .kc-count, .kc-recipes > .kc-more, .kc-recipes > .empty { grid-column: 1 / -1; margin: 0; }
