/* =========================================================
   TRACK 3 · Grow with Agents
   ========================================================= */
.gr-scen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .gr-scen { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gr-scen { grid-template-columns: 1fr 1fr; } }
.gr-sc { --c: var(--grow); cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0 0 14px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; transition: transform 0.15s, border-color 0.15s; }
.gr-sc:hover { transform: translateY(-3px); }
.gr-sc.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset, 0 10px 34px color-mix(in srgb, var(--c) 20%, transparent); }
.gr-thumb { position: relative; height: 92px; overflow: hidden; }
.gr-thumb .scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gr-thumb span { position: absolute; left: 10px; bottom: 6px; font-size: 30px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.gr-sc h4 { margin: 6px 14px 0; font-size: 16px; }
.gr-sc p { margin: 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.gr-sc small { margin: 2px 14px 0; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--c); letter-spacing: 0.06em; }
.gr-cfg { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; margin-top: 16px; }
@media (max-width: 900px) { .gr-cfg { grid-template-columns: 1fr; } }
.gr-scenepick { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.gr-scenepick .sc-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gr-scenepick .scc .thumb { height: 78px; }
.gr-ai { padding: 12px; border-radius: 12px; background: rgba(164, 107, 255, 0.08); border: 1px dashed rgba(164, 107, 255, 0.4); margin-bottom: 6px; }
.gr-ai label { margin-top: 0; }
.gr-ai #cuWork:not(:empty) { margin-top: 10px; }
.gr-roles { margin-top: 14px; }
.gr-role { display: grid; grid-template-columns: 44px 130px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.gr-mini { height: 54px; overflow: hidden; display: flex; justify-content: center; }
.gr-mini.pup { width: 42px; }
@media (max-width: 520px) { .gr-role { grid-template-columns: 44px 1fr; } .gr-role input { grid-column: 1 / -1; } }

/* session */
.gr-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; }
.gr-top h2 { margin: 0; font-size: 32px; }
.gr-top-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gr-meter { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.gr-meter small { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.gr-meter b { font-size: 13px; min-width: 52px; }
.bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; flex: 1; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--grow); transition: width 0.8s cubic-bezier(.2,.8,.2,1), background 0.4s; }
.gr-meter .bar { width: 90px; flex: none; }

.gr-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; margin-top: 14px; }
@media (max-width: 1000px) { .gr-grid { grid-template-columns: 1fr; } }
.gr-stage { position: relative; height: 470px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
@media (max-width: 640px) { .gr-stage { height: 380px; } }
.gr-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.gr-link { fill: none; stroke-width: 0.8; stroke-dasharray: 2 1.5; vector-effect: non-scaling-stroke; stroke-width: 3; filter: drop-shadow(0 0 6px currentColor); animation: grDash 0.8s linear infinite; }
@keyframes grDash { to { stroke-dashoffset: -7; } }
.gr-pill { position: absolute; top: 8%; transform: translateX(-50%); z-index: 6; max-width: 70%; padding: 6px 12px; font-size: 13px; border-radius: 12px; background: rgba(10, 14, 30, 0.92); border: 1.5px solid; animation: grPop 0.35s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes grPop { from { transform: translateX(-50%) scale(0.6); opacity: 0; } }
.gr-seat { --c: var(--grow); position: absolute; bottom: 2%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; transition: filter 0.3s; }
.gr-pup.pup { width: 148px; }
@media (max-width: 640px) { .gr-pup.pup { width: 84px; } .gr-name > span:not(.sp-badge) { display: none; } }
.gr-seat.active .gr-pup { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 70%, transparent)); }
.gr-name { --c: var(--grow); position: absolute; bottom: 3.5%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
.gr-name b { font-size: 13px; padding: 3px 12px; border-radius: 6px; background: linear-gradient(180deg, #f4ead8, #d9c9a8); color: #2b211b; border-bottom: 3px solid color-mix(in srgb, var(--c) 80%, #000); }
.gr-name > span:not(.sp-badge) { font-family: "JetBrains Mono", monospace; font-size: 10px; color: #e7ecff; text-transform: uppercase; letter-spacing: 0.06em; text-shadow: 0 1px 3px #000; }
.gr-skill { display: none !important; }
.gr-stage.finch .gr-skill { display: inline-flex !important; background: rgba(10, 14, 30, 0.85); }
.gr-score { position: absolute; top: 12%; right: 4%; z-index: 5; font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.gr-score span { display: inline-block; animation: grPop2 0.4s ease; }
@keyframes grPop2 { from { transform: scale(0.2); } }
.gr-desk { position: absolute; left: 4%; right: 4%; bottom: 0; height: 20%; z-index: 3; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #5a4535, #2b211b); border-top: 6px solid #7a604c; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45); }
.gr-sub { position: absolute; left: 50%; top: 46px; transform: translateX(-50%) translateY(-8px); width: min(92%, 680px); z-index: 7; padding: 12px 16px; border-radius: 12px; background: rgba(5, 8, 18, 0.86); border: 1px solid var(--line); font-size: 16px; opacity: 0; transition: all 0.35s; text-align: center; }
.gr-sub.on { opacity: 1; transform: translateX(-50%); }
.gr-closed { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(4, 6, 14, 0.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.gr-closed span { font-family: "JetBrains Mono", monospace; letter-spacing: 0.14em; font-size: 14px; padding: 10px 18px; border-radius: 99px; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line); }
.gr-closed.on { opacity: 1; }
.gr-badges { position: absolute; left: 12px; top: 12px; z-index: 9; }
.gr-badges .sp-badge { background: rgba(10, 14, 30, 0.88); }

.gr-answer { margin-top: 12px; }
.gr-ask { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.gr-ask small { color: var(--muted); font-size: 13px; }
.gr-ans-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.gr-wc { margin-left: auto; font-size: 12px; font-family: "JetBrains Mono", monospace; }
.gr-note { font-size: 12px; margin: 8px 0 0; }
#mic.rec { border-color: #ff6b6b; color: #ff9b9b !important; animation: glowPulse 1.2s infinite; }
#mic.mic-hot { border-color: #ff6b6b; }
textarea.shake { animation: shake 0.4s; border-color: #ff6b6b; }
.gr-qscore { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gr-qscore b { font-size: 34px; color: var(--gold); }
.gr-qscore.good b { color: var(--grow); }
.gr-qscore.bad b { color: #ff8a9b; }
.gr-qscore small { color: var(--muted); margin-left: -6px; }
.gr-qscore span { color: #dfe5ff; }
.gr-qscore em { flex-basis: 100%; font-style: normal; color: #c9b8ff; font-size: 14px; }

.gr-side { display: flex; flex-direction: column; gap: 12px; }
.gr-side .card { padding: 16px; }
.gr-rb { display: grid; grid-template-columns: 110px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.gr-rb b { text-align: right; font-family: "JetBrains Mono", monospace; }
.gr-rb.big { grid-template-columns: 140px 1fr 36px; font-size: 14px; }
.gr-rb.big .bar { height: 10px; }
.gr-fskills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#bandFeed, .gr-log ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
#bandFeed li { font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: rgba(92, 141, 255, 0.08); border: 1px solid rgba(92, 141, 255, 0.3); display: flex; flex-wrap: wrap; gap: 4px; animation: slideIn 0.4s ease; }
#bandFeed li > span:last-child { flex-basis: 100%; color: #dfe5ff; }
.gr-from { font-weight: 700; }
.gr-band .log-head small, .gr-bruin .log-head small { color: var(--muted); font-size: 10px; }
.gr-chart { width: 100%; height: auto; margin-top: 8px; }
.gr-skillbars { display: grid; gap: 6px; margin-top: 6px; }
.gr-skillbars > div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.gr-skillbars .bar i { background: var(--gold); }
.gr-log ol { max-height: 360px; }
.gr-log li { font-size: 13px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; animation: slideIn 0.4s ease; }
.gr-log li.you { background: rgba(182, 255, 92, 0.06); border-color: rgba(182, 255, 92, 0.25); }
.gr-log li.panel { background: rgba(164, 107, 255, 0.08); border-color: rgba(164, 107, 255, 0.3); }
.gr-log .ts { font-size: 10.5px; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.gr-mini-sc { font-size: 11px; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.gr-mini-sc b { color: var(--gold); }
.hide-minds .thought { display: none; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }

/* verdict */
.gr-verdict { margin-top: 16px; border-top: 4px solid var(--grow); animation: fadeIn 0.8s; }
.gr-verdict.fail { border-top-color: var(--gold); }
.gr-v-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.gr-v-head > div:last-child { flex: 1; min-width: 260px; }
.gr-v-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 4px 0 6px; }
.gr-v-head p { color: #d3d9f5; margin: 0 0 8px; }
.gr-ring { --p: 50; width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, var(--panel) 78%, transparent 80% 100%), conic-gradient(var(--grow) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); flex: none; }
.gr-verdict.fail .gr-ring { background: radial-gradient(closest-side, var(--panel) 78%, transparent 80% 100%), conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); }
.gr-ring b { font-size: 38px; line-height: 1; }
.gr-ring small { color: var(--muted); text-align: center; }
.gr-v-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; margin-top: 18px; }
@media (max-width: 820px) { .gr-v-grid { grid-template-columns: 1fr; } }
.gr-ev { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.gr-ev li { padding: 10px 12px; border-radius: 10px; background: rgba(182, 255, 92, 0.07); border-left: 3px solid var(--grow); font-size: 14px; }
.gr-ev.bad li { background: rgba(255, 200, 87, 0.07); border-left-color: var(--gold); }
.gr-ev q { display: block; margin-top: 4px; color: #ffd6ea; font-style: italic; }
.gr-v-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.gr-vp { --c: var(--grow); display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.gr-vpup { height: 96px; width: 60px; flex: none; overflow: hidden; display: flex; justify-content: center; }
.gr-vpup.pup { width: 58px; }
.gr-vp small { display: block; color: var(--muted); font-size: 11px; font-family: "JetBrains Mono", monospace; text-transform: uppercase; }
.gr-vp p { margin: 4px 0; font-size: 13.5px; color: #dfe5ff; }
.gr-vp .y { color: var(--grow); font-size: 12px; font-weight: 700; }
.gr-vp .n { color: #ff8a9b; font-size: 12px; font-weight: 700; }
.gr-tips { margin: 0 0 16px; padding-left: 20px; color: #dfe5ff; }
.gr-tips li { margin-bottom: 4px; }

/* keep wide children from pushing the page sideways on phones */
.gr-grid { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1000px) { .gr-grid { grid-template-columns: minmax(0, 1fr); } }
.gr-grid > *, .gr-cfg > *, .gr-v-grid > * { min-width: 0; }
.gr-cfg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 900px) { .gr-cfg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .gr-top h2 { font-size: 26px; }
  .gr-meter .bar { width: 60px; }
  .gr-sub { font-size: 14px; top: 40px; }
  .gr-name b { font-size: 11px; padding: 2px 7px; }
  .gr-name .sp-badge { font-size: 9px; padding: 1px 5px; }
  .gr-badges .sp-badge { font-size: 9px; }
  .gr-ans-row .btn { padding: 8px 12px; }
}

/* tools live (Finch skills from the shared library, Casuro evidence) */
.gr-skill .sk-badge { font-size: 10.5px; }
.gr-name { pointer-events: auto; }
.gr-fs { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin: 2px 6px 2px 0; }
#rubric .gr-rb.lit { animation: grLit 1.4s ease 2; border-radius: 6px; }
@keyframes grLit { 50% { background: rgba(255, 107, 107, 0.22); box-shadow: 0 0 0 1px #ff6b6b; } }
.gr-stage .tl-layer { z-index: 9; }
