/* Socratus ask page (css/ask.css): the bust and the setup on the left, the dialogue on the right. */
.ask-bg { height: 560px; }
.ask-bg img { object-position: 50% 22%; }
.ask { padding-top: 32px; padding-bottom: 96px; }
.ask-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.ask-side { position: sticky; top: 16px; }
.ask-bust { width: 168px; height: auto; margin: 0 0 8px -6px; filter: drop-shadow(0 18px 24px rgba(74, 52, 25, .28)); }
.ask-title { font: 700 40px/1.05 var(--sans); letter-spacing: -.035em; }
.ask-sub { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.ask-setup { margin-top: 20px; padding: 14px 16px 16px; border-radius: var(--r-xl); background: rgba(255, 253, 249, .82); }
.as-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line-soft); }
.as-k { font-size: 12.5px; color: var(--ink-3); }
.as-v { font-size: 13.5px; }
.as-sel { max-width: 70%; text-align: right; }
.as-price { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); min-height: 16px; }
.as-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.as-actions .btn-dark { height: 36px; font-size: 13px; padding: 0 14px; border-radius: var(--r-sm); }
.as-actions .btn { height: 36px; }
#as-hint { margin-top: 10px; }

.chat { display: flex; flex-direction: column; min-height: 640px; max-height: calc(100vh - 140px); border-radius: var(--r-2xl); background: rgba(255, 253, 249, .86); overflow: hidden; }
.chat-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.chat-log { flex: 1; overflow-y: auto; padding: 22px 22px 8px; display: grid; gap: 18px; align-content: start; scrollbar-width: thin; }
.msg { max-width: 760px; }
.msg .who { display: block; margin-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.msg p, .msg .body { font-size: 15.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-wrap: break-word; }
.msg.is-bot .who { color: var(--gold-ink); }
.msg.is-user { justify-self: end; max-width: 620px; }
.msg.is-user .who { text-align: right; }
.msg.is-user p { padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--gold-wash); border: 1px solid rgba(201, 149, 28, .28); }
.msg.is-error p { color: var(--red); }
.msg .meta { display: block; margin-top: 6px; font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.msg .cursor { display: inline-block; width: 7px; height: 16px; margin-left: 2px; vertical-align: -2px; background: var(--gold-2); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 22px 12px; }
.chat-starters .chip { font-family: var(--sans); font-size: 12.5px; height: 30px; }
.chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: rgba(250, 247, 241, .7); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 180px; resize: none; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--white); font-size: 15px; line-height: 1.45; outline: 0; }
.chat-form textarea:focus { border-color: rgba(60, 44, 20, .45); box-shadow: 0 0 0 4px rgba(242, 198, 76, .18); }
.chat-send { width: 46px; height: 46px; padding: 0; border-radius: var(--r-md); }

@media (max-width: 960px) {
  .ask-grid { grid-template-columns: minmax(0, 1fr); }
  .ask-side { position: static; }
  .chat { min-height: 520px; max-height: none; }
}
@media (max-width: 640px) {
  .ask-title { font-size: 32px; }
  .ask-bust { width: 120px; }
  .chat-log { padding: 16px 14px 8px; }
  .chat-starters { padding: 6px 14px 12px; }
}
