/* Hallmark · macrostructure: Conversational · genre: modern-minimal · theme: existing Kori Cobalt */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R5 V3 · visual verification belongs to parent QA. */

.conversation-shell {
  --shell-width: 40rem;
  --shell-gutter: 20px;
  --shell-dock-height: 64px;
  --shell-dock-bottom: max(12px, env(safe-area-inset-bottom));
  --shell-dock-space: calc(var(--shell-dock-height) + var(--shell-dock-bottom) + 12px);
  display: block;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow-x: clip;
  background: var(--paper);
  isolation: isolate;
}
.conversation-shell .chat-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding-bottom: var(--shell-dock-space);
}

/* History is a drawer at every width; inert and focus management stay in chat.js. */
.conversation-shell .chat-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: min(288px, calc(100% - 40px));
  height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 180ms var(--ease-out);
  box-shadow: 12px 0 40px var(--shadow-high);
}
.conversation-shell.menu-open .chat-sidebar { visibility: visible; pointer-events: auto; transform: translateX(0); }
.conversation-shell .chat-sidebar[inert] { visibility: hidden; pointer-events: none; }
.conversation-shell .drawer-close { align-self: flex-end; margin: -8px -8px 8px 0; }
.conversation-shell .rail-brand { margin-bottom: 24px; }
.conversation-shell .rail-footer { margin-top: auto; }
.conversation-shell .menu-backdrop { display: none; }
.conversation-shell.menu-open .menu-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--overlay);
}
.conversation-shell .menu-backdrop:active { transform: none; }

.conversation-shell .chat-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  max-width: calc(var(--shell-width) + 8rem);
  height: 96px;
  min-height: 96px;
  margin-inline: auto;
  padding: 8px var(--shell-gutter);
  border: 0;
}
.conversation-shell .header-side { display: flex; align-items: center; min-width: 0; grid-column: 1; grid-row: 1; justify-self: start; }
.conversation-shell .header-right { grid-column: 3; grid-row: 1; justify-self: end; justify-content: flex-end; gap: 8px; }
.conversation-shell .mobile-menu { display: inline-grid; }
.conversation-shell .assistant-identity {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 72px;
  padding: 0 12px;
  border-radius: 16px;
  text-align: center;
}
.conversation-shell .assistant-identity img { display: block; width: 44px; height: 44px; flex: 0 0 auto; }
.conversation-shell .assistant-identity strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.conversation-shell .assistant-identity small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.conversation-shell .language-button { min-width: 44px; min-height: 44px; padding: 8px; border-radius: 12px; font-size: 12px; }
.conversation-shell .language-button .icon { width: 16px; height: 16px; }

.conversation-shell .chat-scroll { padding-inline: var(--shell-gutter); scrollbar-gutter: stable both-edges; scroll-padding-block: 20px; scroll-behavior: auto; }
.conversation-shell .chat-content { max-width: var(--shell-width); padding-block: 16px 24px; }
.conversation-shell .turn-notices { padding: 0 var(--shell-gutter); border-bottom: 0; max-height: 20dvh; }
.conversation-shell .turn-notice { max-width: var(--shell-width); }
.conversation-shell .turn-notice-link { font-size: 12px; }
.conversation-shell .welcome { max-width: 100%; padding-block: 20px 24px; }
.conversation-shell .welcome h1 { font-size: clamp(20px, 3vw, 24px); line-height: 1.5; letter-spacing: -.03em; }
.conversation-shell .welcome-description { font-size: 13px; line-height: 1.8; }
.conversation-shell .prompt-grid { gap: 12px; margin-top: 24px; }
.conversation-shell .prompt-card { flex-direction: row; align-items: flex-start; gap: 8px; min-height: 80px; padding: 12px; border-radius: 16px; box-shadow: none; }
.conversation-shell .prompt-card > .icon { width: 18px; height: 18px; }
.conversation-shell .prompt-card strong { font-size: 12px; line-height: 1.6; }
.conversation-shell .prompt-card small { font-size: 11px; line-height: 1.6; }
.conversation-shell .welcome-foot { align-items: flex-start; margin-top: 20px; font-size: 10px; line-height: 1.7; }
.conversation-shell .welcome-foot .icon { margin-top: 2px; }
.conversation-shell .conversation-meta { gap: 8px; margin-bottom: 12px; padding-bottom: 4px; border-bottom: 0; font-size: 11px; }
.conversation-shell .conversation-meta .icon-button { width: 44px; height: 44px; }
.conversation-shell .conversation-meta > span { min-width: 0; }
.conversation-shell .conversation-tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex: 0 0 auto; max-width: 72%; }
.conversation-shell .primary-chat-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--secondary); background: var(--surface); font: inherit; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.conversation-shell .primary-chat-button .icon { width: 14px; height: 14px; flex-shrink: 0; }
.conversation-shell .primary-conversation { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.conversation-shell .primary-conversation .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.conversation-shell .message { margin-bottom: 16px; }
.conversation-shell .assistant-row { gap: 12px; }
.conversation-shell .message-avatar { width: 28px; height: 28px; margin-top: 4px; }
.conversation-shell .assistant-name { margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--secondary); }
.conversation-shell .message-text { padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--rail); color: var(--ink); font-size: 16px; line-height: 1.65; }
.conversation-shell .message-text:empty { display: none; }
.conversation-shell .message-text :is(p, ul, ol) { margin: 0; white-space: normal; }
.conversation-shell .message-text > :is(p, ul, ol) + :is(p, ul, ol) { margin-top: .6em; }
.conversation-shell .message-text :is(ul, ol) { padding-inline-start: 1.4em; }
.conversation-shell .message-text li + li { margin-top: .25em; }
.conversation-shell .message-text li :is(ul, ol) { margin-top: .3em; }
.conversation-shell .message-text strong { font-weight: 600; color: var(--ink); }
.conversation-shell .message-text code { padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875em; white-space: break-spaces; overflow-wrap: anywhere; }
.conversation-shell .user-bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px 4px 18px 18px; background: var(--blue-soft); color: var(--ink); font-size: 16px; line-height: 1.65; }
.conversation-shell .message-time { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.conversation-shell .history-load { display: block; min-height: 44px; max-width: 100%; margin: 8px auto 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; line-height: 1.5; }
.conversation-shell .message-continuation { margin-top: -8px; }
.conversation-shell .message-continuation .assistant-row { padding-inline-start: 40px; }
/* Keep authorship available to assistive technology without repeating it visually. */
.conversation-shell .message-continuation :is(.message-avatar, .assistant-name) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.conversation-shell .chat-day { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 16px; color: var(--muted); }
.conversation-shell .chat-day::before, .conversation-shell .chat-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.conversation-shell .chat-day time { flex: 0 0 auto; font-size: 11px; line-height: 1.5; text-align: center; }
.conversation-shell .suggestions { margin-left: 40px; gap: 8px; }
.conversation-shell .suggestion { font-size: 11px; min-height: 44px; }
.conversation-shell :is(.action-card, .product-card, .workflow-result, .workflow-progress, .assistant-message) { min-width: 0; max-width: 100%; }
.conversation-shell .card-actions .button { min-height: 44px; }

/* A non-scrolling sibling immediately before the composer follows textarea resizing. */
.conversation-shell .jump-latest { position: relative; z-index: 10; display: grid; place-items: center; align-self: flex-end; flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: -52px max(var(--shell-gutter), calc((100% - var(--shell-width)) / 2)) 8px 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: 0 2px 8px var(--shadow); }
.conversation-shell .jump-latest[hidden] { display: none; }
.conversation-shell .jump-latest .icon { width: 18px; height: 18px; }

.conversation-shell .work-overview { display: grid; min-width: 0; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: clip; }
.conversation-shell .work-overview > h2 { margin: 0; padding: 8px 12px 4px; color: var(--secondary); font-size: 11px; font-weight: 500; line-height: 1.5; }
.conversation-shell .work-item { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; line-height: 1.5; text-decoration: none; }
.conversation-shell .work-item:last-child { border-bottom: 0; }
.conversation-shell .work-item > :not(.work-status):not(.work-count):not(.icon):not(.workflow-icon) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.conversation-shell .work-item > .workflow-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; }
.conversation-shell .work-item strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; }
.conversation-shell .work-item > .icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--secondary); }
.conversation-shell .work-status { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.conversation-shell .work-item .work-status { display: block; margin-bottom: 1px; }
.conversation-shell .work-count { flex: 0 0 auto; min-width: 24px; padding: 2px 6px; border-radius: 6px; background: var(--rail); color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.conversation-shell .work-item[data-status=running] .work-status { color: var(--blue); }
.conversation-shell .work-item:is([data-status=review], [data-status=needs_action]) .work-status { color: var(--orange); }
.conversation-shell :is(.jump-latest, .primary-chat-button, .primary-conversation, .work-item):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.conversation-shell .work-item:focus-visible { outline-offset: -3px; }

.conversation-shell .composer-area { padding: 8px var(--shell-gutter) 0; background: var(--paper); }
.conversation-shell .composer-inner { max-width: var(--shell-width); }
.conversation-shell .chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: end; gap: 8px; padding: 8px; border-radius: 24px; border-color: var(--line-strong); box-shadow: 0 4px 20px var(--shadow); }
.conversation-shell .chat-composer:focus-within { border-color: var(--blue); }
.conversation-shell .chat-composer textarea { height: 44px; min-height: 44px; max-height: min(112px, 25dvh); min-width: 0; padding: 8px; font-size: 16px; line-height: 1.7; border-radius: 12px; resize: vertical; }
.conversation-shell .composer-tools { justify-content: flex-end; margin: 0; gap: 0; }
.conversation-shell .send-button { width: 44px; height: 44px; }
.conversation-shell .demo-disclosure { margin-top: 8px; font-size: 10px; line-height: 1.5; }

.conversation-shell .app-dock {
  position: fixed;
  inset: auto auto var(--shell-dock-bottom) 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(380px, calc(100% - 32px));
  min-height: var(--shell-dock-height);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 32px var(--shadow-high);
  transform: translateX(-50%);
}
.conversation-shell .app-dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 50px; padding: 4px; border-radius: 999px; color: var(--secondary); font-size: 11px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.conversation-shell .app-dock .icon { width: 20px; height: 20px; }
.conversation-shell .app-dock a > span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.conversation-shell .app-dock .work-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; min-height: 18px; padding: 1px 4px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-size: 10px; line-height: 1.2; }
.conversation-shell .app-dock a[aria-current=page] { background: var(--blue-soft); color: var(--blue); }
.conversation-shell .app-dock a[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.conversation-shell .app-dock a[aria-busy=true] { cursor: progress; }
.conversation-shell .app-dock a:active { transform: translateY(1px); }

.conversation-shell .utility-content { padding-top: 12px; }
.conversation-shell .utility-page { width: 100%; min-width: 0; max-width: var(--shell-width); margin-inline: auto; padding: 8px 0 24px; }
.conversation-shell .page-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.conversation-shell .page-heading h1 { font-size: 24px; line-height: 1.4; letter-spacing: -.035em; }
.conversation-shell .page-heading p, .conversation-shell .utility-description { color: var(--secondary); font-size: 13px; line-height: 1.8; }
.conversation-shell .page-back { min-height: 44px; margin-bottom: 4px; font-size: 12px; }
.conversation-shell .settings-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding: 8px 0; }
.conversation-shell .settings-profile .profile-avatar { width: 48px; height: 48px; font-size: 16px; }
.conversation-shell .settings-profile strong { display: block; font-size: 16px; font-weight: 500; }
.conversation-shell .settings-profile small { display: block; color: var(--muted); font-size: 12px; }
.conversation-shell .settings-group { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: clip; }
.conversation-shell .settings-group h2 { margin: 0; padding: 16px; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 12px; font-weight: 600; }
.conversation-shell .settings-row, .conversation-shell .suggestion-item { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 72px; padding: 16px; text-align: left; background: var(--surface); color: var(--ink); }
.conversation-shell .settings-row { border-bottom: 1px solid var(--line); }
.conversation-shell .settings-row:last-child { border-bottom: 0; }
.conversation-shell :is(.settings-row, .suggestion-item) > span { flex: 1; min-width: 0; }
.conversation-shell :is(.settings-row, .suggestion-item) > .icon { width: 20px; height: 20px; color: var(--blue); }
.conversation-shell :is(.settings-row, .suggestion-item) > .icon:last-child { width: 16px; height: 16px; color: var(--muted); }
.conversation-shell :is(.settings-row, .suggestion-item) strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.conversation-shell :is(.settings-row, .suggestion-item) small { display: block; margin-top: 4px; color: var(--secondary); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.conversation-shell :is(.suggestion-list, .request-list) { display: grid; gap: 12px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.conversation-shell .suggestion-item { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.conversation-shell .suggestion-list .suggestion-item { margin-bottom: 0; }
.conversation-shell .request-list .workflow-result { margin-block: 0; }
.conversation-shell .utility-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.conversation-shell .utility-section h2 { margin-bottom: 16px; font-size: 16px; font-weight: 500; }
.conversation-shell .utility-empty { display: grid; justify-items: start; gap: 12px; padding-block: 24px; font-size: 14px; color: var(--secondary); }
.conversation-shell .utility-empty > .icon { width: 28px; height: 28px; color: var(--muted); }
.conversation-shell .utility-page .panel-section { padding-bottom: 20px; margin-bottom: 24px; }
.conversation-shell .utility-page .panel-section h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.conversation-shell .utility-page .personal-item { gap: 12px; min-height: 64px; align-items: center; font-size: 14px; }
.conversation-shell .utility-page .personal-item :is(strong, p) { font-size: 12px; }
.conversation-shell .utility-page .personal-item .icon-button, .conversation-shell .utility-page .todo-check { width: 44px; height: 44px; flex-shrink: 0; margin-top: 0; }
.conversation-shell .utility-page .todo-check { border-radius: 12px; }
.conversation-shell .utility-page .panel-empty { font-size: 13px; }

.conversation-shell .embedded-panel { min-width: 0; font-size: 14px; line-height: 1.8; }
.conversation-shell .embedded-panel p { overflow-wrap: anywhere; }
.conversation-shell .embedded-panel :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.conversation-shell .embedded-panel :is(input, select, textarea)[aria-invalid=true] { border-color: var(--red); }
.conversation-shell .embedded-panel :is(input, select, textarea):disabled { opacity: .55; cursor: not-allowed; }
.conversation-shell .embedded-panel .modal-actions { justify-content: flex-start; margin-top: 16px; gap: 8px; }
.conversation-shell .embedded-panel :is(.account-consent, .proactive-toggle) { min-height: 44px; }
.conversation-shell .embedded-panel :is(.account-custody, .proactive-privacy) { padding: 16px; border-radius: 12px; font-size: 12px; line-height: 1.8; }
.conversation-shell .embedded-panel #account-form { margin-top: 20px; gap: 12px; }
.conversation-shell .embedded-panel :is(.account-item, .proactive-section) h3 { font-size: 15px; }
.conversation-shell .embedded-panel :is(.button, .text-button), .conversation-shell .utility-page .text-button { min-height: 44px; max-width: 100%; }

.explore-toolbar { display: grid; gap: 16px; margin-bottom: 24px; }
.explore-search { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.explore-search > .icon { flex: 0 0 20px; color: var(--muted); }
.explore-search input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.explore-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.explore-search input:focus-visible { outline: none; }
.explore-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.explore-category { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--secondary); font-size: 13px; }
.explore-category[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.explore-count { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.explore-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; }
.explore-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.explore-card-copy { display: grid; gap: 8px; overflow-wrap: anywhere; }
.explore-card-copy :is(strong, h2, h3) { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; }
.explore-card-copy :is(p, small, span) { margin: 0; font-size: 13px; line-height: 1.7; color: var(--secondary); }
.explore-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--blue); }
.explore-card-footer .icon { width: 16px; height: 16px; }
.explore-empty { padding: 32px 16px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--secondary); line-height: 1.8; overflow-wrap: anywhere; }
.explore-detail { color: var(--secondary); line-height: 1.8; }
.explore-detail h3 { margin: 24px 0 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.explore-detail ul { margin: 0; padding-left: 20px; font-size: 14px; }
.explore-prompt { padding: 16px; border-radius: 12px; background: var(--blue-soft); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.explore-detail .modal-note { margin-top: 16px; }

.services-summary { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-soft); }
.services-summary :is(strong, h2) { color: var(--ink); font-size: 15px; font-weight: 500; }
.services-summary p, .services-note { color: var(--secondary); font-size: 12px; line-height: 1.8; }
.services-section { margin-top: 32px; }
.services-section > h2 { margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.services-list { border-block: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--blue); }
.service-copy { min-width: 0; overflow-wrap: anywhere; }
.service-copy :is(h3, strong) { font-size: 14px; font-weight: 500; color: var(--ink); }
.service-copy p { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--secondary); }
.service-status { display: inline-block; max-width: 100%; margin-block: 4px; padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.service-row > .service-status { grid-column: 2; justify-self: start; }
.service-status.status-ready { color: var(--green); background: var(--green-soft); }
.service-status.status-unverified { color: var(--orange); background: var(--orange-soft); }
.service-status.status-unavailable { color: var(--secondary); background: var(--paper); }
.service-details { margin-top: 8px; color: var(--secondary); font-size: 12px; }
.service-details summary { min-height: 44px; cursor: pointer; padding-block: 8px; }
.service-details :is(p, li) { font-size: 12px; }
.services-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.services-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.services-note { margin-top: 16px; }
.services-error { padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--red); font-size: 13px; }
:is(.explore-category, .explore-card, .service-details summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) {
  .explore-card:hover { border-color: var(--blue); background: var(--blue-soft); }
  .explore-category:hover:not([aria-pressed=true]) { border-color: var(--blue); color: var(--blue); }
}
@media (max-width: 39.99rem) {
  .explore-grid { grid-template-columns: minmax(0, 1fr); }
  .explore-card { min-height: 0; padding: 20px; }
}

.conversation-shell :is(.icon-button, .language-button, .assistant-identity, .app-dock a, .settings-row, .suggestion-item, .text-button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.conversation-shell .settings-row:focus-visible { outline-offset: -3px; }
.conversation-shell :is(.settings-row, .suggestion-item):disabled { opacity: .5; cursor: not-allowed; }
.conversation-shell :is(.settings-row, .suggestion-item)[aria-busy=true] { cursor: progress; }

@media (hover: hover) {
  .conversation-shell :is(.language-button, .assistant-identity, .app-dock a, .settings-row, .suggestion-item):hover:not(:disabled):not([aria-disabled=true]) { background: var(--blue-soft); color: var(--blue); }
  .conversation-shell .prompt-card:hover { transform: none; }
  .conversation-shell .embedded-panel :is(input, select, textarea):hover:not(:disabled) { background: var(--paper); }
}
@media (min-width: 40rem) {
  .conversation-shell { --shell-gutter: 32px; }
  .conversation-shell .assistant-identity img { width: 52px; height: 52px; }
  .conversation-shell .chat-content { padding-top: 24px; }
  .conversation-shell .chat-composer textarea { font-size: 15px; }
}
@media (max-width: 22.5rem) {
  .conversation-shell { --shell-gutter: 16px; }
  .conversation-shell .app-dock a { font-size: 10px; }
  .conversation-shell .assistant-row { gap: 8px; }
  .conversation-shell .message-avatar { width: 24px; height: 24px; }
  .conversation-shell .message-continuation .assistant-row { padding-inline-start: 32px; }
  .conversation-shell .suggestions { margin-left: 32px; }
  .conversation-shell .prompt-grid { gap: 8px; }
  .conversation-shell .prompt-card { padding: 12px 8px; }
  .conversation-shell .embedded-panel .proactive-quiet > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 32rem) {
  .conversation-shell { --shell-dock-height: 56px; --shell-dock-bottom: max(4px, env(safe-area-inset-bottom)); }
  .conversation-shell .chat-header { height: 68px; min-height: 68px; padding-block: 4px; }
  .conversation-shell .assistant-identity { min-height: 56px; gap: 2px; }
  .conversation-shell .assistant-identity img { width: 32px; height: 32px; }
  .conversation-shell .assistant-identity small { display: none; }
  .conversation-shell .app-dock { padding-block: 2px; }
  .conversation-shell .app-dock a { min-height: 48px; }
  .conversation-shell .welcome { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .conversation-shell *, .conversation-shell *::before, .conversation-shell *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .conversation-shell .app-dock a:active, .conversation-shell button:active:not(:disabled) { transform: none; }
}
