:root{--h2d-primary: #0d7a70;--h2d-primary-dark: #0a5c55;--h2d-accent: #c2410c;--h2d-accent-soft: #fff3ec;--h2d-mint: #eefaf7;--h2d-mint-line: #c9e9e3;--h2d-slate: #0e1b1f;--h2d-slate-soft: #16292e;--h2d-slate-line: #24424a;--h2d-slate-text: #d6ece7;--h2d-slate-dim: #7f9ba2;--h2d-surface: #ffffff;--h2d-surface-muted: #f6faf9;--h2d-border: #e2eeeb;--h2d-border-strong: #c6dcd7;--h2d-text-main: #10201f;--h2d-text-muted: #5f7573;--h2d-danger: #b91c1c;--h2d-danger-soft: #fef2f2;--h2d-shadow: 0 18px 44px rgba(13, 42, 38, 0.10);--h2d-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--primary: var(--h2d-primary);--primary-dark: var(--h2d-primary-dark);--border: var(--h2d-border);--surface: var(--h2d-surface);--surface-muted: var(--h2d-surface-muted);--shadow-soft: var(--h2d-shadow);--text-main: var(--h2d-text-main);--text-muted: var(--h2d-text-muted);}
.h2d-shell [hidden]{display: none !important;}
.sr-only{position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0, 0, 0, 0);white-space: nowrap;border: 0;}
.h2d-shell{background: var(--h2d-surface);border: 1px solid var(--h2d-border);border-radius: 1rem;box-shadow: var(--h2d-shadow);overflow: hidden;margin-bottom: 2.5rem;}
.h2d-byline{display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 0.5rem 1rem;padding: 0.75rem 1.25rem;font-size: 0.85rem;color: var(--h2d-text-muted);background: var(--h2d-surface-muted);border-bottom: 1px solid var(--h2d-border);}
.h2d-byline-author{font-weight: 600;color: var(--h2d-text-main);}
.h2d-byline .author-link{color: var(--h2d-primary-dark);text-decoration: none;font-weight: 600;}
.h2d-byline .author-link:hover{text-decoration: underline;}
.h2d-deck{padding: 1.5rem 1.25rem 1.25rem;background: linear-gradient(180deg, var(--h2d-mint) 0%, var(--h2d-surface) 90%);border-bottom: 1px solid var(--h2d-border);}
.h2d-label{display: block;font-size: 0.72rem;font-weight: 700;letter-spacing: 0.08em;text-transform: uppercase;color: var(--h2d-text-muted);margin-bottom: 0.55rem;}
.h2d-entry{display: flex;align-items: stretch;background: var(--h2d-surface);border: 1px solid var(--h2d-border-strong);border-radius: 0.7rem;overflow: hidden;transition: border-color 0.16s ease, box-shadow 0.16s ease;}
.h2d-entry:focus-within{border-color: var(--h2d-primary);box-shadow: 0 0 0 3px rgba(13, 122, 112, 0.14);}
.h2d-entry.is-bad{border-color: var(--h2d-danger);box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.10);}
.h2d-prefix{display: flex;align-items: center;padding: 0 0.85rem;font-family: var(--h2d-mono);font-size: 1.05rem;font-weight: 700;color: var(--h2d-primary-dark);background: var(--h2d-mint);border-right: 1px solid var(--h2d-mint-line);}
.h2d-input{flex: 1;min-width: 0;padding: 0.95rem 0.9rem;font-family: var(--h2d-mono);font-size: clamp(1.05rem, 3vw, 1.4rem);font-weight: 700;letter-spacing: 0.14em;text-transform: uppercase;color: var(--h2d-text-main);background: none;border: 0;outline: none;}
.h2d-input::placeholder{font-weight: 500;letter-spacing: 0.08em;color: #9fb3b0;text-transform: none;}
.h2d-wipe{display: flex;align-items: center;justify-content: center;width: 3rem;color: var(--h2d-text-muted);background: none;border: 0;border-left: 1px solid var(--h2d-border);cursor: pointer;transition: color 0.16s ease, background 0.16s ease;}
.h2d-wipe:hover{color: var(--h2d-danger);background: var(--h2d-danger-soft);}
.h2d-wipe svg{width: 17px;height: 17px;}
.h2d-note{min-height: 1.3rem;margin: 0.55rem 0 0;font-size: 0.83rem;color: var(--h2d-text-muted);}
.h2d-note.is-bad{color: var(--h2d-danger);font-weight: 600;}
.h2d-samples{display: flex;flex-wrap: wrap;align-items: center;gap: 0.4rem;margin-top: 0.95rem;}
.h2d-samples-label{font-size: 0.78rem;color: var(--h2d-text-muted);margin-right: 0.15rem;}
.h2d-sample{padding: 0.32rem 0.7rem;font-family: var(--h2d-mono);font-size: 0.8rem;font-weight: 700;color: var(--h2d-primary-dark);background: var(--h2d-surface);border: 1px solid var(--h2d-border-strong);border-radius: 999px;cursor: pointer;transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;}
.h2d-sample:hover{color: #ffffff;background: var(--h2d-primary);border-color: var(--h2d-primary);}
.h2d-sample span{font-family: inherit;font-size: 0.68rem;font-weight: 500;opacity: 0.72;margin-left: 0.3rem;}
.h2d-readout{padding: 1.6rem 1.25rem;background: var(--h2d-slate);border-bottom: 1px solid var(--h2d-border);text-align: center;}
.h2d-readout-label{font-size: 0.7rem;font-weight: 700;letter-spacing: 0.14em;text-transform: uppercase;color: var(--h2d-slate-dim);margin-bottom: 0.6rem;}
.h2d-readout-value{font-family: var(--h2d-mono);font-size: clamp(1.9rem, 7vw, 3.4rem);font-weight: 700;line-height: 1.1;color: var(--h2d-slate-text);word-break: break-all;margin: 0;}
.h2d-readout-value.is-idle{font-size: clamp(1rem, 3vw, 1.2rem);font-weight: 500;color: var(--h2d-slate-dim);}
.h2d-readout-value.is-fresh{animation: h2dLand 0.34s cubic-bezier(0.22, 1, 0.36, 1);}
.h2d-readout-grouped{font-family: var(--h2d-mono);font-size: 0.85rem;color: var(--h2d-slate-dim);margin: 0.65rem 0 0;word-break: break-all;}
.h2d-readout-copy{display: inline-flex;align-items: center;gap: 0.45rem;margin-top: 1.1rem;padding: 0.5rem 1.15rem;font-family: inherit;font-size: 0.85rem;font-weight: 600;color: var(--h2d-slate-text);background: var(--h2d-slate-soft);border: 1px solid var(--h2d-slate-line);border-radius: 999px;cursor: pointer;transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;}
.h2d-readout-copy:hover{color: #ffffff;background: var(--h2d-primary);border-color: var(--h2d-primary);}
.h2d-readout-copy.is-done{color: #ffffff;background: var(--h2d-primary);border-color: var(--h2d-primary);}
.h2d-readout-copy svg{width: 16px;height: 16px;}
.h2d-ledger{padding: 1.4rem 1.25rem;border-bottom: 1px solid var(--h2d-border);}
.h2d-ledger-head{display: flex;flex-wrap: wrap;align-items: baseline;justify-content: space-between;gap: 0.4rem 1rem;margin-bottom: 0.95rem;}
.h2d-ledger-title{font-size: 1rem;font-weight: 700;color: var(--h2d-text-main);margin: 0;}
.h2d-ledger-sub{font-size: 0.8rem;color: var(--h2d-text-muted);}
.h2d-ledger-empty{margin: 0;font-size: 0.9rem;color: var(--h2d-text-muted);}
.h2d-rows{list-style: none;padding: 0;margin: 0;display: flex;flex-direction: column;gap: 0.35rem;}
.h2d-rows li{display: grid;grid-template-columns: 2.4rem 1fr auto;align-items: center;gap: 0.75rem;padding: 0.5rem 0.7rem;background: var(--h2d-surface-muted);border: 1px solid var(--h2d-border);border-radius: 0.5rem;animation: h2dSlide 0.26s ease backwards;}
.h2d-digit{display: inline-flex;align-items: center;justify-content: center;width: 2.4rem;height: 2.4rem;font-family: var(--h2d-mono);font-size: 1.15rem;font-weight: 700;color: #ffffff;background: var(--h2d-primary);border-radius: 0.45rem;}
.h2d-digit.is-zero{color: var(--h2d-text-muted);background: var(--h2d-border);}
.h2d-math{font-family: var(--h2d-mono);font-size: 0.86rem;color: var(--h2d-text-muted);word-break: break-word;}
.h2d-math b{color: var(--h2d-text-main);font-weight: 700;}
.h2d-math sup{font-size: 0.72em;}
.h2d-part{font-family: var(--h2d-mono);font-size: 0.92rem;font-weight: 700;color: var(--h2d-primary-dark);text-align: right;white-space: nowrap;}
.h2d-part.is-zero{color: var(--h2d-text-muted);font-weight: 500;}
.h2d-ledger-total{display: flex;flex-wrap: wrap;align-items: baseline;justify-content: space-between;gap: 0.35rem 1rem;margin-top: 0.6rem;padding: 0.7rem 0.7rem;background: var(--h2d-accent-soft);border: 1px solid #f6d9c8;border-radius: 0.5rem;}
.h2d-total-label{font-size: 0.78rem;font-weight: 700;letter-spacing: 0.06em;text-transform: uppercase;color: var(--h2d-accent);}
.h2d-total-value{font-family: var(--h2d-mono);font-size: 1.05rem;font-weight: 700;color: var(--h2d-text-main);word-break: break-all;}
.h2d-facets{display: grid;grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));gap: 0.75rem;padding: 1.25rem;background: var(--h2d-surface-muted);}
.h2d-facet{padding: 0.85rem 0.9rem;background: var(--h2d-surface);border: 1px solid var(--h2d-border);border-radius: 0.6rem;}
.h2d-facet-label{display: flex;align-items: center;justify-content: space-between;gap: 0.5rem;font-size: 0.68rem;font-weight: 700;letter-spacing: 0.08em;text-transform: uppercase;color: var(--h2d-text-muted);margin-bottom: 0.45rem;}
.h2d-facet-value{font-family: var(--h2d-mono);font-size: 0.95rem;font-weight: 700;color: var(--h2d-text-main);word-break: break-all;line-height: 1.5;}
.h2d-facet-value.is-dim{font-weight: 500;color: var(--h2d-text-muted);}
.h2d-facet-note{margin: 0.35rem 0 0;font-size: 0.75rem;color: var(--h2d-text-muted);}
.h2d-width{display: inline-flex;padding: 0.15rem;background: var(--h2d-surface-muted);border: 1px solid var(--h2d-border-strong);border-radius: 0.45rem;}
.h2d-width-btn{padding: 0.18rem 0.42rem;font-family: var(--h2d-mono);font-size: 0.7rem;font-weight: 700;color: var(--h2d-text-muted);background: none;border: 0;border-radius: 0.3rem;cursor: pointer;transition: color 0.16s ease, background 0.16s ease;}
.h2d-width-btn:hover{color: var(--h2d-primary-dark);}
.h2d-width-btn.is-active{color: #ffffff;background: var(--h2d-primary);}
.h2d-article{background: var(--h2d-surface);border: 1px solid var(--h2d-border);border-radius: 1rem;box-shadow: var(--h2d-shadow);padding: 1.75rem 1.5rem;margin-bottom: 2rem;}
.h2d-article h2{font-size: clamp(1.4rem, 3vw, 1.75rem);font-weight: 700;color: var(--h2d-text-main);margin: 0 0 0.9rem;}
.h2d-article h3{font-size: clamp(1.1rem, 2.4vw, 1.3rem);font-weight: 700;color: var(--h2d-primary-dark);margin: 2rem 0 0.75rem;}
.h2d-article p{font-size: 1rem;line-height: 1.75;color: var(--h2d-text-muted);margin: 0 0 1rem;}
.h2d-article a{color: var(--h2d-primary);font-weight: 600;text-decoration: none;}
.h2d-article a:hover{text-decoration: underline;}
.h2d-article code{font-family: var(--h2d-mono);font-size: 0.9em;padding: 0.1rem 0.35rem;color: var(--h2d-primary-dark);background: var(--h2d-mint);border-radius: 0.25rem;}
.h2d-article strong{color: var(--h2d-text-main);}
.h2d-figure{margin: 1.5rem 0 1.75rem;padding: 1.15rem 1rem;background: var(--h2d-surface-muted);border: 1px solid var(--h2d-border);border-radius: 0.75rem;overflow-x: auto;}
.h2d-figure-title{font-size: 0.74rem;font-weight: 700;letter-spacing: 0.08em;text-transform: uppercase;color: var(--h2d-text-muted);margin-bottom: 0.85rem;}
.h2d-table{width: 100%;border-collapse: collapse;font-family: var(--h2d-mono);font-size: 0.84rem;}
.h2d-table th{padding: 0.45rem 0.6rem;font-size: 0.7rem;font-weight: 700;letter-spacing: 0.06em;text-transform: uppercase;color: var(--h2d-text-muted);text-align: left;border-bottom: 1px solid var(--h2d-border-strong);white-space: nowrap;}
.h2d-table td{padding: 0.45rem 0.6rem;color: var(--h2d-text-muted);border-bottom: 1px solid var(--h2d-border);white-space: nowrap;}
.h2d-table td:first-child{color: var(--h2d-primary-dark);font-weight: 700;}
.h2d-table tr:last-child td{border-bottom: 0;}
.h2d-figure-note{margin: 0.85rem 0 0;font-size: 0.78rem;line-height: 1.6;color: var(--h2d-text-muted);}
.h2d-callout{margin: 1.4rem 0;padding: 1rem 1.1rem;background: var(--h2d-accent-soft);border-left: 3px solid var(--h2d-accent);border-radius: 0.5rem;}
.h2d-callout p{margin: 0;font-size: 0.94rem;line-height: 1.7;color: #7c3208;}
.h2d-callout p + p{margin-top: 0.7rem;}
@keyframes h2dLand{from{opacity: 0;transform: translateY(8px);}to{opacity: 1;transform: translateY(0);}}
@keyframes h2dSlide{from{opacity: 0;transform: translateX(-8px);}to{opacity: 1;transform: translateX(0);}}
@media (max-width: 768px){.h2d-deck{padding: 1.25rem 1rem 1.1rem;}
.h2d-readout{padding: 1.35rem 1rem;}
.h2d-ledger{padding: 1.2rem 1rem;}
.h2d-facets{padding: 1rem;grid-template-columns: 1fr;}
.h2d-rows li{grid-template-columns: 2rem 1fr;gap: 0.55rem;}
.h2d-digit{width: 2rem;height: 2rem;font-size: 1rem;}
.h2d-part{grid-column: 1 / -1;text-align: left;padding-left: 2.55rem;}
.h2d-article{padding: 1.35rem 1.1rem;}}
@media (prefers-reduced-motion: reduce){.h2d-readout-value.is-fresh{animation: none;}
.h2d-rows li{animation: none;}}
