:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #ffffff;
  --sidebar: #f7f7f8;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --muted-2: #999;
  --line: #e5e5e5;
  --soft: #f4f4f4;
  --accent: #111;
  --success: #10a37f;
  --danger: #dc2626;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; color: var(--text); background: var(--bg); }
button, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 12px;
  background: var(--sidebar);
  min-height: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 14px;
}

.brand-mark, .empty-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: #111;
  font-weight: 750;
}

.brand-mark {
  width: 32px;
  height: 28px;
  border-radius: 9px;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.new-chat-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-weight: 600;
}

.new-chat-button:hover { background: #ececed; }
.new-chat-button span { font-size: 20px; font-weight: 350; line-height: 1; }

.session-history {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}

.session-history-title {
  padding: 0 10px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
}

.session-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  padding-right: 2px;
}

.session-item {
  width: 100%;
  padding: 9px 10px;
  color: var(--text);
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.session-item:hover { background: #ececed; }
.session-item.active { background: #e9e9eb; }
.session-item-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.session-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 560;
}
.session-state {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.session-state.unread {
  background: #1687ff;
  box-shadow: 0 0 0 2px rgba(22,135,255,.12);
}
.session-state.running {
  width: 11px;
  height: 11px;
  border: 2px solid #c7c7c7;
  border-top-color: #555;
  background: transparent;
  animation: session-state-spin .8s linear infinite;
}
@keyframes session-state-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .session-state.running { animation: none; border-top-color: #888; }
}
.session-item-meta {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11px;
}
.session-empty {
  padding: 10px;
  color: var(--muted-2);
  font-size: 12px;
}
.sidebar-spacer { flex: 0 0 auto; }

.sidebar-note {
  display: flex;
  gap: 10px;
  padding: 12px 10px;
  color: #4b4b4b;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.sidebar-note strong { display: block; margin-bottom: 4px; font-size: 12px; }
.sidebar-note p { margin: 0; color: var(--muted); line-height: 1.5; }
.shield { font-size: 20px; line-height: 1; }

[data-audience-copy] { display: none; }
body[data-audience="internal"] [data-audience-copy="internal"],
body[data-audience="public"] [data-audience-copy="public"] { display: block; }
body:not([data-audience="internal"]) [data-internal-only] { display: none; }

.workspace {
  position: relative;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.topbar {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(229, 229, 229, 0.75);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.site-feedback-entry {
  padding: 7px 12px;
  color: #4f4f4f;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: color .15s, background .15s, border-color .15s;
}
.site-feedback-entry:hover { color: var(--text); border-color: #cfcfcf; background: #fafafa; }
.site-feedback-entry:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.status-inline { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status-dot.ready { background: var(--success); }
.status-dot.busy { background: #f59e0b; animation: pulse 1.3s infinite; }
.status-dot.error { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }

.empty-state {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: min(680px, calc(100% - 40px));
  margin-top: -70px;
  text-align: center;
}

.empty-logo {
  width: 52px;
  height: 46px;
  margin: 0 auto 20px;
  border-radius: 15px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.empty-state h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.empty-state > p { margin: 10px 0 28px; color: var(--muted); font-size: 14px; }

.quick-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body[data-audience="public"] .empty-state { width: min(1030px, calc(100% - 40px)); }
body[data-audience="public"] .quick-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-chip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 78px;
  padding: 15px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.quick-chip:hover { border-color: #d3d3d3; background: #fafafa; }
.quick-chip strong { font-size: 14px; }
.quick-chip span { color: var(--muted); font-size: 12px; }

.messages {
  display: none;
  grid-row: 2;
  overflow-y: auto;
  min-height: 0;
  padding: 28px max(24px, calc((100% - 800px) / 2)) 150px;
  scroll-behavior: smooth;
}

.workspace.has-messages .empty-state { display: none; }
.workspace.has-messages .messages { display: block; }

.message { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 28px; }
.message.user { justify-content: flex-end; }
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: #111;
  font-size: 12px;
  font-weight: 750;
}
.message.user .avatar { display: none; }
.bubble { max-width: calc(100% - 44px); line-height: 1.7; white-space: pre-wrap; }
.message.assistant .bubble { flex: 1 1 auto; min-width: 0; }
.assistant-content { min-width: 0; white-space: normal; }
.assistant-prose { white-space: pre-wrap; }
.code-block {
  width: 100%;
  min-width: 0;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #f7f7f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  white-space: normal;
}
.code-block-header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid #dedede;
  background: #f1f1f2;
}
.code-language {
  color: #555;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
}
.code-copy-button {
  min-width: 48px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.code-copy-button:hover {
  border-color: #d1d1d1;
  background: #fff;
  color: #111;
}
.code-copy-button:focus-visible {
  outline: 3px solid rgba(17, 17, 17, .16);
  outline-offset: 2px;
}
.code-copy-button.copied {
  border-color: #cde9e1;
  background: #e7f7f2;
  color: #087d63;
}
.code-block-body {
  max-width: 100%;
  margin: 0;
  overflow: auto;
  padding: 15px 16px 17px;
  background: #fafafa;
  color: #242424;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-variant-ligatures: none;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}
.code-block-body:focus-visible {
  outline: 2px solid rgba(17, 17, 17, .18);
  outline-offset: -2px;
}
.code-block-body code {
  display: block;
  width: max-content;
  min-width: 100%;
  font: inherit;
  white-space: inherit;
}
.message-trace {
  display: inline-flex;
  margin-top: 12px;
  padding: 3px 0;
  color: var(--muted-2);
  border: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.2;
}
.message-trace:hover { color: var(--muted); text-decoration: underline; }
.trace-actions {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
}
.trace-copy {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.trace-copy:hover {
  border-color: #111;
  background: #f3f3f3;
}
.trace-copy:focus-visible {
  outline: 3px solid rgba(0, 0, 0, .18);
  outline-offset: 2px;
}
.trace-actions.copied .trace-copy {
  border-color: #111;
  background: #111;
  color: #fff;
}
.content-link { color: #087d63; text-decoration: none; font-weight: 650; }
.content-link:hover { text-decoration: underline; }
.jira-link { white-space: nowrap; }
.message.user .bubble {
  max-width: 78%;
  padding: 10px 15px;
  border-radius: 18px;
  background: var(--soft);
}

.progress-message, .execution-message { margin-top: 4px; }
.execution-panel {
  width: min(420px, calc(100vw - 120px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  white-space: normal;
  overflow: hidden;
}
.execution-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
}
.execution-summary::-webkit-details-marker { display: none; }
.execution-summary-main { display: flex; min-width: 0; align-items: center; gap: 6px; }
.execution-state-icon {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid #c7c7c7;
  border-top-color: #555;
  border-radius: 50%;
  animation: session-state-spin .8s linear infinite;
}
.execution-panel.completed .execution-state-icon {
  border: 0;
  background: #10a37f;
  animation: none;
}
.execution-panel.failed .execution-state-icon,
.execution-panel.cancelled .execution-state-icon {
  border: 0;
  background: var(--danger);
  animation: none;
}
.execution-label { color: var(--text); font-size: 12px; font-weight: 650; }
.execution-duration { color: var(--muted); font-size: 11px; }
.execution-chevron { color: var(--muted-2); font-size: 14px; transition: transform .18s ease; }
.execution-panel[open] .execution-chevron { transform: rotate(180deg); }
.execution-body { padding: 0 13px 12px 27px; border-top: 1px solid #ededed; }
.execution-timeline { display: grid; gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; }
.execution-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.execution-step-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border: 2px solid #aaa;
  border-radius: 50%;
  background: #fafafa;
}
.execution-step.current { color: var(--text); }
.execution-step.current .execution-step-dot { border-color: #111; background: #111; }
.execution-trace {
  margin-top: 10px;
  padding: 0;
  color: var(--muted-2);
  border: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.execution-trace:hover { color: var(--muted); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .execution-state-icon { animation: none; border-top-color: #888; }
}

.answer-card { margin-top: 16px; }
.answer-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { padding: 4px 9px; border-radius: 999px; background: #f1f1f1; color: #555; font-size: 11px; font-weight: 650; }
.badge.high { color: #087d63; background: #e7f7f2; }
.badge.medium { color: #9a6700; background: #fff4d6; }
.badge.low { color: #b42318; background: #feeceb; }
.badge.product_capability { color: #175cd3; background: #eef4ff; }
.badge.security { color: #7a5af8; background: #f4f0ff; }
.badge.troubleshooting { color: #087d63; background: #e7f7f2; }

.evidence { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence h3, .subsection h3 { margin: 0; font-size: 13px; }
.copy-button { padding: 6px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; }
.copy-button:hover { background: var(--soft); }
.evidence-list { display: grid; gap: 9px; margin: 10px 0 0; padding: 0; list-style: none; }
.evidence-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; font-size: 13px; }
.evidence-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-weight: 700; }
.source-type { color: var(--muted); font-size: 11px; font-weight: 500; }
.ref { display: block; margin-top: 7px; color: #087d63; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; }
.ref-link { text-decoration: none; }
.ref-link:hover { text-decoration: underline; }
.subsection { margin-top: 16px; }
.subsection ul { margin: 8px 0 0; padding-left: 20px; }
.subsection li + li { margin-top: 5px; }

.composer-dock {
  z-index: 4;
  grid-row: 3;
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 10px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 28%);
}

.composer {
  position: relative;
  padding: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

[data-public-mode] { display: none; }
body[data-audience="public"][data-response-modes="enabled"] [data-public-mode] {
  display: flex;
}
.response-mode-switcher {
  align-items: center;
  gap: 10px;
  padding: 0 12px 9px;
}
.response-mode-options {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}
.response-mode-option {
  min-height: 32px;
  padding: 6px 12px;
  color: #6f6f6f;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f4f4;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}
.response-mode-option:hover:not(:disabled) {
  color: #242424;
  background: #ececec;
}
.response-mode-option:focus-visible {
  outline: 2px solid #707070;
  outline-offset: 2px;
}
.response-mode-option.is-active {
  color: #fff;
  border-color: #1c1c1c;
  background: #1c1c1c;
}
.response-mode-hint {
  min-width: 0;
  margin: 0 2px 0 0;
  overflow: hidden;
  color: #777;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.35;
}
.response-mode-hint-compact { display: none; }

.input-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
  flex: 1;
  width: 100%;
  min-height: 38px;
  max-height: 200px;
  padding: 8px 4px;
  resize: none;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  line-height: 1.5;
}
.composer textarea::placeholder { color: #8d8d8d; }

.attach-button, .send-button, .cancel-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}
.attach-button { color: #333; border: 1px solid var(--line); background: #fff; font-size: 22px; font-weight: 300; cursor: pointer; }
.attach-button:hover { background: var(--soft); }
.send-button { color: #fff; border: 0; background: #111; font-size: 20px; font-weight: 600; }
.send-button:hover { background: #333; }
.cancel-button { width: auto; padding: 0 11px; color: #555; border: 0; border-radius: 18px; background: var(--soft); font-size: 12px; }
button:disabled { cursor: not-allowed; opacity: .4; }

.attachment-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 2px 2px 9px; }
.attachment-pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: #f8f8f8; font-size: 11px; }
.attachment-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-pill .attachment-remove { padding: 0; color: var(--muted); border: 0; background: transparent; font-size: 11px; }
.attachment-pill .attachment-remove:hover { color: var(--text); }

.attachment-image-card {
  position: relative;
  width: 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f7f7;
}
.attachment-image-preview {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #eee;
}
.attachment-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.attachment-image-preview:hover img { opacity: .88; }
.attachment-image-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px 5px;
  line-height: 1.25;
}
.attachment-image-name {
  overflow: hidden;
  color: #444;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.attachment-image-size { color: var(--muted-2); font-size: 8px; }
.attachment-image-card .attachment-remove {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(17,17,17,.86);
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  font-size: 15px;
  line-height: 1;
}
.attachment-image-card .attachment-remove:hover { background: #111; }

.site-feedback-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid #dedede;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.2), 0 4px 18px rgba(0,0,0,.08);
}
.site-feedback-dialog::backdrop { background: rgba(31,31,31,.38); backdrop-filter: blur(2px); }
.site-feedback-form { padding: 24px; }
.site-feedback-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.site-feedback-header h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.site-feedback-header p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.site-feedback-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #666;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.site-feedback-close:hover { color: #111; background: var(--soft); }
.site-feedback-trace-field { margin-bottom: 18px; }
.site-feedback-trace-field label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.site-feedback-trace-field label span { color: var(--muted-2); font-size: 10px; font-weight: 500; }
.site-feedback-trace-field input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  outline: none;
  font-size: 12px;
}
.site-feedback-trace-field input:focus { border-color: #777; box-shadow: 0 0 0 3px rgba(17,17,17,.06); }
.site-feedback-trace-field input::placeholder { color: #aaa; }
.site-feedback-trace-field p { margin: 6px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.site-feedback-form > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.site-feedback-form textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
  color: var(--text);
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 13px;
  line-height: 1.6;
}
.site-feedback-form textarea:focus { border-color: #777; box-shadow: 0 0 0 3px rgba(17,17,17,.06); }
.site-feedback-form textarea::placeholder { color: #aaa; }
.site-feedback-meta { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 11px; }
.site-feedback-error { color: var(--danger); }
.site-feedback-image-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 8px;
  padding: 9px 11px;
  color: var(--muted-2);
  border: 1px dashed #d4d4d4;
  border-radius: 12px;
  background: #fafafa;
  font-size: 10px;
  transition: border-color .15s, background .15s;
}
.site-feedback-image-drop.is-dragging { border-color: #777; background: #f3f3f3; }
.site-feedback-image-button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #333;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}
.site-feedback-image-button:hover { border-color: #ccc; background: var(--soft); }
.site-feedback-image-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.site-feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.site-feedback-cancel, .site-feedback-submit { min-width: 88px; padding: 9px 15px; border-radius: 10px; font-size: 13px; font-weight: 650; }
.site-feedback-cancel { color: #444; border: 1px solid var(--line); background: #fff; }
.site-feedback-cancel:hover { background: var(--soft); }
.site-feedback-submit { color: #fff; border: 1px solid #111; background: #111; }
.site-feedback-submit:hover { background: #2b2b2b; }
.site-feedback-submit:disabled { cursor: wait; opacity: .55; }
.site-feedback-toast {
  position: fixed;
  z-index: 20;
  top: 68px;
  right: 20px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 10px;
  background: #16866d;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  font-size: 12px;
}

.image-preview-dialog {
  width: min(920px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.image-preview-dialog::backdrop { background: rgba(0,0,0,.62); }
.image-preview-frame { display: flex; max-height: calc(100vh - 40px); flex-direction: column; }
.image-preview-header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.image-preview-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-preview-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #555;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.image-preview-close:hover { background: var(--soft); }
.image-preview-full {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 90px);
  margin: auto;
  object-fit: contain;
}

.composer-note { margin: 7px 0 0; color: var(--muted-2); text-align: center; font-size: 10px; }
.drop-overlay { position: absolute; z-index: 6; inset: 5px; display: none; place-items: center; align-content: center; gap: 4px; color: #111; border: 2px dashed #777; border-radius: 19px; background: rgba(248,248,248,.97); pointer-events: none; }
.drop-overlay span { color: var(--muted); font-size: 11px; }
.composer.is-dragging .drop-overlay { display: grid; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 0 14px; }
  .topbar-actions { gap: 10px; }
  .site-feedback-entry { padding: 6px 9px; }
  .empty-state { width: calc(100% - 28px); margin-top: -30px; }
  body[data-audience="public"] .empty-state { width: calc(100% - 28px); }
  .quick-panel { grid-template-columns: 1fr; }
  body[data-audience="public"] .quick-panel { grid-template-columns: 1fr; }
  .quick-chip:nth-child(n+3) { display: none; }
  body[data-audience="public"] .quick-chip[data-public-visible] { display: flex; }
  .messages { padding: 22px 16px 140px; }
  .composer-dock { width: calc(100% - 20px); }
  .response-mode-switcher { gap: 8px; }
  .site-feedback-form { padding: 20px; }
  .site-feedback-image-drop { align-items: flex-start; flex-direction: column; }
  .site-feedback-toast { right: 12px; left: 12px; text-align: center; }
  .message.user .bubble { max-width: 88%; }
  .code-block { border-radius: 10px; }
  .code-block-header { padding-left: 12px; }
  .code-block-body { padding: 13px 12px 15px; font-size: 11.5px; }
}

@media (max-width: 620px) {
  .response-mode-hint-compact { display: inline; }
  .response-mode-hint-extended { display: none; }
}
