/* Product scenes for Aprender (analysis desk) and Gerir (operations board). Each has its own visual language. */
.prod-media[data-scene]{display:flex;flex-direction:column;align-items:center;justify-content:center}
.prod-media[data-scene] .flow-caption{flex:none;align-self:stretch;text-align:center;width:100%}
.prod-media[data-scene] svg{display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sc-mark{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:8px;background:#27634e;color:#f8f7f4}
.sc-mark svg{width:15px;height:15px}
.sc-status{display:flex;align-items:center;gap:8px;min-width:0;padding:11px 18px;font-size:13px}
.sc-spark{width:16px;height:16px;flex:none;color:#5fa382}
.sc-status.is-working .sc-spark{animation:sc-turn 2.4s linear infinite}
.sc-status-text{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(90deg,currentColor 0,currentColor 40%,#9fc8b2 50%,currentColor 60%,currentColor 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text}
.sc-status.is-working .sc-status-text{-webkit-text-fill-color:transparent;animation:sc-shine 1.6s linear infinite}
@keyframes sc-turn{to{transform:rotate(360deg)}}
@keyframes sc-shine{from{background-position:100% 0}to{background-position:-150% 0}}
.sc-cursor{position:absolute;left:0;top:0;z-index:20;width:22px;height:22px;opacity:0;pointer-events:none;filter:drop-shadow(0 3px 5px #0005)}
.prod-media[data-scene] .sc-cursor svg{width:22px;height:22px;fill:#0d100f;stroke:#fff;stroke-width:1.4}
.sc-replay{position:absolute;right:16px;bottom:-1px;z-index:2;padding:4px 0;color:#f8f7f4;font-size:12px;opacity:.85}

/* ---------- Aprender: the analysis desk ---------- */
.ap-win{position:relative;z-index:1;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;max-width:620px;flex:1 1 auto;min-height:0;max-height:620px;overflow:hidden;border:1px solid #ffffffb3;border-radius:18px;background:#fbfaf7f2;color:#0d100f;box-shadow:0 40px 90px -40px #27634e99;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.ap-top{display:flex;align-items:center;gap:10px;min-width:0;padding:13px 18px;border-bottom:1px solid #aabdad4d}
.ap-name{font-size:15px;letter-spacing:-.02em}
.ap-crumb{padding:3px 9px;border-radius:20px;background:#eef2ee;color:#4f5a52;font-size:11.5px;white-space:nowrap}
.ap-counter{margin-left:auto;font-size:11.5px;color:#70776c;white-space:nowrap}
.ap-counter b{font-weight:400;color:#27634e;font-variant-numeric:tabular-nums}
.ap-view{position:relative;overflow:hidden}
.ap-canvas{position:relative;display:flex;flex-direction:column;gap:12px;padding:14px 18px 16px;will-change:transform}
.ap-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.ap-title{font-size:13px}
.ap-legend{display:flex;align-items:center;gap:5px;font-size:10.5px;color:#70776c;white-space:nowrap}
.ap-legend i{width:9px;height:9px;border-radius:2px;margin-left:5px}
.ap-gridwrap{position:relative}
.ap-grid{display:grid;grid-template-columns:76px repeat(6,minmax(0,1fr));gap:5px}
.ap-col{font-size:10.5px;color:#70776c;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-bottom:2px}
.ap-school{font-size:12.5px;line-height:28px;white-space:nowrap}
.ap-cell{height:28px;border-radius:4px;background:#eceee9;transition:background-color .35s ease,opacity .4s ease,box-shadow .3s ease;transition-delay:calc(var(--i,0) * 45ms),0s,0s}
.ap-cell.is-on[data-v="1"],.ap-legend [data-v="1"]{background:#5fa382}
.ap-cell.is-on[data-v="2"],.ap-legend [data-v="2"]{background:#aabdad}
.ap-cell.is-on[data-v="3"],.ap-legend [data-v="3"]{background:#efe5cc;box-shadow:inset 0 0 0 1px #d5c49a}
.ap-grid.is-focus .ap-cell:not([data-v="3"]){opacity:.28}
.ap-grid.is-focus .ap-school{color:#9aa19a}
.ap-grid.is-focus .ap-school.is-hit{color:#0d100f}
.ap-cell.is-hit{box-shadow:inset 0 0 0 1px #d5c49a,0 0 0 2px #27634e}
.ap-cell.is-soft{box-shadow:inset 0 0 0 1px #d5c49a,0 0 0 1.5px #aabdad}
.ap-scan{position:absolute;top:-4px;bottom:-4px;left:0;width:34px;border-radius:6px;background:linear-gradient(90deg,#5fa38200,#5fa38233 60%,#27634e);opacity:0;pointer-events:none}
.ap-scan:after{content:'';position:absolute;right:0;top:0;bottom:0;width:2px;background:#27634e;border-radius:2px}
.ap-bracket{position:absolute;border:1.5px solid #27634e;border-radius:7px;opacity:0;pointer-events:none}
.ap-callout{position:absolute;z-index:2;display:flex;flex-direction:column;gap:2px;width:auto;white-space:nowrap;padding:8px 10px;border-radius:9px;background:#0d100f;color:#f8f7f4;font-size:11.5px;line-height:1.3;opacity:0;box-shadow:0 10px 24px -12px #0008}
.ap-callout b{font-weight:400;font-size:12px}
.ap-callout span{color:#c7d6cb}
.ap-side{background:#fff;color:#0d100f;border:1px solid #aabdad99}
.ap-side span{color:#70776c}

.ap-plan{padding:13px 14px 12px;border-radius:12px;background:#fff;border:1px solid #aabdad80;box-shadow:0 14px 30px -24px #27634e}
.ap-plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ap-kicker{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:#27634e}
.ap-plan h4{margin:3px 0 2px;font-weight:400;font-size:17px;letter-spacing:-.02em}
.ap-sub{font-size:12px;color:#70776c}
.ap-people{display:flex;padding-top:4px}
.ap-slot{width:20px;height:20px;margin-left:-5px;border-radius:50%;border:1.5px dashed #aabdad;background:#fff;transition:background .3s,border-color .3s}
.ap-slot.is-filled{border:2px solid #fff;background:#5fa382}
.ap-slot.is-filled:nth-child(even){background:#27634e}
.ap-cal{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:6px;row-gap:5px;margin-top:11px;padding-top:9px;border-top:1px solid #aabdad4d}
.ap-week{font-size:10.5px;color:#9aa19a;grid-row:1}
.ap-session{grid-row:2;display:flex;flex-direction:column;gap:1px;min-width:0;padding:6px 7px;border-radius:6px;background:#e8f0ea;border-left:3px solid #5fa382;font-size:11.5px;line-height:1.25}
.ap-session small{font-size:10px;color:#27634e}
.ap-session:nth-of-type(n){overflow:hidden}
.ap-plan-foot{display:flex;align-items:center;gap:10px;margin-top:11px;font-size:11.5px;color:#70776c}
.ap-validate{margin-left:auto;padding:6px 13px;border-radius:20px;background:#0d100f;color:#f8f7f4;font-size:12px}
.ap-stamp{display:none;margin-left:auto;align-items:center;gap:6px;padding:5px 11px;border-radius:20px;background:#e2ede5;color:#27634e;font-size:12px}
.ap-stamp svg{width:12px;height:12px;stroke-width:2.6}
.ap-plan.is-valid .ap-validate{display:none}
.ap-plan.is-valid .ap-stamp{display:flex}

.ap-track{position:relative;height:52px;margin:2px 44px 0}
.ap-line{position:absolute;left:0;right:0;top:7px;height:2px;background:#aabdad66;border-radius:2px}
.ap-line i{display:block;height:100%;background:#5fa382;border-radius:2px;transform-origin:left;transform:scaleX(0)}
.ap-node{position:absolute;left:var(--at);top:0;display:flex;flex-direction:column;align-items:center;transform:translateX(-50%);white-space:nowrap}
.ap-node i{width:16px;height:16px;border-radius:50%;background:#fbfaf7;border:2px solid #5fa382}
.ap-node.ap-next i{position:relative;border-style:dashed}
.ap-node.ap-next.is-live i:after{content:'';position:absolute;inset:-6px;border-radius:50%;border:1px solid #5fa382;animation:sc-ping 2s ease-out infinite}
@keyframes sc-ping{0%{transform:scale(.5);opacity:.9}80%,100%{transform:scale(1.4);opacity:0}}
.ap-node b{margin-top:5px;font-weight:400;font-size:12px}
.ap-node small{font-size:11px;color:#70776c}
.ap-fly{position:absolute;inset:0;pointer-events:none}
.ap-fly i{position:absolute;left:0;top:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#5fa382;box-shadow:0 0 0 3px #5fa38233;opacity:0}

@media(max-width:900px){.ap-win{max-height:none;border-radius:14px}.ap-top{padding:11px 14px}.ap-canvas{padding:12px 12px 14px}}
@media(max-width:520px){
 .ap-crumb,.ap-legend{display:none}
 .ap-grid{grid-template-columns:58px repeat(6,minmax(0,1fr));gap:3px}
 .ap-col{font-size:8.5px;letter-spacing:-.02em}
 .ap-school{font-size:11px;line-height:18px}
 .ap-cell{height:18px}
 .ap-callout{white-space:normal;max-width:128px;font-size:10.5px;padding:6px 8px}
 .ap-session{font-size:10.5px;padding:5px}
 .ap-week{font-size:9.5px}
 .ap-cal{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ap-cal>:nth-child(2),.ap-cal>:nth-child(4){display:none}
 .ap-cal>:nth-child(1),.ap-cal>:nth-child(6){grid-column:1!important}
 .ap-cal>:nth-child(3),.ap-cal>:nth-child(7){grid-column:2!important}
 .ap-cal>:nth-child(5),.ap-cal>:nth-child(8){grid-column:3!important}
 .ap-kicker{font-size:9.5px;letter-spacing:.08em}
 .ap-plan h4{font-size:16px}
 .ap-note{display:none}
 .ap-track{margin:2px 34px 0}
 .sc-status{padding:10px 14px;font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){.sc-spark,.sc-status-text,.ap-node i:after{animation:none!important}}
.ap-win .sc-status{border-top:1px solid #aabdad4d;color:#27634e}

/* ---------- Gerir: the operations board ---------- */
.gr-win{--ink:#172b25;--muted:#5b6861;--line:#e1e6df;--chip:#edf0eb;--ok:#27634e;position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;width:100%;max-width:720px;flex:1 1 auto;min-height:0;max-height:620px;overflow:hidden;border-radius:18px;background:#f1f3f0;color:var(--ink);box-shadow:0 40px 90px -30px #000c}
.gr-top{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 14px 10px}
.gr-crumb{font-size:11.5px;color:var(--muted);white-space:nowrap}
.gr-agent{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0;padding:4px 8px 4px 4px;border:1px solid var(--line);border-radius:12px;background:#fff}
.gr-agent img{width:28px;height:28px;flex:none;border-radius:24%}
.gr-agent b{display:block;font-weight:500;font-size:12px;line-height:1.2;white-space:nowrap}
.gr-agent small{display:block;font-size:10.5px;color:var(--muted);white-space:nowrap}
.gr-state{display:flex;align-items:center;gap:5px;margin-left:4px;padding:2px 8px;border-radius:10px;background:var(--chip);color:#45574d;font-size:10.5px;font-style:normal;white-space:nowrap}
.gr-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#64766b}
.gr-state.is-working{background:#e8f0e8;color:var(--ok)}
.gr-state.is-working:before{background:#367d58;animation:gr-pulse 1s ease-in-out infinite}
.gr-state.is-waiting{background:#f8f0e0;color:#7c5925}
.gr-state.is-waiting:before{background:#7c5925}
.gr-main{position:relative;display:flex;flex-direction:column;gap:10px;min-height:0;overflow:hidden;padding:0 14px 12px}
.gr-board{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;flex:none}
.gr-col{min-width:0;min-height:190px;padding:7px;border-radius:12px;background:#e8ece5;border:1px solid var(--line)}
.gr-col-head{display:flex;align-items:center;gap:6px;margin-bottom:7px;font-size:10.5px;font-weight:500;white-space:nowrap}
.gr-col-head:before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:#64766b}
.gr-col[data-col="analise"] .gr-col-head:before{background:#3c6078}
.gr-col[data-col="aguardando"] .gr-col-head:before{background:#7c5925}
.gr-col[data-col="concluido"] .gr-col-head:before{background:#367d58}
.gr-col-head span{overflow:hidden;text-overflow:ellipsis}
.gr-col-head i{margin-left:auto;font-style:normal;font-weight:400;min-width:18px;padding:1px 5px;border-radius:7px;background:#fff;border:1px solid var(--line);color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}
.gr-col-body{display:flex;flex-direction:column;gap:6px}
.gr-card,.gr-ticket{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:7px 8px;border-radius:9px;background:#fff;border:1px solid var(--line);box-shadow:0 4px 12px #1735280a;font-size:11.5px;line-height:1.25}
.gr-card{opacity:.7}
.gr-card small{display:none}
.gr-card b,.gr-ticket b{max-width:100%;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-card small,.gr-ticket small{max-width:100%;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-tag{padding:1px 6px;border-radius:5px;background:var(--chip);color:var(--muted);font-size:9.5px}
.gr-ticket{position:absolute;left:0;top:0;z-index:3;border-color:#367d58;box-shadow:0 0 0 3px #367d5822,0 14px 28px -14px #17352866}
.gr-ticket .gr-tag{background:#e8f0e8;color:var(--ok)}
.gr-owner{display:flex;align-items:center;gap:5px;align-self:stretch;margin-top:3px;padding-top:5px;border-top:1px solid var(--line);font-size:10px;color:#45574d;white-space:nowrap}
.gr-owner img{width:16px;height:16px;flex:none;border-radius:24%}
.gr-done{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#367d58;color:#fff;border:2px solid #f1f3f0}
.gr-done svg{width:11px;height:11px;stroke-width:2.6}
.gr-ops{position:relative;flex:none}
.gr-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.gr-lane,.gr-diff,.gr-sends{min-width:0;padding:10px 11px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.gr-lane-head{display:flex;align-items:center;gap:7px;font-size:11.5px}
.gr-lane-head b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-dot{width:6px;height:6px;flex:none;border-radius:50%;background:#367d58;animation:gr-pulse 1s ease-in-out infinite}
.gr-lane.is-done .gr-dot{animation:none;opacity:.4}
@keyframes gr-pulse{50%{opacity:.25}}
.gr-ok{margin-left:auto;display:grid;place-items:center;width:16px;height:16px;flex:none;border-radius:50%;background:#367d58;color:#fff;opacity:0;transform:scale(.4);transition:opacity .25s,transform .35s cubic-bezier(.3,1.6,.5,1)}
.gr-ok svg{width:10px;height:10px;stroke-width:2.8}
.gr-lane.is-done .gr-ok{opacity:1;transform:none}
.gr-bar{display:block;height:3px;margin:9px 0 8px;border-radius:3px;background:var(--line);overflow:hidden}
.gr-bar i{display:block;height:100%;background:#367d58;transform-origin:left;transform:scaleX(0)}
.gr-log{position:relative;height:16px;font-size:10.5px;color:var(--muted)}
.gr-line{position:absolute;inset:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0}
.gr-result{color:var(--ok);font-weight:500}
.gr-exec{position:absolute;inset:0;display:grid;grid-template-columns:1.2fr 1fr;gap:7px;align-content:start;opacity:0}
.gr-exec-label{display:block;margin-bottom:8px;font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.gr-field{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:3px;font-size:11.5px}
.gr-field>span{grid-row:span 2;color:var(--muted)}
.gr-field s{position:relative;justify-self:start;text-decoration:none;color:var(--muted)}
.gr-field s:after{content:'';position:absolute;left:0;right:0;top:55%;height:1px;background:var(--ink);transform-origin:left;transform:scaleX(var(--strike,0))}
.gr-field em{font-style:normal;color:var(--ok);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-sends{display:flex;flex-direction:column;gap:7px;justify-content:center}
.gr-send{display:flex;align-items:center;gap:8px;font-size:11.5px;white-space:nowrap}
.gr-send>svg{width:14px;height:14px;flex:none;color:#64766b}
.gr-send em{margin-left:auto;display:flex;align-items:center;gap:4px;font-style:normal;font-size:10.5px;color:var(--ok);opacity:0}
.gr-send em svg{width:11px;height:11px;stroke-width:2.6}
.gr-toast{position:absolute;top:58px;right:14px;z-index:6;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;background:#102f27;color:#edf4ed;font-size:11.5px;box-shadow:0 12px 30px -10px #17352899;opacity:0}
.gr-toast b{font-weight:500}
.gr-toast i{width:7px;height:7px;border-radius:50%;background:#5fa382}
.gr-shade{position:absolute;inset:0;z-index:7;background:#102f2766;opacity:0;pointer-events:none}
.gr-modal{position:absolute;left:50%;top:50%;z-index:8;width:min(320px,calc(100% - 32px));padding:18px 18px 16px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 30px 60px -20px #17352899;opacity:0}
.gr-modal-kicker{display:inline-block;padding:2px 8px;border-radius:10px;background:#f8f0e0;color:#7c5925;font-size:10.5px}
.gr-modal h4{margin:8px 0 12px;font-weight:500;font-size:17px;letter-spacing:-.02em}
.gr-modal dl{margin:0;display:grid;gap:6px;font-size:12px}
.gr-modal dl div{display:flex;justify-content:space-between;gap:12px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.gr-modal dt{color:var(--muted)}
.gr-modal dd{margin:0;text-align:right}
.gr-checks{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:11px;color:var(--ok)}
.gr-checks svg{width:12px;height:12px;stroke-width:2.6}
.gr-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;font-size:12px}
.gr-btn-ghost{padding:7px 12px;border-radius:10px;border:1px solid #ccd6cd;color:#45574d}
.gr-authorize{padding:7px 15px;border-radius:10px;background:#102f27;color:#fff}
.gr-signed{display:none;align-items:center;gap:6px;padding:6px 12px;border-radius:10px;background:#e8f0e8;color:var(--ok)}
.gr-signed svg{width:12px;height:12px;stroke-width:2.6}
.gr-modal.is-signed .gr-authorize,.gr-modal.is-signed .gr-btn-ghost{display:none}
.gr-modal.is-signed .gr-signed{display:flex}
.gr-win .sc-status{border-top:1px solid var(--line);background:#fff;color:var(--ok)}
.gr-win .sc-status-text{background-image:linear-gradient(90deg,#27634e 0,#27634e 40%,#9fc8b2 50%,#27634e 60%,#27634e 100%)}
.gr-audit{margin-top:auto;padding:10px 4px 0;border-top:1px solid var(--line)}
.gr-audit ol{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.gr-audit li{display:flex;gap:10px;font-size:11px;color:#45574d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-audit time{color:#65736c;font-variant-numeric:tabular-nums}
@media(min-width:521px){.gr-log{height:auto;display:flex;flex-direction:column;gap:4px}.gr-line{position:static}.gr-line:not(.gr-result):before{content:'› ';color:#367d58}}
@media(max-width:900px){.gr-win{max-height:none;border-radius:14px}.gr-top{padding:11px 12px 9px}.gr-main{padding:0 10px 10px;gap:9px}.gr-agent small{display:none}}
@media(max-width:700px) and (min-width:521px){.gr-crumb{display:none}}
/* Short screens: the history is the first thing to go, so the board and the checks always fit. */
@media(max-height:820px),(max-width:900px){.gr-audit{display:none}.gr-col{min-height:160px}}
@media(max-width:520px){
 .prod-media[data-scene="gerir"]{height:auto;min-height:440px}
 .gr-top{padding:10px}
 .gr-crumb{font-size:10.5px}
 .gr-agent{gap:6px;padding:3px 6px 3px 3px}
 .gr-agent img{width:24px;height:24px}
 .gr-board{gap:4px}
 .gr-col{min-height:132px;padding:5px;border-radius:9px}
 .gr-col-head{font-size:8.5px;margin-bottom:6px;gap:4px}
 .gr-col-head:before{width:5px;height:5px}
 .gr-col-head i{display:none}
 .gr-card,.gr-ticket{padding:5px 6px;font-size:10px}
 .gr-card small,.gr-tag{display:none}
 .gr-ticket small{display:block;font-size:9px}
 .gr-owner{font-size:0;gap:0;padding-top:4px}
 .gr-card b,.gr-ticket b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .gr-lanes{grid-template-columns:1fr;gap:5px}
 .gr-lane{display:grid;grid-template-columns:118px 1fr;align-items:center;column-gap:8px;padding:7px 9px}
 .gr-bar{grid-column:1/-1;grid-row:2;margin:6px 0 0}
 .gr-lane-head{font-size:10.5px}
 .gr-exec{grid-template-columns:1fr;gap:6px}
 .gr-diff,.gr-sends{padding:8px 10px}
 .gr-exec-label{margin-bottom:5px}
 .gr-sends{flex-direction:row;justify-content:space-between;gap:8px}
 .gr-send{font-size:11px;gap:6px}
 .gr-send em{margin-left:4px;font-size:0}
 .gr-send em svg{width:12px;height:12px}
 .gr-toast{top:52px;right:10px;font-size:11px}
 .gr-audit{display:none}
}
@media(prefers-reduced-motion:reduce){.gr-dot,.gr-state:before{animation:none}}
