/* ヨルミツ AIコンシェルジュ ＋ 左メニュー（style.css の後に読み込む） */

/* ---------- ヘッダー：メニューボタン ---------- */
.header-left { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2DFF0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-btn:active { background: rgba(255, 255, 255, 0.16); }

/* ---------- 左メニュー（ドロワー） ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 18, 0.6);
  backdrop-filter: blur(2px);
  z-index: 60;
}
.side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(300px, 84vw);
  z-index: 61;
  background: linear-gradient(180deg, #221B3D 0%, #161129 100%);
  border-right: 1px solid rgba(255, 94, 142, 0.35);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
  padding: calc(16px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.22s ease-out, visibility 0s linear 0.22s;
}
.side-drawer.open {
  transform: none;
  visibility: visible;
  transition: transform 0.22s ease-out;
}
html.drawer-locked, html.drawer-locked body { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-head .brand-logo { font-size: 22px; }
.drawer-cta {
  width: 100%;
  background: var(--gold-btn);
  color: var(--gold-text);
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.25);
}
.drawer-sec {
  margin: 18px 6px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--neon-pink);
}
.drawer-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 9px 10px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.drawer-link small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 1px;
}
.drawer-link:hover, .drawer-link:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }

/* ---------- 画面内の入口ボタン ---------- */
.concierge-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.14), rgba(255, 94, 142, 0.08));
  border: 1px solid rgba(245, 196, 81, 0.55);
  border-radius: 14px;
  padding: 11px 12px;
  color: #FFFFFF;
  cursor: pointer;
}
.cc-cta-icon { font-size: 22px; line-height: 1; }
.cc-cta-text { flex: 1; min-width: 0; }
.cc-cta-text strong { display: block; font-size: 13.5px; font-weight: 800; }
.cc-cta-text small { display: block; font-size: 11px; color: var(--text-sub); margin-top: 1px; }
.cc-cta-arrow { font-size: 22px; color: var(--gold-btn); font-weight: 800; }

/* ---------- 会話画面 ---------- */
.cc-msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.cc-model {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 4px;
}
.cc-user {
  align-self: flex-end;
  background: rgba(255, 94, 142, 0.2);
  border: 1px solid rgba(255, 94, 142, 0.5);
  border-top-right-radius: 4px;
}
.cc-typing { color: var(--text-sub); animation: ccBlink 1s ease-in-out infinite; }
@keyframes ccBlink { 50% { opacity: 0.4; } }
.cc-local-note { align-self: flex-start; font-size: 10.5px; color: var(--text-sub); padding: 0 4px; }

.cc-card {
  align-self: stretch;
  background: rgba(16, 13, 32, 0.85);
  border: 1px solid rgba(245, 196, 81, 0.5);
  border-radius: 16px;
  padding: 12px;
}
.cc-card-title { font-size: 13px; font-weight: 800; color: var(--gold-btn); margin-bottom: 6px; }
.cc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding: 5px 6px;
  border-radius: 8px;
  color: #E2DFF0;
}
.cc-row strong { color: #FFFFFF; text-align: right; }
.cc-row.changed { background: rgba(245, 196, 81, 0.12); }
.cc-est {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: var(--text-sub);
}
.cc-est strong { font-size: 22px; color: var(--gold-btn); }

.cc-store {
  padding: 9px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-store:first-of-type { border-top: none; }
.cc-store-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.cc-store-sub { font-size: 11.5px; color: var(--text-sub); margin-top: 2px; }
.cc-pr {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  margin-right: 5px;
  border-radius: 4px;
  border: 1px solid var(--text-sub);
  color: var(--text-sub);
  vertical-align: 1px;
}

.cc-cast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  cursor: pointer;
}
.cc-cast:first-of-type { border-top: none; }
.cc-cast input { width: 20px; height: 20px; accent-color: var(--gold-btn); flex-shrink: 0; margin-top: 1px; }
.cc-cast small { color: #D6D2E8; font-size: 11.5px; }
.cc-stars { color: var(--gold-btn); font-size: 12px; }
.cc-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(46, 196, 182, 0.45);
}

.cc-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 8px;
  scrollbar-width: none;
  flex-shrink: 0;
}
.cc-chips::-webkit-scrollbar { display: none; }
.cc-chips .chip-pill-sm { flex-shrink: 0; white-space: nowrap; }

.cc-input-row { display: flex; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.cc-input {
  flex: 1;
  min-width: 0;
  resize: none;
  background: #141028;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 16px; /* 16px未満だとiPhoneで入力時に画面が拡大される */
  line-height: 1.4;
  max-height: 120px;
}
.cc-input:focus { outline: none; border-color: var(--neon-pink); }
.cc-mic, .cc-send {
  height: 42px;
  border-radius: 21px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 800;
}
.cc-mic {
  width: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 17px;
}
.cc-mic.on { background: rgba(255, 94, 142, 0.35); border-color: var(--neon-pink); animation: ccBlink 1s ease-in-out infinite; }
.cc-send { padding: 0 16px; background: var(--gold-btn); color: var(--gold-text); font-size: 13.5px; }
.cc-card .btn-gold-pill, .cc-card .btn-dark-pill { font-size: 13px; padding: 12px 8px; white-space: nowrap; }


/* ==================== コンシェルジュのみ版：メイン画面 ==================== */
.cc-shell {
  width: 100%;
  max-width: 460px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #2B2150 0%, var(--bg-shell) 45%, #120E24 100%);
  position: relative;
}
.cc-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: start;
  padding: calc(10px + env(safe-area-inset-top)) 12px 6px;
  flex-shrink: 0;
}
.cc-avatar-wrap {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0;
}
.cc-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(245, 196, 81, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 94, 142, 0.18), 0 0 22px rgba(255, 94, 142, 0.35);
  background: linear-gradient(160deg, #3A2C66, #1C1636);
  transition: transform 0.2s ease;
}
.cc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-avatar-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.cc-avatar.thinking { animation: ccThink 1.1s ease-in-out infinite; }
.cc-avatar.bounce { animation: ccBounce 0.35s ease; }
@keyframes ccThink { 50% { box-shadow: 0 0 0 6px rgba(245, 196, 81, 0.25), 0 0 30px rgba(245, 196, 81, 0.45); } }
@keyframes ccBounce { 40% { transform: scale(1.08); } }
.cc-name { font-size: 15px; font-weight: 800; margin-top: 4px; }
.cc-tap { font-size: 10.5px; color: var(--text-sub); }
.cc-top .gear-btn { justify-self: end; }

/* 入店中の固定バー */
.cc-live {
  margin: 4px 12px 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(38, 31, 68, 0.95), rgba(25, 20, 48, 0.98));
  border: 1.5px solid rgba(255, 94, 142, 0.6);
  box-shadow: 0 0 16px rgba(255, 94, 142, 0.18);
  flex-shrink: 0;
}
.cc-live.warn { border-color: var(--danger-red); box-shadow: 0 0 20px rgba(255, 77, 109, 0.45); animation: ccWarn 1.6s ease-in-out infinite; }
@keyframes ccWarn { 50% { box-shadow: 0 0 8px rgba(255, 77, 109, 0.2); } }
.cc-live-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cc-live-store { font-size: 13px; font-weight: 800; color: #FF85A8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-live-time { font-size: 18px; font-weight: 800; color: #FFFFFF; white-space: nowrap; }
.cc-live.warn .cc-live-time { color: #FF8FA3; }
.cc-live-yen { font-size: 12px; color: var(--text-sub); }
.cc-live-yen strong { font-size: 22px; color: var(--gold-btn); }
.cc-live-budget { font-size: 11px; color: #E2DFF0; }
.cc-live-budget.over { color: #FF8FA3; font-weight: 800; }
.cc-live-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.cc-live-btns button {
  padding: 10px 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.cc-live-btns button:active { background: rgba(245, 196, 81, 0.2); }
.cc-live-btns button.exit { background: #FFFFFF; color: #1A1530; border-color: #FFFFFF; }

/* 会話 */
.cc-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 12px;
  -webkit-overflow-scrolling: touch;
}
.cc-feed .cc-msg { max-width: 92%; font-size: 14px; border-radius: 18px; padding: 11px 14px; }
.cc-feed .cc-model {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: 6px;
}
.cc-msg.cc-old { opacity: 0.45; }
.cc-sep { align-self: center; font-size: 10.5px; color: var(--text-sub); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }

.cc-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cc-menu-btn {
  padding: 11px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  line-height: 1.35;
}
.cc-menu-btn.primary { background: rgba(245, 196, 81, 0.16); border-color: rgba(245, 196, 81, 0.6); color: var(--gold-btn); }
.cc-menu-btn.danger { border-color: rgba(255, 77, 109, 0.55); color: #FFD6DE; background: rgba(255, 77, 109, 0.08); }
.cc-menu-card { border-color: rgba(255, 94, 142, 0.45); }

.cc-dock {
  flex-shrink: 0;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18, 14, 36, 0), rgba(18, 14, 36, 0.95) 30%);
}
.cc-remaining { font-size: 10.5px; color: var(--text-sub); margin-top: 6px; text-align: center; }

/* ==================== 細かい画面（元のヨルミツ）をせり上げる ==================== */
.classic-view { display: none; }
body.classic-open .classic-view {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 40;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: classicUp 0.22s ease-out;
}
@keyframes classicUp { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
body.classic-open { overflow: hidden; }
.classic-back-bar {
  position: sticky;
  top: calc(-14px - env(safe-area-inset-top));
  z-index: 5;
  margin: calc(-14px - env(safe-area-inset-top)) -16px 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(20, 16, 38, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.classic-back {
  background: none;
  border: none;
  color: var(--gold-btn);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 0;
}
.cc-live-btns button { font-size: 11.5px; white-space: nowrap; letter-spacing: -0.02em; }

/* ==================== 全部チャット版 ==================== */
.cc-tap.warn { color: #FF8FA3; font-weight: 800; animation: ccBlink 1.2s ease-in-out infinite; }
.cc-row-bot { display: flex; align-self: stretch; }
.cc-row-bot .cc-msg { max-width: 94%; }
.cc-row-bot.cc-old { opacity: 0.45; }
.cc-text { white-space: pre-wrap; }
.cc-rich { margin-top: 8px; white-space: normal; }
.cc-sub { font-size: 11.5px; color: var(--text-sub); margin-top: 4px; line-height: 1.5; }
.cc-warn {
  margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.5;
  background: rgba(255, 77, 109, 0.14); border: 1px solid rgba(255, 77, 109, 0.5); color: #FFD6DE;
}
.cc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cc-table th, .cc-table td { padding: 6px 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
.cc-table tr:first-child th, .cc-table tr:first-child td { border-top: none; }
.cc-table th { text-align: left; font-weight: 700; color: #D6D2E8; }
.cc-table td { text-align: right; font-weight: 800; color: #FFFFFF; white-space: nowrap; }
.cc-table small { font-weight: 400; color: var(--text-sub); }
.cc-table a { color: var(--gold-btn); font-weight: 800; }
.cc-total {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: var(--text-sub);
}
.cc-total strong { font-size: 22px; color: var(--gold-btn); }
.cc-list { margin: 4px 0 0 18px; font-size: 12.5px; line-height: 1.7; }
.cc-store, .cc-castline { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; line-height: 1.5; }
.cc-store:first-child, .cc-castline:first-child { border-top: none; }
.cc-store small, .cc-castline small { color: #D6D2E8; font-size: 11.5px; }
.cc-bad { color: #FF8FA3; font-weight: 800; }
.cc-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-bottom: 8px; }
.cc-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-pink), var(--gold-btn)); }
.cc-meter span.over { background: var(--danger-red); }
.cc-mini {
  margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: none; color: #E2DFF0; font-size: 10.5px; font-weight: 700; cursor: pointer;
}
.cc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cc-btns.grid { display: grid; grid-template-columns: 1fr 1fr; }
.cc-btn {
  padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06); color: #FFFFFF; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.cc-btns.grid .cc-btn { border-radius: 12px; padding: 11px 8px; }
.cc-btn.primary { background: var(--gold-btn); color: var(--gold-text); border-color: var(--gold-btn); }
.cc-btn.danger { border-color: rgba(255, 77, 109, 0.6); color: #FFD6DE; }
.cc-btn:disabled { opacity: 0.35; cursor: default; }
.cc-btn.chosen:disabled { opacity: 1; outline: 2px solid var(--neon-pink); outline-offset: 1px; }
.drawer-note { font-size: 11px; color: var(--text-sub); margin: 0 4px 4px; }

/* ==================== 会話を一番上まで表示し、アイコンを浮かせる（Muse風） ==================== */
.cc-shell { position: relative; overflow: hidden; }
.cc-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;                 /* 透けている所は下の会話をそのまま触れる */
  padding-bottom: 34px;
  background: linear-gradient(180deg,
    rgba(24, 19, 46, 0.97) 0%,
    rgba(24, 19, 46, 0.90) 45%,
    rgba(24, 19, 46, 0.55) 75%,
    rgba(24, 19, 46, 0) 100%);
}
.cc-top > * { pointer-events: auto; }
.cc-top .menu-btn, .cc-top .gear-btn {
  background: rgba(30, 24, 56, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cc-avatar {
  box-shadow:
    0 0 0 4px rgba(255, 94, 142, 0.18),
    0 0 22px rgba(255, 94, 142, 0.35),
    0 10px 26px rgba(0, 0, 0, 0.55);
}
.cc-name, .cc-tap { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9); }
.cc-tap { color: #CFC8EA; }

/* 会話は画面の上端から。最初の吹き出しがアイコンに隠れないよう、上に余白（高さはJSで合わせる） */
.cc-feed {
  padding-top: var(--cc-top-h, 150px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.cc-feed::-webkit-scrollbar { width: 4px; }
.cc-feed::-webkit-scrollbar-track { background: transparent; }
.cc-feed::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }

/* ==================== 押したときの反応（スマホは押した瞬間、PCはマウスを乗せたとき） ==================== */
.cc-btn, .chip-pill-sm, .cc-send, .cc-mic, .menu-btn, .gear-btn, .cc-avatar-wrap, .drawer-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}
.cc-btn:not(:disabled):active, .chip-pill-sm:active {
  background: rgba(245, 196, 81, 0.22);
  border-color: var(--gold-btn);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.35);
  transform: scale(0.97);
}
.cc-btn.primary:not(:disabled):active { background: #FFD772; }
.cc-send:active, .menu-btn:active, .gear-btn:active { transform: scale(0.94); }
.cc-avatar-wrap:active .cc-avatar { transform: scale(0.95); }
.drawer-link:active { background: rgba(245, 196, 81, 0.14); }
@media (hover: hover) {
  .cc-btn:not(:disabled):hover, .chip-pill-sm:hover { border-color: rgba(245, 196, 81, 0.7); background: rgba(255, 255, 255, 0.1); }
  .cc-btn.primary:not(:disabled):hover { background: #FFD772; }
}

/* ==================== 下のボタン列：続きがある側の端を薄くする・PCでつかんで動かせる ==================== */
.cc-chips { cursor: grab; scroll-behavior: auto; -webkit-mask-image: none; mask-image: none; }
.cc-chips.dragging { cursor: grabbing; user-select: none; }
.cc-chips.dragging .chip-pill-sm { pointer-events: none; }
.cc-chips.more-right { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, #000 82%, transparent 100%); }
.cc-chips.more-left { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%); mask-image: linear-gradient(90deg, transparent 0%, #000 18%); }
.cc-chips.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }

/* ==================== 入店中：残り時間と金額を大きく ==================== */
.cc-live-big {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 22px 8px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 94, 142, 0.6);
  background: rgba(30, 24, 56, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 94, 142, 0.2);
  color: #FFFFFF;
  cursor: pointer;
  min-width: 230px;
}
.cc-lb-time { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: 0.02em; }
.cc-lb-yen { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--gold-btn); }
.cc-lb-sub { font-size: 11.5px; color: #D6D2E8; margin-top: 2px; }
.cc-live-big.warn { border-color: var(--danger-red); animation: ccWarn 1.6s ease-in-out infinite; }
.cc-live-big.warn .cc-lb-time { color: #FF8FA3; }
.cc-live-big.over .cc-lb-yen, .cc-live-big.over .cc-lb-sub { color: #FF8FA3; }
.cc-live-big:active { transform: scale(0.97); }

/* 入店中はアイコンを小さくして、大きい表示の場所をつくる */
.cc-shell.in-store .cc-avatar { width: 54px; height: 54px; border-width: 2px; }
.cc-shell.in-store .cc-avatar-fallback { font-size: 26px; }
.cc-shell.in-store .cc-name { font-size: 13px; margin-top: 2px; }
.cc-shell.in-store .cc-tap { font-size: 10px; }

/* ==================== 一覧シート ==================== */
.list-sheet { max-height: 88vh; max-height: 88dvh; }
.ls-item {
  background: rgba(16, 13, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px 12px 10px;
}
.ls-item.editing { border-color: rgba(245, 196, 81, 0.6); }
.ls-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: 14px; }
.ls-head small { color: var(--text-sub); font-size: 11.5px; }
.ls-right { text-align: right; flex-shrink: 0; }
.ls-note { font-size: 12px; color: #D6D2E8; margin-top: 6px; line-height: 1.6; }
.ls-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ls-label { font-size: 11px; color: var(--text-sub); font-weight: 700; flex-shrink: 0; margin-bottom: 4px; }
.ls-row .ls-label { margin-bottom: 0; }
.ls-levels { display: flex; gap: 5px; flex-wrap: wrap; }
.ls-chip {
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04); color: #E2DFF0; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.ls-chip.on { background: var(--gold-btn); color: var(--gold-text); border-color: var(--gold-btn); }
.ls-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ls-btn {
  padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05); color: #FFFFFF; font-size: 12px; font-weight: 800; cursor: pointer;
}
.ls-btn.primary { background: var(--gold-btn); color: var(--gold-text); border-color: var(--gold-btn); }
.ls-btn.danger { border-color: rgba(255, 77, 109, 0.5); color: #FFB3C1; }
.ls-btn.danger.armed { background: var(--danger-red); color: #FFFFFF; border-color: var(--danger-red); }
.ls-btn:active, .ls-chip:active { transform: scale(0.96); }
/* アイコン列の並びを固定（大きい表示は2段目） */
.cc-top .menu-btn { grid-column: 1; grid-row: 1; }
.cc-top .cc-avatar-wrap { grid-column: 2; grid-row: 1; }
.cc-top .gear-btn { grid-column: 3; grid-row: 1; }
.cc-top .cc-live-big { grid-row: 2; }
/* 入力欄：収まっている間はスクロールバーを出さない */
.cc-input { overflow-y: hidden; scrollbar-width: thin; }
.cc-input::-webkit-scrollbar { width: 4px; }
.cc-input::-webkit-scrollbar-button { display: none; height: 0; }
.cc-input::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.cc-mic { display: flex; align-items: center; justify-content: center; color: #E2DFF0; }
.cc-mic.hidden { display: none; }
/* 前の吹き出しのボタン（押せない）・選んだボタン */
.cc-btn:disabled { opacity: 0.32; cursor: default; filter: grayscale(0.4); }
.cc-btn.chosen:disabled { opacity: 0.85; filter: none; outline: 2px solid var(--neon-pink); outline-offset: 1px; }
.cc-mini:disabled { opacity: 0.3; cursor: default; }
/* アイコン・名前の裏を少し濃くして、透けた会話と文字が重ならないように */
.cc-top {
  background: linear-gradient(180deg,
    rgba(24, 19, 46, 0.98) 0%,
    rgba(24, 19, 46, 0.96) 62%,
    rgba(24, 19, 46, 0.70) 82%,
    rgba(24, 19, 46, 0) 100%);
}

/* ===== ボトル残量メーター（10段階） ===== */
.cc-lvbar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 8px 0 4px; }
.cc-lv {
  height: 26px; min-width: 0; padding: 0; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55); font-size: 10px; line-height: 24px; text-align: center;
  cursor: pointer; transition: background .15s, transform .1s;
}
.cc-lv.on { background: linear-gradient(180deg, var(--accent, #ff4fa3), #b14bff); border-color: transparent; color: #fff; }
button.cc-lv:active { transform: scale(.92); }
button.cc-lv:disabled { cursor: default; opacity: .7; }
.cc-lvbar.view .cc-lv { height: 12px; line-height: 10px; font-size: 0; cursor: default; }
.ls-lvtext { font-weight: 700; color: var(--accent, #ff4fa3); }
.ls-note { font-size: 12px; opacity: .7; margin-top: 2px; }
.cc-sub { font-size: 12px; opacity: .7; }

/* 吹き出しの角：話している側の角だけ小さく（LINEのような会話らしさ） */
.cc-feed .cc-msg.cc-user { border-top-right-radius: 4px; }
.cc-feed .cc-msg.cc-model { border-top-left-radius: 4px; }
