/* pathery-df.css — Cognitive Defusion (DF). Layout and paint for this module only.
   Tokens, the tool shell's behaviour and type, the welcome block and the guide
   sheet all come from pathery-core.css. Nothing here duplicates them.
   Every rule is scoped [data-module="df"].
   Shell paint follows pathery-ca.css: the 430px card, full screen under 520px,
   and the same desktop shell from 521px so the shared welcome grid has room.
   The review screen draws the slider on the page. */

@media (prefers-reduced-motion:reduce){
[data-module="df"] *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ---- 1. Shell paint ------------------------------------------------------ */
body[data-module="df"]{color:var(--text);background:var(--bg);display:flex;align-items:center;
  padding:var(--space-4);-webkit-tap-highlight-color:transparent}
[data-module="df"] .shell{width:100%;max-width:430px;height:min(92dvh,880px);max-height:100%;
  background:var(--surface);border-radius:var(--radius-lg);display:flex;flex-direction:column;
  overflow:hidden;box-shadow:var(--shadow-lg)}
@media (max-width:520px){
body[data-module="df"]{padding:0;align-items:stretch}
[data-module="df"] .shell{height:100dvh;min-height:100dvh;max-height:100dvh;border-radius:0;
  box-shadow:none;max-width:none;overflow:hidden}
[data-module="df"] header{position:static;top:auto;z-index:20}
[data-module="df"] main{flex:1 1 auto;overflow-y:auto}
}
[data-module="df"] header{padding:var(--space-4) var(--space-5) var(--space-3);
  border-bottom:1px solid var(--divider);background:var(--surface-2)}
[data-module="df"] .module{color:var(--muted);letter-spacing:.08em;background:none;border:0;
  padding:0;font-family:inherit;line-height:inherit;-webkit-appearance:none;appearance:none}
@media (hover:hover){[data-module="df"] .module:hover{color:var(--text)}}
[data-module="df"] .track{background:var(--surface-offset)}
[data-module="df"] .fill{width:0;background:linear-gradient(90deg,var(--primary-soft),var(--primary))}
[data-module="df"] main{flex:1;padding:var(--space-5);gap:var(--space-4);overflow-y:auto}
[data-module="df"] main>*{flex-shrink:0}
[data-module="df"] button{color:inherit}
[data-module="df"] .kicker{color:var(--primary-text);margin-bottom:-8px}
/* A kicker that sits on a tinted panel uses the dark ink. --primary-text on
   --primary-tint is 3.64:1 and is not used. */
[data-module="df"] .on-tint .kicker,[data-module="df"] .gd-pane .kicker{color:var(--on-tint)}
[data-module="df"] .body{color:var(--muted)}
[data-module="df"] nav{padding:var(--space-4) var(--space-5);border-top:1px solid var(--divider);
  background:var(--surface-2)}
[data-module="df"] nav button{font-family:inherit;font-weight:400;padding:0 var(--space-5);
  cursor:pointer;border:1px solid transparent;touch-action:manipulation}
[data-module="df"] .back{background:var(--surface);border-color:var(--border);color:var(--muted);
  flex:0 0 96px}
[data-module="df"] .back:disabled{display:none}
[data-module="df"] .next{flex:1;background:var(--primary);color:var(--on-primary);font-weight:400;
  box-shadow:none}
[data-module="df"] .next.gated{visibility:hidden;pointer-events:none}
@media (hover:hover){[data-module="df"] .next:hover:not(.gated){background:var(--primary-press)}}
[data-module="df"] .next:active:not(.gated){background:var(--primary-press)}
[data-module="df"] footer{padding:var(--space-3) var(--space-5) var(--space-5);color:var(--faint);
  background:var(--surface-2)}
[data-module="df"] .flinks a{color:var(--muted)}
@media (hover:hover){[data-module="df"] .flinks a:hover{color:var(--text);border-bottom-color:var(--divider)}}
[data-module="df"] .fine{color:var(--faint)}
[data-module="df"] .homelink{color:inherit}
[data-module="df"] .wlead{color:var(--muted);font-family:inherit;font-weight:400}
[data-module="df"] .wrule{background:var(--divider)}
[data-module="df"] .waction{color:var(--muted)}
[data-module="df"] .metaline{color:var(--faint)}
[data-module="df"] .metaline .mitem svg{color:var(--faint)}
/* Back hover, copied from pathery-ca.css (the rule inside @media (hover:hover)). */
@media (hover:hover){
[data-module="df"] .back:hover{background:var(--surface-2)}
}

/* ---- 2. Choose: Values domain cards (pathery-vc.css .dgrid / .dq) -------- */
[data-module="df"] .dgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;grid-auto-rows:1fr}
[data-module="df"] .dq{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  min-height:112px;font-family:inherit;text-align:left;cursor:pointer;transition:all var(--ease);
  border-radius:var(--radius-lg);padding:14px;background:var(--surface);
  border:1px solid var(--border);color:var(--text)}
[data-module="df"] .dqi{display:flex}
[data-module="df"] .dqi svg{width:22px;height:22px;margin-bottom:6px;color:var(--primary)}
[data-module="df"] .dqt{display:flex;align-items:center;gap:5px;font-size:var(--text-base);font-weight:500;line-height:1.2}
[data-module="df"] .dqh{font-size:var(--text-xs);color:var(--faint);line-height:1.35}
@media (hover:hover){
[data-module="df"] .dq:hover{border-color:var(--primary-soft);background:var(--primary-tint)}
}
[data-module="df"] .dq:focus-visible{border-color:var(--primary-soft);background:var(--primary-tint)}

/* ---- 3. Play ------------------------------------------------------------- */
[data-module="df"] main[data-screen="play"]{padding:0;gap:0;overflow:hidden}
[data-module="df"] .playbody{flex:1;min-height:0;overflow-y:auto;padding:var(--space-5);
  display:flex;flex-direction:column;gap:var(--space-4)}
[data-module="df"] .thlist{display:flex;flex-direction:column;gap:var(--space-2);list-style:none}
[data-module="df"] .thitem{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 12px;
  border:1px solid var(--divider);border-radius:var(--radius-md);background:var(--surface-2)}
[data-module="df"] .thtext{flex:1;min-width:0;overflow-wrap:anywhere;font-size:var(--text-sm);
  line-height:1.4;color:var(--text)}
[data-module="df"] .thitem button{flex:none;min-width:48px;min-height:48px;padding:0 10px;
  border:0;background:none;color:var(--muted);font-family:inherit;font-size:var(--text-xs);
  cursor:pointer}
[data-module="df"] .composer{flex:none;display:flex;gap:var(--space-2);align-items:center;
  padding:var(--space-3) var(--space-5);border-top:1px solid var(--divider);background:var(--surface)}
[data-module="df"] .composer input{flex:1;min-width:0;min-height:48px;font-family:inherit;
  font-size:16px;line-height:1.4;color:var(--text);background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius-md);padding:10px 12px}
[data-module="df"] .composer input:focus{outline:none;border-color:var(--primary)}
[data-module="df"] .composer button{flex:none;min-height:48px;padding:0 var(--space-5);
  border-radius:var(--radius-full);border:1px solid var(--primary);background:var(--primary);
  color:var(--on-primary);font-family:inherit;font-size:var(--text-sm);cursor:pointer}
/* DF-SEND-14-V1, 6 Nov 2026. Send matches the nav buttons at --text-sm. The input stays 16px because iOS zooms any field under 16px. */
@media (hover:hover){[data-module="df"] .composer button:hover{background:var(--primary-press);border-color:var(--primary-press)}}
[data-module="df"] .composer button:active{background:var(--primary-press);border-color:var(--primary-press)}
/* DF-SEND-HOVER-V1, 6 Nov 2026. Send darkens on hover and press exactly as Review does (--primary-press). */

/* ---- 4. Review slider ---------------------------------------------------- */
[data-module="df"] .hint{margin:0;font-size:var(--text-sm);line-height:1.5;color:var(--muted)}
[data-module="df"] .thlist.ro .thitem{padding:8px 12px}
/* Slider paint copied from pathery-mw.css .slider, .slider.unset,
   .scaleends and .answernow. The handle stays visible. Unanswered is a
   pale ring and no fill; the script sets --pct, because an inline
   custom property beats the unset rule. */
[data-module="df"] .slider{-webkit-appearance:none;appearance:none;width:100%;height:32px;margin-top:var(--space-2);
  background:transparent;display:block;touch-action:pan-y}
[data-module="df"] .slider::-webkit-slider-runnable-track{height:6px;border-radius:3px;
  background:linear-gradient(to right,var(--primary) var(--pct),var(--surface-offset) var(--pct))}
[data-module="df"] .slider::-moz-range-track{height:6px;border-radius:3px;background:var(--surface-offset)}
[data-module="df"] .slider::-moz-range-progress{height:6px;border-radius:3px;background:var(--primary)}
[data-module="df"] .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;margin-top:-10px;
  border-radius:50%;background:var(--surface);border:2px solid var(--primary);box-shadow:var(--shadow-md);cursor:grab}
[data-module="df"] .slider::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:var(--surface);
  border:2px solid var(--primary);box-shadow:var(--shadow-md);cursor:grab}
[data-module="df"] .scaleends{display:flex;justify-content:space-between;margin-top:2px;font-size:var(--text-xs);color:var(--faint)}
[data-module="df"] .slider.unset{--pct:0%}
[data-module="df"] .slider.unset::-webkit-slider-thumb{border-color:var(--primary-soft);box-shadow:var(--shadow-sm)}
[data-module="df"] .slider.unset::-moz-range-thumb{border-color:var(--primary-soft);box-shadow:var(--shadow-sm)}
[data-module="df"] .slider.unset::-moz-range-progress{background:transparent}
[data-module="df"] .answernow{color:var(--muted);font-variant-numeric:tabular-nums}
[data-module="df"] .slider.unset + .scaleends .answernow{color:var(--faint);font-style:italic}
/* Review questions. Pills follow pathery-mw.css .idea and .ideas. The
   question line follows .psnum. The tip follows pathery-ba.css .tip.
   Three pills share the row. The slider's own top margin is dropped
   inside a question so the step gap is the space above it. */
[data-module="df"] .rv-step{display:flex;flex-direction:column;gap:var(--space-2)}
[data-module="df"] .rv-step .slider{margin-top:0}
[data-module="df"] .rv-q{font-size:var(--text-sm);font-weight:500;color:var(--text);letter-spacing:normal;text-transform:none;line-height:1.4}
[data-module="df"] .rv-pills{display:flex;flex-wrap:wrap;gap:6px}
[data-module="df"] .rv-pill{display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;
  padding:7px 10px;border-radius:var(--radius-full);border:1px solid var(--primary-soft);background:var(--surface);
  font-size:var(--text-xs);font-family:inherit;color:var(--text);white-space:nowrap;cursor:pointer;
  text-align:center;transition:all var(--ease)}
[data-module="df"] .rv-pill.on{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
[data-module="df"] .rv-more{align-self:flex-start;width:auto;background:none;border:0;font:inherit;font-size:var(--text-sm);
  color:var(--primary-dark);text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px;
  padding:0 4px;margin-top:-6px}
[data-module="df"] .rv-tip{display:block;margin-top:var(--space-1);font-size:var(--text-xs);font-style:italic;color:var(--faint);line-height:1.5}
@media (hover:hover){
[data-module="df"] .rv-pill:not(.on):hover{background:var(--primary-tint)}
[data-module="df"] .rv-pill.on:hover{background:var(--primary-dark);border-color:var(--primary-dark)}
}

/* ---- 5. From 521px: the desktop shell ----------------------------------- */
@media (min-width:521px){
body[data-module="df"]{display:block;padding:0;align-items:stretch;background:var(--surface-2)}
[data-module="df"] .shell{width:auto;max-width:none;height:auto;min-height:100dvh;
  border-radius:0;box-shadow:none;background:var(--surface-2);overflow:visible;display:flex;
  flex-direction:column}
[data-module="df"] header{position:sticky;top:0;z-index:30;background:var(--surface-2);
  border-bottom:1px solid var(--divider);padding:var(--space-4) 0 var(--space-3)}
[data-module="df"] .steplabel{margin-left:auto;color:var(--faint)}
[data-module="df"] main{gap:var(--space-5);background:var(--surface);
  padding:38px max(40px,calc((100% - 1000px) / 2)) 34px;overflow:visible}
[data-module="df"] nav{background:transparent;border-top:1px solid var(--divider);
  padding:var(--space-4) max(40px,calc((100% - 1000px) / 2))}
[data-module="df"] .next{flex:0 0 auto;min-width:210px}
[data-module="df"] footer{background:transparent;
  padding:var(--space-3) max(40px,calc((100% - 1000px) / 2)) var(--space-5)}
/* Welcome stays left, as Values does (pathery-vc.css, the welcome rule inside
   min-width 960px). Every other screen heading centres from 521px. The choose
   and review columns cap at 660px, the Values domain column. */
[data-module="df"] main[data-screen="welcome"]>.title{text-align:left}
[data-module="df"] main[data-screen="choose"]>.title,
[data-module="df"] main[data-screen="play"] .title,
[data-module="df"] main[data-screen="review"]>.kicker,
[data-module="df"] main[data-screen="review"]>.title,
[data-module="df"] main[data-screen="review"]>.hint{text-align:center}
[data-module="df"] main[data-screen="review"]{gap:var(--space-4)}
[data-module="df"] main[data-screen="choose"]>*,
[data-module="df"] main[data-screen="review"]>*{width:100%;max-width:660px;margin-left:auto;margin-right:auto}
[data-module="df"] main[data-screen="review"]>.rv-more{width:auto;align-self:center;text-align:center}
[data-module="df"] main[data-screen="play"]{overflow:hidden;display:flex;flex-direction:column;padding-top:38px;padding-bottom:0}
[data-module="df"] main[data-screen="play"] .playbody,
[data-module="df"] main[data-screen="play"] .composer{width:100%;max-width:430px;margin-left:auto;margin-right:auto}
}

/* ---- 6. Leaves on a stream ---------------------------------------------- */
/* Water, leaves and rings. Desktop (from 521px) paints the water edge to
   edge and lifts the field over it. The 8s rest under reduced motion has
   to beat the duration reset at the top of this file. */
[data-module="df"] main[data-leaf="1"]{position:relative;min-height:0;padding:0;gap:0;overflow:hidden;
  display:flex;flex-direction:column}
[data-module="df"] main[data-leaf="1"]>.stage{flex:1 1 auto;min-height:0;position:relative;overflow:hidden;
  --launch:22px;background:linear-gradient(0deg,#d9eedf 0,#e6f4e9 38%,#dff1e5 70%,#d0e9d9 100%)}
[data-module="df"] .waves{position:absolute;left:0;right:0;top:0;bottom:-46px;pointer-events:none;
  animation:df-wave 9s linear infinite}
[data-module="df"] .waves svg{position:absolute;left:-10%;width:120%;height:30px}
[data-module="df"] .mist{position:absolute;left:0;right:0;bottom:0;height:120px;pointer-events:none;z-index:3;
  background:linear-gradient(0deg,var(--surface-2) 0,rgba(251,250,248,0) 100%)}
[data-module="df"] .df-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[data-module="df"] .lf{position:absolute;bottom:var(--launch);left:0;z-index:2;width:var(--w,150px);
  isolation:isolate;opacity:0;will-change:transform,opacity;cursor:pointer;
  animation:df-rise var(--dur,26s) linear forwards;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  -webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
[data-module="df"] .lf .al,[data-module="df"] .lf .nd{display:block}
[data-module="df"] .sway{position:relative;display:block;width:var(--w,150px);padding:20px 22px 22px 26px;
  text-align:center;font-family:var(--font-display),'Noto Serif TC','PingFang HK',serif;
  font-style:italic;font-size:17px;line-height:1.22;color:var(--on-tint);
  transform-origin:50% 100%;overflow-wrap:anywhere;
  animation:df-sway 6s ease-in-out infinite alternate}
[data-module="df"] .pad{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;pointer-events:none}
[data-module="df"] .tapr{position:absolute;border-radius:50%;border:solid rgba(46,150,96,.62);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.95),0 0 0 1px rgba(255,255,255,.55);
  background:radial-gradient(closest-side,rgba(255,255,255,.6),rgba(255,255,255,0) 78%);
  z-index:1;opacity:0;pointer-events:none}
[data-module="df"] .stage.rm .lf{animation:df-still 8s ease forwards;animation-duration:8s!important;
  bottom:auto!important;top:var(--rest,40%)}
[data-module="df"] .stage.rm .sway,[data-module="df"] .stage.rm .waves{animation:none!important}
[data-module="df"] .stage.rm .tapr{display:none}
/* The duration reset above matches every element. These rules are more
   specific, so a leaf already on the water switches to the 8s rest as
   soon as the preference changes, without waiting for the script. */
@media (prefers-reduced-motion:reduce){
[data-module="df"] .lf{animation:df-still 8s ease forwards!important;animation-duration:8s!important;
  bottom:auto!important;top:var(--rest,40%)!important}
[data-module="df"] .sway,[data-module="df"] .waves{animation:none!important}
[data-module="df"] .tapr{display:none!important}
}
@keyframes df-wave{from{transform:translateY(0)}to{transform:translateY(-46px)}}
@keyframes df-rise{0%{transform:translate(0,0) scale(.72);opacity:0}5%{opacity:1}12%{transform:translate(calc(var(--dx, 0px) * .1),calc(var(--rise, 500px) * -.08)) scale(1)}97%{opacity:1}100%{transform:translate(var(--dx, 0px),calc(var(--rise, 500px) * -1)) scale(1);opacity:0}}
@keyframes df-sway{from{transform:translateX(-6px) rotate(-3deg)}to{transform:translateX(7px) rotate(3deg)}}
@keyframes df-still{0%{opacity:0}12%{opacity:1}80%{opacity:1}100%{opacity:0}}
@media (min-width:521px){
[data-module="df"] main[data-leaf="1"]{padding:0;overflow:hidden}
[data-module="df"] main[data-leaf="1"]>.stage{--launch:22px;
  background:linear-gradient(0deg,#d3ebdb 0,#e2f3e8 30%,#dff1e5 62%,#d0e9d9 100%)}
[data-module="df"] main[data-leaf="1"] .mist{height:150px;
  background:linear-gradient(0deg,rgba(255,255,255,.4) 0,rgba(255,255,255,0) 100%)}
}

/* ---- 7. Playing with the words ------------------------------------------ */
/* Hint type copied from pathery-mw.css .qhint, line 67:
   font-family, font-size, font-weight, font-style, colour, letter-spacing,
   text-transform. Scoped here under [data-module="df"]. */
[data-module="df"] main[data-words="1"]{position:relative;min-height:0;padding:0;gap:0;overflow:hidden;
  display:flex;flex-direction:column}
[data-module="df"] .wd-stage{position:relative;flex:1 1 auto;min-height:0;width:100%;
  background:var(--surface-2);overflow:hidden;touch-action:none;user-select:none;
  -webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
[data-module="df"] .wd-ghost{position:absolute;left:0;right:0;top:44%;text-align:center;pointer-events:none;
  font-family:var(--font-body);font-size:var(--text-xs);font-weight:400;font-style:italic;color:var(--faint);
  letter-spacing:0;text-transform:none;white-space:nowrap}
[data-module="df"] .wd-caret{position:absolute;left:0;top:0;width:2px;background:var(--primary);
  pointer-events:none;opacity:0;z-index:4;animation:wd-blink 1.1s steps(1) infinite}
[data-module="df"] .wd-caret.wd-on{opacity:1}
@keyframes wd-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){
[data-module="df"] .wd-caret{animation:none!important}
}
[data-module="df"] .wd-kb,[data-module="df"] .wd-reset{position:absolute;bottom:14px;width:48px;height:48px;
  border-radius:50%;border:1px solid var(--primary-soft);background:var(--surface);color:var(--primary);
  display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--shadow-md);
  z-index:8;padding:0;touch-action:manipulation}
[data-module="df"] .wd-kb svg,[data-module="df"] .wd-reset svg{width:22px;height:22px}
[data-module="df"] .wd-kb{left:var(--space-5);display:none}
[data-module="df"] .wd-reset{right:var(--space-5)}
[data-module="df"] .wd-reset.wd-off{opacity:0;visibility:hidden;pointer-events:none}
@media (hover:none) and (pointer:coarse){
[data-module="df"] .wd-kb{display:flex}
}
@media (hover:hover){
[data-module="df"] .wd-kb:hover,[data-module="df"] .wd-reset:hover{background:var(--primary-tint)}
}
[data-module="df"] .wd-cap{position:fixed;left:0;bottom:0;width:1px;height:1px;opacity:0;border:0;padding:0;
  font-size:16px;caret-color:transparent}
[data-module="df"] .wd-letter{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;
  transition:transform 300ms cubic-bezier(.16,1,.3,1);cursor:grab}
[data-module="df"] .wd-letter>i{position:absolute;left:-.3em;bottom:0;font-style:normal;font-family:var(--font-display);
  line-height:1.2;color:var(--text);white-space:pre;padding:0 .3em;
  transition:font-size 300ms cubic-bezier(.16,1,.3,1),color var(--ease)}
[data-module="df"] .wd-letter.wd-brushing{transition:transform 120ms linear}
[data-module="df"] .wd-letter.wd-brushing>i{transition:font-size 120ms linear,color var(--ease)}
[data-module="df"] .wd-letter.wd-drag,[data-module="df"] .wd-letter.wd-fly,[data-module="df"] .wd-letter.wd-hold,
[data-module="df"] .wd-letter.wd-pinch,[data-module="df"] .wd-letter.wd-fresh{transition:none}
[data-module="df"] .wd-letter.wd-drag>i,[data-module="df"] .wd-letter.wd-fly>i,[data-module="df"] .wd-letter.wd-hold>i,
[data-module="df"] .wd-letter.wd-pinch>i,[data-module="df"] .wd-letter.wd-fresh>i{transition:color var(--ease)}
[data-module="df"] .wd-letter.wd-drag{z-index:5;cursor:grabbing}
[data-module="df"] .wd-letter.wd-drag>i,[data-module="df"] .wd-letter.wd-hold>i{color:var(--primary-dark)}
[data-module="df"] .wd-letter.wd-hold{z-index:5}
[data-module="df"] .wd-layer{position:absolute;inset:0;transform-origin:50% 50%;
  transition:transform 300ms cubic-bezier(.16,1,.3,1)}
[data-module="df"] .wd-stage.wd-live .wd-layer,
[data-module="df"] .wd-stage.wd-live .wd-letter,
[data-module="df"] .wd-stage.wd-live .wd-letter>i{transition:none}
[data-module="df"] .wd-stage.wd-dragging .wd-letter:not(.wd-drag){transition:transform 180ms cubic-bezier(.16,1,.3,1)}
[data-module="df"] .wd-stage.wd-dragging .wd-letter:not(.wd-drag)>i{transition:font-size 180ms cubic-bezier(.16,1,.3,1),color var(--ease)}
[data-module="df"] .wd-brush{position:absolute;width:112px;height:112px;margin:-56px 0 0 -56px;border-radius:50%;
  border:2px solid var(--primary);background:color-mix(in srgb,var(--primary) 8%,transparent);
  pointer-events:none;opacity:0;z-index:6}
@media (min-width:521px){
[data-module="df"] main[data-words="1"]{padding:0;overflow:hidden}
[data-module="df"] .wd-kb{left:max(40px,calc((100% - 1000px) / 2))}
[data-module="df"] .wd-reset{right:max(40px,calc((100% - 1000px) / 2))}
}
/* ---- 6b. Leaves: the leaf that waits to be written on ------------------- */
/* One leaf sits on the water. Tapped empty, it opens the keyboard; with words on it, a tap sends them.
   The typing field is a hidden 16px input, the same approach as the Words artboard. The hint takes the
   .qhint type (pathery-mw.css line 67) in the leaf's own ink at 80%, which is 5.24:1 on the leaf. */
[data-module="df"] .lf-draft{position:absolute;left:50%;bottom:var(--launch);z-index:4;width:172px;margin-left:-86px;
  isolation:isolate;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  -webkit-touch-callout:none;-webkit-user-select:none;user-select:none;transition:opacity 400ms ease}
[data-module="df"] .lf-draft.gone{opacity:0;pointer-events:none}
[data-module="df"] .lf-draft .sway{width:172px;animation:none}
[data-module="df"] .lf-draft .dtext{display:none;white-space:pre-wrap}
[data-module="df"] .lf-draft.has .dtext{display:block}
[data-module="df"] .lf-draft .dhint{display:block;font-family:var(--font-body);font-size:var(--text-xs);font-weight:400;
  font-style:italic;line-height:1.35;color:var(--on-tint);opacity:.8;letter-spacing:0;text-transform:none}
[data-module="df"] .lf-draft.has .dhint{display:none}
[data-module="df"] .lf-draft.typing .dtext::after,
[data-module="df"] .lf-draft.typing:not(.has) .dhint::before{content:'';display:inline-block;width:2px;height:1em;
  margin:0 1px;vertical-align:-.15em;background:var(--primary-dark);animation:wd-blink 1.1s steps(1) infinite}
[data-module="df"] .lf-draft:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:var(--radius-md)}
[data-module="df"] .df-cap{position:fixed;left:0;bottom:0;width:1px;height:1px;opacity:0;border:0;padding:0;
  font-size:16px;caret-color:transparent}
@media (prefers-reduced-motion:reduce){
[data-module="df"] .lf-draft.typing .dtext::after,
[data-module="df"] .lf-draft.typing:not(.has) .dhint::before{animation:none!important}
}
/* TEMP-DF-DEBUG: the motion line. Remove with the readout. */
[data-module="df"] .wd-debug{position:absolute;left:0;right:0;top:0;z-index:7;padding:4px 8px;pointer-events:none;
  font-family:var(--font-body);font-size:var(--text-xs);font-weight:400;color:var(--faint);white-space:pre-wrap}

/* ---- 8. Silly voice ----------------------------------------------------- */
/* The stage fills the space between the header and the nav. The hint takes
   the .qhint type from pathery-mw.css. The record-again glyph uses the same
   left edge as .wd-kb, which is the left edge of Back. The chip row is 280px
   on a phone so the five chips wrap to three rows, and 640px from 521px. */
[data-module="df"] main[data-voice="1"]{position:relative;min-height:0;padding:0;gap:0;overflow:hidden;
  display:flex;flex-direction:column}
[data-module="df"] .sv-stage{position:relative;flex:1 1 auto;min-height:0;width:100%;
  background:var(--surface-2);overflow:hidden;display:flex;flex-direction:column}
[data-module="df"] .sv-mid{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column}
[data-module="df"] .sv-fit{margin:auto;width:100%;min-height:100%;flex:0 0 auto;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);
  padding:var(--space-5) var(--space-5) 76px}
[data-module="df"] .sv-hint{font-family:var(--font-body);font-size:var(--text-xs);font-weight:400;
  font-style:italic;color:var(--faint);letter-spacing:0;text-transform:none;text-align:center;margin:0}
[data-module="df"] .sv-mic{position:relative;width:96px;height:96px;border-radius:50%;border:0;
  background:var(--primary);color:var(--on-primary);display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:var(--shadow-md);padding:0;flex:none;transition:background var(--ease),transform var(--ease)}
[data-module="df"] .sv-mic:active{transform:scale(.97)}
[data-module="df"] .sv-mic > svg:not(.sv-ring){width:36px;height:36px}
[data-module="df"] .sv-mic .sv-ring{position:absolute;inset:-8px;width:calc(100% + 16px);height:calc(100% + 16px);
  transform:rotate(-90deg);pointer-events:none}
[data-module="df"] .sv-ring circle{fill:none;stroke-width:4}
[data-module="df"] .sv-ring-bg{stroke:var(--primary-soft)}
[data-module="df"] .sv-ring-fg{stroke:var(--primary);stroke-linecap:round}
[data-module="df"] .sv-count{font-family:var(--font-display);font-size:var(--text-xl);line-height:1;
  color:var(--text);min-height:1em;text-align:center}
[data-module="df"] .sv-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:64px;
  width:100%;max-width:340px}
[data-module="df"] .sv-wave i{display:block;width:5px;border-radius:3px;background:var(--primary-soft);
  min-height:4px;transition:background 80ms linear}
[data-module="df"] .sv-wave i.sv-on{background:var(--primary)}
[data-module="df"] .sv-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:280px}
[data-module="df"] .sv-chip{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px 0 12px;
  border-radius:var(--radius-full);border:1px solid var(--primary-soft);background:var(--surface);color:var(--text);
  font:inherit;font-size:var(--text-sm);cursor:pointer;
  transition:background var(--ease),color var(--ease),border-color var(--ease)}
[data-module="df"] .sv-chip svg{width:24px;height:24px;color:var(--primary)}
[data-module="df"] .sv-chip[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
[data-module="df"] .sv-chip[aria-pressed="true"] svg{color:var(--on-primary)}
[data-module="df"] .sv-note{width:100%;max-width:340px}
[data-module="df"] .sv-field{width:100%;min-height:48px;font-family:inherit;font-size:16px;color:var(--text);
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:10px 12px}
[data-module="df"] .sv-field:focus{outline:none;border-color:var(--primary)}
[data-module="df"] .sv-again{position:absolute;bottom:14px;left:var(--space-5);width:48px;height:48px;
  border-radius:50%;border:1px solid var(--primary-soft);background:var(--surface);color:var(--primary);
  display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--shadow-md);
  z-index:8;padding:0}
[data-module="df"] .sv-again svg{width:22px;height:22px}
[data-module="df"] .sv-card{width:100%;max-width:360px;border-radius:var(--radius-lg);background:var(--surface);
  border:1px solid var(--border);padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-3);box-sizing:border-box}
[data-module="df"] .sv-card h3{font-family:var(--font-display);font-weight:400;font-size:var(--text-xl);line-height:1.2;margin:0;color:var(--text)}
[data-module="df"] .sv-card p,[data-module="df"] .sv-card li{font-size:var(--text-sm);color:var(--muted);line-height:1.5;margin:0}
[data-module="df"] .sv-card ul{margin:0 0 0 1.1rem;display:flex;flex-direction:column;gap:6px;padding:0}
[data-module="df"] .sv-alt{align-self:flex-start;min-height:44px;padding:0 18px;border-radius:var(--radius-full);
  border:1px solid var(--primary);background:var(--surface);color:var(--primary-dark);font:inherit;font-size:var(--text-sm);cursor:pointer}
@media (hover:hover){
[data-module="df"] .sv-mic:hover{background:var(--primary-press)}
[data-module="df"] .sv-chip:hover{background:var(--primary-tint)}
[data-module="df"] .sv-chip[aria-pressed="true"]:hover{background:var(--primary-press);border-color:var(--primary-press);color:var(--on-primary)}
[data-module="df"] .sv-again:hover{background:var(--primary-tint)}
[data-module="df"] .sv-alt:hover{background:var(--primary-tint)}
}
@media (min-width:521px){
[data-module="df"] main[data-voice="1"]{padding:0;overflow:hidden}
[data-module="df"] .sv-chips{max-width:640px}
[data-module="df"] .sv-card{max-width:520px}
[data-module="df"] .sv-again{left:max(40px,calc((100% - 1000px) / 2))}
}

/* ---- 9. Name the story -------------------------------------------------- */
/* One column. The title is typed on the poster. Phone scrolls the column.
   From 521px and 700px tall the shell is the window, so the poster size
   comes from the stage height and the page does not scroll. */
[data-module="df"] main[data-story="1"]{position:relative;min-height:0;padding:0;gap:0;overflow:hidden;
  display:flex;flex-direction:column}
[data-module="df"] .ns-stage{position:relative;flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;
  background:var(--surface-2);display:flex;flex-direction:column}
[data-module="df"] .ns-col{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);
  flex:none;width:100%;margin-top:auto;margin-bottom:auto;padding:var(--space-4) var(--space-5);box-sizing:border-box}
[data-module="df"] .ns-col>*{flex:none}
[data-module="df"] .ns-hint{margin:0;font-family:var(--font-body);font-size:var(--text-xs);font-weight:400;
  font-style:italic;color:var(--faint);text-align:center}
[data-module="df"] .ns-car{position:relative;overflow-x:clip;overflow-y:visible;width:100%;touch-action:pan-y;padding:6px 0 14px}
@supports not (overflow-x:clip){
[data-module="df"] .ns-car{overflow:hidden}
}
[data-module="df"] .ns-trk{display:flex;gap:14px;transition:transform 380ms cubic-bezier(.16,1,.3,1)}
[data-module="df"] .ns-slide{position:relative;flex:none;opacity:.5;transform:scale(.9);
  transition:transform 380ms cubic-bezier(.16,1,.3,1),opacity 180ms}
[data-module="df"] .ns-slide.cur{opacity:1;transform:scale(1)}
[data-module="df"] .ns-pc{display:block;width:240px;height:360px;border-radius:6px;box-shadow:var(--shadow-lg)}
[data-module="df"] .ns-zone{position:absolute;left:5%;width:90%;top:43.209876%;height:33.950617%;
  background:transparent;border:0;border-radius:8px;display:none;padding:0;z-index:2}
[data-module="df"] .ns-zone.show{display:block}
[data-module="df"] .ns-zone::after{content:'';position:absolute;inset:0;border-radius:8px;pointer-events:none;opacity:.7;
  border:1.5px dashed color-mix(in srgb,var(--surface) 75%,transparent);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--text) 28%,transparent)}
[data-module="df"] .ns-title{position:absolute;z-index:4;margin:0;border:0;padding:0;resize:none;overflow:hidden;
  background:transparent;outline:none;text-align:center;line-height:1.06;white-space:pre-wrap;overflow-wrap:break-word;
  font-kerning:none;font-variant-ligatures:none;font-weight:400;color:transparent;caret-color:transparent;
  box-shadow:none;touch-action:auto}
[data-module="df"] .ns-slide.editing .ns-title{color:var(--ns-ink);caret-color:var(--ns-ink);text-shadow:var(--ns-shade)}
[data-module="df"] .ns-go{position:absolute;inset:0;z-index:3;margin:0;border:0;padding:0;background:transparent;cursor:pointer}
[data-module="df"] .ns-slide.cur .ns-go{display:none}
[data-module="df"] .ns-stage.ns-snap .ns-trk,
[data-module="df"] .ns-stage.ns-snap .ns-slide,
[data-module="df"] .ns-stage.ns-snap .ns-pc{transition:none!important}
[data-module="df"] .ns-arr{position:absolute;top:50%;margin-top:-24px;width:48px;height:48px;border-radius:50%;
  border:1px solid var(--primary-soft);background:color-mix(in srgb,var(--surface) 92%,transparent);
  color:var(--primary);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3;padding:0;
  transition:opacity 180ms,background var(--ease)}
[data-module="df"] .ns-arr svg{width:22px;height:22px}
[data-module="df"] .ns-arr.l{left:4px}
[data-module="df"] .ns-arr.r{right:4px}
[data-module="df"] .ns-name{position:relative;z-index:1;font-family:var(--font-display);font-size:var(--text-xl);line-height:1.1;text-align:center;
  transition:opacity 180ms}
[data-module="df"] .ns-dots{position:relative;z-index:1;display:flex;gap:8px;justify-content:center;transition:opacity 180ms}
[data-module="df"] .ns-dots button{width:10px;height:10px;border-radius:50%;border:0;background:var(--border);
  padding:0;cursor:pointer;position:relative}
[data-module="df"] .ns-dots button::before{content:'';position:absolute;inset:-12px -4px}
[data-module="df"] .ns-dots button[aria-current="true"]{background:var(--primary)}
[data-module="df"] .ns-hint,[data-module="df"] .dlrow{transition:opacity 180ms}
[data-module="df"] .dlrow{display:flex;width:100%}
[data-module="df"] .dlbtn,
[data-module="df"] .dlbtn:hover,
[data-module="df"] .dlbtn:active,
[data-module="df"] .dlbtn:focus,
[data-module="df"] .dlbtn:focus-visible,
[data-module="df"] .dlbtn[aria-disabled="true"]{color:var(--primary)}
[data-module="df"] .dlbtn[aria-disabled="true"]{opacity:.45;cursor:default}
[data-module="df"] .ns-fab{position:absolute;bottom:14px;right:max(40px,calc((100% - 1000px) / 2));
  width:48px;height:48px;border-radius:50%;border:1px solid var(--primary-soft);background:var(--surface);
  color:var(--primary);display:none;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:var(--shadow-md);z-index:8;padding:0;transition:opacity 180ms,background var(--ease)}
[data-module="df"] .ns-fab,
[data-module="df"] .ns-fab:hover,
[data-module="df"] .ns-fab:active,
[data-module="df"] .ns-fab:focus,
[data-module="df"] .ns-fab:focus-visible,
[data-module="df"] .ns-fab[aria-disabled="true"]{color:var(--primary)}
[data-module="df"] .ns-fab svg{width:22px;height:22px}
[data-module="df"] .ns-fab.busy svg{opacity:.4}
[data-module="df"] .ns-fab[aria-disabled="true"]{opacity:.45;cursor:default}
[data-module="df"] .shell[data-kb="1"] .ns-hint,
[data-module="df"] .shell[data-kb="1"] .ns-name,
[data-module="df"] .shell[data-kb="1"] .ns-dots,
[data-module="df"] .shell[data-kb="1"] .ns-arr,
[data-module="df"] .shell[data-kb="1"] .dlrow,
[data-module="df"] .shell[data-kb="1"] .dlbtn,
[data-module="df"] .shell[data-kb="1"] .ns-fab,
[data-module="df"] .shell[data-kb="1"] nav{opacity:0;pointer-events:none}
[data-module="df"] .shell[data-kb="1"] .ns-slide:not(.cur){opacity:0;pointer-events:none}
[data-module="df"] .shell[data-kb="1"] .ns-car{padding:0}
[data-module="df"] .shell[data-kb="1"] .ns-col{margin:0;padding:0}
[data-module="df"] .shell[data-kb="1"] .ns-stage{justify-content:center;align-items:center;overflow:hidden}
[data-module="df"] .shell[data-kb="1"] .ns-hint,
[data-module="df"] .shell[data-kb="1"] .ns-name,
[data-module="df"] .shell[data-kb="1"] .ns-dots,
[data-module="df"] .shell[data-kb="1"] .dlrow,
[data-module="df"] .shell[data-kb="1"] nav{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:0}
@media (hover:hover){
[data-module="df"] .ns-arr:hover{background:var(--primary-tint)}
[data-module="df"] .dlbtn:not([aria-disabled="true"]):hover{background:var(--primary-tint);color:var(--primary)}
[data-module="df"] .ns-fab:not([aria-disabled="true"]):hover{background:var(--primary-tint);color:var(--primary)}
}
@media (min-width:521px){
[data-module="df"] main[data-story="1"]{padding:0;overflow:hidden}
[data-module="df"] .ns-stage{overflow:hidden;align-items:center;justify-content:center}
[data-module="df"] .ns-col{max-width:1000px;padding:0 40px;margin:0}
[data-module="df"] .dlrow{display:none}
[data-module="df"] .ns-fab{display:flex}
}
/* DF-DRAW-V1, 15 Nov 2026. The "+ N other thoughts" line and its list.
   The grey not-reviewed swatch and bar already live in pathery-core.css
   as .rh-sw.rh-unrev and .rh-bar.rh-unrev, so they are not repeated here. */
[data-module="df"] .rh-stack{flex:1;min-width:0}
[data-module="df"] .rh-name.rh-na{font-style:italic;color:var(--faint)}
[data-module="df"] .rh-more{display:inline-block;margin-top:2px;font-family:inherit;font-size:var(--text-xs);line-height:1.45;color:var(--faint);background:none;border:0;padding:0;text-align:left}
[data-module="df"] button.rh-more{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px;text-decoration-color:var(--primary-soft);transition:color var(--ease),text-decoration-color var(--ease)}
[data-module="df"] button.rh-more:hover,[data-module="df"] button.rh-more[aria-expanded="true"]{color:var(--primary-dark);text-decoration-color:var(--primary)}
[data-module="df"] button.rh-more:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:3px}
[data-module="df"] .rh-others{margin-top:4px;padding-left:10px;border-left:2px solid var(--primary-soft);display:flex;flex-direction:column;gap:2px}
[data-module="df"] .rh-others .rh-val{flex:none}
[data-module="df"] .rh-cut p{margin:0}
@media (min-width:521px) and (min-height:700px){
html:has([data-module="df"] main[data-story="1"]),
body[data-module="df"]:has(main[data-story="1"]){height:100dvh;overflow:hidden}
[data-module="df"]:has(main[data-story="1"]) .shell{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
[data-module="df"] main[data-story="1"]{flex:1 1 0;min-height:0;overflow:hidden}
}
/* DF-GUIDE-NUMBERS-V1, 16 Nov 2026. The step numbers in the How it works guide sit on --primary-tint, so they take the
   dark ink for that tint (--on-tint), not --on-primary, which is white. */
[data-module="df"] .gd-pane ol .gd-blk::before{color:var(--on-tint)}
