#exercise-home,.ex-material,#ex-detail{margin:1rem 0;padding:1.25rem;border:1px solid #d6e1dd;border-radius:14px;background:#fff;color:#253c35}
#exercise-view[hidden],#exercise-home[hidden],#ex-detail[hidden],#ex-manual-label[hidden],#exercise-policy-label[hidden]{display:none!important}
.ex-home-head,.ex-actions,.ex-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.ex-home-head h2,.ex-material h2{margin:0 0 .4rem}.ex-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.ex-columns section{min-width:0}.ex-columns h3,#ex-detail h3{font-size:1rem;margin:1.1rem 0 .4rem}
.ex-columns li,.ex-question,.ex-passage,.ex-row{overflow-wrap:anywhere}.ex-columns ul,.ex-options{padding-left:1.15rem;margin:.4rem 0}
.ex-receipt{margin:1rem 0}.ex-receipt strong{font-size:1.5rem}.ex-row{padding:.55rem 0;border-bottom:1px solid #e1e9e5}.ex-row small{display:block}.ex-row button{padding:.4rem .65rem}
#exercise-view select,#exercise-view textarea{max-width:100%}#ex-detail form{display:grid;gap:.75rem;max-width:48rem}#ex-detail label{display:grid;gap:.3rem}#ex-detail textarea{width:100%;min-height:4.5rem}.ex-actions{justify-content:flex-start}
#ex-detail summary,.ex-material summary{cursor:pointer;padding:.5rem 0;color:#234e44}.ex-question,.ex-passage{border-bottom:1px solid #dce6e0}.ex-passage p{text-indent:2em;line-height:1.65}
.ex-figure{display:block;max-width:100%;height:auto;max-height:65vh;object-fit:contain}.ex-source{color:#3c554b;background:#f3f7f4;padding:0 .6rem}.ex-material details{margin-top:.6rem}
#ex-confirm:not(:empty){padding:1rem;margin-top:1rem;background:#f5f7ed;border:1px solid #d6dfbd;border-radius:.65rem}#exercise-message{color:#446457;min-height:1.4rem}
@media(max-width:850px){.ex-columns{grid-template-columns:1fr}.ex-columns section+section{border-top:1px solid #e1e9e5}.ex-columns{gap:.4rem}}
.ex-passage .ex-illustrated{display:flow-root;text-indent:0}
.ex-illustrated .ex-road-sign{float:left;width:65px;margin:.2em .75em .25em 0}
.ex-illustrated .ex-portrait{float:right;width:clamp(64px,16%,105px);margin:.2em 0 .25em .8em}
