/* The trainer's agent (#/agent): the screen, the review of a proposed programme or menu (in the pane
   beside the list, or in a sheet), the build form and the profile sheet. Tokens only; type in rem. */

/* ---------- the screen ---------- */
.ag-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ag-zone{display:flex;flex-direction:column;gap:12px;min-width:0}
.ag-cards{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width: 620px){ .ag-cards{grid-template-columns:1fr 1fr} .ag-cards .tile{justify-content:space-between} }
.ag-ico{flex:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--wash);color:var(--secondary-text)}
.ag-ico svg{width:20px;height:20px}
.ag-inlrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ag-links{display:flex;flex-wrap:wrap;gap:8px}
.ag-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px 14px}
.ag-facts > div{min-width:0;display:flex;flex-direction:column}
.ag-facts span{font-size:.75rem;color:var(--ink-3)}
.ag-facts b{font-size:.9rem;font-weight:600;overflow-wrap:anywhere}
.ag-facts small{font-size:.72rem;color:var(--ink-3)}
.ag-facts .ag-off b::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--decor);margin-inline-start:6px;vertical-align:middle}
.ag-kv{padding-inline:0}
.ag-kv .btn{flex:none}
.ag-kv-col{flex-direction:column;align-items:stretch}
.ag-kv-col .btn{align-self:flex-start}
.chip small{font-size:.72rem;font-weight:500;opacity:.86}
.ag-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.ag-c{text-align:center;font-weight:700}
.ag-inl{display:inline-block;width:14px;height:14px;vertical-align:-2px}

/* ---------- the pane (wide screens) ---------- */
.ag-pane-tile{padding:0;gap:0;overflow:hidden}
.ag-pane-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 10px}
.ag-pane-h h2{min-width:0;overflow-wrap:anywhere}
.ag-pane-b{padding:0 16px 16px;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}
.ag-pane-b:focus{outline:none}
@media (min-width: 1180px){ .shell.wide .split:has(.ag-pane-tile){grid-template-columns:minmax(0,1fr) minmax(380px,460px)} }

/* ---------- a review ---------- */
.ag-rev{display:flex;flex-direction:column;gap:12px;min-width:0}
.ag-rev .tile{background:var(--tile-2);padding:12px 14px;gap:10px}
.ag-rev .tile .chip:not([aria-pressed="true"]):not([aria-checked="true"]):not([aria-selected="true"]){background:var(--tile)}
.ag-rev .tile .btn.ghost{background:var(--tile)}
.ag-rev h3{font-size:.97rem;font-weight:700}
.ag-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.84rem;color:var(--ink-2)}
.ag-acts{display:flex;flex-wrap:wrap;gap:8px}
.ag-kind{margin:0}
.ag-kind .hint{margin-top:6px}
.ag-acts .btn{flex:0 1 auto}
.ag-acts .btn.primary{flex:1 1 150px}
.ag-more{padding-inline:12px}
.ag-rev .banner{align-items:flex-start}
.ag-rev .banner svg{margin-top:2px}
.ag-rev .banner p{font-weight:400;margin-top:2px}
.ag-block{box-shadow:inset 0 0 0 1px var(--danger);background:var(--danger-wash)}
.ag-block svg{color:var(--danger)}
.ag-about summary{cursor:pointer;font-size:.9rem;font-weight:600;color:var(--ink-2)}
.ag-about ul{margin:8px 0 0;padding-inline-start:18px;display:flex;flex-direction:column;gap:4px;font-size:.84rem;color:var(--ink-2)}
.ag-about p{margin-top:8px;font-size:.84rem;color:var(--ink-2)}
.ag-dayh{display:flex;align-items:center;gap:10px;min-width:0}
.ag-dayh b{min-width:0;overflow-wrap:anywhere}
.ag-ex .row-t,.ag-opt .row-t{text-align:start;gap:2px}
.ag-ex .icon-btn{color:var(--secondary-text)}
.ag-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.ag-row2{grid-template-columns:minmax(0,1fr) auto auto}
.ag-cmp{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ag-cmp > div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:10px 4px;border-radius:12px;background:var(--tile)}
.ag-cmp b{font-size:1.05rem}
.ag-cmp span{font-size:.7rem;color:var(--ink-3)}
.ag-bonus{font-size:.66rem;color:var(--ink-3)}
.ag-variant{margin-top:6px}
.ag-slot{display:flex;flex-direction:column;gap:4px}
.ag-slot + .ag-slot{border-top:1px solid var(--line);padding-top:10px}
.ag-slot-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.ag-fix{color:var(--ink-2)}
.ag-add{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;font-size:.84rem}
.ag-portion{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:14px;background:var(--wash)}
.ag-portion b{font-size:1.15rem}
.ag-portion span{font-size:.84rem;color:var(--ink-2)}
.ag-sheet{max-width:640px}

@media (hover: hover) and (pointer: fine){
  .ag-about summary:hover{color:var(--ink)}
}
