/* ページ編集（実物のまま直す）— 暖簾AI の画面側。
   ★2026-10-28 持ち主「UX がめちゃくちゃ悪い・Instagram のように」→ ページを広く、道具は押した物に合わせて下の帯に出す形。
   上: ページ・戻す・反映 ／ 真ん中: 実物 ／ 下の帯: 押した物の道具 ／ 右から出る板: 足す・並べ替え・細かい見た目。 */
.le-app {
  --le-bg: #eef0ec; --le-surface: #ffffff; --le-surface2: #f5f6f3; --le-ink: #141a1a; --le-muted: #566360; --le-line: rgba(18,26,26,.12);
  --le-accent: #1b3b6f; --le-accent-ink: #ffffff; --le-accent-soft: rgba(27,59,111,.08); --le-sel: #e2580b; --le-ok: #0f9d6b; --le-warn: #a15c00; --le-bad: #c2410c;
  --le-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  display: flex; flex-direction: column; min-height: 480px; background: var(--le-surface); color: var(--le-ink);
  border: 1px solid var(--le-line); border-radius: 18px; overflow: hidden; font-size: 14px; line-height: 1.6;
  box-shadow: 0 2px 4px rgba(18,26,26,.04), 0 10px 30px rgba(18,26,26,.06);
}
.le-app * { box-sizing: border-box; }
.le-app button, .le-app select, .le-app input, .le-app textarea { font: inherit; color: inherit; }
.le-app button { cursor: pointer; }
.le-app button:disabled { cursor: default; opacity: .35; }
.le-app :focus-visible { outline: 2px solid #2f7de1; outline-offset: 2px; }
.le-app .nav-ico { width: 18px; height: 18px; }
.le-loading { padding: 40px; color: var(--le-muted); }

/* ── 上の帯 ── */
.le-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--le-line); min-width: 0; }
.le-brand { font-weight: 700; white-space: nowrap; font-size: 15px; margin-right: 4px; }
.le-pages { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 0 1 auto; padding: 2px; }
.le-pages::-webkit-scrollbar { display: none; }
.le-pages > .sk-grp { width: 220px; }
.le-pg { border: 1px solid var(--le-line); background: var(--le-surface); border-radius: 999px; padding: 5px 14px; font-size: 13px; white-space: nowrap; color: var(--le-muted); transition: background .15s, color .15s, border-color .15s; }
.le-pg:hover { border-color: rgba(27,59,111,.35); color: var(--le-ink); }
.le-pg[aria-pressed="true"] { background: var(--le-accent); border-color: var(--le-accent); color: #fff; font-weight: 700; }
.le-sp { flex: 1; }
.le-frz { font-size: 12px; color: var(--le-warn); white-space: nowrap; }
.le-status { font-size: 12px; color: var(--le-muted); white-space: nowrap; }
.le-status b { color: var(--le-ok); font-weight: 500; }
.le-err { color: var(--le-bad); }
.le-ic { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--le-ink); position: relative; flex: none; }
.le-ic .le-badge { position: absolute; right: 1px; top: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--le-accent); color: #fff; font-size: 10px; line-height: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.le-ic:hover:not(:disabled) { background: var(--le-surface2); }
.le-dots { width: 18px; height: 4px; display: inline-block; background: radial-gradient(circle, currentColor 1.7px, transparent 2.2px) 0 50% / 6px 4px repeat-x; }
.le-morew { position: relative; flex: none; }
.le-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: var(--le-surface); border: 1px solid var(--le-line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(18,26,26,.16); display: flex; flex-direction: column; }
.le-menu[hidden] { display: none; }
.le-menu button { border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; }
.le-menu button:hover { background: var(--le-surface2); }
.le-app .le-pri, .le-pri { border: 0; background: var(--le-accent); color: var(--le-accent-ink); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13.5px; white-space: nowrap; flex: none; box-shadow: 0 4px 12px rgba(27,59,111,.25); }
.le-pri:disabled { box-shadow: none; }
.le-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 8px; border-radius: 10px; background: var(--le-accent-ink); color: var(--le-accent); font-size: 11.5px; text-align: center; font-variant-numeric: tabular-nums; }
.le-btn { border: 1px solid var(--le-line); background: var(--le-surface); border-radius: 999px; padding: 7px 16px; font-size: 13px; white-space: nowrap; }
.le-x { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--le-muted); flex: none; }
.le-x:hover { background: var(--le-surface2); color: var(--le-ink); }
.le-seg { display: inline-flex; border: 1px solid var(--le-line); border-radius: 999px; overflow: hidden; background: var(--le-surface); padding: 2px; gap: 2px; }
.le-seg button { border: 0; background: transparent; padding: 4px 12px; font-size: 12.5px; white-space: nowrap; border-radius: 999px; }
.le-seg button[aria-pressed="true"] { background: var(--le-ink); color: var(--le-surface); }
.le-findbar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--le-line); background: var(--le-surface2); }
.le-findbar[hidden] { display: none; }
.le-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--le-line); border-radius: 999px; background: var(--le-surface); padding: 0 6px 0 12px; min-width: 0; flex: 0 1 420px; }
.le-search input { border: 0; background: transparent; padding: 6px 0; min-width: 0; flex: 1; font-size: 13px; }
.le-search input:focus { outline: none; }
.le-search span { font-size: 12px; color: var(--le-muted); white-space: nowrap; }
.le-search button { border: 0; background: transparent; padding: 2px 5px; font-size: 12px; }
.le-banner { padding: 8px 14px; font-size: 12.5px; background: #f2f6fd; border-bottom: 1px solid var(--le-line); color: var(--le-ink); }
.le-banner.warn { background: #fff7e8; color: var(--le-warn); }
.le-banner.err { background: #fdeeee; color: #b42318; }

/* ── 真ん中（実物）と右から出る板 ── */
.le-work { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 0; transition: grid-template-columns .28s cubic-bezier(.22,1,.36,1); }
.le-work.sheet-on { grid-template-columns: minmax(0, 1fr) 340px; }
.le-stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.le-wrap { position: relative; overflow: auto; flex: 1; min-height: 0; background: var(--le-bg); }
.le-canvas { display: flex; justify-content: safe center; align-items: flex-start; padding: 28px 24px 120px; min-width: min-content; }
.le-pane { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.le-box { position: relative; overflow: hidden; flex: none; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(18,26,26,.06), 0 12px 40px rgba(18,26,26,.12); }
.le-canvas.cmp { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 20px; align-items: start; min-width: 0; }
.le-canvas.cmp .le-pane { gap: 8px; }
.le-canvas.cmp .le-box { max-width: 100%; }
.le-pane-sp .le-box { border-radius: 18px; }
.le-pane-h { display: flex; align-items: baseline; gap: 10px; border: 0; background: transparent; padding: 0 4px; font-size: 12px; color: var(--le-muted); text-align: left; cursor: default; }
.le-pane-h b { font-size: 13px; color: var(--le-ink); }
.le-pane-h[aria-pressed="true"] span { color: var(--le-sel); font-weight: 700; }
.le-pane.view .le-pane-h { cursor: pointer; }
.le-pane.view .le-pane-h span { text-decoration: underline; text-underline-offset: 3px; }
.le-pane.view .le-box { cursor: pointer; opacity: .96; outline: 1px dashed transparent; transition: outline-color .15s; }
.le-pane.view:hover .le-box { outline-color: var(--le-sel); }
.le-phase { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--le-line); background: var(--le-accent-soft); }
.le-phase[hidden] { display: none; }
.le-phase .ph-steps { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--le-muted); min-width: 0; }
.le-phase .ph-steps b { font-weight: 500; white-space: nowrap; }
.le-phase .ph-steps b.on { color: var(--le-accent); font-weight: 700; }
.le-phase .le-pri, .le-phase .le-btn { padding: 6px 12px; font-size: 12.5px; box-shadow: none; }
.le-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; display: block; }
.le-pane.view .le-frame { pointer-events: none; }
.le-sheet { border-left: 1px solid var(--le-line); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--le-surface); }
.le-sheet[hidden] { display: none; }
.le-sh-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 10px 18px; border-bottom: 1px solid var(--le-line); }
.le-sh-h h3 { margin: 0; font-size: 15px; }

/* ── 下の帯（押した物に合わせて中身が変わる）── */
.le-dockw { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; z-index: 5; }
.le-dock { pointer-events: auto; display: flex; align-items: center; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid var(--le-line); border-radius: 18px; padding: 6px; box-shadow: 0 2px 6px rgba(18,26,26,.06), 0 16px 40px rgba(18,26,26,.18); }
.le-dock::-webkit-scrollbar { display: none; }
.le-hint { font-size: 12.5px; color: var(--le-muted); padding: 0 10px 0 8px; white-space: nowrap; }
.le-db { border: 0; background: transparent; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; height: 52px; padding: 4px 8px; border-radius: 12px; font-size: 11px; color: var(--le-ink); white-space: nowrap; flex: none; }
.le-db:hover:not(:disabled) { background: var(--le-surface2); }
.le-db .i { height: 22px; display: grid; place-items: center; }
.le-db .gl { font-size: 17px; font-weight: 700; line-height: 1; font-family: "Noto Sans JP", system-ui, sans-serif; }
.le-db .l { line-height: 1.2; }
.le-db .sw { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08); }
.le-db.pri { background: var(--le-accent); color: #fff; }
.le-db.pri:hover:not(:disabled) { background: #16325f; }
.le-db.danger { color: var(--le-bad); }
.le-db[aria-pressed="true"] { background: var(--le-accent-soft); color: var(--le-accent); }
.le-dsep { width: 1px; height: 30px; background: var(--le-line); margin: 0 6px; flex: none; }
.le-dev { display: inline-flex; border-radius: 999px; background: var(--le-surface2); padding: 3px; gap: 2px; margin: 0 4px; flex: none; }
.le-dev button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; color: var(--le-muted); }
.le-dev button[aria-pressed="true"] { background: var(--le-surface); color: var(--le-ink); font-weight: 700; box-shadow: 0 1px 4px rgba(18,26,26,.14); }
.le-pop { pointer-events: auto; position: absolute; bottom: calc(100% + 10px); left: 0; width: 300px; max-width: calc(100% - 32px); background: var(--le-surface); border: 1px solid var(--le-line); border-radius: 14px; padding: 12px; box-shadow: 0 16px 40px rgba(18,26,26,.2); display: flex; flex-direction: column; gap: 8px; }
.le-pop[hidden] { display: none; }
.le-pop .lab { font-size: 12px; color: var(--le-muted); }
.le-pop .hint { margin: 0; font-size: 11.5px; color: var(--le-muted); }
.le-pop .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.le-pop .chips button, .le-pop .cpick { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); }
.le-pop .cpick { display: grid; place-items: center; font-size: 15px; color: var(--le-muted); background: conic-gradient(#e2580b, #e0a63a, #0f9d6b, #2f7de1, #1b3b6f, #9c4dcc, #e2580b); position: relative; cursor: pointer; overflow: hidden; color: #fff; font-weight: 700; }
.le-pop .cpick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.le-pop .fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.le-pop .fonts button { border: 1px solid var(--le-line); background: var(--le-surface); border-radius: 10px; padding: 8px 10px; font-size: 14px; text-align: left; }
.le-pop .fonts button[aria-pressed="true"] { border-color: var(--le-accent); background: var(--le-accent-soft); color: var(--le-accent); }
.le-pop .adds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.le-pop .adds button { border: 1px solid var(--le-line); background: var(--le-surface); border-radius: 12px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.le-pop .adds button:hover { border-color: rgba(27,59,111,.4); background: var(--le-accent-soft); }
.le-pop .adds b { font-size: 18px; line-height: 1; color: var(--le-accent); }
.le-pop .lrow { display: flex; gap: 6px; }
.le-pop .lrow input { flex: 1; min-width: 0; border: 1px solid var(--le-line); border-radius: 10px; padding: 7px 10px; background: var(--le-surface2); }
.le-pop .lrow .le-pri, .le-pop .lrow .le-btn { padding: 7px 14px; box-shadow: none; }

/* ── 新しいページ ── */
.le-pg-add { flex: none; border-style: dashed; color: var(--le-accent); font-weight: 700; }
.le-pg-add:hover { background: var(--le-accent-soft); }
.le-new { font-style: normal; font-size: 10px; margin-left: 6px; padding: 0 5px; border-radius: 6px; background: #e2580b; color: #fff; vertical-align: 1px; }
.np-step { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.np-step h4 { margin: 0; font-size: 14px; }
.np-n { width: 22px; height: 22px; border-radius: 50%; background: var(--le-accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.np-links { display: flex; flex-direction: column; gap: 6px; }
.np-links button, .np-kinds button { border: 1px solid var(--le-line); background: var(--le-surface); border-radius: 12px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.np-links button b, .np-kinds button b { font-size: 13.5px; }
.np-links small, .np-kinds small { font-size: 11.5px; color: var(--le-muted); line-height: 1.5; }
.np-links em { font-style: normal; color: #e2580b; font-weight: 700; }
.np-links button[aria-pressed="true"], .np-kinds button[aria-pressed="true"] { border-color: var(--le-accent); background: var(--le-accent-soft); box-shadow: inset 0 0 0 1px var(--le-accent); }
.np-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.np-kinds .th { height: 52px; border-radius: 8px; background: var(--le-surface2); display: flex; flex-direction: column; gap: 3px; padding: 6px; overflow: hidden; margin-bottom: 4px; }
.np-kinds .th > span { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.np-kinds .th i { display: block; background: #cfd5dd; border-radius: 2px; }
.np-name { border-top: 0; padding-top: 0; }
.np-addr { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--le-muted); }
.np-addr > span:first-child { margin-right: 6px; }
.np-addr input[type=text] { flex: 1; font-family: var(--le-mono); font-size: 12.5px; padding: 6px 8px; }
.np-pre { font-family: var(--le-mono); }

/* ── 板の中 ── */
.le-pbody { flex: 1; overflow: auto; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.le-pbody .grp { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--le-line); }
.le-pbody .lab { font-size: 12px; color: var(--le-muted); letter-spacing: .04em; }
.le-pbody .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.le-pbody .row > * { min-width: 0; }
.le-pbody .row > span:first-child { min-width: 64px; font-size: 13px; }
.le-pbody .row.chk { font-size: 13.5px; gap: 8px; }
.le-pbody .row.end, .le-modal .row.end { justify-content: flex-end; }
.le-pbody textarea, .le-pbody input[type=text], .le-pbody select, .le-modal input[type=text] { width: 100%; border: 1px solid var(--le-line); background: var(--le-surface2); border-radius: 10px; padding: 8px 10px; }
.le-pbody input[type=range] { flex: 1; accent-color: var(--le-accent); }
.le-pbody input[type=color] { width: 32px; height: 30px; border: 1px solid var(--le-line); border-radius: 8px; background: none; padding: 2px; }
.le-pbody .val { font-family: var(--le-mono); font-size: 12px; min-width: 44px; text-align: right; }
.le-pbody .mini { border: 1px solid var(--le-line); background: var(--le-surface); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.le-pbody .mini.wide { width: 100%; justify-content: center; padding: 10px 14px; font-size: 13.5px; }
.le-pbody .mini.danger { color: var(--le-bad); }
.le-pbody .mini.pri { background: var(--le-accent); color: var(--le-accent-ink); border-color: var(--le-accent); font-weight: 700; }
.le-app .note { font-size: 12px; color: var(--le-muted); background: var(--le-surface2); border-radius: 10px; padding: 9px 12px; margin: 0; }
.le-app .note.warn { color: var(--le-warn); }
.le-pbody .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.le-pbody .chips button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--le-line); padding: 0; }
.le-pbody .folder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.le-pbody .folder button { aspect-ratio: 1; border: 0; border-radius: 8px; cursor: pointer; padding: 0; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.le-pbody .folder button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--le-accent); }
.le-now { display: flex; flex-direction: column; gap: 6px; }
.le-now img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; background: var(--le-surface2); }
.le-posbox { position: relative; width: 100%; border-radius: 10px; overflow: hidden; cursor: grab; touch-action: none; background: var(--le-surface2); box-shadow: inset 0 0 0 1px var(--le-line); max-height: 320px; }
.le-posbox.on { cursor: grabbing; }
.le-posbox img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; pointer-events: none; }
.le-posdot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.le-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.le-part { border: 1px solid var(--le-line); background: var(--le-surface); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.le-part:hover { border-color: rgba(27,59,111,.4); box-shadow: 0 6px 16px rgba(18,26,26,.08); }
.le-part .th { height: 64px; border-radius: 8px; background: var(--le-surface2); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; padding: 8px; }
.le-part .th i { display: block; background: #cfd5dd; border-radius: 3px; }
.th .t1 { width: 60%; height: 7px; background: #9aa6b4 !important; } .th .t2 { width: 80%; height: 4px; } .th .t2.s { width: 64%; }
.th .ph { width: 86%; height: 44px; background: linear-gradient(135deg, #d8cfc2, #b9c2cc) !important; }
.th .ph3 { width: 28%; height: 34px; background: linear-gradient(135deg, #d8cfc2, #b9c2cc) !important; }
.th .vc { width: 42%; height: 40px; background: #fff !important; box-shadow: inset 0 0 0 1px #cfd5dd; border-radius: 6px !important; }
.th .pr { width: 86%; height: 9px; background: linear-gradient(90deg, #cfd5dd 0 50%, transparent 50% 78%, #9aa6b4 78%) !important; }
.th .fq { width: 86%; height: 9px; background: #fff !important; box-shadow: inset 0 0 0 1px #cfd5dd; }
.th .li { width: 70%; height: 6px; background: radial-gradient(circle at 3px 3px, #9aa6b4 2.5px, transparent 3px), linear-gradient(#cfd5dd, #cfd5dd) 10px 0 / calc(100% - 10px) 100% no-repeat !important; background-color: transparent !important; }
.th .ct { width: 40%; height: 14px; border-radius: 999px !important; background: var(--le-accent) !important; }
.le-tree2 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.le-ly { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 12px; border: 1px solid var(--le-line); background: var(--le-surface); cursor: pointer; position: relative; }
.le-ly:hover { border-color: rgba(27,59,111,.35); }
.le-ly.on { border-color: var(--le-sel); background: rgba(226, 88, 11, .06); }
.le-ly .gr { color: var(--le-muted); cursor: grab; display: grid; place-items: center; user-select: none; }
.le-ly .gr.lock { cursor: default; }
.le-ly .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.le-ly .nm small { margin-left: 8px; font-size: 11px; color: var(--le-muted); }
.le-ly.off .nm { opacity: .45; text-decoration: line-through; }
.le-ly .eye { border: 0; background: transparent; padding: 2px 4px; color: var(--le-muted); display: grid; place-items: center; }
.le-ly.drop-before::before, .le-ly.drop-after::after { content: ""; position: absolute; left: 6px; right: 6px; height: 3px; background: var(--le-sel); border-radius: 2px; }
.le-ly.drop-before::before { top: -5px; } .le-ly.drop-after::after { bottom: -5px; }
.le-ly.dragging { opacity: .4; }
.le-app .hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.le-app .hist li { border: 1px solid var(--le-line); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.le-app .hist li.ver { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.le-app .hist time { font-family: var(--le-mono); font-size: 11px; color: var(--le-muted); }
.le-pbody .cssbox { font-family: var(--le-mono); font-size: 12px; min-height: 260px; resize: vertical; }
.le-pbody .kind { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: var(--le-surface2); border: 1px solid var(--le-line); color: var(--le-muted); }
.le-pbody h3 { margin: 6px 0 4px; font-size: 15px; }

.le-modal { position: fixed; inset: 0; background: rgba(10, 16, 28, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10050; }
.le-modal .box { background: var(--le-surface); color: var(--le-ink); border-radius: 18px; max-width: 580px; width: 100%; max-height: 85vh; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.le-modal h2 { margin: 0; font-size: 18px; }
.le-modal .row { display: flex; gap: 8px; }

/* ── 狭い画面（スマホで暖簾AI を開いたとき）: 板は下から出る・下の帯は横に送る ── */
@media (max-width: 820px) {
  .le-app { border-radius: 14px; }
  .le-top { padding: 8px 8px 8px 10px; gap: 2px; }
  .le-brand, .le-status, .le-frz, .le-sp, .le-pub-l { display: none; }
  .le-pages { flex: 1 1 auto; margin-right: 4px; }
  .le-pg-l { display: none; }
  .le-pg-add { padding: 5px 11px; }
  .le-phase .ph-steps { font-size: 11.5px; gap: 4px; }
  .le-ic { width: 32px; }
  .le-app .le-pri { padding: 7px 12px; }
  .le-count { margin-left: 6px; }
  .le-canvas { padding: 14px 10px 110px; }
  .le-work, .le-work.sheet-on { grid-template-columns: minmax(0, 1fr); position: relative; }
  .le-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 64%; z-index: 20; border-left: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(18,26,26,.2); }
  .le-dockw { bottom: 10px; padding: 0 8px; }
  .le-dock { justify-content: flex-start; }
  .le-hint { display: none; }
  .le-db { min-width: 50px; }
}

/* アプリ全体の入力欄の見た目（丸い枠・影）が検索欄の中に二重に出ないように */
.le-app .le-search input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; padding: 4px 0 !important; height: auto !important; }
.le-app .le-pbody select, .le-app .le-pop input[type=text], .le-app .le-pbody input[type=text], .le-app .le-modal input[type=text] { box-shadow: none; height: auto; }

/* ── スケルトン（読み込みの間の薄い型・app.js の _skel）2026-10-19 ── */
.le-sk { position: absolute; inset: 0; z-index: 2; background: #fff; pointer-events: none; }
.le-sk > .sk-grp, .le-sk .sk-frame { height: 100%; }
.le-sk .sk-frame { border-radius: 0; background: #fff; }
.le-canvas > .sk-grp { width: min(100%, 980px); }
.np-kinds .th i { height: 5px !important; }
.np-kinds .th .ph, .np-kinds .th .ph3, .np-kinds .th .vc { height: 12px !important; }
.np-kinds .th .ct { height: 6px !important; }
