/* Illustrative block-quote studio. Scoped so formal pages stay put. */
body.proto-live{background:#f7f7fa !important}
body.proto-live .workspace,
body.proto-live #auth-notice,
body.proto-live #pr-env,
body.proto-live #ie-env{display:none !important}
body.proto-live main{
  margin:0 0 0 256px;
  padding:80px 120px 56px 28px;
  max-width:none;
  width:auto;
  box-sizing:border-box;
}
.bq{color:#252832;font-size:14px;line-height:1.55}
.bq-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;color:#64748b;font-size:13px}
.bq-grid{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:16px;align-items:start}
.bq-card{
  background:#fff;border:1px solid #e8ecf4;border-radius:16px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
  padding:18px 18px 16px;
}
.bq-card h2{display:flex;align-items:center;gap:8px;font-size:16px;margin:0 0 12px}
.bq h3{font-size:13px;margin:14px 0 8px;color:#334155}
.bq-mode,.bq-format{display:flex;flex-direction:column;gap:8px}
.bq-choice{
  display:flex;gap:10px;align-items:flex-start;
  border:1px solid #e8ecf4;border-radius:12px;padding:10px 12px;background:#fff;cursor:pointer;
}
.bq-choice input{margin-top:3px;accent-color:#7c3aed}
.bq-choice strong{display:block;font-size:14px}
.bq-choice small{display:block;color:#64748b;font-size:12px}
.bq-choice.is-on{border-color:#c4b5fd;background:#f5f3ff;box-shadow:0 0 0 1px #7c3aed inset}
.bq-choice:has(input:disabled){opacity:.55;cursor:not-allowed;background:#f8fafc}
.bq-tag{
  display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;
  background:#fee2e2;color:#be123c;font-size:11px;font-weight:700;vertical-align:1px;
}
.bq-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bq-switch{position:relative;width:42px;height:24px;flex:none}
.bq-switch input{opacity:0;width:0;height:0}
.bq-switch span{position:absolute;inset:0;background:#e2e8f0;border-radius:999px;transition:.15s}
.bq-switch span:before{
  content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;
  box-shadow:0 1px 2px rgba(15,23,42,.2);transition:.15s;
}
.bq-switch input:checked+span{background:#7c3aed}
.bq-switch input:checked+span:before{transform:translateX(18px)}
.bq-res{display:flex;gap:8px}
.bq-res label{
  flex:1;text-align:center;border:1px solid #e8ecf4;border-radius:999px;padding:8px 0;cursor:pointer;font-weight:650;
}
.bq-res label.is-on{background:#7c3aed;color:#fff;border-color:#7c3aed}
.bq-res input{position:absolute;opacity:0;pointer-events:none}
.bq-upload,.bq-run,.bq-primary{
  width:100%;height:46px;border-radius:12px;font-weight:700;font-size:15px;
}
.bq-upload{margin-top:8px;background:#111827;color:#fff}
.bq-run,.bq-primary{margin-top:8px;background:linear-gradient(100deg,#7c3aed,#6d28d9);color:#fff}
.bq-run:disabled,.bq-upload:disabled,.bq-primary:disabled{opacity:.45}
.bq-free{color:#be123c;font-weight:650;margin:10px 0 0}
.bq-note{color:#64748b;font-size:12px;margin:4px 0}
.bq-price{color:#9f1239;font-size:13px;margin:8px 0 0}
.bq-tips{margin:8px 0 0;padding-left:18px;color:#475569;font-size:12px}
.bq-tips li{margin:3px 0}
.bq-preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.bq-linkish{color:#7c3aed;font-weight:650;font-size:13px}
.bq-panes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bq-pane{
  min-height:280px;border:1px dashed #e8ecf4;border-radius:12px;background:#fafafa;
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;text-align:center;color:#94a3b8;
}
.bq-pane strong{color:#334155;align-self:flex-start;margin-bottom:8px}
.bq-pane img{max-width:100%;max-height:320px;border-radius:8px;background:#fff}
.bq-pane .bq-dl{margin-top:10px;color:#6d28d9;font-weight:700}
.bq-dialog{
  border:0;border-radius:16px;padding:22px 22px 18px;width:min(440px,calc(100vw - 32px));
  box-shadow:0 24px 60px rgba(15,23,42,.24);
}
.bq-dialog::backdrop{background:rgba(15,23,42,.45)}
.bq-dialog h3{font-size:16px;text-align:center;margin:0 0 16px}
.bq-steps{display:flex;justify-content:center;gap:18px;list-style:none;padding:0;margin:0 0 18px;color:#94a3b8;font-size:13px}
.bq-steps .is-on{color:#7c3aed;font-weight:700}
.bq-spin{
  width:54px;height:54px;margin:8px auto 12px;border-radius:50%;
  border:4px solid #f5f3ff;border-top-color:#7c3aed;animation:bq-spin .8s linear infinite;
}
@keyframes bq-spin{to{transform:rotate(360deg)}}
.bq-center{text-align:center;color:#475569}
.bq-lines{width:100%;border-collapse:collapse;margin:8px 0 12px}
.bq-lines td{padding:6px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.bq-lines td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.bq-due{display:flex;justify-content:space-between;font-weight:750;margin:8px 0 12px}
.bq-actions{display:flex;gap:8px}
.bq-actions button{flex:1;height:42px;border-radius:10px;font-weight:700}
.bq-actions .bq-ok{background:#7c3aed;color:#fff}
.bq-actions .bq-ok:disabled{opacity:.45;cursor:not-allowed}
.bq-actions .bq-no{background:#f8fafc;border:1px solid #e8ecf4}
.bq-limit{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:10px 12px;margin:8px 0 12px}
.bq-x{position:absolute;right:12px;top:10px;width:32px;height:32px;border-radius:8px;color:#64748b}
.bq-toast{
  position:fixed;top:76px;left:50%;transform:translateX(-50%);
  box-sizing:border-box;width:min(520px,calc(100vw - 32px));
  max-width:min(640px,calc(100vw - 32px));
  background:#111827;color:#fff;border-radius:12px;padding:14px 22px;z-index:80;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  white-space:normal;overflow-wrap:anywhere;line-height:1.55;text-align:center;
}
.bq-toast a{color:#ddd6fe;font-weight:700;margin-left:8px}
.bq-help-layer{
  width:100vw;height:100vh;max-width:100vw;max-height:100vh;margin:0;padding:0;
  border:0;background:transparent;box-shadow:none;
}
.bq-help-layer::backdrop{background:rgba(70,70,70,.55)}
.bq-help-card{
  position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  width:min(760px,calc(100vw - 48px));background:#fff;border-radius:16px;
  padding:28px 32px 22px;box-shadow:0 24px 60px rgba(15,23,42,.24);
}
.bq-help-card h3{font-size:18px;text-align:center;margin:0 0 18px}
.bq-help-card h4{margin:0 0 6px;font-size:15px}
.bq-help-card p{margin:0 0 14px;color:#334155;line-height:1.6}
.bq-tag-hot{background:#ef4444;color:#fff;border-radius:4px;padding:1px 6px;font-style:normal}
.bq-help-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:4px 0 16px}
.bq-help-thumbs figure{margin:0}
.bq-help-box{
  height:112px;border:1px solid #e5e7eb;border-radius:4px;background:#fff;
  display:grid;place-items:center;color:#cbd5e1;font-size:13px;font-weight:700;
}
.bq-help-thumbs figcaption{margin-top:8px;text-align:center;font-size:12px;color:#64748b;line-height:1.4}
.bq-help-more{display:block;margin:0 auto;border:0;background:none;color:#7c3aed;font-weight:700;cursor:pointer}
.bq-case-drawer{
  position:absolute;left:max(16px,calc(50% - 560px));right:max(16px,calc(50% - 560px));bottom:18px;
  background:#fff;border:1px solid #f3e4d4;border-radius:12px;padding:12px 16px 14px;
  box-shadow:0 10px 28px rgba(15,23,42,.12);
}
.bq-case-drawer header{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.bq-case-drawer header span{color:#94a3b8;font-size:13px}
.bq-case-drawer header button{margin-left:auto;border:0;background:none;font-size:18px;color:#94a3b8;cursor:pointer}
.bq-case-strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.bq-case-ph{display:block;aspect-ratio:5/4;border-radius:8px;border:1px solid #e5e7eb;background:linear-gradient(#f8fafc,#e5e7eb)}
.bq-case-drawer .bq-note{margin:8px 0 0}
.bq-examples{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.bq-swatch{height:72px;border-radius:10px;border:1px solid #e8ecf4}
.bq-sw-a{background:#fecaca}.bq-sw-b{background:#bfdbfe}.bq-sw-c{background:#bbf7d0}.bq-sw-d{background:#fde68a}
.bq-swatch span{display:block;font-size:11px;color:#64748b;margin-top:4px;text-align:center}
.ly-grid{display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:16px}
.ly-drop{
  margin-top:8px;min-height:140px;border:1px dashed #cbd5e1;border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;color:#64748b;background:#fafafa;padding:16px;
}
.ly-drop img{max-width:100%;max-height:120px;border-radius:8px}
.ly-warn{background:#fff1f2;border-radius:12px;padding:10px 12px;color:#9f1239;font-size:13px;margin-top:10px}
.ly-good,.ly-bad{border-radius:12px;padding:12px;margin-top:10px}
.ly-good{background:#f0fdf4;border:1px solid #bbf7d0}
.ly-bad{background:#fff7ed;border:1px solid #fed7aa}
.ly-samples{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}
.ly-samples figure{margin:0}
.ly-formats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ly-format{
  display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;
  border:1px solid #e8ecf4;border-radius:12px;padding:12px 8px;cursor:pointer;background:#fff;
}
.ly-format input{position:absolute;opacity:0;pointer-events:none}
.ly-format strong{display:block}
.ly-format small{display:block;color:#64748b;font-size:12px}
.ly-format.is-on{border-color:#c4b5fd;background:#f5f3ff;box-shadow:0 0 0 1px #7c3aed inset}
.ly-ico,.ly-ico svg{width:48px;height:48px;display:block}
.ly-samples .sw{height:64px;border-radius:8px;border:1px solid #e8ecf4}
.ly-sw-a{background:#bfdbfe}.ly-sw-b{background:#bbf7d0}.ly-sw-c{background:#fde68a}.ly-sw-d{background:#ddd6fe}
.ly-sw-e{background:#fecaca}.ly-sw-f{background:#fed7aa}.ly-sw-g{background:#e2e8f0}.ly-sw-h{background:#fbcfe8}
.ly-samples figcaption{font-size:11px;color:#64748b;text-align:center}
.dd-proto-bar{display:flex;justify-content:flex-end;align-items:center;gap:12px;color:#64748b;margin-bottom:12px}
.dd-proto-empty{
  background:#fff;border:1px dashed #e8ecf4;border-radius:16px;min-height:320px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;
}
.dd-empty-ico{width:54px;height:54px;border-radius:12px;border:1px solid #e8ecf4;background:#f8fafc center/26px no-repeat;margin-bottom:8px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='1.6'><rect x='4' y='5' width='16' height='14' rx='2'/><circle cx='9' cy='10' r='1.4'/><path d='m8 16 3-3 2 2 3-4 2 5'/></svg>")}
.dd-proto-empty h2{font-size:18px;margin:8px 0}
.dd-proto-empty p{color:#64748b;margin-bottom:12px}
.dd-proto-empty a{
  display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:999px;
  background:linear-gradient(100deg,#7c3aed,#6366f1);color:#fff;font-weight:700;
}
.dd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.dd-card{
  background:#fff;border:1px solid #e8ecf4;border-radius:16px;padding:12px;margin:0;
  display:flex;flex-direction:column;align-items:stretch;gap:8px;
}
.dd-thumb{width:100%;height:140px;object-fit:cover;border-radius:10px;background:#f1f5f9}
.dd-thumb-empty{background:linear-gradient(135deg,#ede9fe,#f8fafc)}
.dd-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dd-time{margin:0;color:#64748b;font-size:12px}
.dd-dl{display:inline-flex;align-items:center;justify-content:center;height:40px;border-radius:10px;background:#7c3aed;color:#fff;font-weight:700}
.dd-wait{color:#64748b;font-size:12px}
.dd-badge{border-radius:999px;padding:2px 8px;background:#f5f3ff;color:#6d28d9;font-size:12px;font-weight:700}
.wo-card{background:#fff;border:1px solid #e8ecf4;border-radius:16px;padding:14px 16px;margin:0 0 12px}
.wo-card header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.wo-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.wo-actions button,.wo-actions label{
  height:40px;padding:0 12px;border-radius:10px;background:#f8fafc;border:1px solid #e8ecf4;display:inline-flex;align-items:center;
}
.wo-actions .bq-primary{width:auto;height:40px;padding:0 14px}
@media(max-width:800px){
  body.proto-live main{margin-left:0;padding:76px 12px 96px}
  body.proto-live #sidebar{display:none}
  .bq-grid,.ly-grid,.bq-panes,.bq-examples,.ly-samples{grid-template-columns:1fr}
  .ly-formats{grid-template-columns:1fr 1fr}
}
