/* FEARX Food Map - kitchen.css
 * Weekly menu (/kitchen) in the same app style as the map: a sticky header with
 * week stepper, dated day tabs and allergen chips, then lunch and dinner cards.
 */
  .app[data-tab="kitchen"] #side-panel{display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
  .menu-overlay{display:none}

  /* Header */
  .kt-head{flex-shrink:0;background:var(--panel-bg);border-bottom:1px solid var(--border);padding:12px 18px 10px;display:flex;flex-direction:column;gap:10px}
  .kt-title-row{display:flex;align-items:center;gap:10px;min-width:0}
  .kt-titles{flex:1;min-width:0}
  .kt-head .menu-title{font-size:20px;font-weight:800;letter-spacing:-0.4px;line-height:1.15}
  .kt-head .toolbar{display:flex;gap:4px;align-items:center;flex-shrink:0}

  /* Week stepper */
  .kt-week{display:flex;align-items:center;gap:6px}
  .kt-week-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
  .kt-week-btn .ico{width:17px;height:17px}
  .kt-week-btn:disabled{opacity:.35;cursor:default}
  .kt-week-sel{position:relative;flex:1;min-width:0;display:flex;align-items:center}
  .kt-week-sel select{width:100%;appearance:none;-webkit-appearance:none;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:999px;height:36px;padding:0 34px 0 14px;font:inherit;font-size:13.5px;font-weight:700;text-align:center;text-align-last:center;cursor:pointer}
  .kt-week-sel .ico{position:absolute;right:12px;width:15px;height:15px;color:var(--muted);pointer-events:none}

  /* Day tabs with dates */
  .kt-days{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
  .kt-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px 8px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font:inherit}
  .kt-day-name{font-size:13.5px;font-weight:800}
  .kt-day-date{font-size:11px;color:var(--muted);font-weight:600}
  .kt-day-today{position:absolute;top:-7px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:800;line-height:1;padding:3px 6px;border-radius:999px;background:var(--accent-2);color:#fff;white-space:nowrap}
  .kt-day.active{background:var(--text);border-color:var(--text);color:var(--bg)}
  .kt-day.active .kt-day-date{color:var(--bg);opacity:.7}

  /* Allergen chips */
  .kt-allergens{display:flex;align-items:center;gap:8px;min-width:0}
  .kt-allergen-label{font-size:11.5px;font-weight:700;color:var(--muted);white-space:nowrap;flex-shrink:0}
  .menu-allergen-chips{display:flex;gap:5px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .menu-allergen-chips::-webkit-scrollbar{display:none}
  .menu-allergen-chip{flex:0 0 auto;background:var(--surface);border:1px solid var(--border);color:var(--text);padding:5px 11px;border-radius:999px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap}
  .menu-allergen-chip:hover{border-color:var(--muted)}
  .menu-allergen-chip.active{background:var(--accent-2);border-color:var(--accent-2);color:#fff}
  .menu-clear{flex-shrink:0;background:var(--panel-bg);border:0;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;padding:4px 2px}
  .menu-clear:hover{color:var(--text)}

  /* Body */
  .menu-body{flex:1;overflow-y:auto;padding:14px 18px 28px;-webkit-overflow-scrolling:touch}
  .kt-meals{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
  .kt-meal{background:var(--panel-bg);border:1px solid var(--border);border-radius:16px;overflow:hidden}
  .kt-meal-head{display:flex;align-items:baseline;gap:8px;padding:14px 16px 10px}
  .kt-meal-head h2{font-size:17px;font-weight:800;letter-spacing:-0.3px}
  .kt-count{font-size:12px;color:var(--muted);font-weight:600}
  .kt-meal.not-op .kt-meal-head h2{color:var(--muted)}
  .menu-not-op{color:var(--muted);font-size:13px;padding:6px 16px 18px}

  /* Photos: one row of three, last tile shows +N */
  .menu-photo-footer{padding:0 12px 4px;display:flex;flex-direction:column;gap:8px}
  .menu-photo-strip{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:100%;aspect-ratio:1.618/1;gap:4px;border-radius:12px;overflow:hidden}
  .menu-photo-strip.count-1{grid-template-columns:1fr}
  .menu-photo-strip.count-2{grid-template-columns:1fr 1fr}
  .menu-photo-tile{position:relative;display:block;height:100%;border:0;padding:0;background:var(--surface-2);cursor:zoom-in;overflow:hidden;font-family:inherit}
  .menu-photo-tile img{width:100%;height:100%;object-fit:cover;display:block}
  .menu-photo-tile.more::after{content:"+" attr(data-more);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;color:#fff;background:rgba(0,0,0,.5);z-index:4}
  .menu-photo-tile.is-video::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-40%,-50%);border-style:solid;border-width:11px 0 11px 18px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6));z-index:3}
  .menu-photo-tile.is-video.more::before{display:none}
  .menu-photo-tile.predicted{border:2px dashed var(--accent-2);opacity:.88;filter:saturate(.85)}
  .menu-photo-tile.predicted:hover{opacity:1;filter:saturate(1)}
  /* Full-width ribbon on top of predicted tile — always visible, high-contrast */
  .menu-predicted-ribbon{position:absolute;top:0;left:0;right:0;background:var(--accent-2);color:#fff;font-size:10.5px;font-weight:900;padding:3px 4px;letter-spacing:.5px;z-index:3;text-align:center;pointer-events:none;line-height:1.25;box-shadow:0 1px 3px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;gap:3px}
  /* Per-tile matched-dishes overlay (predicted only) — bottom band with names */
  .basis-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;font-size:9.5px;font-weight:700;padding:18px 6px 5px;line-height:1.25;letter-spacing:.1px;text-shadow:0 1px 2px rgba(0,0,0,.7);pointer-events:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;z-index:2;text-align:left}
  .menu-photo-tile.more .basis-overlay{display:none}
  /* Disclaimer block — warning-style accent background so users don't miss it */
  /* Center vertically — single-line text aligns with logo center; multi-line
     wraps under the body div (flex:1 column) so logo stays at first-line height. */
  .menu-predicted-disclaimer{font-size:11px;color:var(--text);line-height:1.45;padding:8px 10px;background:color-mix(in srgb, var(--accent-2) 14%, var(--panel-bg));border:1px solid var(--accent-2);border-radius:8px;display:flex;align-items:center;gap:8px}
  /* Claude Code bash-style thinking pulse — clean breathing scale + opacity, no rotation.
     Mirrors the spinner shown in the Claude Code CLI while Claude is thinking. */
  .menu-predicted-disclaimer .claude-logo{flex-shrink:0;width:18px;height:18px;color:#D97757;transform-origin:center;animation:claudeBashSpark 1.4s ease-in-out infinite;will-change:transform,opacity}
  :root[data-theme="light"] .menu-predicted-disclaimer .claude-logo{color:#C76742}
  @keyframes claudeBashSpark{
    0%,100%{transform:scale(.82);opacity:.55}
    50%{transform:scale(1.12);opacity:1}
  }
  @media (prefers-reduced-motion:reduce){
    .menu-predicted-disclaimer .claude-logo{animation:none;transform:scale(1);opacity:1}
  }
  .menu-predicted-disclaimer b{font-weight:800;color:var(--accent-text)}
  .menu-predicted-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
  .menu-predicted-basis{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:10.5px;line-height:1.35}
  .menu-predicted-basis .basis-label{font-weight:700;color:var(--muted);letter-spacing:.2px}
  .menu-predicted-basis .basis-chip{background:var(--surface);border:1px solid var(--border);color:var(--text);padding:1px 7px;border-radius:10px;font-weight:600;white-space:nowrap}

  /* Items */
  .menu-items{list-style:none;padding:4px 0 6px;margin:0}
  .menu-item{display:flex;flex-direction:column;gap:5px;padding:10px 16px;border-top:1px solid var(--border);transition:opacity .15s}
  .menu-item:first-child{border-top:0}
  .menu-item.dimmed{opacity:.3}
  .menu-item.dimmed .menu-item-name{text-decoration:line-through}
  .kt-item-names{display:flex;flex-direction:column;gap:1px}
  .menu-item-name{font-size:14.5px;font-weight:700;line-height:1.35}
  .kt-item-sub{font-size:12px;color:var(--muted);line-height:1.3}
  .kt-item-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  .menu-item-allergens{display:flex;flex-wrap:wrap;gap:4px}
  .menu-item-allergen{font-size:10.5px;font-weight:600;background:var(--surface-2);border-radius:999px;padding:3px 8px;color:var(--muted);line-height:1}
  .menu-item-allergen.hit{background:var(--accent-2);color:#fff}
  .menu-item-origin{font-size:11px;color:var(--muted)}

  /* Origin, contact */
  .kt-origin{margin-top:14px;background:var(--panel-bg);border:1px solid var(--border);border-radius:14px;padding:12px 16px;font-size:12px;color:var(--muted);line-height:1.55}
  .kt-origin summary{cursor:pointer;font-weight:800;color:var(--text);font-size:13px;list-style:none;display:flex;align-items:center;justify-content:space-between}
  .kt-origin summary::-webkit-details-marker{display:none}
  .kt-origin summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin-right:4px}
  .kt-origin[open] summary::after{transform:rotate(-135deg)}
  .kt-origin .menu-origin-line{margin-top:8px}
  .kt-origin em{color:var(--text);font-style:normal;font-weight:700}
  .kt-contact{margin-top:10px}
  .kt-origin a{color:var(--accent-text);font-weight:700;text-decoration:none}
  .menu-footnote-discord{display:inline-flex;align-items:center;gap:3px;vertical-align:middle}
  .menu-empty,.menu-loading{text-align:center;color:var(--muted);padding:60px 20px;font-size:13px}

  @media (max-width:860px){
    .kt-head{padding:10px 12px 8px;gap:8px}
    .kt-head .menu-title{font-size:18px}
    .kt-head .logo-mark{width:28px;height:28px}
    .kt-head .icon-btn{min-width:32px;height:32px}
    .kt-week-btn,.kt-week-sel select{height:34px}
    .kt-week-btn{width:34px}
    .kt-day{padding:6px 2px 7px;border-radius:10px}
    .kt-day-name{font-size:13px}
    .kt-allergen-label{display:none}
    .menu-allergen-chips{mask-image:linear-gradient(to right,#000 calc(100% - 20px),transparent)}
    .menu-body{padding:10px 10px 24px}
    .kt-meals{grid-template-columns:1fr;gap:10px}
    .kt-meal-head{padding:12px 14px 8px}
    .menu-item{padding:9px 14px}
    .menu-item-name{font-size:14px}
  }
