/* Hallmark · macrostructure: Conversational · genre: modern-minimal · theme: Cobalt · enrichment: original companion SVG · customer chat */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
:root {
  color-scheme: light;
  --paper: oklch(99% .004 265);
  --surface: oklch(100% 0 0);
  --rail: oklch(97% .009 265);
  --ink: oklch(25% .055 267);
  --secondary: oklch(43% .035 266);
  --muted: oklch(52% .025 265);
  --line: oklch(91.5% .017 265);
  --line-strong: oklch(82% .03 265);
  --blue: oklch(50% .2 266);
  --blue-ink: oklch(100% 0 0);
  --blue-soft: oklch(95.5% .026 265);
  --blue-medium: oklch(89% .055 265);
  --green: oklch(39% .085 167);
  --green-soft: oklch(96% .019 168);
  --orange: oklch(44% .11 54);
  --orange-soft: oklch(97% .024 65);
  --pink: oklch(49% .09 350);
  --pink-soft: oklch(97% .018 350);
  --red: oklch(45% .16 25);
  --red-soft: oklch(96% .02 25);
  --overlay: oklch(20% .06 265 / .28);
  --shadow: oklch(25% .05 265 / .045);
  --shadow-high: oklch(25% .05 265 / .12);
  --focus: oklch(40% .14 266);
  --font-body: 'Avenir Next', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-display: 'Avenir Next', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-brand: 'Trebuchet MS', 'Avenir Next', sans-serif;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--paper);
}
.connection-notice { margin-bottom: 22px; border: 1px solid var(--blue-medium); border-radius: 14px; background: var(--blue-soft); padding: 16px 20px; font-size: 13px; line-height: 1.6; }
.connection-notice strong { color: var(--blue); }
.connection-notice p { margin: 5px 0 8px; color: var(--secondary); }
.text-button { border: 0; background: none; color: var(--blue); padding: 6px 0; font: inherit; font-size: 12px; text-align: left; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.text-button:disabled { opacity: .5; cursor: wait; }
.source-links { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 12px; font-size: 11px; }
.source-links a { color: var(--blue); display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.source-links .icon, .text-button .icon { width: 13px; height: 13px; flex-shrink: 0; }
.action-card > .source-links { padding: 0 20px 16px; }
.request-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.archive-note { color: var(--secondary); padding: 12px; background: var(--rail); border-radius: 10px; font-size: 12px; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; min-height: 100%; }
body { font-size: 15px; line-height: 1.6; }
button, textarea, select, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; min-width: 0; overflow-wrap: anywhere; }
h1 { font-weight: 500; letter-spacing: -.045em; }
p { overflow-wrap: anywhere; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--surface); z-index: 100; transform: translateY(-160%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.chat-app { height: 100dvh; display: flex; }
.chat-sidebar { width: 232px; background: var(--rail); color: var(--ink); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 18px 16px; flex: 0 0 auto; z-index: 30; }
.wordmark { font-family: var(--font-brand); letter-spacing: -.065em; font-size: 35px; font-weight: 800; line-height: 1; color: var(--ink); display: inline-flex; align-items: flex-end; }
.wordmark .brand-dot { width: 6px; height: 6px; background: var(--blue); color: var(--blue); border-radius: 50%; margin: 0 0 6px 3px; }
.rail-brand { padding: 0 12px; margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; }
.rail-brand small { font-size: 10px; color: var(--muted); padding-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; border-radius: 9px; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button.primary { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
.button.ghost { background: transparent; color: var(--secondary); border-color: transparent; }
.button.danger { background: var(--surface); color: var(--red); }
.new-chat { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-medium); justify-content: flex-start; width: 100%; margin-bottom: 29px; }
.new-chat .icon { width: 17px; height: 17px; }
.rail-label { color: var(--muted); font-size: 11px; padding: 0 12px; margin-bottom: 12px; }
.conversation-list { overflow-y: auto; flex: 1; min-height: 80px; }
.conversation-link { display: flex; align-items: center; gap: 9px; padding: 11px 12px; min-height: 44px; font-size: 12px; color: var(--secondary); border-radius: 7px; margin-bottom: 3px; }
.conversation-link .icon { width: 14px; height: 14px; color: var(--muted); }
.conversation-link span { white-space: nowrap; overflow: clip; text-overflow: ellipsis; }
.conversation-link.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.history-empty { font-size: 12px; color: var(--muted); line-height: 1.9; padding: 8px 12px; }
.rail-footer { padding-top: 20px; }
.benefit-note { border: 1px solid var(--line); border-radius: 12px; padding: 15px 13px; margin-bottom: 18px; background: var(--surface); color: var(--secondary); }
.benefit-note .icon { color: var(--blue); width: 17px; height: 17px; margin-bottom: 6px; }
.benefit-note strong { display: block; font-size: 12px; font-weight: 500; }
.benefit-note p { font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.8; }
.profile-button { width: 100%; display: flex; align-items: center; text-align: left; gap: 10px; padding: 10px 5px 0; border-top: 1px solid var(--line); min-height: 53px; }
.profile-avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-medium); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.profile-copy { flex: 1; min-width: 0; }
.profile-copy strong { display: block; font-size: 12px; font-weight: 500; }
.profile-copy small { display: block; font-size: 10px; color: var(--muted); }
.profile-button > .icon { width: 14px; height: 14px; color: var(--muted); }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.chat-header { height: 76px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; gap: 18px; }
.assistant-identity { display: flex; align-items: center; gap: 11px; }
.assistant-identity img { width: 33px; height: 33px; }
.assistant-identity strong { font-size: 14px; font-weight: 600; display: block; line-height: 1.4; }
.assistant-identity small { color: var(--muted); font-size: 10px; }
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 10px; }
.language-button { padding: 8px; min-height: 44px; display: flex; align-items: center; gap: 5px; color: var(--secondary); font-size: 11px; white-space: nowrap; }
.language-button .icon { width: 14px; height: 14px; }
.demo-label { font-size: 9px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); padding: 3px 6px; border-radius: 4px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; flex: 0 0 auto; color: var(--secondary); }
.icon-button .icon { width: 19px; height: 19px; }
.icon-button.mobile-menu { display: none; }
.personal-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--secondary); font-size: 11px; white-space: nowrap; }
.personal-button .icon { width: 16px; height: 16px; }
.notification-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 32px; scroll-behavior: smooth; }
.chat-content { width: 100%; max-width: 740px; margin: 0 auto; padding: 22px 0 30px; }
.welcome { max-width: 700px; width: 100%; margin: auto; padding: clamp(22px, 5vh, 56px) 0 24px; }
.welcome h1 { font-size: 19px; line-height: 1.6; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.welcome-description { color: var(--muted); font-size: 14px; line-height: 1.8; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.prompt-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 16px; text-align: left; display: flex; align-items: flex-start; gap: 12px; position: relative; }
.prompt-card > .icon { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.prompt-card:nth-child(2) > .icon { color: var(--orange); }
.prompt-card:nth-child(3) > .icon { color: var(--pink); }
.prompt-card:nth-child(4) > .icon { color: var(--green); }
.prompt-card > span { min-width: 0; flex: 1; }
.prompt-card strong { font-size: 12px; font-weight: 500; display: block; }
.prompt-card small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.welcome-foot { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; margin-top: 22px; }
.welcome-foot .icon { width: 13px; height: 13px; }
.composer-area { flex: 0 0 auto; width: 100%; padding: 12px 32px 18px; }
.composer-inner { width: 100%; max-width: 740px; margin: 0 auto; }
.chat-composer { padding: 15px 16px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 5px 22px var(--shadow); }
.chat-composer:focus-within { border-color: var(--blue); }
.chat-composer textarea { width: 100%; min-height: 44px; max-height: 140px; resize: vertical; background: var(--surface); color: var(--ink); border: 0; font-size: 14px; line-height: 1.7; padding: 0 2px; }
.chat-composer textarea::placeholder { color: var(--muted); opacity: .8; }
.chat-composer textarea:focus-visible { outline-offset: 2px; border-radius: 2px; }
.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 5px; }
.composer-tip { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 10px; }
.composer-tip .icon { width: 13px; height: 13px; }
.send-button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--blue-ink); flex: 0 0 auto; }
.send-button .icon { width: 19px; height: 19px; }
.demo-disclosure { text-align: center; color: var(--muted); font-size: 9px; margin-top: 10px; line-height: 1.7; }
.demo-disclosure button { font-size: inherit; padding: 0; color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }
.message { margin-bottom: 29px; min-width: 0; }
.message.user { display: flex; flex-direction: column; align-items: flex-end; }
.user-bubble { background: var(--blue-soft); color: var(--ink); padding: 13px 18px; border-radius: 17px 17px 4px 17px; max-width: 85%; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-time { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.assistant-row { display: flex; gap: 12px; align-items: flex-start; }
.message-avatar { width: 32px; height: 32px; flex: 0 0 auto; margin-top: 1px; }
.assistant-message { flex: 1; min-width: 0; }
.assistant-name { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.assistant-name small { font-size: 9px; color: var(--muted); font-weight: 400; }
.message-text { font-size: 14px; line-height: 1.9; color: var(--secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.action-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); margin-top: 16px; overflow: clip; }
.action-card-top { padding: 17px 19px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.action-card-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); flex: 0 0 auto; }
.action-card-icon .icon { width: 17px; height: 17px; }
.card-order .action-card-icon { color: var(--orange); background: var(--orange-soft); }
.card-booking .action-card-icon { color: var(--blue); background: var(--blue-soft); }
.card-product .action-card-icon { color: var(--pink); background: var(--pink-soft); }
.card-receipt .action-card-icon { color: var(--green); background: var(--green-soft); }
.action-card-top h2 { flex: 1; font-size: 13px; line-height: 1.5; font-weight: 600; }
.card-kicker { color: var(--muted); font-size: 8px; letter-spacing: .04em; display: block; margin-bottom: 2px; font-weight: 400; }
.action-card-body { padding: 17px 19px; }
.action-card-body > p { font-size: 12px; color: var(--secondary); line-height: 1.9; white-space: pre-wrap; }
.card-items { list-style: none; margin: 10px 0 0; padding: 0; }
.card-items li { font-size: 12px; color: var(--secondary); line-height: 1.8; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.card-items li:last-child { border: 0; padding-bottom: 1px; }
.card-actions { padding: 12px 19px 17px; display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions .button { min-height: 44px; font-size: 11px; padding: 9px 13px; }
.card-actions .action-done { color: var(--green); background: var(--green-soft); border-color: var(--green-soft); opacity: 1; }
.confirm-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--secondary); font-size: 11px; line-height: 1.8; margin-top: 18px; padding-top: 14px; min-height: 44px; border-top: 1px solid var(--line); }
.confirm-consent input { accent-color: var(--blue); width: 16px; height: 16px; flex: 0 0 auto; margin: 3px 0 0; }
.suggestions { margin: 14px 0 0 44px; display: flex; flex-wrap: wrap; gap: 7px; }
.suggestion { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 20px; color: var(--secondary); background: var(--surface); font-size: 11px; white-space: nowrap; max-width: 100%; overflow: clip; text-overflow: ellipsis; }
.suggestion .icon { width: 12px; height: 12px; }
.conversation-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; margin-bottom: 25px; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.conversation-meta > span { overflow: clip; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta .icon-button { width: 32px; height: 32px; }
.conversation-meta .icon-button .icon { width: 15px; height: 15px; }
.typing { display: flex; gap: 5px; align-items: center; padding: 14px 0 4px 44px; color: var(--muted); font-size: 11px; }
.turn-status-text { margin-inline: 5px; }
.turn-notices { flex: 0 0 auto; max-height: 25vh; overflow-y: auto; padding: 8px 24px; border-bottom: 1px solid var(--line); }
.turn-notices:empty { display: none; }
.turn-notice { display: flex; align-items: center; gap: 8px; max-width: 740px; margin: 0 auto; }
.turn-notice-link { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; min-height: 44px; padding-block: 8px; color: var(--blue); font-size: 12px; line-height: 1.6; text-decoration: none; }
.turn-notice-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn-notice-link .icon { flex: 0 0 auto; width: 16px; height: 16px; }
.typing-dot { width: 4px; height: 4px; background: var(--muted); border-radius: 50%; animation: fade 1s var(--ease-in-out) infinite; }
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes fade { 50% { opacity: .2; } }
.personal-panel { width: 310px; flex: 0 0 auto; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); overflow-y: auto; padding: 27px 23px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.panel-head h2 { font-size: 18px; font-weight: 500; letter-spacing: -.03em; }
.panel-section { padding-bottom: 24px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.panel-section h3 { display: flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.panel-section h3 .icon { width: 15px; height: 15px; color: var(--muted); }
.panel-empty { font-size: 11px; color: var(--muted); line-height: 1.9; }
.personal-item { font-size: 11px; padding: 11px 0; display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid var(--line); }
.personal-item:first-of-type { border-top: 0; }
.personal-item > div { flex: 1; min-width: 0; }
.personal-item strong { font-size: 11px; font-weight: 500; display: block; }
.personal-item p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.personal-item .icon-button { width: 28px; height: 28px; }
.personal-item .icon-button .icon { width: 13px; height: 13px; }
.activity-tag { color: var(--green); background: var(--green-soft); display: inline-block; font-size: 9px; padding: 2px 6px; border-radius: 4px; margin-top: 6px; }
.activity-details { margin-top: 6px; }
.activity-details summary { color: var(--secondary); cursor: pointer; font-size: 10px; min-height: 28px; padding-block: 5px; }
.activity-details p { white-space: pre-line; font-size: 10px; }
.panel-tip { color: var(--muted); font-size: 10px; line-height: 1.9; }
.panel-tip .icon { width: 13px; height: 13px; margin-right: 3px; }
.todo-check { width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 5px; display: grid; place-items: center; margin-top: 2px; flex: 0 0 auto; }
.todo-check[aria-checked=true] { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
.todo-check .icon { width: 12px; height: 12px; }
.todo-done { text-decoration: line-through; color: var(--muted); }
.menu-backdrop { display: none; }
dialog { position: fixed; inset: 0; margin: auto; width: min(480px, calc(100% - 32px)); height: fit-content; max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 70px var(--shadow-high); }
dialog::backdrop { background: var(--overlay); }
.modal-heading { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; margin-bottom: 18px; }
.modal-heading h2 { font-size: 21px; font-weight: 500; line-height: 1.4; padding-top: 5px; letter-spacing: -.03em; }
.modal-heading .icon-button { margin-top: -4px; margin-right: -8px; }
.modal-body { font-size: 13px; line-height: 1.9; color: var(--secondary); }
.modal-body p + p { margin-top: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.demo-profile { display: flex; width: 100%; text-align: left; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.demo-profile > div { flex: 1; }
.demo-profile strong { font-size: 13px; display: block; font-weight: 500; }
.demo-profile small { font-size: 10px; color: var(--muted); }
.demo-profile > .icon { width: 16px; height: 16px; color: var(--blue); }
.modal-note { font-size: 11px; line-height: 1.9; color: var(--muted); margin-top: 16px; }
.doc-links { display: grid; gap: 8px; margin-top: 18px; }
.doc-links a { font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; }
.doc-links .icon { width: 15px; height: 15px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 13px 19px; border-radius: 10px; background: var(--ink); color: var(--surface); box-shadow: 0 8px 30px var(--shadow-high); z-index: 100; font-size: 12px; }
.toast[hidden] { display: none; }
.toast.error { background: var(--red); color: var(--surface); }
.computer-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 12px; }
.computer-button .icon { width: 17px; height: 17px; }
dialog.computer-dialog { width: min(1160px, calc(100% - 32px)); padding: 24px; }
.computer-dialog .modal-heading { margin-bottom: 8px; }
.computer-intro { margin: 0 0 16px; max-width: 80ch; }
.computer-toolbar, .computer-control-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 10px; }
.computer-status { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.computer-status[data-state=running] { color: var(--green); }
.computer-status[data-state=starting], .computer-status[data-state=loading] { color: var(--orange); }
.computer-status[data-state=error] { color: var(--red); }
.computer-control-bar { border-top: 1px solid var(--line); }
.computer-control-bar p { margin: 0; font-size: 12px; flex: 1 1 24ch; }
.computer-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.computer-panel .button { font-size: 12px; }
.computer-panel .button:disabled, .computer-panel input:disabled, .computer-panel select:disabled { opacity: .5; cursor: not-allowed; }
.computer-panel .button[aria-busy=true] { cursor: progress; background: var(--blue-soft); color: var(--blue); border-color: var(--blue-medium); }
.computer-panel .button:active:not(:disabled), .computer-button:active { transform: translateY(1px); }
.computer-error { margin: 10px 0; padding: 10px 14px; border: 1px solid var(--red); border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 12px; }
.computer-error[hidden] { display: none; }
.computer-viewport { position: relative; min-height: 180px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--rail); color: var(--secondary); margin: 12px 0 18px; }
.computer-screen { display: block; width: 100%; min-height: 180px; padding: 0; border: 0; background: var(--rail); color: var(--secondary); cursor: crosshair; }
.computer-screen:disabled { cursor: default; opacity: 1; }
.computer-screen img { display: block; width: 100%; height: auto; max-width: 100%; max-height: none; margin-inline: auto; user-select: none; }
.computer-screen.stale img { opacity: .35; }
.computer-live { width: 100%; height: min(64dvh, 760px); background: #141414; overflow: hidden; overscroll-behavior: contain; }
.computer-live[hidden], [data-live-toggle][hidden], .live-connected #computer-screen, .live-connected #computer-placeholder,
.live-connected .computer-input-grid, .live-connected .computer-scroll,
.live-connected [data-computer-command="refresh"] { display: none; }
.computer-keyboard { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; resize: none; }
.computer-viewport:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.computer-placeholder { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; pointer-events: none; font-size: 13px; }
.computer-placeholder[hidden] { display: none; }
#computer-control-overlay .button { pointer-events: auto; }
.computer-form { min-width: 0; margin: 0; }
.computer-form label { display: block; font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.computer-field-row { display: flex; gap: 8px; align-items: stretch; }
.computer-field-row input, .computer-field-row select { flex: 1 1 0; min-width: 0; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.computer-field-row input[aria-invalid=true] { border-color: var(--red); }
.computer-field-row input::placeholder { color: var(--muted); }
.computer-input-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 16px; }
.computer-scroll { margin-top: 12px; }
.computer-manual-controls > summary { width: fit-content; padding-block: 10px; color: var(--secondary); font-size: 12px; cursor: pointer; }
.computer-privacy, .computer-note { font-size: 11px; line-height: 1.7; margin: 14px 0 0; color: var(--secondary); }
.computer-privacy .icon { width: 14px; height: 14px; margin-right: 5px; }
.computer-note { color: var(--muted); }
.accounts-panel { display: grid; gap: 16px; }
.accounts-panel p { margin: 0; line-height: 1.7; }
.account-custody { padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); font-size: 12px; }
.account-custody .icon { width: 16px; height: 16px; vertical-align: middle; margin-right: 6px; }
.account-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.account-item h3 { margin: 0 0 8px; font-size: 15px; }
.account-item p, #account-events { font-size: 12px; color: var(--secondary); overflow-wrap: anywhere; }
#account-form { display: grid; gap: 8px; }
#account-form > label:not(.account-consent) { font-size: 13px; font-weight: 500; }
#account-form > input, #account-form > select { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.account-consent { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-size: 12px; line-height: 1.7; }
.account-consent input { flex: 0 0 auto; margin-top: 5px; }
.account-error { color: var(--red); }
.delivery-inline { margin-top: 20px; }
.delivery-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.delivery-field { display: grid; gap: 8px; min-width: 0; }
.delivery-field.full { grid-column: 1 / -1; }
.delivery-field label { font-size: 12px; font-weight: 500; }
.delivery-field input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.delivery-field input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.delivery-field input:disabled { color: var(--muted); background: var(--rail); }
.delivery-vault-status { border: 1px solid var(--line); border-radius: 12px; padding: 15px; font-size: 13px; line-height: 1.7; }
.delivery-vault-status[data-state="saved"] { border-color: color-mix(in oklch, var(--green) 24%, var(--line)); background: var(--green-soft); color: var(--green); }
.delivery-inline .account-custody { font-size: 11px; }
.delivery-inline .modal-actions { margin-top: 0; flex-wrap: wrap; }
.delivery-inline [hidden] { display: none; }
.delivery-inline #checkout-options { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.delivery-inline #checkout-options select { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.delivery-inline #checkout-options select:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.delivery-inline #checkout-terms { display: grid; gap: 12px; }
.delivery-inline #checkout-terms details { border: 1px solid var(--line); border-radius: 9px; padding: 12px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.delivery-inline #checkout-terms summary { cursor: pointer; font-weight: 500; }
.delivery-inline #checkout-terms p { margin-top: 10px; }
.action-card-body .delivery-merchant-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--secondary); }
@media (max-width: 36rem) {
  .delivery-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .delivery-inline .modal-actions .button { width: 100%; justify-content: center; }
}
@media (hover: hover) {
  .computer-button:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-medium); }
  .computer-field-row input:hover:not(:disabled), .computer-field-row select:hover:not(:disabled) { background: var(--paper); }
}
@media (max-width: 53rem) {
  .computer-button { padding: 8px; border: 0; }
  .computer-button span { display: none; }
  .computer-button .icon { width: 20px; height: 20px; }
  dialog.computer-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 18px; }
  .computer-input-grid { grid-template-columns: 1fr; }
  .computer-toolbar, .computer-control-bar { align-items: flex-start; }
  .computer-buttons .button { padding-inline: 10px; }
  .computer-screen img { width: auto; max-height: 45dvh; }
}
.reconnect-screen { display: flex; min-height: 100dvh; justify-content: center; align-items: center; flex-direction: column; gap: 18px; padding: 28px; text-align: center; }
.reconnect-screen img { width: 86px; height: 86px; }
.reconnect-screen h1 { font-size: 27px; }
.reconnect-screen p { max-width: 44ch; font-size: 13px; color: var(--muted); }
#koro-signin { display: grid; gap: 16px; width: min(100%, 320px); text-align: start; }
#koro-signin label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; }
#koro-signin input { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
#koro-signin [role="alert"] { color: var(--red); }
#koro-signin [role="alert"]:empty { display: none; }

/* Hallmark · component: conversational choices · theme: existing Cobalt
 * states: default, hover, focus, active, disabled, loading, image error, selected */
.product-card { margin-top: 15px; padding: 14px; border-radius: 18px; background: var(--rail); color: var(--ink); min-width: 0; }
.product-card h2 { font-size: 14px; font-weight: 500; line-height: 1.6; padding: 0 2px 12px; }
.product-choices { display: grid; gap: 9px; }
.product-choice { width: 100%; display: grid; grid-template-columns: 84px minmax(0, 1fr) 38px; gap: 13px; align-items: center; text-align: left; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); min-width: 0; min-height: 110px; }
.product-choice:disabled { opacity: 1; cursor: not-allowed; }
.product-choice[data-state=selected], .product-choice[data-state=loading] { border-color: var(--blue); background: var(--blue-soft); }
.product-choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.product-choice[data-state=loading] { cursor: wait; }
.product-thumbnail { position: relative; display: block; width: 84px; height: 84px; border-radius: 9px; overflow: clip; background: var(--paper); flex-shrink: 0; }
.product-thumbnail-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.product-image-placeholder { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.product-image-placeholder .icon { width: 22px; height: 22px; }
.product-image-placeholder small { font-size: 9px; }
.product-copy { display: block; min-width: 0; }
.product-merchant { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: clip; font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.product-price { display: block; font-size: 17px; line-height: 1.5; font-weight: 650; margin-top: 4px; overflow-wrap: anywhere; }
.product-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: clip; margin-top: 5px; color: var(--secondary); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.product-meta { display: block; color: var(--muted); margin-top: 5px; font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.product-selection { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; white-space: nowrap; }
.product-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; }
.product-check .icon { width: 13px; height: 13px; }
.product-choice[aria-pressed=true] .product-selection { color: var(--blue); }
.product-choice[aria-pressed=true] .product-check { border-color: var(--blue); background: var(--blue); color: var(--blue-ink); }
.product-card-note { padding-inline: 2px; margin-top: 10px; color: var(--secondary); font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.choice-option { grid-template-columns: minmax(0, 1fr) 38px; min-height: 72px; padding: 15px 16px; }
.choice-option .product-title { font-size: 14px; }
@media (hover: hover) {
  .product-choice:hover:not(:disabled) { border-color: var(--blue-medium); background: var(--blue-soft); }
}
@media (max-width: 35rem) {
  .product-card { padding: 10px; border-radius: 16px; }
  .product-card h2 { font-size: 13px; padding-bottom: 10px; }
  .product-choice { grid-template-columns: 58px minmax(0, 1fr) 28px; padding: 10px; gap: 9px; }
  .product-thumbnail { width: 58px; height: 70px; }
  .product-price { font-size: 15px; }
  .product-title { font-size: 12px; }
  .product-selection { font-size: 8px; }
  .choice-option { grid-template-columns: minmax(0, 1fr) 32px; padding: 14px 12px; min-height: 70px; }
  .choice-option .product-title { font-size: 13px; }
}
@media (hover: hover) {
  .conversation-link:hover, .icon-button:hover, .button.ghost:hover { background: var(--blue-soft); color: var(--blue); }
  .prompt-card:hover { background: var(--blue-soft); border-color: var(--blue-medium); transform: translateY(-1px); }
  .suggestion:hover, .button:not(.primary):hover { border-color: var(--blue-medium); background: var(--blue-soft); color: var(--blue); }
  .button.primary:hover, .send-button:hover { opacity: .88; }
  .demo-profile:hover { background: var(--blue-soft); }
}
@media (min-width: 90rem) {
  .chat-sidebar { width: 248px; padding-inline: 23px; }
  .chat-scroll { padding-inline: 48px; }
  .welcome { padding-top: 50px; }
}
@media (max-width: 75rem) {
  .chat-sidebar { width: 210px; padding-inline: 14px; }
  .chat-header { padding-inline: 28px; }
  .personal-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 25; box-shadow: -15px 0 45px var(--shadow); width: 300px; }
  .welcome { padding-top: 25px; }
}
@media (max-width: 53rem) {
  .chat-sidebar { position: fixed; inset: 0 auto 0 0; width: 242px; transform: translateX(-100%); transition: transform 180ms var(--ease-out); }
  .chat-app.menu-open .chat-sidebar { transform: translateX(0); }
  .chat-app.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: var(--overlay); }
  .icon-button.mobile-menu { display: inline-grid; }
  .chat-header { height: 68px; min-height: 68px; padding: 0 19px 0 11px; }
  .assistant-identity { gap: 8px; }
  .assistant-identity img { display: none; }
  .assistant-identity strong { font-size: 15px; }
  .assistant-identity small { font-size: 9px; }
  .chat-scroll { padding-inline: 24px; }
  .composer-area { padding: 10px 24px 16px; }
  .welcome { padding-top: 20px; }
  .header-right { gap: 7px; }
  .personal-button { border: 0; padding: 8px; }
  .personal-button > span:not(.notification-dot) { display: none; }
  .personal-button .icon { width: 20px; height: 20px; }
  .demo-label { display: none; }
}
@media (max-width: 35rem) {
  .chat-header { border-bottom: 1px solid var(--line); height: 65px; min-height: 65px; }
  .chat-scroll { padding-inline: 20px; }
  .chat-content { padding-top: 18px; }
  .welcome { padding-top: 14px; padding-bottom: 18px; }
  .welcome-description { font-size: 12px; line-height: 1.8; }
  .prompt-grid { margin-top: 23px; gap: 9px; }
  .prompt-card { padding: 13px 11px; gap: 8px; min-height: 93px; flex-direction: column; }
  .prompt-card > .icon { width: 17px; height: 17px; }
  .prompt-card strong { font-size: 11px; line-height: 1.5; }
  .prompt-card small { font-size: 9px; margin-top: 3px; }
  .welcome-foot { font-size: 9px; margin-top: 16px; }
  .composer-area { padding: 8px 15px max(12px, env(safe-area-inset-bottom)); }
  .chat-composer { padding: 13px 13px 10px; border-radius: 15px; }
  .chat-composer textarea { font-size: 13px; min-height: 38px; }
  .composer-tip { font-size: 9px; }
  .demo-disclosure { font-size: 8px; margin-top: 8px; }
  .message { margin-bottom: 24px; }
  .assistant-row { gap: 9px; }
  .assistant-identity small { display: none; }
  .message-avatar { width: 26px; height: 26px; }
  .message-text, .user-bubble { font-size: 13px; }
  .user-bubble { max-width: 92%; padding: 11px 15px; }
  .action-card-top { padding: 14px; gap: 8px; }
  .action-card-top h2 { font-size: 12px; }
  .action-card-body { padding: 14px; }
  .action-card-body > p, .card-items li { font-size: 11px; }
  .card-actions { padding: 3px 14px 14px; }
  .card-actions .button { font-size: 10px; padding-inline: 10px; }
  .suggestions { margin-left: 35px; }
  .suggestion { font-size: 10px; min-height: 44px; padding: 7px 10px; }
  .personal-panel { width: min(310px, calc(100% - 22px)); }
  .conversation-meta { font-size: 9px; margin-bottom: 20px; }
}
@media (max-height: 680px) and (min-width: 54rem) {
  .welcome { padding-top: 0; }
  .prompt-grid { margin-top: 20px; }
  .prompt-card { padding: 12px; }
}
@media (min-width: 54rem) and (min-height: 681px) and (max-height: 900px) {
  .chat-content { padding-block: 16px 20px; }
  .welcome { padding-block: 16px; }
  .welcome-description { font-size: 13px; }
  .prompt-grid { margin-top: 22px; }
  .prompt-card { padding: 12px 16px; }
  .welcome-foot { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.conversation-shell .computer-preview {
  flex: 0 0 auto;
  min-width: 0;
  width: min(100%, calc(var(--shell-width) + 2 * var(--shell-gutter)));
  margin-inline: auto;
  padding: 0 var(--shell-gutter) 4px;
}
.conversation-shell .computer-preview:empty { display: none; }
.preview-heading { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.preview-heading > .icon { color: var(--blue); }
.preview-heading h2 { font-size: 16px; font-weight: 600; }
.preview-heading small { color: var(--secondary); font-size: 12px; }
.preview-heading button { margin-left: auto; min-height: 44px; color: var(--blue); font-size: 13px; }
.preview-status { color: var(--secondary); font-size: 13px; line-height: 1.5; }
.preview-status:empty { display: none; }
#computer-preview-body { margin: 8px 0; max-height: 22dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
#computer-preview-body img { display: block; width: 100%; max-height: 18dvh; object-fit: contain; }
.computer-preview [hidden] { display: none !important; }
.preview-empty { padding: 12px; color: var(--muted); font-size: 13px; }
.preview-caption { padding: 4px 8px; color: var(--secondary); font-size: 12px; }
@media (min-width: 60rem) {
  .conversation-shell.with-computer-preview { --preview-width: clamp(20rem, 34vw, 46rem); }
  .conversation-shell.with-computer-preview .chat-main { padding-right: var(--preview-width); }
  .conversation-shell.with-computer-preview .app-dock { left: calc((100% - var(--preview-width)) / 2); }
  .conversation-shell .computer-preview {
    position: absolute;
    inset: 0 0 0 auto;
    width: var(--preview-width);
    padding: 26px clamp(16px, 2vw, 32px);
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: var(--rail);
  }
  .preview-heading button { display: none; }
  #computer-preview-body { max-height: none; margin-top: 16px; }
  #computer-preview-body img { max-height: 70dvh; }
  .preview-empty { display: grid; place-content: center; min-height: 160px; padding: 24px; text-align: center; }
}
