/* Conversation-first LOTBI shell. Existing auth, composer and feature owners remain unchanged. */
body.chat-home-page { --consumer-muted: var(--home-skin-muted, var(--lotbi-text-secondary, #626772)); }
.chat-sidebar-desktop { background: var(--home-skin-bg, var(--lotbi-surface-primary, #fff)); border-right: 1px solid var(--home-skin-line, var(--lotbi-border-default, #eeeeef)); }
.consumer-primary-nav { display: grid; gap: 3px; }
.consumer-primary-nav .nav-item { min-height: 42px; padding: 10px 12px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 500; }
.consumer-primary-nav .nav-item-primary { margin-bottom: 12px; font-weight: 650; background: var(--home-skin-hover, var(--lotbi-surface-hover, #f5f5f6)); }
.consumer-primary-nav .nav-item:hover { background: var(--home-skin-hover, var(--lotbi-surface-hover, #f5f5f6)); }
.consumer-primary-nav .nav-icon { width: 19px; height: 19px; opacity: .8; }
.sidebar-history-shell { margin-top: 24px; }
.sidebar-history-shell .sidebar-history-section { margin-top: 0; }
.nav-section-title { font-size: var(--lotbi-fs-12, 12px); font-weight: 600; color: var(--consumer-muted); }
body.chat-home-page:not(.conversation-active) .chat-hero { min-height: calc(100svh - 190px); justify-content: center; padding: 26px 0 44px; }
body.chat-home-page:not(.conversation-active) .home-avatar-anchor { order: 0; flex: 0 0 auto; }
body.chat-home-page:not(.conversation-active) .chat-character-wrap { width: 104px; height: 130px; margin: 0 0 18px; }
body.chat-home-page:not(.conversation-active) .chat-character-logo { width: 104px; height: 104px; object-fit: contain; }
.consumer-brand-fallback { display: none; }
body.chat-home-page[data-conversation-restore="pending"]:not(.conversation-active) .home-avatar-anchor { display: none; }
body.chat-home-page[data-conversation-restore="pending"]:not(.conversation-active) .consumer-brand-fallback { display: block; width: 104px; height: 104px; object-fit: contain; margin: 0 0 24px; }
body.chat-home-page:not(.conversation-active) .site-avatar-stage { width: 100%; height: 100%; }
body.chat-home-page:not(.conversation-active) .home-value-proposition { order: 1; margin: 0 0 26px; max-width: 640px; }
body.chat-home-page:not(.conversation-active) .home-value-proposition h2 { margin: 0 0 12px; font-size: clamp(25px, 2.8vw, 34px); font-weight: 650; letter-spacing: -.045em; line-height: 1.35; }
body.chat-home-page:not(.conversation-active) .home-value-proposition p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--consumer-muted); }
body.chat-home-page:not(.conversation-active) .chat-composer-stack { order: 2; position: static; bottom: auto; z-index: auto; width: min(720px, 100%); margin: 0; padding: 0; background: transparent; display: flex; flex-direction: column; }
body.chat-home-page:not(.conversation-active) .chat-composer { margin: 0; border-radius: 24px; min-height: 112px; box-shadow: 0 2px 10px rgb(0 0 0 / 3%); }
body.chat-home-page:not(.conversation-active) .chat-safety-copy { order: 3; margin: 13px 0 0; font-size: 11px; color: var(--consumer-muted); }
body.chat-home-page .subscription-plan-banner { order: 4; width: min(720px, 100%); margin: 26px 0 0; padding: 15px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-top: 1px solid var(--home-skin-line, #eeeeef); border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.subscription-plan-banner .subscription-plan-banner-eyebrow, .subscription-plan-banner .subscription-plan-banner-plans, .subscription-plan-banner-action-row small { display: none; }
.subscription-plan-banner .subscription-plan-banner-copy h2 { font-size: var(--lotbi-fs-13, 13px); font-weight: 600; margin: 0 0 4px; }
.subscription-plan-banner .subscription-plan-banner-copy > p:last-child { font-size: 11px; line-height: 1.6; color: var(--consumer-muted); max-width: 480px; margin: 0; }
.subscription-plan-banner .subscription-plan-banner-action-row { flex: 0 0 auto; margin: 0; }
.subscription-plan-banner .subscription-plan-banner-action-row a { min-height: 36px; border-radius: 10px; font-size: var(--lotbi-fs-12, 12px); padding: 8px 12px; }
body.chat-home-page .sidebar-profile-trigger { min-height: 60px; padding: 10px; border-radius: var(--lotbi-radius-button, 12px); border: 0; background: transparent; box-shadow: none; gap: 10px; }
body.chat-home-page .sidebar-profile-avatar { width: 34px; height: 34px; min-width: 34px; border-radius: 50%; font-size: 14px; }
body.chat-home-page .sidebar-account-name { font-size: var(--lotbi-fs-13, 13px); font-weight: 650; }
body.chat-home-page .sidebar-account-handle { font-size: 11px; color: var(--consumer-muted); }
body.chat-home-page .profile-popover [role="menuitem"]:focus-visible, .consumer-primary-nav button:focus-visible { outline: 2px solid var(--home-skin-text, var(--lotbi-text-primary, #202123)); outline-offset: -2px; }
body.chat-home-page .site-modal { width: min(520px, calc(100vw - 32px)); border-radius: 20px; padding: 24px; box-shadow: 0 16px 56px rgb(0 0 0 / 12%); }
body.chat-home-page .site-modal-header h2 { font-size: var(--lotbi-fs-20, 20px); letter-spacing: -.03em; }
body.chat-home-page .site-modal-description { font-size: var(--lotbi-fs-13, 13px); line-height: 1.7; }
.consumer-feature-list { display: grid; gap: 0; margin: 0; }
.consumer-feature-row { display: grid; gap: 5px; width: 100%; min-height: 65px; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--home-skin-line, #eeeeef); color: inherit; text-align: left; font: inherit; cursor: pointer; text-decoration: none; }
.consumer-feature-row small, .consumer-feature-note { font-size: var(--lotbi-fs-12, 12px); line-height: 1.65; color: var(--consumer-muted); }
.consumer-feature-row:hover { background: var(--home-skin-hover, var(--lotbi-surface-hover, #f5f5f6)); }
.consumer-feature-row:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.consumer-feature-note { margin: 14px 0 0; }
/* Feature entry surfaces share one restrained visual language. */
body.chat-home-page .consumer-section-panel { width: min(760px, calc(100vw - 32px)); max-height: calc(100svh - 32px); }
body.chat-home-page .site-modal-backdrop[data-site-route='wallet'] > .consumer-section-panel { width: min(940px, calc(100vw - 32px)); }
body.chat-home-page .site-modal-backdrop:has(> .consumer-section-panel) { padding: 16px; place-items: center; }
.consumer-section-panel .site-modal-header { padding: 0 0 16px; }
.consumer-section-panel .site-modal-description { padding: 0 0 20px; }
.consumer-section-panel .consumer-section-content { padding: 0; }
.consumer-section-content { display: grid; gap: 22px; min-width: 0; }
.consumer-section-label { margin: 14px 0 0; font-size: var(--lotbi-fs-13, 13px); font-weight: 500; color: var(--consumer-muted); }
.consumer-section-content svg, .scam-input-kinds svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.consumer-action { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: var(--lotbi-button-height, 48px); box-sizing: border-box; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--lotbi-brand-solid-bg); color: var(--lotbi-brand-solid-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.consumer-action-secondary { background: transparent; border-color: var(--lotbi-border-default); color: inherit; }
.consumer-action:disabled { opacity: .6; cursor: not-allowed; }
.consumer-action:not(:disabled):hover { filter: brightness(.95); }
.consumer-section-content :is(button, input, a):focus-visible { outline: 2px solid var(--lotbi-focus-ring); outline-offset: 3px; }
.consumer-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* An odd last 지역정보 card takes its whole row, so a 4-, 2- or 1-column grid
   never shows an empty cell. The only copy of this rule. */
.consumer-shortcuts > .consumer-shortcut:last-child:nth-child(odd) { grid-column: 1 / -1; }
.consumer-shortcut { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 104px; padding: 16px; border: 0; border-radius: var(--lotbi-radius-button, 12px); background: transparent; color: inherit; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.consumer-shortcut svg { color: var(--lotbi-text-secondary); }
.consumer-shortcut:hover { background: var(--lotbi-surface-hover); }
.consumer-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 220px; padding: 24px; text-align: center; }
.consumer-empty > svg { width: 40px; height: 40px; margin-bottom: 6px; color: var(--consumer-muted); }
.consumer-empty h3 { margin: 0; font-size: var(--lotbi-fs-20, 20px); letter-spacing: -.03em; }
.consumer-empty p { max-width: 420px; margin: 0; color: var(--consumer-muted); font-size: 14px; line-height: 1.7; }
.consumer-empty .consumer-action { margin-top: 10px; }
.consumer-source-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.consumer-category-label { padding: 8px 12px; font-size: var(--lotbi-fs-13, 13px); color: var(--consumer-muted); }
.consumer-care-alert { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; background: var(--lotbi-surface-subtle); }
.consumer-care-alert > div { flex: 1; }
.consumer-care-alert strong { font-size: var(--lotbi-fs-15, 15px); }
.consumer-care-alert p { margin: 5px 0 0; color: var(--consumer-muted); font-size: var(--lotbi-fs-12, 12px); line-height: 1.65; }
.consumer-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--lotbi-border-default); }
.consumer-tabs button { min-height: 48px; padding: 12px 20px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--consumer-muted); font: inherit; font-size: 14px; cursor: pointer; }
.consumer-tabs button[aria-selected="true"] { color: inherit; border-bottom-color: currentColor; font-weight: 600; }
/* COMMON-UI-POLISH-01 (QA #20) — the workspace trims the padding to 4px, which left '사람' 34px wide. */
.consumer-tabs button { min-width: 44px; }
.consumer-care-body { min-width: 0; }
.consumer-error { color: var(--lotbi-error-text); font-size: 14px; }
/* Keep calendar and pet owner geometry and actions; reduce decorative noise. */
body.chat-home-page .site-calendar-modal,
body.chat-home-page .site-pet-modal,
body.chat-home-page .site-festival-modal { box-shadow: 0 12px 40px rgb(0 0 0 / 10%); }
/* Calendar is a dialog over the chat, not a workspace that replaces it. */
body.chat-home-page .site-modal.site-calendar-chat-popup {
  width: min(1180px, calc(100vw - 48px));
  height: min(880px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--lotbi-border-default);
  border-radius: 20px;
  background: var(--lotbi-surface-primary);
  box-shadow: 0 20px 64px rgb(0 0 0 / 18%);
}
body.chat-home-page .site-modal-backdrop:has(> .site-calendar-chat-popup) {
  padding: 16px 24px;
  place-items: center;
}
body.chat-home-page .site-calendar-chat-popup > .site-modal-content { min-height: 0; }
.consumer-care-body .pet-section { border: 0; background: transparent; box-shadow: none; padding-inline: 0; }
.consumer-care-body :is(.pet-card, .pet-empty) { box-shadow: none; border-color: var(--lotbi-border-default); border-radius: var(--lotbi-radius-button, 12px); }
body.chat-home-page .scam-dialog { box-sizing: border-box; width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; border: 1px solid var(--lotbi-border-default); border-radius: 20px; box-shadow: 0 12px 40px rgb(0 0 0 / 10%); color: var(--lotbi-text-primary); background: var(--lotbi-surface-primary); }
body.chat-home-page .scam-dialog-inner { padding: 28px; }
body.chat-home-page .scam-dialog-header h2 { font-size: var(--lotbi-fs-24, 24px); font-weight: 600; letter-spacing: -.04em; }
body.chat-home-page .scam-dialog-eyebrow { color: var(--consumer-muted); font-size: var(--lotbi-fs-12, 12px); font-weight: 500; letter-spacing: 0; }
body.chat-home-page .scam-dialog-inner > p { color: var(--consumer-muted); font-size: var(--lotbi-fs-16, 16px); line-height: 1.7; }
body.chat-home-page .scam-dialog-close { border: 0; background: transparent; color: inherit; }
body.chat-home-page .scam-input-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
body.chat-home-page .scam-input-kinds :is(label, .scam-voice-method) { box-sizing: border-box; min-height: 96px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--lotbi-border-default); border-radius: 14px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
body.chat-home-page .scam-input-kinds :is(label, .scam-voice-method):hover { background: var(--lotbi-surface-subtle); }
body.chat-home-page .scam-input-kinds span { display: grid; gap: 3px; min-width: 0; }
body.chat-home-page .scam-input-kinds strong { font-size: var(--lotbi-fs-17, 17px); font-weight: 600; line-height: 1.45; word-break: keep-all; }
body.chat-home-page .scam-input-kinds small { color: var(--consumer-muted); font-size: 14px; font-weight: 400; line-height: 1.5; word-break: keep-all; }
body.chat-home-page .scam-input-kinds label:has(input:checked) { border-color: var(--lotbi-text-primary); background: var(--lotbi-surface-subtle); }
body.chat-home-page .scam-input-kinds :is(label:has(input:focus-visible), .scam-voice-method:focus-visible) { outline: 2px solid var(--lotbi-focus-ring); outline-offset: 3px; }
body.chat-home-page .scam-input-panel :is(input, textarea), body.chat-home-page .scam-incident select { width: 100%; box-sizing: border-box; min-height: 56px; border: 1px solid var(--lotbi-border-default); border-radius: var(--lotbi-radius-button, 12px); padding: 15px; font: inherit; font-size: var(--lotbi-fs-17, 17px); color: inherit; background: var(--lotbi-surface-primary); }
body.chat-home-page .scam-input-panel textarea { display: block; min-height: 132px; resize: vertical; }
body.chat-home-page .scam-clicked { font-size: var(--lotbi-fs-16, 16px); font-weight: 500; line-height: 1.6; }
body.chat-home-page .scam-submit { min-height: var(--lotbi-button-height, 48px); background: var(--lotbi-brand-solid-bg); color: var(--lotbi-brand-solid-text); font-size: var(--lotbi-fs-17, 17px); font-weight: 600; }
body.chat-home-page .scam-dialog :is(button, input, textarea, select):focus-visible { outline: 2px solid var(--lotbi-focus-ring); outline-offset: 3px; }
@media (max-width: 900px) {
  body.chat-home-page:not(.conversation-active) .chat-hero { min-height: calc(100svh - 150px); padding: 22px 0 32px; }
  body.chat-home-page:not(.conversation-active) .chat-character-wrap { width: 88px; height: 112px; margin-bottom: 14px; }
  body.chat-home-page:not(.conversation-active) .chat-character-logo { width: 88px; height: 88px; }
  .mobile-nav-drawer { width: min(300px, calc(100vw - 36px)); }
  body.chat-home-page .subscription-plan-banner { align-items: flex-start; }
  .subscription-plan-banner .subscription-plan-banner-copy { min-width: 0; }
  .subscription-plan-banner .subscription-plan-banner-copy > p:last-child { display: block; }
}
/* Primary features occupy the content canvas, not a stack of modal cards.
   The conversation stays mounted (and inert) so its draft and scroll survive. */
body.site-workspace-open { overflow: hidden; }
body.chat-home-page .consumer-workspace {
  inset: 0 0 0 220px; z-index: 40; display: block; overflow-y: auto;
  overscroll-behavior: contain; padding: 56px 48px;
  background: var(--lotbi-surface-primary); color: var(--lotbi-text-primary);
}
body.chat-home-page .consumer-workspace > .site-modal {
  width: min(100%, 960px); height: auto; max-height: none; overflow: visible; margin: 0 auto;
  padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.consumer-workspace .site-modal-header { padding: 0 0 12px; justify-content: flex-start; }
.consumer-workspace .site-modal-close { font-size: 22px; flex-shrink: 0; }
body.chat-home-page .consumer-workspace .site-modal-header h2 { font-size: var(--lotbi-fs-28, 28px); font-weight: 600; letter-spacing: -.04em; }
.consumer-workspace .site-modal-description { padding: 0; margin: 0 0 40px; color: var(--consumer-muted); }
.consumer-workspace .site-modal-content { padding: 0; }
.consumer-workspace .site-calendar-modal > .site-modal-content { overflow: visible; }
/* The workspace is the one scroll owner. The legacy touch rule that made the
   modal content its own scroller (keyed on the view) would also trap the pinned
   + 기록 bar inside a box exactly as tall as its content. */
.consumer-workspace .site-calendar-modal > .site-modal-content[data-calendar-manager-view] { overflow: visible; }
.consumer-workspace .calendar-product-shell { height: auto; grid-template-rows: auto auto auto; grid-auto-rows: auto; }
.consumer-workspace .calendar-toolbar button { font-weight: 500; box-shadow: none; }
.consumer-workspace .calendar-toolbar .calendar-title-button { font-size: 18px; font-weight: 600; }
.consumer-workspace .consumer-shortcuts { gap: 12px; }
.consumer-workspace .consumer-shortcut { min-height: 120px; padding: 20px 16px; border: 1px solid var(--lotbi-border-default); border-radius: var(--lotbi-radius-button, 12px); gap: 20px; }
.consumer-workspace .consumer-empty { min-height: 360px; }
.consumer-workspace .consumer-source-options { padding-top: 16px; border-top: 1px solid var(--lotbi-border-default); }
.consumer-workspace .consumer-section-content > .consumer-feature-note { text-align: center; max-width: 560px; margin: 0 auto; }
.consumer-primary-nav [aria-current="page"] { background: var(--lotbi-surface-hover); font-weight: 600; }
@media (max-width: 1100px) and (min-width: 901px) {
  body.chat-home-page .consumer-workspace { padding: 40px 28px; }
}
@media (max-width: 900px) {
  body.chat-home-page .consumer-workspace { inset: 0; padding: 24px; }
  /* The calendar's + 기록 bar pins to the bottom edge itself (with the
     safe-area inset inside it), so the canvas adds no bottom padding under it. */
  body.chat-home-page .consumer-workspace[data-workspace='calendar'] { padding-bottom: 0; }
  .consumer-workspace .site-modal-description { margin-bottom: 28px; }
  body.chat-home-page .consumer-workspace .site-modal-header h2 { font-size: var(--lotbi-fs-24, 24px); }
  body.chat-home-page .site-modal.site-calendar-chat-popup {
    width: min(100%, calc(100vw - 24px));
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px;
    border-radius: 18px;
  }
  body.chat-home-page .site-modal-backdrop:has(> .site-calendar-chat-popup) { padding: 12px; }
}
/* Calendar popup on a phone: the title row and one short line above the
   Calendar, so the week -- all seven days -- starts within the first screen. */
@media (max-width: 600px) {
  body.chat-home-page .site-modal-backdrop:has(> .site-calendar-chat-popup) { padding: 8px; }
  body.chat-home-page .site-modal.site-calendar-chat-popup {
    width: 100%;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 8px 12px 12px;
    border-radius: var(--lotbi-radius-card, 16px);
  }
  body.chat-home-page .site-calendar-chat-popup > .site-modal-header { padding: 0; gap: 8px; }
  body.chat-home-page .site-calendar-chat-popup > .site-modal-header h2 { font-size: 18px; }
  body.chat-home-page .site-calendar-chat-popup > .site-modal-header .site-modal-close { margin-right: -8px; }
  body.chat-home-page .site-calendar-chat-popup > .site-modal-description { padding: 0 0 8px; font-size: 12.5px; line-height: 1.45; }
  body.chat-home-page .site-calendar-chat-popup > .site-modal-content { padding: 2px 4px 8px; }
  body.chat-home-page .site-calendar-chat-popup .calendar-product-shell { gap: 8px; }
}
/* With the slimmer frame a 360px phone has room for ‹ 기간 › 오늘 설정 on one
   row, as every wider phone already shows; only a 320px phone still moves
   설정 down beside the view tabs to keep the title whole. */
@media (min-width: 341px) and (max-width: 380px) {
  body.chat-home-page .site-calendar-chat-popup .calendar-toolbar { grid-template-columns: 44px minmax(0, 1fr) 44px auto 44px; }
  body.chat-home-page .site-calendar-chat-popup .calendar-toolbar > .calendar-settings-button { grid-column: 5; grid-row: 1; }
  body.chat-home-page .site-calendar-chat-popup .calendar-toolbar > .calendar-mode-tabs { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body.chat-home-page .consumer-workspace { padding: 20px var(--lotbi-gutter, 20px); }
  .consumer-workspace .consumer-shortcut { min-height: 100px; padding: 16px 12px; gap: 16px; }
  .consumer-workspace .consumer-empty { min-height: 300px; }
  /* Two rows, not three: ‹ month › 오늘 ⚙ on one line, the views on the next,
     so the month itself starts higher on a phone. */
  .consumer-workspace .calendar-toolbar { grid-template-columns: 44px minmax(0, 1fr) 44px auto 44px; gap: 4px; }
  .consumer-workspace .calendar-toolbar .calendar-title-button { min-width: 0; overflow: hidden; padding-inline: 4px; font-size: var(--lotbi-fs-16, 16px); text-overflow: ellipsis; }
  .consumer-workspace .calendar-today-button { min-width: 48px; padding-inline: 8px; }
  .consumer-workspace .calendar-settings-button { width: 44px; min-width: 44px; box-sizing: border-box; padding-inline: 0; }
  .consumer-workspace .calendar-settings-label { display: none; }
  .consumer-workspace .calendar-mode-tabs { grid-column: 1 / -1; }
  .consumer-workspace .calendar-expense-line { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .consumer-workspace .calendar-expense-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; white-space: normal; gap: 12px; }
  .consumer-workspace .calendar-expense-item { flex-wrap: wrap; }
  .consumer-workspace .calendar-expense-total { border: 0; padding: 12px 0 0; border-top: 1px solid var(--lotbi-border-default); }
}
@media (max-width: 600px) {
  body.chat-home-page .consumer-section-panel { padding: 20px; }
  .consumer-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consumer-shortcut { min-height: 84px; padding: 12px 10px; gap: 10px; word-break: keep-all; }
  .consumer-care-alert { flex-wrap: wrap; }
  .consumer-care-alert .consumer-action { width: 100%; }
  .consumer-empty { min-height: 200px; padding: 20px 0; }
  body.chat-home-page .scam-dialog-inner { padding: 20px; }
  body.chat-home-page .scam-dialog-header h2 { font-size: 21px; }
  body.chat-home-page .scam-input-kinds { grid-template-columns: 1fr; gap: 10px; margin: 20px 0; }
  body.chat-home-page .scam-input-kinds :is(label, .scam-voice-method) { min-height: 74px; padding: 13px 14px; }
}
@media (max-width: 380px) {
  /* A folded phone: the month name stays whole (the caret yields first). */
  .consumer-workspace .calendar-toolbar .calendar-title-button { padding-inline: 2px; font-size: var(--lotbi-fs-15, 15px); }
}
@media (max-width: 420px) {
  body.chat-home-page:not(.conversation-active) .home-value-proposition p { max-width: 260px; margin: auto; font-size: var(--lotbi-fs-13, 13px); }
  .site-modal { padding: 20px; }
  body.chat-home-page .subscription-plan-banner { flex-direction: column; gap: 10px; }
}
/* Detail screens retain their real managers, with the same canvas hierarchy. */
.consumer-workspace :is(.site-festival-modal, .site-pet-modal) > .site-modal-content { overflow: visible; }
.consumer-workspace :is(.pet-section-title, .pet-profile-controls-title, .pet-timeline-title, .pet-candidate-title, .festival-program-title) { font-weight: 600; }
.consumer-workspace :is(.pet-card, .festival-card) { border-radius: var(--lotbi-radius-button, 12px); box-shadow: none; }
.consumer-workspace :is(.pet-profile-controls, .pet-timeline, .pet-candidate-section) { padding: 20px 0; border: 0; border-top: 1px solid var(--lotbi-border-default); border-radius: 0; }
.consumer-workspace :is(.festival-detail, .festival-program-surface, .festival-registration-sheet, .festival-schedule-sheet) { box-shadow: none; border-radius: var(--lotbi-radius-button, 12px); }
.consumer-workspace :is(.pet-family-surface, .festival-manager) { gap: 24px; }
.consumer-workspace :is(button, input, select, textarea, a):focus-visible { outline: 2px solid var(--lotbi-focus-ring); outline-offset: 3px; }
/* The consumer calendar keeps the month first and puts the selected day
   beside it on a desk, so picking a date never sends the eye below the fold.
   The calendar workspace is wider than the other detail canvases to make room
   for both columns. */
body.chat-home-page .consumer-workspace[data-workspace='calendar'] > .site-modal { width: min(100%, 1200px); max-width: 1200px; }
@media (min-width: 901px) {
  .consumer-workspace .calendar-month-layout[data-day-detail='SIDE'][data-detail-open='true'] { grid-template-columns: minmax(0, 1fr) clamp(320px, 30%, 380px); gap: 24px; height: auto; align-items: start; }
  .consumer-workspace .calendar-week-layout[data-day-detail='SIDE'] { gap: 24px; }
  .consumer-workspace .calendar-month-layout .calendar-month { height: auto; }
  .consumer-workspace .calendar-month-grid { min-height: 440px; }
  .consumer-workspace .calendar-day-panel[data-presentation='SIDE'] { position: sticky; top: 16px; max-height: calc(100dvh - 48px); overflow: hidden; box-shadow: none; }
  .consumer-workspace .calendar-day-panel[data-presentation='SIDE'] .calendar-day-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
/* Focused life-information forms; no nested modal or invented results. */
.consumer-life-detail { max-width: 760px; display: grid; gap: 24px; }
.consumer-life-detail > .consumer-action { justify-self: start; border: 0; padding-inline: 0; font-weight: 500; }
.consumer-life-detail h3 { margin: 8px 0 0; font-size: var(--lotbi-fs-24, 24px); font-weight: 600; letter-spacing: -.035em; }
.consumer-life-form { display: grid; gap: 20px; }
.consumer-life-field { display: grid; gap: 10px; color: inherit; font-size: 14px; font-weight: 500; }
.consumer-life-field input,
.consumer-life-field select { box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--lotbi-border-default); border-radius: 10px; background: var(--lotbi-surface-primary); color: inherit; font: inherit; font-size: var(--lotbi-fs-16, 16px); }
/* 병원·응급실 choice and 지역뉴스 period buttons: side by side, 48px targets. */
.consumer-life-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.consumer-life-choices > .consumer-action { min-height: 48px; }
.consumer-life-status { margin: 0; min-height: 1.4em; color: var(--lotbi-text-secondary); font-size: 14px; }
.consumer-life-status:empty { display: none; }
.consumer-life-form > .consumer-action { justify-self: start; }

/* APP-WEBVIEW-BILLING-HIDE-01 (master 2026-10-26, App Store 3.1.1): inside the LOTBI app web view (index.html marks
   <html data-lotbi-app="1"> from the "LOTBIApp/" user agent) no purchase, plan or refund entry shows. */
html[data-lotbi-app="1"] [data-app-billing] { display: none !important; }

/* MENU-FOCUS-TOUCH-01 (master 2026-10-26, real S24 Chrome): a screen opened by a tap focuses its first control
   (「대화로 돌아가기」) without drawing the focus box; the first key press brings the box back (site-conversation.js). */
[data-touch-focus]:focus, [data-touch-focus]:focus-visible { outline: none !important; box-shadow: none !important; }
