/* Katie Mack. Two inks on cream: deep green and orange, set like a theater program.
   One family (Bricolage Grotesque): condensed and heavy for the big words, plain for reading.
   No serif, no italics, no tracked caps. The frog is the only drawing on the page. */

@font-face {
  font-family: "Brico";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Brico";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #1e4a2c;
  --orange: #ee6a1f;
  --paper: #f3ede0;
  --ink: #15150f;
  --ink-2: #4a463b;
  --orange-ink: #c4500c;   /* orange as text on paper: dark enough to read */
  --rule: rgba(21, 21, 15, 0.82);
  --rule-soft: rgba(21, 21, 15, 0.18);
  --pad: clamp(18px, 4.2vw, 64px);
  --gap: clamp(16px, 2.4vw, 40px);
  --body: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--green); }
body {
  margin: 0; color: var(--ink); background: var(--paper) url("/img/paper.webp") 0 0 / 512px repeat;
  font: 400 var(--body)/1.5 "Brico", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
p, li, dd, h1, h2, h3 { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 75%; font-variation-settings: "opsz" 96; line-height: 0.92; letter-spacing: -0.01em; text-wrap: balance; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.big { font-weight: 800; font-stretch: 75%; font-variation-settings: "opsz" 96; line-height: 0.92; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { position: relative; }
.wrap { padding-inline: var(--pad); }

/* a ruled heading row: title on the left, one fact on the right */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap); padding-block: 0.7rem; border-top: 3px solid currentColor; }
.head h2 { font-size: clamp(34px, 5.4vw, 84px); }
.head .side { font-weight: 600; font-size: 17px; white-space: nowrap; }

/* ---------- the door ---------- */
.door {
  min-height: 100svh; color: var(--paper);
  background: var(--green) url("/img/green.webp") 0 0 / 512px repeat;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end;
  overflow: hidden;
}
.door-words { padding: calc(var(--pad) * 1.2) var(--pad) var(--pad); align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; position: relative; z-index: 2; }
.door-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; opacity: 0.9; }
.door-name { font-size: clamp(88px, 17.5vw, 330px); line-height: 0.8; letter-spacing: -0.02em; }
.door-name span { display: block; }
.door-name .n2 { color: var(--orange); }
.door-lines { display: grid; gap: 0; max-width: 34rem; }
.door-lines > * { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.55rem 0; border-top: 1.5px solid rgba(243, 237, 224, 0.55); font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; }
.door-lines > *:last-child { border-bottom: 1.5px solid rgba(243, 237, 224, 0.55); }
.not { background: none; border: 0; padding: 0.5rem 0; min-height: 44px; cursor: pointer; text-align: left; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: var(--orange); }
.not:hover, .not:focus-visible { color: var(--orange); outline: none; }
.not .q { display: inline-block; margin-left: 0.4rem; width: 1.3em; height: 1.3em; line-height: 1.3em; text-align: center; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 0.75em; text-decoration: none; vertical-align: 0.1em; }
.door-face { position: relative; align-self: end; height: 96svh; display: flex; align-items: flex-end; justify-content: center; margin-left: -8vw; }
.door-face button { all: unset; cursor: pointer; display: block; height: 100%; }
.door-face img {
  height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom;
  filter: drop-shadow(5px 0 0 var(--paper)) drop-shadow(-5px 0 0 var(--paper)) drop-shadow(0 -5px 0 var(--paper)) drop-shadow(0 5px 0 var(--paper));
  transform-origin: 50% 100%;
}
.door-face.laughing img { animation: giggle 0.5s ease 2; }
.pose { position: absolute; left: auto; right: 7%; bottom: 5%; width: 24%; z-index: 3; rotate: -6deg; pointer-events: none; }
.pose img { width: 100%; height: auto; filter: drop-shadow(4px 0 0 var(--paper)) drop-shadow(-4px 0 0 var(--paper)) drop-shadow(0 -4px 0 var(--paper)) drop-shadow(0 4px 0 var(--paper)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25)); }
@keyframes giggle { 30% { transform: rotate(-1.4deg) translateY(-6px); } 70% { transform: rotate(1deg) translateY(-2px); } }

/* the other Katie Macks: a tray that drops from the top, like a cast list */
.others { position: fixed; inset: 0; z-index: 60; display: grid; align-items: start; background: rgba(21, 21, 15, 0.45); }
.others[hidden] { display: none; }
.others-in { background: var(--paper) url("/img/paper.webp") 0 0 / 512px; padding: var(--pad); padding-top: calc(var(--pad) * 0.8); border-bottom: 6px solid var(--orange); animation: drop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.05); }
@keyframes drop { from { transform: translateY(-100%); } }
.others-in header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 3px solid var(--ink); padding-top: 0.6rem; }
.others-in h2 { font-size: clamp(36px, 5vw, 72px); }
.others-in ol { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.others-in li { border-top: 1.5px solid var(--rule); padding-top: 0.7rem; }
.others-in li b { display: block; font-size: clamp(28px, 3vw, 44px); font-weight: 800; font-stretch: 75%; line-height: 1; }
.others-in li p { margin: 0.35rem 0 0.6rem; color: var(--ink-2); }
.others-in li a { font-weight: 700; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.others-in li.here b { color: var(--orange); }
.x { background: none; border: 0; font-weight: 700; cursor: pointer; padding: 0.6rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- the statement: it fills in as you scroll ---------- */
.statement { height: 260vh; }
.st-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: var(--pad); }
.st-text { font-size: clamp(44px, 7.2vw, 136px); line-height: 0.98; font-weight: 800; font-stretch: 82%; font-variation-settings: "opsz" 96; letter-spacing: -0.015em; margin: 0; max-width: 17ch; text-wrap: balance; }
.st-text .w { opacity: calc(0.16 + 0.84 * var(--f, 0)); transition: opacity 0.12s linear; }
.st-voice, .sound { display: inline-flex; align-items: center; gap: 0.7rem; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; font-size: 18px; min-height: 44px; }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.play svg { width: 16px; height: 16px; fill: var(--ink); margin-left: 3px; }
.playing .play svg { margin-left: 0; }

/* ---------- who she is ---------- */
.about { padding-block: calc(var(--pad) * 1.2); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) calc(var(--gap) * 1.5); align-items: end; }
.about-photo { position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.about-photo canvas, .about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(56px, 8.4vw, 150px); margin-bottom: 1.2rem; }
.about-text { font-size: clamp(21px, 1.9vw, 30px); line-height: 1.35; font-weight: 450; margin: 0; max-width: 32ch; white-space: pre-line; }
.quote { grid-column: 2; margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1.5px solid var(--rule); }
.quote p { margin: 0; font-size: 21px; font-weight: 500; }
.quote footer { margin-top: 0.5rem; font-weight: 700; }

/* ---------- the record, set like a program ---------- */
.record { padding-block: var(--pad); }
.lead { list-style: none; margin: 0; padding: 0; }
.lead > li { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 6fr) minmax(0, 1.6fr); gap: var(--gap); align-items: center; padding-block: 1rem; border-top: 1.5px solid var(--rule); }
.lead .bigw { font-size: clamp(44px, 5.6vw, 104px); color: var(--orange-ink); line-height: 0.9; }
.lead .t { font-size: clamp(22px, 2.1vw, 32px); font-weight: 700; line-height: 1.12; display: block; }
.lead .l { color: var(--ink-2); display: block; margin-top: 0.3rem; max-width: 60ch; }
.lead .thumb { aspect-ratio: 1; overflow: hidden; background: var(--rule-soft); justify-self: end; width: min(100%, 140px); }
.lead .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead a.t { text-decoration: none; }
.lead a.t:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.more { list-style: none; margin: 0; padding: 1rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); border-top: 3px solid var(--ink); }
.more li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule-soft); }
.more b { font-weight: 700; display: block; }
.more span { color: var(--ink-2); font-size: 16px; }

/* ---------- what she does: green flood, three rows, one frog ---------- */
.buckets { color: var(--paper); background: var(--green) url("/img/green.webp") 0 0 / 512px repeat; padding-block: var(--pad); }
.buckets .head { border-color: var(--paper); align-items: flex-end; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: 4rem minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap); align-items: baseline; padding-block: clamp(18px, 2.4vw, 36px); border-top: 1.5px solid rgba(243, 237, 224, 0.5); position: relative; }
.rows .num { font-weight: 700; font-size: 18px; color: var(--orange); }
.f-q.wide { grid-column: 1 / -1; }
.rows h3 { font-size: clamp(44px, 8.2vw, 156px); line-height: 0.86; overflow-wrap: anywhere; hyphens: manual; }
.rows p { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; max-width: 28ch; }
.frog { position: relative; flex: none; margin: -1.2rem 0 -0.4rem; width: clamp(130px, 14vw, 220px); display: grid; justify-items: center; gap: 0.3rem; z-index: 3; }
.frog button { all: unset; cursor: pointer; display: block; width: 100%; position: relative; -webkit-tap-highlight-color: transparent; }
.frog img { width: 100%; height: auto; transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); }
.frog img.croak { position: absolute; inset: 0; opacity: 0; }
.frog.on img.croak { opacity: 1; }
.frog.on img.rest { opacity: 0; }
.frog.on img { transform: scale(1.06) translateY(-4px); }
.bubble { position: absolute; top: -8%; left: -42%; background: var(--paper); color: var(--ink); font-weight: 800; font-stretch: 80%; font-size: clamp(20px, 2vw, 28px); padding: 0.3rem 0.8rem 0.4rem; border-radius: 999px 999px 999px 4px; opacity: 0; transform: translateY(8px) scale(0.8); transition: 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); pointer-events: none; }
.frog.on .bubble { opacity: 1; transform: none; }
.frog .play { position: absolute; right: 0; bottom: 8%; width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--green); }

/* ---------- right now ---------- */
.now { padding-block: var(--pad); }
.now ul { list-style: none; margin: 0; padding: 0; }
.now li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); padding-block: 1rem; border-top: 1.5px solid var(--rule); }
.now li b { font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; font-stretch: 80%; line-height: 1.02; }
.now li span { font-size: 19px; color: var(--ink-2); align-self: center; }

/* ---------- the close: orange flood ---------- */
.close { background: var(--orange) url("/img/orange.webp") 0 0 / 512px repeat; color: var(--ink); padding: calc(var(--pad) * 1.6) var(--pad); }
.close h2 { font-size: clamp(52px, 9vw, 176px); line-height: 0.88; max-width: 15ch; }
.close p { margin: 1.4rem 0 0; font-size: clamp(26px, 3vw, 48px); font-weight: 700; font-stretch: 85%; line-height: 1.05; color: var(--paper); }

/* ---------- the form ---------- */
.form { padding-block: var(--pad) calc(var(--pad) * 1.4); }
.form > .line { font-size: 20px; margin: 0.6rem 0 1.6rem; max-width: 40ch; }
.f-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 calc(var(--gap) * 1.5); }
.f-q { padding: 1.1rem 0 1.4rem; border-top: 1.5px solid var(--rule); }
.f-q.long { grid-column: 1 / -1; }
.f-q label, .f-q legend { display: block; font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; margin-bottom: 0.2rem; padding: 0; }
.f-q small { display: block; color: var(--ink-2); font-size: 16px; }
fieldset.f-q { margin: 0; border-left: 0; border-right: 0; border-bottom: 0; min-width: 0; }
.f-q input[type="text"], .f-q textarea { width: 100%; font: inherit; font-size: 20px; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: 0.5rem 0.1rem; border-radius: 0; outline: none; resize: vertical; }
.f-q textarea { min-height: 5.6rem; line-height: 1.4; background-image: repeating-linear-gradient(transparent 0 calc(1.4em - 1px), var(--rule-soft) calc(1.4em - 1px) 1.4em); background-position: 0 0.5rem; border-bottom-width: 2px; }
.f-q input:focus, .f-q textarea:focus { border-bottom-color: var(--orange); border-bottom-width: 3px; }
.picks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.7rem; }
.picks label { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; font-size: 18px; min-height: 44px; margin: 0; cursor: pointer; }
.picks input { appearance: none; width: 20px; height: 20px; border: 2px solid var(--ink); margin: 0; flex: none; display: grid; place-items: center; }
.picks input:checked { background: var(--orange); box-shadow: inset 0 0 0 3px var(--paper); }
.picks input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; }
.f-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-top: 1.4rem; border-top: 3px solid var(--ink); }
.f-end p { margin: 0; max-width: 40ch; font-weight: 500; }
.send { background: var(--ink); color: var(--paper); border: 0; padding: 0.7rem 1.6rem 0.8rem; font-weight: 800; font-stretch: 80%; font-size: clamp(26px, 2.6vw, 40px); cursor: pointer; min-height: 56px; transition: background 0.15s; }
.send:hover, .send:focus-visible { background: var(--orange); color: var(--ink); outline: none; }
.send[disabled] { opacity: 0.5; cursor: default; }
.f-msg { font-weight: 700; min-height: 1.5em; }
.f-done h2 { font-size: clamp(48px, 7vw, 120px); padding-block: 2rem; }

/* ---------- the foot ---------- */
.foot { background: var(--green) url("/img/green.webp") 0 0 / 512px; color: var(--paper); padding: var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem; }
.foot b { font-size: clamp(40px, 6vw, 96px); font-weight: 800; font-stretch: 75%; line-height: 0.85; display: block; }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-weight: 600; }
.foot a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --body: 17px; }
  .ed-bar { left: 8px; right: 8px; transform: none; max-width: none; flex-wrap: wrap; justify-content: center; }
  .ed-bar button { padding: 0.5rem 0.65rem; font-size: 15px; }
  .ed-state { width: 100%; text-align: center; padding: 0.2rem 0 0; font-size: 13px; }
  .ed-toast { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 110px); }
  .door { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; }
  .door-words { padding-bottom: 0; gap: 1.2rem; }
  .door-name { font-size: min(34vw, 190px); }
  .door-face { height: auto; min-height: 46svh; margin: 0; justify-content: flex-end; }
  .door-face img { height: 56svh; }
  .pose { width: 30%; right: 4%; bottom: 4%; }
  .door-lines { position: relative; z-index: 3; }
  .others-in ol { grid-template-columns: 1fr; }
  .statement { height: 220vh; }
  .st-text { font-size: clamp(40px, 11.2vw, 60px); }
  .about { grid-template-columns: 1fr; }
  .quote { grid-column: 1; }
  .lead > li { grid-template-columns: minmax(0, 1fr) 84px; }
  .lead .bigw { grid-column: 1 / -1; }
  .lead .thumb { width: 84px; grid-row: 2; grid-column: 2; }
  .more { grid-template-columns: 1fr; }
  .rows > li { grid-template-columns: 1fr; gap: 0.5rem; }
  .rows h3 { font-size: clamp(40px, 11.6vw, 64px); }
  .frog { width: 128px; margin: -0.6rem 0 -0.3rem; }
  .bubble { left: -55%; }
  .now li { grid-template-columns: 1fr; gap: 0.3rem; }
  .f-grid { grid-template-columns: 1fr; }
  .head .side { white-space: normal; text-align: right; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .door-name { font-size: 15vw; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows > li { grid-template-columns: 3rem minmax(0, 1fr); }
  .rows p { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .st-text .w { opacity: 1 !important; transition: none; }
  .statement { height: auto; }
  .st-pin { position: static; height: auto; min-height: 80svh; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- editing (only she sees this) ---------- */
.ed-bar { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 0.2rem; background: var(--ink); color: var(--paper); padding: 0.3rem; max-width: calc(100vw - 20px); overflow-x: auto; box-shadow: 0 8px 30px rgba(21, 21, 15, 0.3); }
.ed-bar button { background: none; border: 0; color: inherit; font-weight: 700; font-size: 16px; padding: 0.55rem 0.9rem; min-height: 44px; cursor: pointer; white-space: nowrap; }
.ed-bar button:hover { color: var(--orange); }
.ed-bar button[disabled] { opacity: 0.4; cursor: default; }
.ed-bar .ed-main { background: var(--orange); color: var(--ink); }
.ed-bar .ed-main:hover { color: var(--ink); background: var(--paper); }
.ed-bar [aria-pressed="true"] { color: var(--orange); }
.ed-bar .ed-send b { display: inline-block; min-width: 1.5em; background: var(--orange); color: var(--ink); margin-left: 0.3rem; }
.ed-state { font-size: 14px; padding: 0 0.7rem; opacity: 0.75; white-space: nowrap; }
.ed-toast { position: fixed; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px); transform: translate(-50%, 10px); z-index: 81; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 0.6rem 1rem; font-weight: 600; max-width: min(520px, calc(100vw - 24px)); opacity: 0; transition: 0.2s; pointer-events: none; text-align: center; }
.ed-toast.on { opacity: 1; transform: translate(-50%, 0); }
.is-editing [data-k] { outline: 1.5px dashed rgba(238, 106, 31, 0.75); outline-offset: 3px; cursor: text; border-radius: 1px; }
.is-editing [data-k]:focus { outline: 2.5px solid var(--orange); }
.is-editing [data-k]:empty::before { content: "Tap to write"; opacity: 0.45; }
.ed-chip { position: absolute; left: 12px; top: 12px; z-index: 5; background: var(--ink); color: var(--paper); border: 0; font-weight: 700; padding: 0.5rem 0.8rem; min-height: 40px; cursor: pointer; }
[data-img] { position: relative; }
.ed-snd { outline: 2px dashed var(--orange); outline-offset: 4px; }
.is-editing .empty-snd { display: inline-flex !important; }
.ed-sec { position: absolute; top: 8px; right: 8px; z-index: 6; display: flex; gap: 2px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; align-items: center; padding: 2px 2px 2px 10px; }
.ed-sec button, .ed-item button { background: none; border: 0; color: inherit; font-weight: 700; font-size: 14px; padding: 0.35rem 0.55rem; cursor: pointer; min-height: 34px; }
.ed-sec button:hover, .ed-item button:hover { color: var(--orange); }
.ed-item { display: inline-flex; gap: 2px; background: var(--ink); color: var(--paper); margin: 0.4rem 0 0; width: max-content; }
.ed-add { background: none; border: 2px dashed currentColor; font-weight: 700; padding: 0.6rem 1rem; margin: 0.8rem 0; cursor: pointer; min-height: 44px; }
.is-hidden-sec { opacity: 0.35; }
.draft-tag { display: none; }
.is-signed-in .draft-tag { display: inline-block; font: 700 12px/1 "Brico", sans-serif; font-stretch: 100%; background: var(--orange); color: var(--ink); padding: 3px 6px; margin-left: 0.5rem; vertical-align: middle; letter-spacing: 0; }
.ed-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(21, 21, 15, 0.4); display: none; align-items: end; justify-content: center; }
.ed-sheet.on { display: flex; }
.ed-sheet-in { background: var(--paper); width: min(560px, 100%); max-height: 86svh; overflow: auto; padding: 1.4rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); border-top: 6px solid var(--orange); display: grid; gap: 0.9rem; }
.ed-sheet-in h3 { font-size: 34px; }
.ed-p { margin: 0; color: var(--ink-2); }
.ed-sheet-in textarea { width: 100%; font: inherit; font-size: 18px; border: 2px solid var(--ink); background: #fff8; padding: 0.6rem; min-height: 6rem; }
.ed-sheet-in audio { width: 100%; }
.ed-pair { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ed-sheet-in button { background: none; border: 2px solid var(--ink); font-weight: 700; padding: 0.6rem 1rem; min-height: 46px; cursor: pointer; }
.ed-sheet-in .ed-main, .ed-sheet-in [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ed-rows, .ed-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.ed-rows li { display: flex; align-items: center; gap: 0.5rem; }
.ed-rows li span { flex: 1; font-weight: 600; }
.ed-rows button { padding: 0.3rem 0.7rem !important; min-height: 36px !important; }
.ed-rec { display: flex; align-items: center; gap: 1rem; }
.ed-rec-t { font-weight: 700; }
.nt-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 70; }
.nt-pin { position: absolute; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 16px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.nt-pin.is-sent { background: var(--paper); }
.nt-pin.is-done { background: var(--green); }
.nt-pin.has-reply { box-shadow: 0 0 0 4px var(--orange); }
.nt-card { position: absolute; width: 280px; background: var(--paper); border: 2px solid var(--ink); padding: 0.8rem; z-index: 72; box-shadow: 0 10px 30px rgba(21, 21, 15, 0.25); transform: translateY(8px); }
.nt-card p { margin: 0 0 0.6rem; }
.nt-who { font-weight: 700; font-size: 14px; }
.nt-reply { background: rgba(30, 74, 44, 0.1); padding: 0.5rem; }
.nt-card button { background: none; border: 2px solid var(--ink); font-weight: 700; padding: 0.35rem 0.7rem; cursor: pointer; }
.is-noting body, .is-noting main { cursor: crosshair; }
.just-changed main { animation: flash 1.4s ease; }
@keyframes flash { 0% { filter: none; } 15% { filter: brightness(1.06) saturate(1.2); } 100% { filter: none; } }
