/* TASFUL AI チャット UI */

.ai-workspace-chat-section {
  max-width: min(100% - 2rem, 900px);
  margin: 0 auto 48px;
  padding: 0 16px;
}

.ai-workspace-chat-section__intro {
  margin: 0 0 20px;
  text-align: center;
}

.ai-workspace-chat-section__intro h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: #0b1835;
}

.ai-workspace-chat-section__intro p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.ai-workspace-app {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.ai-workspace-app .ai-chat {
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 720px);
  min-height: 0;
}

.ai-mode-tabs-host {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fffef8 0%, #f8fafc 100%);
  border-bottom: 1px solid #e8ecf0;
  max-height: 200px;
  overflow-y: auto;
}

.ai-mode-tabs-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-mode-tabs-group__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ai-mode-tabs-group[data-ai-mode-group="matching"] .ai-mode-tabs-group__label {
  color: #7a5e12;
}

.ai-mode-tabs-group[data-ai-mode-group="concierge"] .ai-mode-tabs-group__label {
  color: #5b4d9e;
}

.ai-workspace-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.ai-workspace-app--concierge .ai-workspace-body {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
}

.ai-concierge-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #f5f3ff 0%, #f8fafc 100%);
  border-left: 1px solid #e8ecf0;
}

.ai-concierge-panel.is-visible {
  display: flex;
}

.ai-character-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ai-character-stage__visual {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #1a1040 0%, #2d1b69 45%, #0b1835 100%);
  box-shadow: 0 12px 28px rgba(45, 27, 105, 0.2);
}

.ai-character-stage__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.ai-character-stage.is-speaking .ai-character-stage__visual {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45), 0 12px 28px rgba(45, 27, 105, 0.25);
}

.ai-character-stage__hint {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #5b4d9e;
}

.ai-voice-control {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.ai-voice-control.is-disabled {
  opacity: 0.65;
}

.ai-voice-control__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
}

.ai-voice-control__toggle {
  width: 18px;
  height: 18px;
  accent-color: #7c5a12;
}

.ai-voice-control__note {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.ai-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-mode-tabs__btn {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ai-mode-tabs__btn:hover {
  border-color: #cbd5e1;
  color: #0b1835;
}

.ai-mode-tabs__btn.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, #fffbeb 0%, #fff8e8 100%);
  color: #7c5a12;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.12);
}

.ai-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #0b1835;
  color: #fff;
}

.ai-chat__head-text h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.ai-chat__head-text p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.5;
}

.ai-chat__reset {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
}

.ai-chat__reset:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ai-chat__messages {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: min(48vh, 480px);
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
}

.ai-chat__msg {
  display: flex;
  margin: 0;
}

.ai-chat__msg + .ai-chat__msg {
  margin-top: 16px;
}

.ai-chat__msg--user + .ai-chat__msg--assistant {
  margin-top: 24px;
}

.ai-chat__msg--assistant + .ai-chat__msg--assistant {
  margin-top: 24px;
}

.ai-chat__msg--assistant + .ai-chat__msg--user {
  margin-top: 32px;
}

.ai-chat__msg--user {
  justify-content: flex-end;
}

.ai-chat__msg--assistant {
  justify-content: flex-start;
}

.ai-chat__bubble {
  max-width: min(92%, 520px);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.ai-chat__msg--user .ai-chat__bubble {
  background: linear-gradient(135deg, #1e3a5f, #0b1835);
  color: #f8fafc;
  border-bottom-right-radius: 4px;
}

.ai-chat__msg--assistant .ai-chat__bubble {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.ai-chat__bubble--rich {
  max-width: 100%;
  width: 100%;
  padding: 14px 16px;
}

.ai-cross-intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
}

.ai-cross-intent {
  font-size: 12px;
  font-weight: 700;
  color: #7a5e12;
}

.ai-cross-card {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  background: #fafbfc;
  width: 100%;
  box-sizing: border-box;
}

.ai-cross-card__rank {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.ai-cross-card__meta {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
}

.ai-cross-card__meta li {
  margin: 0 0 4px;
}

.ai-cross-card__meta span {
  display: inline-block;
  min-width: 4.5em;
  font-weight: 800;
  color: #64748b;
}

.ai-cross-card__desc,
.ai-cross-card__reason {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.ai-cross-card__reason span {
  font-weight: 800;
  color: #7a5e12;
}

.ai-cross-card__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ai-cross-card__ctas--stack {
  flex-direction: column;
  align-items: stretch;
}

.ai-cross-card__ctas--stack .ai-cross-cta {
  justify-content: center;
  text-align: center;
}

@media (min-width: 640px) {
  .ai-cross-card__ctas--stack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.ai-result-contact {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ai-result-contact__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #0b1835;
}

.ai-result-contact__list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
}

.ai-result-contact__list li {
  margin: 0 0 4px;
}

.ai-result-contact__list span {
  display: inline-block;
  min-width: 5em;
  font-weight: 800;
  color: #64748b;
}

.ai-result-phone {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.ai-result-phone--tel {
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0b1835;
  text-decoration: none;
  justify-content: center;
}

.ai-result-phone--text {
  display: inline;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  user-select: all;
}

.ai-result-phone--hidden .ai-result-contact-note {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.5;
}

.ai-result-contact-note {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.55;
}

.ai-result-cta--phone {
  background: #fff !important;
  border-color: #94a3b8 !important;
  font: inherit;
  cursor: pointer;
}

.ai-call-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 24, 53, 0.55);
}

.ai-call-consent-backdrop[hidden] {
  display: none !important;
}

body.ai-call-consent-open {
  overflow: hidden;
}

.ai-call-consent-modal {
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.ai-call-consent-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: #0b1835;
  line-height: 1.4;
}

.ai-call-consent-body {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  color: #334155;
}

.ai-call-consent-body p {
  margin: 0 0 10px;
}

.ai-call-consent-meta {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.ai-call-consent-meta dt {
  font-weight: 800;
  color: #64748b;
  margin-top: 6px;
}

.ai-call-consent-meta dt:first-child {
  margin-top: 0;
}

.ai-call-consent-meta dd {
  margin: 2px 0 0;
  color: #0b1835;
}

.ai-call-consent-warning {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 700;
  color: #78350f;
  line-height: 1.55;
}

.ai-call-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.ai-call-consent-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.ai-call-consent-btn--primary {
  background: linear-gradient(135deg, #f5e6a8, #e8c547);
  border-color: #c9a227;
  color: #3d2f00;
}

.ai-call-consent-btn--ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

@media (min-width: 640px) {
  .ai-call-consent-actions {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .ai-call-consent-btn {
    min-width: 140px;
  }
}

.ai-cross-safety {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 639px) {
  .ai-result-phone--tel {
    display: inline-flex;
    width: 100%;
    margin-bottom: 4px;
  }

  .ai-result-phone--text {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #64748b;
  }
}

.ai-cross-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: #0b1835;
  background: #fff;
  border: 1px solid #cbd5e1;
}

.ai-cross-cta--gold {
  background: linear-gradient(135deg, #f5e6a8, #e8c547);
  border-color: #c9a227;
  color: #3d2f00;
}

.ai-cross-draft {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #334155;
}

.ai-cross-draft-panel {
  margin: 12px 0 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.ai-cross-draft-panel__summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ai-cross-draft-panel__summary::-webkit-details-marker {
  display: none;
}

.ai-cross-draft-panel__chevron {
  display: inline-block;
  flex-shrink: 0;
  width: 1.1em;
  margin-right: 6px;
  font-size: 10px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.ai-cross-draft-panel[open] .ai-cross-draft-panel__chevron {
  transform: rotate(180deg);
}

.ai-cross-draft-panel__body {
  padding: 0 12px 12px;
}

.ai-cross-draft-panel .ai-cross-draft {
  margin: 0;
}

.ai-search-summary {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #eef2ff 100%);
  border: 1px solid #bfdbfe;
}

.ai-search-summary__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ai-search-summary__list {
  margin: 0;
  padding: 0 0 0 1.15em;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  word-break: break-word;
}

.ai-search-summary__list li + li {
  margin-top: 4px;
}

.ai-cross-note,
.ai-cross-empty {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.5;
}

/* Web検索（Serper） */
.ai-web-results {
  margin: 0;
  padding: 0;
}

.ai-web-results__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.ai-web-results__query {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}

.ai-web-results__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-web-result-card {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.ai-web-result-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.ai-web-result-card__title a {
  color: #1d4ed8;
  text-decoration: none;
}

.ai-web-result-card__title a:hover {
  text-decoration: underline;
}

.ai-web-result-card__snippet {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
}

.ai-web-result-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  color: #64748b;
}

.ai-web-result-source {
  font-weight: 600;
}

.ai-web-result-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #9a3412;
}

.ai-web-results__error,
.ai-web-results__empty {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
}

/* ハイブリッド（TASFUL + Web） */
.ai-hybrid-section {
  margin: 0 0 16px;
}

.ai-hybrid-section:last-child,
.ai-search-result-section:last-child {
  margin-bottom: 0;
}

.ai-hybrid-section__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.ai-hybrid-section__body .ai-cross-intro {
  margin-top: 0;
}

.ai-hybrid-section--site + .ai-web-results {
  margin-top: 4px;
}

/* 安否 — 緊急注意・開発用ログパネル */
.ai-anpi-urgent-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.ai-anpi-dev {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.ai-anpi-dev__toggle {
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ai-anpi-panel {
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.ai-anpi-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.ai-anpi-panel__refresh {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
}

.ai-anpi-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-anpi-panel__item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.ai-anpi-panel__meta {
  margin: 0 0 6px;
  font-size: 11px;
  color: #64748b;
}

.ai-anpi-panel__type {
  font-weight: 700;
  color: #334155;
}

.ai-anpi-panel__status {
  color: #0f766e;
}

.ai-anpi-panel__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.ai-anpi-panel__message {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #334155;
  font-family: inherit;
}

.ai-anpi-panel__empty {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.ai-anpi-panel__summary {
  margin: 0 0 10px;
  font-size: 12px;
  color: #475569;
}

.ai-anpi-panel__unread {
  color: #2563eb;
  font-weight: 700;
}

.ai-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #e8ecf0;
  background: #fff;
}

.ai-workspace-page .ai-workspace-main {
  padding-bottom: 72px;
}

.ai-workspace-page .ai-chat__form {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(calc(100% - 32px), 1100px);
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.ai-chat__input {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.ai-chat__input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.ai-chat__send {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f5e6a8, #d4af37);
  cursor: pointer;
}

.ai-chat__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ai-workspace-legacy {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .ai-workspace-app--concierge .ai-workspace-body {
    grid-template-columns: 1fr;
  }

  .ai-concierge-panel.is-visible {
    border-left: none;
    border-top: 1px solid #e8ecf0;
  }

  .ai-character-stage__visual {
    max-width: 180px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .ai-mode-tabs__btn {
    min-width: 100%;
  }

  /* 埋め込み用レガシーUIのみ（TASFUL AI ワークスペースシェルは tasful-general-ai.css） */
  body:not(.tasful-general-ai-page) .ai-workspace-app .ai-chat {
    max-height: calc(100dvh - 220px);
  }

  body:not(.tasful-general-ai-page) .ai-chat__messages {
    min-height: 120px;
    max-height: min(30vh, 220px);
  }

  body:not(.tasful-general-ai-page) .ai-workspace-page .ai-chat__form {
    width: calc(100% - 24px);
    max-width: none;
    left: 12px;
    right: 12px;
    transform: none;
  }
}

/* プラン別 AI モデル選択 */
.ai-model-bar {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ai-model-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.ai-model-bar__current {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ai-model-bar__current strong {
  color: #0f4c81;
  font-weight: 800;
}

.ai-model-bar__select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.ai-model-bar__select-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.ai-model-bar__select {
  min-width: 140px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0b1835;
}

.ai-model-bar--compact .ai-model-bar__select-wrap {
  margin-left: 0;
}

.talk-card .ai-model-bar {
  margin-bottom: 12px;
}

/* Web検索利用バッジ（検索実行時のみ表示） */
.ai-search-used-badge {
  margin: 0 0 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f4c81;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid #7dd3fc;
  border-radius: 8px;
}

/* TASFUL AI Workspace — 回答内ブロックの視覚的分離 */
.ai-workspace-page .ai-message .ai-cross-intro {
  padding-bottom: 2px;
}

.ai-workspace-page .ai-message .ai-cross-intro + .ai-cross-card,
.ai-workspace-page .ai-message .ai-cross-intro + .ai-hybrid-section,
.ai-workspace-page .ai-message .ai-cross-intro + .ai-search-result-section {
  margin-top: 6px;
}

.ai-workspace-page .ai-message .ai-cross-card + .ai-search-summary,
.ai-workspace-page .ai-message .ai-hybrid-section + .ai-search-summary,
.ai-workspace-page .ai-message .ai-search-result-section + .ai-search-summary {
  margin-top: 14px;
}

.ai-workspace-page .ai-message .ai-cross-draft-panel {
  margin-top: 12px;
}
