:root {
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: #18322c;
  background: #f1f5ef;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 40px; }
header { margin-bottom: 32px; }
.eyebrow { color: #26705c; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; }
h1 { margin: 4px 0 12px; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.04em; }
.intro { max-width: 650px; color: #4c645e; font-size: 1.05rem; }
.panel { margin: 20px 0; padding: 28px; border: 1px solid #d4dfda; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgb(28 57 50 / 8%); }
h2, h3 { margin-top: 0; }
label { display: block; margin: 18px 0 7px; font-weight: 750; }
input, textarea { width: 100%; border: 1px solid #b9c9c3; border-radius: 12px; padding: 13px 14px; color: inherit; background: #fbfdfc; font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid #bde9d8; border-color: #26705c; }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
button { border: 0; border-radius: 999px; padding: 12px 22px; color: #fff; background: #17624f; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #104d3e; }
button:disabled { opacity: 0.55; cursor: wait; }
#status { color: #526a64; }
.answer { font-size: 1.12rem; line-height: 1.95; overflow-wrap: anywhere; }
.answer p { margin: 0 0 1.15em; word-break: keep-all; }
.answer .answer-lead { font-size: 1.16rem; font-weight: 650; color: #183e30; }
.answered-question { font-size: .83rem; color: #526a5f; margin: 0 0 9px; overflow-wrap: anywhere; }
.inline-citations { white-space: normal; }
.citation-link { display: inline-block; font-size: .7em; font-weight: 500; line-height: 1.4; vertical-align: super; margin: 0 2px; padding: 2px; text-decoration: none; color: #48705d; }
.citation-link:hover { text-decoration: underline; background: #eaf2e5; }
.reference-section { margin-top: 28px; border-top: 1px solid #e1e8df; }
.reference-section h3 { font-size: .92rem; margin-bottom: 5px; }
.reference-hint, .section-hint { font-size: .76rem; color: #5d7064; font-weight: 400; }
.section-hint { margin-left: 7px; }
.reference-hint { margin: 0 0 14px; }
.result h3 { margin-top: 28px; }
.references { padding-left: 24px; }
.references { font-size: .82rem; }
.references li { margin: 13px 0; padding-left: 3px; scroll-margin-top: 20px; }
.references li::marker { color: #5c7163; }
.reference-details summary { cursor: pointer; }
.reference-title { font-weight: 550; color: #405c4d; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.reference-details[open] .reference-title { display: block; -webkit-line-clamp: unset; }
.reference-meta { display: block; margin-top: 3px; color: #5c7163; font-size: .76rem; }
.reference-body { padding: 9px 12px; margin-top: 8px; background: #f6f8f3; border-radius: 9px; font-size: .78rem; overflow-wrap: anywhere; }
.answer-limitations { font-size: .8rem; color: #566b5d; margin: 16px 0; }
.answer-limitations summary { cursor: pointer; }
.faq-hub { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e1e8df; }
.faq-hub h3, .related-questions h3 { margin: 0 0 10px; font-size: .9rem; }
.faq-list { display: grid; gap: 7px; }
.faq-question { display: block; width: 100%; text-align: left; color: #335343; background: #f5f8f1; border: 1px solid #e1e9dc; border-radius: 11px; padding: 11px 14px; font-size: .86rem; font-weight: 500; line-height: 1.6; }
.faq-question:hover { background: #eaf2e2; border-color: #c4d6b9; }
.faq-question span { display: block; }
.faq-question small { display: block; color: #61715c; font-size: .72rem; margin-top: 3px; font-weight: 400; }
.faq-more { margin-top: 12px; }
.faq-more summary { font-size: .78rem; color: #58704e; cursor: pointer; margin-bottom: 10px; }
.related-questions { margin: 28px 0 22px; padding-top: 20px; border-top: 1px solid #e1e8df; }
.archive-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #607156; font-size: .76rem; margin: 0 0 20px; }
.archive-note .quiet-button { font-size: .71rem; }
#answer-title { scroll-margin-top: 20px; }
#answer-title:focus { outline: none; }
.references p { margin: 4px 0; color: #50655f; }
a { color: #17624f; }
footer { margin-top: 30px; color: #60736e; font-size: 0.9rem; }
.privacy-notice { margin: 18px 0 0; color: #657872; font-size: 0.86rem; }
.admin-link { display: block; width: max-content; margin-top: 8px; }
.logs-shell { width: min(1040px, calc(100% - 32px)); }
.logs-toolbar { display: flex; align-items: end; gap: 14px; margin-top: 16px; }
.search-field { flex: 1; }
.records-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.records { display: grid; gap: 18px; }
.log-card { padding: 20px; border: 1px solid #dce6e1; border-radius: 14px; background: #fbfdfc; }
.log-summary h3 { margin-bottom: 10px; }
.log-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.log-badge { padding: 3px 9px; border-radius: 999px; color: #34574e; background: #e6f1ed; font-size: 0.78rem; }
.log-answer { margin: 18px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #243d36; font: inherit; }
.log-error { color: #9b2f2f; }
.log-references { padding-left: 22px; }
.log-references li { margin: 10px 0; }
.log-references p, .request-id { margin: 3px 0; color: #647871; font-size: 0.82rem; }
.empty-state { color: #647871; }

.community-invite { margin: 32px 0 20px; padding: 30px; border: 1px solid #c4d6ca; border-radius: 20px; background: #e7eee1; color: #274d3d; }
.community-invite .presented { margin: 0; font-size: 1.03rem; }
.program-credit { margin: 4px 0 26px; font-size: .86rem; color: #536854; }
.community-invite h2 { margin-bottom: 8px; font-size: 1.5rem; letter-spacing: -.04em; }
.community-invite > p { max-width: 630px; }
.button-link { display: inline-flex; align-items: center; gap: 24px; margin: 10px 0 4px; padding: 12px 22px; border-radius: 999px; color: #fff; background: #17624f; text-decoration: none; font-weight: 750; }
.button-link:hover { background: #104d3e; }
.button-link:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #4a8c72; outline-offset: 4px; }
.invite-note { color: #566d5d; font-size: .79rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; }

[hidden] { display: none !important; }
.journey { overflow: hidden; background: linear-gradient(150deg, #fff 25%, #f5faef); }
.journey-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.journey-heading .eyebrow { margin: 0 0 5px; letter-spacing: .08em; font-size: .7rem; }
.journey h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.03em; }
.quiet-button { background: transparent; color: #506c5e; padding: 5px 9px; font-size: .75rem; font-weight: 600; border: 1px solid #ccdacc; white-space: nowrap; }
.quiet-button:hover { background: #e9f2e5; }
.race { position: relative; height: 193px; margin: 16px 0 20px; border-radius: 16px; background: linear-gradient(#eef6eb 67%, #e1ecd5 67%); overflow: hidden; }
.race::after { content: ""; position: absolute; bottom: 33px; left: 20px; right: 22px; border-top: 2px dashed #b6c9a4; }
.race-track { position: absolute; left: 12px; right: 102px; bottom: 42px; height: 118px; }
.racer { position: absolute; width: 88px; transition: left 1.2s cubic-bezier(.25,.7,.3,1); z-index: 2; }
.racer svg { width: 100%; display: block; overflow: visible; }
.turtle { left: calc(var(--turtle, 0) * 1%); bottom: -22px; z-index: 3; }
.rabbit { left: calc(var(--rabbit, 10) * 1%); bottom: 36px; width: 70px; }
.racer-name { position: absolute; bottom: -7px; left: 26px; font-size: 10px; font-weight: 700; color: #476049; }
.rabbit .racer-name { left: 23px; }
.runner-body { animation: toddle .7s ease-in-out infinite alternate; transform-origin: center bottom; }
.rabbit .runner-body { animation: hop .55s ease-in-out infinite alternate; }
.sleepy { position: absolute; top: -9px; left: 45px; color: #819077; font-size: 13px; opacity: 0; }
.rabbit-resting .rabbit .runner-body { animation: breathe 2.5s ease-in-out infinite alternate; }
.rabbit-resting .sleepy { opacity: 1; }
.finish-flag { position: absolute; right: 16px; bottom: 31px; color: #e29460; font-size: 57px; line-height: 1; }
.finish-flag small { display: block; font-size: 10px; margin-top: 5px; color: #486449; }
.race-start { position: absolute; left: 18px; bottom: 10px; font-size: 10px; color: #6e8060; }
.race-flower { position: absolute; left: 46%; bottom: 7px; color: #dcab73; font-size: 20px; }
.race-cloud { position: absolute; width: 54px; height: 12px; background: #fff; border-radius: 20px; opacity: .8; }
.race-cloud::before { content: ""; position: absolute; width: 23px; height: 23px; border-radius: 50%; background: #fff; bottom: 2px; left: 13px; }
.cloud-one { top: 40px; left: 23%; }.cloud-two { top: 24px; left: 67%; transform: scale(.7); }
.race-sun { position: absolute; right: 30px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: #f2d788; box-shadow: 0 0 0 7px #f2d78822; }
.progress-heading, .progress-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.progress-heading strong { font-size: .96rem; }.progress-heading > span { font-variant-numeric: tabular-nums; font-size: .82rem; color: #547060; }
#search-progress { appearance: none; display: block; width: 100%; height: 8px; border: none; border-radius: 8px; overflow: hidden; background: #e4ede0; margin: 10px 0 7px; }
#search-progress::-webkit-progress-bar { background: #e4ede0; border-radius: 8px; }
#search-progress::-webkit-progress-value { background: #49855b; border-radius: 8px; transition: width .7s; }
#search-progress::-moz-progress-bar { background: #49855b; border-radius: 8px; }
.progress-caption { color: #627660; font-size: .73rem; }
.progress-detail { font-size: .88rem; min-height: 1.6em; margin: 16px 0; }
.journey details summary { font-size: .8rem; color: #526d58; cursor: pointer; }
.search-stages { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 20px; counter-reset: stage; }
.search-stages li { counter-increment: stage; display: flex; align-items: center; gap: 8px; color: #7b8877; font-size: .75rem; }
.search-stages li::before { content: counter(stage); display: grid; place-items: center; flex: 0 0 20px; height: 20px; border-radius: 50%; background: #edf1e8; font-size: .65rem; }
.search-stages li span { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search-stages .current { color: #215c40; font-weight: 750; }.search-stages .current::before { color: #fff; background: #49855b; }
.search-stages .done { color: #456346; }.search-stages .done::before { content: "✓"; background: #dcebd4; }
.journey-tip { display: flex; align-items: center; gap: 12px; padding: 12px 15px; margin-top: 18px; border-radius: 12px; background: #edf3e7; color: #4e6547; }
.journey-tip > span { font-size: 23px; color: #7c9864; }.journey-tip p { margin: 0; font-size: .8rem; min-height: 2.8em; display: flex; align-items: center; }
.journey-note { color: #71806b; font-size: .71rem; margin: 10px 0 14px; }
.medical-notice { padding: 12px 15px; border-left: 3px solid #b6cbae; background: #f3f7ef; color: #587050; font-size: .82rem; }
.motion-paused .runner-body, .is-complete .runner-body, .is-stopped .runner-body { animation: none; }
.motion-paused .racer { transition: none; }
.is-complete .race { height: 155px; }.is-complete .finish-flag { color: #49855b; }
@keyframes toddle { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-2px) rotate(1deg); } }
@keyframes hop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-7px) rotate(2deg); } }
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.97); } }
@media (prefers-reduced-motion: reduce) { .runner-body { animation: none !important; }.racer, #search-progress::-webkit-progress-value { transition: none !important; } }

@media (max-width: 600px) {
  .shell { padding-top: 34px; }
  .panel { padding: 20px; border-radius: 16px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .logs-toolbar { align-items: stretch; flex-direction: column; }
  .journey-heading { gap: 6px; }.journey h2 { font-size: 1.03rem; }
  .journey-heading .quiet-button { font-size: .65rem; padding: 5px 7px; }
  .search-stages { gap: 8px 12px; }.search-stages li { font-size: .69rem; gap: 5px; }
  .race-track { right: 82px; }.racer { width: 73px; }.rabbit { width: 62px; }
  .finish-flag { right: 9px; font-size: 49px; }.race { height: 183px; }
}

.language-row{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;font-size:.85rem;margin-bottom:1rem}.language-row select{font:inherit;border:1px solid #aec9ba;border-radius:10px;background:#fff;color:#244b38;padding:.5rem .7rem;max-width:65%}.language-hint{font-size:.78rem!important;color:#557063!important;text-align:right;margin:0 0 1.1rem!important}html[lang="en"] .race .finish-flag small{font-size:.7rem}html[lang="en"] .search-stages li{line-height:1.35}@media(max-width:540px){.language-row{justify-content:flex-start}.language-hint{text-align:left}html[lang="en"] .search-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}
