.chat-app{padding:0 clamp(20px,5vw,90px) 30px}
.chat-stage{max-width:814px;margin:0 auto;position:relative;padding-top:clamp(56px,12.5vh,145px);display:flex;flex-direction:column}
.welcome{position:relative;display:flex;align-items:center;min-height:168px;margin:0 0 28px;isolation:isolate}
.hero-copy{position:relative;z-index:1;max-width:75%}.hero-copy h1{margin:0;font-weight:750;line-height:1.19;letter-spacing:-.068em;font-size:clamp(37px,3.6vw,55px);color:#243c31}
.hero-copy h1 em{font-style:normal;color:#39705a}.hero-copy p{margin:17px 0 0;color:#50645a;font-size:14px;letter-spacing:-.024em;line-height:1.7}.mobile-break{display:none}
.hero-art{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:220px;height:175px;pointer-events:none;isolation:isolate}
.hero-art:before{content:"";position:absolute;width:119%;height:133%;left:-15%;top:-11%;background:radial-gradient(ellipse 52% 42% at 40% 65%,#f0d99842,transparent),radial-gradient(ellipse 50% 52% at 68% 49%,#b0d5bb70,transparent);filter:blur(15px)}
.sculpture{position:relative;width:220px;height:175px;transform:rotate(-4deg)}
.art-shadow{position:absolute;left:33px;top:131px;width:151px;height:28px;background:radial-gradient(ellipse,#57725850 10%,#779c7040 34%,transparent 70%);filter:blur(8px);transform:rotate(7deg)}
.glass-bubble{display:block;position:absolute;border-radius:37% 38% 38% 32% / 42% 39% 39% 43%;border:1.2px solid #ffffffb5;isolation:isolate}
.glass-bubble:before{content:"";position:absolute;inset:4px 6px 8px 5px;border-radius:inherit;box-shadow:inset 2px 3px 4px #fffffff0,inset -4px -4px 6px #45685255;opacity:.85;pointer-events:none}
.glass-bubble:after{content:"";position:absolute;bottom:-9%;height:28%;width:28%;right:15%;border-radius:0 15% 20% 100%;transform:skew(14deg,28deg) rotate(4deg);background:linear-gradient(119deg,#91bda5,#7aa78e 53%,#5b937a 67%,#a6c6ac 95%);border-right:1px solid #eff5d4;box-shadow:2px 2px 3px #708e7735;z-index:-1}
.bubble-back{width:123px;height:92px;left:14px;top:58px;transform:rotate(-15deg) skewY(3deg);background:radial-gradient(ellipse at 21% 14%,#ffffe9 2%,#e0e6ad 32%,transparent 60%),linear-gradient(150deg,#eaebba 12%,#e1de9d 44%,#b4bb77 79%,#e2e6b2);box-shadow:inset 3px 5px 8px #fffffaed,inset -6px -6px 8px #979a6069,inset 2px -2px 3px #fffbdc,0 6px 12px #898f6726}
.bubble-back:after{right:auto;left:13%;transform:scaleX(-1) skew(16deg,22deg);background:linear-gradient(135deg,#dcdfa1,#bdc28a 67%,#e6e5b8)}
.bubble-front{display:flex;align-items:center;justify-content:center;gap:10px;width:147px;height:101px;left:64px;top:24px;transform:rotate(10deg) skewY(-3deg);background:radial-gradient(ellipse at 28% 8%,#f4ffefbb 0%,transparent 47%),radial-gradient(ellipse at 65% 62%,#a8d6b49c 5%,transparent 62%),linear-gradient(145deg,#bedfbe 5%,#a3d1b1 32%,#8abca3 62%,#6ba38b 82%,#bcdbbe);box-shadow:inset 3px 4px 7px #f9fff4,inset -7px -8px 10px #578b747d,inset 2px -3px 3px #e8f6da,0 8px 10px #557a5652}
.bubble-front i{display:block;width:12px;height:14px;border-radius:49%;transform:rotate(-3deg);background:linear-gradient(140deg,#7aac94,#a8c6ab 28%,#eff8d9 80%,#ffffe7);box-shadow:inset 1px 1.5px 2px #72957a,1px 1.5px 2px #eaffd8}
.composer-wrap{position:relative}.composer{border-radius:22px;border:1px solid #fffffff0;background:linear-gradient(150deg,#ffffffdf,#fbfdf7aa);box-shadow:0 10px 34px #2c503b12,0 2px 6px #405a3b0c,inset 0 1px 0 white;padding:19px 19px 13px;transition:border-color .2s,box-shadow .2s;position:relative;z-index:2}
.composer:focus-within{border-color:#b0cbaf;box-shadow:0 10px 34px #2c503b15,0 0 0 2px #b4cdb432,inset 0 1px 0 white}
.composer {
  display:grid;
  grid-template: "message message" auto "fields send" auto "hint hint" auto / minmax(0,1fr) auto;
  align-items:end;
  gap:8px 12px;
}
.composer textarea { grid-area:message; min-width:0; }
.compose-controls { grid-area:fields; display:flex; align-items:center; gap:7px; }
.compose-chip {
  position:relative; display:inline-flex; align-items:center; gap:6px;
  height:36px; padding:0 10px; white-space:nowrap;
  border:1px solid #c9d7c9; border-radius:999px;
  background:linear-gradient(145deg,#ffffffed,#f1f5edbf); color:#40574a;
  box-shadow:inset 0 1px 0 #fffd; font-size:13px; font-weight:600;
  transition:background-color .15s, border-color .15s, box-shadow .15s;
}
.kind-chip { color:#315c47; border-color:#bbd1c1; background:linear-gradient(145deg,#eef7ed,#dfeee3ed); }
.compose-chip:hover { border-color:#8eaf98; box-shadow:inset 0 1px 0 #fff, 0 2px 6px #244b3515; }
.compose-chip:focus-within { outline:2px solid #39745a; outline-offset:2px; }
.compose-chip:disabled { opacity:.63; cursor:default; }
.compose-chip .bk-icon { flex:none; width:15px; height:15px; }
.compose-chip .bk-icon:last-child { width:12px; height:12px; opacity:.76; transition:transform .16s; }
.compose-chip[aria-expanded="true"] { border-color:#85a990; background:#e4f0e5; }
.compose-chip[aria-expanded="true"] .bk-icon:last-child { transform:rotate(180deg); }
.date-chip { min-width:128px; font-variant-numeric:tabular-nums; }
.date-chip .bk-icon:last-child { margin-left:auto; }
.compose-caption { grid-area:hint; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:3px 8px; }
.compose-hint { margin:0; color:#52665b; font-size:11px; line-height:1.55; }
.compose-hint span { display:block; }
#chat-remaining { font-size:12px; color:#335744; font-variant-numeric:tabular-nums; }
.send-group { grid-area:send; display:flex; align-items:center; gap:9px; }
.key-hint { font-size:11px; line-height:1.3; color:#607065; }
@media (max-width:540px) {
  .composer { grid-template-areas:"message send" "fields fields" "hint hint"; gap:7px; }
  .send-group { align-self:start; }
  .compose-chip { height:40px; }
}
@media (max-width:360px) {
  .compose-controls { gap:5px; }
  .compose-chip { padding:0 8px; gap:5px; font-size:12px; }
}
.chat-transfer-scope { padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#f5f9f3b8; font-size:13px; line-height:1.55; }
.chat-transfer-scope dl { margin:8px 0 0; }
.chat-transfer-scope dt { color:#2d503e; font-weight:650; }
.chat-transfer-scope dd { margin:1px 0 7px; }
.chat-transfer-scope dd:last-child { margin-bottom:0; }
.composer textarea{display:block;resize:none;background:none;border:0;width:100%;min-height:64px;max-height:190px;padding:0 3px 10px;line-height:1.6;font-size:16px;outline:none;color:#263e30;word-break:normal;overflow-wrap:break-word}.composer textarea::placeholder{color:#788779}
#chat-submit{border:1px solid #2c624d;background:linear-gradient(150deg,#38694f,#23503c);color:white;border-radius:50%;width:37px;height:37px;padding:0;display:grid;place-items:center;box-shadow:inset 0 1px 1px #c3dbb840;transition:transform .2s,background .2s}#chat-submit .bk-icon{width:20px;height:20px;stroke-width:2}#chat-submit:hover:not(:disabled){transform:translateY(-2px);background:#2f6a4b}#chat-submit:disabled{opacity:.65;cursor:default}
.starters{margin-top:27px}.starters h2{margin:0 0 11px;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#54685a;letter-spacing:-.02em}.starters h2 .bk-icon{width:14px;height:14px}
.starter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.starter-card{text-align:left;color:var(--ink);padding:15px 16px 16px;border-radius:15px;background:linear-gradient(140deg,#ffffff91,#f7faf47a);border:1px solid #ffffffe0;transition:transform .2s,box-shadow .2s,border-color .2s}
.starter-card:hover,.starter-card:focus-visible{border-color:#fafff6;transform:translateY(-2px);box-shadow:inset 0 1px 0 white,0 8px 18px #395f4816;background-color:#ffffffb5}
.starter-top{display:flex;align-items:center;gap:7px;margin-bottom:11px}.starter-top small{color:#526458;font-size:11px;font-weight:600}.starter-top>.bk-icon{width:13px;height:13px;margin-left:auto;color:#758779}
.starter-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;box-shadow:inset 0 1px 0 #ffffffb3}.starter-icon .bk-icon{width:16px;height:16px}.sage{background:#dcebdd;color:#476e54}.sand{background:#f3e6d2;color:#83653c}.lilac{background:#e5e3ed;color:#746888}
.starter-card strong{font-size:13px;line-height:1.55;letter-spacing:-.024em;font-weight:600}.chat-footnote{display:flex;justify-content:center;align-items:center;gap:5px;color:#65766a;font-size:11px;text-align:center;margin-top:29px;flex-wrap:wrap}.chat-footnote .bk-icon{width:13px;height:13px}
#chat-error:not(:empty){display:block!important;background:#fff7ead9;color:#704521;border:1px solid #dbbe90;padding:7px 12px;border-radius:10px;font-size:13px}
.chat-stage:has(#chat-welcome[hidden]){padding-top:26px}.chat-stage:has(#chat-welcome[hidden]) .starters{display:none}
.chat-stage:has(#chat-welcome[hidden]) .composer-wrap{position:sticky;bottom:10px;margin-top:16px;z-index:3}
.chat-stage:has(#chat-attachment-input[open], .chat-issue-report[open], #chat-progress:not([hidden])) .composer-wrap{position:relative;bottom:auto}
@media(min-width:1600px){.chat-stage{max-width:875px}.welcome{min-height:190px}}
@media(max-width:1100px){.chat-app{padding-inline:clamp(24px,4.3vw,55px)}.hero-art{width:178px;right:-5px}.sculpture{transform:scale(.83) rotate(-4deg);transform-origin:0 50%}.hero-copy{max-width:75%}.starter-card{padding:12px}.starter-card strong{font-size:12px}}
@media(max-width:760px){.chat-stage{padding-top:clamp(34px,8vh,85px)}.chat-app{padding:0 16px 28px}.welcome{min-height:150px;margin-bottom:23px}.hero-copy{max-width:75%}.hero-copy h1{font-size:clamp(31px,6vw,41px);line-height:1.23}.hero-copy p{font-size:12px;margin-top:12px;line-height:1.7}.mobile-break{display:inline}.hero-art{width:104px;right:-4px;height:102px;top:44%}.sculpture{transform:scale(.49) rotate(-4deg);transform-origin:0 0}.composer{padding:15px 13px 10px;border-radius:18px}.composer textarea{min-height:67px;font-size:16px}.key-hint{display:none}.starters{margin-top:23px}.starter-grid{gap:7px}.starter-card{padding:10px;border-radius:12px}.starter-top{gap:5px}.starter-top>.bk-icon{display:none}.starter-top small{font-size:10px}.starter-icon{width:24px;height:24px}.starter-card strong{font-size:11px}.starter-card br{display:none}.chat-footnote{font-size:10px;margin-top:22px}}
@media(max-width:480px){.starter-grid{grid-template-columns:1fr}.starter-card{display:flex;align-items:center;gap:10px;padding:10px 12px}.starter-top{margin:0;flex:none}.starter-top small{display:none}.starter-card strong{font-size:12px;font-weight:550}.starter-card:after{content:"↗";margin-left:auto;font-size:12px;color:#6c8072}.hero-copy p{max-width:248px}.chat-footnote{justify-content:flex-start;text-align:left}}
@media(max-width:350px){.hero-art{opacity:.7;right:-10px;transform:translateY(-75%) scale(.8)}.hero-copy{max-width:80%}}

/* Conversation view keeps the answer, its evidence, and the reply field together. */
.has-messages .chat-stage{min-height:calc(100dvh - var(--bar) - 62px)}
.has-messages #chat-thread{flex:1;width:100%;padding-bottom:0}
.has-messages .chat-footnote{margin-top:12px}
.is-chat-page .bk-header{position:sticky;top:0;z-index:6;background:rgb(246 251 243/.78);backdrop-filter:blur(20px)}
.chat-lookup-note{margin-top:9px;font-size:13px}
#chat-thread summary{scroll-margin-block:80px 150px}
#chat-thread .chat-user .chat-bubble{background:linear-gradient(135deg,#dcece1,#d2e5d7);color:#244535;border:1px solid #edf5e9;box-shadow:inset 0 1px 0 #ffffffad}
#chat-thread .chat-assistant{gap:9px;align-items:flex-start}
#chat-thread .chat-assistant:before{content:"";flex:0 0 30px;height:30px;background:url("/static/ui/nogamgyul.96f3c69e1618.png") center/cover;margin-top:5px}
#chat-thread .chat-assistant .chat-bubble{padding:12px 16px 15px;background:var(--glass-card);border:1px solid #ffffffb0;box-shadow:inset 0 1px 1px #fff9}
#chat-thread .chat-assistant .chat-bubble:before{content:"노감귤";display:block;margin:0 0 7px;color:#335b45;font-size:12px;font-weight:700}
#chat-thread .chat-text{line-height:1.77;word-break:normal}
#chat-thread .chat-sources .chat-source{background:#f8fbf5b8;border-color:#c6d6c7;padding:7px 10px;margin-top:3px}
#chat-thread .chat-source summary{color:#315a41;font-weight:600}
#chat-thread .chat-source blockquote,.chat-dialog-inner .chat-source blockquote{border-color:#85ac8f;color:#344d3f}
#chat-thread .chat-source a{font-size:13px}
#chat-thread .chat-citation-link{color:#285b40;font-size:.86em;font-weight:700}
#chat-consent .chat-consent-choice{padding:10px 12px;background:#e5f0e5a6;border:1px solid #c8dacb;border-radius:10px;align-items:center}
.chat-consent-choice input{accent-color:var(--accent);width:17px;height:17px;flex:none}
#chat-consent .chat-toolbar button{min-height:38px;padding-inline:14px}#chat-consent #chat-preview-error:empty{display:none}
#chat-preview-notice{color:#735725;font-size:13px}#chat-consent .chat-dialog-inner>details{padding:8px 10px;border:1px solid var(--line);border-radius:9px}
@media(max-width:480px){.has-messages .chat-stage{min-height:calc(100dvh - var(--bar) - 29px)}#chat-thread .chat-assistant{gap:5px}#chat-thread .chat-assistant:before{flex-basis:23px;height:23px}#chat-thread .chat-assistant .chat-bubble{padding:9px 11px}#chat-thread .chat-text{font-size:14px}}

.case-intro{border-radius:16px;padding:16px 18px;margin-bottom:18px}.case-intro .case-intro-label{color:#526b59;font-size:11px;margin:0 0 6px}.starters .case-intro h2{font-size:16px;color:var(--ink);margin:0}.case-intro>p{margin:5px 0 11px;font-size:13px}.case-intro-choices{display:flex;gap:6px;flex-wrap:wrap}.case-intro-choices a{padding:5px 10px;text-decoration:none;border:1px solid var(--line);border-radius:9px;background:#ffffffe0;color:#315a43;font-size:12px}.case-intro-choices a:hover{background:#e1efdf}.chat-stage{padding-top:clamp(32px,6.5vh,88px)}
@media(max-width:760px){.chat-stage{padding-top:26px}.case-intro{padding:12px}.case-intro-choices a{padding:7px 8px}.starters .case-intro h2{font-size:14px}}
