/* Demo presentation surrounds the shared Toolbox; feature styling stays with its owner. */
body.toolbox-demo [data-toolbox-demo]{min-width:0;min-height:100dvh}
body.toolbox-demo .ribbon{position:sticky;top:0;z-index:40;display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;padding:9px clamp(12px,2vw,24px);padding-top:calc(9px + env(safe-area-inset-top,0px));background:#17243a;color:#f3faf6;font:14px/1.5 'DM Sans',system-ui,sans-serif}
body.toolbox-demo .ribbon .chip{flex:none;border-radius:5px;background:#e1f6e9;color:#19352b;padding:6px 9px;font-size:12px;font-weight:800}
body.toolbox-demo .ribbon .txt{flex:1;min-width:120px;margin:0;overflow-wrap:anywhere;color:#e1e8e4}
body.toolbox-demo .ribbon .seg{display:flex;gap:4px;padding:4px;border-radius:10px;background:#2d3d50}
body.toolbox-demo .ribbon button{min-height:44px;white-space:normal;border:1px solid #8ba596;border-radius:8px;padding:7px 10px;background:transparent;color:#fff;font-weight:700;cursor:pointer}
body.toolbox-demo .ribbon .seg button{border-color:transparent}
body.toolbox-demo .ribbon .seg button[aria-pressed=true]{background:#fff;color:#17243a}
body.toolbox-demo .ribbon .nmf{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0}
body.toolbox-demo .ribbon input{width:140px;min-width:0;min-height:44px;border:1px solid #8ba596;border-radius:8px;padding:8px 10px;background:#2d3d50;color:#fff}
body.toolbox-demo .ribbon .btn-green{background:var(--brand);color:var(--on-brand);border-color:var(--brand)}
body.toolbox-demo .ribbon .demo-language{margin-left:auto;color:#fff}
body.toolbox-demo .ribbon .demo-language summary{display:flex;align-items:center;gap:4px;min-height:44px;color:#fff;cursor:pointer}
body.toolbox-demo .ribbon .demo-language ul{z-index:50;background:var(--surface);border-color:var(--line);color:var(--text)}
body.toolbox-demo .ribbon .demo-language a{color:var(--text)}
body.toolbox-demo .ribbon .demo-language ul :focus-visible{outline-color:var(--text)}
body.toolbox-demo .ribbon :focus-visible{outline:3px solid #fff;outline-offset:3px}
body.toolbox-demo [data-demo-workspace]{min-width:0}
body.toolbox-demo .toolbox-shell .sidebar{top:var(--demo-ribbon-h,0px);height:calc(100dvh - var(--demo-ribbon-h,0px))}
body.toolbox-demo .toolbox-shell .topbar,body.toolbox-demo .phone-topbar{top:var(--demo-ribbon-h,0px)}
body.toolbox-demo .toolbox-guide{margin-top:var(--demo-ribbon-h,0px)}
body.toolbox-demo .toolbox-shell #toolbox-more{top:var(--demo-ribbon-h,0px)}
body.toolbox-demo dialog{max-height:calc(100dvh - var(--demo-ribbon-h,0px) - 24px)}
body.toolbox-demo #demo-gate{width:min(440px,calc(100vw - 24px));border:1px solid var(--line);padding:0;border-radius:18px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);font:16px/1.5 'DM Sans',system-ui,sans-serif;overflow:auto}
body.toolbox-demo #demo-gate::backdrop{background:rgba(10,16,32,.55);backdrop-filter:blur(3px)}
body.toolbox-demo #demo-gate .in{padding:22px;display:grid;gap:14px;min-width:0;overflow-wrap:anywhere}
body.toolbox-demo #demo-gate .hd{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.toolbox-demo #demo-gate .hd img{width:34px;height:34px;border-radius:9px}
body.toolbox-demo #demo-gate .icon-button{min-width:44px;min-height:44px}
body.toolbox-demo #demo-gate h2{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.02em}
body.toolbox-demo #demo-gate p{margin:0}
body.toolbox-demo #demo-gate .why{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface-2);color:var(--text);font-size:14.5px}
body.toolbox-demo #demo-gate .biz{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}
body.toolbox-demo #demo-gate .biz i{width:44px;height:44px;flex:none;border-radius:10px;background:var(--brand);color:var(--on-brand);display:grid;place-items:center;font-size:18px;font-style:normal;font-weight:800}
body.toolbox-demo #demo-gate .biz b{display:block;color:var(--text)}
body.toolbox-demo #demo-gate .biz span,body.toolbox-demo #demo-gate small{font-size:14px;color:var(--muted)}
body.toolbox-demo #demo-gate .go{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;border-radius:10px;padding:13px 14px;background:var(--brand);color:var(--on-brand);font-weight:800;line-height:1.3;text-align:center;text-decoration:none}
body.toolbox-demo #demo-gate .template-website{display:block;min-height:44px;text-align:center;color:var(--text);text-decoration:underline}
body.toolbox-demo #demo-gate :focus-visible{outline:3px solid var(--text);outline-offset:3px}
body.toolbox-demo [data-demo-fallback]{min-height:calc(100dvh - var(--demo-ribbon-h,0px));max-width:800px;margin:auto;padding:24px;display:grid;align-content:start;gap:16px}
body.toolbox-demo .demo-skip{position:absolute;top:0;left:16px;z-index:1000;background:var(--surface);color:var(--text);font-weight:700;padding:10px 14px;border-radius:0 0 8px 8px;transform:translateY(-120%)}
body.toolbox-demo .demo-skip:focus{transform:none}
@media(max-width:1024px){
 body.toolbox-demo .ribbon{gap:6px;font-size:12.5px;padding-block:7px}
 body.toolbox-demo .ribbon .nmf{flex:1;min-width:160px}
 body.toolbox-demo .ribbon input{flex:1;max-width:160px}
}
@media(prefers-reduced-motion:reduce){
 body.toolbox-demo .ribbon *,body.toolbox-demo #demo-gate *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
