/* Walk day (walk-1 blocks), phone first. Looks ported from R14-Day / R8-Card; tokens from components.md §0. */

/* Colors are tokens from themes.css (generated from the design system); none are written here. */
/* The day page uses Home's top bar (day-page.md "Shape", 2026-11-17); its own side of the bar is below. */

.dw-walk {
  --w-serif: "Newsreader", Georgia, serif; --w-ui: "Inter", system-ui, sans-serif;
  display: flex; flex-direction: column; gap: 16px;
  margin: 12px 4px 0; /* .wrap gives 16 px; 4 more makes the spec's 20 */
  font-family: var(--w-ui); color: var(--text);
  overflow-wrap: break-word;
  /* No phone tap flash anywhere on the page: a tap on a mark lit the whole verse span (cursor: pointer)
     as if the verse were picked. A picked verse has its own look (.dw-sel). */
  -webkit-tap-highlight-color: transparent;
}
.dw-walk button { font-family: var(--w-ui); }
.dw-walk button:focus-visible, .dw-walk .dw-spot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dw-walk [hidden] { display: none !important; }
.dw-read { font-family: var(--w-serif); }
.dw-label { font: 600 11px/1.4 var(--w-ui); letter-spacing: .1em; text-transform: uppercase; }
.dw-gold { color: var(--gold); }
.dw-red { color: var(--note-connections); }
.dw-text { color: var(--text); }

/* header */
.dw-head { display: flex; flex-direction: column; gap: 8px; }
.dw-title { margin: 0; font: 500 38px/1.05 var(--w-serif); }
.dw-range { font-size: 16px; color: var(--gold); font-weight: 500; }
/* A study's count of its other passages: a tap opens the full list under the gold line. */
.dw-range-more {
  font: inherit; color: inherit; background: none; border: 0; padding: 6px 0; margin: -6px 0; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.dw-range-list { font-size: 14px; line-height: 1.5; color: var(--muted); }
/* A study states its point under the title (guide study-1 section 2). */
.dw-point { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dw-point-p { margin: 0; }

/* page navigation (day-page.md "Shape", 2026-11-17): the top bar's page side, the Key, Back pill, resume card */
/* At the top of the page: "‹ All days" (muted Inter 14 / 500), nothing in the middle. */
.top.top-page { justify-content: flex-start; gap: 2px; padding: 0 6px 0 4px; transition: transform .2s ease; }
/* No will-change here: a transform makes the bar the box the menu sheet (fixed, inside the bar) is placed in. */
.top.top-page > .brand { display: none; }
.top.top-page > .top-end { margin-left: auto; flex: none; }
.dw-bar { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; height: 100%; }
.dw-bar-back {
  display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px 0 6px; flex: none;
  color: var(--muted); font: 500 14px var(--ui); text-decoration: none; border-radius: 10px;
}
.dw-bar-back .i { width: 18px; height: 18px; }
.dw-bar-back:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.dw-bar-where { display: none; flex: 1; min-width: 0; }
.dw-bar-sec { font: 500 15px/1.3 var(--read); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-bar-title { font: 400 12px/1.35 var(--ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-bar-progress { display: none; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold); }
/* Past the header: a back chevron only, the section and the title, a hairline and the gold progress line. */
.top.top-scrolled { border-bottom: 1px solid var(--line); }
.top.top-scrolled .dw-bar-back { width: 40px; padding: 0; justify-content: center; }
.top.top-scrolled .dw-bar-back-l { display: none; }
.top.top-scrolled .dw-bar-where, .top.top-scrolled .dw-bar-progress { display: block; }
/* Hides on a scroll down, back on a scroll up; always there while the menu is open. */
.top.top-hidden { transform: translateY(-100%); }
body.nav-open .top.top-hidden { transform: none; }
.rm .top.top-page { transition: none; }
@media (prefers-reduced-motion: reduce) { .top.top-page { transition: none; } }

/* The Key: opened from the menu's This day / This study group, a small panel over the reading */
.dw-key {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 23; width: calc(100% - 28px); max-width: 380px;
  max-height: 72vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  background: var(--raised); border: 1px solid var(--chip-border); border-radius: 14px; padding: 14px 16px;
}
.dw-key-row { display: flex; align-items: flex-start; gap: 10px; }
.dw-key-sw { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 4px; }
.dw-key-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dw-key-name { font-size: 14px; font-weight: 600; color: var(--text); }
.dw-key-line { font-size: 13px; line-height: 1.4; color: var(--muted); }
.dw-key-rule { height: 1px; background: var(--line-strong); }
.dw-key-s { flex: none; width: 56px; font: 400 15px/1.3 var(--w-serif); color: var(--text-soft); }
/* Samples drawn the way the marks are drawn in the reading */
.dw-key-word { color: var(--blue); border-bottom: 1.5px dotted var(--blue); }
.dw-key-thread { color: var(--red-text); border-bottom: 1.5px dashed var(--red); }
.dw-key-compare { border: 1px solid var(--gold); border-radius: 4px; padding: 1px 4px; color: var(--gold); font: 600 11px var(--w-ui); }
.dw-key-hinge { padding: 0 2px; background: color-mix(in srgb, var(--note-hinge) 8%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--note-hinge) 8%, transparent); }
.dw-key-kept { color: var(--gold); display: inline-flex; }
.dw-key-kept .i { width: 16px; height: 16px; }
.dw-key-note { color: var(--muted); display: inline-flex; } /* the same mark as .dw-nmark by a verse number */
.dw-key-note .i { width: 13px; height: 13px; }
.dw-backpill {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 21; white-space: nowrap;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--chip-border); background: var(--raised);
  color: var(--text); font-size: 13px; font-weight: 600; box-shadow: var(--float); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.dw-backpill .i { width: 16px; height: 16px; }
.dw-resume {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 22; width: calc(100% - 28px); max-width: 400px;
  display: flex; align-items: center; gap: 10px; background: var(--raised); border: 1px solid var(--chip-border); border-radius: 14px;
  padding: 10px 12px 10px 14px; font-size: 13px; font-weight: 500; color: var(--text);
  box-shadow: var(--float); transition: opacity .8s;
}
.dw-resume span { flex: 1; }
.dw-resume button {
  flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--chip-border); background: var(--ground);
  color: var(--gold); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.dw-resume.dw-fade { opacity: 0; }

/* focus box */
.dw-focus { background: var(--blue-wash); border: 1px solid var(--blue-wash-line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.dw-focus-l { color: var(--note-focus); }
.dw-focus-t { font: 500 23px/1.2 var(--w-serif); }
.dw-focus-p { margin: 0; font: 400 16.5px/1.5 var(--w-serif); color: var(--text-soft); }

/* section */
.dw-section { margin-top: 10px; }

/* note */
.dw-note {
  --k: var(--muted);
  display: flex; gap: 12px; border-radius: 12px; padding: 12px 14px 13px 0; overflow: hidden;
  background: color-mix(in srgb, var(--k) 7%, transparent);
}
.dw-stripe { width: 3px; align-self: stretch; border-radius: 0 2px 2px 0; background: var(--k); flex: none; }
.dw-note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.dw-note-body > .dw-label { color: var(--k); letter-spacing: .09em; }
.dw-note-p { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--note-body); }
/* note treatments (day-page.md "Note treatments"): the color stays the kind's, the shape follows the job */
.dw-note .dw-label { display: inline-flex; align-items: center; gap: 8px; }
.dw-panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.dw-note[data-treatment="panel"] { display: block; background: none; border-radius: 0; padding: 0; overflow: visible; }
.dw-note[data-treatment="panel"] + .dw-note { border-top: 1px solid var(--line); padding-top: 14px; }
/* plain, line and folded: no box and no fill; the tinted box (the hinge) keeps the NoteBlock above */
.dw-note[data-treatment="plain"], .dw-note[data-treatment="line"], .dw-note[data-treatment="folded"] { background: none; border-radius: 0; padding: 0; overflow: visible; }
.dw-note[data-treatment="line"], .dw-note[data-treatment="folded"] { gap: 14px; }
.dw-note[data-treatment="line"] { padding: 2px 0; }
.dw-note[data-treatment="line"] .dw-stripe, .dw-note[data-treatment="folded"] .dw-stripe { width: 2px; border-radius: 1px; }
/* one colored line per note: a note whose quote has a line has no outer line */
.dw-note.dw-has-q[data-treatment="tinted"] { padding-left: 14px; }
.dw-note.dw-has-q[data-treatment="line"], .dw-note.dw-has-q[data-treatment="folded"] { padding-left: 16px; }
/* folded: the title and the first two lines, then "Read the note" */
.dw-folded .dw-note-body > :nth-child(2) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dw-folded .dw-note-body > :nth-child(n+3):not(.dw-note-fold) { display: none; }
.dw-note-fold {
  align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted);
  font: 500 13px var(--w-ui); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.dw-note-fold .i { width: 16px; height: 16px; }
.dw-nref { white-space: nowrap; } /* "(Genesis 22:18)" in the note's own text, as board G draws it */
/* A reference that opens its verse (day-page.md, "Verse references inside a note", 2026-11-19): ref-link with a
   1 px solid underline, 2.5 px while the verse is open; the tap area reaches 44 px. One that opens nothing stays note-body. */
.dw-nref[role="button"] {
  position: relative; cursor: pointer; color: var(--ref-link);
  text-decoration: underline solid var(--ref-link); text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.dw-nref[role="button"]::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 44px; transform: translateY(-50%); }
.dw-nref[aria-expanded="true"] { text-decoration-thickness: 2.5px; }
/* The verse a note's reference opens: a card directly under the note (scripture-card, card-border, radius 12). */
.dw-nrc {
  background: var(--scripture-card); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 6px 6px 14px 14px; display: flex; flex-direction: column; gap: 4px;
}
.dw-nrc-head { display: flex; align-items: center; gap: 8px; }
.dw-nrc-ref { font: 500 12px var(--w-ui); color: var(--gold); }
.dw-nrc-sp { flex: 1; }
.dw-nrc-t { font: italic 400 16.5px/1.5 var(--w-serif); color: var(--text); padding-right: 10px; }
.dw-note[data-treatment="panel"] .dw-label::before,
.dw-note[data-treatment="plain"] .dw-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); flex: none; }
.dw-nq { margin-top: 3px; padding-left: 12px; border-left: 2px solid var(--k); display: flex; flex-direction: column; gap: 4px; }
.dw-nq-t { font: italic 400 16.5px/1.5 var(--w-serif); color: var(--text); }
.dw-nq-r, .dw-tq-r { font-size: 11.5px; color: var(--muted); font-family: var(--w-ui); }
.dw-iq-t { font-style: italic; }
.dw-iq-r { font: 400 11.5px var(--w-ui); color: var(--muted); font-style: normal; white-space: nowrap; }

/* run */
.dw-run { display: flex; flex-direction: column; gap: 10px; }
.dw-run-head { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.dw-run-title { font: 500 25px/1.15 var(--w-serif); } /* run-title */
.dw-run-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dw-run-ref { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.dw-chip { font: 600 10.5px/1.3 var(--w-ui); letter-spacing: .06em; color: var(--chip-text); border: 1px solid var(--chip-border); border-radius: 6px; padding: 2px 7px; }
.dw-run-count { font-size: 12px; color: var(--muted); }
.dw-summary { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-soft); }
.dw-pill {
  align-self: flex-start; min-height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid var(--chip-border);
  background: var(--scripture-card); color: var(--text); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.dw-fold-close {
  align-self: flex-start; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.dw-fold-open .i, .dw-fold-close .i { width: 16px; height: 16px; }
.i.dw-up { transform: rotate(180deg); }
.dw-scripture {
  background: var(--scripture-card); border: 1px solid var(--card-border); border-radius: 16px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.dw-para { font: 400 19px/1.62 var(--w-serif); color: var(--text); } /* verse-day */
.dw-vn {
  display: inline; background: none; border: 0; border-radius: 4px; padding: 0; margin: 0 3px 0 2px;
  color: var(--gold); font: 600 11px/1 var(--w-ui); vertical-align: 5px; cursor: pointer;
}
.dw-vn.dw-cmp { border: 1px solid var(--gold); padding: 1px 3px; }
.dw-star { color: var(--gold); margin: 0 3px 0 1px; }
.dw-star .i { width: 15px; height: 15px; vertical-align: 2px; }
.dw-nmark { color: var(--muted); margin-right: 2px; }
.dw-nmark .i { width: 13px; height: 13px; vertical-align: 3px; }
.dw-vt {
  cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; border-radius: 3px;
  text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
/* hinge verse: a soft wash in the hinge note's color, weaker than the selection wash (.12) */
.dw-vt.dw-hinge { /* weaker than the selection's .12 */
  background: color-mix(in srgb, var(--note-hinge) 8%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--note-hinge) 8%, transparent);
}
.dw-vt.dw-sel { text-decoration-line: underline; text-decoration-style: wavy; background: var(--selection); }
.dw-walk .dw-mk { display: inline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; -webkit-touch-callout: none; } /* .dw-walk: beats the Inter rule on buttons, so marks stay in the verse serif */
.dw-walk .dw-mk-word { color: var(--blue); border-bottom: 1.5px dotted var(--blue); }
.dw-walk .dw-mk-thread { color: var(--red-text); border-bottom: 1.5px dashed var(--red); }.dw-dot { display: inline-block; width: 18px; height: 18px; padding: 0; margin: 0 2px; border: 0; background: none; vertical-align: 2px; cursor: pointer; position: relative; }
.dw-dot::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 4px; background: var(--blue); }
.dw-dot-thread::after { background: var(--red); }
.dw-slot:empty { display: none; }

/* cards (R8) */
.dw-card { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.dw-card-label { font: 600 11px/1.4 var(--w-ui); letter-spacing: .09em; text-transform: uppercase; }
.dw-card-body { font-size: 14px; line-height: 1.5; }
.dw-card-body.dw-read { font-size: 16.5px; }
.dw-card-small { font-size: 11px; color: var(--muted); }
.dw-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dw-card-btns { display: flex; gap: 8px; align-items: center; flex: none; }
.dw-x.icon-btn { border: 1px solid var(--line-strong); border-radius: 10px; flex: none; }
.dw-card-word { background: var(--blue-wash); border: 1px solid var(--blue-wash-line); gap: 4px; }
.dw-word-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dw-orig { font: 400 22px/1.3 "Noto Serif", serif; color: var(--blue); }
.dw-orig.dw-heb { font-family: "Noto Serif Hebrew", serif; direction: rtl; }
.dw-word-tr { font-size: 13px; }
.dw-card-thread, .dw-card-info { background: var(--red-wash); border: 1px solid var(--red-wash-line); }
.dw-tq { display: flex; flex-direction: column; gap: 4px; padding-left: 10px; border-left: 2px solid var(--red); }
.dw-tq-t { font: 400 17px/1.5 var(--w-serif); }
.dw-card-compare { background: var(--panel); border: 1px solid var(--line-strong); padding: 10px 14px; }
.dw-cmp-grid { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 10px; }
.dw-cmp-l { color: var(--gold); font-size: 11px; font-weight: 600; padding-top: 3px; }
.dw-cmp-grid .dw-read { font-size: 16.5px; }
.dw-cmp-ph { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.dw-cmp-wait, .dw-cmp-na { color: var(--muted); font-size: 13px; padding-top: 2px; }
.dw-cmp-credits { display: flex; flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.dw-cmp-credits a { color: inherit; text-decoration: underline; }
.dw-card-note { background: var(--panel); border: 1px solid var(--gold-line); }
.dw-note-ta {
  width: 100%; min-height: 0; background: var(--ground); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text);
  font: 400 16px/1.5 var(--w-serif); padding: 8px 10px; resize: vertical;
}
.dw-save { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--gold); color: var(--ground); font-size: 12px; font-weight: 600; cursor: pointer; }
.dw-wordlist { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font: 400 16.5px var(--w-serif); }
.dw-wordlist .dw-mk { min-height: 32px; }
.dw-card-tool { background: transparent; border: 1px solid var(--gold); border-radius: 14px; padding: 14px 16px; gap: 10px; }
.dw-tc-p { margin: 0; font-size: 17px; line-height: 1.5; }
.dw-card-tool .dw-pill { min-height: 38px; border-radius: 19px; padding: 0 14px; font-size: 13px; }
.dw-inplace { background: var(--scripture-card); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.dw-ip-head { display: flex; gap: 8px; align-items: center; }
.dw-ip-ref { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.dw-ip-v { font-size: 17px; line-height: 1.55; }
.dw-ip-n { font: 600 10.5px var(--w-ui); color: var(--gold); vertical-align: 4px; margin-right: 3px; }

/* tool (tapsvg) */
.dw-tool { display: flex; flex-direction: column; gap: 10px; }
.dw-tool .asset { margin: 0; }
.dw-tool .asset .label { font: 600 11px/1.4 var(--w-ui); letter-spacing: .09em; color: var(--text); }
.dw-tool .asset .box { background: var(--visual-wash); border: 1px solid var(--visual-wash-line); border-radius: 16px; }
.dw-tsvg .dw-spot { cursor: pointer; outline: none; }
.dw-tsvg .dw-pressed > rect:first-child, .dw-tsvg rect.dw-pressed, .dw-tsvg .dw-spot:focus-visible > rect:first-child {
  stroke: var(--gold) !important; stroke-width: 2.5px; stroke-dasharray: none; /* !important: a drawing's own stroke color is an inline style now (theme-map.js) */
}

/* close */
.dw-close { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.dw-close-read, .dw-close-sit, .dw-close-tom, .dw-close-carry { display: flex; flex-direction: column; gap: 6px; }
.dw-close-p { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--text-soft); }
.dw-shelf { display: flex; flex-direction: column; gap: 8px; }
.dw-shelf[hidden] { display: none; }
.dw-shelf .dw-label { color: var(--muted); }
.dw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-chips:empty { display: none; }
.dw-kchip { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--ground); font-weight: 600; }
/* Day ending, "last page of a book": no boxes, one centered block between two short gold rules */
.dw-end { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 40px 6px 36px; text-align: center; }
.dw-end-rule { width: 40px; height: 2px; border-radius: 1px; background: var(--gold); flex: none; }
.dw-end .dw-close-sit, .dw-end .dw-close-carry { align-items: center; gap: 12px; }
.dw-sit { margin: 0; font: 500 24px/1.38 var(--w-serif); color: var(--text); }
.dw-carry-q { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dw-carry-q-t { font: italic 400 20px/1.55 var(--w-serif); color: var(--text); }
.dw-carry-q-r { font: 600 12px/1.4 var(--w-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.dw-tomorrow { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.dw-notice { font-size: 11.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* sheet G */
.dw-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 720px; margin: 0 auto;
  background: var(--sheet-fill); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line-strong); /* raised, radius-sheet */
  box-shadow: var(--sheet);
  padding: 8px 12px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px;
}
.dw-sh-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--chip-border); align-self: center; }
.dw-sh-top { display: flex; gap: 10px; align-items: flex-start; padding: 0 4px; }
.dw-sh-bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--gold); flex: none; }
.dw-sh-info { flex: 1; min-width: 0; }
.dw-sh-preview { font: 400 15.5px/1.4 var(--w-serif); color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-sh-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dw-sh-sub.dw-flash { color: var(--gold); }
.dw-sh-done { min-height: 36px; padding: 0 6px; border: 0; background: none; color: var(--gold); font-size: 13.5px; font-weight: 600; cursor: pointer; flex: none; }
.dw-tiles {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  margin-right: -12px; padding-right: 12px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.dw-tiles::-webkit-scrollbar { display: none; }
.dw-tile {
  flex: none; width: 76px; height: 58px; border-radius: 12px; border: 0; background: var(--tile); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.dw-tile-i { width: 20px; height: 20px; }
.dw-tile-keep { color: var(--gold); }
.dw-tile-keep.dw-on { background: var(--gold); color: var(--ground); }
.dw-tile-connection { color: var(--red-text); }
.dw-tile-words { color: var(--blue); }
/* "Study this" (design board Generate D): the last tile, gold border on keywash. */
.dw-tile-study { background: var(--keywash); border: 1px solid var(--gold); color: var(--gold); }
.dw-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* tool (html): the sealed frame sits in the same box as a tapsvg drawing. */
.dw-tool .asset .sub { font: 400 13px/1.4 var(--w-ui); color: var(--muted); }
.dw-tool .asset .dw-frame-box { background: var(--visual-ground); } /* over ".dw-tool .asset .box": the ground shows beside a 390 px frame */

