  :root{
    --bg:#07090f;
    --panel:#10131d;
    --panel2:#151927;
    --line:#232839;
    --ink:#f2f4fa;
    --muted:#9aa3b8;
    --accent:#3d9bff;
    --danger:#ff5d73;
    --tile:84px;
    color-scheme: dark;
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Yu Gothic UI",system-ui,sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  button,select,input,textarea{font:inherit}
  button{cursor:pointer}
  .wrap{max-width:1180px;margin:0 auto;padding:12px 12px 40px}

  /* ---------- controls ---------- */
  .controls{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:14px;
    padding:12px;
    display:grid;
    gap:10px;
    margin-bottom:12px;
  }
  .addrow{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start}
  @media (max-width:640px){.addrow{grid-template-columns:1fr auto}}
  /* 追記173 (Posaki 2026-12-03): the add field grows too —
     Posaki's "下のこれ、もっと大きく" covered the whole
     bottom area, superseding the earlier keep-as-is call
     for this field (56px/13.5px -> 64px/15px). */
  textarea#bulkInput{
    width:100%;min-height:64px;resize:vertical;
    background:var(--panel2);color:var(--ink);
    border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:15px;line-height:1.55;
  }
  textarea#bulkInput::placeholder{color:#5f6880}
  .btn{
    appearance:none;border:1px solid var(--line);background:var(--panel2);color:var(--ink);
    border-radius:10px;padding:10px 16px;min-height:44px;font-weight:700;font-size:14px;
    display:inline-flex;align-items:center;gap:7px;justify-content:center;white-space:nowrap;
  }
  .btn:hover{border-color:#3a4160}
  .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
  .btn.primary:hover{background:#2f8bf0}
  .btn.danger{color:#ffb3c0}
  .btn.danger.confirming{background:var(--danger);border-color:var(--danger);color:#fff}
  .sharerow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .sharerow .note{font-size:12.5px;color:var(--muted);margin:0}
  .btn[hidden]{display:none}
  .btn:disabled{opacity:.55;cursor:wait}
  .makerBadge{
    background:#12233d;border:1px solid #2b4a75;color:#cfe6ff;border-radius:12px;
    padding:10px 14px;font-size:13.5px;font-weight:700;margin-bottom:12px;
  }
  .makerBadge[hidden]{display:none}
  .siteFooter{max-width:1180px;margin:0 auto;padding:28px 12px 44px;text-align:center;color:var(--muted);font-size:13.5px;line-height:1.7}
  .siteFooter a{color:var(--accent);font-weight:700;text-decoration:none}
  .siteFooter a:hover{text-decoration:underline}
  .publish{margin:16px 0 4px;text-align:center}
  .publishNote{font-size:12.5px;color:var(--muted);margin:8px 0 0}
  /* ---------- create-your-own panel （追記40) ----------
     Making your own list gets its own card, visually apart from
     everything else on the page: an accent-outlined panel with a
     heading and the three facts a first-time visitor needs BEFORE
     pressing — this list stays, the new one starts empty, the URL
     will be new. It deliberately does NOT look like the reset
     cluster (a red danger button in the bottom bar), and its last
     line says so in words, because "作る" and "リセット" were
     being read as the same kind of action （追記39/40). */
  /* 追記51: the panel is compacted — tighter padding, smaller
     type, a shorter button — and its wording trimmed to match,
     so the whole card takes far less vertical room while the
     four facts (stays / empty / new URL / not リセット) remain.
     （追記69: the three facts were later replaced by the numbered
     flow below; the not-リセット note remains.) */
  .makePanel{
    border:2px solid var(--accent);border-radius:12px;
    background:var(--panel2);padding:11px 11px;
  }
  .makePanel[hidden]{display:none}
  .makePanelTitle{font-size:13.5px;font-weight:900;margin:0 0 8px}
  /* 追記69: the three ✓ facts became a numbered flow — ① press
     the create button and arrange the works, ② save the image,
     ③ post to X (the hashtags are already in the post text).
     No arrow elements: the ①②③ numbers alone carry the order,
     so there is nothing extra to drift out of alignment. The
     steps sit in one flex row of equal cards, and under the
     site's usual 640px breakpoint they stack into a single
     column instead of wrapping halfway. */
  /* 追記172 (Posaki 2026-12-03): the equal thirds go —
     ① and ③ hug their text and ② takes whatever width is
     left, so ②'s long sentence stays on one line at PC
     widths; the type grows with the room that frees up
     (text 14px -> 15px, numbers 15px -> 17px). At widths
     where the three texts together simply exceed the panel
     (~1280px and below) the steps shrink and wrap again —
     measured: all three are one line at 1440px and above. */
  .makeFlow{margin:0 0 11px;padding:0;list-style:none;display:flex;gap:6px}
  .makeFlowStep{flex:0 1 auto;min-width:0;display:flex;gap:5px;align-items:flex-start;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:7px 9px}
  .makeFlowStep:nth-child(2){flex:1 1 auto}
  .makeFlowNum{flex:0 0 auto;font-size:17px;font-weight:900;line-height:1.4;color:var(--accent)}
  .makeFlowTxt{font-size:15px;line-height:1.5;min-width:0}
  /* 追記183 (Posaki 2026-12-03): on phones the panel slims
     with the rest of the top area — the step text drops to
     14px (PC keeps the 追記172 15px/17px), the step numbers
     follow at 15px, and the paddings and gaps tighten. The
     layout (stacked steps, same words) is unchanged. */
  @media (max-width:640px){.makeFlow{flex-direction:column}.makeFlow{gap:2px;margin-bottom:8px}.makeFlowStep{flex:0 0 auto;padding:4px 7px}.makeFlowTxt{font-size:14px;line-height:1.4}.makeFlowNum{font-size:15px}.makePanel{padding:8px 9px}.makePanelTitle{margin-bottom:6px}}
  /* 追記184 (Posaki 2026-12-03): on PC widths the three steps
     go back to equal thirds — 追記172's content sizing (①③ hug
     their text, ② takes the rest) left ③ looking pushed into
     the right edge of the panel. flex:1 1 0 on all three steps
     (the nth-child(2) rule is restated so the base rule's
     higher specificity cannot keep ② on flex-basis:auto).
     Scoped to min-width:641px so the phone block above — and
     the phone sizes the phonetop line is tuning — stay exactly
     as they are; the base rules remain the sub-641px default. */
  @media (min-width:641px){.makeFlowStep{flex:1 1 0}.makeFlowStep:nth-child(2){flex:1 1 0}}
  .makePanelBtn{width:100%;min-height:38px;font-size:13.5px}
  /* 追記183: on phones the create button keeps a full 44px
     tap height while everything around it slims down. */
  @media (max-width:640px){.makePanelBtn{min-height:44px}}
  /* Posaki's call （追記40): the create-your-own button is yellow
     with black text, so it stands out from the theme-colored
     primary buttons. The hover state keeps the same pairing. */
  #makeOwnBtn{background:#ffd400;border-color:#ffd400;color:#000}
  #makeOwnBtn:hover{background:#ffd400;border-color:#ffd400;color:#000}
  /* 追記170 (Posaki 2026-12-03): the .makePanelNote rule is
     gone with its element — the panel ends at the button. */
  /* ---------- flow pulse guide （追記81) ----------
     The three flow buttons (① create your own, ② save-and-copy,
     ③ post to X) take turns glowing: exactly one — the first one
     not yet pressed — breathes with a soft blue halo, and the
     other two sit dimmed (still clickable, never disabled). The
     classes are toggled by the guide script at the end of the
     body; the stage itself is derived from the app's own state
     (maker mode / held key / published-baseline signature), so a
     reload lands back on the natural stage. Reduced-motion
     readers keep the dimming but lose the breathing. */
  .flowPulse{animation:flowPulseGlow 1.6s ease-in-out infinite}
  @keyframes flowPulseGlow{
    0%,100%{box-shadow:0 0 0 0 rgba(61,155,255,0),0 0 0 0 rgba(61,155,255,0)}
    50%{box-shadow:0 0 0 5px rgba(61,155,255,.35),0 0 16px 5px rgba(61,155,255,.5)}
  }
  .flowDim{opacity:.45}
  @media (prefers-reduced-motion: reduce){
    .flowPulse{animation:none}
  }
  /* 追記107 (branch): the button-sized sibling of .flowPulse —
     a blue ring that breathes on the button the reader is
     meant to touch next (the draggable prep button while
     its sub-step is current, the entry button while the
     receive operation waits, the paste button while the
     paste box is offered). It is a separate class so the
     step markers' own breathing never has to share state
     with a button. Reduced-motion readers keep a steady
     blue outline instead of the breathing. */
  .bulkBtnPulse{animation:bulkBtnPulseGlow 1.6s ease-in-out infinite}
  @keyframes bulkBtnPulseGlow{
    0%,100%{box-shadow:0 0 0 0 rgba(61,155,255,0),0 0 0 0 rgba(61,155,255,0)}
    50%{box-shadow:0 0 0 5px rgba(61,155,255,.55),0 0 18px 6px rgba(61,155,255,.65)}
  }
  @media (prefers-reduced-motion: reduce){
    .bulkBtnPulse{animation:none;box-shadow:0 0 0 3px rgba(61,155,255,.8)}
  }
  /* ---------- sticky action bar （追記38) ----------
     One compact bar pinned to the bottom of the screen holding
     the board's main actions. --abarH is the bar's reserved
     height: the pool tray sticks above it, the page keeps that
     much room at the bottom, and the toast floats above it.
     Phones wrap the buttons onto two rows, hence the taller
     reservation there. The floating gauges live at the TOP of
     the screen, so nothing competes for this edge.
     追記51: compacted — shorter buttons, tighter padding and
     gaps, smaller gate — so the two phone rows take noticeably
     less of the screen; every action and label is unchanged.
     追記170 (Posaki 2026-12-03): reversed in size only — the
     bar's buttons, gates and the size slider grow for easier
     tapping, and --abarH follows the taller bar. The add bar
     and the pool tray keep their existing sizes.
     追記171: the constants below are only the pre-script
     fallback. The bar's real height now depends on the
     window width and on the bar's current contents (the
     enlarged buttons wrap at ~1280px; phones stack rows),
     so syncAbarH() in the app script measures the bar and
     rewrites --abarH to the measured height — the same
     arrangement as --addH below. */
  /* 追記173: the pre-script fallbacks rise with the
     追記173 bar enlargement below; syncAbarH replaces
     them with the measured height at boot regardless.
     追記181: the phone fallback follows the slimmed
     phone bar down (300px -> 220px; measured 219px). */
  :root{--abarH:72px}
  @media (max-width:640px){:root{--abarH:220px}}
  /* 追記58: the slot the sticky add bar reserves above the
     action bar — its own height (78px / 74px on phones) plus
     its bottom margin and a breathing gap. The pool tray's
     sticky offset grows by this much so the tray rides above
     the add bar instead of covering it.
     追記138 (branch): these constants are only the value in
     force before the script runs. The import unit lives
     INSIDE the add bar, so the bar's real height is
     ~136px even with the unit folded and far more with it
     open — a fixed 96px slot left the bar standing over
     the tray's bottom (its rank-picker chips). syncAddH()
     now measures the bar and rewrites --addH to follow,
     on every path that can change the bar's height. */
  :root{--addH:96px}
  @media (max-width:640px){:root{--addH:92px}}
  body{padding-bottom:calc(var(--abarH) + 10px)}
  .actionBar{
    position:fixed;left:0;right:0;bottom:0;z-index:70;
    background:#0d101a;border-top:1px solid var(--line);
    padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .actionBarIn{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
  /* 追記173 (Posaki 2026-12-03): one more size up on
     Posaki's call after seeing the preview — the bar's
     buttons go 46px/14.5px -> 52px/16px. The reservation
     no longer cares: syncAbarH （追記171) measures the
     bar, however tall the wrap makes it. */
  .actionBar .btn{min-height:52px;padding:9px 16px;font-size:16px;border-radius:10px}
  .actionBar .btn:disabled{cursor:not-allowed}
  .actionBar .xPostBtn{background:#000;border-color:#333;color:#fff}
  /* PNG split export （追記90): the format select sits directly
     left of the 画像で保存 button in the same bar, and the
     custom-split preview takes a full-width row under the
     buttons so the grouping is always visible while the mode
     is active. */
  .actionBar .pngFmtSel{
    appearance:none;-webkit-appearance:none;border:1px solid var(--line);background:var(--panel2);color:var(--ink);
    border-radius:9px;min-height:38px;padding:5px 8px;font-size:12.5px;font-weight:700;cursor:pointer;
  }
  .pngSplitPreview{
    flex:0 0 100%;text-align:center;font-size:12px;font-weight:700;color:var(--ink);
    padding:2px 4px 0;line-height:1.5;word-break:break-word;
  }
  .pngSplitPreview[hidden]{display:none}
  .pngSplitSuggest{
    flex:0 0 100%;text-align:center;font-size:12px;font-weight:700;color:var(--muted);
    padding:2px 4px 0;line-height:1.5;word-break:break-word;
  }
  .pngSplitSuggest[hidden]{display:none}
  .pngSizeInfo{
    flex:0 0 100%;text-align:center;font-size:12px;font-weight:700;color:var(--ink);
    padding:2px 4px 0;line-height:1.5;word-break:break-word;
  }
  .pngSizeInfo[hidden]{display:none}
  .resetCluster{display:inline-flex;align-items:center;gap:6px}
  /* Undo / redo （追記153): a pair at the end of the bar's
     row. An empty direction wears the dim disabled face —
     it cannot be pressed and does not light up; a direction
     with history left wears the ordinary button face. */
  .undoCluster{display:inline-flex;align-items:center;gap:6px}
  #undoBtn:disabled,#redoBtn:disabled{opacity:.45;cursor:default}
  .resetGate{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--muted);font-weight:700;white-space:nowrap;cursor:pointer}
  .resetGate input{width:19px;height:19px;margin:0;accent-color:var(--danger);cursor:pointer}
  .genreTagChecks{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
  .genreTagGate{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--muted);font-weight:700;white-space:nowrap;cursor:pointer}
  .genreTagGate input{width:19px;height:19px;margin:0;cursor:pointer}
  /* Tag panel （追記166): the tag checks no longer ride in the
     bar's row — they live in this full-width row inside the bar,
     above the buttons, shown only while the タグ ▼ button has
     it open. The bar is fixed, so the panel simply grows the
     bar upward; syncAddH re-measures the bar on toggle, the
     same way the PNG split preview row is accommodated. */
  .tagPanel{flex:0 0 100%;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:2px 0 4px}
  .tagPanel[hidden]{display:none}
  .status{font-size:12.5px;color:var(--muted);margin:0}
  .status:empty{display:none}
  .status b{color:var(--ink)}

  /* ---------- board ---------- */
  .board{
    background:#0b0e17;
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px 14px 12px;
  }
  @media (max-width:640px){.board{padding:12px 8px 10px;border-radius:14px}}
  .boardTitle{
    text-align:center;letter-spacing:.04em;
    font-family:"Archivo Black","Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;
    font-weight:900;
    font-size:clamp(20px,3.4vw,30px);margin:0 0 10px;line-height:1.15;
    background:transparent;border:none;color:var(--ink);width:100%;text-transform:uppercase;
  }
  .boardTitle:focus{outline:2px dashed #39415e;outline-offset:6px;border-radius:6px}
  /* Edit pencils （追記128): the list title and every tier name
     are tap-to-edit, but nothing on screen said so — visitors
     rarely noticed. A small pencil now rides each name's
     top-right corner whenever the name is this visitor's to
     edit (namesEditable: maker mode, or a list this device
     owns); merely viewing someone else's list shows none. The
     pencil is a pure affordance: pointer-events:none, so a tap
     lands on the field exactly as before, and it exists only
     in the DOM — the PNG export draws names from state onto a
     canvas, so a pencil can never reach an exported image.
     The title input gains a wrapper that takes over its bottom
     margin, so the board's spacing is unchanged. While a name
     is being edited its pencil steps aside: the tier label's
     own controls (wrap lock, colour) take that corner, and the
     title's focus ring owns its outline.
     Placement (pencil position fix): a pencil belongs to the
     TEXT, not to the field's box. The title is centred in a
     full-width input, so a pencil pinned to the box's right
     edge sat at the screen's edge, far from the words; the
     tier name is likewise centred in its label. Scripts now
     measure the rendered text (placeTitlePencil /
     placeNamePencil) and park each pencil just past the
     text's own right end, slightly above it — these rules
     therefore carry no corner offsets of their own. */
  .boardTitleWrap{position:relative;margin:0 0 10px}
  .boardTitleWrap .boardTitle{margin:0}
  .editPencil{position:absolute;line-height:1;pointer-events:none;user-select:none;-webkit-user-select:none}
  .editPencil[hidden]{display:none}
  .titlePencil{top:0;transform:translateY(-45%);font-size:14px;color:var(--muted);opacity:.85}
  .boardTitleWrap:focus-within .titlePencil{display:none}
  .tierLabel .namePencil{
    font-size:13px;color:rgba(255,255,255,.88);
    text-shadow:0 1px 3px rgba(0,0,0,.5);z-index:5;
  }
  .tierLabel.editing .namePencil{display:none}
  /* ---------- category tabs (filter only; arrangement is shared) ---------- */
  .catTabs{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:2px 0 12px}
  .catTab{
    appearance:none;border:1px solid var(--line);background:var(--panel2);color:var(--muted);
    border-radius:999px;padding:10px 18px;font-size:15px;font-weight:700;min-height:44px;
  }
  .catTab.active{background:var(--accent);border-color:var(--accent);color:#fff}
  /* 追記170 (Posaki 2026-12-03): the .catNote explanation line
     under the tabs is removed; the tabs themselves grow. */
  .catStatus{font-size:12.5px;color:var(--accent);font-weight:700;text-align:center;line-height:1.6;margin:-6px 0 12px;padding:0 4px}
  .catStatus[hidden]{display:none}
  /* progress gauge for the category lookup (追記21): thin bar plus a
     resolved/total count directly under the status line. Colours come
     from the theme variables, like the rest of the UI. */
  .catGauge{display:flex;align-items:center;justify-content:center;gap:8px;margin:-6px 0 12px;padding:0 4px}
  .catGauge[hidden]{display:none}
  .catGaugeTrack{flex:1 1 auto;max-width:340px;height:8px;border:1px solid var(--line);border-radius:999px;background:var(--panel2);overflow:hidden}
  .catGaugeFill{height:100%;width:0%;background:var(--accent);border-radius:999px;transition:width .3s ease}
  .catGaugeNum{font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
  /* Progress gauges for every other slow operation （追記25, Posaki's
     rule: anything that takes time shows a gauge). Same track / fill /
     number as the category gauge above; two extra states cover what
     the category gauge never needed. .indet is a STAGE display for
     work whose total cannot be known up front (a single request in
     flight): a segment slides back and forth and the number beside it
     carries the real counts — it never claims a percentage.
     .stalled freezes the bar in a warning colour when the work
     stopped on an error, so "it stopped" reads at a glance. */
  .catGauge.paneGauge{margin:10px 0 2px}
  .catGaugeFill.indet{width:40%;transition:none;animation:pgSlide 1.1s ease-in-out infinite alternate}
  @keyframes pgSlide{from{margin-left:0}to{margin-left:60%}}
  .catGauge.stalled .catGaugeFill{background:#e5484d;animation:none}
  .catGauge.stalled .catGaugeNum{color:#e5484d}
  /* "fetching" badge on the その他・未分類 tab while unresolved works are
     still being looked up; absolutely positioned so the tab label width
     (and the narrow-screen grid fit) never changes */
  .catTab{position:relative}
  .catTabMark{
    position:absolute;top:-7px;right:-4px;pointer-events:none;
    background:var(--accent);color:#fff;font-size:10px;font-weight:700;line-height:1;
    padding:3px 6px;border-radius:999px;white-space:nowrap;
  }
  .catTab.active .catTabMark{background:#fff;color:var(--accent)}
  /* narrow screens: even 2-column grid (すべて spans the full first row)
     so the five tabs line up tidily instead of wrapping into ragged rows */
  @media (max-width:640px){
    .catTabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
    /* 追記183 (Posaki 2026-12-03): the tabs slim down on
       phones (44px -> 38px) with the rest of the top area;
       the grid plan itself is unchanged. */
    .catTab{padding:7px 4px;font-size:14px;min-height:38px;text-align:center;white-space:nowrap}
    .catTab:first-child{grid-column:1/-1}
  }
  @media (max-width:380px){
    .catTab{padding:7px 2px;font-size:13.5px}
  }
  .tile.catHidden{display:none}
  .tier{
    display:grid;grid-template-columns:84px 1fr;
    border:1px solid var(--line);
    border-bottom:none;
    background:#11141f;
    min-height:calc(var(--tile) + 12px);
  }
  .tier:first-of-type{border-radius:12px 12px 0 0}
  .tier.last{border-bottom:1px solid var(--line);border-radius:0 0 12px 12px}
  @media (max-width:640px){.tier{grid-template-columns:64px 1fr}}
  .tier.drop-hot{outline:2px solid var(--accent);outline-offset:-2px;background:#141a2c}
  .tierLabel{
    position:relative;display:flex;align-items:center;justify-content:center;
    /* top / bottom reserves （追記57): the delete chip rides the
       label's top-left corner and the count its bottom-right, both
       absolutely positioned. The padding keeps the name — however
       many lines it wraps to — clear of both. */
    padding:32px 6px 20px;text-align:center;overflow:hidden;
  }
  .tierLabel .tname{
    font-family:"Archivo Black","Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;
    font-weight:900;
    font-size:clamp(18px,3vw,30px);color:#fff;
    word-break:break-word;line-height:1.1;max-width:100%;
    background:transparent;border:none;text-align:center;width:100%;padding:4px 2px;
    cursor:text;border-bottom:1px dashed rgba(255,255,255,.35);
    /* a textarea since 追記57: an <input> can never wrap, so a
       long name was clipped unreadable. The field now wraps and
       auto-grows (fitTierName); no scrollbar, no manual resize. */
    resize:none;overflow:hidden;overflow-wrap:anywhere;
  }
  /* long names step the font down （追記57) so the wrapped line
     count stays sane; the name itself is never cut. */
  .tierLabel .tname.tnMid{font-size:clamp(15px,2.2vw,22px)}
  .tierLabel .tname.tnLong{font-size:clamp(12.5px,1.9vw,17px);line-height:1.25}
  /* names are uncapped since 追記61: the steps keep
     descending, so the longer a name gets the smaller it
     reads — it is never cut to fit. */
  .tierLabel .tname.tnXLong{font-size:clamp(11px,1.65vw,15px);line-height:1.25}
  .tierLabel .tname.tnXXLong{font-size:clamp(10px,1.45vw,13.5px);line-height:1.3}
  .tierLabel .tname.tnXXXLong{font-size:clamp(9px,1.25vw,12px);line-height:1.3}
  .tierLabel .tname:focus{outline:2px dashed rgba(255,255,255,.65);outline-offset:2px;border-radius:4px}
  .tierLabel .count{
    position:absolute;right:7px;bottom:6px;font-size:11px;font-weight:900;color:rgba(255,255,255,.75);
  }
  /* Split-export cut toggle （追記90): rides the label's
     bottom-left corner (the count owns the bottom-right),
     offered only while the PNG format is 自分で分ける. The
     checkbox stacks over its caption so the pair fits even
     the 64px phone label column, and the row grows bottom
     padding while the toggles are out so a wrapped name
     stays clear of it. */
  .tierLabel .splitCut{
    position:absolute;left:6px;bottom:5px;display:inline-flex;flex-direction:column;align-items:center;gap:1px;
    font-size:9.5px;font-weight:700;line-height:1.15;color:rgba(255,255,255,.92);cursor:pointer;white-space:nowrap;
  }
  .tierLabel .splitCut input{width:15px;height:15px;margin:0;accent-color:var(--accent);cursor:pointer}
  .tier.splitMode .tierLabel{padding-bottom:36px}
  /* One-line tier names （追記63): a per-tier lock toggle rides
     the label's top-right corner, offered only while the name
     is being edited. Locked (the default, and the reading of
     any tier saved before the flag existed) keeps the wrapping
     display of 追記57; unlocked lays the name out on a single
     line that may spill past the label's width. The label's
     top reserve (padding-top 32px, 30px on phones) already
     covers the strip the button sits in — the button is 26px
     tall at top:4px — so the name never slides underneath it.
     Spill fix （追記67): as shipped, an unlocked name stayed
     inside the frame — the base .tname rule's max-width:100%
     was never lifted in one-line mode, so the sideways width
     fitTierName assigns was capped at the label's width and
     the field's own overflow:hidden clipped the line; and
     the length steps of 追記61 kept shrinking the font in
     both modes. One-line mode now lifts the cap, neutralises
     the steps (the name keeps the base font size and spills
     at natural size), and puts the field itself in front.
     The label is a centred flex row, so a field wider than
     the label spills equally to both sides of the label's
     centre. */
  .tierLabel .nameLock{
    position:absolute;top:4px;right:4px;width:26px;height:26px;min-height:26px;border-radius:8px;border:none;
    background:rgba(5,7,13,.55);color:#fff;display:none;align-items:center;justify-content:center;
    font-size:13px;padding:0;line-height:1;cursor:pointer;opacity:.85;z-index:6;
  }
  .tierLabel.editing .nameLock{display:inline-flex}
  .tierLabel .nameLock:hover{opacity:1;background:rgba(5,7,13,.88)}
  .tierLabel .nameLock.unlocked{background:var(--accent);opacity:1}
  /* Name colour （追記71): under the wrap lock, while the name
     is being edited, a colour control plus a reset that
     returns the name to plain white. The control is a hue
     seekbar the page draws itself (hue slider): the native
     colour picker it replaces applied nothing until its OS
     dialog closed, so the name never recoloured while the
     user adjusted （ポサキ's complaint) — the slider files
     every step of the drag instead. The stack (the 26px lock
     at top:4px, then this block from top:34px) outgrows the
     label's standing top reserve, so an editing label grows
     its top padding and the name stays clear of the whole
     stack; outside editing nothing shows and the label is
     exactly as before.
     Escape fix (v42): the control used to sit right-aligned
     INSIDE the label — on the 64px phone column the bar was
     squeezed into that narrow box and its end was clipped
     （ポサキ's report: 色のバーも見切れてる). While editing,
     the label now lets its contents overflow and the control
     anchors to the label's LEFT edge, spilling right over
     the tiles as a temporary editing overlay (z-index 6, as
     before); the bar takes a viewport-capped width, so it
     fits on any screen. Not editing: overflow is hidden
     again and nothing of this shows. */
  /* Tier colour （追記154): a second hue control in the
     same stack, ABOVE the name colour one — the label's own
     background colour, in the identical style (same bar,
     same thumb, caption chips saying which colour each
     bar drives: ランクの色 / 名前の色）. The stack grows
     by one captioned bar, so the editing top reserve grows
     with it (90px -> 142px) and the name stays clear of
     the whole stack exactly as before. */
  .tierLabel.editing{padding-top:142px;overflow:visible}
  .tierLabel .tierColorCtl{
    position:absolute;top:34px;left:4px;right:auto;display:none;flex-direction:column;align-items:center;gap:4px;z-index:6;
  }
  .tierLabel.editing .tierColorCtl{display:flex}
  .tierLabel .nameColorCtl{
    position:absolute;top:76px;left:4px;right:auto;display:none;flex-direction:column;align-items:center;gap:4px;z-index:6;
  }
  .tierLabel.editing .nameColorCtl{display:flex}
  .tierLabel .ctlLab{
    background:rgba(5,7,13,.55);color:#fff;font-size:10px;font-weight:700;line-height:1.3;
    padding:1px 6px;border-radius:6px;white-space:nowrap;
  }
  .tierLabel .nameHueIn,.tierLabel .tierHueIn{
    -webkit-appearance:none;appearance:none;touch-action:none;width:min(180px, calc(100vw - 24px));height:16px;min-height:16px;padding:0;
    border:1px solid rgba(255,255,255,.45);border-radius:999px;cursor:pointer;
    background:linear-gradient(to right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000);
  }
  .tierLabel .nameHueIn::-webkit-slider-thumb,.tierLabel .tierHueIn::-webkit-slider-thumb{
    -webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;
    background:#fff;border:2px solid rgba(5,7,13,.65);box-shadow:0 1px 4px rgba(0,0,0,.5);cursor:pointer;
  }
  .tierLabel .nameHueIn::-moz-range-thumb,.tierLabel .tierHueIn::-moz-range-thumb{
    width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid rgba(5,7,13,.65);
    box-shadow:0 1px 4px rgba(0,0,0,.5);cursor:pointer;
  }
  .tierLabel .nameHueIn::-moz-range-track,.tierLabel .tierHueIn::-moz-range-track{background:transparent}
  /* (v42: the ≤640px shrink-to-52px rule is gone — the bar no
     longer lives inside the label at all; see the escape fix
     above. One width, capped by the viewport, at every size.) */
  .tierLabel .nameColorReset{
    height:20px;min-height:20px;padding:0 7px;border:none;border-radius:7px;
    background:rgba(5,7,13,.55);color:#fff;font-size:10px;font-weight:700;line-height:1;cursor:pointer;opacity:.85;
  }
  .tierLabel .nameColorReset:hover{opacity:1;background:rgba(5,7,13,.88)}
  .tierLabel.oneLineLab{overflow:visible;z-index:6}
  .tierLabel .tname.oneLine{
    white-space:nowrap;word-break:normal;overflow-wrap:normal;
    width:auto;min-width:100%;max-width:none;flex:none;
    position:relative;z-index:4;
  }
  /* 追記67: in one-line mode the length steps of 追記61 are
     neutralised — the name keeps the base font size and
     spills at natural size instead of shrinking to fit. */
  .tierLabel .tname.oneLine.tnMid,
  .tierLabel .tname.oneLine.tnLong,
  .tierLabel .tname.oneLine.tnXLong,
  .tierLabel .tname.oneLine.tnXXLong,
  .tierLabel .tname.oneLine.tnXXXLong{
    font-size:clamp(18px,3vw,30px);line-height:1.1;
  }
  /* Tier-row delete （ランク削除): a small chip tucked into the
     label's top-left corner, styled like the tiles' .del so it
     reads as part of the board. Deleting is two-step in place —
     the first tap only arms the chip (it stretches and turns
     danger-red with 消す？), the second tap within a few seconds
     removes the row and returns its works to the pool. A stray
     single tap can therefore never remove a row, and no modal
     interrupts the arranging flow. */
  .tierLabel .tierDel{
    position:absolute;top:4px;left:4px;width:26px;height:26px;min-height:26px;border-radius:8px;border:none;
    background:rgba(5,7,13,.55);color:#fff;display:inline-flex;align-items:center;justify-content:center;
    font-size:12px;font-weight:900;padding:0;line-height:1;cursor:pointer;opacity:.75;
  }
  .tierLabel .tierDel:hover{opacity:1;background:rgba(5,7,13,.88)}
  .tierLabel .tierDel.confirming{width:auto;padding:0 10px;background:var(--danger);opacity:1}
  /* Tier insert gaps （追記152): a zero-height seam between
     two rows (and after the last row) holding one faint ＋
     button at its left end, centred on the rows' shared
     border. The seam is a span, not a div, so the rows keep
     their .tier:first-of-type top rounding; its height is 0,
     so the board's layout never moves — the button overlays
     the seam and only firms up on hover / focus / touch. */
  .tierGap{display:block;position:relative;height:0;z-index:6}
  .tierAdd{
    position:absolute;left:8px;top:0;transform:translateY(-50%);
    width:22px;height:22px;min-height:22px;border-radius:50%;
    border:1px solid var(--line);background:#1a2033;color:#dfe6f5;
    font-size:15px;font-weight:700;line-height:1;padding:0;
    display:inline-flex;align-items:center;justify-content:center;
    cursor:pointer;opacity:.28;
  }
  .tierAdd:hover,.tierAdd:focus-visible,.tierAdd:active{opacity:1}
  .tierBody{
    display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start;
    padding:6px;min-height:calc(var(--tile) + 12px);
  }
  .tierBody .emptyNote{color:#454d66;font-size:12.5px;align-self:center;padding-left:6px;pointer-events:none}

  /* ---------- tiles ---------- */
  .tile{
    position:relative;width:var(--tile);flex:0 0 auto;
    border-radius:9px;overflow:hidden;background:#1a1f30;
    touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer;
    /* when a tile is scrolled into view it must clear the sticky pool
       tray at the bottom instead of stopping underneath it */
    scroll-margin-bottom:120px;
  }
  .tile .thumb{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;pointer-events:none;background:#232842}
  .tile .pid{
    position:absolute;left:0;bottom:0;background:rgba(5,7,13,.85);color:#dbe4ff;
    font-size:10px;font-weight:700;padding:2px 6px;border-radius:0 7px 0 0;letter-spacing:.03em;pointer-events:none;
  }
  .tile .del{
    position:absolute;top:4px;right:4px;width:28px;height:28px;min-height:28px;border-radius:8px;border:none;
    background:rgba(5,7,13,.85);color:#fff;display:none;align-items:center;justify-content:center;
    font-size:13px;padding:0;line-height:1;
  }
  .tile:hover .del,.tile:focus-within .del{display:inline-flex}
  @media (pointer:coarse){.tile .del{display:inline-flex}}
  .tile .del:hover{background:var(--danger)}
  .tile.broken .thumb{display:none}
  .tile .brokenBox{display:none}
  .tile.broken .brokenBox{
    display:flex;aspect-ratio:1/1;flex-direction:column;gap:4px;align-items:center;justify-content:center;
    background:#2a1620;color:#ff9db0;font-size:11px;font-weight:700;text-align:center;padding:6px;
  }
  .tile.dragSrc{opacity:.35}
  .tile.selected{outline:3px solid var(--accent);outline-offset:2px}
  /* ---------- multi-open (pick several works, open them in tabs) ----------
     While the mode is on, a picked board tile wears the accent
     ring and a check badge, and the delete button leaves the
     tiles entirely so a picking tap can never delete a work.
     Feed mini tiles (.moTile) get the same ring at a weight
     their small frames can carry. The mode's own buttons ride
     the board's action bar (as a cluster, like the undo pair)
     and a sticky bar at the end of the feed pane, modelled on
     the explore selection bar. */
  .tile.moSel{outline:3px solid var(--accent);outline-offset:-3px}
  .tile.moSel::after{
    content:"✓";position:absolute;top:4px;right:4px;z-index:2;
    width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff;
    font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;
  }
  body.moOn .tile .del{display:none}
  .moTile.moSel{outline:2px solid var(--accent);outline-offset:-2px}
  .moCluster{display:inline-flex;align-items:center;gap:6px}
  .moModeBtn.on{background:var(--accent);border-color:var(--accent);color:#fff}
  .moBar{
    position:sticky;bottom:8px;z-index:60;
    display:flex;align-items:center;gap:8px;
    margin-top:14px;padding:8px;
    background:var(--panel);border:1px solid var(--line);border-radius:14px;
    box-shadow:0 6px 24px rgba(0,0,0,.45);
  }
  .moBar .btn{min-height:52px;padding:9px 16px;font-size:16px;border-radius:10px}
  .moBar .moOpenBtn{margin-left:auto}
  /* Blocked-popups guide panel: when the browser stops the
     second and later tabs of a multi-open, the failure is no
     longer a vanishing toast. This panel floats above the
     bottom bar (same perch as the toast), says why in plain
     words, and offers a retry on the picks that stayed
     picked plus a plain close. It is a live control, so —
     unlike the toast — it takes pointer events. */
  .moBlockPanel{
    position:fixed;left:50%;bottom:calc(var(--abarH) + 12px);transform:translateX(-50%);
    z-index:1000;width:min(520px,94vw);
    background:var(--panel);border:1px solid var(--accent);border-radius:14px;
    box-shadow:0 10px 34px rgba(0,0,0,.55);
    padding:14px 16px;text-align:left;
  }
  .moBlockPanel[hidden]{display:none}
  .moBlockTitle{font-size:15px;font-weight:900;margin:0 0 6px}
  .moBlockBody{font-size:13px;line-height:1.7;margin:0 0 12px}
  .moBlockBtns{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
  .dragGhost{
    position:fixed;z-index:999;pointer-events:none;width:var(--tile);
    border-radius:9px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.6);
    transform:translate(-50%,-50%);opacity:.95;
  }
  .dragGhost img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
  .insertMark{flex:0 0 auto;width:4px;border-radius:2px;background:var(--accent);align-self:stretch;min-height:40px}

  /* ---------- pool (sticky tray pinned to the bottom of the screen) ---------- */
  .poolTray{
    position:sticky;bottom:calc(var(--abarH) + var(--addH));z-index:60;
    margin:16px -12px -40px;padding:8px 12px 14px;
    background:linear-gradient(to bottom,rgba(7,9,15,0),var(--bg) 14px);
  }
  .poolHead{display:flex;align-items:center;gap:10px;margin:0 2px 8px;flex-wrap:wrap}
  .poolHead h2{font-size:16px;margin:0;font-weight:900}
  .poolHead .pcount{color:var(--muted);font-size:13px}
  .trayToggle{margin-left:auto;min-height:36px;padding:6px 14px;font-size:13px}
  .poolTray.closed .pool{display:none}
  .poolTray.closed{padding-bottom:10px}
  .pool{
    --tile:80px;
    display:flex;flex-wrap:wrap;gap:5px;align-content:flex-start;
    min-height:calc(var(--tile) + 20px);
    max-height:32vh;overflow-y:auto;overscroll-behavior:contain;
    background:var(--panel);border:1px dashed #2c3249;border-radius:14px;padding:10px;
    box-shadow:0 -10px 28px rgba(0,0,0,.45);
  }
  .pool .tile .pid{font-size:10px;padding:2px 6px}
  .pool .tile .del{width:28px;height:28px;min-height:28px;font-size:13px;top:4px;right:4px}
  .pool.drop-hot{outline:2px solid var(--accent);outline-offset:-2px}
  .pool .emptyNote{color:#5f6880;font-size:13px;align-self:center}

  /* ---------- rank picker for a selected pool tile （追記51) ----------
     Tapping a pool tile selects it (the tap-to-place flow below);
     while the selection sits in the pool, this strip inside the
     tray lists the board's CURRENT tiers as chunky chips — colour
     swatch, name, count — and tapping one moves the work straight
     into that tier: no drag, no scrolling up to the board. The
     chips are rebuilt from state.tiers on every render, so a tier
     row added or deleted is followed at once. It lives outside
     .pool itself, so its taps never reach the pool's zoneTap
     handler, and a closed tray hides it with the pool.
     The strip is ALWAYS mounted (pool-tap fix): with no pool
     selection it shows a guidance label and the same chips,
     disabled — the tray's height is the same whether a work is
     selected or not, so selecting and switching selections never
     makes the tray jump. */
  .rankPick{
    margin-top:10px;background:var(--panel2);border:1px solid var(--line);
    border-radius:12px;padding:8px 10px;
  }
  .poolTray.closed .rankPick{display:none}
  .rankPick.idle .rankPickBtn{opacity:.45;cursor:default}
  .rankPickLab{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:7px}
  .rankPickBtns{display:flex;flex-wrap:wrap;gap:6px}
  .rankPickBtn{
    appearance:none;border:1px solid var(--line);background:var(--panel);color:var(--ink);
    border-radius:999px;min-height:44px;padding:6px 12px 6px 7px;
    display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:900;cursor:pointer;
    max-width:100%;
  }
  .rankPickSw{width:22px;height:22px;border-radius:7px;flex:0 0 auto}
  /* a long custom tier name wraps inside its chip （追記57)
     instead of pushing the chip past the tray's edge; the
     swatch and the count never shrink. */
  .rankPickName{min-width:0;flex:0 1 auto;overflow-wrap:anywhere;text-align:left}
  /* the chips step long names down too （追記61), on the
     same length classes as the board labels, so an uncapped
     name shrinks inside its chip instead of crowding it. */
  .rankPickName.tnMid{font-size:12.5px}
  .rankPickName.tnLong{font-size:11.5px}
  .rankPickName.tnXLong{font-size:10.5px}
  .rankPickName.tnXXLong{font-size:10px}
  .rankPickName.tnXXXLong{font-size:9px;line-height:1.3}
  .rankPickCnt{font-size:11px;font-weight:700;color:var(--muted);flex:0 0 auto}

  .toast{
    position:fixed;left:50%;bottom:calc(var(--abarH) + 12px);transform:translateX(-50%) translateY(20px);
    background:#1d2338;border:1px solid #39415e;color:var(--ink);border-radius:10px;
    padding:11px 18px;font-size:13.5px;font-weight:700;opacity:0;pointer-events:none;transition:.25s;z-index:1000;
    max-width:92vw;text-align:center;
  }
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

  /* ---------- explore (みんなのリストを探す, 追記22) ----------
     A separate view from the board, in the same design language:
     board-style panel, panel2 chips and cards, accent for the one
     number that matters (the match count). Every tap target is at
     least 44px in its longest dimension; selected / unselected /
     capped states differ in colour AND shape (accent outline + check
     badge + dimming), never in colour alone. */
  .gone{display:none !important}
  .exploreView{
    background:#0b0e17;border:1px solid var(--line);border-radius:18px;
    padding:16px 14px 18px;
  }
  .exploreView[hidden]{display:none}
  .exploreHead{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
  .exploreTitle{font-size:20px;font-weight:900;margin:0;flex:1 1 auto;min-width:0}
  .exploreLead{color:#ffd83d;font-size:18px;font-weight:600;line-height:1.7;margin:0}
  .exploreSub{font-size:14px;font-weight:900;margin:18px 0 8px}
  .exploreChips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:44px}
  .exploreHint{color:#5f6880;font-size:13px;line-height:1.6}
  .exploreChip{
    display:inline-flex;align-items:center;gap:4px;min-height:44px;
    background:#12233d;border:1px solid #2b4a75;color:#cfe6ff;border-radius:999px;
    padding:3px 4px 3px 14px;font-size:13.5px;font-weight:700;
  }
  .exploreChip button{
    appearance:none;border:none;background:rgba(255,255,255,.1);color:#fff;
    width:36px;height:36px;border-radius:50%;font-size:13px;line-height:1;padding:0;
    display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  }
  .exploreChip button:hover{background:var(--danger)}
  .exploreGrid{display:block;--tile:76px}
  /* the picker mirrors the board's own structure （追記60):
     one block per tier row — a heading wearing the tier's
     colour and its (possibly custom) name — then that tier's
     works in placement order; the pool comes last as 未配置.
     Under a category filter, out-of-category works are
     hidden and a group left empty disappears, heading
     included; the surviving order is the board order still. */
  .exploreGroup{margin-bottom:12px}
  .exploreGroup:last-child{margin-bottom:0}
  .exploreGroupHead{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:13px;font-weight:900}
  .exploreGroupSw{width:16px;height:16px;border-radius:5px;flex:0 0 auto;background:var(--line)}
  .exploreGroupName{min-width:0;overflow-wrap:anywhere}
  .exploreGroupGrid{display:flex;flex-wrap:wrap;gap:6px}
  .explorePick{
    appearance:none;position:relative;width:var(--tile);flex:0 0 auto;border:none;padding:0;
    border-radius:9px;overflow:hidden;background:#1a1f30;cursor:pointer;text-align:left;
  }
  .explorePick img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#232842;pointer-events:none}
  .explorePick .pid{
    position:absolute;left:0;bottom:0;background:rgba(5,7,13,.85);color:#dbe4ff;
    font-size:10px;font-weight:700;padding:2px 6px;border-radius:0 7px 0 0;letter-spacing:.03em;pointer-events:none;
  }
  .explorePick .pickMark{
    position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;
    background:var(--accent);color:#fff;font-size:14px;font-weight:900;line-height:1;
    display:none;align-items:center;justify-content:center;pointer-events:none;
  }
  .explorePick.on{outline:3px solid var(--accent);outline-offset:1px}
  .explorePick.on .pickMark{display:inline-flex}
  .explorePick.capped{opacity:.4}
  textarea#exploreAddInput{
    width:100%;min-height:52px;resize:vertical;
    background:var(--panel2);color:var(--ink);
    border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13.5px;line-height:1.55;
  }
  textarea#exploreAddInput::placeholder{color:#5f6880}
  /* Selection action bar （追記30): sticky to the bottom of the
     screen inside the explore panel, so it travels with the visitor
     while they scroll the picker grid. It is the last child of the
     panel, so at the very end of the scroll it settles into its
     natural place right below the last row — nothing is ever
     trapped underneath it. One row on wide screens: [追加] [field]
     [count] [run]. On phones the field wraps onto its own row
     (order:-1, full width) and the buttons share the row below. */
  .selBar{
    position:sticky;bottom:8px;z-index:60;
    display:flex;align-items:center;gap:8px;
    margin-top:14px;padding:8px;
    background:var(--panel);border:1px solid var(--line);border-radius:14px;
    box-shadow:0 6px 24px rgba(0,0,0,.45);
  }
  .selBar[hidden]{display:none}
  .selBarAdd{flex:0 0 auto;min-height:44px}
  .selBar textarea#exploreAddInput{
    flex:1 1 auto;min-width:0;min-height:44px;max-height:44px;resize:none;
    font-size:14px;padding:10px;
  }
  .selBarCount{flex:0 0 auto;font-size:12.5px;font-weight:900;color:var(--muted);white-space:nowrap}
  .selBarAction{flex:0 0 auto;min-height:44px;font-weight:900;border-radius:10px;white-space:nowrap}
  .selBarAction[hidden]{display:none}
  @media (max-width:640px){
    .selBar{flex-wrap:wrap;bottom:6px}
    .selBar textarea#exploreAddInput{order:-1;flex:1 1 100%;font-size:16px}
    .selBarCount{margin-left:auto}
  }
  .exploreStatus{font-size:13.5px;color:var(--muted);line-height:1.65;margin:12px 0 0}
  .exploreStatus:empty{display:none}
  /* Result cards （追記96): each list in the search results is
     one clearly bounded block — a lighter panel2 fill, a
     stronger blue-grey edge and a wider gap than the original
     hairline --line border — so neighbouring lists never read
     as one continuous mass. */
  .exploreResults{display:grid;gap:16px;margin-top:12px}
  .exploreCard{
    display:block;background:var(--panel2);border:1px solid #3d4a6b;border-radius:14px;
    padding:12px 14px;color:var(--ink);text-decoration:none;
    box-shadow:0 2px 10px rgba(0,0,0,.35);
  }
  .exploreCard:hover{border-color:var(--accent)}
  .exploreCardTitle{font-size:15.5px;font-weight:900;line-height:1.4;margin:0 0 6px;word-break:break-word}
  .exploreCardMeta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:9px}
  .exploreMatch{
    background:var(--accent);color:#fff;font-weight:900;font-size:13.5px;line-height:1;
    border-radius:999px;padding:5px 12px;white-space:nowrap;
  }
  .exploreCardTotal{font-size:13px;font-weight:700;color:var(--ink)}
  .exploreCardDate{color:var(--muted);font-size:12.5px;margin-left:auto}
  .exploreCardThumbs{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
  .exploreCardThumbs img{width:44px;height:44px;border-radius:6px;object-fit:cover;background:#232842;display:block}
  /* Search results show EVERY work in the list （追記36): a dense
     wrap of small thumbs, nothing sliced off at 8 + "+N" the way
     the matched-only strip used to. The works that matched the
     query keep an accent outline, so why the list is here still
     reads per-work; the images themselves load lazily through the
     same IntersectionObserver pipeline as every other thumb. */
  .exploreCardThumbs.full{gap:3px}
  .exploreCardThumbs.full img{width:27px;height:27px;border-radius:5px}
  .exploreCardThumbs img.hit{outline:2px solid var(--accent);outline-offset:-2px}
  /* ---------- mini tier tables on result cards （追記85) ----------
     Feed and search cards render each list as a small copy of
     the real board: one row per tier, the tier's colour on its
     label, the tiles in placement order. The pool rides as a
     final row with an empty grey label. Thumbs reuse the shared
     lazy pipeline via exploreThumb. */
  .miniTierTable{display:grid;gap:3px;margin-bottom:7px}
  .miniTierRow{display:flex;gap:3px;align-items:stretch}
  .miniTierLabel{
    flex:0 0 34px;display:flex;align-items:center;justify-content:center;
    border-radius:5px;background:#3a4152;color:#fff;font-size:10px;font-weight:800;line-height:1.2;
    text-align:center;padding:2px 1px;overflow:hidden;overflow-wrap:anywhere;
  }
  .miniTierTiles{display:flex;flex-wrap:wrap;gap:3px;align-items:center}
  .miniTierTiles img{width:27px;height:27px;border-radius:5px;object-fit:cover;background:#232842;display:block}
  .miniTierTiles img.hit{outline:2px solid var(--accent);outline-offset:-2px}
  .exploreMore{color:var(--muted);font-size:12.5px;font-weight:700;padding:0 2px}
  @media (max-width:640px){
    .exploreView{padding:12px 10px 14px;border-radius:14px}
    .exploreTitle{font-size:18px}
    .exploreGrid{--tile:68px}
    .exploreCardThumbs img{width:38px;height:38px}
    textarea#exploreAddInput{font-size:16px;min-height:52px}
    .exploreCardDate{margin-left:0}
  }

  /* ---------- main tabs + feed / recommend (発見 v2, 追記23) ----------
     The two top-level tabs are the biggest tap targets on the page:
     a filled accent segment for "where you are" against a ghost
     segment, so the current side reads by colour AND shape.
     追記26: the two switch systems inside the みんな side are now
     deliberately different shapes. The mode switch (フィード/探す/
     おすすめ) is a segmented bar in a bordered container, mirroring
     the main tabs — it changes WHAT you are looking at. Sorting is a
     row of loose pills under a 並び替え caption whose active state is
     an accent OUTLINE, not a fill — it only re-orders the same list.
     On phones the sort pills stop ragged-wrapping and become an even
     grid. （追記31: the match-count chips are gone — the match slider
     with its direction toggle does that job. 追記34: the 作品数が
     多い chip is gone too, replaced by 投稿日 (created) and 人気順
     (popular) — leaving 新着 / 投稿日 / 人気順.) The feed is
     operated by chips and sliders only — labels are one short word
     plus a number, no explanatory sentences. */
  .mainTabs{
    display:grid;grid-template-columns:1fr 1fr;gap:6px;
    background:var(--panel);border:1px solid var(--line);border-radius:14px;
    padding:6px;margin-bottom:12px;
  }
  .mainTab{
    appearance:none;border:1px solid transparent;background:transparent;color:var(--muted);
    border-radius:10px;min-height:54px;padding:10px 8px;
    font-size:15.5px;font-weight:900;line-height:1.25;
  }
  .mainTab.active{background:var(--accent);border-color:var(--accent);color:#fff}
  /* Viewing banner （追記28): shown when this list was opened from
     discovery, so it never masquerades as the visitor's own board.
     Accent outline (like the sort pills), not a fill. */
  .viewBanner{
    display:flex;align-items:center;gap:9px;
    background:var(--panel);border:1px solid var(--accent);border-radius:12px;
    padding:10px 12px;margin-bottom:12px;
  }
  .viewBanner[hidden]{display:none}
  .viewBannerTag{
    background:var(--accent);color:#fff;font-weight:900;font-size:12px;line-height:1;
    border-radius:999px;padding:5px 10px;white-space:nowrap;
  }
  .viewBannerText{font-size:13px;font-weight:700;line-height:1.5}
  .modeChips{
    display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;
    background:var(--panel);border:1px solid var(--line);border-radius:14px;
    padding:6px;margin:2px 0 14px;
  }
  .modeChip{
    appearance:none;border:1px solid transparent;background:transparent;color:var(--muted);
    border-radius:10px;min-height:46px;padding:8px 4px;font-size:14.5px;font-weight:900;white-space:nowrap;
  }
  .modeChip.active{background:var(--accent);border-color:var(--accent);color:#fff}
  /* 重複をまとめる toggle （追記79): one quiet row under the mode
     switch, shared by all three discovery modes. 追記88 adds the
     空のリストを隠す toggle beside it and a one-line reason
     under the dedup label, small enough to never crowd the row. */
  /* （追記174) the two toggles stack vertically, left-aligned
     under the tabs (Posaki 2026-12-03) instead of sharing
     one row — on a phone the side-by-side row wrapped
     unpredictably. The dedup note stays under its label. */
  .dedupRow{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:-6px 2px 12px}
  .dedupLabel{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:700;color:var(--ink);cursor:pointer;min-height:32px}
  .dedupLabel input{width:17px;height:17px;margin:0;accent-color:var(--accent);cursor:pointer}
  .dedupNote{font-size:11.5px;color:var(--muted);margin:0;line-height:1.5}
  .feedBar{display:grid;gap:8px;margin-bottom:4px}
  .sortLab{display:block;font-size:12px;font-weight:900;color:var(--muted);letter-spacing:.08em;margin-bottom:5px}
  .sortChips{display:flex;flex-wrap:wrap;gap:6px}
  .sortChip{
    appearance:none;border:1px solid var(--line);background:var(--panel2);color:var(--muted);
    border-radius:999px;min-height:44px;padding:8px 14px;font-size:13.5px;font-weight:700;white-space:nowrap;
  }
  .sortChip.active{background:var(--panel);border-color:var(--accent);color:var(--accent);font-weight:900}
  /* Feed size chips （追記146): the same pill shape as the sort
     chips but their own class — the sort click binding and the
     sort CSS pins both key on .sortChip alone, and a size
     click must never fall into setFeedSort. */
  .feedSizeChip{
    appearance:none;border:1px solid var(--line);background:var(--panel2);color:var(--muted);
    border-radius:999px;min-height:44px;padding:8px 14px;font-size:13.5px;font-weight:700;white-space:nowrap;
  }
  .feedSizeChip.active{background:var(--panel);border-color:var(--accent);color:var(--accent);font-weight:900}
  .sortChip.off,.modeChip.off{opacity:.4}
  /* Feed category tabs （追記101): the same chip shape as the
     sort row, sitting at the top of the feed pane. */
  /* （追記174) the genre tabs stretch to fill the row and
     grow taller with larger text (Posaki 2026-12-03); on
     narrow screens they wrap onto multiple full rows
     instead of being squeezed onto one. */
  .feedCatTabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
  /* Genre-only row （追記159): directly under the shared
     category tabs; hidden while すべて is active. */
  .catPureRow{margin:-4px 2px 10px}
  .catPureRow[hidden]{display:none}
  /* Picker-mode display checks （追記188): the feed bar's
     dedup pair mirrored into the discovery top's checks
     column for 探す / おすすめ. The same column shape as
     .dedupRow; [hidden] is the feed mode, where the feed
     bar itself carries the pair. */
  .exploreChecks{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
  .exploreChecks[hidden]{display:none}
  .catPureRow:not([hidden]) + .exploreChecks:not([hidden]){margin-top:8px}
  .feedCatTab{
    appearance:none;border:1px solid var(--line);background:var(--panel2);color:var(--muted);
    border-radius:999px;min-height:52px;padding:10px 8px;font-size:15px;font-weight:700;white-space:nowrap;cursor:pointer;
    flex:1 1 0;text-align:center;
  }
  @media (max-width:640px){
    .feedCatTab{flex-basis:30%}
  }
  .feedCatTab.active{background:var(--panel);border-color:var(--accent);color:var(--accent);font-weight:900}
  .sliderRow{
    display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:10px;min-height:44px;
  }
  /* The feed's two slider rows share one structure （追記172):
     label, value (and the match row's toggle) on the first
     line, the slider itself spanning the FULL width on the
     second. The match row used to carry its toggle as a fourth
     grid column （追記31), which made its track narrower than
     the size row's — the two gauges' ticks could never line up
     vertically. With the track full-width in both rows, track
     width, start position and tick spacing share one basis,
     and the long match label （自分のリストとの一致数） gets
     the full line instead of a fixed label column. Scoped to
     the feed rows: the board's tile-size row and the PNG
     panel's rows keep the one-line structure. */
  .feedSliderRow{
    grid-template-columns:1fr auto auto;
    grid-template-areas:"lab val tog" "wrap wrap wrap";
  }
  .feedSliderRow .sliderLab{grid-area:lab}
  .feedSliderRow .sliderWrap{grid-area:wrap}
  .feedSliderRow .sliderVal{grid-area:val}
  .feedSliderRow .dirToggle{grid-area:tog}
  /* The match row's direction toggle （追記31). Outline = 以上
     (at least), filled = 以下 (at most), so the direction reads
     at a glance, and the value label flips with it (3〜 vs 〜3). */
  .dirToggle{
    appearance:none;border:1px solid var(--accent);background:transparent;color:var(--accent);
    border-radius:999px;min-height:44px;padding:6px 13px;
    font-size:13.5px;font-weight:900;white-space:nowrap;cursor:pointer;
  }
  .dirToggle.max{background:var(--accent);border-color:var(--accent);color:#fff}
  .dirToggle:disabled{opacity:.4;cursor:default}
  .sliderRow.off{opacity:.4}
  .sliderLab{font-size:13.5px;font-weight:900;color:var(--ink);white-space:nowrap}
  .sliderVal{font-size:13.5px;font-weight:900;color:var(--accent);white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
  .sliderRow input[type="range"]{
    -webkit-appearance:none;appearance:none;width:100%;height:44px;background:transparent;margin:0;cursor:pointer;
  }
  .sliderRow input[type="range"]:disabled{cursor:default}
  .sliderRow input[type="range"]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:var(--line)}
  .sliderRow input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none;appearance:none;width:26px;height:26px;border-radius:50%;
    background:var(--accent);border:2px solid #fff;margin-top:-10px;
  }
  .sliderRow input[type="range"]::-moz-range-track{height:6px;border-radius:999px;background:var(--line)}
  .sliderRow input[type="range"]::-moz-range-thumb{
    width:24px;height:24px;border-radius:50%;background:var(--accent);border:2px solid #fff;
  }
  /* Slider feedback (追記26): the thumb answers every step. It
     swells while grabbed and bumps at each step change, tick marks
     under the track light up to the current value, a bubble follows
     the thumb showing the value large, and devices with
     navigator.vibrate add a few-ms pulse per step (visual feedback
     only where vibration is unavailable). touch-action:none keeps a
     horizontal drag from turning into a page scroll; the 44px input
     height keeps the hit area as it was. */
  .sliderWrap{position:relative;min-width:0}
  .sliderRow input[type="range"]{touch-action:none}
  .sliderRow input[type="range"]::-webkit-slider-thumb{transition:transform .12s ease}
  .sliderRow input[type="range"]::-moz-range-thumb{transition:transform .12s ease}
  .sliderRow input[type="range"]:active::-webkit-slider-thumb,
  .sliderRow input[type="range"].bump::-webkit-slider-thumb{transform:scale(1.28)}
  .sliderRow input[type="range"]:active::-moz-range-thumb,
  .sliderRow input[type="range"].bump::-moz-range-thumb{transform:scale(1.28)}
  .sliderBubble{
    position:absolute;top:-4px;left:0;transform:translate(-50%,-100%);
    background:var(--accent);color:#fff;font-size:15px;font-weight:900;line-height:1;
    padding:7px 10px;border-radius:999px;white-space:nowrap;pointer-events:none;
    opacity:0;transition:opacity .15s ease;font-variant-numeric:tabular-nums;z-index:3;
  }
  .sliderRow.live .sliderBubble{opacity:1}
  .sliderTicks{display:flex;justify-content:space-between;height:6px;margin-top:1px;padding:0 13px}
  .sliderTicks span{width:2px;height:5px;border-radius:1px;background:var(--line)}
  .sliderTicks span.on{background:var(--accent)}
  .feedList{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
  .feedCard{
    display:block;background:var(--panel2);border:1px solid #3d4a6b;border-radius:12px;
    padding:9px 10px;color:var(--ink);text-decoration:none;min-width:0;
    box-shadow:0 2px 10px rgba(0,0,0,.35);
  }
  .feedCard:hover{border-color:var(--accent)}
  /* 追記26 (supersedes 追記24's side-by-side card): two lists per
     row even on phones, and each card leads with its WHOLE cover
     collage — a 3x2 grid of up to six thumbs, fully inside the card,
     no inner scrolling and nothing cut off by the card itself —
     with the title and meta small underneath. At 375px wide the
     content box is ~355px, so a card is ~173px, its inner width
     ~153px, one thumb ~49px and the collage ~101px tall; at 320px
     a thumb is still ~40px. object-fit stays cover, the same
     handling as the board tiles. */
  .feedCover{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-bottom:7px}
  .feedCover img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:5px;background:#232842;display:block}
  .feedCard .exploreCardTitle{
    font-size:13.5px;margin-bottom:4px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .feedCard .exploreCardMeta{margin-bottom:0;gap:5px}
  .feedCard .exploreMatch{font-size:11.5px;padding:4px 9px}
  .feedCard .exploreCardTotal{font-size:11.5px}
  .feedCard .exploreCardDate{font-size:11px}
  /* Genre breakdown pills （追記171): the board's .catTab
     colours at card size; .active is the tab's selected look. */
  .feedCatPill{
    border:1px solid var(--line);background:var(--panel2);color:var(--muted);
    border-radius:999px;padding:2px 8px;font-size:11.5px;font-weight:700;white-space:nowrap;
  }
  .feedCatPill.active{background:var(--accent);border-color:var(--accent);color:#fff}
  .feedCatGap{font-size:11.5px;color:var(--muted)}
  /* Card frame + lock （追記180, Posaki 2026-12-03): every feed
     card's visual sits in a frame of ONE fixed height, so a
     list with hundreds of works no longer stretches its card
     — and with it the page — without limit. The heights are
     six mini-tile rows at each step's tile pitch (tile +
     3px gaps), mirroring the size-step rules further down:
     the frame follows the 大/中/小 chips through the same
     #exploreView classes and breakpoints, and the chips
     themselves are untouched. Locked (the default) the frame
     clips its overflow and wheel / touch go to the page;
     the small button at the frame's lower right unlocks it —
     the frame then scrolls its own contents, overscroll
     contained so the page does not take over at the ends.
     Only one card is unlocked at a time (JS). The button and
     the fade at the frame's foot appear only when the
     content actually overflows (JS adds .hasMore after
     measuring); the button is a sibling of the scrolling
     frame, never a passenger of its scroll. */
  .feedCardFrameWrap{position:relative;height:177px;margin-bottom:7px}
  .feedCardFrame{height:100%;overflow:hidden;border-radius:8px}
  .feedCardFrame .miniTierTable{margin-bottom:0}
  .feedCardFrame .feedCover{margin-bottom:0}
  .feedCardFrameWrap.unlocked .feedCardFrame{
    overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  }
  .feedCardFrameWrap.hasMore:not(.unlocked)::after{
    content:"";position:absolute;left:0;right:0;bottom:0;height:24px;
    background:linear-gradient(rgba(0,0,0,0), var(--panel2));
    pointer-events:none;border-radius:0 0 8px 8px;
  }
  .feedCardLockBtn{
    position:absolute;right:6px;bottom:6px;z-index:2;
    font-size:11.5px;font-weight:800;color:var(--ink);line-height:1.2;
    background:rgba(16,20,34,.88);border:1px solid var(--line);
    border-radius:999px;padding:5px 10px;cursor:pointer;
  }
  .feedCardLockBtn[hidden]{display:none}
  /* Picker frame （追記188): the 探す / おすすめ work
     picker （このリストの作品から選ぶ） sits in the same
     kind of frame as a feed card — one fixed height, locked
     by default so wheel / touch scroll the page, the same
     pill button and foot fade (fading to the explore view's
     own surface colour, #0b0e17). The height is the group
     heading block (18px head + its 6px margin) plus three
     tile rows at the picker's own tile steps, measured on
     the real page: 76px tiles with a 6px gap on wide
     screens (24 + 3×76 + 2×6 = 264px), 68px tiles under
     the 640px step (24 + 3×68 + 2×6 = 240px). The lock
     machinery lives with the feed cards' in the app JS
     (pickLockSet / fitPickFrame). */
  .pickFrameWrap{position:relative;height:264px}
  .pickFrame{height:100%;overflow:hidden;border-radius:8px}
  .pickFrameWrap.unlocked .pickFrame{
    overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  }
  .pickFrameWrap.hasMore:not(.unlocked)::after{
    content:"";position:absolute;left:0;right:0;bottom:0;height:24px;
    background:linear-gradient(rgba(0,0,0,0), #0b0e17);
    pointer-events:none;border-radius:0 0 8px 8px;
  }
  .pickLockBtn{
    position:absolute;right:6px;bottom:6px;z-index:2;
    font-size:11.5px;font-weight:800;color:var(--ink);line-height:1.2;
    background:rgba(16,20,34,.88);border:1px solid var(--line);
    border-radius:999px;padding:5px 10px;cursor:pointer;
  }
  .pickLockBtn[hidden]{display:none}
  @media (max-width:640px){
    .pickFrameWrap{height:240px}
  }
  @media (min-width:1024px){
    .feedCardFrameWrap{height:339px}
  }
  @media (min-width:900px){
    .feedList{grid-template-columns:1fr 1fr 1fr;gap:14px}
  }
  .feedMoreBtn{width:100%;min-height:50px;font-size:15px;font-weight:900;border-radius:12px;margin-top:12px}
  .feedMoreBtn[hidden]{display:none}
  #feedSentinel{height:1px}
  .feedCard{position:relative}
  /* Feed manage mode styles （追記33/43） were removed in 追記44:
     deletion UI no longer exists on the public feed at all; a
     list is retired from that list's own page （追記29). */
  /* （追記176) the results form one horizontal strip
     (Posaki 2026-12-03): the wheel turns into sideways
     movement over the strip and ◀ ▶ buttons sit at its
     ends — see the wheel/nav wiring in the script. Cards
     keep their size; the strip scrolls, the page does not
     (until the strip's own end is reached). */
  .recGrid{display:flex;flex-wrap:nowrap;gap:8px;margin-top:12px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .recStripWrap{position:relative}
  .recNavBtn{
    position:absolute;top:50%;transform:translateY(-50%);z-index:2;
    width:36px;height:36px;border-radius:50%;border:1px solid var(--line);
    background:var(--panel);color:var(--ink);font-size:14px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;padding:0;
  }
  .recNavPrev{left:-4px}
  .recNavNext{right:-4px}
  .recNavBtn:disabled{opacity:.35;cursor:default}
  .recNavBtn[hidden]{display:none}
  .recCard{
    flex:0 0 104px;
    display:block;background:var(--panel2);border:1px solid var(--line);border-radius:12px;
    padding:8px;color:var(--ink);text-decoration:none;text-align:center;
  }
  .recCard:hover{border-color:#3a4160}
  .recCard img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px;background:#232842;display:block}
  .recPid{display:block;font-size:11.5px;font-weight:700;color:var(--muted);margin-top:6px;letter-spacing:.02em}
  .recMeta{display:block;font-size:12.5px;font-weight:900;color:var(--ink);margin-top:2px;line-height:1.45}
  /* ---------- recommend results panel （追記96) ----------
     The recommend outcome used to be a bare status line and a
     grid of cards floating straight on the view background —
     ポサキ read it as sloppy leftovers at the bottom of the
     pane. The status, the gauge and the grid now live inside
     one accent-framed panel headed 「おすすめ ○件」, so the
     result reads as a single block. The panel stays hidden
     until a run starts (no empty frame waiting beforehand),
     and the heading only appears once results are on screen;
     the post-run scroll lands on the panel top so the heading
     is the first thing seen. */
  .recPanel{
    margin-top:14px;padding:14px;
    background:var(--panel);border:2px solid var(--accent);border-radius:16px;
    scroll-margin-top:12px;
  }
  .recPanel[hidden]{display:none}
  .recPanelTitle{font-size:16px;font-weight:900;line-height:1.4;margin:0;color:var(--ink)}
  .recPanelTitle[hidden]{display:none}
  .recPanel .exploreStatus{margin:8px 0 0}
  .recPanel .catGauge{margin:10px 0 0}
  .recPanel .recGrid{margin-top:10px}
  @media (max-width:640px){
    .recPanel{padding:12px 10px}
  }
  /* 追記183 (Posaki 2026-12-03): the view switch slims
     on phones (52px -> 40px); PC keeps 54px/15.5px. */
  @media (max-width:640px){
    .mainTab{min-height:40px;font-size:14px;padding:6px 4px}
    .sortChips{display:grid;grid-template-columns:1fr 1fr;gap:6px}
    .sortChip{text-align:center;padding:8px 6px}
    .feedSizeChip{text-align:center;padding:8px 6px}
    .recCard{flex-basis:96px}
    .recNavBtn{display:none}
    .sliderRow{grid-template-columns:46px 1fr 46px;gap:8px}
    .feedSliderRow{grid-template-columns:1fr auto auto}
  }

  /* ---------- phones: readable labels, tappable tiles, calm tray ---------- */
  @media (max-width:640px){
    :root{--tile:80px}
    .wrap{padding:10px 10px 32px}
    /* controls: full-width tappable buttons, no iOS focus zoom */
    .controls{padding:12px;gap:10px;border-radius:12px}
    .addrow{grid-template-columns:1fr}
    textarea#bulkInput{min-height:56px;font-size:16px}
    .addrow .btn{width:100%;min-height:50px;font-size:15px}
    .sharerow{gap:8px}
    .sharerow .btn{flex:1 1 46%;min-height:48px;font-size:14px;padding:10px 8px}
    .status{font-size:13.5px;line-height:1.55}
    .makerBadge{font-size:14px;line-height:1.6;padding:12px 14px}
    .publishNote{font-size:13px;line-height:1.55}
    /* board: wider label column so SSS〜D never gets squeezed */
    .board{padding:12px 8px 10px;border-radius:14px}
    /* 追記183 (Posaki 2026-12-03): the list title slims
       on phones (23px -> 18px); PC keeps the clamp(). */
    .boardTitle{font-size:18px;margin-bottom:12px}
    .boardTitleWrap{margin-bottom:12px}
    .tier{grid-template-columns:70px minmax(0,1fr);min-height:calc(var(--tile) + 14px)}
    .tierLabel{padding:30px 4px 18px}
    .tierLabel .tname{font-size:21px;letter-spacing:.01em}
    .tierLabel .count{font-size:12px;right:6px;bottom:5px}
    .tierBody{gap:7px;padding:7px;min-width:0;min-height:calc(var(--tile) + 14px)}
    .tierBody .emptyNote{font-size:13px}
    .tile .pid{font-size:10.5px;padding:3px 7px}
    /* delete button: small, tucked into the corner and translucent so it
       barely covers the artwork; it turns fully opaque when its tile is
       selected (or pressed / focused). The visible circle is 20px but an
       invisible ::after halo keeps the tap target ~40px. */
    .tile .del,.pool .tile .del{
      width:20px;height:20px;min-height:20px;font-size:11px;
      top:3px;right:3px;border-radius:6px;
      background:rgba(5,7,13,.55);opacity:.55;
    }
    .tile .del::after{content:"";position:absolute;inset:-10px}
    .tile.selected .del,.tile:focus-within .del,.tile .del:active{
      opacity:1;background:rgba(5,7,13,.88);
    }
    /* tray: open state stays under a third of the screen; the closed bar
       is a solid, clearly tappable strip */
    .poolTray{margin:14px -10px -32px;padding:8px 10px calc(10px + env(safe-area-inset-bottom))}
    .poolHead{margin-bottom:8px}
    .poolHead h2{font-size:17px}
    .poolHead .pcount{font-size:13.5px}
    .trayToggle{min-height:44px;padding:8px 18px;font-size:14px;font-weight:900}
    .pool{--tile:72px;max-height:27vh;padding:8px;gap:6px}
    .poolTray.closed{
      background:var(--panel);border-top:1px solid var(--line);
      padding-top:10px;margin-top:14px;
    }
    .poolTray.closed .poolHead{margin-bottom:0}
    .toast{font-size:14px;bottom:calc(16px + env(safe-area-inset-bottom))}
  }
  /* ---------- add bar under the pool （追記51→58) ----------
     The paste-to-add unit (field + 追加 button) sits directly
     under the 未配置 pool in the document （追記51). 追記58:
     Posaki asked for it to follow the screen again — in the
     plain flow, scrolling the board carried it away, so every
     add meant a trip back down to the pool. It now sticks to
     the bottom of the viewport, floating just above the action
     bar (bottom:var(--abarH)), and the pool tray sticks above
     IT (its offset grew by --addH), so the whole add flow —
     paste, press 追加, the work lands in the pool right
     above — stays in one place at any scroll position. Only
     the look follows; the DOM order is unchanged. The
     margin-top compensates the pool tray's negative bottom
     margin (-40px desktop / -32px phones), leaving the same
     ~14px gap either way. Field and button stay side by side
     even on phones (the stacked full-width layout the plain
     .addrow uses on narrow screens would make the unit far too
     tall).
     追記59: Posaki found the bar and the pool hard to tell
     apart — both were plain var(--panel) surfaces stacked in
     the sticky zone. The bar now wears a pale accent tint
     (the --accent blue, rgba(61,155,255,.16), washed over the
     panel tone) with an accent-tinted border, so "paste here"
     reads at a glance while the pool keeps the plain panel
     look. The field inside drops back to the plain panel
     tone, ringed by its own tinted border, so it stays
     obvious inside its own bar. Colour and borders only —
     the 追記58 sticky spec, the size and the show/hide
     conditions are unchanged. */
  .addBar{
    position:sticky;bottom:var(--abarH);z-index:65;
    background:linear-gradient(rgba(61,155,255,.16),rgba(61,155,255,.16)),var(--panel);
    border:1px solid rgba(61,155,255,.55);border-radius:14px;
    padding:10px 12px;margin:54px 0 12px;
    box-shadow:0 10px 28px rgba(0,0,0,.4);
  }
  .addBar textarea#bulkInput{
    background:var(--panel);border-color:rgba(61,155,255,.45);
  }
  .addBar .addrow{grid-template-columns:1fr auto;align-items:stretch}
  .addBar .addrow .btn{width:auto;min-height:64px;padding:12px 24px;font-size:16px}
  @media (max-width:640px){
    .addBar{padding:6px;margin-top:46px}
    .addBar .addrow{grid-template-columns:1fr auto;gap:6px}
    /* 追記144: Posaki's phone screenshot — the bar read far
       too tall: the field is a 2-row textarea at 16px/1.55, so
       the placeholder wrapped to two lines and the whole row
       stood 72px (bar 90px). On phones the row is now one
       line tall: the field is pinned to an explicit height
       (so the rows=2 intrinsic height cannot stretch it
       back) and the button matches it. Desktop is untouched.
       syncAddH() measures the real bar either way, so --addH
       follows with no constant to update.
       追記145: the 144 pass shrank the field's font to 12px so
       the standing placeholder fit that one line — but any
       input under 16px makes iOS Safari zoom the page on
       focus, which is worse. The font is back to 16px and
       the placeholder itself shortens on phones instead (the
       script swaps it under this same breakpoint; the markup
       keeps the long form). The row grows only by the font
       difference: 44px, still far under the old 90px bar. */
    /* 追記173: the phone row grows with the rest of the
       bottom area (44px -> 52px); the field's font stays
       exactly 16px — the 追記145 iOS focus-zoom guard is
       a floor, not a size choice.
       追記181: the row slims back down with the rest of
       the phone bottom area (52px -> 44px, the size the
       144/145 pass had it at); the font stays exactly
       16px for the same zoom guard, and the field's
       vertical padding drops 13px -> 9px so the one line
       of 16px/1.4 text keeps the same content room it
       had at 52px. Desktop is untouched. */
    .addBar textarea#bulkInput{height:44px;min-height:44px;padding:9px 10px;font-size:16px;line-height:1.4}
    .addBar .addrow .btn{width:auto;min-height:44px;padding:7px 14px;font-size:15px}
  }
  /* ---------- bulk import from the DLsite library （追記68) ----------
     A second row inside the add bar: the entry button, and the
     pane that opens under it (paste fallback / count confirmation
     / progress gauge). The pane reuses the plain panel look so it
     reads as part of the bar, and the gauge is the shared
     .catGauge.paneGauge. */
  .bulkImport{margin-top:8px}
  .bulkImport[hidden]{display:none}
  /* 追記122 (branch): the unit wears a heading and starts
     closed — the guide itself lives in .bulkBody, shown
     only when the reader opens it.
     追記123 (branch): the heading is a yellow tab — the
     site's own #ffd83d with dark text — so even closed
     it reads at a glance as something to open. The row
     is built so it cannot break at phone widths: the
     title side shrinks (min-width:0), the toggle never
     shrinks (flex:0 0 auto), the note takes its own
     full row and wraps naturally, and nothing is
     positioned over anything else.
     追記124 (branch): the note also carries the rough
     time the flow takes, in smaller type — an inline
     span on the note's own row, kept whole with
     white-space:nowrap so it wraps as one piece and
     can never break mid-phrase or push the row out.
     追記133 (branch): the tab is compact now — tighter
     padding and gaps, shorter line heights, and the
     note shares the title's row whenever the width
     allows (visual order: title, note, then the
     toggle at the right end), so a wide tab is one
     short strip. At phone widths the note takes its
     own full row again (the media rule below), so
     追記123's no-overflow / no-overlap terms hold:
     the title side still shrinks (min-width:0), the
     toggle still never shrinks, and nothing is
     positioned over anything else. Type sizes are
     unchanged — only the air around them went. */
  .bulkHead{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;background:#ffd83d;border:1px solid #c9a227;border-radius:10px;padding:7px 10px;color:#20232a;cursor:pointer}
  .bulkHeadTitle{order:1;flex:0 1 auto;min-width:0;font-size:14px;font-weight:700;line-height:1.35;margin:0;overflow-wrap:break-word}
  .bulkHeadNote{order:2;flex:1 1 auto;min-width:0;font-size:12.5px;line-height:1.4;margin:0}
  .bulkHeadTime{font-size:11.5px;white-space:nowrap;margin-left:4px}
  .bulkToggle{order:3;flex:0 0 auto;margin-left:auto;min-height:30px;padding:3px 11px;font-size:12px;background:#20232a;border-color:#20232a;color:#fff}
  @media (max-width:640px){.bulkHeadNote{flex:1 1 100%}}
  .bulkBody{margin-top:8px}
  .bulkBody[hidden]{display:none}
  /* 追記162: the code note — one shared block at the
     head of the guide body, ahead of both columns, so
     the PC and phone columns both meet it. It is not a
     step: no marker, no number, and neither column's
     staging selectors reach it. */
  .bulkCodeNote{margin:0 0 8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:8px 12px}
  .bulkCodeNoteTitle{font-size:12.5px;font-weight:700;line-height:1.5;margin:0 0 2px}
  .bulkCodeNoteLine{font-size:12px;line-height:1.6;margin:0;opacity:.85}
  .bulkImportBtn{width:100%;min-height:44px;font-size:14px}
  .bulkImportPane{margin-top:8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
  .bulkImportPane[hidden]{display:none}
  .bulkImportMsg{font-size:13.5px;font-weight:700;line-height:1.6;margin:0 0 8px}
  .bulkImportPane textarea{width:100%;box-sizing:border-box}
  /* 追記131 (branch): the paste field's breathing
     frame (the .bulkBtnPulse toggled in
     refreshBulkJourney) stands down while the field
     itself is focused — the plain focus frame wins. */
  .bulkImportPane textarea.bulkBtnPulse:focus{animation:none;box-shadow:none}
  .bulkImportRow{display:flex;gap:8px;margin-top:8px}
  .bulkImportRow .btn{flex:1 1 0;min-height:44px}
  /* ---------- bulk import step guide （追記83) ----------
     The import journey as three numbered steps wearing the
     same guide language as the create flow （追記81): the
     current step's blue circle marker breathes (.flowPulse),
     the other steps sit dimmed (.flowDim). Decoration only —
     the row is plain in-flow text, the markers swallow no
     pointer events, and no control is ever covered or moved
     by the guide. */
  .bulkSteps{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 8px}
  .bulkStep{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;line-height:1.5}
  .bulkStepMark{
    display:inline-flex;align-items:center;justify-content:center;
    width:20px;height:20px;flex:0 0 auto;border-radius:50%;
    background:var(--accent);color:#fff;font-size:12px;font-weight:900;line-height:1;
    pointer-events:none;
  }
  /* ---------- bulk import journey guide + prep （追記102, branch) ----------
     One guide for the whole journey — 準備する → DLsiteで押す
     → ここで押す — wearing the same language as the create
     flow （追記81) and the old in-pane steps （追記83): the
     current step's circle marker breathes (.flowPulse), the
     other steps sit dimmed (.flowDim), markers swallow no
     pointer events. The prep detail lives inside step 1: its
     own three sub-steps （バー表示 → ドラッグ → 確認） are
     staged the same way, advanced only by the reader's own
     「できた」 button — nothing here guesses at the browser
     chrome it cannot see. The draggable button is a plain
     anchor styled like install.html's: it is pulled onto the
     bookmark bar, never pressed. Rows wrap, so phone widths
     do not push the page sideways. */
  .bulkJourney{display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
  .bulkJStep{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;font-weight:700;line-height:1.5}
  .bulkJMark{
    display:inline-flex;align-items:center;justify-content:center;
    width:20px;height:20px;flex:0 0 auto;border-radius:50%;
    background:var(--accent);color:#fff;font-size:12px;font-weight:900;line-height:1;
    pointer-events:none;
  }
  /* 追記139 (phone-branch): the device switch and the
     phone column. The switch sits at the head of the
     guide body, ahead of the prep section; the phone
     column is a plain guidance list wearing its own
     classes throughout, so the PC column's staging
     selectors (which key off .bulkJStep / .bulkPStep /
     .bulkSStep / [data-opblock]) never reach it, and
     its badges are its own .bulkPhMark — the PC
     column's one badge sequence stays exactly 1→6.
     The journey is display:flex, which would beat its
     hidden flag while the phone column stands, so the
     fold is spelled out like the later operations'
     （追記126). */
  .bulkDeviceRow{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
  .bulkDeviceBtn{min-height:36px;padding:4px 12px;font-size:12.5px}
  .bulkDeviceBtn.active{background:var(--accent);border-color:var(--accent);color:#fff}
  .bulkJourney[hidden]{display:none}
  .bulkPhoneFlow{display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
  .bulkPhoneFlow[hidden]{display:none}
  .bulkPhStep{display:flex;align-items:flex-start;gap:6px;font-size:13px;font-weight:700;line-height:1.6}
  .bulkPhMark{
    display:inline-flex;align-items:center;justify-content:center;
    width:20px;height:20px;flex:0 0 auto;border-radius:50%;
    background:var(--accent);color:#fff;font-size:12px;font-weight:900;line-height:1;
    pointer-events:none;margin-top:2px;
  }
  .bulkPhNote{font-size:12px;line-height:1.6;margin:0 0 0 26px;opacity:.85}
  .bulkPhBtnRow{margin:0 0 0 26px}
  .bulkPhStatus{font-size:12.5px;font-weight:700;line-height:1.6;margin:0 0 0 26px}
  .bulkPhStatus[hidden]{display:none}
  .bulkPhCode{width:100%;box-sizing:border-box}
  .bulkPhCode[hidden]{display:none}
  /* phone guide, shown not told: each phone step wears a
     small animated mock screen (.bulkPhFig) instead of
     sentences — the place to tap glows, a tap ripple
     fires, sheets and menus slide in, the URL field is
     seen emptying before the code lands in it. Pure CSS
     keyframe loops, no picture files. The scenes ride
     absolute-stacked panels (.bulkPhScene) cycled by the
     bulkPhCyc* keyframes; inside a scene, each moving
     part runs the same loop length so the story stays
     in sync. Base styles are the FINAL state of every
     part, so with animations off (reduced motion) each
     figure reads as its finished still: the scenes stack
     in order, the pop-in parts stand shown, the fields
     already hold the new name and the code. All classes
     are phone-only, so the PC column's staging selectors
     cannot reach them. */
  .bulkPhWhy{margin:0 0 0 26px}
  .bulkPhPlat{font-size:13px;font-weight:900;line-height:1.5;margin:6px 0 0;padding:3px 8px;background:var(--panel);border-left:4px solid var(--accent);border-radius:0 6px 6px 0}
  .bulkPhPlatIos{border-left-color:#8e8e93}
  .bulkPhPlatAnd{border-left-color:#3ddc84}
  .bulkPhFig{margin:2px 0 6px 26px;max-width:330px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:8px}
  .bulkPhWhy .bulkPhFig{margin-left:0}
  .bulkPhStage{position:relative}
  .bulkPhStage2{height:166px}
  .bulkPhStage3{height:136px}
  .bulkPhStage4{height:106px}
  .bulkPhStage5{height:94px}
  .bulkPhScene{position:absolute;inset:0}
  .bulkPhCycA{animation:bulkPhCycA 20s linear infinite}
  .bulkPhCycB{animation:bulkPhCycB 20s linear infinite}
  .bulkPhCycC{animation:bulkPhCycC 20s linear infinite}
  .bulkPhCycD{animation:bulkPhCycD 20s linear infinite}
  @keyframes bulkPhCycA{0%,17%{opacity:1}20%,97%{opacity:0}100%{opacity:1}}
  @keyframes bulkPhCycB{0%,20%{opacity:0}23%,37%{opacity:1}40%,100%{opacity:0}}
  @keyframes bulkPhCycC{0%,40%{opacity:0}43%,57%{opacity:1}60%,100%{opacity:0}}
  @keyframes bulkPhCycD{0%,60%{opacity:0}63%,97%{opacity:1}100%{opacity:0}}
  .bulkPhScr{position:relative;height:100%;box-sizing:border-box;background:#0b0e18;border:1px solid var(--line);border-radius:9px;padding:7px;overflow:hidden;font-size:11px;line-height:1.45;color:var(--ink)}
  .bulkPhIco{width:14px;height:14px;flex:0 0 auto;vertical-align:-2px}
  .bulkPhLines i{display:block;height:7px;border-radius:3px;background:var(--line);margin:0 0 6px}
  .bulkPhLines i:last-child{width:62%}
  .bulkPhRow{position:relative;display:flex;align-items:center;gap:6px;padding:5px 7px;border-radius:6px;background:var(--panel);margin:0 0 4px;white-space:nowrap;overflow:hidden}
  .bulkPhRowHi{background:rgba(61,155,255,.18);box-shadow:inset 0 0 0 1px rgba(61,155,255,.65)}
  .bulkPhListHead{font-weight:900;margin:0 0 5px}
  /* the tap: a dot that rings out once per story beat.
     Its base is invisible; each figure's beat has its
     own timing class on the same 6/8/12s loops. */
  .bulkPhTap{position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:rgba(61,155,255,.45);opacity:0;pointer-events:none}
  .bulkPhTap5{animation:bulkPhTap5 6s linear infinite}
  .bulkPhTap8{animation:bulkPhTap8 8s linear infinite}
  .bulkPhTapA{animation:bulkPhTapA 20s linear infinite}
  .bulkPhTapB{animation:bulkPhTapB 20s linear infinite}
  .bulkPhTapC{animation:bulkPhTapC 20s linear infinite}
  .bulkPhTapD{animation:bulkPhTapD 20s linear infinite}
  .bulkPhTapE{animation:bulkPhTapE 20s linear infinite}
  .bulkPhTapF{animation:bulkPhTapF 20s linear infinite}
  @keyframes bulkPhTap5{0%,8%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}12%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}28%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}29%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTap8{0%,4%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}8%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}20%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}21%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTapA{0%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}6%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}7%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTapB{0%,46%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}49%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}55%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTapC{0%,21%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}23%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}29%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTapD{0%,30%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}32%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}38%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTapE{0%,63%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}65%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}71%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTapF{0%,72%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}74%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}80%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  /* step 2: the tab strip — the tier tab stays, a new
     DLsite tab grows out of the + tap, then 購入済作品
     lights up in the page's own header row */
  .bulkPhTabs{display:flex;align-items:flex-end;gap:4px;margin:0 0 6px}
  .bulkPhTab{padding:3px 9px;border-radius:6px 6px 0 0;background:var(--panel);border:1px solid var(--line);border-bottom:none;font-weight:700}
  .bulkPhTabNew{transform-origin:left center;animation:bulkPhTabIn 16s linear infinite}
  @keyframes bulkPhTabIn{0%,6%{transform:scaleX(0);opacity:0}11%,100%{transform:scaleX(1);opacity:1}}
  .bulkPhTabBar{position:absolute;left:7px;right:7px;bottom:7px;padding:5px 6px;border-radius:7px;background:var(--panel)}
  .bulkPhTabBar .bulkPhTabs{margin:0}
  .bulkPhPlus{position:relative;margin-left:auto;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:var(--panel);font-weight:900}
  .bulkPhPageHead{display:flex;gap:10px;padding:5px 7px;border-radius:6px;background:var(--panel);color:var(--muted);margin:0 0 6px}
  .bulkPhHeadHi{color:var(--ink);font-weight:900;box-shadow:0 0 0 2px rgba(61,155,255,.8);border-radius:4px;padding:0 3px;animation:bulkPhHeadHi 16s linear infinite}
  @keyframes bulkPhHeadHi{0%,28%{box-shadow:0 0 0 0 rgba(61,155,255,0)}31%,46%{box-shadow:0 0 0 2px rgba(61,155,255,.8)}49%,100%{box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  .bulkPhLoginHi{color:var(--ink);font-weight:900;border-radius:4px;padding:0 3px;animation:bulkPhLoginHi 16s linear infinite}
  @keyframes bulkPhLoginHi{0%,3%{box-shadow:0 0 0 0 rgba(61,155,255,0)}6%,21%{box-shadow:0 0 0 2px rgba(61,155,255,.8)}24%,100%{box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  /* step 3, scene A: the browser's own bar and the
     sheet / menu that rises off it */
  .bulkPhTool{position:absolute;left:7px;right:7px;bottom:7px;display:flex;justify-content:space-around;align-items:center;padding:5px 4px;border-radius:7px;background:var(--panel)}
  .bulkPhToolIco{position:relative;display:inline-flex;padding:2px 5px;color:var(--muted)}
  .bulkPhShareHi{color:var(--ink);box-shadow:0 0 0 2px rgba(61,155,255,.8);border-radius:6px}
  .bulkPhAddr{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:var(--panel);margin:0 0 6px;color:var(--muted)}
  .bulkPhDots{position:relative;margin-left:auto;padding:0 4px;color:var(--ink);font-weight:900}
  .bulkPhSheet{position:absolute;left:7px;right:7px;bottom:44px;border-radius:9px;background:var(--panel2);border:1px solid var(--line);padding:6px;animation:bulkPhSheetA 20s linear infinite}
  @keyframes bulkPhSheetA{0%,3%{transform:translateY(112%)}7%,17%{transform:translateY(0)}20%,100%{transform:translateY(112%)}}
  .bulkPhMenu{position:absolute;right:7px;top:34px;min-width:118px;border-radius:9px;background:var(--panel2);border:1px solid var(--line);padding:5px;box-shadow:0 8px 20px rgba(0,0,0,.45)}
  .bulkPhMenuA{animation:bulkPhMenuA 20s linear infinite}
  .bulkPhMenuB{animation:bulkPhMenuB 20s linear infinite}
  .bulkPhMenuC{animation:bulkPhMenuC 20s linear infinite}
  @keyframes bulkPhMenuA{0%,5%{opacity:0}9%,17%{opacity:1}20%,100%{opacity:0}}
  @keyframes bulkPhMenuB{0%,49%{opacity:0}53%,58%{opacity:1}61%,100%{opacity:0}}
  @keyframes bulkPhMenuC{0%,24%{opacity:0}28%,36%{opacity:1}39%,100%{opacity:0}}
  .bulkPhPress{position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;border:2px solid rgba(61,155,255,.8);opacity:0;pointer-events:none;animation:bulkPhPressB 20s linear infinite}
  @keyframes bulkPhPressB{0%,45%{opacity:0;transform:scale(.55)}50%{opacity:1}57%,100%{opacity:0;transform:scale(1.25)}}
  .bulkPhEntryB{position:relative;animation:bulkPhEntryHi 20s linear infinite}
  @keyframes bulkPhEntryHi{0%,42%{box-shadow:none}46%,57%{box-shadow:inset 0 0 0 1px rgba(61,155,255,.65);background:rgba(61,155,255,.14)}60%,100%{box-shadow:none}}
  /* step 3, scene B (phonebranch6): opening the list itself —
     the browser's own way in. On iPhone the book icon in
     Safari's bottom bar lights and is tapped; on Android the
     ︙ menu's ブックマーク row. Either way the list panel
     lands at the scene's end, walking straight into scene
     C's long-press on that same list. The panel's base is
     its landed state, so a stilled figure shows it. */
  .bulkPhBookHi{color:var(--ink);box-shadow:0 0 0 2px rgba(61,155,255,.8);border-radius:6px;animation:bulkPhBookHi 20s linear infinite}
  @keyframes bulkPhBookHi{0%,20%{box-shadow:0 0 0 0 rgba(61,155,255,0)}23%,38%{box-shadow:0 0 0 2px rgba(61,155,255,.8)}40%,100%{box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  .bulkPhListPanel{position:absolute;left:7px;right:7px;top:7px;bottom:7px;border-radius:9px;background:#0b0e18;border:1px solid var(--line);padding:7px;animation:bulkPhListIn 20s linear infinite}
  @keyframes bulkPhListIn{0%,27%{opacity:0;transform:translateY(10px)}33%,100%{opacity:1;transform:none}}
  /* step 3, scene C: the edit form — the name is
     rewritten, the URL field is seen emptying before
     the code lands in it, then 保存 lights */
  .bulkPhEditHead{display:flex;align-items:center;justify-content:space-between;color:var(--muted);margin:0 0 7px}
  .bulkPhEditHead b{color:var(--ink)}
  .bulkPhSave{color:var(--accent);font-weight:900;padding:1px 7px;border-radius:6px;box-shadow:0 0 0 2px rgba(61,155,255,.85);animation:bulkPhSaveHi 20s linear infinite}
  @keyframes bulkPhSaveHi{0%,93%{box-shadow:0 0 0 0 rgba(61,155,255,0)}96%,100%{box-shadow:0 0 0 2px rgba(61,155,255,.85)}}
  .bulkPhField{position:relative;display:flex;align-items:center;gap:7px;padding:6px 7px;border-radius:6px;background:var(--panel);margin:0 0 5px}
  .bulkPhPastePop{position:absolute;right:8px;top:-13px;background:var(--accent);color:#fff;font-weight:900;font-size:10px;padding:2px 9px;border-radius:999px;white-space:nowrap;opacity:0;pointer-events:none;animation:bulkPhPastePop 20s linear infinite}
  @keyframes bulkPhPastePop{0%,83%{opacity:0;transform:translateY(3px)}86%,91%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
  /* (phonebranch7, spec 3) the edit's last stretch, acted
     out: the URL field is long-pressed, the すべて選択
     bubble is tapped, the field empties, then a second
     long-press raises the paste bubble (above). The two
     rings ride the press class with their own timings. */
  .bulkPhPressD{animation:bulkPhPressD 20s linear infinite}
  @keyframes bulkPhPressD{0%,70%{opacity:0;transform:scale(.55)}74%{opacity:1}78%,100%{opacity:0;transform:scale(1.25)}}
  .bulkPhPressE{animation:bulkPhPressE 20s linear infinite}
  @keyframes bulkPhPressE{0%,81%{opacity:0;transform:scale(.55)}84%{opacity:1}88%,100%{opacity:0;transform:scale(1.25)}}
  .bulkPhSelPop{position:absolute;right:8px;top:-13px;background:#1d2739;color:var(--ink);border:1px solid rgba(61,155,255,.65);font-weight:900;font-size:10px;padding:2px 9px;border-radius:999px;white-space:nowrap;opacity:0;pointer-events:none;animation:bulkPhSelPop 20s linear infinite}
  @keyframes bulkPhSelPop{0%,76%{opacity:0;transform:translateY(3px)}79%,82%{opacity:1;transform:none}85%,100%{opacity:0;transform:none}}
  .bulkPhFLabel{flex:0 0 auto;color:var(--muted);font-weight:700}
  .bulkPhFVal{position:relative;flex:1;min-width:0;height:16px}
  .bulkPhFVal>span{position:absolute;left:0;top:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bulkPhNameOld{opacity:0;animation:bulkPhNameOld 20s linear infinite}
  .bulkPhNameNew{animation:bulkPhNameNew 20s linear infinite}
  @keyframes bulkPhNameOld{0%,63%{opacity:1;background:rgba(61,155,255,0)}64%,67%{opacity:1;background:rgba(61,155,255,.35)}71%,100%{opacity:0;background:rgba(61,155,255,0)}}
  @keyframes bulkPhNameNew{0%,67%{opacity:0}71%,100%{opacity:1}}
  .bulkPhUrlOld{opacity:0;color:var(--muted);animation:bulkPhUrlOld 20s linear infinite}
  .bulkPhUrlNew{color:var(--accent);animation:bulkPhUrlNew 20s linear infinite}
  @keyframes bulkPhUrlOld{0%,72%{opacity:1;background:rgba(61,155,255,0)}73%,79%{opacity:1;background:rgba(61,155,255,.35)}83%,100%{opacity:0;background:rgba(61,155,255,0)}}
  @keyframes bulkPhUrlNew{0%,87%{opacity:0}91%,100%{opacity:1}}
  /* step 4: the filed bookmark runs — its row lights,
     the copied toast lands; on Android the name typed
     into the address bar offers the same bookmark */
  .bulkPhRunRow{position:relative;animation:bulkPhRunHi 8s linear infinite}
  @keyframes bulkPhRunHi{0%,8%{box-shadow:none}16%,44%{box-shadow:inset 0 0 0 1px rgba(61,155,255,.65);background:rgba(61,155,255,.16)}52%,100%{box-shadow:none}}
  .bulkPhToast{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);background:var(--accent);color:#fff;font-weight:900;padding:5px 12px;border-radius:999px;white-space:nowrap;opacity:0;animation:bulkPhToastA 8s linear infinite}
  @keyframes bulkPhToastA{0%,24%{opacity:0}33%,44%{opacity:1}52%,100%{opacity:0}}
  .bulkPhSugRow{position:relative;animation:bulkPhSugHi 8s linear infinite}
  @keyframes bulkPhSugHi{0%,22%{box-shadow:none}30%,58%{box-shadow:inset 0 0 0 1px rgba(61,155,255,.65);background:rgba(61,155,255,.16)}66%,100%{box-shadow:none}}
  .bulkPhToastB{animation:bulkPhToastB 8s linear infinite}
  .bulkPhTapSug{animation:bulkPhTapSug 8s linear infinite}
  @keyframes bulkPhTapSug{0%,29%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}33%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}45%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhToastB{0%,56%{opacity:0}64%,82%{opacity:1}88%,100%{opacity:0}}
  /* (phonebranch7, spec 2) step 4's Android fallback now
     OPENS the list first, then runs the bookmark — two
     scenes on the figure's 8s loop, with their own beat
     timings for the menu, the run row and the toast. */
  .bulkPhCycE1{animation:bulkPhCycE1 8s linear infinite}
  .bulkPhCycE2{animation:bulkPhCycE2 8s linear infinite}
  @keyframes bulkPhCycE1{0%,42%{opacity:1}48%,100%{opacity:0}}
  @keyframes bulkPhCycE2{0%,48%{opacity:0}54%,100%{opacity:1}}
  .bulkPhMenuD{animation:bulkPhMenuD 8s linear infinite}
  @keyframes bulkPhMenuD{0%,6%{opacity:0}12%,40%{opacity:1}46%,100%{opacity:0}}
  .bulkPhTapD8{animation:bulkPhTapD8 8s linear infinite}
  @keyframes bulkPhTapD8{0%,30%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}34%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}44%,100%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}}
  .bulkPhRunHi2{animation:bulkPhRunHi2 8s linear infinite}
  @keyframes bulkPhRunHi2{0%,54%{box-shadow:none}60%,84%{box-shadow:inset 0 0 0 1px rgba(61,155,255,.65);background:rgba(61,155,255,.16)}90%,100%{box-shadow:none}}
  .bulkPhTapF2{animation:bulkPhTapF2 8s linear infinite}
  @keyframes bulkPhTapF2{0%,59%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}63%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}75%,100%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}}
  .bulkPhToastC{animation:bulkPhToastC 8s linear infinite}
  @keyframes bulkPhToastC{0%,74%{opacity:0}80%,93%{opacity:1}97%,100%{opacity:0}}
  /* step 5: the tab cards — the tier list's card is
     the one to tap, then the read's count lands */
  .bulkPhCards{display:flex;gap:7px}
  .bulkPhCard{position:relative;flex:1;border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:8px 7px;min-height:52px;font-weight:900}
  .bulkPhCardSub{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-top:3px}
  .bulkPhCardHi{box-shadow:0 0 0 2px rgba(61,155,255,.8);animation:bulkPhCardHi 6s linear infinite}
  @keyframes bulkPhCardHi{0%,10%{box-shadow:0 0 0 0 rgba(61,155,255,0)}20%,92%{box-shadow:0 0 0 2px rgba(61,155,255,.8)}100%{box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  .bulkPhChip{position:absolute;left:50%;bottom:2px;transform:translateX(-50%);background:var(--accent);color:#fff;font-weight:900;font-size:11px;padding:4px 11px;border-radius:999px;white-space:nowrap;opacity:0;animation:bulkPhChipA 6s linear infinite}
  @keyframes bulkPhChipA{0%,42%{opacity:0}52%,100%{opacity:1}}
  /* scene chips (phonebranch6): every figure's scene
     carries one short caption inside the picture, riding
     the scene itself — a scene that cycles in brings its
     chip with it, and a scene with several beats (the
     edit) times one chip per beat on the same loop. The
     timed chips' base is hidden; the stilled figure shows
     them all (the reduced-motion block below). */
  .bulkPhCap{position:absolute;top:-7px;left:50%;transform:translateX(-50%);z-index:3;background:#1d2739;color:var(--ink);border:1px solid rgba(61,155,255,.65);font-size:10.5px;font-weight:900;line-height:1.3;padding:2px 9px;border-radius:999px;white-space:nowrap;pointer-events:none}
  .bulkPhCapT{opacity:0}
  .bulkPhCap2A{animation:bulkPhCap2A 16s linear infinite}
  .bulkPhCap2B{animation:bulkPhCap2B 16s linear infinite}
  @keyframes bulkPhCap2A{0%,3%{opacity:0}6%,21%{opacity:1}24%,100%{opacity:0}}
  @keyframes bulkPhCap2B{0%,28%{opacity:0}31%,46%{opacity:1}49%,100%{opacity:0}}
  /* (v53 addition — phonebranch9 からの変更点: step 2's
     filter beats. The purchased-works page lists nothing
     until the reader sets 対象作品 and 購入月 both to
     すべて, so the figure acts the two switches out as
     scenes 3 and 4, the cycle doubles to 16s, and the
     works lines fade in only after both are set. The
     plus tap got its own 16s class (Tap16) because Tap8
     is shared with step 4's 8s figures.) */
  .bulkPhCap2C{animation:bulkPhCap2C 16s linear infinite}
  .bulkPhCap2D{animation:bulkPhCap2D 16s linear infinite}
  @keyframes bulkPhCap2C{0%,53%{opacity:0}56%,71%{opacity:1}74%,100%{opacity:0}}
  @keyframes bulkPhCap2D{0%,78%{opacity:0}81%,95%{opacity:1}98%,100%{opacity:0}}
  .bulkPhTap16{animation:bulkPhTap16 16s linear infinite}
  @keyframes bulkPhTap16{0%,2%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}4%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}10%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}11%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  .bulkPhFilHiA{animation:bulkPhFilHiA 16s linear infinite}
  .bulkPhFilHiB{animation:bulkPhFilHiB 16s linear infinite}
  @keyframes bulkPhFilHiA{0%,50%{box-shadow:none}54%,71%{box-shadow:inset 0 0 0 1px rgba(61,155,255,.65);background:rgba(61,155,255,.16)}75%,100%{box-shadow:none}}
  @keyframes bulkPhFilHiB{0%,75%{box-shadow:none}79%,95%{box-shadow:inset 0 0 0 1px rgba(61,155,255,.65);background:rgba(61,155,255,.16)}100%{box-shadow:none}}
  .bulkPhFilVal{margin-left:auto;font-weight:900;color:var(--accent);opacity:0}
  .bulkPhFilValA{animation:bulkPhFilValA 16s linear infinite}
  .bulkPhFilValB{animation:bulkPhFilValB 16s linear infinite}
  @keyframes bulkPhFilValA{0%,57%{opacity:0}61%,100%{opacity:1}}
  @keyframes bulkPhFilValB{0%,82%{opacity:0}86%,100%{opacity:1}}
  .bulkPhTapFA{animation:bulkPhTapFA 16s linear infinite}
  .bulkPhTapFB{animation:bulkPhTapFB 16s linear infinite}
  @keyframes bulkPhTapFA{0%,54%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}57%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}65%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}66%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  @keyframes bulkPhTapFB{0%,79%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}82%{opacity:1;box-shadow:0 0 0 0 rgba(61,155,255,.6)}90%{opacity:0;box-shadow:0 0 0 14px rgba(61,155,255,0)}91%,100%{opacity:0;box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  .bulkPhWorks{opacity:0;animation:bulkPhWorksIn 16s linear infinite}
  @keyframes bulkPhWorksIn{0%,87%{opacity:0}93%,100%{opacity:1}}
  .bulkPhCapD1{animation:bulkPhCapD1 20s linear infinite}
  .bulkPhCapD2{animation:bulkPhCapD2 20s linear infinite}
  .bulkPhCapD3{animation:bulkPhCapD3 20s linear infinite}
  .bulkPhCapD4{animation:bulkPhCapD4 20s linear infinite}
  @keyframes bulkPhCapD1{0%,61%{opacity:0}63%,70%{opacity:1}72%,100%{opacity:0}}
  @keyframes bulkPhCapD2{0%,70%{opacity:0}72%,78%{opacity:1}80%,100%{opacity:0}}
  @keyframes bulkPhCapD3{0%,79%{opacity:0}81%,91%{opacity:1}93%,100%{opacity:0}}
  @keyframes bulkPhCapD4{0%,92%{opacity:0}94%,100%{opacity:1}}
  /* (phonebranch7, spec 7) a caption can also ride the
     figure's bottom edge — step 4 on iPhone changes
     nothing on screen when it works, and says so there,
     timed to land with the copied toast. */
  .bulkPhCapBtm{top:auto;bottom:-7px}
  .bulkPhCap4C{animation:bulkPhCap4C 8s linear infinite}
  @keyframes bulkPhCap4C{0%,46%{opacity:0}52%,92%{opacity:1}96%,100%{opacity:0}}
  /* one platform at a time (phonebranch6): the flow
     carries the standing platform on its data-plat, set
     from the device and by the platform headings
     themselves, and the other platform's figures and
     notes are simply not shown. The headings stay —
     they are the switch — with the standing one lit. */
  #bulkPhoneFlow[data-plat="ios"] [data-phplat="and"]{display:none}
  #bulkPhoneFlow[data-plat="and"] [data-phplat="ios"]{display:none}
  .bulkPhPlat{cursor:pointer;opacity:.55}
  .bulkPhPlat.active{opacity:1;background:rgba(61,155,255,.14)}
  /* step 4's second way in wears its own tag — it is a
     fallback, not a second route of equal rank */
  .bulkPhFigTag{font-size:11.5px;font-weight:900;line-height:1.5;margin:2px 0 0 26px;color:var(--muted)}
  .bulkPhFigSub{opacity:.92}
  /* scene selector chips (phonebranch7, spec 1): every
     animated figure wears a row of chips under it — one
     per scene, numbered with a short heading, plus a ▶
     chip. A scene chip stills the figure ON that scene
     (the JS sets the animations' own clocks, so the
     still is the scene itself, not a passing frame);
     the ▶ chip hands the figure back to its loop. The
     standing scene's chip is lit, in play as in still —
     a light tracker follows the loop. The figure itself
     is no longer a control; the chips are the one way. */
  .bulkPhFig{position:relative}
  .bulkPhChips{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 8px 26px;max-width:330px}
  .bulkPhWhy .bulkPhChips{margin-left:0}
  .bulkPhChipBtn{min-height:28px;padding:2px 9px;font-size:11px;font-weight:700;line-height:1.3;border-radius:999px;background:var(--panel);border:1px solid var(--line);color:var(--muted);cursor:pointer}
  .bulkPhChipBtn.active{background:var(--accent);border-color:var(--accent);color:#fff}
  .bulkPhFig.bulkPhSel *{animation-play-state:paused !important}
  .bulkPhFig.bulkPhSel::after{content:"❚❚";position:absolute;top:3px;right:7px;font-size:9px;color:var(--accent);pointer-events:none}
  /* still figures (phonebranch7, specs 2/5): the small
     way-in pictures at steps 4 and 5, and step 5's
     closing picture, never move — every part stands at
     its base, which is its finished state, and the tap
     marks are gone. */
  .bulkPhFigStill *{animation:none !important}
  .bulkPhFigStill .bulkPhTap,.bulkPhFigStill .bulkPhPress{display:none}
  .bulkPhStageMini{height:104px}
  .bulkPhStageDone{height:88px}
  .bulkPhAddBtn{display:inline-block;background:var(--accent);color:#fff;font-weight:900;padding:2px 12px;border-radius:7px;box-shadow:0 0 0 2px rgba(61,155,255,.85)}
  /* (phonebranch8) step 1's next button wears the
     breathing ring — and only while it IS the next
     button: the ring rides on .bulkPhArmed, a state
     class the staging pass toggles from the same
     derivation that lights the steps, so a button
     whose half of step 1 is done stops breathing
     the moment the column moves on. */
  .bulkPhTapBtn{position:relative}
  .bulkPhTapBtn.bulkPhArmed::after{content:"";position:absolute;inset:-3px;border-radius:10px;border:2px solid rgba(61,155,255,.75);pointer-events:none;animation:bulkPhBtnRing 1.6s ease-in-out infinite}
  @keyframes bulkPhBtnRing{0%,100%{opacity:.25}50%{opacity:1}}
  /* reduced motion: nothing moves, and every figure
     stands at its finished still — the scenes stack in
     story order, the pop-in parts (menus, the toast,
     the chip) stand shown, the fields already hold the
     new name and the code, the taps are gone */
  @media (prefers-reduced-motion: reduce){
    .bulkPhFig *{animation:none !important}
    .bulkPhStage{height:auto}
    .bulkPhScene{position:static;opacity:1;margin:0 0 6px}
    .bulkPhScene:last-child{margin-bottom:0}
    .bulkPhTap,.bulkPhPress{display:none}
    .bulkPhPop{opacity:1 !important}
    .bulkPhCapT{opacity:1 !important}
    .bulkPhFilVal,.bulkPhWorks{opacity:1 !important}
    .bulkPhTapBtn.bulkPhArmed::after{animation:none}
  }
  /* (phone-branch: スマホ段階表示) the phone steps stage
     like the PC operations: the current step's row
     carries the same blinking line under its number and
     words (.bulkPhCurrent, riding the shared
     bulkPrepLineBlink keyframes — the very animation
     .bulkOpLine wears), the steps before it sit dimmed
     (.flowDim), and the steps after it are not on the
     page at all (.bulkPhGone) until their turn comes.
     All of it is toggled from the one phone derivation
     in refreshBulkPhoneSteps. */
  .bulkPhStep.bulkPhCurrent{position:relative}
  .bulkPhStep.bulkPhCurrent::after{
    content:"";position:absolute;left:0;right:0;bottom:-3px;height:2px;
    border-radius:1px;background:var(--accent);
    animation:bulkPrepLineBlink 1.6s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce){
    .bulkPhStep.bulkPhCurrent::after{animation:none;opacity:1}
  }
  .bulkPhoneFlow>.bulkPhGone{display:none}
  .bulkPrepToggle{margin-left:auto;min-height:32px;padding:4px 12px;font-size:12px}
  /* 追記105 (branch): the step row's own restart button —
     the same small-button shape as the toggle it sits
     beside, so the way back is visible without opening
     the section first. */
  .bulkPrepResetRow{min-height:32px;padding:4px 12px;font-size:12px}
  .bulkPrep{margin:0 0 2px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
  .bulkPrep[hidden]{display:none}
  /* 追記117 (branch): every numbered row's badge starts
     on ONE vertical line. The column sits 26px from the
     unit's left edge — the guide blocks' own margin
     (.bulkGuide margin-left:26px, so the captions' badges
     are already there) — and the other numbered rows are
     brought to the same 26px by their own margins: the
     step-2 row inside its sub-block (below, at
     .bulkSStep) and the prep sub-steps here, whose badge
     has to cross the prep panel's border (1px) and left
     padding (12px) first: 1 + 12 + 13 = 26. */
  .bulkPStep{display:flex;align-items:center;gap:6px;font-size:13px;line-height:1.6;margin:0 0 6px 13px}
  /* 追記113 (branch): the prep sub-steps' marks wear the
     one badge (.bulkJMark) — the old prep-only mark
     class is gone, so every number in the guide is the
     same badge. */
  .bulkPrepBtnRow{margin:8px 0 0}
  .bulkDragBtn{
    display:inline-block;max-width:100%;box-sizing:border-box;
    background:#2f7df6;color:#fff;font-weight:bold;font-size:16px;
    padding:12px 20px;border-radius:10px;text-decoration:none;cursor:grab;
  }
  .bulkPrepNote{font-size:12px;line-height:1.6;margin:6px 0 0;opacity:.8}
  /* 追記102追補 (branch): the declaration button travels with
     the sub-steps (refreshBulkPrepSteps re-parents it), so its
     margins keep it glued to the step directly above: no top
     margin of its own, and a left offset matching the step
     text (18px marker + 6px gap). */
  .bulkPrepNext{margin:0 0 8px 24px}
  /* 追記102追補4 (branch): the way back. The back button
     rides on the same row, directly behind the declaration
     button (refreshBulkPrepSteps re-parents the pair), so
     it keeps the declaration button's own margins apart
     from a small gap; the restart button sits at the top
     of the section. Both are plain .btn, so they inherit
     its 44px min-height — easy to hit on a phone. */
  .bulkPrepBack{margin:0 0 8px 8px}
  .bulkPrepReset{margin:0 0 8px}
  /* 追記104 (branch): the journey's guide pictures sit under
     their step, aligned with the step text (20px marker +
     6px gap). They are plain always-there figures: no code
     path hides, dims or pulses them, so a reader can always
     look back at how each step is supposed to look. The
     frame matches the panels' own border and radius.
     追記105 (branch): each caption line moves in front of
     its picture — words first, then the screen they
     describe. (The small collected-panel picture it
     also sized at 430px is gone with its whole block —
     追記115 — and so is its small-picture rule.) */
  .bulkGuide{margin:0 0 2px 26px}
  .bulkGuide img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:10px}
  /* 追記108 (branch): the header guide picture covers
     the whole DLsite strip, so at full column width it
     looms over the step; cap it at 640px (the standing
     max-width:100% still shrinks it on phones). */
  .bulkGuide img.bulkGuideHeader{width:640px}
  /* 追記106 (branch): the genre-choice strip from the
     purchase page's top row — narrower than the
     full-width pictures, wide enough for its five
     choices to stay readable. */
  .bulkGuideGenre img{width:560px}
  /* 追記105 (branch): the caption line now stands BEFORE
     its picture, so the margin belongs under the words,
     not under the picture. */
  /* 追記112 (branch): the captions are plain explanation
     text, not headings — ordinary size and weight in the
     body's own colour, one step below the step rows. */
  .bulkGuideCap{font-size:14px;font-weight:400;line-height:1.6;margin:0 0 4px;color:var(--ink)}
  /* 追記109 (branch): step 2's guide is walked in three
     sub-blocks (a: the step row and the header picture,
     b: the genre choice, c: the collected panel), staged
     like the prep sub-steps — the current block stands
     plain, the others sit dimmed (.flowDim, toggled in
     refreshBulkJourney's one pass), and one declaration button row
     travels directly under the current block with the
     way back riding beside the next button. The staging
     lives only while the journey itself sits on step 2;
     at any other journey stage every block is plain
     again and the button row is put away. The wrapper
     stacks its row and picture with the journey's own
     rhythm (6px gap), aligned like the guide blocks. */
  .bulkSStep{display:flex;flex-direction:column;gap:6px}
  /* 追記126 (branch): until the receive is prepared, ops
     4-6 are out of the layout entirely (refreshBulkJourney
     sets their hidden flag) — the flex above would
     otherwise beat the hidden attribute. */
  .bulkSStep[hidden]{display:none}
  [data-opblock][hidden]{display:none}
  /* 追記117 (branch): step 2's row carries operation 3's
     badge, so the row itself takes the badge column's
     26px offset (see .bulkPStep above) — its badge then
     stands in the same vertical line as the prep
     sub-steps' and the captions'. Only this row is
     indented: the journey's other rows wear no badge. */
  .bulkSStep .bulkJStep{margin-left:26px}
  .bulkStep2Btns{display:flex;gap:8px;margin:0 0 2px 26px}
  .bulkStep2Btns[hidden]{display:none}
  /* 追記102追補3 (branch): while prep is unfinished the
     declaration button itself breathes (.flowPulse, toggled
     by refreshBulkPrepSteps) so it reads as "press me", and
     the current sub-step's text carries a blinking line
     under it. The line is a pseudo-element under the step's
     text span, present only while that step is current
     (.bulkPCurrent, toggled by the same refresh); it moves
     with the stage. Reduced-motion readers keep a steady
     line and lose both blink and breathing (the shared
     .flowPulse rule stills the button the same way). */
  .bulkPStep>span:last-child{position:relative}
  .bulkPStep.bulkPCurrent>span:last-child::after{
    content:"";position:absolute;left:0;right:0;bottom:-3px;height:2px;
    border-radius:1px;background:var(--accent);
    animation:bulkPrepLineBlink 1.6s ease-in-out infinite;
  }
  @keyframes bulkPrepLineBlink{0%,100%{opacity:.1}50%{opacity:1}}
  @media (prefers-reduced-motion: reduce){
    .bulkPStep.bulkPCurrent>span:last-child::after{animation:none;opacity:1}
  }
  /* 追記110 (branch): the same blinking line rides under
     the current operation's own words beyond the prep
     sub-steps — step 2's row text and the guide captions
     of ③-⑥ (.bulkOpLine, toggled in refreshBulkJourney's
     one pass off the same bulkCurrentOp). Reduced-motion
     readers keep a steady line, as with the prep line. */
  .bulkOpLine{position:relative}
  .bulkOpLine::after{
    content:"";position:absolute;left:0;right:0;bottom:-3px;height:2px;
    border-radius:1px;background:var(--accent);
    animation:bulkPrepLineBlink 1.6s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce){
    .bulkOpLine::after{animation:none;opacity:1}
  }
  /* nothing may push the page sideways on narrow screens */
  .tierBody,.pool{min-width:0}
  .tierLabel .tname,.boardTitle{min-width:0}

  /* ---------- wide screens: bigger by default ----------
     On PC-width viewports the page used to sit in a 1180px
     column with 84px board tiles and 27px card thumbs, which
     read small on a big monitor (Posaki, 2026-12-02: no mode
     or toggle — wide screens just show it big). So at
     min-width:1024px the column widens to the viewport and
     the tiles scale ~1.6x as the plain default. Board and
     pool tiles ride the --tile variable, so the drag ghost
     follows on its own; the card thumbs have fixed px sizes
     and are rescaled here at the same rate. Narrower screens
     keep every existing size exactly. The explore picker
     keeps its own --tile on .exploreGrid and the おすすめ
     work grid is untouched — neither is a list-viewing
     surface. */
  @media (min-width:1024px){
    .wrap{max-width:min(1600px,96vw)}
    .siteFooter{max-width:min(1600px,96vw)}
    .actionBarIn{max-width:min(1600px,96vw)}
    :root{--tile:134px}
    .pool{--tile:128px}
    .tier{grid-template-columns:104px 1fr}
    .tile .pid{font-size:12px;padding:3px 8px}
    .miniTierTiles img{width:54px;height:54px}
    .miniTierLabel{flex-basis:56px;font-size:13px}
    .exploreCardThumbs img{width:88px;height:88px}
    .exploreCardThumbs.full img{width:54px;height:54px}
    .feedList{grid-template-columns:1fr 1fr}
  }

  /* ---------- feed card size steps （追記146, Posaki 2026-12-02) ----------
     The discovery cards get a 大/中/小 switch in the feed bar.
     The steps are classes on #exploreView set from JS — the
     switch itself only swaps the class, nothing re-renders
     and nothing is re-fetched. Every rule lives behind
     min-width:1024px, so narrower screens (phones included)
     keep the layout they already had, whichever step is
     selected. The board is not a .miniTierTiles surface and
     is untouched.
     追記149 (Posaki 2026-12-02, later the same day): the
     steps shift one notch. The old 中 (3 columns, 34px mini
     tiles) becomes 小, the old 大 — the wide-screen default
     from the block above (2 columns, 43px) — becomes 中 and
     needs no override rules at all, and a new 大 sits one
     step above it: still 2 columns, but 54px mini tiles with
     the label column and the card thumb strip scaled along
     (70px -> 88px, the flat wall follows the mini tile).
     The chips also moved up into the 並び替え row (see the
     feed bar markup and the .sortRow rules further down).
     追記163 (Posaki 2026-12-03): the steps now also answer
     below 1024px. Posaki reported on his phone that the
     chips moved but nothing changed — the class swap and
     the stored choice worked, only no rule below 1024px
     answered them. The max-width block under this one
     gives the narrow screens their own steps: 小 packs the
     feed three to a row and shrinks the card tiles, 大
     gives the feed one wide card per row and scales the
     card tiles up, and 中 — here too — is the layout the
     narrow screens already had, so it carries no override
     rules. The wide-screen block above is untouched.
     追記184 (Posaki 2026-12-03, from the preview on his PC):
     on wide screens the steps shift one more notch — the
     current 大 (54px) becomes 中, a new 大 sits one step
     above it at the ladder's own ratio (mini tiles 68px,
     thumb strip 110px, the flat wall follows the mini
     tile at 68px, label column 70px / 14px), and 小 takes
     the old 中 (the wide default: 43px, two columns), so
     the old 小 (34px, three columns) retires on wide
     screens. 中 stays the wide default itself, so the
     block above now carries the old 大 values and the
     frame heights follow (中 339px, 小 273px, 大 423px —
     six tile rows each). The narrow block below is
     untouched: phones keep their three steps exactly. */
  @media (min-width:1024px){
    #exploreView.feedSizeS .miniTierTiles img{width:43px;height:43px}
    #exploreView.feedSizeS .miniTierLabel{flex-basis:46px;font-size:12px}
    #exploreView.feedSizeS .exploreCardThumbs img{width:70px;height:70px}
    #exploreView.feedSizeS .exploreCardThumbs.full img{width:43px;height:43px}
    #exploreView.feedSizeL .miniTierTiles img{width:68px;height:68px}
    #exploreView.feedSizeL .miniTierLabel{flex-basis:70px;font-size:14px}
    #exploreView.feedSizeL .exploreCardThumbs img{width:110px;height:110px}
    #exploreView.feedSizeL .exploreCardThumbs.full img{width:68px;height:68px}
    /* Card frame heights ride the same steps （追記180):
       six tile rows at each step's pitch. */
    #exploreView.feedSizeS .feedCardFrameWrap{height:273px}
    #exploreView.feedSizeL .feedCardFrameWrap{height:423px}
  }
  @media (max-width:1023px){
    #exploreView.feedSizeS .feedList{grid-template-columns:1fr 1fr 1fr;gap:8px}
    #exploreView.feedSizeS .feedCard .exploreCardTitle{font-size:12px}
    #exploreView.feedSizeS .miniTierTiles img{width:20px;height:20px}
    #exploreView.feedSizeS .miniTierLabel{flex-basis:28px;font-size:9px}
    #exploreView.feedSizeS .exploreCardThumbs img{width:32px;height:32px}
    #exploreView.feedSizeS .exploreCardThumbs.full img{width:20px;height:20px}
    #exploreView.feedSizeL .feedList{grid-template-columns:1fr;gap:14px}
    #exploreView.feedSizeL .feedCard .exploreCardTitle{font-size:15px}
    #exploreView.feedSizeL .miniTierTiles img{width:36px;height:36px}
    #exploreView.feedSizeL .miniTierLabel{flex-basis:44px;font-size:11.5px}
    #exploreView.feedSizeL .exploreCardThumbs img{width:56px;height:56px}
    #exploreView.feedSizeL .exploreCardThumbs.full img{width:36px;height:36px}
    /* Card frame heights, narrow steps （追記180). */
    #exploreView.feedSizeS .feedCardFrameWrap{height:135px}
    #exploreView.feedSizeL .feedCardFrameWrap{height:231px}
  }

  /* ---------- view navigation aids （追記148, Posaki 2026-12-02) ----------
     Two small guides for people viewing lists. (1) One of
     the two main tabs always pulses white: JS puts .tabBlink
     on whichever tab is NOT open, and setExploreOpen swaps
     it on every switch, so the way to the other side keeps
     quietly asking for a look. (2) A 大きさ slider drives
     the board tile size: JS writes --tile inline on :root
     (and the pool's own --tile at the board:pool ratio the
     stylesheet keeps), so while no choice is stored every
     responsive default — 134px wide, 80px phone, 84px
     between — stands exactly as it was.
     追記149 revisions (Posaki 2026-12-02, later the same
     day): (1) the pulse blinks the tab's TEXT, not its frame
     — the letters brighten from the tab's muted tone to
     white (with a soft white glow) and back on the same
     1.6s ease; the ring and the background wash are gone.
     (2) The slider strip shrank to a compact width and sat
     sticky at the board's top-left.
     追記150 revisions (Posaki 2026-12-02, evening): (1) the
     pulse rule changed — the first-visit flag
     (tl-feed-seen:v1) is abolished; the closed side's tab
     pulses, forever, alternating with every switch.
     (2) The slider moved out of the board into the bottom
     action bar, in the margin space right of the buttons:
     the bar is fixed to the screen's bottom, so the size
     control now follows along on its own. It keeps a
     compact 180–240px footprint in the bar's row.
     追記151 revision (Posaki 2026-12-02, after seeing the
     combined preview): within the bar, the slider moved
     from the right margin to the head of the row,
     immediately left of the 保存してURLコピー button.
     Footprint, range and storage are unchanged. */
  .mainTab.tabBlink:not(.active){animation:tabBlinkPulse 1.6s ease-in-out infinite}
  @keyframes tabBlinkPulse{
    0%,100%{color:var(--muted);text-shadow:none}
    50%{color:#fff;text-shadow:0 0 10px rgba(255,255,255,.55)}
  }
  @media (prefers-reduced-motion: reduce){
    .mainTab.tabBlink{animation:none}
  }
  /* The slider's home in the action bar （追記150): a
     compact fixed footprint in the bar's flex row — it
     never stretches, and when the bar wraps on a narrow
     screen it wraps as one small unit. */
  .actionBar .tileSizeRow{
    flex:0 1 240px;min-width:200px;min-height:52px;
    grid-template-columns:54px 1fr 48px;gap:6px;
  }
  /* 追記170 (Posaki 2026-12-03): the bar's own controls grow
     with its buttons — the size slider's label, value and thumb
     in the bar only (the same classes serve other sliders
     elsewhere at their existing sizes).
     追記173: they grow once more with the buttons (15px ->
     16px, thumb 30px -> 34px). */
  .actionBar .sliderLab{font-size:16px}
  .actionBar .sliderVal{font-size:16px}
  .actionBar .sliderRow input[type="range"]::-webkit-slider-thumb{width:34px;height:34px;margin-top:-14px}
  .actionBar .sliderRow input[type="range"]::-moz-range-thumb{width:32px;height:32px}
  /* The PNG width slider's home （追記159; widened in
     追記160 for the 画像の幅 label and a 4-digit px
     value): the same compact footprint idea as the
     tile size slider, riding right after the PNG size
     select in the bar's row. */
  .actionBar .pngWidthRow{
    flex:0 1 260px;min-width:220px;min-height:38px;
    grid-template-columns:58px 1fr 52px;gap:6px;
  }
  /* PNG save adjustment screen （追記161): the bar keeps
     only the 画像で保存 button; every PNG adjustment part
     (format select, size select, the width slider, the
     split lines) moved into this dedicated screen, which
     the button opens. The screen carries a height slider
     next to the width one and a live preview of the very
     image that will be saved; nothing is downloaded until
     the screen's own save button is pressed. */
  .pngAdjOverlay{
    position:fixed;inset:0;z-index:200;background:rgba(4,6,12,.74);
    overflow:auto;padding:16px 10px 28px;
  }
  .pngAdjOverlay[hidden]{display:none}
  .pngAdjPanel{
    max-width:880px;margin:0 auto;background:var(--panel);
    border:1px solid var(--line);border-radius:14px;
    padding:14px 14px 16px;box-shadow:0 12px 40px rgba(0,0,0,.5);
  }
  .pngAdjHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
  .pngAdjTitle{font-size:15px;font-weight:900;color:var(--ink)}
  .pngAdjControls{display:grid;gap:6px;margin-bottom:10px}
  .pngAdjSelRow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .pngAdjPanel .pngFmtSel{
    appearance:none;-webkit-appearance:none;border:1px solid var(--line);background:var(--panel2);color:var(--ink);
    border-radius:9px;min-height:38px;padding:5px 8px;font-size:12.5px;font-weight:700;cursor:pointer;
  }
  .pngAdjPanel .sliderRow{grid-template-columns:64px 1fr 56px;gap:6px;min-height:38px}
  .pngAdjPanel .pngSplitPreview,.pngAdjPanel .pngSplitSuggest,.pngAdjPanel .pngSizeInfo{padding:2px 4px 0}
  .pngAdjSize{font-size:12.5px;font-weight:700;color:var(--ink);text-align:center;line-height:1.5}
  #pngAdjCanvas{
    display:block;max-width:100%;height:auto;margin:0 auto;
    background:#0b0e17;border:1px solid var(--line);border-radius:10px;
  }
  .pngAdjNote{font-size:11.5px;color:var(--muted);text-align:center;margin-top:6px;line-height:1.5}
  .pngAdjNote[hidden]{display:none}
  .pngAdjFoot{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
  /* 追記176 (Posaki 2026-12-03): on phones the action bar
     stops free-wrapping — the buttons landed in ragged rows
     of uneven widths and the page showed through the gaps
     (the bar's background is fully opaque now, at every
     width: #0d101a above). Each role gets a fixed row at a
     fixed width: the tag panel keeps the head row, the size
     slider takes a row of its own, 保存してURLコピー a
     full row under it, タグ ▼ / 画像で保存 / Xで投稿する
     share a row in equal thirds, リセット / 戻る / 進む
     share the next in equal thirds with the 全消去を許可
     gate riding at that row's head, and 複数を選ぶ /
     選んだ件を開く split the last row in half. The cluster
     spans dissolve (display:contents) so their children lay
     out as bar items directly; the markup grouping, the
     buttons' text, behaviour and visibility conditions are
     all unchanged, and PC widths keep the free row exactly
     as before. The row breaks are done with percentage
     flex bases (30 / 18 / 45): a 0 basis would let every
     row's items pack onto ONE line, since basis-0 items
     never overflow — the percentages are sized so each
     intended row fills its line and the next row's first
     item always overflows onto a fresh line, while equal
     grow factors keep the buttons within a row equal. The
     reservation needs no new work: syncAbarH （追記171)
     measures whatever height this plan produces. */
  @media (max-width:640px){
    .actionBar .tagPanel{order:0}
    .actionBar .tileSizeRow{order:1;flex:0 0 100%}
    .actionBar #copyUrlBtn{order:2;flex:0 0 100%}
    .actionBar #tagDropBtn{order:3;flex:1 1 30%;min-width:0}
    .actionBar #saveImageBtn{order:3;flex:1 1 30%;min-width:0}
    .actionBar #xPostBtn{order:3;flex:1 1 30%;min-width:0}
    .actionBar .resetCluster,.actionBar .undoCluster,.actionBar .moCluster{display:contents}
    .actionBar .resetGate{order:4;flex:0 0 auto}
    .actionBar #resetBtn{order:4;flex:1 1 18%;min-width:0}
    .actionBar #undoBtn{order:4;flex:1 1 18%;min-width:0}
    .actionBar #redoBtn{order:4;flex:1 1 18%;min-width:0}
    .actionBar .moModeBtn{order:5;flex:1 1 45%;min-width:0}
    .actionBar .moOpenBtn{order:5;flex:1 1 45%;min-width:0}
    /* 追記181 (Posaki 2026-12-03): the row plan stays, the
       SIZES come down — on his real phone the 52px/16px bar
       plus the add bar ate the bottom half of the screen
       ("流石にデカすぎ"). Phones only: buttons 52px/16px ->
       40px/14px, the bar's padding and gaps tighten, the
       size slider's row, thumb (34px -> 22px) and captions
       (16px -> 13.5px) slim with it, and the slider input's
       own height drops 44px -> 32px (and goes display:block
       so the wrap's line strut cannot pad the row back
       out) so the row can follow. PC widths keep 追記173
       exactly. Measured in real Chrome at 390px: the bar
       goes 297px -> 219px, and syncAbarH （追記171)
       follows it down on its own. */
    .actionBar{padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
    .actionBarIn{gap:4px}
    .actionBar .btn{min-height:40px;padding:5px 8px;font-size:14px}
    .actionBar .tileSizeRow{min-height:34px;grid-template-columns:46px 1fr 42px;gap:4px}
    .actionBar .sliderLab{font-size:13.5px}
    .actionBar .sliderVal{font-size:13.5px}
    .actionBar .sliderRow input[type="range"]{display:block;height:32px}
    .actionBar .sliderRow input[type="range"]::-webkit-slider-thumb{width:22px;height:22px;margin-top:-8px}
    .actionBar .sliderRow input[type="range"]::-moz-range-thumb{width:22px;height:22px}
  }
  /* The feed size chips ride the 並び替え row （追記149;
     placement revised in 追記150): one flex row holding two
     stacks built the same way — each caption （並び替え /
     表示サイズ） sits above its own chips. The size group
     stands immediately right of the sort group; nothing is
     pushed to the row's right edge anymore. The chip rows
     keep their own flex boxes (never the phone 3-column
     .sortChips grid), so on narrow screens the two stacks
     simply wrap, and the size steps still carry no layout
     rules below 1024px. */
  .sortRow{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 20px}
  .sortGroup{display:grid}
  .feedSizeGroup{display:grid}
  .feedSizeChips{display:flex;flex-wrap:wrap;gap:6px}
  /* ---------- age gate （年齢確認）: full-screen cover shown
     until the visitor confirms 18+. Display is driven only
     by the tl-age-pending class the head script puts on
     <html>; the gate itself never fetches anything. */
  .ageGate{display:none}
  html.tl-age-pending .ageGate{
    display:flex;position:fixed;inset:0;z-index:20000;
    background:rgba(4,6,11,.92);
    align-items:center;justify-content:center;padding:20px 16px;
  }
  html.tl-age-pending,html.tl-age-pending body{overflow:hidden}
  .ageGateCard{
    background:var(--panel);border:1px solid var(--line);border-radius:16px;
    max-width:420px;width:100%;padding:28px 22px;text-align:center;
    box-shadow:0 12px 40px rgba(0,0,0,.55);
  }
  .ageGateTitle{font-size:20px;font-weight:900;margin:0 0 10px}
  .ageGateText{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 20px}
  .ageGateBtns{display:grid;gap:10px}
  .ageGateBtns .btn{min-height:52px;font-size:15px;width:100%}
  .ageGateDenied{color:var(--ink);font-size:14.5px;line-height:1.6;margin:0}
  /* ---------- feed filter two-column layout （追記180) ----------
     Posaki 2026-12-03: the two feed slider rows sat full-width
     under the checks / sort block, leaving the whole right side
     of those rows empty. On wide screens the feed bar becomes
     two columns: the shared dedup row (moved into the bar as
     its first child, see index.html) and the sort block form
     the left column; the match and size slider rows fill the
     right column, one per row, so the two columns end at the
     same bottom edge. The left items centre vertically in
     their rows so the columns read as one block — nothing
     overlaps and nothing is pushed out of the bar. The
     sliders' markup, values and filtering are untouched, and
     no request behaviour changes. Below 860px the bar keeps
     the stacked layout it already had (the moved dedup row
     still renders first, exactly where it used to sit). */
  .feedBar .dedupRow{margin:-6px 2px 4px}
  @media (min-width:860px){
    .feedBar{
      grid-template-columns:minmax(300px,max-content) minmax(0,1fr);
      grid-template-areas:"checks match" "sort size";
      column-gap:28px;row-gap:10px;
    }
    .feedBar .dedupRow{grid-area:checks;margin:0 2px;align-self:center}
    .feedBar .sortBlock{grid-area:sort;align-self:center}
    #matchSliderRow{grid-area:match}
    #sizeSliderRow{grid-area:size}
  }
  /* ---------- explore selection two-column layout （追記184) ----------
     Posaki 2026-12-03: in 探す / おすすめ the genre-only
     checkbox sat in a full-width stack with the shared
     selection block (the yellow lead, the chosen chips and
     the picker grid) below it, leaving the whole right side
     of the checkbox row empty. The row and the block now
     ride in one grid with the same shape as the feed bar's
     two columns （追記183): the checkbox forms the left
     column, centred vertically against the block, and the
     block fills the right column. While すべて is active
     the checkbox hides and the grid collapses to one column
     (the noPure class, kept in step by renderCatPure), so
     the block spans the full width again. 追記188: the
     checks area is taken by the .discChecks wrapper, which
     stacks the genre-only row over the picker modes' shared
     display checks; the collapse now waits until the wrapper
     shows nothing at all (syncDiscTop), so in 探す /
     おすすめ the column stands on the display checks even
     while すべて is active. In feed mode the
     block is parked back inside the hidden search pane and
     the grid's right cell simply stays empty. Below 860px
     the stack is unchanged: the checkbox first, then the
     block, in document order, with the row's standing
     margins. The block's markup, wording and request
     behaviour are untouched. */
  @media (min-width:860px){
    .discTop{
      display:grid;
      grid-template-columns:minmax(300px,max-content) minmax(0,1fr);
      grid-template-areas:"checks side";
      column-gap:28px;
      margin-bottom:10px;
    }
    .discTop.noPure{display:block}
    .discTop .discChecks{grid-area:checks;align-self:center;margin:0 2px}
    .discTop .catPureRow{margin:0 2px}
    .discTop .discSide{grid-area:side;min-width:0}
  }
