/* Conversation canvas. Visual hierarchy only; existing feature owners stay mounted. */
body.chat-home-page { --consumer-canvas-width: 680px; }
body.chat-home-page .chat-home-shell { width: 100%; padding-inline: 32px; }
body.chat-home-page .chat-topbar { min-height: 64px; gap: 12px; background: var(--lotbi-surface-primary); }
body.chat-home-page .topbar-left { margin-right: auto; }
body.chat-home-page .chat-sidebar-desktop { padding: 14px 12px; }
body.chat-home-page .sidebar-brand { margin: 0 12px 24px; width: 118px; }
body.chat-home-page .sidebar-brand-logo { width: 118px; height: auto; }
body.chat-home-page .consumer-primary-nav { gap: 2px; }
body.chat-home-page .consumer-primary-nav .nav-item { min-height: 44px; padding: 10px 12px; font-size: 14px; font-weight: 400; border-radius: 8px; }
body.chat-home-page .consumer-primary-nav .nav-item-primary { margin-bottom: 14px; font-weight: 500; background: var(--lotbi-surface-subtle); }
body.chat-home-page .consumer-primary-nav .nav-icon { width: 18px; height: 18px; opacity: .85; }
body.chat-home-page .sidebar-history-shell { margin-top: 32px; }
body.chat-home-page .sidebar-history-shell .sidebar-history-section { margin-top: 0; }
body.chat-home-page .nav-section-title { padding-inline: 12px; font-weight: 400; font-size: var(--lotbi-fs-12, 12px); }
body.chat-home-page .sidebar-account-footer { padding-top: 8px; }
body.chat-home-page:not(.conversation-active) .chat-hero { min-height: calc(100svh - 120px); flex: 1 0 auto; justify-content: center; overflow: visible; padding: 0 0 64px; }
body.chat-home-page:not(.conversation-active) .chat-character-wrap { width: 68px; height: 82px; margin: 0 0 14px; }
body.chat-home-page:not(.conversation-active) .chat-character-logo { width: 68px; height: 68px; }
body.chat-home-page:not(.conversation-active) .consumer-brand-fallback { width: 68px; height: 68px; margin: 0 0 28px; }
body.chat-home-page:not(.conversation-active) .home-value-proposition { width: 100%; margin: 0 0 30px; }
body.chat-home-page:not(.conversation-active) .home-value-proposition h2 { font-size: clamp(25px, 2.3vw, 30px); font-weight: 500; letter-spacing: -.035em; margin: 0; line-height: 1.45; }
/* SITE-MOBILE-COMPOSER-KEYBOARD-LAYOUT-HOTFIX — keyboard open on the empty Home. home-shell.js
   already sizes the shell to the visual viewport; the centred Home hero above
   (svh min-height, 64px bottom padding, centring) outranked the keyboard rules
   and left the composer under the header with empty space above the keyboard.
   The composer is now the last thing in the hero, at its bottom edge, with
   the same room above the keyboard as in a conversation (safe area once). */
body.chat-home-page.mobile-keyboard-open:not(.conversation-active) .chat-home-shell { padding-bottom: 0; }
body.chat-home-page.mobile-keyboard-open:not(.conversation-active) .chat-hero { flex: 1 1 auto; min-height: 0; justify-content: flex-end; overflow: hidden; padding-bottom: 0; }
body.chat-home-page.mobile-keyboard-open:not(.conversation-active) .chat-composer-stack { order: 5; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
body.chat-home-page.mobile-keyboard-open:not(.conversation-active) .chat-safety-copy { order: 0; margin: 0 0 6px; }
body.chat-home-page .chat-composer-stack, body.chat-home-page:not(.conversation-active) .chat-composer-stack { width: min(var(--consumer-canvas-width), 100%); }
/* SITE-MOBILE-COMPOSER-KEYBOARD-LAYOUT-HOTFIX — +, text, grade and send each own a grid
   column ([+][text][grade][send]; on phones the text gets its own first row).
   The + used to be absolutely placed in a 52px left padding, and the Home
   skin's 13px padding (601-760px, Fold) put it over the first characters.
   Spacing is margins, not column-gap, so a hidden grade leaves no gutter. */
body.chat-home-page .chat-composer { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 0; padding: 8px 10px 8px 7px; border: 1px solid var(--lotbi-border-default); background: var(--lotbi-surface-primary); box-shadow: 0 3px 14px rgb(0 0 0 / 4%); border-radius: 30px; min-height: 64px; }
body.chat-home-page:not(.conversation-active) .chat-composer { min-height: 64px; border-radius: 30px; }
body.chat-home-page .chat-composer:focus-within { border-color: var(--lotbi-text-secondary); box-shadow: 0 3px 14px rgb(0 0 0 / 4%); }
body.chat-home-page .chat-input, body.chat-home-page:not(.conversation-active) .chat-input { min-height: 44px; height: 44px; max-height: 160px; padding: 10px 0; font-size: var(--lotbi-fs-16, 16px); font-weight: 400; line-height: 24px; background: transparent; }
body.chat-home-page .composer-actions { display: contents; }
body.chat-home-page .chat-input { grid-column: 2; grid-row: 1; }
body.chat-home-page .composer-actions .attachment-control { position: relative; grid-column: 1; grid-row: 1; align-self: end; margin-right: 8px; }
body.chat-home-page .composer-actions .response-grade-control { grid-column: 3; grid-row: 1; margin-left: 8px; }
body.chat-home-page .composer-actions .send-button { grid-column: 4; grid-row: 1; margin-left: 8px; }
body.chat-home-page .composer-actions .response-grade-control:not([hidden]) + .send-button { margin-left: 2px; }
body.chat-home-page .composer-button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--lotbi-text-primary); box-shadow: none; }
body.chat-home-page .composer-button:not(:disabled):hover { background: var(--lotbi-surface-hover); }
body.chat-home-page .composer-button.send-button { background: var(--lotbi-text-primary); color: var(--lotbi-surface-primary); }
body.chat-home-page .composer-button.send-button:disabled { opacity: .45; }
body.chat-home-page:not(.conversation-active) .composer-button.send-button:disabled {
  background: var(--lotbi-border-strong);
  border-color: transparent;
  color: #fff;
  opacity: .55;
  box-shadow: none;
}
body.chat-home-page:not(.conversation-active) .composer-button.send-button:not(:disabled) {
  background: var(--lotbi-accent, #2454b8);
  border-color: transparent;
  color: #fff;
  opacity: 1;
  box-shadow: none;
}
body.chat-home-page .chat-safety-copy { font-size: 11px; font-weight: 400; color: var(--lotbi-text-secondary); }
body.chat-home-page:not(.conversation-active) .chat-safety-copy { margin: 12px 0 0; }
/* Promotion is available on demand, not a permanent block in the conversation. */
.consumer-plan-menu { position: relative; margin-left: auto; color: var(--lotbi-text-secondary); }
.consumer-plan-menu > summary { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 10px; border-radius: 8px; list-style: none; cursor: pointer; font-size: var(--lotbi-fs-13, 13px); font-weight: 500; }
.consumer-plan-menu > summary::-webkit-details-marker { display: none; }
.consumer-plan-menu > summary:hover { background: var(--lotbi-surface-hover); color: var(--lotbi-text-primary); }
.consumer-plan-menu > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.consumer-plan-menu[open] > summary svg { transform: rotate(180deg); }
body.chat-home-page .consumer-plan-menu .subscription-plan-banner { position: absolute; top: calc(100% + 8px); right: 0; display: grid; gap: 20px; width: min(360px, calc(100vw - 32px)); max-height: calc(100svh - 100px); overflow-y: auto; margin: 0; padding: 24px; box-sizing: border-box; border: 1px solid var(--lotbi-border-default); border-radius: var(--lotbi-radius-card, 16px); background: var(--lotbi-surface-primary); color: var(--lotbi-text-primary); box-shadow: 0 8px 32px rgb(0 0 0 / 10%); }
.consumer-plan-menu .subscription-plan-banner-copy h2 { font-size: 18px; line-height: 1.5; font-weight: 600; }
.consumer-plan-menu .subscription-plan-banner-copy > p:last-child { font-size: var(--lotbi-fs-13, 13px); line-height: 1.7; margin-top: 8px; }
.consumer-plan-menu .subscription-plan-banner-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.consumer-plan-menu .subscription-plan-banner-plans > span { display: flex; align-items: baseline; gap: 6px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--lotbi-border-default); border-radius: 0; font-size: 14px; }
.consumer-plan-menu .subscription-plan-banner-plans strong { margin-left: auto; font-size: var(--lotbi-fs-16, 16px); font-weight: 600; }
.consumer-plan-menu .subscription-plan-banner-plans small { font-size: var(--lotbi-fs-12, 12px); color: var(--lotbi-text-secondary); }
.consumer-plan-menu .subscription-plan-banner-plans b { display: none; }
.consumer-plan-menu .subscription-plan-banner-plans .is-recommended { background: transparent; border-color: var(--lotbi-border-default); box-shadow: none; }
.consumer-plan-menu .subscription-plan-banner-action-row { display: grid; gap: 10px; width: 100%; }
.consumer-plan-menu .subscription-plan-banner-action-row a { min-height: 44px; padding: 12px; justify-content: center; text-align: center; font-size: 14px; }
.consumer-plan-menu .subscription-plan-banner-action-row small { display: block; font-size: 11px; text-align: center; color: var(--lotbi-text-secondary); }
/* Legal contents retain their one source and are expandable on every viewport. */
body.chat-home-page .chat-home-footer { flex: 0 0 auto; margin-top: auto; padding: 0 0 max(12px, env(safe-area-inset-bottom)); border: 0; }
body.chat-home-page .footer-legal-disclosure { display: block; }
body.chat-home-page .footer-legal-summary { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 8px; font-size: 11px; font-weight: 400; color: var(--lotbi-text-secondary); cursor: pointer; }
body.chat-home-page .footer-legal-summary-chevron { width: 12px; height: 12px; fill: currentColor; }
body.chat-home-page .footer-legal-disclosure:not([open]) + .footer-legal-panels { display: none; }
body.chat-home-page .footer-legal-disclosure[open] + .footer-legal-panels { display: block; padding: 16px 0; border-top: 1px solid var(--lotbi-border-default); }
body.chat-home-page .footer-legal-sheet .footer-legal-panels { display: block; }
body.chat-home-page .sidebar-profile-trigger { padding: 8px; min-height: 56px; border-radius: 8px; }
body.chat-home-page .sidebar-account-name { font-size: 14px; font-weight: 500; }
body.chat-home-page :is(.consumer-plan-menu > summary, .footer-legal-summary):focus-visible { outline: 2px solid var(--lotbi-focus-ring); outline-offset: 2px; }
/* Detail canvases use the same quiet ink and readable type as the main view. */
body.chat-home-page .consumer-workspace {
  --lotbi-calendar-weekend-sun: var(--lotbi-text-primary);
  --lotbi-calendar-weekend-sat: var(--lotbi-text-primary);
  --lotbi-calendar-holiday-ink: var(--lotbi-text-primary);
  --lotbi-calendar-weekday-ink: var(--lotbi-text-primary);
  --lotbi-calendar-muted-ink: var(--lotbi-text-primary);
  --lotbi-calendar-outside-surface: var(--lotbi-surface-subtle);
  --lotbi-calendar-week-selected-surface: var(--lotbi-surface-subtle);
  --lotbi-calendar-grid-line: var(--lotbi-border-default);
  --lotbi-calendar-today-ring: var(--lotbi-text-primary);
}
body.chat-home-page .consumer-workspace .site-modal-header h2 { font-weight: 500; }
body.chat-home-page .consumer-workspace :is(.calendar-date-number, .calendar-week-day-number) { font-size: var(--lotbi-fs-15, 15px); font-weight: 500; }
body.chat-home-page .consumer-workspace :is(.calendar-weekdays, .calendar-mobile-event-count, .calendar-event-chip, .calendar-event-status) { font-weight: 400; }
body.chat-home-page .consumer-workspace .calendar-title-button { font-weight: 500; }
body.chat-home-page .consumer-workspace .calendar-year-month { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
body.chat-home-page .consumer-workspace .calendar-mini-weekdays { font-size: var(--lotbi-fs-12, 12px); line-height: 1.6; }
body.chat-home-page .consumer-workspace .calendar-mini-grid span { min-height: 22px; font-size: var(--lotbi-fs-12, 12px); }
body.chat-home-page .consumer-workspace .calendar-year-event-count { font-size: var(--lotbi-fs-12, 12px); font-weight: 400; }
body.chat-home-page .consumer-workspace .calendar-year-month[data-current="true"] { border-color: var(--lotbi-text-primary); box-shadow: inset 0 0 0 1px var(--lotbi-text-primary); }
body.chat-home-page .consumer-workspace :is(.calendar-week-date, .calendar-week-day)[data-selected="true"] { background: var(--lotbi-calendar-week-selected-surface); }
body.chat-home-page .consumer-workspace .calendar-week-strip { background: var(--lotbi-surface-primary); border-color: var(--lotbi-border-default); }
body.chat-home-page .consumer-workspace .calendar-date-cell[data-selected='true'] { background: var(--lotbi-surface-subtle); }
body.chat-home-page .consumer-workspace .calendar-date-cell[data-today='true'] { box-shadow: inset 0 0 0 1.5px var(--lotbi-text-primary); }
/* Detail pages are quiet workspaces, not grids of oversized menu cards. */
body.chat-home-page .consumer-workspace { padding-block: 40px; }
body.chat-home-page .consumer-workspace > .site-modal { max-width: 880px; }
body.chat-home-page .consumer-workspace .site-modal-header { gap: 16px; padding-bottom: 16px; }
body.chat-home-page .consumer-workspace .site-modal-header h2 { font-size: 26px; line-height: 1.4; }
body.chat-home-page .consumer-workspace .site-modal-description { font-size: 14px; line-height: 1.7; margin-bottom: 32px; }
.consumer-workspace:has([data-consumer-surface='life']) .site-modal-description { margin-bottom: 24px; }
/* 사용자 확정 지역정보 메인: 데스크톱 4×2, 모바일 2열, 큰 컬러 아이콘. */
body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) > .site-modal { max-width: 760px; }
body[data-site-theme='light'].chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) { background: radial-gradient(circle at 56% 0%, #f3f8ff 0, #fff 46%); }
body[data-site-theme='dark'].chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) { background: radial-gradient(circle at 56% 0%, #1c2b3b 0, #111a24 58%, #101820 100%); }
body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-header { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 4px; }
body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-header h2 { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-close { display: inline-flex; align-items: center; gap: 8px; width: auto; min-width: 0; min-height: 32px; height: 32px; padding: 0 4px; border: 0; border-radius: 7px; background: transparent; color: var(--lotbi-text-secondary); box-shadow: none; font-size: var(--lotbi-fs-17, 17px); }
body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-close::after { content: '뒤로가기'; font-size: 14px; font-weight: 550; }
body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-description { margin: 0 0 16px; font-size: var(--lotbi-fs-15, 15px); line-height: 1.6; }
body.chat-home-page .consumer-workspace [data-consumer-surface='life'] { gap: 0; }
body.chat-home-page .consumer-workspace .consumer-life-home { display: grid; gap: 14px; }
body.chat-home-page .consumer-workspace .consumer-life-location { display: flex; align-items: center; gap: 8px; min-height: 44px; }
body.chat-home-page .consumer-workspace .consumer-life-location-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; box-sizing: border-box; padding: 8px 14px; border-radius: 10px; background: var(--lotbi-surface-subtle); }
body.chat-home-page .consumer-workspace .consumer-life-location-chip > svg { width: 21px; height: 21px; overflow: visible; }
body.chat-home-page .consumer-workspace .consumer-life-location-chip > svg path:first-child { fill: #1683ff; stroke: #1683ff; }
body.chat-home-page .consumer-workspace .consumer-life-location-chip > svg path:last-child { fill: #fff; stroke: #fff; }
body.chat-home-page .consumer-workspace .consumer-life-location-label { color: var(--lotbi-text-primary); font-size: 14px; font-weight: 650; white-space: nowrap; }
body.chat-home-page .consumer-workspace .consumer-life-region-change { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 6px; border: 0; border-radius: 8px; background: transparent; color: #2563eb; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
body.chat-home-page .consumer-workspace .consumer-life-region-change:hover { background: rgb(8 124 241 / 8%); }
body.chat-home-page .consumer-workspace .consumer-life-region-change:focus-visible { outline: 2px solid var(--lotbi-focus-ring); outline-offset: 2px; }
body.chat-home-page .consumer-workspace .consumer-life-region-change:disabled { opacity: .55; cursor: wait; }
body.chat-home-page .consumer-workspace .consumer-life-region-chevron { font-size: 25px; font-weight: 400; line-height: .8; transform: translateY(-1px); }
body.chat-home-page .consumer-workspace .consumer-section-label { margin: 6px 0 0; color: var(--lotbi-text-primary); font-size: 19px; font-weight: 700; line-height: 1.35; }
body.chat-home-page .consumer-workspace .consumer-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 1fr; }
body.chat-home-page .consumer-workspace .consumer-shortcut { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 156px; box-sizing: border-box; padding: 14px 13px 13px; gap: 10px; border: 1px solid var(--lotbi-border-default); border-radius: 10px; background: var(--lotbi-surface-primary); color: inherit; font-size: var(--lotbi-fs-15, 15px); }
body.chat-home-page .consumer-workspace .consumer-shortcut::after { content: ''; position: absolute; top: 22px; right: 15px; width: 7px; height: 7px; border-top: 1.8px solid var(--lotbi-text-secondary); border-right: 1.8px solid var(--lotbi-text-secondary); transform: rotate(45deg); opacity: .85; }
body.chat-home-page .consumer-workspace .consumer-shortcut-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; background: rgb(22 131 255 / 9%); }
body.chat-home-page .consumer-workspace .consumer-shortcut-icon > svg { width: 43px; height: 43px; overflow: visible; }
body.chat-home-page .consumer-workspace .consumer-shortcut-copy { display: grid; gap: 4px; min-width: 0; width: 100%; }
body.chat-home-page .consumer-workspace .consumer-shortcut-title { color: var(--lotbi-text-primary); font-size: 14.5px; font-weight: 700; line-height: 1.28; letter-spacing: -.015em; word-break: keep-all; overflow-wrap: anywhere; }
body.chat-home-page .consumer-workspace .consumer-shortcut-description { color: var(--lotbi-text-secondary); font-size: var(--lotbi-fs-12, 12px); font-weight: 450; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
body.chat-home-page .consumer-workspace .consumer-shortcut:hover { border-color: rgb(8 124 241 / 42%); background: rgb(8 124 241 / 4%); }
body.chat-home-page .consumer-workspace .consumer-shortcut:focus-visible { outline: 3px solid var(--lotbi-focus-ring); outline-offset: 2px; }
body[data-site-theme='dark'].chat-home-page .consumer-workspace .consumer-life-location-chip { background: #2a3949; }
body[data-site-theme='dark'].chat-home-page .consumer-workspace .consumer-shortcut { border-color: #344657; background: rgb(18 31 44 / 76%); }
body[data-site-theme='dark'].chat-home-page .consumer-workspace .consumer-shortcut:hover { border-color: #3b84cf; background: rgb(24 52 78 / 80%); }
body[data-site-theme='dark'].chat-home-page .consumer-workspace .consumer-shortcut-icon { background: #193b5f; }
body.chat-home-page .consumer-workspace .consumer-feature-note { font-size: var(--lotbi-fs-13, 13px); line-height: 1.7; }
body.chat-home-page .consumer-workspace .consumer-empty { min-height: 320px; gap: 16px; }
body.chat-home-page .consumer-workspace .consumer-empty h3 { font-size: var(--lotbi-fs-24, 24px); font-weight: 500; line-height: 1.45; }
body.chat-home-page .consumer-workspace .consumer-source-options { border: 0; gap: 12px; }
body.chat-home-page .consumer-workspace .consumer-care-alert { padding: 20px 0 24px; border: 0; border-bottom: 1px solid var(--lotbi-border-default); border-radius: 0; background: transparent; gap: 16px; }
body.chat-home-page .consumer-workspace .consumer-care-alert strong { font-weight: 500; font-size: var(--lotbi-fs-17, 17px); }
body.chat-home-page .consumer-workspace .consumer-care-alert p { font-size: var(--lotbi-fs-13, 13px); }
body.chat-home-page .consumer-workspace .consumer-tabs { gap: 24px; }
body.chat-home-page .consumer-workspace .consumer-tabs button { padding-inline: 4px; font-weight: 400; }
body.chat-home-page .consumer-workspace .consumer-tabs button[aria-selected='true'] { font-weight: 500; }
body.chat-home-page .consumer-workspace .consumer-life-detail { max-width: 600px; margin-inline: auto; gap: 24px; }
body.chat-home-page .consumer-workspace .consumer-life-detail h3 { font-size: var(--lotbi-fs-28, 28px); font-weight: 500; line-height: 1.4; margin-top: 0; }
body.chat-home-page .consumer-workspace .consumer-life-detail > .consumer-action { padding: 8px 0; font-size: var(--lotbi-fs-13, 13px); }
body.chat-home-page .consumer-workspace .consumer-life-form { gap: 24px; }
body.chat-home-page .consumer-workspace .consumer-life-field { font-weight: 400; }
body.chat-home-page .consumer-workspace .consumer-life-form > .consumer-action { min-width: 128px; font-weight: 500; }
/* QA 2026-10-10 #14: 지역생활정보 example questions (one tap asks) and LOTBI's
   own empty-field message instead of the browser bubble. */
body.chat-home-page .consumer-workspace .consumer-life-examples { display: flex; flex-wrap: wrap; gap: 8px; }
body.chat-home-page .consumer-workspace .consumer-life-example { min-height: 44px; padding: 8px 16px; border: 1px solid var(--lotbi-border-default); border-radius: var(--lotbi-radius-pill, 999px); background: transparent; color: var(--lotbi-text-primary); font: inherit; font-size: 14px; cursor: pointer; }
body.chat-home-page .consumer-workspace .consumer-life-example:hover { background: var(--lotbi-surface-hover); }
body.chat-home-page .consumer-workspace .consumer-life-form-status { margin: 0; color: var(--lotbi-error-text); font-size: var(--lotbi-fs-13, 13px); }
/* Owner decision 2026-10-10: signed out, 내 아이 학교·유치원 links the public
   lookup; a link-looking button that is still a 44px touch target. */
body.chat-home-page .consumer-workspace .consumer-life-detail > .consumer-life-lookup { min-height: 48px; align-self: flex-start; font-size: 14px; }
/* REGIONAL-NEWS-P0: an odd last category (지역뉴스) takes the whole row of the
   two-column desktop list instead of leaving an empty cell beside it. */
/* Radio choices stay prominent while the rest of the check flow stays compact. */
body.chat-home-page .scam-dialog::backdrop { background: rgb(0 0 0 / 32%); }
body.chat-home-page .scam-dialog { width: min(640px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgb(0 0 0 / 10%); }
body.chat-home-page .scam-dialog-header h2 { font-size: var(--lotbi-fs-24, 24px); font-weight: 500; line-height: 1.4; }
body.chat-home-page .scam-dialog-eyebrow { margin-bottom: 10px; }
body.chat-home-page .scam-input-kinds { gap: 8px; }
body.chat-home-page .scam-input-kinds label { min-height: 76px; padding: 12px; gap: 10px; border-radius: var(--lotbi-radius-button, 12px); font-size: var(--lotbi-fs-13, 13px); }
body.chat-home-page .scam-input-kinds svg { width: 20px; height: 20px; }
body.chat-home-page .scam-input-panel textarea { min-height: 160px; }
body.chat-home-page .scam-clicked { font-weight: 400; padding-block: 4px; min-height: 36px; }
body.chat-home-page .scam-incident { padding: 16px 0; border-top: 1px solid var(--lotbi-border-default); gap: 16px; }
body.chat-home-page .scam-incident label { font-size: 14px; font-weight: 400; }
body.chat-home-page .scam-submit { font-weight: 500; }
body.chat-home-page .scam-status { font-size: var(--lotbi-fs-13, 13px); line-height: 1.7; }
@media (max-width: 600px) {
  body.chat-home-page .consumer-workspace { padding: 20px var(--lotbi-gutter, 20px); }
  body.chat-home-page .consumer-workspace .site-modal-header h2 { font-size: 23px; }
  body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) { padding: 24px 18px; }
  body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-header { flex-direction: row; align-items: center; gap: 12px; padding-bottom: 12px; }
  body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-header h2 { font-size: var(--lotbi-fs-28, 28px); }
  body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-close { width: 34px; height: 34px; flex: 0 0 34px; justify-content: flex-start; padding: 0; font-size: var(--lotbi-fs-28, 28px); }
  body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-close::after { content: none; }
  body.chat-home-page .consumer-workspace[data-workspace='life']:has(.consumer-life-home) .site-modal-description { margin-bottom: 12px; font-size: 14px; }
  body.chat-home-page .consumer-workspace .consumer-life-home { gap: 12px; }
  body.chat-home-page .consumer-workspace .consumer-life-location { gap: 6px; }
  body.chat-home-page .consumer-workspace .consumer-life-location-chip { min-height: 46px; padding: 9px 13px; }
  body.chat-home-page .consumer-workspace .consumer-life-location-label { font-size: 13.5px; }
  body.chat-home-page .consumer-workspace .consumer-life-region-change { min-height: 46px; padding-inline: 6px; font-size: 13.5px; }
  body.chat-home-page .consumer-workspace .consumer-section-label { margin-top: 7px; font-size: var(--lotbi-fs-20, 20px); }
  /* Phones keep the approved two columns; long names wrap at word gaps. */
  /* SUBWAY-LIFE-INFO-P0: with an even card count 내 아이 학교·유치원 sits in a
     half-width cell and wraps on a 360px phone; every row takes the tallest row's
     height so the list keeps one card height whatever the count. */
  body.chat-home-page .consumer-workspace .consumer-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-rows: 1fr; }
  body.chat-home-page .consumer-workspace .consumer-shortcut { min-height: 183px; padding: 13px 11px; gap: 10px; border-radius: 11px; }
  body.chat-home-page .consumer-workspace .consumer-shortcut::after { top: 23px; right: 14px; }
  body.chat-home-page .consumer-workspace .consumer-shortcut-icon { width: 62px; height: 62px; flex-basis: 62px; }
  body.chat-home-page .consumer-workspace .consumer-shortcut-icon > svg { width: 47px; height: 47px; }
  body.chat-home-page .consumer-workspace .consumer-shortcut-title { font-size: 15.5px; line-height: 1.28; }
  body.chat-home-page .consumer-workspace .consumer-shortcut-description { font-size: 12.5px; line-height: 1.38; }
  body.chat-home-page .consumer-workspace .consumer-life-detail h3 { font-size: 25px; }
  body.chat-home-page .consumer-workspace .consumer-empty { min-height: 280px; }
  body.chat-home-page .scam-input-kinds label { flex-direction: row; min-height: 48px; }
}
@media (max-width: 900px) {
  body.chat-home-page .chat-home-shell { padding-inline: 20px; }
  body.chat-home-page .chat-topbar { min-height: 64px; gap: 4px; }
  .consumer-plan-menu { margin-left: 0; }
  .consumer-plan-menu > summary { padding-inline: 6px; font-size: var(--lotbi-fs-12, 12px); }
  body.chat-home-page .consumer-plan-menu .subscription-plan-banner { position: fixed; top: 72px; right: 16px; }
}
@media (max-width: 600px) {
  body.chat-home-page .chat-home-shell { padding-inline: 16px; }
  body.chat-home-page:not(.conversation-active) .chat-hero { padding-bottom: 40px; }
  body.chat-home-page:not(.conversation-active) .home-value-proposition { margin-bottom: 24px; }
  body.chat-home-page:not(.conversation-active) .chat-character-wrap { width: 64px; height: 76px; margin-bottom: 12px; }
  body.chat-home-page:not(.conversation-active) .chat-character-logo { width: 64px; height: 64px; }
  body.chat-home-page .chat-composer { padding: 10px 12px; gap: 4px 0; border-radius: 22px; }
  body.chat-home-page .chat-input, body.chat-home-page:not(.conversation-active) .chat-input { padding: 6px 2px; min-height: 38px; height: 38px; }
  /* Phones keep the full width for the text; +, grade and send are the row under it. */
  body.chat-home-page .chat-input { grid-column: 1 / -1; }
  body.chat-home-page .composer-actions .attachment-control,
  body.chat-home-page .composer-actions .response-grade-control,
  body.chat-home-page .composer-actions .send-button { grid-row: 2; }
  body.chat-home-page .chat-safety-copy { max-width: 260px; align-self: center; margin-inline: auto; }
  body.chat-home-page .consumer-plan-menu .subscription-plan-banner { top: 68px; }
}

/* WEB-BACK-NAV-01 (소유자 10-20): a screen's header (← and name) comes back stuck to the top when the
   page is scrolled up a little, and steps aside while scrolling down (followWorkspaceHeader,
   site-conversation.js). Near the top nothing changes. */
body.chat-home-page .consumer-workspace[data-ws-header] > .site-modal > .site-modal-header { position: sticky !important; top: var(--ws-header-top, 0px) !important; z-index: 40; background: var(--ws-header-bg, transparent); box-shadow: 0 1px 0 rgba(15, 23, 42, .08); transition: transform .18s ease; }
body.chat-home-page .consumer-workspace[data-ws-header="hidden"] > .site-modal > .site-modal-header { transform: translateY(calc(-100% - 2px)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.chat-home-page .consumer-workspace[data-ws-header] > .site-modal > .site-modal-header { transition: none; } }
/* WEB-BACK-NAV-01 — the LOTBI bar on every workspace (phones).
   APP-HEADER-ONE-01 (10-26): it is the home's bar, the one 지역정보 draws (.ri-topbar, site-regional-info-ds.css) —
   ☰ on the left, the official logo, 로그인 (signed out) or LOTBI함 and the account (signed in) on the right. The bar
   runs edge to edge over the workspace padding (workspaceTopbar measures it). */
.ws-logo-topbar { display: none; }
@media (max-width: 760px) {
  body.chat-home-page .consumer-workspace > .site-modal > .ri-topbar.ws-logo-topbar {
    display: flex; align-items: center; gap: 6px; box-sizing: border-box; height: 64px; padding: 0 8px 0 1px;
    border-bottom: 1px solid var(--lotbi-border-default, #e3e7ee); background: var(--lotbi-surface-primary, #fff);
  }
  body.chat-home-page .consumer-workspace .ws-logo-topbar .ri-topbar-brand { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 48px; text-decoration: none; }
  body.chat-home-page .consumer-workspace .ws-logo-topbar .ri-topbar-logo { width: auto; height: 34px; object-fit: contain; border: 0; box-shadow: none; filter: none; }
  body.chat-home-page .consumer-workspace .ws-logo-topbar :is(.ri-topbar-menu, .ri-topbar-account) {
    display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--lotbi-text-primary, #212121); cursor: pointer;
  }
  body.chat-home-page .consumer-workspace .ws-logo-topbar .ri-topbar-menu svg { width: 21px; height: 21px; fill: currentColor; }
  body.chat-home-page .consumer-workspace .ws-logo-topbar .ri-topbar-account { display: none; border-radius: var(--lotbi-radius-pill, 999px); }
  body.chat-home-page[data-site-authenticated="true"] .consumer-workspace .ws-logo-topbar .ri-topbar-account { display: grid; }
  body.chat-home-page .consumer-workspace .ws-logo-topbar .ri-topbar-account .sidebar-profile-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  body.chat-home-page .consumer-workspace .ws-logo-topbar .ri-topbar-login {
    display: none; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; height: 44px; padding: 0 16px;
    border: 1px solid var(--lotbi-border-default, #e3e7ee); border-radius: 22px; background: var(--lotbi-surface-primary, #fff); color: var(--lotbi-text-primary, #212121); font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  }
  body.chat-home-page[data-site-auth-state="unauthenticated"] .consumer-workspace .ws-logo-topbar .ri-topbar-login { display: inline-flex; }
  /* ACCOUNT-UNKNOWN-HEADER-03: the home header offers 로그인 while the account state is unknown, so this bar does too. */
  body.chat-home-page[data-site-auth-state="unknown"] .consumer-workspace .ws-logo-topbar .ri-topbar-login { display: inline-flex; }
  body.chat-home-page .consumer-workspace .ws-logo-topbar :is(.ri-topbar-menu, .ri-topbar-account, .ri-topbar-login):focus-visible { outline: 2px solid var(--lotbi-focus-ring, #2563eb); outline-offset: -2px; }
  /* 투어: the bar's ☰ is the one menu; the tour bar keeps 〈 투어 (and 공유 on a result). */
  body.chat-home-page .consumer-workspace:has(> .site-modal > .ws-logo-topbar) .t-bar-menu { display: none; }
  /* The tour bar pulls itself up over the workspace padding; under the LOTBI bar it starts below it. */
  body.chat-home-page .consumer-workspace:has(> .site-modal > .ws-logo-topbar) .t-bar { margin-top: 0; }
}

/* SENIOR-TEXT-SIZE-01 — 글씨 크기 from account settings (html[data-site-text-size], site-text-size-preference.js):
   the content areas scale (0.9 작게, 1.15 크게, 1.3 아주 크게), the page frame does not, so full-height layouts and
   fixed bars keep their size. 보통 has no attribute and is unchanged. */
html[data-site-text-size="small"] body.chat-home-page :is(.conversation-thread, .chat-composer-stack, .sidebar-nav, .consumer-workspace > .site-modal) { zoom: 0.9; }
/* TEXT-SIZE-SMALL-IOS-ZOOM-01 (직원 아이폰 영상 10-28 14:32 「위로 드래그하면 계속 버벅거려요」): at 작게 the composer's 16px became
   14.4px, and iPhone zooms the whole page in (16/14.4) when a field under 16px is focused, so dragging pans the zoomed page.
   A field keeps 16px on screen: 16 / 0.9. */
html[data-site-text-size="small"] body.chat-home-page :is(.conversation-thread, .chat-composer-stack, .sidebar-nav, .consumer-workspace > .site-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), textarea, select) { font-size: calc(16px / 0.9); }
html[data-site-text-size="large"] body.chat-home-page :is(.conversation-thread, .chat-composer-stack, .sidebar-nav, .consumer-workspace > .site-modal) { zoom: 1.15; }
html[data-site-text-size="xlarge"] body.chat-home-page :is(.conversation-thread, .chat-composer-stack, .sidebar-nav, .consumer-workspace > .site-modal) { zoom: 1.3; }
/* Larger words need the room a zoomed phone needs: the composer text gets its own row, the menu becomes a list. */
@media (max-width: 600px) {
  html:is([data-site-text-size="large"], [data-site-text-size="xlarge"]) body.chat-home-page .chat-composer #lotbi-prompt.chat-input { grid-column: 1 / -1; grid-row: 3; min-height: 72px; margin: 0 4px; }
}
@media (max-width: 900px) {
  html:is([data-site-text-size="large"], [data-site-text-size="xlarge"]) body.chat-home-page #mobile-nav-drawer .consumer-primary-nav { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  html:is([data-site-text-size="large"], [data-site-text-size="xlarge"]) body.chat-home-page #mobile-nav-drawer .consumer-primary-nav .nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 6px 8px; font-size: var(--lotbi-fs-16, 16px); text-align: left; }
  html:is([data-site-text-size="large"], [data-site-text-size="xlarge"]) body.chat-home-page #mobile-nav-drawer .consumer-primary-nav .nav-item-label { letter-spacing: 0; }
}
html:is([data-site-text-size="large"], [data-site-text-size="xlarge"]) body.chat-home-page .chat-sidebar-desktop .nav-item-label { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
/* HELP-ENTRY-01 (소유자 10-29): 도움말, one quiet row above the account. */
.sidebar-help-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; margin: 0 0 4px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; opacity: .82; }
.sidebar-help-link:hover, .sidebar-help-link:focus-visible { background: rgb(127 127 127 / 10%); opacity: 1; }
.sidebar-help-link .nav-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
