/* console.css: the header console (#ds-askp) is the same object as the hero console (.ds-cx in ds.css).
   Same glass, same status row, same avatar beside the question, same white answer card, same actions.
   Loads after skin-chronicle.css; rules that must beat the skin are raised with html[data-skin]. */

/* the glass */
html[data-skin] .ds-askp { padding: 0 16px; color: #EEF3FB; background: rgba(9, 18, 38, .92); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); border: 1px solid rgba(143, 176, 240, .24); border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(var(--ck-navy-rgb, 10, 22, 44), .65), 0 0 0 1px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .07); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(143, 176, 240, .3) transparent; }

/* head: the console's status row (Ready / Working / Done), the context chips, the close */
html[data-skin] .ds-askp-h { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 0; }
html[data-skin] .ds-askp-k { display: inline-flex; align-items: center; gap: 9px; flex: 0 1 auto; min-width: 0; margin: 0; font-family: var(--ds-m); font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: rgba(238, 243, 251, .58); white-space: nowrap; }
.ds-askp-k i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: #5FD0C8; }
.ds-askp-k b { font-weight: 600; color: #fff; }
.ds-askp-k em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.ds-askp-k.work i { background: #8FB0F0; animation: ds-askp-pulse 1s ease-in-out infinite; }
.ds-askp-k.done i { background: #5FD0C8; }
@keyframes ds-askp-pulse { 50% { opacity: .3; transform: scale(.7); } }
html[data-skin] .ds-askp-ctx { flex: 1 1 auto; justify-content: flex-end; gap: 6px; }
html[data-skin] .ds-askp-ctx i { padding: 4px 8px; background: rgba(143, 176, 240, .1); border: 1px solid rgba(143, 176, 240, .3); color: #C9D8F5; }
html[data-skin] .ds-askp-h .ds-x { width: 30px; height: 30px; border: 1px solid rgba(143, 176, 240, .24); border-radius: 8px; background: rgba(255, 255, 255, .04); color: rgba(238, 243, 251, .85); font-size: var(--ds-fs-6); }
html[data-skin] .ds-askp-h .ds-x:hover { background: rgba(143, 176, 240, .16); border-color: rgba(143, 176, 240, .45); color: #fff; }

/* suggestions (before Enter) */
html[data-skin] .ds-askp-list { padding: 2px 0 8px; }
html[data-skin] .ds-askp-list button { color: #fff; border-radius: 10px; }
html[data-skin] .ds-askp-list button:hover, html[data-skin] .ds-askp-list button:focus-visible { background: rgba(143, 176, 240, .14); }
html[data-skin] .ds-askp-list button svg { color: #9DBBF5; }
html[data-skin] .ds-askp-list button em { color: rgba(238, 243, 251, .55); }
html[data-skin] .ds-askp-empty { padding: 12px 12px 18px; color: rgba(238, 243, 251, .7); }
html[data-skin] .ds-askp-foot { display: flex; gap: 18px; margin: 0; padding: 11px 0 13px; border-top: 1px solid rgba(143, 176, 240, .14); font-size: var(--ds-fs-2); color: rgba(238, 243, 251, .5); }
html[data-skin] .ds-askp-foot kbd { display: inline-block; min-width: 20px; margin-right: 6px; padding: 1px 6px; border: 1px solid rgba(143, 176, 240, .3); border-radius: 5px; background: transparent; font-family: var(--ds-m); font-size: 11px; color: rgba(238, 243, 251, .8); text-align: center; }

/* the question, with Maya beside it */
html[data-skin] .ds-askp-q { display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 0 0; font-size: var(--ds-fs-5); font-weight: 600; line-height: 1.35; letter-spacing: 0; color: #fff; }
html[data-skin] .ds-askp-me { flex: none; width: 28px; height: 28px; border-radius: 50%; }
html[data-skin] .ds-askp-me img { display: block; width: 100%; height: 100%; border-radius: 50% !important; object-fit: cover; box-shadow: 0 0 0 2px rgba(143, 176, 240, .5), 0 10px 22px -10px rgba(0, 0, 0, .7); }
.ds-askp-body { margin: 12px 0 0 38px; padding-bottom: 18px; }

/* thinking: the step rows */
html[data-skin] .ds-askp-rows { padding: 0; }
html[data-skin] .ds-askp-rows li { color: rgba(244, 246, 250, .42); padding: 7px 0; }
html[data-skin] .ds-askp-rows li span { color: rgba(244, 246, 250, .45); }
html[data-skin] .ds-askp-rows li.on { color: #fff; }
html[data-skin] .ds-askp-rows li.done { color: rgba(244, 246, 250, .72); }
html[data-skin] .ds-askp-rows li .prog { background: rgba(255, 255, 255, .12); }
html[data-skin] .ds-askp-rows .ds-tick { border-color: rgba(244, 246, 250, .3); }
html[data-skin] .ds-askp-rows li.done .ds-tick { color: #fff; }

/* answered: the work line, the white card, the actions, the related chips */
.ds-askp-work { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: var(--ds-fs-2); font-weight: 500; color: rgba(244, 246, 250, .62); }
.ds-askp-work .ds-tick { margin-top: 0; background: var(--ds-blue); border-color: var(--ds-blue); color: #fff; }
.ds-askp-work .ds-tick svg { opacity: 1; transform: none; }
html[data-skin] .ds-askp-a { padding: 20px 22px 20px; background: #fff; color: #0F1B2D; border-radius: 14px; }
html[data-skin] .ds-askp-near { margin: 0 0 6px; font-size: var(--ds-fs-2); font-weight: 600; color: #5B6B82; }
html[data-skin] .ds-askp-v { margin: 0; font-size: var(--ds-fs-6); line-height: 1.5; color: #0F1B2D; text-wrap: pretty; }
html[data-skin] .ds-askp-meta { margin: 8px 0 0; font-family: var(--ds-f); font-size: var(--ds-fs-2); color: #6B7A90; }
html[data-skin] .ds-askp-acts { margin-top: 16px; padding: 0; gap: 8px; }
html[data-skin] .ds-askp-acts .ds-btn { border-radius: 9px; }
html[data-skin] .ds-askp-acts .ds-btn.ds-askp-page, html[data-skin] .ds-askp-acts .ds-btn-q { background: transparent; border-color: #D5DDEA; color: #2F4460; }
html[data-skin] .ds-askp-acts .ds-btn.ds-askp-page:hover, html[data-skin] .ds-askp-acts .ds-btn-q:hover { background: #F5F7FB; border-color: #2F6BDB; color: #0F1B2D; }
.ds-askp-rel { margin-top: 16px; padding-top: 14px; border-top: 1px solid #E3E8F0; }
html[data-skin] .ds-askp-rel .ds-askp-neark { margin: 0 0 8px; padding: 0; font-size: var(--ds-fs-2); font-weight: 600; color: #5B6B82; }
html[data-skin] .ds-askp-rel .ds-askp-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
html[data-skin] .ds-askp-rel .ds-askp-list li { flex: none; max-width: 100%; }
html[data-skin] .ds-askp-rel .ds-askp-list button { display: inline-flex; align-items: center; gap: 7px; width: auto; min-height: 34px; padding: 7px 14px; border: 1px solid #D5DDEA; border-radius: 17px; background: #F5F7FB; color: #1D2B40; font-size: var(--ds-fs-3); font-weight: 600; }
html[data-skin] .ds-askp-rel .ds-askp-list button:hover, html[data-skin] .ds-askp-rel .ds-askp-list button:focus-visible { border-color: #2F6BDB; background: #fff; color: #0F1B2D; }
html[data-skin] .ds-askp-rel .ds-askp-list button svg { width: 14px; height: 14px; margin: 0; color: #2F6BDB; }
html[data-skin] .ds-askp-rel .ds-askp-list button em { display: none; }

/* Daystrom (Oct 15): the panel as a conversation. Earlier questions on this page, one line each above the one being read
   (as the hero console folds its older turns); questions waiting their turn under it */
.ds-askp-prevs { display: grid; gap: 6px; margin: 2px 0 12px 38px; }
html[data-skin] .ds-askp-pv { display: grid; gap: 2px; width: 100%; padding: 9px 14px; border: 0; border-radius: 10px; background: rgba(143, 176, 240, .08); color: rgba(238, 243, 251, .8); font: inherit; text-align: left; cursor: pointer; transition: background-color .18s; }
html[data-skin] .ds-askp-pv:hover, html[data-skin] .ds-askp-pv:focus-visible { background: rgba(143, 176, 240, .16); outline: none; }
.ds-askp-pv span { font-size: var(--ds-fs-3); font-weight: 600; color: rgba(238, 243, 251, .86); }
.ds-askp-pv em { overflow: hidden; font-style: normal; font-size: var(--ds-fs-2); color: rgba(238, 243, 251, .6); text-overflow: ellipsis; white-space: nowrap; }
.ds-askp-queued { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px 38px; }
.ds-askp-body .dsb-status { margin-top: 0; }

/* Daystrom (Oct 15): in a page's ask card the conversation opens in the card, under the field, and the page makes room */
html[data-skin] .ds-askp.ds-askp-in { position: relative; z-index: auto; top: auto !important; left: auto !important; right: auto; width: auto !important; max-width: 860px; max-height: none !important; overflow: visible; transform: none; border-radius: 14px; box-shadow: none; background-image: none; }
.ds-askp.ds-askp-in:not(.on) { opacity: 0; }
.ds-asksheet.has-chat .ds-asksheet-try { display: none; }

/* phones: the panel spans the width under the header (phone.css places it); the body loses its indent */
@media (max-width: 720px) {
  html[data-skin] .ds-askp { padding: 0 10px; }
  .ds-askp-body, .ds-askp-prevs, .ds-askp-queued { margin-left: 0; }
  html[data-skin] .ds-askp-a { padding: 16px 16px 18px; }
  html[data-skin] .ds-askp-foot { display: none; }
  html[data-skin] .ds-askp-ctx { display: none; }
}
body.ds-still .ds-askp-k.work i { animation: none; }
@media (prefers-reduced-motion: reduce) { .ds-askp-k.work i { animation: none; } }
/* motion off: the panel and its dim snap instead of fading */
body.ds-still .ds-askp, body.ds-still #ds-dim { transition: none; }
@media (prefers-reduced-motion: reduce) { .ds-askp, #ds-dim { transition: none; } }

/* ---------- the earlier questions of a conversation: one line each above the answer in view (Oct 5) ---------- */
.ds-cx-earlier { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid rgba(143, 176, 240, .16); }
.ds-cx-earlier-k { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: rgba(238, 243, 251, .5); }
.ds-cx-earlier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
html[data-skin] .ds-cx-earlier button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 5px 8px; margin-left: -8px; border: 0; border-radius: 8px !important; background: transparent; color: rgba(238, 243, 251, .72); font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
html[data-skin] .ds-cx-earlier button::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(143, 176, 240, .55); transform: translateY(-2px); }
html[data-skin] .ds-cx-earlier button:hover { background: rgba(143, 176, 240, .12); color: #fff; }
html[data-skin] .ds-cx-earlier button:focus-visible { outline: 2px solid #8FB0F0; outline-offset: 1px; }
html[data-skin] .ds-pane-threads { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 18px; }
.ds-pane-threads h3 { margin: 0 0 6px; }
