  :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.
     追記193 (Posaki 2026-12-03): the panel slims further
     with the rest of the phone operation screen — step
     text 14px/1.4 -> 13px/1.32, numbers 15px -> 14px,
     panel padding 8px -> 6px, title 13.5px -> 12.5px.
     Same words, same stacked layout; PC is untouched.
     追記195 (Posaki 2026-12-04): the floors themselves go —
     the steps turn three-across in one row (②, the longest,
     takes a 1.16 share), the text drops to 10.5px/1.12 and
     the step words are slimmed (the same buttons named),
     the title drops to 11.5px and the panel padding to
     2px/6px; the grid placement itself lives in the
     追記195 block at the end of the file. */
  @media (max-width:640px){.makeFlow{flex-direction:row}.makeFlow{gap:3px;margin:0}.makeFlowStep{flex:0.92 1 0;padding:2px 4px;gap:2px}.makeFlowTxt{font-size:10.5px;line-height:1.12}.makeFlowNum{font-size:11px;line-height:1.12}.makePanel{padding:2px 6px}.makePanelTitle{font-size:11.5px;margin:0}}
  /* 追記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}}
  /* 追記195 (Posaki 2026-12-04): with the equal thirds of
     追記184, step ②'s long sentence wrapped to two lines at
     every PC width (its text alone is wider than a third of
     the panel), and ① wrapped below ~1440px. The three
     sentences are shortened — the quoted button labels stay,
     the word ボタン after them goes (the real buttons sit
     right there and carry the same labels, so the meaning is
     unchanged) — and in the 641–1439px band the steps also
     size to their content (①③ hug, ② takes the rest, the
     追記172 arrangement) at 13px text / 15px numbers with
     tightened padding, which is what the arithmetic needs:
     at 1024px the three texts (285+330+164px at 13px) plus
     the per-step chrome (33px × 3) plus the flow gaps total
     ~890px against a ~907px row. At 1440px and up the equal
     thirds and the base 15px/17px stand as they were, and
     the shortened texts fit them (② 381px against a ~389px
     third, measured). Real-Chrome line counts are in the
     implementation log （追記195). The phone block above is
     untouched; the shorter sentences also reach phones,
     where the steps stack and wrapping was never the issue. */
  @media (min-width:641px) and (max-width:1439px){.makeFlowStep{flex:0 1 auto;padding:6px 6px;gap:4px}.makeFlowStep:nth-child(2){flex:1 1 auto}.makeFlowTxt{font-size:13px}.makeFlowNum{font-size:15px}}
  .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.
     追記193: the button follows the operation-screen
     shrink to 36px — still above the 32px tap floor. */
  @media (max-width:640px){.makePanelBtn{min-height:24px;padding:2px 10px;font-size:12px;line-height:1.2}}
  /* 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}
  }
  /* ---------- 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).
     追記193: -> 180px for the phoneshrink bar (measured
     178px in real Chrome at 390px). */
  :root{--abarH:72px}
  @media (max-width:640px){:root{--abarH:74px}}
  /* 追記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:32px}}
  /* 追記193: the phone fallback follows the slimmed add
     bar (measured 46px); syncAddH rewrites it at boot. */
  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}
    /* grandmerge2: in the long-worded languages the nowrap
       labels (Herramientas・Materiales and kin) outgrew the
       two-column grid's min-content and widened the whole
       page on phones. Non-Japanese labels may wrap (the
       labels carry a ・ break point); Japanese keeps the
       one-line plan untouched. */
    html:not([lang="ja"]) .catTab{white-space:normal}
    .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 fold （追記196): a ▼ chip in the label's top-right
     corner folds the row's tiles away so a long board scans
     as a stack of labels; the label (name + count) stays up.
     The corner is free in the resting layout — the delete
     chip owns the top-left, the count the bottom-right, and
     the wrap lock takes this corner only while the name is
     being edited, so while editing the fold chip steps aside
     and the editing stack owns the label's top until focus
     leaves. 28px keeps the tap target phone-friendly, and
     the label's standing top reserve (padding-top 32px)
     already covers the strip the chip sits in, so the name
     never slides underneath it. Folding hides the body with
     display:none instead of removing it: the tiles keep
     their DOM place, so category filtering, drag state and
     the next render are untouched, the toggle itself needs
     no re-render (scroll position stands), and a drop onto
     the folded row's label still resolves to its body
     exactly as before — the dropped tile appends at the
     row's end. The row's standing min-height is lifted
     while folded, or the emptied row would stay a full
     tile tall. */
  .tierLabel .tierFold{
    position:absolute;top:4px;right:4px;width:28px;height:28px;min-height:28px;border-radius:8px;border:none;
    background:rgba(5,7,13,.55);color:#fff;display:inline-flex;align-items:center;justify-content:center;
    font-size:11px;padding:0;line-height:1;cursor:pointer;opacity:.85;z-index:6;
  }
  .tierLabel .tierFold:hover{opacity:1;background:rgba(5,7,13,.88)}
  .tierLabel.editing .tierFold{display:none}
  .tier.folded{min-height:0}
  .tier.folded .tierBody{display:none}
  /* 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.
     The mode's own buttons ride the board's action bar (as a
     cluster, like the undo pair). (The feed pane's own bar
     and the pick ring on its cards' mini tiles were retired
     in 追記207 — the .moTile class survives only as an inert
     identification marker on mini tiles.) */
  .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}
  .moCluster{display:inline-flex;align-items:center;gap:6px}
  .moModeBtn.on{background:var(--accent);border-color:var(--accent);color:#fff}
  /* 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}
  /* Plan E: the +N remainder chip on a server-capped feed tier
     row — a count badge in the tiles flow, sized to sit
     quietly beside the 27px thumbs at every size step. */
  .miniTierMore{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:27px;padding:0 5px;border-radius:5px;background:#232842;color:var(--muted);font-size:11px;font-weight:700}
  .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:14px}
    .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. */
  /* Language switcher (i18n stage 2): a slim right-aligned row
     above the main tabs; the menu drops down over the page. */
  .langBar{display:flex;justify-content:flex-end;margin-bottom:8px}
  .langSwitch{position:relative}
  .langBtn{
    appearance:none;display:inline-flex;align-items:center;gap:7px;
    background:var(--panel);border:1px solid var(--line);border-radius:999px;
    color:var(--ink);min-height:40px;padding:7px 14px;
    font-size:14px;font-weight:700;line-height:1.2;cursor:pointer;
  }
  .langBtn .langGlobe{flex:none}
  .langBtn .langCaret{font-size:10px;color:var(--muted)}
  .langMenu{
    position:absolute;right:0;top:calc(100% + 6px);z-index:1200;
    min-width:190px;max-height:60vh;overflow-y:auto;
    background:var(--panel);border:1px solid var(--line);border-radius:12px;
    padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.45);
  }
  .langMenu[hidden]{display:none}
  .langItem{
    appearance:none;display:block;width:100%;text-align:left;
    background:transparent;border:1px solid transparent;color:var(--ink);
    border-radius:8px;min-height:40px;padding:9px 12px;
    font-size:14.5px;line-height:1.25;cursor:pointer;
  }
  .langItem.active{background:var(--accent);color:#fff;font-weight:900}
  .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.
     （追記196): the pills are buttons now — each narrows this
     card alone to its genre (the in-card filter in feedCard)
     — and the total chip (.feedCatAll) is the button back to
     the whole card. Pressable reads at a glance: pointer, a
     brighter hover, a small press-down on :active —
     transform and colours only, so the meta line never
     shifts. The picked genre wears .cardSel in the same
     accent fill as .active; a filled pill's hover only
     brightens the fill, so the selected look never breaks.
     The 一致 badge is a plain label, not a genre, and gets
     none of this. */
  .feedCatPill{
    appearance:none;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;
    cursor:pointer;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease,filter .18s ease;
  }
  .feedCatPill:hover{background:#232842;color:var(--ink);border-color:var(--muted)}
  .feedCatPill:active{transform:scale(.95)}
  .feedCatPill.active,.feedCatPill.cardSel{background:var(--accent);border-color:var(--accent);color:#fff}
  .feedCatPill.active:hover,.feedCatPill.cardSel:hover{background:var(--accent);border-color:var(--accent);color:#fff;filter:brightness(1.15)}
  .feedCatAll{
    appearance:none;border:1px solid var(--line);background:var(--panel2);
    border-radius:999px;padding:2px 8px;cursor:pointer;
    transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
  }
  .feedCatAll:hover{background:#232842;border-color:var(--muted)}
  .feedCatAll:active{transform:scale(.95)}
  .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;
    transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease;
  }
  .feedCardLockBtn[hidden]{display:none}
  /* Per-card zoom （追記197): the slider row under a feed
     card's frame. The row is outside the scrolling frame —
     the frame keeps its fixed height at every zoom — and
     above the title and the genre pills, so it touches
     neither. The slider is a plain range input with a
     finger-sized thumb (30px row, 24px thumb). The zoom
     itself is the CSS zoom property the script writes
     inline on .feedCardZoom, scaling the whole board —
     tiles and tier labels together — as one picture. */
  .feedZoomRow{display:flex;align-items:center;gap:7px;margin:0 0 5px}
  .feedZoomLabel{font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap}
  .feedCardZoom{zoom:1}
  .feedZoomSlider{
    -webkit-appearance:none;appearance:none;flex:1;min-width:0;height:30px;
    background:transparent;margin:0;cursor:pointer;touch-action:none;
  }
  .feedZoomSlider::-webkit-slider-runnable-track{height:5px;border-radius:999px;background:var(--line)}
  .feedZoomSlider::-webkit-slider-thumb{
    -webkit-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;
    background:var(--accent);border:2px solid #fff;margin-top:-9.5px;
  }
  .feedZoomSlider::-moz-range-track{height:5px;border-radius:999px;background:var(--line)}
  .feedZoomSlider::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--accent);border:2px solid #fff}
  /* Picker frame （追記188): the 探す / おすすめ work
     picker （このリストの作品から選ぶ） sits in the same
     kind of frame as a feed card — 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 lock machinery lives
     with the feed cards' in the app JS (pickLockSet /
     fitPickFrame).
     Picker frame height （追記196, Posaki 2026-12-04):
     the fixed 264px / 240px heights are gone. The frame
     now grows with its content and stops exactly at the
     content's own height when that fits; the only cap is
     the screen — max-height keeps the whole frame inside
     the viewport, reserving room for the explore pane's
     sticky bottom bar (#selBar, measured 62px tall on
     wide screens and 114px on phones, plus its 8px / 6px
     bottom offset and a 10px margin: 80px / 130px in
     total). Only content taller than that cap is clipped
     and needs the 中を見る unlock, exactly as before.
     The wrap is a flex column so the frame (its one
     in-flow child) takes the wrap's height — content
     height below the cap, the cap above it — while
     scrollHeight keeps reporting the full content to
     fitPickFrame. */
  .pickFrameWrap{position:relative;display:flex;flex-direction:column;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}
  .pickFrame{flex:0 1 auto;min-height:0;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;
    transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease;
  }
  .pickLockBtn[hidden]{display:none}
  /* 中を見る hover grow （追記195): both 中を見る pills — the
     feed cards' and the picker's — swell a little under the
     cursor and dip when pressed, so the button answers back.
     transform only: the frame's layout never moves. The same
     rules cover the unlocked 閉じる state, since unlocking
     changes only the label. Touch has no hover; the :active
     dip is the feedback there. */
  .feedCardLockBtn:hover,.pickLockBtn:hover{
    transform:scale(1.08);background:rgba(30,36,58,.95);
    box-shadow:0 2px 8px rgba(0,0,0,.45);
  }
  .feedCardLockBtn:active,.pickLockBtn:active{transform:scale(.95)}
  @media (max-width:640px){
    .pickFrameWrap{max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px)}
  }
  @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}
  /* Language badge (i18n stage 2): globe + language name, top
     right of the card, shown only on lists stamped with a
     non-Japanese UI language at save time. */
  .feedLangBadge{
    position:absolute;top:8px;right:8px;z-index:2;
    background:rgba(10,12,20,.78);color:#fff;border:1px solid rgba(255,255,255,.35);
    border-radius:999px;padding:3px 9px;font-size:11.5px;font-weight:700;line-height:1.3;
    pointer-events:none;white-space:nowrap;
  }
  /* 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
       追記193: the closed strip slims with the operation
       screen — toggle 44px -> 34px, tray padding 8/10px
       -> 5px; the open pool keeps its size. */
    .poolTray{margin:14px -10px -32px;padding:2px 10px calc(2px + env(safe-area-inset-bottom))}
    .poolHead{margin-bottom:8px}
    .poolHead h2{font-size:17px}
    .poolHead .pcount{font-size:13.5px}
    .trayToggle{min-height:22px;padding:1px 10px;font-size:11.5px;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:2px;padding-bottom:2px;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}
  /* 追記196 (addnudge): the one-line guidance the add gate
     unhides inside the bar, and the finite pulse it puts on
     the create button. The pulse is its own class — never
     the flow guide's .flowPulse — so the two guides cannot
     share or steal each other's state; while it runs it
     outranks the stage-1 breathing by source order (this
     block sits later in the file), and when it ends the
     breathing simply resumes. Reduced-motion readers get
     the line and the scroll only: no glow at all. */
  .addNudge{margin:8px 2px 0;font-size:13px;line-height:1.5;font-weight:700;color:var(--accent)}
  /* addnudge rework: the standing emphasis on the create
     button while the add gate is closed — a static outline
     ring, never an animation, so it reads as "start here"
     without moving; the flow guide's breathing owns this
     button's box-shadow and an outline never fights it. */
  .addNudgeStanding{outline:2px solid rgba(61,155,255,.55);outline-offset:2px}
  .addNudgePulse{animation:addNudgeGlow .7s ease-in-out 3}
  @keyframes addNudgeGlow{
    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 6px rgba(61,155,255,.55),0 0 18px 6px rgba(61,155,255,.65)}
  }
  @media (prefers-reduced-motion: reduce){
    .addNudgePulse{animation:none;box-shadow:none}
  }
  @media (max-width:640px){
    .addBar{padding:1px;margin-top:46px}
    /* 追記196 (addnudge): the guidance line keeps one line
       on phones too — smaller type, and the script swaps in
       the shorter sentence under this same breakpoint. */
    .addNudge{font-size:12.5px;margin-top:6px}
    .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.
       追記193: the row slims once more with the operation
       screen (44px -> 36px): the field's font stays
       exactly 16px (the zoom guard), its line-height
       drops to 1.3 and the vertical padding to 6px, so
       the one line (20.8px) still fits the content room
       (36 - 12 padding - 2 border = 22px). */
    .addBar textarea#bulkInput{height:26px;min-height:26px;padding:2px 10px;font-size:16px;line-height:1.2}
    .addBar .addrow .btn{width:auto;min-height:26px;padding:2px 12px;font-size:13px}
  }
  /* 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}
  }

  /* ---------- stickypanel （追記211) ----------
     While the bulk guide is OPEN, the add unit stops
     riding the bottom of the screen. The unit is as tall
     as the guide itself, so the bottom-sticky bar pins
     by its bottom edge and the head of the unit — the
     paste row and the yellow tab — is pushed off the
     top of the screen (measured in a real browser: on a
     phone the row sat entirely above the viewport and
     all but a sliver of the tab was cut; on PC the row
     lost its top half). So while open, the bar goes
     back to the plain flow and the two head pieces
     stick to the TOP instead: the row at top:0, the tab
     directly under it at the measured in-flow distance
     between the two tops (--bulkHeadTop, kept by
     syncBulkStickTop — the syncAddH measure-the-real-
     thing pattern), so paste / 追加 / 閉じる stay at
     hand at any scroll depth in the guide. Closed, none
     of this applies: the bar keeps its 追記58 bottom
     ride, its size and its look untouched.
     While the head is actually stuck (.bulkStuck, kept
     by syncBulkStuck), ::before slabs lend it the
     opaque backdrop the bar's own background gave it
     in the flow — the bar's tint stack behind the row,
     the tab's own yellow behind the tab — each reaching
     across the bar's side padding (and, for the row,
     over the gap before the tab), so the guide sliding
     underneath never shows through. In the flow the
     slabs do not exist, so the just-opened look is
     unchanged. z-index 66: above the pool tray (60),
     below the fixed action bar (70) and the modals. */
  .addBar.bulkOpen{position:static}
  .addBar.bulkOpen .addrow{position:sticky;top:0;z-index:66}
  .addBar.bulkOpen .bulkHead{position:sticky;top:var(--bulkHeadTop,80px);z-index:66}
  /* syncBulkStickTop reads the row-to-tab distance with
     both pieces parked static (a stuck tab's offsetTop
     carries its own sticky shift — see the JS note);
     same specificity as the sticky rules above, later
     in the file, so the read wins for its one task. */
  .addBar.bulkMeasuring .addrow,.addBar.bulkMeasuring .bulkHead{position:static}
  .addBar.bulkStuck .addrow::before{
    content:"";position:absolute;inset:0 -12px -8px;z-index:-1;
    background:linear-gradient(rgba(61,155,255,.16),rgba(61,155,255,.16)),var(--panel);
  }
  .addBar.bulkStuck .bulkHead::before{
    content:"";position:absolute;inset:0 -12px;z-index:-1;border-radius:10px;
    background:#ffd83d;box-shadow:0 12px 26px rgba(0,0,0,.45);
  }
  @media (max-width:640px){
    .addBar.bulkStuck .addrow::before{inset:0 -1px -8px}
    .addBar.bulkStuck .bulkHead::before{inset:0 -1px}
  }
  /* ---------- 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:1 1 52%}
    .actionBar #copyUrlBtn{order:2;flex:1 1 34%}
    .actionBar #tagDropBtn{order:3;flex:1 1 14%;min-width:0}
    .actionBar #saveImageBtn{order:3;flex:1 1 17%;min-width:0}
    .actionBar #xPostBtn{order:3;flex:1 1 18%;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:3;flex:1 1 16%;min-width:0}
    .actionBar .moOpenBtn{order:3;flex:2 1 23%;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.
       追記193 (Posaki 2026-12-03): one more slimming pass
       over the whole phone operation screen — buttons
       40px/14px -> 32px/13px (the 32px tap floor), the
       slider row 34px -> 32px with a 30px input and a
       20px thumb, captions 13.5px -> 12.5px, gaps and
       padding a notch tighter. The bar goes 219px ->
       178px at 390px; the row plan is unchanged and PC
       widths keep 追記173 exactly.
       追記195 (Posaki 2026-12-04): the floors go here too —
       buttons 32px/13px -> 22px/11px, the slider row 32px
       -> 22px with a 22px input and a 16px thumb, captions
       12.5px -> 11px, and the row plan is re-packed in the
       order block above (slider + copy share the first row,
       the multi-open pair joins the share row): three rows,
       73px measured at 390px. */
    .actionBar{padding:1px 4px calc(1px + env(safe-area-inset-bottom))}
    .actionBarIn{gap:2px}
    .actionBar .btn{min-height:22px;padding:2px 4px;font-size:11px}
    .actionBar .tileSizeRow{min-height:22px;grid-template-columns:34px 1fr 30px;gap:3px}
    .actionBar .sliderLab{font-size:11px}
    .actionBar .sliderVal{font-size:11px}
    .actionBar .sliderRow input[type="range"]{display:block;height:22px}
    .actionBar .sliderRow input[type="range"]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-5px}
    .actionBar .sliderRow input[type="range"]::-moz-range-thumb{width:16px;height:16px}
  }
  /* 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}
  }
  /* ---------- phone feed filter shrink （追記193) ----------
     Posaki 2026-12-03: the みんなのリスト filter stack (the
     heading, the mode switch, the genre tabs, the dedup /
     hide-empty checks, the sort and size chip stacks and the
     two slider rows) filled the whole phone screen before
     the first card. (The feed slider inputs also go
     display:block, the phonebar2 lesson: as inline boxes
     their line strut padded each wrap by ~5px.) Phones only: every control stays, in
     the same order, with the same words — only sizes move.
     The genre tabs are the main point (52px/15px -> 34px/
     13px, still three to a row so the longest label
     ツール・素材 fits at 320px too); the mode switch drops
     46px -> 34px, the chips 44px -> 34px, the slider
     inputs 44px -> 32px with 22px thumbs, and the gaps and
     margins tighten a notch throughout. The explore /
     recommend header zone slims along the same lines (the
     yellow lead 18px/1.7 -> 15px/1.5, the sub-headings and
     the selection chips tighten). PC widths are untouched:
     every rule below lives in the phone query, and the
     >=860px two-column feed layout is not affected.
     追記195 (Posaki 2026-12-04): sizes drop once more
     (mode switch 34px -> 26px, chips 34px -> 26px, the
     direction toggle 34px -> 24px, slider inputs 32px ->
     24px with 18px thumbs) and the packing changes in the
     追記195 block: the genre tabs become one scrolling
     row, the dedup pair sits side by side over its note,
     and the sort captions ride inline with their chips.
     The filter span measures 273.3px at 390px. */
  @media (max-width:640px){
    .exploreHead{margin-bottom:2px}
    .modeChips{padding:2px;margin:1px 0 4px}
    .modeChip{min-height:26px;padding:3px 4px;font-size:12px}
    .feedCatTabs{gap:5px;margin-bottom:4px}
    .feedCatTab{min-height:26px;padding:3px 9px;font-size:12px}
    .feedBar{gap:4px;margin-bottom:2px}
    .feedBar .dedupRow{flex-direction:row;flex-wrap:wrap;align-items:center;gap:3px 12px;margin:-4px 2px 0}
    .dedupNote{line-height:1.35}
    .sortLab{font-size:11px;margin-bottom:0}
    .sortChip,.feedSizeChip{min-height:26px;padding:3px 6px;font-size:12px}
    .dirToggle{min-height:24px;padding:2px 9px;font-size:11.5px}
    .feedSliderRow{gap:4px 8px}
    #feedPane .sliderRow input[type="range"]{display:block;height:24px}
    #feedPane .sliderRow input[type="range"]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-6px}
    #feedPane .sliderRow input[type="range"]::-moz-range-thumb{width:18px;height:18px}
    #feedPane .sliderTicks{height:5px;padding:0 10px}
    .exploreLead{font-size:15px;line-height:1.5}
    .exploreSub{font-size:13px;margin:10px 0 6px}
    .exploreChips{min-height:34px}
    .exploreChip{min-height:34px}
    .exploreChip button{width:32px;height:32px}
  }
  /* ---------- phone operation screen shrink, second pass （追記195) ----------
     Posaki 2026-12-04: the first pass （追記193) stopped at
     the old floors (32px tap targets, nothing removed, the
     same words) and landed at 55% of a 390x844 screen on the
     maker side and 59% on the feed side. He rejected those
     floors themselves, so this pass trades them away on
     purpose. The value changes ride in the standing phone
     blocks (their comments carry the 追記195 notes); this
     block carries only the new packing: the make panel
     becomes a grid (title and create button on the first
     row, the three steps three-across under them, the
     longest step taking the wider share), the closed tray's
     heading follows its strip down, the reset gate slims
     with its bar row, the genre tabs become one
     sideways-scrolling strip, the dedup pair sits side by
     side over its note, and the sort captions ride inline
     with their chips. Every control, item and behaviour
     stays; the step words are slimmed with the same buttons
     named. The one floor kept is the add field's 16px font
     (the iOS focus-zoom guard, declared to Posaki).
     Measured in real Chrome at 390px: the maker operation
     screen (panel + closed tray + add bar + action bar)
     goes 464.8px -> 204.3px = 24.2% of 844px (31.0% of
     660px), and the feed filter span goes 496.5px ->
     273.3px = 32.4% of 844px (41.4% of 660px) — the about
     1/4 and about 1/3 he asked for. PC widths are
     untouched: every rule changed or added by this pass
     lives in a max-width:640px query, and the stylesheet
     outside those blocks is identical to grand6. */
  @media (max-width:640px){
    .makePanel{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title btn" "flow flow";column-gap:8px;row-gap:1px;align-items:center}
    .makePanelTitle{grid-area:title}
    .makeFlow{grid-area:flow}
    .makeFlowStep:nth-child(2){flex:1.16 1 0}
    .makePanelBtn{grid-area:btn;width:auto}
    .poolTray.closed .poolHead h2{font-size:13px}
    .actionBar .resetGate{font-size:11px;gap:3px}
    .actionBar .resetGate input{width:16px;height:16px}
    .feedCatTabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
    .feedCatTabs::-webkit-scrollbar{display:none}
    .feedCatTab{flex:0 0 auto;white-space:nowrap}
    .feedBar .dedupBlock{display:contents}
    .feedBar .dedupLabel{min-height:22px;font-size:12.5px;gap:5px}
    .feedBar .dedupLabel input{width:15px;height:15px}
    .feedBar .dedupNote{order:3;flex:0 0 100%;font-size:11px;line-height:1.3}
    .sortRow{gap:4px 6px}
    .sortGroup,.feedSizeGroup{display:flex;align-items:center;gap:4px}
    .sortChips{gap:4px}
    .feedSizeChips{gap:4px}
    .feedSliderRow .sliderLab{font-size:12px}
    .feedSliderRow .sliderVal{font-size:12px}
  }
  /* Release-year range slider （追記200): two range inputs
     stacked over one track inside .yearSliderWrap — the track
     and the in-range fill are plain divs beneath the inputs,
     and the inputs take NO pointer events at all: with two
     native inputs in one box, a browser hands every press
     along the track to whichever input sits on top, so a
     press on one thumb's spot can drag the other thumb
     (measured in a real browser). The script routes presses
     on the wrap to the nearer thumb instead (direction picks
     the thumb when both overlap); the inputs still carry the
     values, focus and keyboard operation. Thumb size and the
     44px row mirror the single sliders' geometry, so a
     finger gets the same target here as on 一致数 / 作品数.
     The row is a flex line like .sliderRow's grid: label,
     track, value, reset. */
  .yearRow{display:flex;align-items:center;gap:10px;margin-bottom:10px}
  .yearRow[hidden]{display:none}
  .yearSliderWrap{position:relative;flex:1;min-width:0;height:44px;touch-action:none;cursor:pointer}
  .yearTrack{position:absolute;left:13px;right:13px;top:50%;height:6px;transform:translateY(-50%);border-radius:999px;background:var(--line)}
  .yearFill{position:absolute;top:0;height:100%;border-radius:999px;background:var(--accent)}
  .yearSliderWrap input[type="range"]{
    -webkit-appearance:none;appearance:none;position:absolute;left:0;top:0;width:100%;height:44px;
    background:transparent;margin:0;pointer-events:none;touch-action:none;
  }
  .yearSliderWrap input[type="range"]::-webkit-slider-runnable-track{background:transparent;height:6px;border:none}
  .yearSliderWrap 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;pointer-events:none;cursor:pointer;
  }
  .yearSliderWrap input[type="range"]::-moz-range-track{background:transparent;height:6px;border:none}
  .yearSliderWrap input[type="range"]::-moz-range-thumb{
    width:24px;height:24px;border-radius:50%;background:var(--accent);border:2px solid #fff;pointer-events:none;cursor:pointer;
  }
  .yearResetBtn{
    appearance:none;border:1px solid var(--accent);background:transparent;color:var(--accent);
    border-radius:999px;min-height:36px;padding:4px 12px;
    font-size:13px;font-weight:900;white-space:nowrap;cursor:pointer;
  }
  /* The button's slot is RESERVED while it is hidden, and the
     value label keeps a fixed min width （追記200): if the
     row's flex layout reflowed the moment a drag first
     narrowed the span (label grows, button appears), the
     slider's width would shrink mid-drag and the thumb would
     race away from the finger — measured on a 390px screen,
     where a half drag landed on the far end. With both slots
     constant, the wrap's geometry never changes. */
  .yearResetBtn[hidden]{display:block;visibility:hidden}
  #yearSliderVal{display:inline-block;min-width:8em}
  /* Phone: the slider takes its own full-width line
     （追記200). In one line with the label, the value and the
     reserved reset slot, a 390px screen leaves the track
     only ~90px — a couple of px per year once real spans
     grow past a few years, too fine for a finger. Wrapped
     to line 2 the track gets the whole row width; the wrap
     order keeps label / value / reset on line 1. */
  @media (max-width: 640px){
    .yearRow{flex-wrap:wrap}
    .yearSliderWrap{flex:1 1 100%;order:3}
  }

/* 追記188: the copy & paste import note under the add field */
  /* ---------- hover affordance for every control （追記196) ----------
     Posaki (2026-12-04): an overall pass over how the page
     feels to operate. Until now the plain .btn answered a
     cursor with a border tint and nothing else, the tabs and
     chips did not answer at all, and the two editable names
     (the list title, the tier names) gave no sign at the
     cursor that they can be clicked into. Every working
     control now answers: buttons lift by brightness (one
     uniform filter, so every state colour — accent primary,
     the yellow create button, the black X button, a filled
     toggle — keeps its own colour and only gets lighter),
     tabs and chips take a lighter ground, and the editable
     names take a faint wash plus a firmer underline. The
     dip rules (:active) are touch's share of the same
     answer, the phone counterpart of hovergrow's pill dip
     （追記195). Nothing here moves a layout: colours,
     brightness and the cursor only. Disabled controls are
     scoped out everywhere below, so a control that cannot
     be pressed never lights up as if it could; selected
     states keep their standing colours and only lift, so
     "where you are" never stops reading at the cursor.
     The 中を見る pills are NOT here — they wear their own
     grow in the hovergrow line （追記195), and the feed
     cards' in-card genre pills belong to the cardgenre
     line; both merge beside this block, not inside it. */
  .btn:not(:disabled):hover{filter:brightness(1.18)}
  .btn:not(:disabled):active{filter:brightness(.94)}
  .langBtn:not(:disabled):hover{filter:brightness(1.18)}
  .langBtn:not(:disabled):active{filter:brightness(.94)}
  .mainTab:not(.active):hover,.modeChip:not(.active):hover{background:#1b2136;color:var(--ink)}
  .mainTab.active:hover,.modeChip.active:hover{filter:brightness(1.12)}
  .mainTab:not(.active):active,.modeChip:not(.active):active{background:#232a45}
  .catTab:not(.active):not(.off):hover,.feedCatTab:not(.active):not(.off):hover,
  .sortChip:not(.active):not(.off):hover,.feedSizeChip:not(.active):not(.off):hover{
    background:#20263c;border-color:#3a4160;color:var(--ink);
  }
  .catTab.active:hover,.feedCatTab.active:hover,
  .sortChip.active:hover,.feedSizeChip.active:hover{filter:brightness(1.13)}
  .catTab:active,.feedCatTab:active,.sortChip:active,.feedSizeChip:active{filter:brightness(.93)}
  .dirToggle:not(:disabled):hover{background:rgba(61,155,255,.14)}
  .dirToggle.max:not(:disabled):hover{background:var(--accent);filter:brightness(1.12)}
  .dirToggle:not(:disabled):active{filter:brightness(.93)}
  .recNavBtn:not(:disabled):hover{border-color:var(--accent);background:#1b2136}
  .recNavBtn:not(:disabled):active{filter:brightness(.93)}
  .rankPick:not(.idle) .rankPickBtn:hover{background:#20263c;border-color:#3a4160}
  .rankPick:not(.idle) .rankPickBtn:active{filter:brightness(.93)}
  .tile:hover{filter:brightness(1.10)}
  .tile:active{filter:brightness(.96)}
  .explorePick:hover{filter:brightness(1.12)}
  .explorePick:active{filter:brightness(.96)}
  .moTile:hover{filter:brightness(1.15)}
  .bulkHead:hover{filter:brightness(1.07)}
  .bulkHead:active{filter:brightness(.97)}
  .bulkPhChipBtn:not(.active):hover{color:var(--ink);border-color:#3a4160}
  .bulkPhChipBtn.active:hover{filter:brightness(1.12)}
  .bulkPhChipBtn:active{filter:brightness(.94)}
  .bulkPhPlat:hover{filter:brightness(1.18)}
  .dedupLabel:hover,.resetGate:hover,.genreTagGate:hover{color:#fff}
  .tierLabel .splitCut:hover{color:#fff}
  .pngFmtSel:hover{border-color:#3a4160;background:#1b2136}
  .sliderRow input[type="range"]:not(:disabled):hover::-webkit-slider-thumb{filter:brightness(1.25)}
  .sliderRow input[type="range"]:not(:disabled):hover::-moz-range-thumb{filter:brightness(1.25)}
  .tierLabel .nameHueIn:hover::-webkit-slider-thumb,.tierLabel .tierHueIn:hover::-webkit-slider-thumb{filter:brightness(1.15)}
  .tierLabel .nameHueIn:hover::-moz-range-thumb,.tierLabel .tierHueIn:hover::-moz-range-thumb{filter:brightness(1.15)}
  /* the editable names: the wash says "this text is a field"
     before the tap, on top of the standing pencil （追記128).
     The title takes the accent wash on the board's dark
     ground; the tier name takes a white wash that reads on
     every tier colour, and its dashed underline firms up. */
  .boardTitle:hover{color:#fff;background:rgba(61,155,255,.07);border-radius:8px}
  .tierLabel .tname:hover{background:rgba(255,255,255,.10);border-bottom-color:rgba(255,255,255,.85)}
  /* the owner entry links are built by script with their
     colour inline, so the hover has to outrank the inline
     style to be seen at all. (The passphrase / claim links
     that shared this rule were removed with their section,
     nopass-build 2026-12-04.) */
  #cfAdminLinkBtn:hover,#cfDeleteListBtn:hover{
    color:#d7e3f5 !important;text-decoration:underline;
  }
  /* ---------- 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}
  /* guidepan: while the guide stands open, its toggle (which
     then reads 閉じる) pulses white three times at the very
     end of the shared 16s loop — after the paste field's
     pulses and the add button's moment — so the flow's last
     step, closing the panel, is seen too. The animation is
     applied only while #bulkBody stands shown (:has), so it
     starts together with the figures on every open and never
     runs on the closed bar. */
  #bulkImport:has(> #bulkBody:not([hidden])) #bulkToggle{animation:bulkClosePulse 16s linear infinite}
  @keyframes bulkClosePulse{0%,90%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}92%{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 14px 4px rgba(255,255,255,.55)}93.5%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}95.5%{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 14px 4px rgba(255,255,255,.55)}97%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}98.5%{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 14px 4px rgba(255,255,255,.55)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}}
  @media (prefers-reduced-motion: reduce){
    #bulkImport:has(> #bulkBody:not([hidden])) #bulkToggle{animation:none;box-shadow:0 0 0 2px rgba(255,255,255,.85)}
  }
  @media (max-width:640px){
    .bulkHeadNote{flex:1 1 100%}
  }
  .bulkBody{margin-top:8px}
  .bulkBody[hidden]{display:none}
  .bulkImportRow .btn{flex:1 1 0;min-height:44px}
  /* ---------- 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;}
  .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}
  .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}
  .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)}
  .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}
  /* 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}
  /* 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)}}
  /* 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}}
  /* 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}
  .bulkPhFigStill .bulkPhTap,.bulkPhFigStill .bulkPhPress{display:none}
  /* 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}
    .bulkPhTap,.bulkPhPress{display:none}
    .bulkPhCapT{opacity:1 !important}
    .bulkPhFilVal,.bulkPhWorks{opacity:1 !important}
  }
  .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:bulkStepLineBlink 1.6s ease-in-out infinite;}
  @media (prefers-reduced-motion: reduce){
    .bulkPhStep.bulkPhCurrent::after{animation:none;opacity:1}
  }
  .bulkPhoneFlow>.bulkPhGone{display:none}
  /* 追記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)}
  .bulkSStep{display:flex;flex-direction:column;gap:6px}
  .bulkSStep[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}
  @keyframes bulkStepLineBlink{0%,100%{opacity:.1}50%{opacity:1}}
  /* ---------- copy & paste import animation (grandmerge2) ----------
     The restored guide's last step, watched and copied rather
     than read: the purchased-works page where a range of rows is
     selected and copied (scene A shows an actual screenshot
     of the page with the list range selected, provided by
     the site owner; the remaining scenes are a likeness), then this site's own add field where
     the paste lands and the work numbers appear. One 16-second
     master clock drives every part, so the scene chips under
     the figure still it on the right moment like the phone
     figures'. The scenes live inside #bulkBody, so the loop
     runs only while the guide stands open. Reduced motion
     trades the loop for the same four frames standing still
     in a column. */
  .bulkCpFig{margin:10px 0 4px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
  .bulkCpStage{position:relative;height:196px}
  .bulkCpFigPc .bulkCpStage{height:204px}
  .bulkCpScene{position:absolute;inset:0;opacity:0}
  .bulkCpSceneA{animation:bulkCpA 16s linear infinite}
  .bulkCpSceneB{animation:bulkCpB 16s linear infinite}
  .bulkCpSceneC{animation:bulkCpC 16s linear infinite}
  .bulkCpSceneD{animation:bulkCpD 16s linear infinite}
  @keyframes bulkCpA{0%,21%{opacity:1}25%,96%{opacity:0}100%{opacity:1}}
  @keyframes bulkCpB{0%,25%{opacity:0}29%,46%{opacity:1}50%,100%{opacity:0}}
  @keyframes bulkCpC{0%,50%{opacity:0}54%,71%{opacity:1}75%,100%{opacity:0}}
  @keyframes bulkCpD{0%,75%{opacity:0}79%,96%{opacity:1}100%{opacity:0}}
  .bulkCpCap{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
  .bulkCpScr{background:#0d1120;border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:118px}
.bulkCpScrPhoto{padding:6px}
/* guidepan: the scene-A photo is the full screenshot now; inside
   the same 144px frame it pans from the top of the page to the
   bottom while scene A is on (the shared 16s loop's first
   quarter) and resets while the scene is hidden, so a chip
   still or the loop restart always finds it at the top. */
.bulkCpPhoto{display:block;width:100%;height:144px;object-fit:cover;object-position:50% 0%;border-radius:6px;animation:bulkCpPan 16s linear infinite}
@keyframes bulkCpPan{0%,2%{object-position:50% 0%}19%,24%{object-position:50% 100%}30%,100%{object-position:50% 0%}}
  .bulkCpHead{display:flex;justify-content:space-between;font-size:12.5px;font-weight:700;border-bottom:1px solid var(--line);padding-bottom:6px;margin-bottom:8px}
  .bulkCpRows{position:relative}
  .bulkCpRow{display:flex;align-items:center;gap:8px;padding:5px 6px;font-size:12px}
  .bulkCpRow i{width:26px;height:26px;border-radius:5px;background:#232842;flex:none}
  .bulkCpBar{flex:1;height:8px;border-radius:4px;background:#2a3050}
  .bulkCpPid{color:var(--muted);font-size:11.5px}
  .bulkCpSel{position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(61,155,255,.18);border:1px solid rgba(61,155,255,.65);border-radius:8px;transform-origin:top;animation:bulkCpSelGrow 16s linear infinite}
  .bulkCpSelFull{animation:none}
  @keyframes bulkCpSelGrow{0%{transform:scaleY(.05)}16%,100%{transform:scaleY(1)}}
  .bulkCpMenu{position:absolute;right:10px;top:4px;background:#f2f4fa;color:#111;border-radius:6px;padding:3px 10px;font-size:12px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.45);animation:bulkCpMenuB 16s linear infinite}
  @keyframes bulkCpMenuB{0%,31%{opacity:0;transform:translateY(3px)}35%,46%{opacity:1;transform:none}50%,100%{opacity:0}}
  .bulkCpField{position:relative;border:1px solid rgba(61,155,255,.45);background:var(--panel);border-radius:8px;min-height:52px;padding:8px 10px;font-size:12.5px}
  /* guidepan: in scene C (the paste scene) the field pulses
     white three times around the paste moment, so the eye lands
     on where the copied numbers go. Scene D's field is a
     different element state and stays un-pulsed. */
  .bulkCpSceneC .bulkCpField{animation:bulkCpFieldPulse 16s linear infinite}
  @keyframes bulkCpFieldPulse{0%,55%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}58.5%{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.9)}61.5%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}64.5%{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.9)}67.5%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}70%{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.9)}72.5%,100%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}}
  .bulkCpFieldTxt{animation:bulkCpFieldIn 16s linear infinite}
  @keyframes bulkCpFieldIn{0%,57%{opacity:0}61%,100%{opacity:1}}
  .bulkCpMenuPaste{top:-14px;right:8px;animation:bulkCpMenuC 16s linear infinite}
  @keyframes bulkCpMenuC{0%,52%{opacity:0;transform:translateY(3px)}56%,63%{opacity:1;transform:none}67%,100%{opacity:0}}
  .bulkCpAddRow{margin-top:10px;text-align:right}
  .bulkCpAddBtn{display:inline-block;background:var(--accent);color:#fff;border-radius:8px;padding:6px 18px;font-size:13px;font-weight:700}
  .bulkCpAddBtnHi{animation:bulkCpAddHi 16s linear infinite}
  @keyframes bulkCpAddHi{0%,79%{box-shadow:0 0 0 0 rgba(61,155,255,0)}84%,92%{box-shadow:0 0 0 5px rgba(61,155,255,.45)}97%,100%{box-shadow:0 0 0 0 rgba(61,155,255,0)}}
  .bulkCpPool{display:flex;gap:6px;margin-top:10px}
  .bulkCpPool i{width:30px;height:30px;border-radius:6px;background:#232842;animation:bulkCpPoolIn 16s linear infinite}
  @keyframes bulkCpPoolIn{0%,83%{opacity:0;transform:translateY(4px)}88%,100%{opacity:1;transform:none}}
  @media (prefers-reduced-motion: reduce){
    .bulkCpStage{height:auto}
    .bulkCpScene{position:static;opacity:1;animation:none;margin-bottom:12px}
    .bulkCpScene *{animation:none !important}
    .bulkCpSel{transform:none}
    .bulkCpFieldTxt{opacity:1}
    .bulkCpMenu{opacity:1}
    .bulkCpSceneC .bulkCpField{border-color:rgba(255,255,255,.8)}
  }
  /* Destination-first placement (rankpick, 追記203): the chosen
     rank's label wears a bright inset ring, readable from
     across the board and on the narrow phone label column
     alike; the name field's dashed underline turns solid
     while its rank is the target. DOM-only chrome — the PNG
     export draws from state, never from the DOM. */
  .tierLabel.destTarget{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 6px rgba(0,0,0,.45)}
  .tierLabel.destTarget .tname{border-bottom:2px solid #fff}
  /* 追記207 (Posaki 2026-12-04): on phones the board's genre tabs
     take the feed chips' form — one nowrap scrolling row — one
     notch larger than the feed chips (feed at <=640px: 26px tall /
     12px text / 3px 9px padding; here: 32px / 14px / 5px 12px).
     The two-column grid plan and the slim 38px tab rule above stay
     in the file for the record but are overridden in this range;
     PC widths keep the wrap plan untouched. The active chip mirrors
     the feed's accent outline (panel bg + accent border/text/900)
     so the two genre rows read as one system. justify-content is
     reset to flex-start: centered content in a scrolling row would
     clip the first chips out of reach. Top padding leaves room for
     the .catTabMark fetching badge, which rides above its tab. */
  @media (max-width:640px){
    .catTabs{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;gap:6px;margin:2px 0 12px;padding:8px 6px 2px}
    .catTabs::-webkit-scrollbar{display:none}
    .catTab{flex:0 0 auto;min-height:32px;padding:5px 12px;font-size:14px;text-align:center;white-space:nowrap}
    html:not([lang="ja"]) .catTab{white-space:nowrap}
    .catTab.active{background:var(--panel);border-color:var(--accent);color:var(--accent);font-weight:900}
  }

/* ---------- open-in-Nukiroku button （追記214) ----------
   The action bar's ヌキロクで開く anchor wears the plain .btn
   dress; the only extra it needs is the anchor underline gone
   (.btn is written for <button>, which has none to remove).
   Visibility is the hidden attribute's job (.btn[hidden]
   already wins over the inline-flex dress). */
.nukiOpenBtn{text-decoration:none}
  /* ---------- pasteglow （追記216, Posaki 2026-12-04) ----------
     The guide's animation teaches two white pulses; the real
     screen now answers with the same two. When the bulk panel
     opens, the paste field itself (#bulkInput, the field the
     guide's step 3 points at) pulses white three times —
     "paste it here". When an add completes while the panel
     stands open, the toggle (which then reads 閉じる) pulses
     white three times — "now close it here". Both wear the
     guide's own values: the field takes scene C's white
     border + 0 0 0 3px rgba(255,255,255,.9) over its standing
     rgba(61,155,255,.45) border; the toggle takes the guide's
     closing ring, 0 0 0 3px rgba(255,255,255,.95) with the
     0 0 14px 4px rgba(255,255,255,.55) halo. Each is a
     one-shot class the script adds for the moment and lifts
     again (bulkGlowPulse in the script): nothing blinks on a
     closed panel, nothing re-fires while typing. Reduced
     motion trades the pulses for the guide's static marks —
     the field a quiet rgba(255,255,255,.8) border, the
     toggle a 0 0 0 2px rgba(255,255,255,.85) ring — and the
     script's timer lifts those after the same few seconds. */
  textarea#bulkInput.bulkGlowField{animation:bulkFieldGlow 2.6s linear 1}
  @keyframes bulkFieldGlow{0%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}10%{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.9)}20%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}32%{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.9)}42%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}54%{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.9)}64%,100%{border-color:rgba(61,155,255,.45);box-shadow:0 0 0 0 rgba(255,255,255,0)}}
  #bulkToggle.bulkGlowClose{animation:bulkCloseGlow 2.6s linear 1}
  @keyframes bulkCloseGlow{0%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}10%{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 14px 4px rgba(255,255,255,.55)}20%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}32%{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 14px 4px rgba(255,255,255,.55)}42%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}54%{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 14px 4px rgba(255,255,255,.55)}64%,100%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 0 rgba(255,255,255,0)}}
  @media (prefers-reduced-motion: reduce){
    textarea#bulkInput.bulkGlowField{animation:none;border-color:rgba(255,255,255,.8)}
    #bulkToggle.bulkGlowClose{animation:none;box-shadow:0 0 0 2px rgba(255,255,255,.85)}
  }
