/* Portrait-sized work results: the art is the stage, not a second popup. */
#work-animation:not([open]){display:none}
#work-animation[open]{display:grid;align-items:safe center;justify-items:center;box-sizing:border-box;padding:calc(10px + env(safe-area-inset-top,0px)) calc(10px + env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) calc(10px + env(safe-area-inset-left,0px));overflow-y:auto;background:#222f3973}
#work-animation::backdrop{background:transparent}
.work-playback{width:min(100%,610px);min-width:0;background:#fbf6e7;color:#203443;border:1px solid #afc6b6;border-radius:17px;box-shadow:0 16px 48px #121f325c;overflow:hidden}
.work-playback>header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fbf4dd;background:#233746;padding:10px 15px}
.work-playback>header small{color:#d8e8e4;font-size:.75rem;font-weight:700}
.work-playback h2{font-size:clamp(1.02rem,4.5vw,1.35rem);line-height:1.24;color:inherit;margin:2px 0 0}
.work-playback>header strong{border-radius:11px;background:#f2e3af;color:#4b3c25;padding:6px 10px;font-size:.83rem;text-align:center;max-width:44%;flex:none}
.work-playback-art{position:relative;background:#dbe7d7;border-bottom:1px solid #a6beae;min-height:min(26svh,148px)}
[data-work-stage="motion"] .work-playback-art{cursor:pointer}
.work-playback-receipts,.work-playback-usage{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.work-playback-receipts{position:absolute;inset:7px 7px auto;align-items:start}
.work-playback-receipts div,.work-playback-usage div{min-width:0;padding:6px 8px;border:1px solid #a6c6b8;border-radius:9px;overflow-wrap:anywhere}
.work-playback-receipts div{background:#fff9e9f5;box-shadow:0 2px 0 #56756a54}
.work-playback-usage div{background:#ecf1e5;border-color:#c6d9cc}
.work-playback dt{font-size:.72rem;font-weight:700;color:#3d6159}
.work-playback dd{margin:1px 0 0;font-weight:850;color:#204b4b;font-variant-numeric:tabular-nums;font-size:.9rem;line-height:1.3}
.work-playback-copy{display:grid;gap:7px;padding:10px 12px 12px}
.work-playback-copy p{margin:0;line-height:1.43;font-size:.86rem}
.work-playback button{width:100%;min-height:44px;display:block;margin:2px 0 0;border-radius:10px;border:1px solid #145551;background:#245d56;color:#fffaf0;font-size:.94rem;font-weight:800;touch-action:manipulation}
.work-playback button:focus-visible{outline:3px solid #172f4b;outline-offset:3px}
@media(max-height:480px){.work-playback-receipts{position:static;padding:6px;background:#dbe7d7}.work-playback>header{padding:7px 10px}.work-playback-copy{padding:6px 9px 9px}}
