:root{--atgo3-line:#d7e7db;--atgo3-focus:#cc821b}
.workflow-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px;margin-top:22px}
.workflow-grid>.panel{min-width:0;height:100%}
.workflow-grid .field{margin:15px 0}
.workflow-grid input:not([type=checkbox]),.workflow-grid select{width:100%;font:inherit;border:1px solid #abc5b0;background:#fff;border-radius:9px;min-height:44px;padding:9px 12px;color:#173f2e}
.workflow-grid .panel h2{font-size:1.15rem}
.workflow-grid .panel h3{border-top:1px solid var(--atgo3-line);padding-top:14px}
.workflow-grid .switch{font-size:.84rem}
.workflow-grid .button-row{display:flex;flex-wrap:wrap;gap:8px}
.workflow-grid .button-row button{font-size:.8rem;min-height:44px}
.workflow-grid #actionResult,.workflow-grid #supportResult{overflow-wrap:anywhere;color:#185436}
.workflow-grid .audit{max-height:410px;overflow:auto;padding-right:8px}
.workflow-grid .audit li{overflow-wrap:anywhere}
.workflow-grid .facts{margin:0 0 18px}.workflow-grid .facts>div{display:grid;grid-template-columns:130px 1fr;gap:14px;padding:9px 0;border-bottom:1px solid var(--atgo3-line)}
.workflow-grid dt{font-size:.79rem;color:#567164}.workflow-grid dd{margin:0;font-weight:750;font-size:.84rem;overflow-wrap:anywhere}
.workflow-grid .scenario-link{color:#176843;display:inline-block;font-weight:800;margin-top:16px}
.workflow-grid a:hover{text-decoration:underline}
.workflow-grid #parcelTimeline{list-style:decimal inside}
@media(max-width:850px){.workflow-grid{grid-template-columns:1fr}.workflow-grid .panel{height:auto}}
@media(max-width:430px){.workflow-grid .panel{padding:17px}.workflow-grid .button-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-grid .button-row button{font-size:.78rem;padding:10px 8px}.workflow-grid .facts>div{grid-template-columns:105px 1fr;gap:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* ATGO-3 narrow-screen correction: do not allow fictional custody names to grow the stats grid. */
.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.stats .stat{min-width:0}
.stats .stat strong,.stats .stat small{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:490px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats .stat:last-child{grid-column:1/-1}}
