/* ===================================
   라온숨 (Raon Soom) - Main Stylesheet
   Mobile-First Design
=================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --white: #ffffff;
  --bg: #fafafa;
  --gray-50: #f9f9f9;
  --gray-100: #f3f3f3;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-500: #9a9a9a;
  --gray-700: #555555;
  --black: #1a1a1a;
  --accent: #2d5a3d;
  --accent-light: #e8f2ec;
  --accent-mid: #4a7c5e;
  --header-h: 56px;
  --input-bar-h: 72px;
  --sidebar-w: 280px;
  --radius-pill: 50px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-up: 0 -4px 20px rgba(0,0,0,0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--black);
  overflow: hidden;
}

/* ===================================
   OVERLAY
=================================== */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===================================
   SIDEBAR
=================================== */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100%;
  background: var(--white);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 30px rgba(0,0,0,0.12);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-logo {
  display: flex;
  align-items: center;
}
.sidebar-logo a, .header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sidebar-logo img {
  height: 15px;
  width: auto;
  display: block;
}
.sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-700);
  font-size: 16px;
  transition: background var(--transition);
}
.sidebar-close:hover { background: var(--gray-100); }

.sidebar-menu {
  list-style: none;
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
}
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: var(--accent-light);
  color: var(--accent);
}
.sidebar-menu li a i {
  width: 20px;
  text-align: center;
  color: var(--accent);
  font-size: 15px;
}
.sidebar-menu li a span {
  font-size: 15px;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-100);
}
.sidebar-footer p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===================================
   MAIN WRAPPER
=================================== */
.main-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: transform var(--transition);
  overflow: hidden;
}

/* ===================================
   TOP HEADER
=================================== */
.top-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  padding: 8px;
}
.hamburger-btn span {
  display: block;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger-btn span:nth-child(1) { width: 22px; }
.hamburger-btn span:nth-child(2) { width: 16px; }
.hamburger-btn span:nth-child(3) { width: 22px; }

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 18px;
  width: auto;
  display: block;
}
.header-right { width: 40px; display: flex; justify-content: flex-end; align-items: center; }
.chat-reset-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.chat-reset-btn:hover { background: var(--gray-100); color: var(--black); }
.chat-reset-btn.visible { display: flex; align-items: center; justify-content: center; }

/* ===================================
   CHAT AREA
=================================== */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ===================================
   WELCOME SECTION
=================================== */
.welcome-section {
  padding: 12px 20px 12px;
}

/* 브랜드 히어로 */
.welcome-hero {
  text-align: center;
  margin-bottom: 10px;
}
.welcome-brand {
  padding: 4px 16px 10px;
}
.brand-icon {
  display: none;
}
.brand-slogan {
  font-size: 11.5px;
  color: var(--accent-mid);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.2;
}
.brand-desc {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.4;
  margin-bottom: 0;
}

/* 질문 유도 */
.welcome-ask {
  margin: 10px 0 8px;
}
.ask-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

/* ===================================
   QUICK MENU BUTTONS
=================================== */
.quick-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  height: 42px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}
.quick-btn:hover, .quick-btn:active {
  background: var(--accent-light);
  border-color: var(--accent-mid);
}
.quick-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.quick-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-arrow {
  font-size: 9px;
  color: var(--gray-300);
  flex-shrink: 0;
}

/* ===================================
   GALLERY STRIP
=================================== */
.gallery-strip {
  margin: 4px -20px 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-strip.is-dragging { cursor: grabbing; }
@keyframes gallery-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-strip-inner {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: gallery-slide 30s linear infinite;
}
.gallery-strip:not(.is-dragging) .gallery-strip-inner:hover { animation-play-state: paused; }
.gallery-item {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================
   CHAT MESSAGES
=================================== */
.chat-messages {
  padding: 0 14px 12px;
}

.chat-msg {
  display: flex;
  margin-bottom: 10px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 사용자 메시지 */
.chat-msg.user {
  justify-content: flex-end;
}
.chat-msg.user .msg-bubble {
  background: var(--black);
  color: var(--white);
  border-radius: 18px 18px 4px 18px;
  max-width: 78%;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 봇 메시지 */
.chat-msg.bot {
  justify-content: flex-start;
  gap: 8px;
}
.bot-avatar {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}
.chat-msg.bot .msg-bubble {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--black);
  border-radius: 4px 18px 18px 18px;
  max-width: 82%;
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}
.msg-bubble p {
  margin: 0;
  padding: 0;
}
.msg-bubble ul, .msg-bubble ol {
  margin: 3px 0;
  padding-left: 16px;
  font-size: 13px;
}
.msg-bubble li {
  margin-bottom: 1px;
}
.msg-bubble a {
  color: var(--accent);
  text-decoration: underline;
  font-size: 13px;
}
.msg-bubble .img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 6px 0;
  border-radius: 10px;
  overflow: hidden;
}
.msg-bubble .img-grid.single {
  grid-template-columns: 1fr;
}
.msg-bubble .img-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}
.msg-bubble .img-grid.single img {
  aspect-ratio: 16/10;
}
.msg-bubble .img-grid img:active { opacity: 0.7; }
.msg-bubble img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 4px 0;
  display: block;
  cursor: pointer;
}
.msg-bubble img:active { opacity: 0.7; }

/* 선택지 칩 */
.choice-chip {
  display: inline-block;
  padding: 7px 14px;
  margin: 3px 4px 3px 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition);
}
.choice-chip:hover {
  background: var(--accent-light);
  border-color: var(--accent-mid);
}
.choice-chip:active {
  transform: scale(0.96);
}
.choice-chip.selected {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.choice-chip.used {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.choice-chip.used.selected {
  opacity: 1;
}

/* 채팅 이미지 모달 */
.chat-img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.chat-img-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.chat-img-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 82%;
  max-width: 320px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.chat-img-modal-box img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 300px;
}
.chat-img-modal-name {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-align: center;
  background: #fff;
}
.chat-img-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1;
}
.msg-bubble--img {
  background: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}
.msg-bubble--img img {
  display: block;
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  object-fit: cover;
}

/* 타이핑 인디케이터 */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%           { transform: scale(1.1); opacity: 1; }
}

/* 링크 카드 */
.link-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-top: 10px;
  text-decoration: none;
  color: var(--black);
  transition: all var(--transition);
}
.link-card:hover {
  border-color: var(--accent-mid);
  background: var(--accent-light);
}
.link-card i {
  color: var(--accent);
  font-size: 14px;
  width: 18px;
  text-align: center;
}
.link-card span {
  font-size: 12.5px;
  font-weight: 500;
}

/* ===================================
   CHAT INPUT BAR (Fixed)
=================================== */
.chat-input-bar {
  flex-shrink: 0;
  background: var(--white);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--gray-100);
  box-shadow: var(--shadow-up);
  position: relative;
  z-index: 10;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 14px;
  transition: border-color var(--transition);
}
.chat-input-wrapper:focus-within {
  border-color: var(--accent-mid);
  background: var(--white);
}

.input-plus-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 16px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.input-plus-btn:hover { color: var(--accent); }

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  outline: none;
  min-width: 0;
}
.chat-input::placeholder {
  color: var(--gray-500);
  font-size: 14px;
}

.input-mic-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 15px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.input-mic-btn:hover { color: var(--accent); }
.input-mic-btn.recording {
  color: #e53e3e;
  animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

.input-send-btn {
  width: 36px;
  height: 36px;
  background: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.input-send-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}
.input-send-btn:active {
  transform: scale(0.95);
}

/* ===================================
   QUICK OPTIONS POPUP
=================================== */
.quick-options-popup {
  position: fixed;
  bottom: calc(var(--input-bar-h) + env(safe-area-inset-bottom, 0px) + 8px);
  left: 16px;
  right: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 50;
  box-shadow: var(--shadow-soft);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.quick-options-popup.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.qo-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.qo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qo-grid button {
  padding: 10px 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.qo-grid button:hover {
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

/* ===================================
   SUB PAGE LAYOUT
=================================== */
.page-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
}
.page-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px;
  padding-bottom: 8px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title i {
  color: var(--accent);
  font-size: 20px;
}

/* 정보 카드 */
.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
}
.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card p, .info-card li {
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.7;
}
.info-card ul {
  padding-left: 18px;
}

/* 메뉴 카드 */
.menu-category {
  margin-bottom: 28px;
}
.menu-category-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--accent-light);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-info {}
.menu-item-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 3px;
}
.menu-item-desc {
  font-size: 13px;
  color: var(--gray-500);
}
.menu-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  margin-left: 12px;
}

/* 지도 영역 */
.map-container {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}
.map-placeholder {
  text-align: center;
  color: var(--gray-500);
}
.map-placeholder i {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
  color: var(--accent);
}
.map-placeholder p {
  font-size: 14px;
}

/* 운영시간 테이블 */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hours-table tr {
  border-bottom: 1px solid var(--gray-100);
}
.hours-table td {
  padding: 11px 4px;
  color: var(--gray-700);
}
.hours-table td:first-child {
  font-weight: 500;
  color: var(--black);
  width: 80px;
}
.hours-table td.today {
  color: var(--accent);
  font-weight: 700;
}
.hours-table tr.highlight td {
  color: var(--accent);
  font-weight: 600;
}

/* 갤러리 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.gallery-grid-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================
   SCROLLBAR (웹 브라우저)
=================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

/* ===================================
   CHATBOT OVERLAY (서브페이지용)
=================================== */
.chatbot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.chatbot-overlay.active {
  transform: translateY(0);
  pointer-events: all;
}
.chatbot-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.chatbot-overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 701;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-600);
  transition: background var(--transition);
}
.chatbot-overlay-close:hover { background: var(--gray-100); }

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 359px) {
  .quick-menu {
    grid-template-columns: 1fr;
  }
  .quick-btn {
    padding: 12px 16px;
  }
  .greeting-main {
    font-size: 24px;
  }
  .qo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 480px) {
  .main-wrapper, .page-wrapper {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 430px;
  }
  .sidebar {
    width: 300px;
  }
  .quick-options-popup {
    max-width: 398px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(20px);
  }
  .quick-options-popup.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* ===================================
   VOICE TOAST
=================================== */
.voice-toast {
  position: fixed;
  bottom: calc(var(--input-bar-h) + env(safe-area-inset-bottom, 0px) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.voice-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
@media (min-width: 480px) {
  .voice-toast {
    max-width: 398px;
  }
}
