/* "Ask GAVEL-9" panel (app/Gavel/ChatView.php + assets/js/gavel-chat.js). Reusable on any verdict page.
   Site rule: no coloured edge lines; GAVEL-9 speaks in the same dark quote as the verdict cards. */
.gc{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:0;margin:40px 0 8px;border-radius:24px;overflow:hidden;
  background:radial-gradient(120% 90% at 0% 0%,rgba(249,158,26,.13),transparent 55%),linear-gradient(180deg,#171B25,#11141B);
  box-shadow:inset 0 0 0 1px var(--v4-hair),0 40px 80px -40px rgba(0,0,0,.9),0 0 90px -40px rgba(249,158,26,.35)}
.gc[hidden]{display:none}
.gc-side{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:14px;min-height:100%;padding:28px 26px 26px;overflow:hidden}
.gc-side::before{content:"";position:absolute;inset:auto -30% -40% -30%;height:70%;background:radial-gradient(closest-side,rgba(249,158,26,.28),transparent);z-index:-1}
.gc-judge{display:block;width:min(220px,100%);height:auto;margin:0 auto -6px;filter:drop-shadow(0 24px 30px rgba(0,0,0,.7));transform-origin:50% 90%}
.gc-judge.is-talk{animation:gc-nod .5s ease-out}
@keyframes gc-nod{30%{transform:rotate(-2deg) translateY(-3px)}60%{transform:rotate(1.2deg)}}
.gc-kicker{margin:0;color:var(--v4-orange);font:700 12px var(--v4-ui);letter-spacing:.08em;text-transform:uppercase}
.gc-side h2{margin:4px 0 0;color:var(--v4-text);font:800 32px/1 var(--v4-display);letter-spacing:.01em}
.gc-sub{margin:8px 0 0;color:var(--v4-text-2);font:500 15px/1.45 var(--v4-ui)}
.gc-left{min-height:1.4em;margin:10px 0 0;color:var(--v4-text-3);font:600 13px var(--v4-ui)}

.gc-main{display:grid;grid-template-rows:1fr auto auto auto;min-width:0;padding:22px 22px 20px;background:rgba(10,12,17,.55);box-shadow:inset 1px 0 0 var(--v4-hair)}
.gc-log{display:flex;flex-direction:column;gap:14px;min-height:200px;max-height:440px;padding:4px 4px 10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--v4-deck-3) transparent}
.gc-msg{display:flex;align-items:flex-start;gap:10px;max-width:88%;animation:gc-in .28s ease-out both}
@keyframes gc-in{from{opacity:0;transform:translateY(8px)}}
.gc-face{flex:none;width:40px;height:40px;border-radius:12px;background:#232838;object-fit:cover;object-position:50% 20%}
.gc-bubble{min-width:0;padding:10px 14px 11px;border-radius:4px 16px 16px 16px;background:#0B0D12;box-shadow:0 14px 26px -18px rgba(0,0,0,.9)}
.gc-bubble b{display:block;margin-bottom:2px;color:var(--v4-orange);font:700 12px var(--v4-ui);letter-spacing:.02em}
.gc-bubble p{margin:0;color:var(--v4-text);font:400 15.5px/1.5 var(--v4-ui);overflow-wrap:anywhere}
.gc-bubble small{display:block;margin-bottom:2px;color:var(--v4-text-3);font:600 12px var(--v4-ui)}
.gc-msg.is-you{align-self:flex-end;flex-direction:row-reverse}
.gc-msg.is-you .gc-bubble{border-radius:16px 4px 16px 16px;background:var(--v4-deck-3)}
.gc-dots{display:flex;align-items:center;gap:5px;color:var(--v4-text-3)!important;font-size:13px!important}
.gc-dots i{width:6px;height:6px;border-radius:50%;background:var(--v4-orange);animation:gc-dot 1.1s infinite ease-in-out}
.gc-dots i:nth-child(2){animation-delay:.15s}.gc-dots i:nth-child(3){animation-delay:.3s}
.gc-dots span{margin-left:6px}
@keyframes gc-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.gc-focus{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0 0;color:var(--v4-text);font:600 14px var(--v4-ui)}
.gc-focus[hidden]{display:none}
.gc-focus [data-gc-focus-faces]{display:flex}
.gc-mini{width:28px;height:28px;border-radius:9px;background:var(--v4-deck-3);object-fit:cover}
.gc-mini+.gc-mini{margin-left:-6px;box-shadow:0 0 0 2px #0D1015}
.gc-focus-x{margin-left:auto;padding:4px 0;border:0;background:none;color:var(--v4-text-3);font:600 13px var(--v4-ui);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.gc-focus-x:hover{color:var(--v4-text)}

.gc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.gc-chips[hidden]{display:none}
.gc-chip{padding:8px 13px;border:0;border-radius:999px;background:var(--v4-deck-2);box-shadow:inset 0 0 0 1px var(--v4-hair-2);color:var(--v4-text-2);font:600 14px/1.2 var(--v4-ui);text-align:left;cursor:pointer;transition:color .15s,background .15s,transform .15s}
.gc-chip:hover,.gc-chip:focus-visible{background:var(--v4-deck-3);color:var(--v4-text);transform:translateY(-1px)}

.gc-form{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:6px 6px 6px 18px;border-radius:999px;background:#0B0D12;box-shadow:inset 0 0 0 1px var(--v4-hair-2);transition:box-shadow .15s}
.gc-form:focus-within{box-shadow:inset 0 0 0 1px rgba(238,240,244,.28),0 0 0 4px rgba(249,158,26,.12)}
.gc-form input{flex:1;min-width:0;height:42px;padding:0;border:0;outline:0;background:none;color:var(--v4-text);font:500 16px var(--v4-ui)}
.gc-form input::placeholder{color:var(--v4-text-3)}
.gc-send{display:grid;place-items:center;flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--v4-orange);color:#14100A;cursor:pointer;transition:background .15s,transform .15s}
.gc-send:hover{background:var(--v4-orange-hi);transform:translateX(1px)}
.gc-send:disabled{background:var(--v4-deck-3);color:var(--v4-text-3);cursor:default;transform:none}
.gc-send svg{width:20px;height:20px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.gc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Questions left today: a pill beside the send button (filled pips = still to ask). */
.gc-pips{display:flex;align-items:center;gap:5px;flex:none;height:30px;padding:0 11px;border-radius:999px;background:var(--v4-deck-2);cursor:default}
.gc-pips[hidden]{display:none}
.gc-pips i{width:8px;height:8px;border-radius:50%;background:var(--v4-deck-3);box-shadow:inset 0 0 0 1px rgba(238,240,244,.12);transition:background .25s,transform .25s}
.gc-pips i.is-on{background:var(--v4-orange);box-shadow:none}
.gc-pips b{margin-left:4px;color:var(--v4-text-2);font:700 13px var(--v4-ui);font-variant-numeric:tabular-nums;white-space:nowrap}
.gc-pips.is-low b{color:#FF7A6E}
.gc-pips.is-low i.is-on{background:#FF7A6E}
@media (prefers-reduced-motion:no-preference){.gc-pips.is-pop i.is-on:last-of-type{animation:gc-pip .5s ease-out}}
@keyframes gc-pip{40%{transform:scale(1.6)}}
@media (max-width:640px){.gc-pips{gap:4px;padding:0 9px}.gc-pips i{width:7px;height:7px}.gc-pips b{font-size:12px}}
@media (max-width:420px){.gc-pips b{display:none}}

/* The page GAVEL-9 points to after an answer. */
.gc-link{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:7px 12px 7px 14px;border-radius:999px;background:var(--v4-deck-2);color:var(--v4-orange-hi);font:700 14px var(--v4-ui);text-decoration:none;transition:background .15s,transform .15s}
.gc-link svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.gc-link:hover,.gc-link:focus-visible{background:var(--v4-deck-3);transform:translateX(2px)}

/* The button under each death card. */
.gc-ask{display:inline-flex;align-items:center;gap:9px;justify-self:start;margin-top:2px;padding:6px 14px 6px 6px;border:0;border-radius:999px;background:var(--v4-deck-3);color:var(--v4-text);font:600 14px var(--v4-ui);cursor:pointer;transition:background .15s,transform .15s}
.gc-ask img{width:24px;height:24px;border-radius:50%;background:#232838;object-fit:cover;object-position:50% 20%}
.gc-ask:hover,.gc-ask:focus-visible{background:#323849;transform:translateY(-1px)}
.gc-ask:hover span{color:var(--v4-orange-hi)}

@media (max-width:860px){
  .gc{grid-template-columns:1fr;border-radius:20px}
  .gc-side{flex-direction:row;align-items:flex-end;gap:12px;padding:20px 18px 0}
  .gc-judge{width:96px;margin:0 0 -4px}
  .gc-side-copy{padding-bottom:14px}
  .gc-side h2{font-size:26px}
  .gc-sub{font-size:14px}
  .gc-main{padding:16px 14px 14px;box-shadow:inset 0 1px 0 var(--v4-hair)}
  .gc-log{max-height:60vh}
  .gc-msg{max-width:94%}
}
@media (prefers-reduced-motion:reduce){.gc-msg,.gc-judge.is-talk,.gc-dots i{animation:none}}
.gc-form input:focus,.gc-form input:focus-visible{outline:none!important;box-shadow:none!important}

/* The self-playing conversation (coach page showcase). */
.gc-demo{position:relative;display:grid;grid-template-rows:auto 1fr auto;min-width:0;padding:16px;border-radius:24px;background:linear-gradient(180deg,#151922,#0F1218);box-shadow:inset 0 0 0 1px var(--v4-hair),0 40px 80px -40px rgba(0,0,0,.9),0 0 90px -40px rgba(249,158,26,.4)}
.gc-demo-top{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:12px;padding:0 0 14px;box-shadow:inset 0 -1px 0 var(--v4-hair)}
.gc-demo-shot{width:96px;height:54px;border-radius:10px;object-fit:cover}
.gc-demo-who{display:flex}
.gc-demo-who img{width:36px;height:36px;border-radius:10px;background:var(--v4-deck-3);object-fit:cover}
.gc-demo-who img+img{margin-left:-8px;box-shadow:0 0 0 2px #131720}
.gc-demo-what{display:grid;gap:1px;min-width:0}
.gc-demo-what b{color:var(--v4-text);font:700 15px var(--v4-ui)}
.gc-demo-what small{color:var(--v4-text-3);font:600 13px var(--v4-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-demo .gc-log{height:340px;min-height:0;max-height:none;padding-top:14px;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 28px);mask-image:linear-gradient(180deg,transparent 0,#000 28px)}
.gc-form--demo{pointer-events:none}
.gc-fake{flex:1;min-width:0;height:42px;color:var(--v4-text-3);font:500 16px/42px var(--v4-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-fake.is-typing{color:var(--v4-text)}
.gc-fake.is-typing::after{content:"";display:inline-block;width:2px;height:18px;margin-left:2px;vertical-align:-3px;background:var(--v4-orange);animation:gc-caret 1s steps(1) infinite}
@keyframes gc-caret{50%{opacity:0}}
.gc-demo .gc-send{cursor:default}
@media (max-width:640px){.gc-demo{padding:12px;border-radius:20px}.gc-demo .gc-log{height:380px}.gc-demo-shot{display:none}}

/* Analyzer verdict: the button under the lead (assets/js/verdict-chat.js). */
.vc-ask{display:inline-flex;align-items:center;gap:10px;width:fit-content;margin:14px 0 4px;padding:6px 16px 6px 6px;border-radius:999px;background:var(--v4-deck-3);color:var(--v4-text);font:700 15px var(--v4-ui);text-decoration:none;transition:background .15s,transform .15s}
.vc-ask img{width:28px;height:28px;border-radius:50%;background:#232838;object-fit:cover;object-position:50% 20%}
.vc-ask i{font-style:normal;color:var(--v4-orange)}
.vc-ask:hover,.vc-ask:focus-visible{background:#323849;transform:translateY(-1px)}
#ask-verdict{scroll-margin-top:calc(var(--v4-bar, 68px) + 16px)}
/* Hero names in answers: portrait chip (gavel-chat.js heroIcons). */
.gc-hero{display:inline-flex;align-items:center;gap:5px;padding:1px 8px 1px 2px;margin:0 1px;border-radius:999px;background:var(--v4-deck-3);font-weight:700;white-space:nowrap;vertical-align:baseline}
.gc-hero img{width:20px;height:20px;border-radius:50%;object-fit:cover;object-position:50% 20%;background:#232838}

/* Floating GAVEL-9 on the verdict page (assets/js/verdict-chat.js floater()). Computers only. */
.vc-float{position:fixed;z-index:65;right:28px;bottom:28px;display:flex;align-items:center;gap:12px;text-decoration:none;transition:opacity .2s,transform .2s}
.vc-float img{width:56px;height:56px;border-radius:50%;background:#2A3042;object-fit:cover;box-shadow:0 16px 34px -12px rgba(0,0,0,.85),0 0 0 3px #1B1F2A;transition:transform .15s}
.vc-float:hover img,.vc-float:focus-visible img{transform:scale(1.06)}
.vc-float-tip{position:relative;max-width:240px;padding:10px 14px;border-radius:16px 16px 4px 16px;background:#F4F1EA;color:#14161C;font:700 14.5px/1.3 var(--v4-ui);box-shadow:0 16px 34px -14px rgba(0,0,0,.8);opacity:0;transform:translateX(8px) scale(.95);pointer-events:none;transition:opacity .25s,transform .3s cubic-bezier(.2,1.4,.4,1)}
.vc-float-tip::after{content:"";position:absolute;right:-5px;bottom:12px;width:12px;height:12px;background:#F4F1EA;transform:rotate(45deg);border-radius:2px}
.vc-float.is-talking .vc-float-tip,.vc-float:hover .vc-float-tip,.vc-float:focus-visible .vc-float-tip{opacity:1;transform:none}
.vc-float.is-away{opacity:0;pointer-events:none;transform:translateY(10px)}
@media(max-width:900px){.vc-float{display:none}}
@media (prefers-reduced-motion:reduce){.vc-float,.vc-float img,.vc-float-tip{transition:none}}
/* A6 (22 Nov 2026): hero names and the follow-up link set their own colours, so they read on the white answer card
   (navy chip with white name, yellow link with dark ink) wherever the chat sits. */
.gc-hero:not(#a6b){border-radius:0;background:#1B2A55;color:#fff!important;padding:2px 8px 2px 2px}
.gc-hero:not(#a6b) img{border-radius:0}
.gc-link:not(#a6b){border-radius:0;background:#FFC531!important;color:#0A1228!important;font:800 14px var(--v4-display);letter-spacing:.04em;text-transform:uppercase;padding:9px 14px;box-shadow:0 3px 0 #B98A0E}
.gc-link:not(#a6b) *{color:#0A1228!important;stroke:#0A1228}
.gc-link:not(#a6b):hover,.gc-link:not(#a6b):focus-visible{background:#FFD65C!important;transform:none}
