/* Presenter add-on: drawer sections + the quick answers overlay. Layout only: the glass (colour, edge, radius) is in css/ux/close2.css. */

/* search button in the top-right chips */
#tally [data-ask] { width: 3.4rem; padding: 0; justify-content: center; }
#tally [data-ask] svg { width: 1.3rem; height: 1.3rem; stroke-width: 2; stroke-linecap: round; }

/* drawer: presenter chooser */
.pr-pres .k { margin: 0 0 .45rem; }
.pr-p { min-height: 3rem; padding: 0 1rem 0 .4rem; gap: .5rem; }
.pr-p i { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font: 600 max(12px, .9rem)/1 var(--sans); font-style: normal; }

/* returning guest */
.pr-matchbox:empty { display: none; }
.pr-welcome { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; }
.pr-welcome .k { margin: 0 0 .15rem; }
.pr-welcome b { display: block; font: 600 1.3rem/1.15 var(--sans); }
.pr-welcome small { display: block; margin-top: .3rem; font: 500 max(12px, .8rem)/1.4 var(--sans); opacity: .8; }
.pr-welcome .pill { flex: none; }
.pr-welcome.done b { font-size: 1.05rem; }
.pr-matches { display: grid; gap: .35rem; }
.pr-matches .k { margin: 0; }
.pr-match { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; min-height: 48px; padding: .5rem 1rem; border-radius: var(--r-pill); text-align: left; }
.pr-match b { font-size: 1rem; } .pr-match small { color: var(--lg-fg3); font-weight: 500; font-size: max(12px, .78rem); }

/* collapsible sections */
.pr-sec summary { display: flex; align-items: center; gap: .8rem; padding: 0 1.1rem; cursor: pointer; list-style: none; font: 600 max(12px, .74rem)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pr-sec summary::-webkit-details-marker { display: none; }
.pr-sec summary span { flex: none; } .pr-sec summary small { flex: 1; min-width: 0; text-align: right; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: max(12px, .82rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sec summary i { width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -.1rem; transition: rotate .24s var(--ease); flex: none; }
.pr-sec[open] summary i { rotate: 225deg; translate: 0 .1rem; }
.pr-body { display: grid; gap: .7rem; padding: .2rem 1.1rem 1.1rem; }
.pr-tag { min-height: 44px; }
.pr-note textarea { padding: .8rem 1.1rem; border-radius: 12px; font: 500 1.05rem/1.4 var(--sans); text-transform: none; letter-spacing: 0; resize: none; width: 100%; }
.pr-ref { justify-self: start; }
.pr-refin[hidden] { display: none; }

/* quick answers overlay */
#ask-ov { position: fixed; inset: 0; z-index: 70; display: none; }
#ask-ov.on { display: block; }
.ask-scrim { position: absolute; inset: 0; }
.ask-wrap { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; place-items: center; padding: var(--pad); pointer-events: none; }
.ask-wrap > * { pointer-events: auto; }
.ask-panel, .ask-card { position: relative; width: min(54rem, 100%); max-height: 100%; }
.ask-panel { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: .8rem; padding: 2rem 2rem 1.2rem; height: min(46rem, calc(100dvh - var(--pad) * 2)); max-height: calc(100dvh - var(--pad) * 2); }
.ask-panel .k { margin: 0; }
.ask-in { display: flex; align-items: center; gap: .8rem; min-height: 4rem; padding: 0 1.2rem; }
.ask-in svg { width: 1.4rem; height: 1.4rem; fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.ask-in input { flex: 1; min-width: 0; height: 3.8rem; background: none; border: 0; outline: 0; }
.ask-g { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2rem; padding: 0 2rem; }
.ask-g::-webkit-scrollbar { display: none; }
.ask-g .pill { flex: none; }
.ask-list { overflow-y: auto; scrollbar-width: none; display: grid; align-content: start; gap: .35rem; margin: 0 -.4rem; padding: 0 .4rem; }
.ask-list .k { margin: .8rem 0 .15rem; }
.ask-row span { flex: 1; } .ask-row small { font: 600 max(12px, .72rem)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ask-row i { width: .6rem; height: .6rem; border-right: 2px solid; border-top: 2px solid; rotate: 45deg; flex: none; }
.ask-row:active { transform: scale(.985); }
.ask-none { padding: 2rem 1rem; text-align: center; font-weight: 600; }
.ask-flag { text-align: center; font: 600 max(12px, .72rem)/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ask-card { width: min(62rem, 100%); max-height: calc(100dvh - var(--pad) * 2); padding: clamp(2rem, 4vw, 3.6rem); overflow-y: auto; scrollbar-width: none; display: grid; gap: 1.2rem; align-content: start; }
.ask-card .k { margin: 0; }
.ask-card ul { display: grid; gap: .7rem; padding: 1.2rem 0 0; border-top: 1px solid; list-style: none; }
.ask-card li { position: relative; padding-left: 1.6rem; line-height: 1.4; }
.ask-card li::before { content: ""; position: absolute; left: .1rem; border-radius: 50%; }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.ask-foot .cx-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ask-foot .ask-flag { text-align: right; }
#ask-ov .x { position: absolute; right: .9rem; top: .9rem; z-index: 7; display: grid; place-items: center; border-radius: 50%; }
#ask-ov .x svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.ask-panel .ask-in { margin-top: .5rem; }
@media (max-width: 760px) { .pr-welcome { flex-direction: column; align-items: flex-start; } }
