.scw-app{--navy:#132a52;--blue:#3673ef;--purple:#7657e8;--bg1:#e8f1ff;--bg2:#eee9ff;--ink:#17233d;--muted:#66728b;--card:#fff;--line:#d9e2f2;--yellow:#ffd85c}
  .scw-app,.scw-app *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
  .scw-app{position:relative;margin:0;width:100%;min-height:100%;font-family:"Noto Sans JP","Yu Gothic",sans-serif;color:var(--ink);background:linear-gradient(135deg,var(--bg1),var(--bg2));overflow-x:hidden}
  .scw-app button{font:inherit;color:inherit;cursor:pointer}
  .scw-app{min-height:100dvh;display:flex;flex-direction:column}
  .scw-app .scw-main{flex:1;display:block;padding:14px;min-height:0}
  .scw-app .stage-card{height:100%;min-height:calc(100dvh - 92px);background:var(--card);border-radius:22px;box-shadow:0 10px 32px #324b7d1a;border:1px solid #fff}
  .scw-app .stage-card{position:relative;display:flex;flex-direction:column;overflow:hidden}
  .scw-app .stage-top{height:54px;display:flex;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);gap:8px}
  .scw-app .status{font-weight:800;white-space:nowrap}.scw-app .status small{font-weight:500;color:var(--muted);margin-left:7px}
  .scw-app [data-scw="scene"]{flex:1;min-height:360px;width:100%;touch-action:none;background:radial-gradient(circle at 50% 46%,#fff 0,#f8faff 58%,#edf2fb 100%)}
  .scw-app .hint{position:absolute;left:16px;bottom:14px;background:#fffdf2e8;border:1px solid #f0d985;border-radius:12px;padding:7px 11px;font-size:13px;font-weight:700;pointer-events:none}
  .scw-app .cut-layer{position:absolute;inset:54px 0 0;z-index:3;background:transparent;display:none;overflow:hidden}
  .scw-app .cut-layer.open{display:grid}
  .scw-app .cut-layer-top,.scw-app .cut-layer-bottom{position:absolute;left:0;right:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:linear-gradient(#f8faffee,#f8faffc8);backdrop-filter:blur(3px)}
  .scw-app .cut-layer-top{top:0}.scw-app .cut-layer-bottom{bottom:0;background:linear-gradient(#f8faffc8,#f8faffee)}
  .scw-app .cut-layer-title{font-weight:900;margin-right:8px}
  .scw-app .grid-wrap{position:absolute;inset:0;overflow:hidden;background:radial-gradient(circle at 50% 46%,#fff 0,#f8faff 58%,#edf2fb 100%);touch-action:none}
  .scw-app [data-scw="cutGrid"]{width:100%;height:100%;display:block}
  .scw-app .point-state{min-width:190px;text-align:center;font-size:13px;font-weight:800;color:var(--muted)}
  .scw-app .cut-go{border:0;border-radius:13px;padding:11px 18px;background:#ef545c;color:#fff;font-weight:900}
  .scw-app .cut-go:disabled{opacity:.38}
  .scw-app .direction-go{border:0;border-radius:13px;padding:11px 18px;background:linear-gradient(135deg,#3673ef,#7657e8);color:#fff;font-weight:900;box-shadow:0 5px 14px #5266db35}
  .scw-app .cut-layer-bottom [hidden]{display:none!important}
  .scw-app .tool-rail{position:absolute;right:18px;bottom:18px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
  .scw-app .tool-rail[hidden]{display:none!important}
  .scw-app .tool-btn{width:56px;height:56px;border:2px solid #dce4f2;border-radius:50%;background:#fff;color:var(--navy);box-shadow:0 7px 18px #263d6b2b;font-size:24px;font-weight:900;display:grid;place-items:center;position:relative;transition:transform .15s,background .15s,border-color .15s}
  .scw-app .tool-btn:hover{transform:translateY(-2px)}
  .scw-app .tool-btn:focus-visible{outline:4px solid #8bb5ff;outline-offset:2px}
  .scw-app .tool-btn.primary{background:linear-gradient(135deg,#ffd85c,#ffb930);border-color:#fff0ae;color:#5a3b00}
  .scw-app .tool-btn.danger{color:#d64b55}
  .scw-app .tool-btn.active{background:linear-gradient(135deg,var(--blue),var(--purple));border-color:#d8d0ff;color:#fff;box-shadow:0 8px 20px #5266db55}
  .scw-app .tool-btn:disabled{opacity:.38;transform:none;box-shadow:none;cursor:not-allowed}
  .scw-app .tool-btn::before{content:attr(data-label);position:absolute;right:66px;top:50%;transform:translateY(-50%);white-space:nowrap;border-radius:10px;background:#17233dee;color:#fff;padding:6px 9px;font-size:12px;font-weight:800;opacity:0;pointer-events:none;transition:.15s}
  .scw-app .tool-btn:hover::before,.scw-app .tool-btn:focus-visible::before{opacity:1}
  .scw-app .tool-btn.word{font-size:13px;line-height:1.1;letter-spacing:.02em}
  .scw-app .tool-btn.zoom{font-size:28px;line-height:1}
  .scw-app .secondary{border:1px solid var(--line);border-radius:13px;background:#f6f8fc;font-weight:800;padding:11px}
  .scw-app .toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#17233deF;color:#fff;padding:11px 18px;border-radius:99px;font-weight:800;opacity:0;pointer-events:none;transition:.25s;z-index:20}.scw-app .toast.show{opacity:1;transform:translate(-50%,0)}
  .scw-app .solid-picker{position:absolute;inset:0;z-index:30;display:none;align-items:flex-start;justify-content:center;padding:78px 18px 22px;background:linear-gradient(135deg,#eaf2ffed,#eeeaffed);backdrop-filter:blur(5px);overflow:auto}
  .scw-app .solid-picker.open{display:flex}
  .scw-app .solid-picker-panel{width:min(1100px,100%);background:#fff;border:1px solid #d7e2f2;border-radius:24px;padding:22px;box-shadow:0 18px 50px #233d6b28}
  .scw-app .solid-picker-panel h2{margin:0 0 18px;text-align:center;color:var(--navy);font-size:23px}
  .scw-app .solid-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .scw-app .solid-choice{min-width:0;border:2px solid #cbd9ec;border-radius:18px;background:#fff;padding:10px 10px 13px;font-weight:900;font-size:18px;overflow:hidden;transition:transform .15s,border-color .15s,box-shadow .15s}
  .scw-app .solid-choice svg{display:block;width:100%;height:112px;margin-bottom:4px;background-color:#fbfdff;background-image:linear-gradient(#e9f0f8 1px,transparent 1px),linear-gradient(90deg,#e9f0f8 1px,transparent 1px);background-size:20px 20px;border-radius:10px}
  .scw-app .solid-choice:hover{transform:translateY(-3px);border-color:#4a91eb;box-shadow:0 10px 22px #315b9830}
  .scw-app .solid-choice:focus-visible{outline:4px solid #8bb5ff;outline-offset:2px;border-color:#3673ef}
  @media(max-width:900px){.scw-app .solid-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
  @media(max-width:620px){.scw-app .solid-picker{padding:68px 8px 12px}.scw-app .solid-picker-panel{padding:14px;border-radius:18px}.scw-app .solid-picker-panel h2{font-size:20px;margin-bottom:12px}.scw-app .solid-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.scw-app .solid-choice{font-size:15px;padding:6px 6px 10px}.scw-app .solid-choice svg{height:92px}}
  @media(max-width:820px){.scw-app .scw-main{padding:8px}.scw-app .stage-card{min-height:calc(100dvh - 74px)}.scw-app .cut-layer-title{width:100%;text-align:center}.scw-app .point-state{min-width:150px;font-size:12px}.scw-app .tool-rail{right:12px;bottom:12px;gap:8px}.scw-app .tool-btn{width:52px;height:52px;font-size:22px}}
  @media(prefers-reduced-motion:reduce){.scw-app .tool-btn,.scw-app .toast{transition:none}}/* WordPress埋め込み時も作業画面を端末内へ収める */


.scw-app{
  width:100%;
  height:100vh;
  height:100dvh;
  min-height:0;
  overflow:hidden;
  isolation:isolate;
}
.scw-app .scw-main{min-height:0}
.scw-app .stage-card{height:100%;min-height:0}
body.admin-bar .scw-app{
  height:calc(100vh - 32px);
  height:calc(100dvh - 32px);
}
@media(max-width:782px){
  body.admin-bar .scw-app{
    height:calc(100vh - 46px);
    height:calc(100dvh - 46px);
  }
}/* Source JSON: Material Symbols Outlined, 24px. */


.scw-app .ms-app-icon{display:inline-block;width:24px;height:24px;min-width:24px;vertical-align:middle;fill:currentColor;pointer-events:none;flex-shrink:0}
.scw-app span.ms-app-icon{background-color:currentColor;-webkit-mask:var(--ms-icon) center/contain no-repeat;mask:var(--ms-icon) center/contain no-repeat}
.scw-app button:has(.ms-app-icon){display:inline-flex;align-items:center;justify-content:center;gap:6px}
.scw-app .tool-btn.word:has(.ms-app-icon){font-size:12px;flex-direction:column;gap:0}/* 移動・可変の道具BOX */


.vtb-host .atb-toolbox{display:flex;position:absolute;right:16px;bottom:84px;width:244px;height:380px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 64px);padding:0;gap:0;align-items:stretch;flex-direction:column;background:#f5f7fc;border:2px solid #c8d3e3;border-radius:16px;box-shadow:0 6px 24px #13274240;overflow:hidden;z-index:25;box-sizing:border-box;container-type:inline-size}
.vtb-host .atb-toolbox-head{display:flex;flex-shrink:0;height:44px;background:var(--navy,#1e3a5f);color:white;align-items:center}
.vtb-host .atb-toolbox-head button{border:0;background:transparent;color:white;height:44px;margin:0;padding:0 12px;font-family:inherit;font-size:16px;font-weight:bold;box-shadow:none;border-radius:0}
.vtb-host .atb-toolbox-grip{flex:1;text-align:left;cursor:move;touch-action:none;user-select:none}
.vtb-host .atb-toolbox-fold{width:40px;font-size:24px!important;cursor:pointer}
.vtb-host .atb-toolbox-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(94px,1fr));align-content:start;gap:8px;padding:10px 10px 24px;overflow:auto;min-height:0;flex:1}
.vtb-host .atb-toolbox-body button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;height:68px;min-height:48px;margin:0;padding:6px;border:1px solid #d7dfeb;border-radius:12px;background:white;color:var(--navy,#1e3a5f);box-shadow:0 2px 4px #13274212;cursor:pointer;font-family:inherit}
.vtb-host .atb-toolbox-body button:disabled{opacity:.35;cursor:default}
.vtb-host .atb-toolbox-body .atb-tool-label{font-size:13px;font-weight:bold;line-height:1.2;white-space:normal;text-align:center}
.vtb-host .atb-toolbox-resize{position:absolute;right:0;bottom:0;width:26px;height:24px;border:0;background:#e4eaf4;color:var(--navy,#1e3a5f);font-size:20px;cursor:nwse-resize;touch-action:none;padding:0;margin:0}
.vtb-host .atb-toolbox.atb-toolbox-compact .atb-toolbox-body{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));padding:6px 6px 24px}
.vtb-host .atb-toolbox.atb-toolbox-compact .atb-toolbox-body button{width:44px;height:44px;min-height:44px;border-radius:50%;justify-self:center;gap:0}
.vtb-host .atb-toolbox.atb-toolbox-compact .atb-tool-label{display:none}
.vtb-host .atb-toolbox.atb-toolbox-compact button:has(img[hidden]) .atb-tool-label{display:block;font-size:10px}
.vtb-host .atb-toolbox-closed{height:44px!important;min-height:44px}
.vtb-host .atb-toolbox-closed .atb-toolbox-body,
.vtb-host .atb-toolbox-closed .atb-toolbox-resize{display:none}
.vtb-host .atb-toolbox button:focus-visible{outline:3px solid #4d97ff;outline-offset:-3px}

.vtb-host .atb-toolbox-layouts{display:flex;flex-shrink:0;gap:4px;padding:5px;background:#e7edf6}
.vtb-host .atb-toolbox-layouts button{flex:1;min-width:0;height:32px;margin:0;padding:2px;border:1px solid #c7d2e3;border-radius:7px;background:white;color:var(--navy,#1e3a5f);font-family:inherit;font-size:12px;font-weight:bold;cursor:pointer}
.vtb-host .atb-toolbox-layouts button[aria-pressed="true"]{background:var(--gold,#d4af37);border-color:var(--gold,#d4af37)}
.vtb-host .atb-toolbox[data-layout] .atb-toolbox-body{grid-template-columns:repeat(var(--atb-tool-columns),minmax(0,1fr))}
.vtb-host .atb-toolbox-closed .atb-toolbox-layouts{display:none}/* 役割ごとの固定色。丸形・文字付きで共通。 */


.vtb-host .atb-toolbox-body button{--tool-bg:#eef1f5;--tool-border:#cbd2dc;--tool-ink:#394657;--tool-active:#465568;background:var(--tool-bg);border-color:var(--tool-border);color:var(--tool-ink)}
.vtb-host .atb-toolbox-body button[data-color="blue"]{--tool-bg:#e0edff;--tool-border:#9abce9;--tool-ink:#184d91;--tool-active:#245fa8}
.vtb-host .atb-toolbox-body button[data-color="orange"]{--tool-bg:#ffead4;--tool-border:#e6b07a;--tool-ink:#8b420c;--tool-active:#a64c10}
.vtb-host .atb-toolbox-body button[data-color="green"]{--tool-bg:#dcf2e5;--tool-border:#91c7a8;--tool-ink:#1d6342;--tool-active:#24734d}
.vtb-host .atb-toolbox-body button[data-color="purple"]{--tool-bg:#ede4fb;--tool-border:#bda2df;--tool-ink:#654091;--tool-active:#7045a1}
.vtb-host .atb-toolbox-body button[data-color="navy"]{--tool-bg:#e3eaf4;--tool-border:#9eafc7;--tool-ink:#1e3a5f;--tool-active:#1e3a5f}
.vtb-host .atb-toolbox-body button:hover:not(:disabled){box-shadow:0 0 0 2px var(--tool-border)}.vtb-host .atb-toolbox-settings svg{fill:currentColor}

.vtb-host .atb-toolbox-body button .ms-app-icon{width:26px;height:26px;min-width:26px}
.vtb-host .atb-toolbox .atb-toolbox-head button{position:static;width:auto;min-width:40px;display:flex;align-items:center;justify-content:center}
.vtb-host .atb-toolbox .atb-toolbox-head .atb-toolbox-grip{justify-content:flex-start}
.vtb-host .atb-toolbox-body button.active,.vtb-host .atb-toolbox-body button.cube3d-active,.vtb-host .atb-toolbox-body button.nvm-active{background:var(--tool-active);color:white;border-color:var(--tool-active)}
.vtb-host .atb-toolbox-compact .atb-toolbox-body button>span:not(.ms-app-icon):not([class*="badge"]){display:none}
.vtb-host .atb-toolbox-body button .atb-tool-label{display:block}
.vtb-host .atb-toolbox-head svg{fill:currentColor}/* 明るい道具BOX：白＋水色、選択状態は淡色と色枠 */


.vtb-host .atb-toolbox{background:#fff;border-color:#bdd9f0;box-shadow:0 5px 20px #2672a822}
.vtb-host .atb-toolbox-head{background:#e0f2fe;color:#164e75}
.vtb-host .atb-toolbox .atb-toolbox-head button{background:transparent;color:#164e75}
.vtb-host .atb-toolbox-layouts{background:#f0f9ff}
.vtb-host .atb-toolbox-layouts button{background:white;border-color:#c5dff2;color:#164e75}
.vtb-host .atb-toolbox-layouts button[aria-pressed="true"]{background:#dbeafe;border:2px solid #2563eb;color:#1d4ed8}
.vtb-host .atb-toolbox-body button{background:white;border-color:var(--tool-border);color:var(--tool-ink);box-shadow:0 2px 5px #2563eb0b}
.vtb-host .atb-toolbox-body button[data-color="blue"]{--tool-bg:#e8f2ff;--tool-border:#9fc3f5;--tool-ink:#1d4ed8;--tool-active:#2563eb}
.vtb-host .atb-toolbox-body button[data-color="orange"]{--tool-bg:#fff0df;--tool-border:#f5bf86;--tool-ink:#9a4311;--tool-active:#c65a13;background:#fff7ed}
.vtb-host .atb-toolbox-body button[data-color="green"]{--tool-bg:#e4f7ed;--tool-border:#99d8b9;--tool-ink:#147449;--tool-active:#168653}
.vtb-host .atb-toolbox-body button[data-color="purple"]{--tool-bg:#f1eaff;--tool-border:#cab0ef;--tool-ink:#7540b6;--tool-active:#854bcb}
.vtb-host .atb-toolbox-body button[data-color="navy"]{--tool-bg:#e8f2ff;--tool-border:#b6cdeb;--tool-ink:#285b89;--tool-active:#3275ac}.vtb-host .atb-toolbox-body button.active,.vtb-host .atb-toolbox-body button.cube3d-active,.vtb-host .atb-toolbox-body button.nvm-active{background:var(--tool-bg);color:var(--tool-ink);border:2px solid var(--tool-active);box-shadow:0 0 0 1px var(--tool-active)}
.vtb-host .atb-toolbox-resize{background:#e0f2fe;color:#0369a1}
.scw-app .atb-toolbox .atb-toolbox-body button{background:#fff!important;color:var(--tool-ink)!important;border:1px solid var(--tool-border)!important}
.scw-app .atb-toolbox .atb-toolbox-body button[data-color=orange]{background:#fff7ed!important}
.scw-app .atb-toolbox .atb-toolbox-body button.active,.scw-app .atb-toolbox .atb-toolbox-body button.cube3d-active,.scw-app .atb-toolbox .atb-toolbox-body button.nvm-active{background:var(--tool-bg)!important;color:var(--tool-ink)!important;border:2px solid var(--tool-active)!important;box-shadow:0 0 0 1px var(--tool-active)}
.scw-app .atb-toolbox .atb-toolbox-head{background:#e0f2fe!important;color:#164e75!important}
.scw-app .atb-toolbox .atb-toolbox-head button{background:transparent!important;color:#164e75!important}
.scw-app .atb-toolbox-grip{white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.35;min-width:0}
 .scw-app .scw-main{padding:0}.scw-app .stage-card{border-radius:0}
