:root {
  color: #192937;
  background: #eee7d8;
  font: 1rem/1.5 system-ui, sans-serif;
  --pine: #1c3445;
  --paper: #fff9ed;
  --rule: #cfc4af;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 46rem; padding: 1.6rem 1rem 2rem; }
header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: 1.4rem; padding: .2rem 0 .9rem; border-bottom: 1px solid; }
header strong { letter-spacing: .05em; }
header span, footer, small { font-size: .82rem; }
main { background: var(--paper); border: 1px solid var(--rule); border-radius: .85rem; overflow: hidden; }
.mast { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem; background: var(--pine); color: #fff6e2; padding: 1.3rem clamp(1.1rem, 5vw, 2rem); }
.mast div { display: flex; gap: .65rem; align-items: center; }
.mast img { background: var(--paper); padding: .28rem; border-radius: .2rem; }
.mast p { margin: 0; }
.mast output { font: 2.8rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.content { padding: 1.45rem clamp(1.1rem, 5vw, 2rem) 1.6rem; }
h1 { font: normal clamp(1.95rem, 7vw, 3.1rem)/1.1 var(--serif); margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
#feedback { border-left: 3px solid #a23d2e; padding: .55rem .75rem; background: #f2e5d5; }
#actions, #history { display: flex; flex-wrap: wrap; gap: .6rem; }
#history:not(:empty) { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
button { min-height: 46px; cursor: pointer; font: inherit; font-weight: 650; padding: .6rem .95rem; border: 1px solid var(--pine); border-radius: .35rem; background: var(--pine); color: var(--paper); }
button.secondary { background: transparent; color: var(--pine); }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 2px solid #a23d2e; outline-offset: 4px; }
dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; padding: .8rem 0; border-block: 1px solid var(--rule); }
dd { margin: 0; text-align: right; font-weight: 650; }
#note, video { display: block; max-width: 100%; height: auto; margin: 0 auto 1rem; }
#note { image-rendering: pixelated; }
video { width: min(100%, 288px); }
#image-picker { display: block; margin: .75rem 0 1rem; }
input { display: block; max-width: 100%; margin-top: .3rem; }
footer { margin-top: 1rem; }
[hidden] { display: none !important; }
