body[data-sheet-explain="true"] main.shell{display:block}
body[data-sheet-explain="true"] main.shell>section:not(#sheet-explanation),body[data-sheet-explain="true"] #studio-room,body[data-sheet-explain="true"] #workspace-find-return,body[data-sheet-explain="true"] #project-library-options,body[data-sheet-explain="true"]>footer{display:none!important}
.sheet-explanation{max-width:960px;margin:16px auto;background:#f9f5e9;color:#173b35;border:1px solid #b0a48c;border-radius:16px;overflow:hidden;box-shadow:0 18px 60px #17342d24;overflow-wrap:anywhere}
.sheet-explanation[hidden],.sheet-explanation [hidden]{display:none!important}
.sheet-explain-head{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:20px 26px;background:linear-gradient(100deg,#163c35f5,#163c35b0),url('/office/brand/studio-materials-v1.webp') center/cover;color:#fff1d6}
.sheet-explain-head h2{font:normal clamp(1.8rem,4vw,2.7rem) Georgia,serif;margin:0}.sheet-explain-head .eyebrow{color:#f2ca91;margin:0 0 6px}.sheet-explain-head button{background:#f5ecd9;color:#173b35}
#sheet-explain-content{padding:22px 26px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.sheet-explain-fact{min-width:0}.sheet-explain-label{text-transform:uppercase;letter-spacing:.1em;font-size:.7rem;font-weight:700;margin:0 0 6px}
#sheet-explain-raw{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:repeating-linear-gradient(0deg,transparent 0 25px,#173b3510 26px),#eeeadd;border-left:3px solid #b37542;font-size:1rem;line-height:1.5}
#sheet-explain-value{display:block;font:normal 1.8rem/1.2 Georgia,serif;white-space:pre-wrap;margin:5px 0 14px}.sheet-explain-result{margin-top:18px}
#sheet-explain-meaning,#sheet-explain-error{line-height:1.5;margin:12px 0}#sheet-explain-error{border-left:3px solid #9d461b;padding-left:12px;color:#793b1e}
.sheet-explanation details{font-size:.85rem;line-height:1.5}.sheet-explanation summary{cursor:pointer;min-height:44px;padding:12px 0}.sheet-explanation details p{margin:0 0 10px}.sheet-explanation ol{padding-left:20px}.sheet-explanation li{margin:0 0 8px}
.sheet-explain-input-section h3{font:normal 1.4rem Georgia,serif;margin:0 0 10px}#sheet-explain-inputs{list-style:none;padding:0;margin:0;display:grid;gap:8px}#sheet-explain-inputs li{margin:0}
#sheet-explain-inputs button{display:block;width:100%;text-align:left;padding:12px 14px;background:linear-gradient(130deg,#fffdf7,#ece9db);color:#173b35;border:1px solid #b8bba7;border-radius:10px;white-space:normal;overflow-wrap:anywhere}
#sheet-explain-inputs strong,#sheet-explain-inputs span,#sheet-explain-inputs small,#sheet-explain-inputs i{display:block}#sheet-explain-inputs span{white-space:pre-wrap;line-height:1.4;font-weight:400;margin:5px 0}#sheet-explain-inputs small,#sheet-explain-inputs i{font-size:.75rem;font-style:normal}#sheet-explain-inputs button:hover{background:#e7eddf}
#sheet-explain-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;font-size:.8rem}#sheet-explain-input-note{font-size:.8rem;line-height:1.5;margin:12px 0 0}
.sheet-explain-footer{color:#173b35;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 26px;background:#e7ecdf;border-top:1px solid #cbbfa5}#sheet-explain-status{font-size:.85rem;line-height:1.5;margin:0}
.sheet-explanation button{min-height:44px;white-space:normal}.sheet-explanation :focus-visible{outline:3px solid #a95218;outline-offset:3px}.sheet-cell-tools{display:flex;gap:16px;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;background:#f9f5e9;padding:10px 0}.sheet-cell-tools p{margin:0}.sheet-cell-tools button{flex:none;min-height:44px}
@media(max-width:700px){.sheet-explanation{margin:10px auto}.sheet-explain-head{padding:14px}.sheet-explain-head h2{font-size:1.7rem}#sheet-explain-content{padding:16px;grid-template-columns:minmax(0,1fr);gap:18px}.sheet-explain-result{margin-top:12px}#sheet-explain-value{margin-bottom:8px}.sheet-explain-footer{padding:12px 16px;align-items:start;flex-wrap:wrap}.sheet-cell-tools{align-items:start}.sheet-cell-tools p{font-size:.8rem}}
@media(max-width:280px){.sheet-explain-head,.sheet-cell-tools{flex-direction:column;align-items:stretch}.sheet-cell-tools{position:static}#sheet-explain-pages{flex-wrap:wrap}}
@media(prefers-reduced-motion:no-preference){.sheet-explanation{animation:chapter-light 180ms ease-out}}

#sheet-explanation .sheet-explain-footer,#sheet-explain-status{color:#173b35}
