/* /inspect: an inspection report clipped to a walnut clipboard, in the kitchen at night.
   The stamp is the one loud thing; everything else is a quiet form. */
.insp-top { max-width: 760px; }
.insp-back { margin-left: auto; color: var(--paper); font: 700 .9rem/1 var(--f-ui); text-underline-offset: 3px; }
.insp-wrap { max-width: 760px; margin: 0 auto; }

.clip { position: relative; background: linear-gradient(160deg, #6b3f22, #4a2a16 60%, #3b2213); border: 3px solid var(--ink); border-radius: 22px; padding: 46px 14px 14px; box-shadow: 10px 12px 0 rgba(0,0,0,.45); }
.clip::before { content: ""; position: absolute; top: -14px; left: 50%; width: 170px; height: 44px; transform: translateX(-50%); background: linear-gradient(#e6bd62, var(--brass) 55%, var(--brass-2)); border: 3px solid var(--ink); border-radius: 12px 12px 18px 18px; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.clip::after { content: ""; position: absolute; top: 2px; left: 50%; width: 46px; height: 12px; transform: translateX(-50%); border-radius: 8px; background: var(--walnut); }

.sheet { position: relative; background: var(--thermal) repeating-linear-gradient(transparent 0 31px, rgba(33,22,15,.06) 31px 32px); color: #26221d; border-radius: 6px; padding: 26px 26px 22px; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.sheet a { color: var(--curler-2); text-underline-offset: 2px; }

.sheet-head { position: relative; padding-right: 150px; }
.sheet-head h1 { margin: 0 0 10px; font: clamp(2rem, 6vw, 2.9rem)/1 var(--f-sign); color: var(--ink); letter-spacing: -.01em; }
.meta { margin: 0; display: grid; gap: 2px; font: .92rem/1.45 var(--f-receipt); }
.meta div { display: flex; gap: 8px; flex-wrap: wrap; }
.meta dt { font-weight: 700; min-width: 6.5em; }
.meta dd { margin: 0; }

.stamp { position: absolute; top: 4px; right: 0; margin: 0; padding: 10px 16px 6px; border: 5px solid currentColor; border-radius: 14px; font: 1.7rem/1 var(--f-sign); transform: rotate(-9deg); opacity: .92; white-space: nowrap; mix-blend-mode: multiply; }
.stamp[data-state="pass"] { color: #23864c; }
.stamp[data-state="fail"] { color: #c62f37; }
.stamp[data-state="pending"], .stamp[data-state="busy"] { color: #8a7a6c; border-style: dashed; }
@media (prefers-reduced-motion: no-preference) {
  .stamp[data-state="pass"], .stamp[data-state="fail"] { animation: stamp-down .38s var(--ease-spring) both; }
  @keyframes stamp-down { from { transform: rotate(-9deg) scale(1.6); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: .92; } }
}

.wife-note { margin: 18px 0 4px; font: 1.45rem/1.25 var(--f-chalk); color: var(--violet-2); max-width: 36ch; }
.tally { margin: 0 0 18px; font: .95rem/1.4 var(--f-receipt); }
.tally b { font-size: 1.15em; }

.split { margin: 0 0 8px; padding: 14px 0 16px; border-top: 2px dashed rgba(33,22,15,.25); border-bottom: 2px dashed rgba(33,22,15,.25); }
.split h2 { margin: 0 0 10px; font: 800 1rem/1.2 var(--f-ui); }
.insp-bar { display: flex; height: 22px; border: 2.5px solid var(--ink); border-radius: 99px; overflow: hidden; background: #e9e1d2; }
.iseg { display: block; height: 100%; }
.iseg + .iseg { border-left: 2.5px solid var(--ink); }
.iseg-staked { background: var(--violet); }
.iseg-pool { background: var(--brass); }
.iseg-wallets { background: var(--curler); }
.iseg-burned { background: #4a3a2e; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: .9rem/1.3 var(--f-ui); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend b { font-family: var(--f-receipt); margin-left: 2px; }
.isw { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; display: inline-block; }

.checks { list-style: none; margin: 0; padding: 0; }
.chk { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(33,22,15,.14); }
.chk:last-child { border-bottom: 0; }
.sticker { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font: 700 .82rem/1 var(--f-receipt); letter-spacing: .02em; color: #fff; border: 3px solid var(--ink); box-shadow: 2px 3px 0 rgba(33,22,15,.35); transform: rotate(-6deg); }
.chk-pass .sticker { background: #2f9e5b; }
.chk-watch .sticker { background: #e0952a; color: var(--ink); }
.chk-fail .sticker { background: #d8343c; }
.chk-note .sticker { background: #fff; color: var(--ink-2); border-style: dashed; transform: none; box-shadow: none; }
.chk-unknown .sticker, .chk-busy .sticker { background: #e9e1d2; color: var(--ink-2); border-style: dashed; transform: none; box-shadow: none; }
.chk h3 { margin: 2px 0 4px; font: 800 1.12rem/1.25 var(--f-ui); color: var(--ink); }
.chk p { margin: 0; max-width: 62ch; line-height: 1.5; }
.chk .src { margin-top: 6px; font: .8rem/1.45 var(--f-receipt); color: #6a5a4c; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ticks li { font: 700 .8rem/1 var(--f-ui); padding: 6px 9px; border-radius: 99px; background: #e3f3e8; color: #1d5e37; border: 1.5px solid #9fd1b2; }
.ticks li.bad { background: #fbe3e3; color: #8e1f25; border-color: #e6a3a6; }
.top10 { margin-top: 8px; }
.top10 summary { cursor: pointer; font: 700 .9rem/1.3 var(--f-ui); color: var(--curler-2); width: max-content; max-width: 100%; }
.top10 ol { margin: 8px 0 0; padding-left: 1.6em; display: grid; gap: 3px; font: .86rem/1.4 var(--f-receipt); }
.top10 li span { margin-left: 8px; color: #4a3a2e; }

.sheet-foot { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(33,22,15,.25); font-size: .9rem; }
.sheet-foot p { margin: 0 0 8px; max-width: 70ch; }
.yourself a { margin-right: 12px; white-space: nowrap; }
.sheet-foot .ca { margin: 0; font: .8rem/1.4 var(--f-receipt); overflow-wrap: anywhere; }
.sheet-foot code { font: inherit; }

.insp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .sheet { padding: 20px 16px 18px; }
  .sheet-head { padding-right: 0; }
  .stamp { position: static; display: inline-block; margin: 14px 0 0 4px; font-size: 1.45rem; }
  .chk { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .sticker { width: 52px; height: 52px; font-size: .68rem; }
  .clip { padding: 40px 8px 8px; border-radius: 18px; }
  .insp-actions .btn { flex: 1 1 100%; }
}

.insp-any { margin: 6px 0 30px; padding: 16px 18px; border: 2px dashed rgba(255,246,230,.35); border-radius: 16px; background: rgba(0,0,0,.28); }
.insp-any label { display: block; margin-bottom: 8px; font: 1.15rem/1.2 var(--f-sign); color: var(--paper); }
.insp-any-row { display: flex; gap: 10px; flex-wrap: wrap; }
.insp-any input { flex: 1 1 260px; min-width: 0; font: 700 1rem/1 var(--f-receipt); padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--thermal); color: var(--ink); }
.insp-any input:focus-visible { outline: 3px solid var(--curler); outline-offset: 2px; }
.insp-any-msg { margin: 8px 0 0; font-size: .88rem; color: rgba(255,246,230,.8); }
.insp-wcm { margin: 8px 0 0; font-weight: 700; }
.insp-wcm a { color: #ffd0e3; }
