/* sukuji Studio：白い面に細い線、黒いカプセル。作業場はトップと同じグレー */
:root{--bg:#eeeeec; --ink:#141414; --mute:#86867f; --hair:#e6e6e2; --soft:#f5f5f3; --blue:#3b82f6; --sel:#2f6ff2;
  --top:56px; --rail:68px; --panel:300px; --insp:272px}
*{box-sizing:border-box}
html, body{margin:0; height:100%; background:var(--bg); color:var(--ink); font:500 13px/1.45 Inter, 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased; overflow:hidden}
button{font:inherit; color:inherit}
svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
#app{display:grid; height:100vh; grid-template-columns:var(--rail) var(--panel) 1fr var(--insp); grid-template-rows:var(--top) 1fr}

/* 上の帯 */
.top{grid-column:1 / -1; display:flex; align-items:center; gap:18px; padding:0 14px 0 16px; background:#fff; border-bottom:1px solid var(--hair); z-index:5}
.brand{display:flex; align-items:center; gap:6px; color:var(--ink); text-decoration:none}
.brand img{height:26px}
.brand b{font:900 19px/1 Nunito, sans-serif; letter-spacing:-.02em}
.brand span{font:700 11px/1 Inter, sans-serif; color:var(--mute); padding:4px 7px; border-radius:6px; background:var(--soft); margin-left:2px}
.appname{font:800 14px/1 Nunito, 'Hiragino Sans', sans-serif; color:var(--mute); max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.top .mid{flex:1; display:flex; justify-content:center; gap:10px}
.frames-ctl, .zoom-ctl{display:flex; align-items:center; gap:2px; height:34px; padding:0 4px; border-radius:10px; background:var(--soft)}
.frames-ctl button, .zoom-ctl button{width:26px; height:26px; border:0; border-radius:7px; background:none; cursor:var(--cur-pointer); font-size:15px; color:#555}
.frames-ctl button:hover, .zoom-ctl button:hover{background:#fff}
.zoom-ctl button.txt{width:auto; padding:0 9px; font-size:12px; font-weight:600}
.frames-ctl span, .zoom-ctl span{min-width:34px; text-align:center; font-weight:700; font-variant-numeric:tabular-nums}
.frames-ctl em{font-style:normal; color:var(--mute); margin:0 4px 0 -4px; font-size:12px}
.top .right{display:flex; align-items:center; gap:6px}
.ic{width:34px; height:34px; border:0; border-radius:10px; background:none; cursor:var(--cur-pointer); display:grid; place-items:center; color:#444}
.ic:hover{background:var(--soft)}
.ic:disabled{opacity:.3; cursor:var(--cur-default)}
.pill{display:inline-flex; align-items:center; justify-content:center; gap:7px; height:36px; padding:0 16px; border:0; border-radius:999px;
  background:var(--ink); color:#fff; font:700 13px/1 Nunito, 'Hiragino Sans', sans-serif; cursor:var(--cur-pointer); text-decoration:none; white-space:nowrap}
.pill svg{width:15px; height:15px}
.pill:hover{background:#2b2b29}
.pill.ghost{background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1px var(--hair)}
.pill.ghost:hover{background:var(--soft)}
.pill:disabled{opacity:.45; cursor:var(--cur-default)}

/* 左のタブ */
.rail{background:#fff; border-right:1px solid var(--hair); display:flex; flex-direction:column; gap:2px; padding:10px 6px}
.rail button{display:flex; flex-direction:column; align-items:center; gap:4px; padding:9px 0 8px; border:0; border-radius:12px; background:none; cursor:var(--cur-pointer); color:#6d6d67; font-size:10.5px; font-weight:600}
.rail button svg{width:20px; height:20px}
.rail button:hover{background:var(--soft); color:var(--ink)}
.rail button.on{background:var(--ink); color:#fff}
.panel{background:#fff; border-right:1px solid var(--hair); overflow-y:auto; padding:16px 14px 40px}
.panel h3{margin:18px 2px 10px; font:800 13px/1.2 Nunito, 'Hiragino Sans', sans-serif; display:flex; justify-content:space-between; align-items:center}
.panel h3:first-child{margin-top:0}
.panel h3 small{font:600 11px Inter, sans-serif; color:var(--mute)}
.panel p.note{margin:0 2px 12px; color:var(--mute); font-size:12px; line-height:1.6}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.grid3{display:grid; grid-template-columns:repeat(3, 1fr); gap:8px}
.tile{position:relative; border:0; padding:0; border-radius:12px; background:var(--soft); overflow:hidden; cursor:var(--cur-pointer); aspect-ratio:1; display:grid; place-items:center}
.tile img{max-width:86%; max-height:86%; object-fit:contain; transition:transform .2s}
.tile.cover img{max-width:none; max-height:none; width:100%; height:100%; object-fit:cover}
.tile.tall{aspect-ratio:.6}
.tile.wide{aspect-ratio:2.1; grid-column:1 / -1}
.tile:hover img{transform:scale(1.04)}
.tile:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.tile .tag{position:absolute; left:6px; top:6px; font:700 10px/1 Inter, sans-serif; padding:4px 6px; border-radius:6px; background:rgba(255,255,255,.9)}
.skel{background:linear-gradient(100deg, #f3f3f1 30%, #fafaf9 50%, #f3f3f1 70%); background-size:300% 100%; animation:sk 1.4s linear infinite}
@keyframes sk{to{background-position:-150% 0}}
.gen-box{border-radius:14px; background:var(--soft); padding:16px; text-align:center}
.gen-box img{height:72px; margin:4px auto 8px; display:block}
.gen-box b{display:block; font:800 14px/1.3 Nunito, 'Hiragino Sans', sans-serif}
.gen-box p{margin:6px 0 12px; color:var(--mute); font-size:12px}
.chips{display:flex; flex-wrap:wrap; gap:6px; margin:8px 0}
.chip{border:0; height:28px; padding:0 11px; border-radius:999px; background:var(--soft); cursor:var(--cur-pointer); font-size:12px; font-weight:600}
.chip:hover{background:#e9e9e6}
.chip.on{background:var(--ink); color:#fff}
.row-in{display:flex; gap:6px}
.row-in input{flex:1; min-width:0}
input[type=text], input[type=number], textarea, select{width:100%; height:34px; border:1px solid var(--hair); border-radius:9px; padding:0 10px; background:#fff; font:inherit; color:var(--ink)}
textarea{height:auto; min-height:70px; padding:8px 10px; resize:vertical; line-height:1.5}
input:focus, textarea:focus, select:focus{outline:none; border-color:#b9b9b4}
.txt-preset{width:100%; border:0; border-radius:12px; background:var(--soft); padding:14px 10px; margin-bottom:8px; cursor:var(--cur-pointer); display:grid; place-items:center; min-height:74px}
.txt-preset:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.txt-preset canvas{max-width:100%; height:auto; max-height:58px}
.dev-card{border:0; border-radius:12px; background:var(--soft); cursor:var(--cur-pointer); padding:10px 6px 8px; display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11.5px; font-weight:600}
.dev-card:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.dev-card canvas, .dev-card img{height:110px; width:auto}
.upl{display:grid; grid-template-columns:repeat(3, 1fr); gap:8px}
.upl .tile{aspect-ratio:.46}
.drop{border:1.5px dashed #d6d6d1; border-radius:12px; padding:16px; text-align:center; color:var(--mute); cursor:var(--cur-pointer); font-size:12px; margin-bottom:12px}
.drop:hover{border-color:var(--ink); color:var(--ink)}

/* レイヤー */
.layers{display:flex; flex-direction:column; gap:3px}
.ly{display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:10px; cursor:var(--cur-pointer); user-select:none}
.ly:hover{background:var(--soft)}
.ly.sel{background:#eef3ff; box-shadow:inset 0 0 0 1.5px var(--sel)}
.ly .th{width:34px; height:34px; border-radius:7px; background:var(--soft) center / contain no-repeat; flex:none}
.ly .nm{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; font-size:12.5px}
.ly .nm small{display:block; color:var(--mute); font-weight:500; font-size:10.5px}
.ly button{width:26px; height:26px; border:0; border-radius:7px; background:none; cursor:var(--cur-pointer); color:#8a8a84; display:grid; place-items:center}
.ly button svg{width:15px; height:15px}
.ly button:hover{background:#fff; color:var(--ink)}
.ly.hid .nm, .ly.hid .th{opacity:.4}
.ly.drag-over{box-shadow:inset 0 2px 0 var(--sel)}

/* 右の設定 */
.insp{background:#fff; border-left:1px solid var(--hair); overflow-y:auto; padding:16px 14px 40px}
.insp h4{margin:0 0 12px; font:800 13px/1.2 Nunito, 'Hiragino Sans', sans-serif; display:flex; align-items:center; justify-content:space-between}
.insp h4 small{font:600 11px Inter, sans-serif; color:var(--mute)}
.sec{padding:12px 0; border-top:1px solid var(--hair)}
.sec:first-of-type{border-top:0; padding-top:0}
.lbl{display:block; margin:10px 0 5px; font-size:11px; font-weight:600; color:var(--mute)}
.f2{display:grid; grid-template-columns:1fr 1fr; gap:6px}
.f2 label, .f3 label{display:flex; align-items:center; gap:5px; height:32px; padding:0 8px; border-radius:9px; background:var(--soft); font-size:11px; color:var(--mute)}
.f2 input, .f3 input{border:0; background:none; height:30px; padding:0; font-weight:600; color:var(--ink); width:100%}
.f3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px}
.seg{display:flex; padding:3px; gap:2px; border-radius:10px; background:var(--soft)}
.seg button{flex:1; height:28px; border:0; border-radius:8px; background:none; cursor:var(--cur-pointer); font-size:11.5px; font-weight:600; color:#666}
.seg button.on{background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.08)}
input[type=range]{width:100%; accent-color:var(--ink)}
.color-row{display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.sw{width:24px; height:24px; border-radius:7px; border:0; cursor:var(--cur-pointer); box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}
.sw.on{box-shadow:0 0 0 2px #fff, 0 0 0 3.5px var(--ink)}
input[type=color]{width:30px; height:26px; border:0; padding:0; background:none; cursor:var(--cur-pointer)}
.acts{display:grid; grid-template-columns:repeat(auto-fit, minmax(36px, 1fr)); gap:6px}
.acts button{height:32px; border:0; border-radius:9px; background:var(--soft); cursor:var(--cur-pointer); display:grid; place-items:center; color:#444}
.acts button:hover{background:#e9e9e6}
.acts button svg{width:16px; height:16px}
.fontlist{max-height:260px; overflow-y:auto; border:1px solid var(--hair); border-radius:10px; padding:4px}
.fontlist button{display:block; width:100%; text-align:left; border:0; background:none; padding:7px 9px; border-radius:7px; cursor:var(--cur-pointer); font-size:16px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fontlist button:hover{background:var(--soft)}
.fontlist button.on{background:var(--ink); color:#fff}
.fontlist button small{display:block; font:500 10px Inter, sans-serif; color:var(--mute); margin-top:2px}
.fontlist button.on small{color:#bbb}
.empty{color:var(--mute); font-size:12px; line-height:1.7}
.empty b{display:block; color:var(--ink); margin-bottom:4px}
.grad-row{display:grid; grid-template-columns:repeat(6, 1fr); gap:6px}
.grad-row button{aspect-ratio:1; border:0; border-radius:8px; cursor:var(--cur-pointer); box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.grad-row button:hover{box-shadow:0 0 0 2px var(--ink)}

/* キャンバス */
.work{position:relative; overflow:hidden; background:var(--bg)}
#stage{position:absolute; inset:0}
.hint{position:absolute; left:50%; bottom:14px; transform:translateX(-50%); padding:7px 12px; border-radius:999px; background:rgba(255,255,255,.85); color:var(--mute); font-size:11.5px; pointer-events:none}
.work.panning{cursor:grab}

/* 小窓 */
.modal{position:fixed; inset:0; z-index:50; display:grid; place-items:center; background:rgba(238,238,236,.82); backdrop-filter:blur(6px)}
.modal[hidden]{display:none}
.m-box{width:min(560px, 92vw); max-height:92vh; overflow:auto; background:#fff; border-radius:22px; padding:20px 22px; box-shadow:0 30px 80px -30px rgba(0,0,0,.35)}
.m-box.wide{width:min(980px, 94vw)}
.m-head{display:flex; align-items:baseline; gap:10px; margin-bottom:12px}
.m-head b{font:900 18px/1.2 Nunito, 'Hiragino Sans', sans-serif}
.m-head span{color:var(--mute); font-size:12px}
.m-head .x{margin-left:auto; width:32px; height:32px; border:0; border-radius:50%; background:var(--soft); cursor:var(--cur-pointer); font-size:18px}
.m-p{color:#555; font-size:13px; line-height:1.7; margin:0 0 12px}
.m-foot{display:flex; justify-content:flex-end; gap:8px; margin-top:14px}
.m3d-body{display:grid; grid-template-columns:1fr 220px; gap:18px}
#m3dView{height:min(68vh, 620px); border-radius:16px; background:radial-gradient(circle at 50% 40%, #fbfbfa, #ececea); overflow:hidden; cursor:grab}
#m3dView:active{cursor:grabbing}
.m3d-side .pill{width:100%; margin-top:16px}
.angles{display:grid; grid-template-columns:1fr 1fr; gap:6px}
.angles button{height:34px; border:0; border-radius:9px; background:var(--soft); cursor:var(--cur-pointer); font-size:12px; font-weight:600}
.angles button:hover{background:#e9e9e6}
.swatches{display:flex; gap:8px; flex-wrap:wrap}
.pick-frame{display:flex; gap:8px; overflow-x:auto; padding-bottom:4px}
.pick-frame button{flex:none; width:74px; border:0; padding:0; border-radius:10px; overflow:hidden; cursor:var(--cur-pointer); background:var(--soft); box-shadow:inset 0 0 0 1px var(--hair)}
.pick-frame button img{width:100%; display:block}
.pick-frame button.on{box-shadow:0 0 0 2.5px var(--ink)}
.ba{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px}
.ba figure{margin:0}
.ba img{width:100%; border-radius:12px; display:block; background:var(--soft)}
.ba figcaption{text-align:center; color:var(--mute); font-size:11.5px; margin-top:6px}
.toast{position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:60; padding:10px 16px; border-radius:999px; background:var(--ink); color:#fff; font-weight:600; font-size:12.5px}
.spin{width:16px; height:16px; border:2px solid rgba(0,0,0,.15); border-top-color:var(--ink); border-radius:50%; animation:sp .8s linear infinite; display:inline-block; vertical-align:-3px}
.pill .spin{border-color:rgba(255,255,255,.3); border-top-color:#fff}
@keyframes sp{to{transform:rotate(360deg)}}
.small-screen{display:none}
/* 小さい画面でも、スタジオをそのまま使う（下の 22版 で、スマホ・タブレットの並べ方に組み替える） */

/* ══ 2版：画面いっぱいのキャンバスに、浮かんだ部品を置く（左のドック・上の小さな帯・下のタブ・右の白いカード） ══ */
#app{display:block; position:relative; height:100vh}
.work{position:absolute; inset:0; background:#f6f6f4;
  background-image:radial-gradient(circle at 1px 1px, rgba(20,20,20,.07) 1px, transparent 0); background-size:22px 22px}
.fl{position:absolute; z-index:20; display:flex; align-items:center; gap:8px}
.fl.tl{left:14px; top:12px}
.fl.tr{right:14px; top:12px}
.logo-sq{width:52px; height:52px; border-radius:16px; background:#151515; display:grid; place-items:center;
  box-shadow:0 10px 24px -12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08)}
.logo-sq img{width:34px; height:34px; object-fit:contain}
.glass{display:flex; align-items:center; gap:2px; height:52px; padding:6px; border-radius:16px; background:rgba(28,28,30,.92); color:#cfcfcb;
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 10px 24px -12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06)}
.seg-top span{display:flex; align-items:center; gap:7px; height:40px; padding:0 13px; border-radius:11px; font-size:14px; white-space:nowrap}
.seg-top span.on{background:#3a3a3c; color:#fff}
.seg-top span b{font-weight:600}
.seg-top span svg{width:16px; height:16px}
.seg-top .app{color:#9a9a96; max-width:220px; overflow:hidden; text-overflow:ellipsis}
.seg-top .app:empty{display:none}
.glass .ic{width:40px; height:40px; border-radius:11px; color:#d6d6d2}
.glass .ic:hover{background:#3a3a3c}
.glass .ic:disabled{opacity:.28}
.pill{height:52px; padding:0 20px; border-radius:16px; font:600 14.5px/1 Inter, 'Hiragino Sans', sans-serif; gap:10px}
.pill svg{width:17px; height:17px}
.pill.dark{background:#1c1c1e; box-shadow:0 10px 24px -12px rgba(0,0,0,.45)}
.pill.dark:hover{background:#2c2c2e}
.pill.blue{background:linear-gradient(180deg,#5da0ff,#3b82f6); box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -12px rgba(59,130,246,.7)}
.pill.blue:hover{filter:brightness(1.05); background:linear-gradient(180deg,#5da0ff,#3b82f6)}
/* 小窓の中のボタンは、もとの小さい大きさで */
.modal .pill, .panel .pill, .insp .pill{height:38px; padding:0 16px; border-radius:999px; font:700 13px/1 Nunito, 'Hiragino Sans', sans-serif}

/* 左のドック */
.dock{position:absolute; z-index:20; left:14px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:10px;
  padding:14px 12px; border-radius:24px; background:rgba(28,28,30,.94); box-shadow:0 18px 40px -16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07)}
.dock button{position:relative; width:58px; height:58px; padding:0; border:0; border-radius:15px; background:none; cursor:var(--cur-pointer); display:grid; place-items:center;
  transition:transform .18s cubic-bezier(.3,1.5,.5,1)}
.dock button img{width:58px; height:58px; object-fit:contain; filter:saturate(.95)}
.dock button:hover{transform:scale(1.1)}
.dock button.on::after{content:""; position:absolute; right:-9px; top:50%; width:4px; height:4px; margin-top:-2px; border-radius:50%; background:#fff}
.dock button i{position:absolute; left:calc(100% + 16px); top:50%; transform:translate(-4px,-50%); opacity:0; pointer-events:none; white-space:nowrap;
  padding:6px 10px; border-radius:8px; background:#1c1c1e; color:#fff; font:600 12px/1 Inter, sans-serif; font-style:normal; transition:.15s}
.dock button:hover i{opacity:1; transform:translate(0,-50%)}
.dock.open button:hover i{opacity:0}

/* 左の素材の欄：ドックの右に浮かぶ白いカード */
.panel{position:absolute; z-index:19; left:104px; top:76px; bottom:84px; width:312px; border:0; border-radius:22px;
  box-shadow:0 24px 60px -24px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.04); padding:18px 16px 28px;
  transition:opacity .18s, transform .22s cubic-bezier(.3,1.2,.5,1)}
.panel.shut{opacity:0; transform:translateX(-14px) scale(.98); pointer-events:none}

/* 右の設定：浮かぶ白いカード（何も選んでいないときは小さく） */
.insp{position:absolute; z-index:19; right:14px; top:76px; max-height:calc(100vh - 160px); width:288px; border:0; border-radius:22px;
  box-shadow:0 24px 60px -24px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.04); padding:18px 16px 22px}

/* 下のタブ */
.bottom{position:absolute; z-index:20; left:50%; bottom:16px; transform:translateX(-50%); display:flex; align-items:center; gap:4px; height:58px; padding:7px;
  border-radius:18px; background:rgba(28,28,30,.94); color:#cfcfcb; box-shadow:0 18px 40px -16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07); max-width:calc(100vw - 40px)}
.shots{display:flex; gap:3px; overflow-x:auto}
.shots button{display:flex; align-items:center; gap:7px; height:44px; padding:0 13px; border:0; border-radius:12px; background:none; cursor:var(--cur-pointer); color:#bdbdb8;
  font:600 14px/1 Inter, sans-serif; white-space:nowrap}
.shots button svg{width:16px; height:16px}
.shots button:hover{color:#fff}
.shots button.on{background:#3a3a3c; color:#fff}
.shots button img{width:16px; height:28px; object-fit:cover; border-radius:3px; box-shadow:0 0 0 1px rgba(255,255,255,.18)}
.bottom .sep{width:1px; height:24px; background:#3a3a3c; margin:0 6px}
.bottom .b{width:32px; height:44px; border:0; border-radius:10px; background:none; color:#bdbdb8; cursor:var(--cur-pointer); font-size:17px}
.bottom .b:hover{background:#3a3a3c; color:#fff}
.bottom .cnt{min-width:46px; text-align:center; font:600 13.5px/1 Inter, sans-serif; color:#fff; font-variant-numeric:tabular-nums}
.bottom .cnt em{font-style:normal; color:#8f8f8a; margin-left:4px; font-size:12px}

/* ══ 3版：白い作業場、明るいすりガラスの帯。黒は「書き出す」と選ばれたものだけ ══ */
.work{background:#fff; background-image:none}
.wordmark{height:46px; padding:0 6px; display:flex; align-items:center; font:900 26px/1 Nunito, sans-serif; letter-spacing:-.03em; color:var(--ink); text-decoration:none}
.glass, .dock, .bottom{background:rgba(255,255,255,.82); color:var(--ink); -webkit-backdrop-filter:blur(18px) saturate(160%); backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 0 0 1px rgba(0,0,0,.06), 0 16px 36px -18px rgba(20,20,30,.28)}
.glass{height:46px; padding:4px; border-radius:14px}
.seg-top span{height:38px; font-size:13.5px; color:#77776f}
.seg-top span.on{background:#f1f1ee; color:var(--ink)}
.seg-top .app{color:#9a9a94}
.glass .ic{width:38px; height:38px; color:#3a3a37}
.glass .ic:hover{background:#f1f1ee}
.pill{height:46px; border-radius:14px; font-size:14px; padding:0 18px}
.pill.dark{background:var(--ink); box-shadow:0 12px 26px -14px rgba(0,0,0,.45)}
.pill.blue{background:#fff; color:var(--ink); box-shadow:0 0 0 1px rgba(0,0,0,.08), 0 12px 26px -16px rgba(20,20,30,.25)}
.pill.blue svg{stroke:none; fill:url(#spk)}
.pill.blue:hover{background:#fafaf9; filter:none}
.dock{padding:12px 10px; gap:8px; border-radius:22px}
.dock button{width:52px; height:52px; border-radius:13px}
.dock button img{width:52px; height:52px}
.dock button.on{background:#f1f1ee}
.dock button.on::after{right:-7px; background:var(--ink)}
.dock button:hover{transform:translateY(-1px) scale(1.06)}
.bottom{height:54px; padding:6px; border-radius:16px; color:var(--ink)}
.shots button{height:42px; color:#6f6f69; font-size:13.5px}
.shots button:hover{color:var(--ink); background:#f6f6f4}
.shots button.on{background:var(--ink); color:#fff}
.bottom .sep{background:#e7e7e3}
.bottom .b{color:#6f6f69; height:42px}
.bottom .b:hover{background:#f1f1ee; color:var(--ink)}
.bottom .cnt{color:var(--ink)}
.panel, .insp{box-shadow:0 0 0 1px rgba(0,0,0,.06), 0 24px 50px -26px rgba(20,20,30,.3)}
.panel{left:92px; top:72px; bottom:84px}
.insp{top:72px}
.panel h3{font-size:12.5px; letter-spacing:.01em; text-transform:none; color:var(--ink)}
.tile{border-radius:14px; background:#f6f6f4}
.tile:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}

/* キャンバスの上で文字を打つ欄 */
.inline-edit{position:absolute; z-index:30; margin:0; padding:0; border:0; outline:1.5px dashed #2f6ff2; outline-offset:4px; background:rgba(255,255,255,.0);
  resize:none; overflow:hidden; color:transparent; caret-color:#2f6ff2; white-space:pre; line-height:1.15}
/* 右クリックのメニュー */
.ctx{position:fixed; z-index:60; min-width:208px; padding:6px; border-radius:14px; background:rgba(255,255,255,.96); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
  box-shadow:0 0 0 1px rgba(0,0,0,.07), 0 22px 44px -18px rgba(20,20,30,.35)}
.ctx button{display:flex; align-items:center; gap:10px; width:100%; height:32px; padding:0 10px; border:0; border-radius:8px; background:none; cursor:var(--cur-pointer); font-size:13px; text-align:left; color:var(--ink)}
.ctx button:hover{background:#f1f1ee}
.ctx button kbd{margin-left:auto; font:500 11px Inter, sans-serif; color:#9a9a94}
.ctx button svg{width:15px; height:15px; color:#6f6f69}
.ctx hr{border:0; height:1px; background:#efefec; margin:5px 4px}
.ctx button.danger{color:#d93a3a}
.ctx button.danger svg{color:#d93a3a}
/* 揃えるボタン（2つ以上を選んだとき） */
.align{display:grid; grid-template-columns:repeat(4, 1fr); gap:6px}
.align button{height:34px; border:0; border-radius:9px; background:var(--soft); cursor:var(--cur-pointer); display:grid; place-items:center; color:#444}
.align button:hover{background:#e9e9e6}
.align button svg{width:17px; height:17px}

/* ══ 4版：パネルの出方（Mac でアプリを開くように）と、パネルの見た目 ══ */
.panel{display:flex; flex-direction:column; padding:0; overflow:hidden; border-radius:24px; width:328px;
  background:rgba(255,255,255,.9); -webkit-backdrop-filter:blur(24px) saturate(170%); backdrop-filter:blur(24px) saturate(170%);
  box-shadow:0 0 0 1px rgba(0,0,0,.05), 0 30px 60px -28px rgba(20,20,40,.32), 0 8px 20px -14px rgba(20,20,40,.14);
  transition:transform .46s cubic-bezier(.2,1.18,.32,1), opacity .26s ease, filter .3s ease; will-change:transform}
.panel.shut{opacity:0; transform:translate(-26px, 0) scale(.08); filter:blur(6px); pointer-events:none;
  transition:transform .3s cubic-bezier(.55,0,.75,.2), opacity .24s ease .04s, filter .26s ease}
.panel.swap .p-body, .panel.swap .p-head b, .panel.swap .p-head img{opacity:0; transform:translateY(6px)}
.p-head{display:flex; align-items:center; gap:10px; padding:16px 16px 12px 18px; flex:none}
.p-head img{width:28px; height:28px; transition:.18s}
.p-head b{flex:1; font:900 18px/1 Nunito, 'Hiragino Sans', sans-serif; letter-spacing:-.01em; transition:.18s}
.p-x{width:30px; height:30px; border:0; border-radius:50%; background:#f1f1ee; cursor:var(--cur-pointer); display:grid; place-items:center; color:#6f6f69}
.p-x svg{width:14px; height:14px}
.p-x:hover{background:#e7e7e3; color:var(--ink)}
.p-body{flex:1; min-height:0; overflow-y:auto; padding:4px 16px 26px; scrollbar-width:none; transition:opacity .16s, transform .2s}
.p-body::-webkit-scrollbar{display:none}
.panel.more-up .p-body{-webkit-mask-image:linear-gradient(180deg, transparent 0, #000 26px); mask-image:linear-gradient(180deg, transparent 0, #000 26px)}
.panel.more-down .p-body{-webkit-mask-image:linear-gradient(0deg, transparent 0, #000 40px); mask-image:linear-gradient(0deg, transparent 0, #000 40px)}
.panel.more-up.more-down .p-body{-webkit-mask-image:linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 40px), transparent 100%); mask-image:linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 40px), transparent 100%)}
.p-body > *{animation:pIn .5s cubic-bezier(.2,.9,.3,1) backwards}
.p-body > *:nth-child(2){animation-delay:.03s} .p-body > *:nth-child(3){animation-delay:.06s} .p-body > *:nth-child(4){animation-delay:.09s}
.p-body > *:nth-child(5){animation-delay:.12s} .p-body > *:nth-child(n+6){animation-delay:.15s}
@keyframes pIn{from{opacity:0; transform:translateY(8px)}}
.panel h3{margin:20px 2px 10px; font:800 11.5px/1 Inter, 'Hiragino Sans', sans-serif; letter-spacing:.06em; text-transform:uppercase; color:#8a8a84}
.panel h3 small{text-transform:none; letter-spacing:0; font-weight:500; color:#a8a8a2}
.p-body > h3:first-child{margin-top:4px}
.tile{border-radius:16px; background:linear-gradient(180deg, #f8f8f6, #f1f1ee); transition:transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s}
.tile:hover{transform:translateY(-2px); box-shadow:0 0 0 1.5px var(--ink), 0 10px 20px -12px rgba(0,0,0,.3)}
.txt-preset, .dev-card, .gen-box{border-radius:16px; background:linear-gradient(180deg, #f8f8f6, #f1f1ee); transition:transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s}
.txt-preset:hover, .dev-card:hover{transform:translateY(-2px); box-shadow:0 0 0 1.5px var(--ink), 0 10px 20px -12px rgba(0,0,0,.3)}
.chip{background:#fff; box-shadow:inset 0 0 0 1px #e7e7e3}
.chip:hover{background:#f6f6f4}
/* ドックのアイコン：押すと Mac のようにぴょんと跳ねる */
.dock button.launch img{animation:dockHop .62s cubic-bezier(.3,0,.2,1)}
@keyframes dockHop{0%{transform:none} 30%{transform:translateY(-14px) scale(1.05)} 55%{transform:translateY(0) scale(.97)} 75%{transform:translateY(-5px)} 100%{transform:none}}
.insp{scrollbar-width:none}
.insp::-webkit-scrollbar{display:none}
@media (prefers-reduced-motion:reduce){ .panel, .panel.shut, .p-body > *, .dock button.launch img{transition:none; animation:none} }

/* 5版：地の一覧・枚のプレビュー・ダークな型の見本 */
.bg-grid{display:grid; grid-template-columns:repeat(6, 1fr); gap:7px; margin-bottom:6px}
.bg-grid button{position:relative; aspect-ratio:9/16; border:0; border-radius:9px; cursor:var(--cur-pointer); background-size:cover; background-position:center; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); transition:transform .18s cubic-bezier(.3,1.4,.5,1)}
.bg-grid button:hover{transform:translateY(-2px); box-shadow:0 0 0 1.5px var(--ink)}
.bg-grid button i{position:absolute; right:4px; bottom:3px; font-style:normal; font-size:10px; font-weight:700; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.5)}
.insp .bg-grid{grid-template-columns:repeat(6, 1fr)}
h3.sub{font-size:12px; color:#8a8a84; margin:16px 0 8px}
.shot-prev{display:grid; place-items:center; margin-bottom:10px}
.shot-prev img{height:150px; width:auto; border-radius:10px; box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.acts button[disabled]{opacity:.3; pointer-events:none}
.txt-preset.dark{background:linear-gradient(180deg, #2a2a30, #18181c)}

/* 6版：ドックの選択中は灰色の四角を出さない（跳ねたときに影のように見えるため）。印は右の点だけ */
.dock button.on{background:none}
/* 選択肢は、ホバー・フォーカスで黒い縁を出さない。少し浮かせるだけ */
.tile:hover, .txt-preset:hover, .dev-card:hover, .bg-grid button:hover, .grad-row button:hover{box-shadow:0 10px 22px -14px rgba(0,0,0,.35)}
.tile:hover{box-shadow:0 10px 22px -14px rgba(0,0,0,.35)}
.drop:hover{border-color:#bdbdb7; color:var(--ink)}
.panel button:focus, .insp button:focus, .dock button:focus{outline:none}
.panel button:focus-visible, .insp button:focus-visible{outline:none; filter:brightness(.97)}
/* 選んでいる画面は、縁ではなく右上の小さな印で */
.tile.cur{box-shadow:none}
.tile.cur::after{content:""; position:absolute; top:6px; right:6px; width:18px; height:18px; border-radius:50%;
  background:#2f6ff2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow:0 2px 6px rgba(47,111,242,.4)}
.tile{position:relative}
/* 画面・背景のアップローダー */
.up-box{display:flex; align-items:center; gap:12px; padding:12px; border-radius:16px; cursor:var(--cur-pointer); background:linear-gradient(180deg, #f8f8f6, #f1f1ee);
  transition:background .2s, transform .2s cubic-bezier(.3,1.4,.5,1)}
.up-box:hover{background:#eeeeea}
.up-box.over{background:#e9f0ff; transform:scale(1.015)}
.up-th{flex:none; width:44px; height:92px; border-radius:10px; background:#e6e6e2 center top/cover no-repeat; box-shadow:0 0 0 3px #1c1c1e, 0 6px 14px -8px rgba(0,0,0,.45)}
.up-th.none{background:repeating-linear-gradient(135deg, #ececE8 0 6px, #e3e3df 6px 12px)}
.up-tx{flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; font-size:11.5px; line-height:1.45; color:#8a8a84}
.up-tx b{font-size:13px; color:var(--ink); font-weight:700}
.up-ic{flex:none; width:34px; height:34px; border-radius:50%; background:#fff; display:grid; place-items:center; box-shadow:0 2px 8px -3px rgba(0,0,0,.2)}
.up-ic svg{width:16px; height:16px; fill:none; stroke:var(--ink); stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.panel .up-box{margin-bottom:12px}
.panel .up-box .up-ic{order:-1; background:#fff}
.insp .sec.first{padding-top:0}
.bg-grid button i.span{cursor:var(--cur-pointer); right:3px; bottom:3px; width:18px; height:18px; border-radius:50%; background:rgba(0,0,0,.45); display:grid; place-items:center; text-shadow:none; font-size:10px}
/* 画面を消す小さなボタン（ホバーで出る） */
.upl .tile .x{position:absolute; top:5px; right:5px; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; cursor:var(--cur-pointer);
  background:rgba(20,20,22,.72); backdrop-filter:blur(6px); opacity:0; transform:scale(.8); transition:opacity .15s, transform .15s}
.upl .tile .x svg{width:12px; height:12px; fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round}
.upl .tile:hover .x, .upl .tile:focus-within .x{opacity:1; transform:none}
.upl .tile .x:hover{background:#e5484d}
@media (hover:none){ .upl .tile .x{opacity:1; transform:none} }
/* 下のタブ：選んでいる印がすべって動く */
.shots{position:relative}
.shots .ind{position:absolute; left:0; top:0; height:42px; border-radius:12px; background:var(--ink); opacity:0; pointer-events:none;
  transition:transform .42s cubic-bezier(.3,1.25,.4,1), width .42s cubic-bezier(.3,1.25,.4,1), opacity .2s}
.shots button{position:relative; z-index:1; transition:color .25s}
.shots button.on{background:none; color:#fff}
.shots button.on:hover{background:none}
@media (prefers-reduced-motion:reduce){ .shots .ind{transition:none} }

/* 7版：色の玉 */
.cpick{position:relative; display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 11px 0 5px; border-radius:999px; background:#fff; cursor:var(--cur-pointer);
  box-shadow:inset 0 0 0 1px #ececE8; transition:box-shadow .15s, transform .15s}
.cpick:hover{box-shadow:inset 0 0 0 1px #dcdcd6, 0 4px 12px -6px rgba(0,0,0,.18)}
.cpick input{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:var(--cur-pointer)}
.cpick .cdot{width:24px; height:24px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1), inset 0 -3px 6px rgba(0,0,0,.08), inset 0 2px 3px rgba(255,255,255,.35)}
.cpick .chex{font:600 11.5px/1 'SF Mono', ui-monospace, Menlo, monospace; color:#6b6b66; letter-spacing:.02em}
.color-row{gap:8px}

/* スクショの大きさ */
.size-seg{display:grid; grid-template-columns:repeat(4, 1fr); gap:6px}
.size-seg button{display:flex; flex-direction:column; align-items:center; gap:5px; padding:10px 4px 8px; border:0; border-radius:12px; background:#f6f6f3; cursor:var(--cur-pointer); color:#55554f; transition:background .15s, color .15s}
.size-seg button i{display:block; height:30px; border-radius:4px; box-shadow:inset 0 0 0 1.6px currentColor; opacity:.7}
.size-seg button b{font:700 11px/1.1 Inter, sans-serif; text-align:center}
.size-seg button small{font:500 9.5px/1 Inter, sans-serif; color:#9a9a94}
.size-seg button:hover{background:#efefeb}
.size-seg button.on{background:var(--ink); color:#fff}
.size-seg button.on small{color:#b9b9b3}
.size-seg button.on i{opacity:1}

/* 背景の切り抜き */
.crop-modal{position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:rgba(16,16,18,.42); backdrop-filter:blur(6px); animation:cropIn .2s ease}
.crop-modal.out{animation:cropOut .18s ease forwards}
@keyframes cropIn{from{opacity:0}} @keyframes cropOut{to{opacity:0}}
.crop-box{background:#fff; border-radius:22px; padding:18px 20px 16px; box-shadow:0 30px 80px -30px rgba(0,0,0,.45); display:flex; flex-direction:column; gap:14px; animation:cropPop .28s cubic-bezier(.3,1.3,.5,1)}
@keyframes cropPop{from{transform:scale(.96) translateY(8px)}}
.crop-head{display:flex; align-items:baseline; justify-content:space-between; gap:16px}
.crop-head b{font:800 15px/1 Inter, 'Hiragino Sans', sans-serif}
.crop-head span{font:500 12px/1 Inter, sans-serif; color:#9a9a94}
.crop-stage{display:grid; place-items:center; padding:22px 40px; border-radius:14px; background:#1c1c1e; overflow:hidden}
.crop-frame{position:relative; cursor:grab; touch-action:none; border-radius:6px; box-shadow:0 0 0 9999px rgba(28,28,30,.62), 0 0 0 1.5px rgba(255,255,255,.9)}
.crop-frame.grab{cursor:grabbing}
.crop-frame img{position:absolute; left:0; top:0; max-width:none; user-select:none; pointer-events:none; z-index:-1}
.crop-stage{isolation:isolate}
.crop-zoom{display:flex; align-items:center; gap:10px; padding:0 4px}
.crop-zoom input{flex:1}
.crop-zoom svg{width:16px; height:16px; fill:none; stroke:#8a8a84; stroke-width:2; stroke-linecap:round}
.crop-foot{display:flex; align-items:center; gap:8px}
.crop-tip{flex:1; font-size:12px; color:#9a9a94}

/* 素材の欄：同じ格子・同じタイル */
.as-lead{margin:2px 2px 14px; font-size:13px; line-height:1.6; color:#6b6b66}
.as-ready, .as-run{display:flex; align-items:center; gap:12px; padding:12px; border-radius:16px; background:linear-gradient(180deg, #f8f8f6, #f1f1ee); margin-bottom:6px}
.as-ready .pill{flex:none}
.as-thumbs{flex:none; display:flex}
.as-thumbs i{width:26px; height:54px; border-radius:6px; background:#e6e6e2 center top/cover; box-shadow:0 0 0 2px #fff, 0 4px 10px -6px rgba(0,0,0,.35); margin-right:-9px}
.as-thumbs i:nth-child(2){transform:translateY(-3px) rotate(4deg)} .as-thumbs i:nth-child(3){transform:rotate(8deg)}
.as-thumbs{margin-right:6px}
.as-run{flex-direction:column; align-items:stretch; gap:10px}
.as-run .bar{display:block; height:4px; border-radius:4px; background:#e6e6e2; overflow:hidden; position:relative}
.as-run .bar::after{content:""; position:absolute; inset:0; width:40%; border-radius:4px; background:var(--ink); animation:asBar 1.3s cubic-bezier(.5,0,.5,1) infinite}
@keyframes asBar{from{transform:translateX(-100%)} to{transform:translateX(250%)}}
.tile.add{display:flex; flex-direction:column; gap:6px; color:#7a7a74; background:#fff; box-shadow:inset 0 0 0 1.5px #ececE8}
.tile.add span svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round}
.tile.add small{font:700 11.5px/1 Inter, 'Hiragino Sans', sans-serif}
.tile.add:hover, .tile.add.on{color:var(--ink); background:#fafaf8}
.tile.add.on{background:#f1f1ee; box-shadow:none}
.pose-in{display:flex; align-items:center; gap:6px; margin-top:8px; padding:5px 5px 5px 14px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1.5px #e7e7e3; animation:pIn .25s ease}
.pose-in:focus-within{box-shadow:inset 0 0 0 1.5px #b9b9b4}
.pose-in input{flex:1; min-width:0; border:0; background:none; height:30px; font-size:13px; padding:0}
.pose-in button{flex:none; width:30px; height:30px; border:0; border-radius:50%; background:var(--ink); display:grid; place-items:center; cursor:var(--cur-pointer)}
.pose-in button svg{width:15px; height:15px; fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.panel .grid3 .tile img, .panel .grid2 .tile:not(.cover) img{max-width:84%; max-height:84%}
.tile.cover img{width:100%; height:100%; max-width:none; max-height:none; object-fit:cover}
.size-seg{grid-template-columns:1fr 1fr}
.size-seg button{flex-direction:row; justify-content:flex-start; gap:10px; padding:9px 10px; text-align:left}
.size-seg button i{flex:none; height:28px}
.size-seg button span{display:flex; flex-direction:column; gap:3px}
.size-seg button b{text-align:left}
.pose-in input, .pose-in input:focus{border:0 !important; outline:none; box-shadow:none !important; background:none}
.pose-in input::-webkit-calendar-picker-indicator{display:none !important; opacity:0}

/* 8版：大きさは名前だけの切り替え */
.size-seg{display:flex; gap:2px; padding:3px; border-radius:12px; background:#f1f1ee; grid-template-columns:none}
.size-seg button{flex:1; display:block; height:32px; padding:0 4px; border:0; border-radius:9px; background:none; cursor:var(--cur-pointer);
  font:650 12.5px/32px Inter, 'Hiragino Sans', sans-serif; color:#6b6b66; text-align:center; white-space:nowrap; transition:background .18s, color .18s, box-shadow .18s}
.size-seg button:hover{color:var(--ink); background:none}
.size-seg button.on{background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04)}
.size-px{margin:8px 2px 0; font:500 11.5px/1 Inter, sans-serif; color:#9a9a94; font-variant-numeric:tabular-nums}
/* 見出しの右の小さな操作 */
.panel h3.with-act{display:flex; align-items:center; justify-content:space-between}
.mini-act{display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 9px 0 7px; border:0; border-radius:999px; background:#f1f1ee; cursor:var(--cur-pointer);
  font:700 11px/1 Inter, 'Hiragino Sans', sans-serif; letter-spacing:0; text-transform:none; color:#55554f; transition:background .15s, color .15s}
.mini-act svg{width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round}
.mini-act:hover, .mini-act.on{background:var(--ink); color:#fff}

/* AI で仕上げ：選ぶ枚。上下に余白をとって、選んだ枚は縁ではなく浮かせて右上に印 */
.pick-frame{gap:10px; padding:8px 6px 10px; margin:0 -6px; scrollbar-width:none}
.pick-frame::-webkit-scrollbar{display:none}
.pick-frame button{position:relative; overflow:visible; border-radius:12px; background:none; box-shadow:none; opacity:.55; transition:opacity .2s, transform .25s cubic-bezier(.3,1.4,.5,1)}
.pick-frame button img{border-radius:12px; box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.pick-frame button:hover{opacity:.85}
.pick-frame button.on{opacity:1; transform:translateY(-3px); box-shadow:none}
.pick-frame button.on img{box-shadow:0 10px 22px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06)}
.pick-frame button.on::after{content:""; position:absolute; top:-6px; right:-6px; width:20px; height:20px; border-radius:50%;
  background:#2f6ff2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow:0 0 0 2.5px #fff, 0 3px 8px rgba(47,111,242,.35)}
[hidden]{display:none !important}   /* .pill などの display より優先して、隠したものは必ず隠す */

/* 9版：左の欄の上は Mac の窓の題の帯 */
.p-head.mac{position:relative; display:flex; align-items:center; justify-content:center; height:46px; padding:0 14px; border-bottom:1px solid rgba(0,0,0,.06);
  background:linear-gradient(180deg, #fbfbfa, #f3f3f1); border-radius:22px 22px 0 0}
.p-head.mac .lights{position:absolute; left:14px; top:50%; transform:translateY(-50%); display:flex; gap:8px}
.lights button{width:13px; height:13px; padding:0; border:0; border-radius:50%; cursor:var(--cur-pointer); display:grid; place-items:center; box-shadow:inset 0 0 0 .5px rgba(0,0,0,.18)}
.lights .l-close{background:#ff5f57} .lights .l-min{background:#febc2e} .lights .l-zoom{background:#28c840}
.lights svg{width:8px; height:8px; fill:none; stroke:rgba(0,0,0,.55); stroke-width:1.6; stroke-linecap:round; opacity:0; transition:opacity .12s}
.lights:hover svg{opacity:1}
.p-title{display:flex; align-items:center; gap:7px}
.p-head.mac .p-title img{width:18px; height:18px}
.p-head.mac .p-title b{flex:none; font:700 13px/1 Inter, 'Hiragino Sans', sans-serif; letter-spacing:0; color:#3a3a37}
.panel .p-body{padding-top:12px}
.panel.wide{width:440px}
.panel{transition:opacity .18s, transform .22s cubic-bezier(.3,1.2,.5,1), width .3s cubic-bezier(.3,1.1,.4,1)}

/* 右の欄は Mac のウィジェットのように：まとまりごとに角の丸いカードを並べる */
.insp{background:none; box-shadow:none !important; padding:0 2px 24px; border-radius:0; overflow-y:auto}
.insp > h4, .insp > .sec{margin:0 0 10px; padding:14px 15px; border-radius:22px; border-top:0;
  background:rgba(255,255,255,.86); backdrop-filter:blur(20px) saturate(1.4); -webkit-backdrop-filter:blur(20px) saturate(1.4);
  box-shadow:0 0 0 .5px rgba(0,0,0,.09), 0 10px 30px -18px rgba(0,0,0,.28)}
.insp > h4{font:800 17px/1.15 Inter, 'Hiragino Sans', sans-serif; letter-spacing:-.01em; padding:14px 16px}
.insp > h4 small{font:500 11.5px/1.3 Inter, 'Hiragino Sans', sans-serif; color:#8a8a84; text-align:right; max-width:55%}
.insp > .sec:first-of-type{padding-top:14px}
.insp .lbl{font:700 11px/1 Inter, 'Hiragino Sans', sans-serif; color:#8a8a84; letter-spacing:.01em}
.insp > .sec.dark{background:rgba(28,28,30,.92); color:#fff}

/* エフェクトの選び方：小さな見本つきのタイル */
.fx-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:6px}
.fx-grid button{display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 4px 7px; border:0; border-radius:12px; background:#f4f4f1; cursor:var(--cur-pointer); color:#55554f; transition:background .15s, color .15s}
.fx-grid button span{font:650 11px/1.1 Inter, 'Hiragino Sans', sans-serif; text-align:center}
.fx-grid button i{width:30px; height:30px; border-radius:9px; background:linear-gradient(135deg, #ffb48a, #8b6cff); position:relative; overflow:hidden}
.fx-grid .fx-none i{background:#e6e6e2}
.fx-grid .fx-fisheye i{border-radius:50%; background:radial-gradient(circle at 50% 50%, #ffd3b8 0 28%, #ff9a6b 45%, #6b4cff 100%)}
.fx-grid .fx-glass i::after{content:""; position:absolute; inset:0; border-radius:9px; box-shadow:inset 0 0 0 5px rgba(255,255,255,.55); backdrop-filter:blur(2px)}
.fx-grid .fx-tilt i{background:linear-gradient(180deg, #d9cff7 0 22%, #ff9a6b 22% 78%, #d9cff7 78%)}
.fx-grid .fx-spot i{background:radial-gradient(circle, #ffcfa8 0 30%, #2b2440 75%)}
.fx-grid .fx-vignette i{background:radial-gradient(circle, #ffb48a 30%, #6b4c8f 100%)}
.fx-grid button:hover{background:#ececE8}
.fx-grid button.on{background:var(--ink); color:#fff}
.pop-btn{width:100%; margin-top:10px; display:flex !important; justify-content:center; gap:7px}
.pop-btn svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linejoin:round}
/* 部品を浮かせる小窓 */
.pop-body{display:flex; gap:18px; align-items:flex-start}
.pop-stage{position:relative; flex:none; cursor:crosshair; touch-action:none; border-radius:14px; overflow:hidden; box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.pop-stage img{display:block; user-select:none; pointer-events:none}
.pop-sel{position:absolute; box-shadow:0 0 0 9999px rgba(20,20,24,.45), 0 0 0 2px #fff, 0 0 0 3.5px #2f6ff2; pointer-events:none; transition:all .16s cubic-bezier(.3,1.2,.5,1)}
.pop-side{width:220px; display:flex; flex-direction:column; gap:8px}
.pop-side input{width:100%}
.pop-tip{margin:0 0 6px; font-size:12.5px; line-height:1.6; color:#6b6b66}
.pop-tip b{color:var(--ink)}
.pill[disabled]{opacity:.4; pointer-events:none}

/* 10版：エフェクトの見本は、そのエフェクトをかけた小さなストアの画像 */
.fx-grid{gap:8px}
.fx-grid button{padding:7px 4px 8px; gap:7px; background:none; border-radius:14px}
.fx-grid button i{width:52px; height:86px; border-radius:10px; background-color:#eee !important; background-size:cover !important; background-position:center !important; background-repeat:no-repeat !important; box-shadow:0 0 0 .5px rgba(0,0,0,.1), 0 6px 14px -10px rgba(0,0,0,.45); transition:transform .22s cubic-bezier(.3,1.4,.5,1)}
.fx-grid button i::after{display:none}
.fx-grid button span{font:600 11px/1.15 Inter, 'Hiragino Sans', sans-serif; color:#55554f}
.fx-grid button:hover{background:#f4f4f1}
.fx-grid button:hover i{transform:translateY(-2px)}
.fx-grid button.on{background:#f1f1ee; color:var(--ink)}
.fx-grid button.on span{color:var(--ink); font-weight:750}
.fx-grid button.on i{box-shadow:0 0 0 2px #fff, 0 0 0 4px #2f6ff2, 0 8px 18px -10px rgba(47,111,242,.6)}
/* 右の欄の上下：続きがあるときは、ぼかしてやわらかく消す */
.insp{scroll-padding:12px}
.insp.more-down{-webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - 56px), transparent)}
.insp.more-up{-webkit-mask-image:linear-gradient(to bottom, transparent, #000 36px); mask-image:linear-gradient(to bottom, transparent, #000 36px)}
.insp.more-up.more-down{-webkit-mask-image:linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 56px), transparent); mask-image:linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 56px), transparent)}

/* 11版：エフェクトは文字だけの選択 */
.fx-list{display:flex; flex-wrap:wrap; gap:6px}
.fx-list button{height:32px; padding:0 13px; border:0; border-radius:999px; background:#f3f3f0; cursor:var(--cur-pointer); font:600 12.5px/32px Inter, 'Hiragino Sans', sans-serif; color:#55554f; transition:background .15s, color .15s}
.fx-list button:hover{background:#ebebe7; color:var(--ink)}
.fx-list button.on{background:var(--ink); color:#fff}

/* 端末の画面のカード：本物らしい端末のプレビューと、すっきりした操作 */
.scr-card{display:grid; grid-template-columns:104px 1fr; gap:14px; align-items:center; transition:transform .2s}
.scr-card.over .scr-dev{background:radial-gradient(120% 90% at 50% 40%, #e3ecff, #cbdcff); box-shadow:inset 0 0 0 2px #2f6ff2}
.scr-dev{height:150px; border-radius:16px; display:grid; place-items:center; overflow:hidden;
  background:radial-gradient(120% 90% at 50% 35%, #ffffff, #ecebe7); box-shadow:inset 0 0 0 .5px rgba(0,0,0,.06)}
.scr-dev canvas{max-width:92%; max-height:92%; width:auto; height:auto; filter:drop-shadow(0 8px 12px rgba(20,20,30,.18))}
.scr-tx{display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0}
.scr-tx small{font:700 10.5px/1 Inter, 'Hiragino Sans', sans-serif; letter-spacing:.08em; text-transform:uppercase; color:#9a9a94}
.scr-tx b{font:750 15px/1.2 Inter, 'Hiragino Sans', sans-serif; letter-spacing:-.01em; color:var(--ink); margin-bottom:6px}
.scr-pick{display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 13px 0 10px; border:0; border-radius:999px; background:var(--ink); color:#fff; cursor:var(--cur-pointer);
  font:650 12.5px/1 Inter, 'Hiragino Sans', sans-serif; transition:transform .15s, background .15s}
.scr-pick:hover{background:#2c2c2e; transform:translateY(-1px)}
.scr-pick svg{width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.scr-tx em{font:500 11px/1.3 Inter, 'Hiragino Sans', sans-serif; font-style:normal; color:#a3a39d; margin-top:2px}
.scr-dev canvas{max-width:96px; max-height:138px}
.insp > h4, .insp > .sec{background:rgba(255,255,255,.97)}

/* 12版：端末の画面は、Mac の設定のような細い1行 */
.scr-row{display:flex; align-items:center; gap:12px; padding:4px; margin:-4px; border-radius:12px; cursor:var(--cur-pointer); transition:background .15s}
.scr-row:hover{background:#f6f6f3}
.scr-row.over{background:#eef3ff}
.scr-th{flex:none; width:38px; height:80px; border-radius:8px; background:#f1f1ee center top/cover no-repeat;
  box-shadow:0 0 0 2.5px #1d1d1f, 0 0 0 3.5px rgba(0,0,0,.08), 0 6px 12px -8px rgba(0,0,0,.4)}
.scr-th.empty{display:grid; place-items:center; box-shadow:inset 0 0 0 1.5px #d9d9d4; background:#fafaf8}
.scr-th.empty svg{width:16px; height:16px; fill:none; stroke:#9a9a94; stroke-width:2; stroke-linecap:round}
.scr-meta{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px}
.scr-meta b{font:650 13.5px/1.2 Inter, 'Hiragino Sans', sans-serif; color:var(--ink); letter-spacing:-.005em}
.scr-meta span{font:500 11.5px/1.3 Inter, 'Hiragino Sans', sans-serif; color:#9a9a94}
.scr-btn{flex:none; height:28px; padding:0 12px; border:0; border-radius:8px; background:#f1f1ee; color:var(--ink); cursor:var(--cur-pointer);
  font:600 12px/28px Inter, 'Hiragino Sans', sans-serif; transition:background .15s}
.scr-btn:hover{background:#e8e8e4}
.row-act{display:flex; align-items:center; gap:10px; width:calc(100% + 8px); margin:12px -4px -4px; padding:10px 8px; border:0; border-top:1px solid #f0f0ed; border-radius:0 0 12px 12px; background:none; cursor:var(--cur-pointer);
  font:600 12.5px/1 Inter, 'Hiragino Sans', sans-serif; color:#3a3a37; text-align:left; transition:background .15s}
.row-act:hover{background:#f6f6f3}
.row-act > svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; flex:none}
.row-act span{flex:1}
.row-act .chev{width:14px; height:14px; stroke:#b4b4ae; stroke-width:2; stroke-linecap:round}
.row-act[disabled]{opacity:.4; pointer-events:none}

/* 端末の画面：その画面の入った端末が、カードの下から上半分だけのぞく */
.scr-stage{position:relative; height:176px; margin:-4px; border-radius:14px; overflow:hidden; cursor:var(--cur-pointer);
  background:radial-gradient(120% 100% at 50% 0%, #fbfbfa, #eeede9); box-shadow:inset 0 0 0 .5px rgba(0,0,0,.06)}
.scr-phone{position:absolute; left:50%; top:22px; width:156px; height:auto; transform:translateX(-50%); filter:drop-shadow(0 14px 18px rgba(20,20,30,.18));
  transition:transform .35s cubic-bezier(.3,1.3,.5,1)}
.scr-phone.wide{width:230px}
.scr-stage:hover .scr-phone{transform:translate(-50%, -6px)}
.scr-stage.over{box-shadow:inset 0 0 0 2px #2f6ff2}
.scr-rep{position:absolute; top:10px; right:10px; display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 10px 0 8px; border:0; border-radius:999px; cursor:var(--cur-pointer);
  background:rgba(255,255,255,.82); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:0 0 0 .5px rgba(0,0,0,.08), 0 4px 10px -6px rgba(0,0,0,.3);
  font:650 11.5px/1 Inter, 'Hiragino Sans', sans-serif; color:var(--ink); opacity:0; transform:translateY(-3px); transition:opacity .18s, transform .18s}
.scr-rep svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round}
.scr-stage:hover .scr-rep, .scr-stage.over .scr-rep{opacity:1; transform:none}
@media (hover:none){ .scr-rep{opacity:1; transform:none} }
.insp > .sec.first .row-act{margin-top:10px}
.scr-stage{margin:2px 0 0}
/* いちばん上のカードも、ほかと同じ上の余白に（.sec.first の padding-top:0 を打ち消す） */
.insp > .sec.first{padding-top:14px}
.insp > .sec.first .scr-stage{margin:0}
.insp > .sec.first .scr-row{margin:0 -4px; padding:4px}

/* 13版：右の欄の選択肢は、折り返さずに横に1列。横にスクロール（ふちはやわらかく消す） */
.insp .chips, .insp .fx-list{flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scroll-behavior:smooth; scrollbar-width:none;
  margin-left:-15px; margin-right:-15px; padding:2px 15px; scroll-padding:0 15px}
.insp .chips::-webkit-scrollbar, .insp .fx-list::-webkit-scrollbar{display:none}
.insp .chips > *, .insp .fx-list > *{flex:none; white-space:nowrap}
.insp .chips.more-r, .insp .fx-list.more-r{-webkit-mask-image:linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 36px), transparent)}
.insp .chips.more-l, .insp .fx-list.more-l{-webkit-mask-image:linear-gradient(to right, transparent, #000 28px); mask-image:linear-gradient(to right, transparent, #000 28px)}
.insp .chips.more-l.more-r, .insp .fx-list.more-l.more-r{-webkit-mask-image:linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 36px), transparent); mask-image:linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 36px), transparent)}

/* 14版：下の帯。各枚は小さな見本と番号、選んでいる枚は白く浮く。数と拡大は、まとまった小さな操作 */
.bottom{height:auto; padding:6px; gap:6px; border-radius:20px; align-items:center}
.bottom .sep{display:none}
.shots{gap:2px; padding:2px; border-radius:15px; background:rgba(0,0,0,.035)}
.shots .ind{top:2px; height:calc(100% - 4px); border-radius:13px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.08), 0 4px 12px -6px rgba(0,0,0,.18)}
.shots button{height:auto; min-height:48px; padding:5px 9px; gap:7px; border-radius:13px; color:#8a8a84; font:650 12.5px/1 Inter, sans-serif}
.shots button:hover{background:none; color:var(--ink)}
.shots button.on, .shots button.on:hover{color:var(--ink); background:none}
.shots button svg{width:14px; height:14px; fill:currentColor; stroke:none}
.sh-th{display:block; height:38px; border-radius:4px; background:#efeeea center/cover no-repeat; box-shadow:0 0 0 .5px rgba(0,0,0,.14); transition:box-shadow .2s, transform .2s}
.shots button.on .sh-th{box-shadow:0 0 0 1.5px var(--ink), 0 3px 8px -4px rgba(0,0,0,.4)}
.shots button:hover .sh-th{transform:translateY(-1px)}
.sh-n{font-variant-numeric:tabular-nums; min-width:8px}
.stp{display:flex; align-items:center; height:36px; padding:2px; border-radius:12px; background:rgba(0,0,0,.035)}
.stp .b{width:30px; height:32px; display:grid; place-items:center; border-radius:10px; color:#6f6f69}
.stp .b svg{width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round}
.stp .b:hover{background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.06)}
.stp .cnt{min-width:44px; font:650 12.5px/1 Inter, sans-serif}
.stp .cnt em{font-weight:500}

/* 文字の入力：やわらかい地の箱、下に強調の付け方と「強調」ボタン */
.txt-box{border-radius:14px; background:#f6f6f3; box-shadow:inset 0 0 0 1px transparent; transition:box-shadow .15s, background .15s}
.txt-box:focus-within{background:#fff; box-shadow:inset 0 0 0 1.5px #d6d6d0, 0 0 0 4px rgba(47,111,242,.08)}
.txt-in{display:block; width:100%; min-height:64px; padding:12px 13px 6px; border:0 !important; background:none !important; resize:none; outline:none; box-shadow:none !important;
  font:600 14.5px/1.45 Inter, 'Hiragino Sans', sans-serif; color:var(--ink); letter-spacing:-.005em}
.txt-in::placeholder{color:#b1b1ab}
.txt-foot{display:flex; align-items:center; gap:8px; padding:4px 6px 7px 13px}
.txt-hint{flex:1; min-width:0; font:500 11.5px/1.3 Inter, 'Hiragino Sans', sans-serif; color:#9a9a94}
.txt-hint i{font-style:normal; font-family:'SF Mono', ui-monospace, Menlo, monospace; font-size:11px; padding:1px 4px; border-radius:5px; background:#ebebe7; color:#55554f}
.txt-hint mark{background:#2f6ff2; color:#fff; padding:1px 6px; border-radius:6px; font-weight:650}
.txt-acc{flex:none; height:26px; padding:0 10px; border:0; border-radius:8px; background:#fff; color:var(--ink); cursor:var(--cur-pointer); font:650 11.5px/26px Inter, 'Hiragino Sans', sans-serif;
  box-shadow:0 0 0 .5px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06)}
.txt-acc:hover{background:#2f6ff2; color:#fff}
/* 下の帯：番号だけ。同じ幅の丸いタブ */
.shots button{min-height:36px; min-width:36px; padding:0 12px; justify-content:center}
.stp{height:40px}
.stp .b{height:36px}
.work.grabbing, .work.grabbing *{cursor:grabbing !important}
.konvajs-content{cursor:var(--cur-default)}

/* 15版：右の欄のカードを、浮いて見えるように（重ねた影・上ふちの光・影が切れないよう欄に余白） */
.insp{right:0; width:318px; padding:6px 15px 48px 15px; top:66px}
.insp > h4, .insp > .sec{
  background:linear-gradient(180deg, #fff, #fcfcfb) !important;
  box-shadow:0 0 0 .5px rgba(0,0,0,.07), 0 1px 1px rgba(0,0,0,.03), 0 4px 10px -4px rgba(20,20,30,.08), 0 18px 36px -18px rgba(20,20,30,.22), inset 0 1px 0 rgba(255,255,255,.9) !important;
  margin-bottom:12px; transition:transform .25s cubic-bezier(.3,1.3,.5,1), box-shadow .25s}
.insp > .sec:hover{transform:translateY(-1px);
  box-shadow:0 0 0 .5px rgba(0,0,0,.07), 0 2px 3px rgba(0,0,0,.03), 0 8px 16px -6px rgba(20,20,30,.1), 0 26px 44px -20px rgba(20,20,30,.28), inset 0 1px 0 rgba(255,255,255,.9) !important}
/* 欄が出るとき、カードが下から順に浮かぶ */
.insp > *{animation:cardIn .42s cubic-bezier(.2,.9,.3,1.2) both}
.insp > *:nth-child(2){animation-delay:.03s} .insp > *:nth-child(3){animation-delay:.06s} .insp > *:nth-child(4){animation-delay:.09s} .insp > *:nth-child(n+5){animation-delay:.12s}
@keyframes cardIn{from{opacity:0; transform:translateY(10px) scale(.985)}}
@media (prefers-reduced-motion:reduce){ .insp > *{animation:none} }
/* オン・オフの切り替え（Mac のスイッチ） */
.tog-row{display:flex; align-items:center; justify-content:space-between; margin:12px 0 6px; font:650 12.5px/1 Inter, 'Hiragino Sans', sans-serif; color:var(--ink)}
.tog{position:relative; width:38px; height:22px; padding:0; border:0; border-radius:999px; background:#e2e2de; cursor:var(--cur-pointer); transition:background .2s}
.tog i{position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .25s cubic-bezier(.3,1.3,.5,1)}
.tog.on{background:#34c759}
.tog.on i{transform:translateX(16px)}

/* 16版：パックで開くもの。小さな鍵の印をつけ、少しだけ控えめに */
.locked{position:relative}
.locked > *:not(.lock){opacity:.72}
.lock{position:absolute; top:6px; right:6px; z-index:2; width:20px; height:20px; border-radius:50%; display:grid; place-items:center;
  background:rgba(20,20,22,.78); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); box-shadow:0 2px 6px -2px rgba(0,0,0,.35)}
.lock svg{width:11px; height:11px; fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.chip.locked .lock, .seg .locked .lock, .size-seg .locked .lock{position:static; display:inline-grid; width:14px; height:14px; margin-left:5px; vertical-align:-2px; background:none; box-shadow:none; backdrop-filter:none}
.chip.locked .lock svg, .seg .locked .lock svg, .size-seg .locked .lock svg{stroke:currentColor; width:11px; height:11px}
.chip.locked, .seg button.locked, .size-seg button.locked{color:#a3a39d}
.bg-grid .locked .lock{top:4px; right:4px; width:16px; height:16px}
.bg-grid .locked .lock svg{width:9px; height:9px}
/* パックの案内 */
.up-box2{width:min(400px, calc(100vw - 32px)); gap:14px; padding:22px 22px 14px}
.up-head{display:flex; align-items:center; gap:10px}
.up-head b{font:800 16px/1.35 Inter, 'Hiragino Sans', sans-serif; letter-spacing:-.01em}
.up-lock{flex:none; width:34px; height:34px; border-radius:11px; background:var(--ink); display:grid; place-items:center}
.up-lock svg{width:17px; height:17px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.up-list{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px}
.up-list li{position:relative; padding-left:22px; font:500 13px/1.45 Inter, 'Hiragino Sans', sans-serif; color:#4a4a46}
.up-list li::before{content:""; position:absolute; left:2px; top:4px; width:13px; height:13px; border-radius:50%;
  background:#34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/9px no-repeat}
.up-packs{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:4px}
.up-pack{position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:13px 14px; border:0; border-radius:14px; background:#f4f4f1; cursor:var(--cur-pointer); text-align:left; transition:transform .18s, background .18s}
.up-pack:hover{transform:translateY(-2px); background:#ececE8}
.up-pack b{font:800 20px/1 Inter, sans-serif; color:var(--ink)}
.up-pack span{font:600 12px/1.2 Inter, 'Hiragino Sans', sans-serif; color:#6b6b66}
.up-pack em{position:absolute; top:-8px; right:10px; padding:3px 8px; border-radius:999px; background:#2f6ff2; color:#fff; font:700 10px/1.2 Inter, 'Hiragino Sans', sans-serif; font-style:normal}
.up-pack.best{background:var(--ink)} .up-pack.best b{color:#fff} .up-pack.best span{color:#b9b9b3} .up-pack.best:hover{background:#2c2c2e}
.up-pack[disabled]{opacity:.5; pointer-events:none}
.up-err{margin:0; min-height:0; font-size:12px; color:#e5484d}
.up-err:empty{display:none}
.up-later{align-self:center; border:0; background:none; cursor:var(--cur-pointer); font:600 12.5px/1 Inter, 'Hiragino Sans', sans-serif; color:#9a9a94; padding:6px 10px}
.up-later:hover{color:var(--ink)}

/* 17版：右の欄は macOS のウィジェット。大きな角丸のタイル、細いふち、影はほとんどなし。
   題は小さく太く、数字は大きく。「この枚」は暗いタイル */
.insp > h4, .insp > .sec{border-radius:26px !important; padding:16px 17px 17px !important; margin-bottom:12px;
  background:#fff !important; border:1px solid rgba(0,0,0,.09);
  box-shadow:0 1px 2px rgba(0,0,0,.04), 0 10px 28px -20px rgba(0,0,0,.25) !important}
.insp > .sec:hover{transform:none; box-shadow:0 1px 2px rgba(0,0,0,.04), 0 10px 28px -20px rgba(0,0,0,.25) !important}
.insp > h4{font:800 19px/1.1 -apple-system, 'SF Pro Display', Inter, 'Hiragino Sans', sans-serif !important; letter-spacing:-.02em; padding:15px 18px !important}
.insp .lbl{font:700 13px/1.2 -apple-system, 'SF Pro Text', Inter, 'Hiragino Sans', sans-serif !important; color:var(--ink) !important; letter-spacing:-.005em; margin:14px 0 8px}
.insp > .sec > .lbl:first-child, .insp > .sec > .w-top:first-child{margin-top:0}
.w-top{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:6px}
.w-title{font:800 15px/1.2 -apple-system, 'SF Pro Display', Inter, 'Hiragino Sans', sans-serif; letter-spacing:-.01em; color:var(--ink)}
.w-note{font:600 12px/1 -apple-system, Inter, 'Hiragino Sans', sans-serif; color:#9a9a94}
.w-big{display:flex; align-items:baseline; gap:4px; margin:2px 0 14px; font:300 40px/1 -apple-system, 'SF Pro Display', 'Helvetica Neue', Inter, sans-serif; letter-spacing:-.03em; color:var(--ink); font-variant-numeric:tabular-nums}
.w-big i{font-style:normal; font-size:24px; color:#b5b5af; margin:0 2px}
.w-big small{font-size:15px; font-weight:500; color:#9a9a94; margin-left:4px; letter-spacing:0}
/* 暗いタイル：この枚 */
.insp > .sec.shot-card{background:linear-gradient(180deg, #24242a, #17171b) !important; border-color:rgba(255,255,255,.06); color:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.1), 0 14px 30px -18px rgba(0,0,0,.5) !important}
.shot-card .w-title{color:#fff} .shot-card .w-note{color:#8e8e93}
.shot-card .shot-prev{margin:10px 0 12px}
.shot-card .shot-prev img{box-shadow:0 0 0 1px rgba(255,255,255,.1), 0 10px 22px -10px rgba(0,0,0,.7)}
.shot-card .acts button{background:rgba(255,255,255,.08); color:#e5e5ea; border-radius:12px}
.shot-card .acts button:hover{background:rgba(255,255,255,.16); color:#fff}
/* 切り替えと札は、ウィジェットの札のように、うすい地のまるい札 */
.size-seg{background:#f2f2f0; border-radius:14px; padding:3px}
.size-seg button{border-radius:11px; font:650 12.5px/32px -apple-system, Inter, sans-serif}
.insp .chip, .fx-list button{height:30px; padding:0 13px; border:0 !important; border-radius:999px; background:#f2f2f0 !important; box-shadow:none !important;
  font:600 12.5px/30px -apple-system, Inter, 'Hiragino Sans', sans-serif !important; color:#3a3a3c}
.insp .chip:hover, .fx-list button:hover{background:#e8e8e5 !important}
.insp .chip.on, .fx-list button.on{background:var(--ink) !important; color:#fff}
.cpick{box-shadow:none; background:#f2f2f0}
.insp .pill.ghost{border:0 !important; background:#f2f2f0 !important; box-shadow:none !important; font-weight:650}
.insp .pill.ghost:hover{background:#e8e8e5 !important}

/* 18版：画像を入れる場所。Mac の設定のような、うすい地の1行（アイコンのタイル・名前・「選ぶ…」） */
.well{display:flex; align-items:center; gap:12px; padding:10px 10px 10px 10px; margin-bottom:10px; border-radius:14px; cursor:var(--cur-pointer);
  background:#f6f6f4; box-shadow:inset 0 0 0 .5px rgba(0,0,0,.06); transition:background .15s, box-shadow .15s}
.well:hover{background:#f1f1ee}
.well:focus-visible{outline:none; box-shadow:inset 0 0 0 .5px rgba(0,0,0,.06), 0 0 0 3px rgba(10,132,255,.35)}
.well.over{background:#eaf3ff; box-shadow:inset 0 0 0 1.5px #0a84ff}
.well-ic{flex:none; width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  background:linear-gradient(180deg, #fff, #f7f7f5); box-shadow:0 0 0 .5px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06)}
.well-ic svg{width:19px; height:19px; fill:none; stroke:#3a3a3c; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.well.over .well-ic svg{stroke:#0a84ff}
.well-tx{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.well-tx b{font:600 13px/1.25 -apple-system, 'SF Pro Text', Inter, 'Hiragino Sans', sans-serif; color:var(--ink); letter-spacing:-.005em}
.well-tx span{font:400 11.5px/1.3 -apple-system, 'SF Pro Text', Inter, 'Hiragino Sans', sans-serif; color:#8e8e93; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.well-btn{flex:none; height:24px; padding:0 11px; border:0; border-radius:7px; cursor:var(--cur-pointer); background:#fff; color:var(--ink);
  font:500 12px/24px -apple-system, 'SF Pro Text', Inter, 'Hiragino Sans', sans-serif;
  box-shadow:0 0 0 .5px rgba(0,0,0,.16), 0 1px 1.5px rgba(0,0,0,.08)}
.well-btn:hover{background:#fafafa}
.well-btn:active{background:#f0f0f0}

/* 19版：要素の4つの操作。ウィジェットのように、うすい灰色のタイルに丸いボタン、下に名前 */
.insp > .sec.qa-card{background:linear-gradient(180deg, #f3f3f1, #ebebe8) !important; padding:14px 12px 12px !important}
.qa-row{display:grid; grid-template-columns:repeat(4, 1fr); gap:4px}
.qa{display:flex; flex-direction:column; align-items:center; gap:7px; padding:0; border:0; background:none; cursor:var(--cur-pointer); color:#3a3a3c}
.qa-c{width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:#fff;
  box-shadow:0 0 0 .5px rgba(0,0,0,.08), 0 2px 6px -2px rgba(0,0,0,.14); transition:transform .18s cubic-bezier(.3,1.4,.5,1), background .15s}
.qa-c svg{width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.qa small{font:600 11px/1 -apple-system, 'SF Pro Text', Inter, 'Hiragino Sans', sans-serif; color:#6e6e73}
.qa:hover .qa-c{transform:translateY(-2px)}
.qa:active .qa-c{transform:scale(.94)}
.qa.red{color:#ff3b30}
.qa.red:hover .qa-c{background:#ff3b30; color:#fff}
.qa.red:hover .qa-c svg{stroke:#fff}

/* 20版：4つの操作は白いカードに。丸はうすい灰色、アイコンは細い線と、重なりは塗りで。赤は使わない */
.insp > .sec.qa-card{background:#fff !important; padding:14px 10px 13px !important}
.qa{color:#1d1d1f}
.qa-c{width:46px; height:46px; background:#f2f2f0; box-shadow:none}
.qa-c svg{width:20px; height:20px; stroke-width:1.55}
.qa-c svg .fill{fill:currentColor; stroke:currentColor}
.qa-c svg .ghost{stroke-dasharray:2.2 2.2; opacity:.55}
.qa-c svg .front{fill:#f2f2f0}
.qa:hover .qa-c{background:#e9e9e6; transform:none}
.qa:hover .qa-c svg .front{fill:#e9e9e6}
.qa small{font:500 11px/1 -apple-system, 'SF Pro Text', Inter, 'Hiragino Sans', sans-serif; color:#86868b; letter-spacing:0}
.qa.red, .qa.del{color:#1d1d1f}
.qa.del:hover .qa-c{background:#fde8e7; color:#d70015}
.qa.del:hover .qa-c svg{stroke:#d70015}

/* 21版：4つの操作は、丸をなくしてアイコンと名前だけ。間に細い仕切り、乗せたときだけうすい地 */
.insp > .sec.qa-card{padding:6px !important}
.qa-row{gap:0}
.qa{position:relative; gap:6px; padding:12px 0 10px; border-radius:18px; transition:background .15s}
.qa + .qa::before{content:""; position:absolute; left:0; top:22%; bottom:22%; width:1px; background:rgba(0,0,0,.07)}
.qa-c{width:auto; height:auto; background:none !important; box-shadow:none; border-radius:0}
.qa-c svg{width:21px; height:21px; stroke-width:1.5}
.qa-c svg .front{fill:#fff}
.qa:hover{background:#f5f5f3}
.qa:hover + .qa::before, .qa:hover::before{opacity:0}
.qa:hover .qa-c svg .front{fill:#f5f5f3}
.qa:active{background:#ececE9}
.qa small{font:500 11px/1 -apple-system, 'SF Pro Text', Inter, 'Hiragino Sans', sans-serif; color:#8e8e93}
.qa.del:hover{background:#fff1f0}
.qa.del:hover .qa-c{background:none}
.qa.del:hover small{color:#d70015}


/* ══ 22版：タブレットとスマホ ══
   タブレット（〜1100px）：左のドックはそのまま、欄を細く。左の欄を開いている間は右の欄をしまう
   スマホ（〜760px）：ドックは下に横並び、左の欄と右の欄は下から出るシート。枚の切り替えはドックの上。
   キャンバスは、1本指でずらし、2本指でつまんで拡大 */
#app{height:100dvh}
.work{touch-action:none}
.sheet-x{display:none}
@media (max-width:1100px){
  .panel{width:292px !important}
  .panel.wide{width:360px !important}
  .insp{width:286px; padding-left:10px; padding-right:10px}
  #app.panel-on .insp{opacity:0; pointer-events:none; transform:translateX(16px)}
  .insp{transition:opacity .2s, transform .25s}
  .fl.tl .seg-top .app{display:none}
}
@media (max-width:760px){
  /* 上：ロゴと、戻す・書き出し。仕上げは文字をなくしてアイコンだけ */
  .fl.tl{left:10px; top:max(8px, env(safe-area-inset-top))}
  .fl.tr{right:8px; top:max(8px, env(safe-area-inset-top)); gap:6px}
  .fl.tl .seg-top{display:none}
  .wordmark{font-size:22px}
  .glass.ur .ic{width:34px; height:34px}
  #polishBtn{display:none}
  #exportBtn{height:36px; padding:0 14px; font-size:13.5px}
  /* 下：ドックを横並びに */
  .dock{left:50%; top:auto; bottom:max(10px, env(safe-area-inset-bottom)); transform:translateX(-50%); flex-direction:row; gap:4px; padding:7px 8px; border-radius:20px}
  .dock button{width:44px; height:44px; border-radius:12px}
  .dock button img{width:44px; height:44px}
  .dock button i{display:none}
  .dock button.on::after{right:50%; top:auto; bottom:-6px; margin:0 -2px 0 0}
  .dock button:hover{transform:none}
  @keyframes dockHop{0%{transform:none} 35%{transform:translateY(-9px)} 65%{transform:translateY(0) scale(.97)} 100%{transform:none}}
  /* 枚の切り替え：ドックの上に小さく。拡大の操作は 2本指でつまむので出さない */
  .bottom{bottom:calc(max(10px, env(safe-area-inset-bottom)) + 66px); padding:4px; gap:4px; border-radius:16px; max-width:calc(100vw - 20px)}
  .bottom .stp:last-child{display:none}
  .shots button{min-width:32px; min-height:32px; padding:0 9px}
  .shots .ind{border-radius:11px}
  .stp{height:34px} .stp .b{width:28px; height:30px}
  /* 左の欄：下から出るシート */
  .panel{left:8px !important; right:8px; top:auto !important; bottom:calc(max(10px, env(safe-area-inset-bottom)) + 66px) !important; width:auto !important;
    height:min(58dvh, 520px); border-radius:22px; transform-origin:50% 100% !important}
  .panel.shut{transform:translateY(24px) scale(.98) !important; filter:none; opacity:0}
  .panel .lights .l-zoom{display:none}
  .p-head.mac{height:42px}
  .p-head.mac::before{content:""; position:absolute; top:6px; left:50%; width:36px; height:4px; margin-left:-18px; border-radius:4px; background:rgba(0,0,0,.15)}
  /* 右の欄：何かを選んだときだけ、下から出るシート */
  .insp{left:8px; right:8px; width:auto; top:auto; bottom:calc(max(10px, env(safe-area-inset-bottom)) + 66px); max-height:min(52dvh, 480px);
    padding:30px 8px 8px; border-radius:24px; background:rgba(248,248,246,.94) !important; -webkit-backdrop-filter:blur(20px) saturate(160%); backdrop-filter:blur(20px) saturate(160%);
    box-shadow:0 0 0 .5px rgba(0,0,0,.08), 0 -10px 40px -12px rgba(0,0,0,.25) !important;
    transform:translateY(calc(100% + 90px)); opacity:0; pointer-events:none; transition:transform .38s cubic-bezier(.2,.9,.3,1), opacity .2s}
  #app.insp-on .insp{transform:none; opacity:1; pointer-events:auto}
  #app.panel-on .insp{transform:translateY(calc(100% + 90px)); opacity:0}
  .insp.more-down, .insp.more-up, .insp.more-up.more-down{-webkit-mask-image:none; mask-image:none}
  .sheet-x{display:grid; position:sticky; top:-22px; z-index:3; float:right; margin:-24px 2px 0 0; width:28px; height:28px; border:0; border-radius:50%; place-items:center; cursor:var(--cur-pointer);
    background:rgba(0,0,0,.07); color:#3a3a3c}
  .sheet-x svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round}
  .insp::before{content:""; position:absolute; top:9px; left:50%; width:36px; height:4px; margin-left:-18px; border-radius:4px; background:rgba(0,0,0,.15)}
  .insp > h4, .insp > .sec{margin-bottom:8px}
  .insp > *{animation:none}
  /* ふれる操作のための大きさ */
  .chip, .fx-list button, .seg button, .size-seg button{min-height:34px}
  .tog{width:44px; height:26px} .tog i{width:22px; height:22px} .tog.on i{transform:translateX(18px)}
  .crop-box{padding:14px; max-width:calc(100vw - 16px)}
  .pop-body{flex-direction:column}
  .pop-side{width:100%}
  .up-box2{padding:18px 16px 10px}
}
@media (max-width:380px){
  .dock button, .dock button img{width:38px; height:38px}
  #exportBtn span{display:none} #exportBtn{padding:0 11px}
}
@media (max-width:760px){
  /* シートが出ている間は、枚の切り替えをしまう（シートと重ならないように） */
  .bottom{transition:opacity .2s, transform .25s}
  #app.panel-on .bottom, #app.insp-on .bottom{opacity:0; pointer-events:none; transform:translate(-50%, 12px)}
}
@media (min-width:761px) and (max-width:1100px){
  /* タブレット：右の欄は、何かを選んだときか枚を押したときだけ（キャンバスを広く） */
  .insp{opacity:0; pointer-events:none; transform:translateX(16px)}
  #app.insp-on .insp{opacity:1; pointer-events:auto; transform:none}
  #app.panel-on .insp, #app.panel-on.insp-on .insp{opacity:0; pointer-events:none; transform:translateX(16px)}
  .sheet-x{display:grid; position:sticky; top:4px; z-index:3; float:right; margin:4px 6px -32px 0; width:28px; height:28px; border:0; border-radius:50%; place-items:center; cursor:var(--cur-pointer); background:rgba(0,0,0,.07); color:#3a3a3c}
  .sheet-x svg{width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round}
}

/* ══ 23版：ぷくっとしたシャボン玉の質感（liquid glass ＋ 虹色のうすい膜）。どうぶつの森のような、丸くてやさしい字と葉っぱの緑 ══ */
:root{
  --bub-ink:#5b4636; --bub-mute:#a08c78; --leaf:#3fbf95; --leaf2:#7fe0c0;
  --bub-bg:radial-gradient(130% 70% at 18% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 58%),
           conic-gradient(from 210deg at 75% 85%, rgba(255,185,232,.20), rgba(168,214,255,.22), rgba(186,255,222,.20), rgba(255,240,168,.18), rgba(255,185,232,.20)),
           rgba(255,255,255,.52);
  --bub-edge:inset 0 2px 1px rgba(255,255,255,.95), inset 0 -12px 26px rgba(255,255,255,.38), inset 0 0 0 1.5px rgba(255,255,255,.75),
             0 20px 44px -20px rgba(110,90,160,.32), 0 6px 14px -8px rgba(110,90,160,.18);
}
/* 作業場：クリーム色に、ミントと桃色のやわらかい光（ガラスの透け感が見えるように） */
.work{background:radial-gradient(38% 48% at 12% 28%, #e3f7ee, rgba(227,247,238,0) 70%), radial-gradient(40% 50% at 92% 72%, #fde9f1, rgba(253,233,241,0) 70%),
  radial-gradient(30% 40% at 60% 10%, #fff6dc, rgba(255,246,220,0) 70%), #fbf8f1 !important}
.dock, .panel, .insp > h4, .insp > .sec, .glass, .bottom, .pill.blue, .pill.dark, .well, .up-box2{font-family:Nunito, 'Rounded Mplus 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif}

/* 左：ドックと欄。欄はドックからぷくっとふくらんでつながる */
.dock, .panel{background:var(--bub-bg) !important; -webkit-backdrop-filter:blur(24px) saturate(185%); backdrop-filter:blur(24px) saturate(185%);
  border:0 !important; box-shadow:var(--bub-edge) !important}
.dock{border-radius:32px !important; padding:12px 10px !important}
.dock button.on{background:none}
.dock button.on::after{display:none}
#app.panel-on .dock button.on::before{content:""; position:absolute; z-index:-1; left:-8px; right:-30px; top:-7px; bottom:-7px; border-radius:24px;
  background:linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.62)); box-shadow:inset 0 2px 1px rgba(255,255,255,.95)}
.dock button img{filter:drop-shadow(0 4px 6px rgba(110,90,160,.18))}
.panel{left:84px !important; border-radius:34px !important}
.panel.wide{width:440px !important}
.p-head.mac{background:none !important; border-bottom:0 !important; height:54px; justify-content:flex-start; padding:0 16px 0 20px}
.p-head.mac .p-title{gap:9px}
.p-head.mac .p-title img{width:26px; height:26px; filter:drop-shadow(0 3px 4px rgba(110,90,160,.2))}
.p-head.mac .p-title b{font:900 18px/1 Nunito, 'Rounded Mplus 1c', sans-serif !important; color:var(--bub-ink) !important; letter-spacing:.01em}
.p-head.mac .lights{left:auto; right:14px}
.lights .l-zoom{display:none}
.lights .l-close{width:30px; height:30px; background:rgba(255,255,255,.7); box-shadow:inset 0 1px 1px #fff, 0 2px 6px -2px rgba(110,90,160,.3)}
.lights .l-close svg{opacity:1; width:11px; height:11px; stroke:var(--bub-mute); stroke-width:1.8}
.lights .l-close:hover svg{stroke:var(--bub-ink)}
.panel h3{font:800 13px/1.2 Nunito, 'Rounded Mplus 1c', sans-serif !important; text-transform:none !important; letter-spacing:.01em !important; color:var(--bub-mute) !important}
.panel h3 small{color:#bfae9c !important}
.panel .tile, .txt-preset, .dev-card{background:rgba(255,255,255,.62) !important; border-radius:22px !important;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.7), 0 6px 14px -10px rgba(110,90,160,.35) !important}
.txt-preset.dark{background:linear-gradient(180deg, #3b3247, #2a2433) !important}
.panel .tile:hover, .txt-preset:hover, .dev-card:hover{transform:translateY(-2px) scale(1.01)}
.dev-card span{color:var(--bub-ink); font-weight:800}
.as-lead, .note{color:var(--bub-mute) !important}

/* 画像を入れる場所も、ぷくっと */
.well{background:rgba(255,255,255,.6); border-radius:22px; box-shadow:inset 0 1.5px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.8), 0 6px 14px -10px rgba(110,90,160,.35)}
.well:hover{background:rgba(255,255,255,.78)}
.well-ic{border-radius:14px; background:linear-gradient(180deg, #fff, #f3fbf7)}
.well-ic svg{stroke:var(--leaf)}
.well-tx b{font:800 13.5px/1.25 Nunito, 'Rounded Mplus 1c', sans-serif; color:var(--bub-ink)}
.well-tx span{font-family:Nunito, sans-serif; color:var(--bub-mute)}
.well-btn{height:30px; padding:0 14px; border-radius:999px; font:800 12.5px/30px Nunito, sans-serif; color:#fff;
  background:linear-gradient(180deg, var(--leaf2), var(--leaf)); box-shadow:inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,90,60,.12), 0 4px 10px -4px rgba(63,191,149,.6)}
.well-btn:hover{background:linear-gradient(180deg, #8de8ca, #46c79c)}

/* 右：ぷくっとしたシャボン玉のカード */
.insp > h4, .insp > .sec{background:var(--bub-bg) !important; -webkit-backdrop-filter:blur(22px) saturate(185%); backdrop-filter:blur(22px) saturate(185%);
  border:0 !important; border-radius:32px !important; box-shadow:var(--bub-edge) !important}
.insp > .sec.shot-card{background:radial-gradient(130% 70% at 18% 0%, rgba(255,255,255,.9), rgba(255,255,255,0) 58%),
  conic-gradient(from 210deg at 75% 85%, rgba(160,240,210,.35), rgba(168,214,255,.3), rgba(186,255,222,.35), rgba(160,240,210,.35)), rgba(220,248,236,.55) !important; color:var(--bub-ink)}
.insp .lbl, .w-title, .shot-card .w-title{color:var(--bub-ink) !important; font-family:Nunito, 'Rounded Mplus 1c', sans-serif !important; font-weight:800 !important}
.w-note, .shot-card .w-note{color:var(--bub-mute); font-family:Nunito, sans-serif}
.w-big{color:var(--bub-ink); font-family:Nunito, sans-serif; font-weight:700; letter-spacing:-.02em}
.w-big i, .w-big small{color:var(--bub-mute)}
.shot-card .shot-prev img{box-shadow:0 0 0 3px #fff, 0 10px 22px -10px rgba(110,90,160,.45); border-radius:14px}
.shot-card .acts button{background:rgba(255,255,255,.7); color:var(--bub-ink); border-radius:999px; box-shadow:inset 0 1.5px 0 #fff, 0 3px 8px -5px rgba(110,90,160,.4)}
.shot-card .acts button:hover{background:#fff; color:var(--leaf)}
/* 札・切り替え：白いぷくっとした札、選ぶと葉っぱの緑 */
.insp .chip, .fx-list button, .size-seg button, .seg button{font-family:Nunito, 'Rounded Mplus 1c', sans-serif !important; font-weight:800 !important; color:var(--bub-ink) !important}
.insp .chip, .fx-list button{background:rgba(255,255,255,.66) !important; box-shadow:inset 0 1.5px 0 #fff, 0 3px 8px -6px rgba(110,90,160,.45) !important}
.insp .chip:hover, .fx-list button:hover{background:#fff !important}
.insp .chip.on, .fx-list button.on, .size-seg button.on, .seg button.on{background:linear-gradient(180deg, var(--leaf2), var(--leaf)) !important; color:#fff !important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,90,60,.12), 0 4px 10px -5px rgba(63,191,149,.6) !important}
.size-seg, .seg{background:rgba(255,255,255,.5) !important; border-radius:999px !important; box-shadow:inset 0 1px 3px rgba(110,90,160,.12)}
.size-seg button, .seg button{border-radius:999px !important}
.cpick{background:rgba(255,255,255,.66); box-shadow:inset 0 1.5px 0 #fff}
.cpick .chex{color:var(--bub-ink); font-family:Nunito, sans-serif; font-weight:800}
.insp .pill.ghost{background:rgba(255,255,255,.66) !important; color:var(--bub-ink) !important; font-family:Nunito, sans-serif; font-weight:800; box-shadow:inset 0 1.5px 0 #fff, 0 3px 8px -6px rgba(110,90,160,.45) !important}
.tog.on{background:linear-gradient(180deg, var(--leaf2), var(--leaf))}
.qa{color:var(--bub-ink)} .qa small{color:var(--bub-mute); font-family:Nunito, sans-serif; font-weight:800}
.qa:hover{background:rgba(255,255,255,.6)}
.qa-c svg .front{fill:rgba(255,255,255,.9)}
.qa + .qa::before{background:rgba(160,140,120,.18)}

/* 右上と下：同じシャボン玉のボタン */
.glass, .bottom{background:var(--bub-bg) !important; -webkit-backdrop-filter:blur(22px) saturate(185%); backdrop-filter:blur(22px) saturate(185%); border:0 !important; box-shadow:var(--bub-edge) !important}
.glass.ur{border-radius:999px !important; padding:4px}
.glass .ic{border-radius:999px; color:var(--bub-ink)}
.glass .ic:hover{background:rgba(255,255,255,.7)}
.seg-top{border-radius:999px !important}
.seg-top span.on{background:rgba(255,255,255,.75); color:var(--bub-ink); border-radius:999px; box-shadow:inset 0 1.5px 0 #fff}
.seg-top span b{font-weight:800}
#polishBtn{height:44px; padding:0 20px; border-radius:999px; border:0; color:var(--bub-ink); font-weight:900; font-size:14.5px;
  background:radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%),
    conic-gradient(from 160deg at 70% 70%, rgba(255,175,225,.55), rgba(160,210,255,.55), rgba(175,250,215,.55), rgba(255,236,160,.5), rgba(255,175,225,.55)) !important;
  box-shadow:var(--bub-edge) !important; -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px)}
#polishBtn:hover{filter:saturate(1.2) brightness(1.03)}
#exportBtn{height:44px; padding:0 20px; border-radius:999px; border:0; color:#fff; font-weight:900; font-size:14.5px; text-shadow:0 1px 1px rgba(0,80,50,.25);
  background:linear-gradient(180deg, var(--leaf2), var(--leaf)) !important;
  box-shadow:inset 0 2.5px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,90,60,.14), 0 10px 22px -10px rgba(63,191,149,.75) !important}
#exportBtn:hover{background:linear-gradient(180deg, #8de8ca, #46c79c) !important; transform:translateY(-1px)}
#exportBtn svg{stroke:#fff}
.wordmark{color:var(--bub-ink)}
.bottom{border-radius:999px !important}
.shots, .stp{background:rgba(255,255,255,.45) !important; border-radius:999px !important}
.shots .ind{background:linear-gradient(180deg, var(--leaf2), var(--leaf)) !important; border-radius:999px !important; box-shadow:inset 0 2px 0 rgba(255,255,255,.5), 0 4px 10px -5px rgba(63,191,149,.6) !important}
.shots button{font-family:Nunito, sans-serif !important; font-weight:800 !important; color:var(--bub-mute) !important; border-radius:999px !important}
.shots button.on{color:#fff !important}
.stp .cnt, .stp .cnt b{color:var(--bub-ink); font-family:Nunito, sans-serif}
.stp .b{border-radius:999px; color:var(--bub-ink)}
@media (max-width:760px){
  .panel{left:8px !important}
  #app.panel-on .dock button.on::before{display:none}
  .insp{background:var(--bub-bg) !important}
}
/* ドックから欄へ、選んだアイコンのところがぷくっとふくらんで橋になる */
#app.panel-on .dock button.on::before{left:-7px; right:-34px; top:-6px; bottom:-6px; border-radius:26px;
  background:linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.88) 70%, rgba(255,255,255,.7));
  box-shadow:inset 0 2px 1px #fff, 0 6px 14px -8px rgba(110,90,160,.3)}
#app.panel-on .dock button.on img{transform:scale(1.04)}

/* ══ 24版：ドックがそのまま広がって欄になる（1つのシャボン玉）。もっと透明に、少しゆがんで見えるガラス ══ */
:root{
  --bub-bg:radial-gradient(120% 60% at 15% 0%, rgba(255,255,255,.85), rgba(255,255,255,0) 55%),
           radial-gradient(80% 50% at 90% 100%, rgba(255,255,255,.45), rgba(255,255,255,0) 60%),
           conic-gradient(from 210deg at 75% 85%, rgba(255,185,232,.16), rgba(168,214,255,.18), rgba(186,255,222,.16), rgba(255,240,168,.14), rgba(255,185,232,.16)),
           rgba(255,255,255,.26);
}
/* 透けて、うしろが少しゆがむ（使えるブラウザだけ。使えないときは、ぼかしだけ） */
.dock, .panel, .insp > h4, .insp > .sec, .glass, .bottom, #polishBtn{
  -webkit-backdrop-filter:blur(10px) saturate(190%) !important; backdrop-filter:blur(10px) saturate(190%) !important}
@supports (backdrop-filter:url(#bubbleWarp)){
  .dock, .panel, .insp > h4, .insp > .sec, .glass, .bottom{backdrop-filter:url(#bubbleWarp) blur(7px) saturate(190%) !important}
}
/* シャボン玉のふち：虹色の細い輪（上は明るく、下はうすく） */
.glass{position:relative}
.insp > .sec, .insp > h4{position:relative}
.panel::after, .dock::after, .insp > .sec::after, .insp > h4::after, .bottom::after, .glass::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; padding:1.6px;
  background:conic-gradient(from 120deg, rgba(255,255,255,.95), rgba(255,170,220,.7), rgba(150,205,255,.75), rgba(160,250,210,.7), rgba(255,236,150,.7), rgba(255,255,255,.95));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity:.85}
/* 光の点（シャボン玉の上のつや） */
.panel::before, .insp > .sec::before{content:""; position:absolute; z-index:0; top:10px; left:22px; width:46px; height:16px; border-radius:50%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); transform:rotate(-14deg); opacity:.85}
.insp > .sec > *{position:relative; z-index:1}

/* ドックが広がって欄になる：欄はドックの左はしから始まり、ドックのぶんの列を含む1枚の形。ドック自身の膜は消す */
@media (min-width:761px){
  .panel{left:14px !important; padding-left:78px !important; width:406px !important; border-radius:36px !important}
  .panel.wide{width:518px !important}
  #app.panel-on .dock{background:none !important; box-shadow:none !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important}
  #app.panel-on .dock::after{opacity:0}
  .dock{z-index:21; transition:background .3s, box-shadow .3s}
  .dock::after{transition:opacity .3s}
  /* 選んだアイコンの下に、欄の中身へ続くぷくっとした道 */
  #app.panel-on .dock button.on::before{left:-6px; right:-26px; top:-6px; bottom:-6px; border-radius:22px 0 0 22px;
    background:linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.35) 80%, rgba(255,255,255,0)); box-shadow:inset 0 2px 1px rgba(255,255,255,.95)}
  /* 欄の中身とドックの列の間に、うすい区切り */
  .panel .p-head, .panel .p-body{position:relative}
  .panel .p-body{border-left:1px solid rgba(255,255,255,.55); margin-left:-2px}
  .panel .p-head{border-left:1px solid rgba(255,255,255,.55); margin-left:-2px}
}
@media (min-width:761px) and (max-width:1100px){
  .panel{width:370px !important}
}
@media (min-width:761px){
  #app.panel-on .dock button.on::before{background:linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.7) 75%, rgba(255,255,255,.15)) !important;
    box-shadow:inset 0 2px 1px #fff, 0 4px 12px -6px rgba(110,90,160,.25) !important}
}

/* ══ 25版：ドックと欄は別のシャボン玉。選んだアイコンの高さで、くびれた首（曲線）でぷくっとつながる ══ */
.neck{display:none}
@media (min-width:761px){
  .panel{left:110px !important; padding-left:0 !important; width:328px !important}
  .panel.wide{width:440px !important}
  #app.panel-on .dock{background:var(--bub-bg) !important; box-shadow:var(--bub-edge) !important}
  @supports (backdrop-filter:url(#bubbleWarp)){ #app.panel-on .dock{backdrop-filter:url(#bubbleWarp) blur(7px) saturate(190%) !important} }
  #app.panel-on .dock::after{opacity:.85}
  #app.panel-on .dock button.on::before{display:none !important}
  .panel .p-body, .panel .p-head{border-left:0 !important; margin-left:0 !important}
  /* 首：上下のふちが内側へ曲がる（くびれ）。両はしは、ドックと欄のふちに少しもぐる */
  .neck{display:block; position:absolute; z-index:20; left:80px; width:36px; height:84px; pointer-events:none; opacity:0;
    background:linear-gradient(90deg, rgba(255,255,255,.6), rgba(255,255,255,.42)), var(--bub-bg);
    -webkit-backdrop-filter:blur(10px) saturate(190%); backdrop-filter:blur(10px) saturate(190%);
    clip-path:path("M0 0 C 12 0, 13 24, 18 24 C 23 24, 24 0, 36 0 L 36 84 C 24 84, 23 60, 18 60 C 13 60, 12 84, 0 84 Z");
    transform:scaleX(.2); transform-origin:0 50%; transition:opacity .2s, transform .35s cubic-bezier(.3,1.5,.5,1), top .3s cubic-bezier(.3,1.2,.5,1)}
  #app.panel-on .neck{opacity:1; transform:none}
  .neck::after{content:""; position:absolute; left:10px; right:10px; top:31px; height:5px; border-radius:5px; background:rgba(255,255,255,.75); filter:blur(1.5px)}   /* 首のつや */
}
@media (min-width:761px) and (max-width:1100px){ .panel{width:292px !important} }
@media (min-width:761px){
  .neck{z-index:22; left:74px; width:48px; height:100px;
    background:linear-gradient(90deg, rgba(246,252,249,.92), rgba(250,253,252,.9) 50%, rgba(246,252,249,.92));
    -webkit-backdrop-filter:blur(14px) saturate(190%); backdrop-filter:blur(14px) saturate(190%);
    clip-path:path("M0 0 C 14 0, 16 26, 24 26 C 32 26, 34 0, 48 0 L 48 100 C 34 100, 32 74, 24 74 C 16 74, 14 100, 0 100 Z")}
  .neck::after{left:12px; right:12px; top:36px; height:6px}
}
@media (min-width:761px){
  .neck{left:79px; width:42px; clip-path:path("M0 0 C 12 0, 14 26, 21 26 C 28 26, 30 0, 42 0 L 42 100 C 30 100, 28 74, 21 74 C 14 74, 12 100, 0 100 Z")}
  .neck::after{left:10px; right:10px}
}

/* ══ 26版：ドック・くびれ・欄をひとつのシャボン玉に（1本の虹色のふち） ══ */
.neck{display:none !important}
.blob, .blob-rim{display:none}
@media (min-width:761px){
  .blob{display:block; position:absolute; inset:0; z-index:18; pointer-events:none; opacity:0; transition:opacity .25s;
    background:var(--bub-bg); -webkit-backdrop-filter:blur(10px) saturate(190%); backdrop-filter:blur(10px) saturate(190%)}
  @supports (backdrop-filter:url(#bubbleWarp)){ .blob{backdrop-filter:url(#bubbleWarp) blur(7px) saturate(190%)} }
  .blob-rim{display:block; position:absolute; inset:0; width:100%; height:100%; z-index:17; pointer-events:none; opacity:0; transition:opacity .25s; overflow:visible}
  .blob-rim .sh{fill:rgba(110,90,160,.22); transform:translateY(14px)}
  .blob-rim .ln{fill:none; stroke:url(#rimG); stroke-width:2; opacity:.9}
  .blob-rim .hi{fill:none; stroke:rgba(255,255,255,.9); stroke-width:1; transform:translateY(1.5px); opacity:.7}
  #app.fused .blob{opacity:1}
  #app.fused .blob-rim{opacity:1; z-index:19}
  /* ひとつになっている間：ドックと欄は、自分の膜・ふち・影を消す */
  #app.fused .dock, #app.fused .panel{background:none !important; box-shadow:none !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important}
  #app.fused .dock::after, #app.fused .panel::after{opacity:0 !important}
  .dock, .panel{z-index:20}
  .dock{z-index:21}
}
@media (min-width:761px){
  .panel{left:132px !important}
  .blob-rim .sh{fill:rgba(110,90,160,.28)}
}
@media (min-width:761px){ .blob-rim .sh{fill:rgba(110,90,160,.1)} }

/* 27版：左のドックと欄を明るくクリーンに（白いガラス、うすい虹色、中の影の色をなくす） */
@media (min-width:761px){
  .blob{background:radial-gradient(120% 50% at 20% 0%, rgba(255,255,255,.98), rgba(255,255,255,0) 60%),
      conic-gradient(from 210deg at 75% 85%, rgba(255,200,236,.12), rgba(190,226,255,.14), rgba(200,255,232,.12), rgba(255,244,190,.1), rgba(255,200,236,.12)),
      rgba(255,255,255,.74) !important}
  .blob-rim .sh{fill:none}
  .blob-rim .ln{stroke-width:1.8; opacity:.75}
  #app.fused .panel .tile, #app.fused .txt-preset, #app.fused .dev-card, #app.fused .well{background:rgba(255,255,255,.9) !important;
    box-shadow:inset 0 1.5px 0 #fff, 0 0 0 1px rgba(150,130,190,.07), 0 6px 16px -12px rgba(110,90,160,.3) !important}
  #app.fused .txt-preset.dark{background:linear-gradient(180deg, #3b3247, #2a2433) !important}
  #app.fused .blob{filter:drop-shadow(0 0 0 transparent)}
  .blob-rim{filter:drop-shadow(0 16px 22px rgba(110,90,160,.14))}
}

/* ══ 28版：どうぶつの森（ポケットキャンプ）のような、ゲームの画面。透けない、クリーム色の板・青緑の題の帯・下に厚みのあるボタン ══ */
:root{
  --ac-cream:#fdf8e8; --ac-card:#fffdf5; --ac-line:#eadfc2; --ac-lip:#e2d2a8; --ac-ink:#6b5536; --ac-mute:#a8916d;
  --ac-teal:#5fbca4; --ac-teal2:#4aa58e; --ac-deep:#24606b; --ac-yellow:#f8d86c; --ac-yellow2:#e4bb3f; --ac-pink:#f47c97; --ac-pink2:#d95c79;
  --ac-font:'Rounded Mplus 1c', Nunito, 'Hiragino Maru Gothic ProN', sans-serif;
}
/* 作業場：やわらかい黄色に、うすい葉っぱの水玉 */
.work{background:radial-gradient(circle at 12px 12px, rgba(226,196,110,.22) 3px, transparent 3.5px) 0 0/34px 34px, #fbf0cd !important}
/* 透明とゆがみ・虹色のふち・つやの点はやめる */
.dock, .panel, .insp > h4, .insp > .sec, .glass, .bottom, .blob, #polishBtn{-webkit-backdrop-filter:none !important; backdrop-filter:none !important}
.panel::after, .dock::after, .insp > .sec::after, .insp > h4::after, .bottom::after, .glass::after, .panel::before, .insp > .sec::before{display:none !important}
body, .dock, .panel, .insp, .glass, .bottom, .well, .up-box2, .crop-box{font-family:var(--ac-font)}

/* 板：クリーム色、ベージュのふち、下に厚み（ゲームのボタンのように） */
.dock, .panel, .insp > .sec, .insp > h4, .bottom, .glass{background:var(--ac-cream) !important; border:3px solid var(--ac-line) !important;
  box-shadow:0 6px 0 var(--ac-lip), 0 14px 24px -12px rgba(120,90,40,.35) !important}
@media (min-width:761px){
  .blob{background:var(--ac-cream) !important}
  .blob-rim{filter:none}
  .blob-rim .ln{stroke:var(--ac-line); stroke-width:3; opacity:1}
  .blob-rim .hi{display:none}
  .blob-rim .sh{fill:var(--ac-lip) !important; filter:none; transform:translateY(6px)}
  #app.fused .dock, #app.fused .panel{border-color:transparent !important; box-shadow:none !important; background:none !important}
}
/* ドック：アイコンを選ぶと、白い台の上に乗る */
.dock button{border-radius:18px}
.dock button.on{background:#fff !important; box-shadow:inset 0 0 0 3px var(--ac-line), 0 3px 0 var(--ac-lip)}
.dock button img{filter:none}
/* 欄の題：青緑の帯に白い字 */
.p-head.mac{margin:6px 6px 0; height:52px; border-radius:26px 26px 14px 14px; background:var(--ac-teal) !important; justify-content:center; padding:0 50px;
  box-shadow:inset 0 -4px 0 var(--ac-teal2)}
.p-head.mac .p-title b{color:#fff !important; font:800 18px/1 var(--ac-font) !important; letter-spacing:.06em; text-shadow:0 2px 0 rgba(0,70,60,.18)}
.p-head.mac .p-title img{width:28px; height:28px; padding:3px; border-radius:10px; background:#fff; box-shadow:0 2px 0 rgba(0,70,60,.2)}
/* 閉じる：濃い青緑の丸に白い × */
.lights .l-close{width:34px; height:34px; background:var(--ac-deep) !important; box-shadow:0 3px 0 #163e46 !important}
.lights .l-close svg{stroke:#fff !important; width:12px; height:12px; stroke-width:2.6}
.p-head.mac .lights{right:10px}
/* 見出し：茶色の字の、うすい黄色の札 */
.panel h3{display:flex; align-items:center; justify-content:center; gap:8px; height:30px; margin:18px 0 10px !important; border-radius:999px;
  background:#f9edc4; color:var(--ac-ink) !important; font:800 13px/1 var(--ac-font) !important; letter-spacing:.04em !important}
.panel h3 small{color:var(--ac-mute) !important; font-weight:700}
.panel h3.with-act{justify-content:space-between; padding:0 6px 0 16px}
/* 中の札：白に近いクリーム、ふちと下の厚み */
.panel .tile, .txt-preset, .dev-card, .well, #app.fused .panel .tile, #app.fused .txt-preset, #app.fused .dev-card, #app.fused .well{
  background:var(--ac-card) !important; border:2.5px solid var(--ac-line) !important; border-radius:18px !important;
  box-shadow:0 4px 0 var(--ac-lip) !important}
.panel .tile:hover, .txt-preset:hover, .dev-card:hover{transform:translateY(-2px)}
.panel .tile:active, .txt-preset:active, .dev-card:active{transform:translateY(3px); box-shadow:0 1px 0 var(--ac-lip) !important}
.txt-preset.dark, #app.fused .txt-preset.dark{background:linear-gradient(180deg, #3c3346, #2a2433) !important}
.dev-card span, .well-tx b{color:var(--ac-ink) !important; font-family:var(--ac-font) !important; font-weight:800}
.well-tx span, .as-lead, .note{color:var(--ac-mute) !important; font-family:var(--ac-font) !important}
.well-ic{background:#f9edc4 !important; box-shadow:none}
.well-ic svg{stroke:var(--ac-ink)}
/* ボタン：黄色（ふつう）・ピンク（決める）、どちらも下に厚み */
.well-btn, .as-ready .pill, .up-pack{font-family:var(--ac-font) !important}
.well-btn{height:32px; padding:0 16px; color:var(--ac-ink) !important; background:var(--ac-yellow) !important; border:0;
  box-shadow:0 3px 0 var(--ac-yellow2) !important; font-weight:800 !important; text-shadow:none}
.well-btn:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ac-yellow2) !important}
.lock{background:var(--ac-deep) !important}

/* 右：同じクリームの板。題は茶色、数字は大きく */
.insp .lbl, .w-title, .shot-card .w-title{color:var(--ac-ink) !important; font-family:var(--ac-font) !important; font-weight:800 !important}
.w-note, .shot-card .w-note, .w-big i, .w-big small{color:var(--ac-mute) !important}
.w-big{color:var(--ac-ink) !important; font-family:var(--ac-font) !important; font-weight:800 !important}
.insp > .sec.shot-card{background:#e3f4ec !important; border-color:#bfe3d4 !important; box-shadow:0 6px 0 #a9d6c3, 0 14px 24px -12px rgba(40,110,90,.3) !important}
.shot-card .shot-prev img{box-shadow:0 0 0 3px #fff, 0 4px 0 #a9d6c3; border-radius:12px}
.shot-card .acts button{background:#fff !important; color:var(--ac-ink) !important; border:2px solid #bfe3d4; box-shadow:0 3px 0 #a9d6c3 !important}
.shot-card .acts button:hover{color:var(--ac-teal2) !important}
.insp .chip, .fx-list button{background:var(--ac-card) !important; border:2px solid var(--ac-line) !important; box-shadow:0 3px 0 var(--ac-lip) !important; color:var(--ac-ink) !important; font-family:var(--ac-font) !important}
.insp .chip:hover, .fx-list button:hover{background:#fff !important}
.insp .chip.on, .fx-list button.on, .size-seg button.on, .seg button.on{background:var(--ac-yellow) !important; color:var(--ac-ink) !important; border-color:var(--ac-yellow2) !important;
  box-shadow:0 3px 0 var(--ac-yellow2) !important}
.size-seg, .seg{background:#f4ead0 !important; box-shadow:inset 0 2px 0 rgba(160,130,70,.15) !important}
.size-seg button, .seg button{color:var(--ac-mute) !important; font-family:var(--ac-font) !important}
.cpick{background:var(--ac-card); border:2px solid var(--ac-line); box-shadow:0 3px 0 var(--ac-lip)}
.cpick .chex{color:var(--ac-ink); font-family:var(--ac-font)}
.insp .pill.ghost{background:var(--ac-card) !important; border:2px solid var(--ac-line) !important; box-shadow:0 3px 0 var(--ac-lip) !important; color:var(--ac-ink) !important; font-family:var(--ac-font)}
.tog{background:#e8dcbc} .tog.on{background:var(--ac-teal) !important}
.qa{color:var(--ac-ink)} .qa small{color:var(--ac-mute); font-family:var(--ac-font)}
.qa:hover{background:#f9edc4}
.qa-c svg .front{fill:var(--ac-cream)}
.qa + .qa::before{background:repeating-linear-gradient(180deg, var(--ac-line) 0 3px, transparent 3px 6px)}

/* 右上：戻すはクリームの丸、AI で仕上げは黄色、書き出しはピンク */
.glass.ur{border-radius:999px !important; padding:3px}
.glass .ic{color:var(--ac-ink)}
.glass .ic:hover{background:#f9edc4}
.seg-top{border-radius:999px !important}
.seg-top span.on{background:#f9edc4; color:var(--ac-ink); box-shadow:none}
.wordmark{color:var(--ac-ink)}
#polishBtn{background:var(--ac-yellow) !important; color:var(--ac-ink) !important; border:0 !important; font-family:var(--ac-font) !important; font-weight:800 !important;
  box-shadow:0 5px 0 var(--ac-yellow2), 0 12px 20px -10px rgba(160,120,20,.45) !important}
#exportBtn{background:var(--ac-pink) !important; color:#fff !important; font-family:var(--ac-font) !important; font-weight:800 !important; text-shadow:0 1px 0 rgba(150,30,60,.25);
  box-shadow:0 5px 0 var(--ac-pink2), 0 12px 20px -10px rgba(200,60,100,.45) !important}
#polishBtn:active, #exportBtn:active{transform:translateY(3px)}
#exportBtn:hover{background:#f68aa2 !important}
/* 下：青緑の帯、選んだ枚は黄色 */
.bottom{background:var(--ac-teal) !important; border-color:var(--ac-teal2) !important; box-shadow:0 6px 0 var(--ac-teal2), 0 14px 24px -12px rgba(40,110,90,.4) !important}
.shots, .stp{background:rgba(255,255,255,.18) !important}
.shots button{color:#fff !important; font-family:var(--ac-font) !important}
.shots button.on{color:var(--ac-ink) !important}
.shots .ind{background:var(--ac-yellow) !important; box-shadow:0 3px 0 var(--ac-yellow2) !important}
.stp .cnt, .stp .cnt b, .stp .cnt em, .stp .b{color:#fff !important; font-family:var(--ac-font)}
.stp .b:hover{background:rgba(255,255,255,.2) !important}
@media (max-width:760px){
  .insp{background:var(--ac-cream) !important; border:3px solid var(--ac-line); box-shadow:0 -6px 24px -10px rgba(120,90,40,.35) !important}
  .dock{background:var(--ac-teal) !important; border-color:var(--ac-teal2) !important; box-shadow:0 6px 0 var(--ac-teal2) !important}
  .dock button.on{background:var(--ac-cream) !important}
  .sheet-x{background:var(--ac-deep); color:#fff}
}
@media (min-width:761px){
  /* ふちと厚みは、クリームの板の下に敷く（板が上にのる） */
  #app.fused .blob-rim{z-index:17 !important}
  .blob-rim .ln{stroke-width:6 !important}
}
/* 選んだアイコン：白い台にのせる（アイコンのまわりに白い輪とベージュのふち） */
.dock button.on{box-shadow:0 0 0 4px #fff, 0 0 0 7px var(--ac-line), 0 7px 0 4px var(--ac-lip) !important}
.blob-rim .sh{stroke:none !important}

/* 29版：欄の題の帯は、上だけ丸く、下はまっすぐの帯に。選んだアイコンは、自分の枠の中で白い台にのる（となりに、はみ出さない） */
.p-head.mac{margin:6px 6px 0 !important; height:56px !important; border-radius:28px 28px 0 0 !important; box-shadow:none !important;
  border-bottom:3px solid var(--ac-teal2); padding:0 54px !important}
.p-head.mac .lights{right:12px !important}
.lights .l-close{box-shadow:0 2px 0 #163e46 !important}
.dock button.on{background:#fff !important; border-radius:16px !important; box-shadow:inset 0 0 0 2.5px var(--ac-line), 0 3px 0 var(--ac-lip) !important}
.dock button.on img{width:40px !important; height:40px !important; filter:none}
.dock button img{transition:width .2s, height .2s}
/* 題の帯：上も下も丸い、ぷっくりした帯（下にうすい厚み） */
.p-head.mac{border-radius:28px !important; border-bottom:0 !important; box-shadow:0 4px 0 var(--ac-teal2) !important; margin:6px 6px 4px !important}

/* ══ 30版：小窓（AI で仕上げ・パックの案内・切り抜き）も、どうぶつの森のように ══ */
.modal, .crop-modal{background:rgba(70,58,38,.38) !important; -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px)}
.m-box, .crop-box{position:relative; background:var(--ac-cream) !important; border:3px solid var(--ac-line); border-radius:30px !important;
  box-shadow:0 7px 0 var(--ac-lip), 0 30px 60px -24px rgba(80,60,20,.45) !important; font-family:var(--ac-font); color:var(--ac-ink); padding:0 22px 22px !important}
/* 題：上の青緑の丸い帯 */
.m-head{margin:10px -12px 16px !important; height:56px; padding:0 16px 0 22px; border-radius:28px; background:var(--ac-teal); box-shadow:0 4px 0 var(--ac-teal2);
  align-items:center !important; justify-content:center}
.m-head b{color:#fff; font:800 18px/1 var(--ac-font) !important; letter-spacing:.06em; text-shadow:0 2px 0 rgba(0,70,60,.18); margin:0 auto}
.m-head span{color:rgba(255,255,255,.85) !important; font-family:var(--ac-font)}
.m-head .x{position:absolute; right:22px; margin:0 !important; width:34px !important; height:34px !important; border-radius:50%; background:var(--ac-deep) !important; color:#fff !important;
  font:800 16px/34px var(--ac-font); box-shadow:0 3px 0 #163e46; padding:0}
.m-p{color:var(--ac-ink) !important; font-family:var(--ac-font); font-size:13.5px !important; line-height:1.8 !important; padding:12px 14px; border-radius:16px; background:#f9edc4}
/* 枚を選ぶ：クリームのふち付きの札。選ぶと黄色い台 */
.pick-frame button{padding:5px !important; border-radius:16px !important; background:var(--ac-card) !important; border:2.5px solid var(--ac-line) !important; box-shadow:0 3px 0 var(--ac-lip) !important; opacity:1 !important}
.pick-frame button img{border-radius:11px !important; box-shadow:none !important}
.pick-frame button.on{background:var(--ac-yellow) !important; border-color:var(--ac-yellow2) !important; box-shadow:0 3px 0 var(--ac-yellow2) !important; transform:translateY(-3px)}
.pick-frame button.on::after{background:var(--ac-pink) !important; box-shadow:0 0 0 2.5px #fff !important}
.ba figure{background:var(--ac-card); border:2.5px solid var(--ac-line); border-radius:18px; padding:8px; box-shadow:0 3px 0 var(--ac-lip)}
.ba figcaption{font-family:var(--ac-font); font-weight:800; color:var(--ac-mute)}
/* 下のボタン：決める（ピンク）・ふつう（黄色）・やめる（クリーム） */
.m-foot{justify-content:center !important; gap:12px !important; margin-top:18px !important}
.m-foot .pill, .crop-foot .pill{height:46px !important; padding:0 26px !important; border-radius:999px !important; border:0 !important; font:800 15px/46px var(--ac-font) !important}
.m-foot .pill:not(.ghost), .crop-foot .pill.dark{background:var(--ac-pink) !important; color:#fff !important; box-shadow:0 5px 0 var(--ac-pink2) !important; text-shadow:0 1px 0 rgba(150,30,60,.25)}
.m-foot .pill.ghost{background:var(--ac-yellow) !important; color:var(--ac-ink) !important; box-shadow:0 5px 0 var(--ac-yellow2) !important}
.crop-foot .pill.ghost{background:var(--ac-card) !important; color:var(--ac-ink) !important; border:2.5px solid var(--ac-line) !important; box-shadow:0 4px 0 var(--ac-lip) !important}
.m-foot .pill:active, .crop-foot .pill:active{transform:translateY(3px)}
.crop-head{margin:10px -12px 4px; height:56px; padding:0 22px; border-radius:28px; background:var(--ac-teal); box-shadow:0 4px 0 var(--ac-teal2); align-items:center !important}
.crop-head b{color:#fff !important; font:800 17px/1 var(--ac-font) !important; letter-spacing:.04em}
.crop-head span{color:rgba(255,255,255,.85) !important; font-family:var(--ac-font)}
.crop-tip{color:var(--ac-mute) !important; font-family:var(--ac-font)}

/* パックの案内：おみせのように。題は帯、できることは点線で区切った札、パックは「棚」の上の2つの品 */
.up-box2{padding:0 20px 18px !important; gap:12px !important}
.up-head{margin:10px -10px 4px; height:58px; padding:0 18px; border-radius:29px; background:var(--ac-teal); box-shadow:0 4px 0 var(--ac-teal2); justify-content:center}
.up-head b{color:#fff !important; font:800 16px/1.3 var(--ac-font) !important; text-shadow:0 2px 0 rgba(0,70,60,.18)}
.up-lock{width:34px !important; height:34px !important; border-radius:12px !important; background:#fff !important}
.up-lock svg{stroke:var(--ac-teal2) !important}
.up-list{padding:6px 14px !important; border-radius:18px; background:var(--ac-card); border:2.5px solid var(--ac-line); box-shadow:0 3px 0 var(--ac-lip); gap:0 !important}
.up-list li{padding:9px 0 9px 26px !important; font-family:var(--ac-font) !important; font-weight:700; color:var(--ac-ink) !important; border-bottom:2px dotted var(--ac-line)}
.up-list li:last-child{border-bottom:0}
.up-list li::before{top:11px !important; background-color:var(--ac-teal) !important}
.up-packs{padding:14px 10px 18px !important; margin-top:6px !important; border-radius:20px;
  background:linear-gradient(180deg, transparent 72%, #d9b98a 72%, #c9a26c 86%, transparent 86%), #f6e7c3; gap:12px !important}
.up-pack{align-items:center !important; text-align:center !important; padding:14px 10px 12px !important; border-radius:20px !important; background:var(--ac-card) !important;
  border:2.5px solid var(--ac-line) !important; box-shadow:0 4px 0 var(--ac-lip) !important}
.up-pack b{font:900 24px/1 var(--ac-font) !important; color:var(--ac-ink) !important}
.up-pack span{font:800 12.5px/1.3 var(--ac-font) !important; color:var(--ac-mute) !important}
.up-pack.best{background:var(--ac-yellow) !important; border-color:var(--ac-yellow2) !important; box-shadow:0 4px 0 var(--ac-yellow2) !important}
.up-pack.best b, .up-pack.best span{color:var(--ac-ink) !important}
.up-pack em{background:var(--ac-pink) !important; font-family:var(--ac-font) !important; font-weight:800; box-shadow:0 2px 0 var(--ac-pink2); transform:rotate(4deg)}
.up-pack:hover{transform:translateY(-3px) !important}
.up-pack:active{transform:translateY(2px) !important}
.up-later{align-self:center !important; width:44px; height:44px; padding:0 !important; border-radius:50% !important; background:var(--ac-deep) !important; color:transparent !important;
  box-shadow:0 3px 0 #163e46; position:relative; overflow:hidden}
.up-later::before, .up-later::after{content:""; position:absolute; left:50%; top:50%; width:16px; height:3px; margin:-1.5px 0 0 -8px; border-radius:2px; background:#fff; transform:rotate(45deg)}
.up-later::after{transform:rotate(-45deg)}
.up-err{color:var(--ac-pink2) !important; font-family:var(--ac-font)}
.work{background:#fbf0cd !important}   /* すき間を作業場の色でおおうので、水玉はやめて無地に */
:lang(ja){--ac-font:'Rounded Mplus 1c', 'Hiragino Maru Gothic ProN', sans-serif}

/* 31版：AI で仕上げの小窓を、もっとどうぶつの森らしく（題のきらきらバッジ、杖でなじむ絵、点々の紙の上で選ぶ、葉っぱの札、ボタンのきらめき） */
.polish-box{width:min(560px, 92vw) !important}
.m-badge{position:absolute; left:20px; top:50%; width:34px; height:34px; margin-top:-17px; border-radius:50%; background:var(--ac-yellow); box-shadow:0 3px 0 var(--ac-yellow2), inset 0 2px 0 rgba(255,255,255,.6);
  display:grid; place-items:center; animation:pzSpin 6s linear infinite}
.m-badge svg{width:18px; height:18px; fill:#fff; filter:drop-shadow(0 1px 0 rgba(160,110,20,.4))}
@keyframes pzSpin{to{transform:rotate(360deg)}}
.m-head{position:relative}
.pz-how{display:flex; align-items:center; justify-content:center; gap:14px; margin:4px 0 14px; padding:16px; border-radius:22px;
  background:radial-gradient(circle at 10px 10px, rgba(226,196,110,.25) 2px, transparent 2.5px) 0 0/20px 20px, #fbf1d3}
.pz-card{position:relative; width:52px; height:92px; border-radius:12px; background:#fff; border:3px solid #fffdf5; box-shadow:0 0 0 2px var(--ac-line), 0 4px 0 2px var(--ac-lip); overflow:hidden}
.pz-card i{position:absolute; left:8px; height:5px; border-radius:3px; background:#e2d6bb} .pz-card i:nth-child(1){top:9px; right:10px} .pz-card i:nth-child(2){top:18px; right:22px}
.pz-card b{position:absolute; left:50%; bottom:-6px; width:26px; height:52px; margin-left:-13px; border-radius:8px 8px 0 0; background:#d8d2c4; border:2px solid #b8ad96; border-bottom:0}
.pz-card.a{background:#f4efe4; transform:rotate(-5deg)}
.pz-card.b{background:linear-gradient(180deg, #ffd9c7, #ffb3c4); transform:rotate(5deg)}
.pz-card.b i{background:#fff} .pz-card.b b{background:#fffaf0; border-color:#7a5a3e; box-shadow:0 6px 12px -4px rgba(200,80,100,.5)}
.pz-card.b em{position:absolute; right:6px; top:28px; width:10px; height:10px; background:#fff; clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); animation:pzTw 1.6s ease-in-out infinite}
.pz-wand svg{width:56px; height:28px; animation:pzWave 1.8s ease-in-out infinite; transform-origin:10% 80%}
@keyframes pzWave{50%{transform:rotate(-12deg)}}
@keyframes pzTw{50%{transform:scale(.4) rotate(45deg); opacity:.4}}
.pz-pick{margin-top:14px; padding:12px 12px 6px; border-radius:20px; background:var(--ac-card); border:2.5px dashed var(--ac-line)}
.pz-lbl{display:block; margin:0 4px 4px; font:800 13px/1 var(--ac-font); color:var(--ac-mute)}
.pz-cost{display:inline-flex; align-items:center; gap:5px; height:30px; padding:0 12px 0 8px; margin-right:auto; border-radius:999px; background:#e8f6e2; color:#3f8f3d; font:800 12.5px/1 var(--ac-font); box-shadow:0 2px 0 #c8e6bd}
.pz-cost svg{width:16px; height:16px}
.m-foot{justify-content:flex-end !important; align-items:center}
#polishGo{position:relative; overflow:hidden; padding:0 30px !important}
#polishGo .tw{position:absolute; top:0; bottom:0; left:-40%; width:30%; background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); transform:skewX(-20deg); animation:pzShine 2.6s ease-in-out infinite}
@keyframes pzShine{0%,55%{left:-40%} 100%{left:130%}}
@media (prefers-reduced-motion:reduce){ .m-badge, .pz-wand svg, .pz-card.b em, #polishGo .tw{animation:none} }
/* 選んだ枚の印：ピンクの丸をやめ、白いふちの葉っぱの中に白いチェック（少し傾けて、ぴょこんと出る） */
.pick-frame button.on::after{content:"" !important; top:-12px !important; right:-12px !important; width:30px !important; height:30px !important; border-radius:0 !important; background:none !important; box-shadow:none !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3 C 34 8 37 24 22 37 C 6 32 3 15 20 3Z' fill='%2356b947' stroke='%23fff' stroke-width='3.4' stroke-linejoin='round'/%3E%3Cpath d='M13 21 l5 5 l9 -11' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size:100% 100% !important; filter:drop-shadow(0 2px 0 rgba(60,110,50,.35)); transform:rotate(12deg); animation:leafPop .35s cubic-bezier(.3,1.6,.5,1)}
@keyframes leafPop{from{transform:rotate(-20deg) scale(.2)}}

/* 素材を作れます：クリームの札。上に画面の束と題、下に「1回分」の葉っぱの札とピンクの作るボタン */
.as-ready{flex-direction:column; align-items:stretch; gap:12px; padding:14px 14px 12px; margin:4px 0 8px;
  background:var(--ac-card) !important; border:2.5px solid var(--ac-line); border-radius:22px; box-shadow:0 5px 0 var(--ac-lip)}
.as-ready .as-top{display:flex; align-items:center; gap:14px}
.as-ready .as-thumbs{margin:0 4px 0 2px; padding:4px 0 2px}
.as-ready .as-thumbs i{width:28px; height:58px; border-radius:7px; background-color:#fff;
  box-shadow:0 0 0 2.5px #fff, 0 0 0 4.5px var(--ac-line), 0 3px 0 4.5px var(--ac-lip); margin-right:-8px}
.as-ready .as-thumbs i:nth-child(1){transform:rotate(-6deg)}
.as-ready .as-thumbs i:nth-child(2){transform:translateY(-4px) rotate(2deg)}
.as-ready .as-thumbs i:nth-child(3){transform:rotate(9deg)}
.as-ready .up-tx{gap:3px; color:var(--ac-mute); font:700 11.5px/1.5 var(--ac-font)}
.as-ready .up-tx b{color:var(--ac-ink); font:900 15px/1.3 var(--ac-font); letter-spacing:.02em}
.as-ready .as-foot{display:flex; align-items:center; gap:8px; padding-top:10px; border-top:2px dashed var(--ac-line)}
.as-ready .pz-cost{margin-right:auto}
.as-go{position:relative; overflow:hidden; display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 22px 0 18px; border:0; border-radius:999px; cursor:var(--cur-pointer);
  background:var(--ac-pink); color:#fff; font:800 15px/1 var(--ac-font); letter-spacing:.04em; box-shadow:0 4px 0 var(--ac-pink2);
  text-shadow:0 1px 0 rgba(150,30,60,.25); transition:transform .12s, box-shadow .12s}
.as-go svg{width:15px; height:15px; fill:#fff7c2}
.as-go:hover{transform:translateY(1px); box-shadow:0 3px 0 var(--ac-pink2)}
.as-go:active{transform:translateY(4px); box-shadow:0 0 0 var(--ac-pink2)}
.as-go .tw{position:absolute; top:0; bottom:0; left:-40%; width:30%; background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0));
  transform:skewX(-20deg); animation:pzShine 2.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){ .as-go .tw{animation:none; display:none} }

/* 切り替えボタンの鍵：文字の下に回りこませず、ボタンの右上の小さな丸い印に */
.seg button{position:relative; white-space:nowrap}
.seg .locked .lock, .size-seg .locked .lock{position:absolute !important; top:-4px; right:-3px; width:16px !important; height:16px !important; margin:0 !important;
  display:grid !important; place-items:center; border-radius:50%; background:var(--ac-deep) !important; box-shadow:0 1.5px 0 #163e46 !important}
.seg .locked .lock svg, .size-seg .locked .lock svg{stroke:#fff !important; width:9px !important; height:9px !important}
.seg .locked > *:not(.lock){opacity:1}
/* 機種：3つずつ2段（名前は1行に収める） */
.seg.mseg{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:5px; padding:5px}
.seg.mseg button{min-height:32px; padding:0 4px; font-size:12px; overflow:visible}
.seg.mseg{border-radius:18px !important}
.seg .locked .lock, .size-seg .locked .lock{right:1px}
.seg .locked .lock, .size-seg .locked .lock{top:-8px; right:-2px; width:15px !important; height:15px !important}
.seg.mseg{padding-top:8px; row-gap:9px}
/* 左上：サイトと同じアイコンを文字の左に */
.wordmark{gap:8px} .wordmark .wm-ic{width:30px; height:30px; display:block; flex:none}
@media (max-width:560px){ .wordmark .wm-ic{width:26px; height:26px} }
