:root {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #211b30; background: #fdfcfe; font-synthesis: none;
  --accent: #6943ac; --ink: #211b30; --muted: #665f74; --line: #e8e4ee;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p { margin: 0; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
button, select { color: inherit; }
button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; }
button svg, .attachment > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 235px minmax(0,1fr); }
.sidebar { display: flex; flex-direction: column; background: #f6f4fa; padding: 26px 16px 17px; border-right: 1px solid var(--line); height: 100dvh; position: sticky; top: 0; }
.brand, .side-footer { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark, .avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: #6943ac; color: white; font-size: 23px; }
.brand strong { font-size: 20px; letter-spacing: -.55px; }
.brand small, .side-footer small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.new-chat, .nav-item, .history { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; border-radius: 9px; background: transparent; padding: 10px 11px; font-size: 14px; }
.new-chat { margin: 29px 0 25px; background: white; border: 1px solid #ddd5e9; font-weight: 650; }
.new-chat:hover, .nav-item:hover, .history:hover { background: #ece6f7; }
.side-label { padding: 0 11px 8px; font-size: 12px; font-weight: 650; color: var(--muted); }
.nav-item { margin-bottom: 3px; }
.nav-item.is-active, .history.is-active { background: #eae2f7; color: #583493; font-weight: 650; }
.recent-label { margin-top: 27px; }
#recent { overflow-y: auto; }
.empty-history { padding: 4px 11px; font-size: 13px; color: var(--muted); }
.history span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history svg { width: 16px; height: 16px; }
.side-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e8def8; color: #5f3a9a; font-size: 13px; font-weight: 650; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 0 28px; height: 65px; border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb span { margin: 0 6px; color: #a097ad; }
.breadcrumb strong { color: var(--ink); }
.demo-tag { display: flex; align-items: center; gap: 6px; margin-left: auto; background: #f2ecfb; border-radius: 20px; padding: 6px 11px; color: #5e3d94; font-size: 12px; font-weight: 650; white-space: nowrap; }
.demo-tag i, .model-dot { width: 7px; height: 7px; background: #8055c6; border-radius: 50%; flex: none; }
.workspace { width: min(100%, 910px); margin: 0 auto; padding: clamp(26px, 7vh, 74px) 35px 22px; min-height: calc(100dvh - 65px); display: flex; flex-direction: column; }
.hero { display: grid; grid-template-columns: 1fr 36%; position: relative; overflow: hidden; align-items: center; min-height: 250px; padding: 30px 33px; border: 1px solid #e9e0f6; border-radius: 20px; background: linear-gradient(105deg,#f7f2ff,#f8f6fd 85%); }
.eyebrow { display: flex; align-items: center; gap: 6px; color: #6f49a7; font-weight: 750; font-size: 11px; letter-spacing: .13em; }
h1 { margin-top: 11px; font-size: clamp(32px, 4vw, 53px); font-weight: 735; line-height: 1.06; letter-spacing: -.055em; word-break: keep-all; }
.hero p { margin-top: 16px; color: #5d536e; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.orbit { width: 120%; margin-left: -9%; max-height: 220px; }
.starter-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 26px 0 11px; }
.starter-heading h2 { font-size: 16px; letter-spacing: -.02em; }
.starter-heading span { font-size: 12px; color: var(--muted); }
.starters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.starter { text-align: left; min-width: 0; position: relative; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 14px 13px; }
.starter:hover { border-color: #b9a5db; background: #fcf9ff; }
.tile-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #eee6fb; color: #6943ac; }
.tile-icon.mint { background: #e3f3ee; color: #276957; }
.tile-icon.sand { background: #faeddf; color: #8a5427; }
.tile-icon svg { width: 17px; height: 17px; }
.starter .tile-arrow { position: absolute; top: 15px; right: 12px; width: 15px; height: 15px; color: #766b86; }
.starter strong, .starter small { display: block; word-break: keep-all; }
.starter strong { margin: 11px 0 4px; font-size: 14px; }
.starter small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.compose-area { margin-top: auto; padding-top: 25px; position: sticky; bottom: 0; background: linear-gradient(transparent,#fdfcfe 18%); }
#composer { padding: 12px; background: white; border: 1px solid #dcd3ea; border-radius: 16px; box-shadow: 0 8px 22px #2b1e4f0a; }
#composer:focus-within { border-color: #9c82c5; }
textarea { display: block; width: 100%; min-height: 60px; resize: vertical; max-height: 220px; padding: 5px 7px; border: 0; background: white; color: var(--ink); line-height: 1.5; }
textarea::placeholder { color: #71687e; }
.compose-toolbar, .compose-tools { display: flex; align-items: center; gap: 8px; }
.compose-toolbar { justify-content: space-between; }
.icon-button, .send { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.icon-button:hover { background: #f0e9f9; }
.send { background: var(--accent); color: white; }
.send:hover { background: #563290; }
.model-picker { display: flex; align-items: center; gap: 7px; padding-left: 9px; border: 1px solid var(--line); background: #f9f7fc; border-radius: 9px; }
.model-picker select { border: 0; background: transparent; padding: 8px 5px 8px 0; font-size: 13px; font-weight: 650; max-width: 100%; cursor: pointer; }
#notice { min-height: 31px; text-align: center; padding: 8px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.attachment { display: flex; align-items: center; gap: 7px; max-width: 100%; width: fit-content; background: #f1eaf9; border-radius: 8px; padding: 2px 3px 2px 9px; color: #5b3b8d; font-size: 13px; }
.attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment .icon-button { width: 32px; height: 32px; flex-shrink: 0; }
.attachment svg { width: 15px; height: 15px; }
.mobile-nav, .mobile-usage { display: none; }
#messages { display: flex; flex-direction: column; align-items: stretch; gap: 25px; }
.turn { min-width: 0; }
.turn.user { align-self: flex-end; max-width: 85%; padding: 12px 16px; border-radius: 15px 15px 4px 15px; background: #f0e9fa; }
.turn p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.68; font-size: 15px; }
.turn-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.assistant .turn-meta { display: flex; gap: 7px; align-items: center; }
.assistant .turn-meta b { display: grid; place-items: center; width: 24px; height: 24px; color: #6943ac; background: #f1e8fb; border-radius: 7px; }
.assistant { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.copy { color: var(--accent); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; margin-top: 11px; font-size: 12px; }
.copy:hover { background: #f3eef9; }
dialog { width: min(480px, calc(100vw - 30px)); border: 1px solid #ded5eb; border-radius: 18px; padding: 24px; color: var(--ink); background: #fdfcfe; box-shadow: 0 16px 65px #26174630; }
dialog::backdrop { background: #20143465; }
.dialog-head { display: flex; justify-content: space-between; gap: 8px; }
.dialog-head h2 { margin: 7px 0 0; font-size: 23px; letter-spacing: -.04em; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 21px 0 13px; }
.metrics div { padding: 12px; border-radius: 12px; background: #f0eaf8; }
.metrics small, .metrics strong { display: block; }
.metrics small { color: var(--muted); font-size: 12px; }
.metrics strong { margin-top: 7px; font-size: 23px; font-variant-numeric: tabular-nums; }
.usage-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.usage-note { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 880px) {
  .shell { grid-template-columns: 189px minmax(0,1fr); }
  .workspace { padding: 32px 24px 16px; }
  .hero { padding: 24px; }
  .desktop-break { display: none; }
}
@media (max-width: 670px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; z-index: 4; width: min(260px, 83vw); height: calc(100dvh - 54px); top: 54px; box-shadow: 12px 12px 26px #21113224; }
  .sidebar.is-open, .mobile-nav, .mobile-usage { display: flex; align-items: center; justify-content: center; }
  .sidebar.is-open { align-items: stretch; justify-content: flex-start; }
  .topbar { padding: 0 11px; height: 54px; }
  .breadcrumb { font-size: 13px; }
  .workspace { min-height: calc(100dvh - 54px); padding: 19px 14px 8px; }
  .hero { min-height: 195px; padding: 19px; grid-template-columns: 1fr 26%; }
  .hero p { font-size: 13px; margin-top: 10px; }
  .orbit { width: 145%; margin-left: -20%; }
  .starters { gap: 6px; }
  .starter { padding: 9px 7px; }
  .starter strong { font-size: 12px; }
  .starter small { font-size: 11px; }
  .starter .tile-arrow { display: none; }
  .compose-area { padding-top: 19px; }
}
