/* GetMoat's dock: a hexagon Play button, one place to ask, and what it said and made.
   Tokens only (see /dialogue.css). Light and dark keep today's metrics in the block before the media queries. */
.getmoat-dock{position:relative;z-index:8;display:flex;flex-direction:column;min-width:0;padding:6px clamp(20px,3.4vw,52px) 2px}
.getmoat-wave{position:absolute;left:clamp(20px,3.4vw,52px);bottom:calc(100% - 6px);width:min(calc(100% - 40px),720px);height:40px;pointer-events:none}
.getmoat-controls{display:flex;align-items:center;gap:14px;min-width:0}
/* The Play hexagon is GetMoat's mark: the accent with its ink (ink on the page in light and dark). */
.getmoat-play{position:relative;flex:none;display:grid;place-items:center;width:56px;height:64px;transition:transform .3s var(--ease)}
.getmoat-play-hex{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.getmoat-play-hex polygon{fill:var(--accent);transition:fill .3s}
.getmoat-play-glyph{position:relative;width:20px;height:20px}
.getmoat-play-glyph path{fill:var(--accent-ink)}
.getmoat-play-glyph path.is-stroke{fill:none;stroke:var(--accent-ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.getmoat-play:hover:not(:disabled){transform:scale(1.06)}
.getmoat-play:hover:not(:disabled) .getmoat-play-hex polygon{fill:var(--accent-hover)}
.getmoat-play:disabled{opacity:.35;cursor:default}
.getmoat-play[data-state=turn] .getmoat-play-hex polygon{fill:var(--doing)}
.getmoat-play[data-state=done] .getmoat-play-hex polygon{fill:var(--ok)}
.getmoat-play-label{min-width:98px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em))}
.getmoat-play-label small{display:block;margin-top:4px;font:var(--body-weight) 13px/1.3 var(--body);letter-spacing:0;color:var(--muted)}
/* The ask field is the DESIGN.md input: a faint fill, a hairline, and the focus line with its halo. */
.getmoat-ask{flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:56px;padding:0 6px 0 8px;border-radius:var(--radius);background:var(--fill);box-shadow:inset 0 0 0 1px var(--control-line);transition:background .2s,box-shadow .2s}
.getmoat-ask:focus-within{background:var(--fill-2);outline:1px solid var(--focus);outline-offset:-1px;box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 35%,transparent)}
.getmoat-ask input{flex:1 1 0;width:100%;min-width:0;height:100%;min-height:0;padding:0 10px;border-radius:0;background:transparent;box-shadow:none;font:var(--body-weight) 15px/1 var(--body)}
.getmoat-ask input:hover{background:transparent}
.getmoat-ask input:focus-visible{outline:none;background:transparent;box-shadow:none}
.getmoat-send{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:max(var(--radius-round),var(--radius));background:var(--accent);color:var(--accent-ink);box-shadow:var(--button-shadow);transition:background .2s,box-shadow .2s}
.getmoat-send:hover:not(:disabled){background:var(--accent-hover);box-shadow:var(--button-glow)}
.getmoat-send svg{width:20px;height:20px}
.getmoat-send:disabled{opacity:.35}
.getmoat-links{display:flex;gap:18px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));white-space:nowrap}
.getmoat-links button{min-height:40px;color:var(--muted);transition:color .2s}
.getmoat-links button:hover{color:var(--ink)}

/* The conversation floats above the dock on an opaque raised panel. Closing it clears it. */
.getmoat-sheet{position:absolute;z-index:20;left:clamp(12px,2.6vw,40px);bottom:calc(100% + 6px);width:min(760px,calc(100% - 2*clamp(12px,2.6vw,40px)));max-height:min(64vh,620px);overflow:auto;overscroll-behavior:contain;padding:20px 22px 16px;border:1px solid var(--ghost);border-radius:var(--radius-lg);background:var(--bg-raised);box-shadow:var(--shadow);scrollbar-width:thin;scrollbar-color:var(--ghost) transparent;overflow-wrap:anywhere}
.getmoat-sheet-head{position:sticky;top:-20px;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:-20px -22px 0;padding:20px 22px 6px;background:var(--bg-raised)}
.getmoat-sheet-head h2{margin:0;font:var(--display-weight) 24px/1 var(--display);letter-spacing:var(--display-tracking,-.02em)}
.getmoat-modes{display:flex;gap:14px}
.getmoat-modes button{min-height:36px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted);transition:color .2s}
.getmoat-modes button:hover:not(:disabled){color:var(--ink-2)}
.getmoat-modes button[aria-pressed=true]{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:6px}
.getmoat-modes button:disabled{cursor:default}
.getmoat-close{margin-left:auto;min-height:36px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
.getmoat-close:hover{color:var(--ink)}
.getmoat-sheet-links{display:none}
.getmoat-provider{margin:8px 0 0;font:var(--body-weight) 13px/1.45 var(--body);color:var(--muted)}
.getmoat-log{display:grid;gap:16px;margin:16px 0 8px}
.getmoat-log:empty{display:none}
.getmoat-message{min-width:0}
.getmoat-message-who{display:block;font:500 12px/1.2 var(--label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.getmoat-message p{margin:6px 0 0;white-space:pre-wrap;font:var(--body-weight) 16px/1.6 var(--body);color:var(--ink)}
/* The founder's own words sit in an accent-tinted bubble. */
.getmoat-message[data-role=user] p{display:inline-block;max-width:100%;padding:10px 14px;border:1px solid var(--accent-line);border-radius:var(--radius);background:var(--accent-wash);color:var(--ink-2)}
.getmoat-message>.text-action{margin-right:22px}
.getmoat-message>.getmoat-chip{margin-top:8px}
.getmoat-try{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px}
.getmoat-try button{min-height:38px;padding:8px 14px;border-radius:var(--radius-field);background:var(--fill);box-shadow:inset 0 0 0 1px var(--control-line);font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1.2 var(--body);color:var(--ink-2);transition:background .2s,box-shadow .2s,color .2s}
.getmoat-try button:hover{background:var(--fill-2);box-shadow:inset 0 0 0 1px var(--border-hover);color:var(--ink)}
.getmoat-sharing{display:flex;align-items:flex-start;gap:10px;margin:10px 0 4px;font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1.4 var(--body);letter-spacing:0;color:var(--ink-2);cursor:pointer}
.getmoat-sharing input{margin-top:1px}
.getmoat-sharing-note,.getmoat-notice,.getmoat-boundary{margin:6px 0 0;font:var(--body-weight) 13px/1.45 var(--body);color:var(--muted)}
.getmoat-notice:empty{display:none}
.getmoat-notice.is-error{color:var(--danger)}

/* What GetMoat made and the approvals it waits for, inside the step. */
.getmoat-decide{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.getmoat-decide-question{margin:0;max-width:600px;font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 17px/1.45 var(--body);color:var(--ink-2)}
.getmoat-decide-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 26px}
.getmoat-chips{display:flex;flex-wrap:wrap;gap:8px}
.getmoat-chip{display:inline-grid;gap:3px;padding:9px 16px 10px 14px;border-radius:var(--radius);background:var(--fill);box-shadow:inset 0 0 0 1px var(--control-line);text-align:left;font-size:15px;transition:background .2s,box-shadow .2s}
.getmoat-chip:hover{background:var(--fill-2);box-shadow:inset 0 0 0 1px var(--border-hover)}
.getmoat-chip-kind{font:var(--body-weight) 13px/1.1 var(--body);color:var(--muted)}
.getmoat-chip-title{font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.2 var(--body);color:var(--ink)}

/* Reader: the transcript and every document or chart, in a side sheet. */
.getmoat-reader{position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,100vw);max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid var(--ghost);background:var(--bg-raised);color:var(--ink);box-shadow:var(--shadow);display:flex;flex-direction:column}
.getmoat-reader:not([open]){display:none}
.getmoat-reader[open]{animation:getmoat-slide .4s var(--ease)}
.getmoat-reader::backdrop{background:color-mix(in srgb,var(--bg) 60%,transparent)}
html[data-scheme=light] .getmoat-reader::backdrop{background:color-mix(in srgb,var(--ink) 20%,transparent)}
@keyframes getmoat-slide{from{transform:translateX(40px);opacity:0}}
.getmoat-reader-top{display:flex;align-items:center;gap:20px;padding:18px clamp(20px,4vw,48px)}
.getmoat-reader-close{margin-left:auto;min-height:40px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
.getmoat-reader-close:hover{color:var(--ink)}
.getmoat-reader-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px clamp(20px,4vw,48px) 30px}
.getmoat-reader-title{margin:8px 0 10px;font:var(--display-weight) clamp(30px,3vw,44px)/1.08 var(--display);letter-spacing:var(--display-tracking,-.035em)}
.getmoat-reader-meta{margin:0;font-size:15px;color:var(--muted)}
.getmoat-reader-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;padding:14px clamp(20px,4vw,48px) 22px}
.getmoat-reader-foot:empty{display:none}
.getmoat-doc-section h3{margin:22px 0 8px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 18px/1.3 var(--body);letter-spacing:0}
.getmoat-doc-section p{margin:0 0 8px;font-size:16px;line-height:1.6;color:var(--ink-2)}
.getmoat-doc-section ul{display:grid;gap:6px;margin:0;padding-left:20px;font-size:16px;line-height:1.55;color:var(--ink-2)}
.getmoat-made-list,.getmoat-transcript-list{list-style:none;display:grid;gap:14px;margin:18px 0;padding:0}
.getmoat-made-list button{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;min-height:40px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 17px/1.3 var(--body);text-align:left}
.getmoat-made-list button:hover{text-decoration:underline;text-decoration-color:var(--link-underline);text-underline-offset:5px}
.getmoat-transcript-list li{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;font-size:16px;line-height:1.55}
.getmoat-transcript-who{font:500 12px/2.1 var(--label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.getmoat-transcript-list li[data-who=getmoat] span:last-child{font-weight:var(--button-weight,calc(var(--body-weight)*2 - 300))}
/* Diagrams and charts read the tokens, so an exported copy keeps its own print colours. */
.getmoat-diagram-figure{margin:22px 0 0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.getmoat-diagram{display:block;max-width:none;height:auto}
.getmoat-diagram-node rect{fill:var(--fill);stroke:var(--control-line);stroke-width:1}
.getmoat-diagram-name{fill:var(--ink);font-family:var(--body)}
.getmoat-diagram-sub,.getmoat-diagram-verb{fill:var(--muted);font-family:var(--body)}
.getmoat-diagram-link{stroke:var(--muted)}
.getmoat-diagram-head{fill:var(--muted)}
.getmoat-chart{display:grid;gap:12px;margin-top:20px}
.getmoat-chart-row{display:grid;grid-template-columns:minmax(90px,140px) minmax(0,1fr) 64px;align-items:center;gap:14px}
.getmoat-chart-label{font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.2 var(--body)}
.getmoat-chart-track{height:12px;border-radius:var(--radius-sm);background:var(--cell-fill);overflow:hidden}
.getmoat-chart-bar{display:block;height:100%;width:calc(var(--share,0) * 100%);min-width:4px;border-radius:inherit;background:var(--accent)}
.getmoat-chart-value{font:500 14px/1 var(--label);color:var(--muted);text-align:right}

/* The badge, answering visitors. A private preview built from saved records. */
.badge-talk{display:grid;gap:14px;max-width:700px;margin:8px 0 18px}
.badge-talk-head{min-width:0}
.badge-talk-questions{display:flex;flex-wrap:wrap;gap:6px}
.badge-talk-question{min-height:38px;padding:8px 14px;border-radius:max(var(--radius-round),var(--radius));background:var(--fill);box-shadow:inset 0 0 0 1px var(--control-line);font:calc(var(--button-weight,calc(var(--body-weight)*2 - 300)) - 100) 14px/1.2 var(--body);color:var(--ink-2);transition:background .2s,color .2s,box-shadow .2s}
.badge-talk-question:hover{background:var(--fill-2);box-shadow:inset 0 0 0 1px var(--border-hover)}
.badge-talk-question[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);box-shadow:none}
.badge-talk-visitor{margin:2px 0 0;font:var(--body-weight) 15px/1.4 var(--body);color:var(--muted)}
.badge-talk-answer{margin:0;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) clamp(18px,1.6vw,22px)/1.45 var(--body);letter-spacing:0}
.badge-talk-form{display:flex;align-items:center;gap:12px;max-width:560px}
.badge-talk-form input{min-height:46px}
.badge-talk-note{margin:0;font:var(--body-weight) 13px/1.45 var(--body);color:var(--muted)}

/* Light and dark: today's metrics. Zero-specificity theme scope before the media queries, so those still apply. */
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-play:hover:not(:disabled) .getmoat-play-hex polygon{fill:var(--accent)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-play-label{font-size:17px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-play-label small{font-size:14px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-ask{border-radius:var(--radius-field)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-ask:focus-within{background:var(--fill-2);outline:2px solid var(--ink);outline-offset:2px;box-shadow:inset 0 0 0 1px var(--control-line)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-ask input{font-weight:600;font-size:17px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-send:hover:not(:disabled){background:var(--accent)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.getmoat-links,.getmoat-modes button,.getmoat-close,.getmoat-reader-close){font-size:15px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-sheet{border:0;background:var(--bg)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-sheet-head{background:var(--bg)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-sheet-head h2{font-size:22px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-modes button[aria-pressed=true]{text-decoration:none}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.getmoat-provider,.getmoat-sharing-note,.getmoat-notice,.getmoat-boundary,.badge-talk-note){font-size:14px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.getmoat-message-who,.getmoat-transcript-who){font-size:14px;letter-spacing:.045em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-transcript-who{line-height:1.9}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-message p{font:600 18px/1.45 var(--body)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-message[data-role=user] p{display:block;padding:0;border:0;border-radius:0;background:none;font-weight:500;color:var(--muted)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.getmoat-try button,.getmoat-sharing){font-size:15px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-sharing{color:var(--ink)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-decide-question{font-size:18px;line-height:1.4}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.getmoat-chip-kind){font-size:14px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-reader{border-left:0;background:var(--bg)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-reader-title{line-height:1.05}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-doc-section h3{font-size:19px;line-height:1.25;letter-spacing:-.01em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-made-list button{font-size:19px;line-height:1.25}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-diagram-node rect{stroke:none}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.getmoat-diagram-link){stroke:var(--ink)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-diagram-head{fill:var(--ink)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-chart-label{font-size:16px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-chart-bar{background:var(--ink)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .badge-talk-question{font-size:15px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .badge-talk-answer{font-size:clamp(19px,1.7vw,24px);line-height:1.35;letter-spacing:-.01em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-reader::backdrop{background:color-mix(in srgb,var(--ink) 20%,transparent)}
:where(html[data-theme=dark],html[data-theme=retro]) .getmoat-reader::backdrop{background:color-mix(in srgb,var(--bg) 20%,transparent)}

@media(max-width:900px){
  .getmoat-dock{padding:4px 12px 2px}
  .getmoat-wave{left:12px;width:calc(100% - 24px);height:30px}
  .getmoat-play{width:48px;height:54px}
  .getmoat-play-label,.getmoat-links{display:none}
  .getmoat-ask{height:50px}
  .getmoat-sheet{left:8px;width:calc(100% - 16px);max-height:min(70vh,560px);padding:16px 16px 12px}
  .getmoat-sheet-head{top:-16px;margin:-16px -16px 0;padding:16px 16px 6px}
  .getmoat-sheet-links{display:flex;gap:16px;flex-basis:100%}
  .getmoat-sheet-links button{min-height:36px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted)}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-sheet-links button{font-size:15px}
  .getmoat-message p{font-size:16px}
  :where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-message p{font-size:17px}
}
@media(max-width:480px){
  .getmoat-chart-row{grid-template-columns:minmax(0,1fr) 56px;gap:6px 10px}
  .getmoat-chart-track{grid-column:1/-1;grid-row:2}
  .getmoat-transcript-list li{grid-template-columns:minmax(0,1fr);gap:2px}
  .badge-talk-form{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.getmoat-dock *,.getmoat-reader{animation:none!important;transition:none!important}}
