:root {
  color-scheme: light;
  --brand: #5455ec;
  --brand-hover: #4243c9;
  --brand-soft: #f0f0ff;
  --ink: #222633;
  --muted: #626774;
  --line: #e2e4ea;
  --surface: #fff;
  --canvas: #f5f6f8;
  --danger: #a3352e;
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-wrap: anywhere; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.7 var(--font); }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { touch-action: manipulation; }
button, input, select, summary { min-height: 44px; }
button { min-width: 44px; }
button:disabled { cursor: default; }
button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
button, textarea, input, select { border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.5; word-break: keep-all; }
.skip-link { position: fixed; z-index: 20; top: -100px; left: 12px; min-height: 44px; padding: 12px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 8px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1360px; margin: 0 auto; padding: 15px 28px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.brand { color: var(--brand); font-size: 18px; font-weight: 750; letter-spacing: -.6px; }
.brand span { color: var(--muted); font-size: 14px; font-weight: 500; margin-left: 14px; letter-spacing: -.2px; }
.button { display: inline-flex; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--ink); align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); font-size: 14px; font-weight: 650; line-height: 1.6; }
.secondary { background: var(--surface); }
.secondary:hover { background: #f5f5f8; border-color: #c8cbd5; }
.primary { background: var(--brand); border-color: var(--brand); color: white; }
.primary:hover:not(:disabled) { background: var(--brand-hover); }
.primary:disabled { background: #e8e9ef; border-color: #e8e9ef; color: #727783; }
.workspace { display: grid; grid-template-columns: 306px minmax(0, 1fr); max-width: 1304px; margin: 24px auto; border: 1px solid var(--line); border-radius: 12px; background: white; min-height: calc(100dvh - 132px); }
.faq-panel { min-width: 0; background: #fafafb; border-right: 1px solid var(--line); border-radius: 12px 0 0 12px; }
.faq-panel > summary { display: none; }
.faq-content { padding: 26px 20px; }
.faq-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.faq-heading h2 { font-size: 16px; font-weight: 700; }
#faq-count { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.faq-content label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 650; }
input, select { display: block; width: 100%; min-width: 0; background: white; border: 1px solid #d5d8e1; padding: 9px 11px; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #767b86; opacity: 1; }
select { padding-right: 28px; }
.catalog-status { color: var(--muted); font-size: 13px; margin-top: 16px; }
.faq-list { margin-top: 12px; max-height: min(600px, calc(100dvh - 360px)); overflow-y: auto; scrollbar-width: thin; }
.faq-question { display: block; width: 100%; min-height: 60px; padding: 14px 10px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 14px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.faq-question:hover { background: #f0f1f6; }
.faq-question[aria-current="true"] { color: var(--brand-hover); background: var(--brand-soft); font-weight: 650; }
.faq-question:disabled { opacity: .6; }
.sidebar-note { color: var(--muted); margin-top: 20px; font-size: 12px; }
#catalog-retry { width: 100%; margin-top: 12px; }
.chat-panel { min-width: 0; display: flex; flex-direction: column; padding: 28px 36px 20px; }
.eyebrow { color: var(--brand-hover); font-size: 13px; font-weight: 650; margin-bottom: 4px; }
h1 { font-size: 25px; font-weight: 750; letter-spacing: -.8px; }
.policy-note { margin-top: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.policy-note strong { color: var(--ink); font-size: 12px; }
#catalog-notice { display: block; font-size: 12px; margin-top: 6px; }
.public-contact { margin-top: 10px; }
.conversation { flex: 1; min-height: 250px; padding: 34px 0 28px; }
.welcome h2 { font-size: 21px; font-weight: 700; letter-spacing: -.6px; }
.welcome > p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.welcome .suggestion-label { font-size: 12px; margin-top: 30px; margin-bottom: 10px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.suggestion { background: white; border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 13px; line-height: 1.6; }
.suggestion:hover { background: var(--brand-soft); border-color: #c4c5fa; }
.response { min-width: 0; }
.question-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.user-question { font-size: 15px; font-weight: 650; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 25px; }
.answer-meta { color: var(--brand-hover); font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.response h2 { font-size: 21px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 16px; }
.answer-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.95; }
.answer-conditions { display: grid; gap: 16px; background: #f7f8fa; border-radius: 8px; padding: 18px 20px; margin-top: 24px; }
.answer-conditions h3 { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.answer-conditions p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: #4b505d; }
.response-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.handoff-note { color: var(--muted); font-size: 12px; margin-top: 10px; }
.choice-list { display: grid; gap: 8px; margin-top: 16px; }
.choice { text-align: left; padding: 13px 16px; border: 1px solid var(--line); background: white; line-height: 1.7; }
.choice:hover { background: var(--brand-soft); border-color: #c4c5fa; }
.choice-category { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.request-status { min-height: 24px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.privacy-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 10px; }
.chat-heading { margin-bottom: 20px; }
.request-status.error { color: var(--danger); }
.composer { background: white; border: 1px solid #c8cbd6; border-radius: 10px; padding: 14px 16px 12px; }
.composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.composer label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
textarea { display: block; width: 100%; min-width: 0; min-height: 64px; max-height: 180px; resize: vertical; font-size: 15px; line-height: 1.75; border: 0; background: white; padding: 4px 0; }
textarea:focus-visible { outline-offset: 2px; }
.composer textarea:focus-visible { outline: none; }
.composer-bottom { display: flex; gap: 14px; justify-content: space-between; align-items: end; margin-top: 8px; }
#input-hint { color: var(--muted); font-size: 11px; line-height: 1.8; }
#character-count { display: block; font-variant-numeric: tabular-nums; }
#send { flex-shrink: 0; }
.chat-footer { color: var(--muted); font-size: 11px; line-height: 1.8; padding-top: 14px; }
.chat-footer p + p { margin-top: 2px; }
.copy-fallback { margin-top: 16px; }
.copy-fallback textarea { border: 1px solid var(--line); padding: 10px; font-size: 13px; min-height: 110px; background: #fafafb; }
.copy-fallback label { font-size: 13px; display: block; margin-bottom: 8px; }
@media (max-width: 1360px) { .workspace { margin: 20px 24px; } }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 270px minmax(0, 1fr); }
  .chat-panel { padding: 26px; }
  .brand span { margin-left: 8px; }
}
@media (max-width: 800px) {
  .header-inner { padding: 12px 16px; }
  .brand { font-size: 17px; }
  .brand span { display: block; margin: 0; font-size: 12px; line-height: 1.5; }
  .workspace { display: flex; flex-direction: column; margin: 12px 12px 18px; min-height: calc(100dvh - 112px); border-radius: 10px; }
  .faq-panel { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
  .faq-panel > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: 14px; font-weight: 650; list-style: none; }
  .faq-panel > summary::-webkit-details-marker { display: none; }
  .summary-hint { color: var(--muted); font-size: 11px; font-weight: 400; }
  .faq-content { padding: 0 16px 20px; }
  .faq-heading { margin-bottom: 10px; }
  .faq-heading h2 { display: none; }
  .faq-list { max-height: 280px; }
  .chat-panel { padding: 22px 20px 18px; }
  h1 { font-size: 23px; }
  .policy-note { padding-bottom: 18px; }
  .conversation { min-height: 240px; padding: 26px 0 24px; }
  .welcome h2, .response h2 { font-size: 20px; }
  .answer-conditions { padding: 16px; }
  .composer { padding: 12px; }
  textarea { font-size: 16px; }
  .composer-bottom { gap: 8px; align-items: center; }
  #input-hint { font-size: 10px; }
  #send { font-size: 13px; padding: 9px 12px; }
  .response-actions > button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
