
#xj314-viewer:empty { display:none }
#xj314-3d-fallback[hidden] { display:none !important }
.xj314-viewer {
  --xj314-border:#e6d8cb;
  --xj314-paper:#fffaf6;
  --xj314-ink:#181211;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(198px,218px);
  overflow:hidden;
  border:1px solid var(--xj314-border);
  border-radius:12px;
  min-width:0;
  background:#fff;
}
.xj314-stage { min-width:0; position:relative; isolation:isolate; background:#f9f5f0; overflow:hidden }
.xj314-stage canvas { display:block; width:100%; height:clamp(340px,47vw,535px); cursor:grab; touch-action:none }
.xj314-stage canvas.xj314-dragging { cursor:grabbing }
.xj314-stage canvas:focus-visible { outline:3px solid #09803c; outline-offset:-4px }
.xj314-toolbar {
  position:absolute; z-index:1; top:12px; inset-inline:12px; display:flex; flex-wrap:wrap;
  align-items:center; justify-content:space-between; gap:8px; pointer-events:none;
}
.xj314-toolbar>* { pointer-events:auto }
.xj314-mode,.xj314-camera { display:flex; flex-wrap:wrap; gap:4px }
.xj314-viewer button {
  appearance:none; border:1px solid #e1cfc1; background:#fff; color:var(--xj314-ink);
  border-radius:8px; padding:6px 9px; min-height:36px; font:inherit; font-size:13px;
  line-height:1.15; font-weight:760; cursor:pointer;
}
.xj314-viewer button:hover { background:#fbefe7 }
.xj314-viewer button:focus-visible { outline:2px solid #08713a; outline-offset:2px }
.xj314-viewer button[aria-pressed="true"] { background:#eaf6eb; border-color:#7eb28c; color:#114020 }
.xj314-viewer button:disabled { cursor:default; opacity:.48 }
.xj314-toolbar .xj314-zoom { width:36px; padding:4px; font-size:19px }
.xj314-stage-info {
  position:absolute; bottom:12px; left:12px; max-width:calc(100% - 24px); z-index:1;
  pointer-events:none; font-size:12px; font-weight:740; line-height:1.35; color:#342821;
  padding:6px 9px; border:1px solid #ebded3; border-radius:7px; background:#fffcf9ed;
}
.xj314-stage-info:empty { display:none }
.xj314-sidebar { background:#fffaf6; border-inline-start:1px solid var(--xj314-border); padding:13px; min-width:0 }
.xj314-sidebar h3 { margin:0 0 8px; font-size:14px; letter-spacing:0 }
.xj314-list { display:grid; gap:5px }
.xj314-viewer .xj314-system {
  padding:6px 8px; min-height:33px; font-size:12px; width:100%; text-align:start;
  display:grid; grid-template-columns:12px minmax(0,1fr); align-items:center; gap:7px;
}
.xj314-dot { width:11px; height:11px; border-radius:50%; border:1px solid #24150f37; background:var(--xj314-color) }
.xj314-isolate-row { margin-top:9px; display:grid; gap:5px }
.xj314-viewer .xj314-isolate { width:100%; text-align:start }
.xj314-help { margin:10px 1px 0; color:#645449; font-size:13px; line-height:1.45 }
.xj314-notice { color:#5c473a; font-size:13px }
.xj314-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
@media(max-width:870px) {
  .xj314-viewer { grid-template-columns:minmax(0,1fr) }
  .xj314-sidebar { border-inline-start:0; border-top:1px solid var(--xj314-border) }
  .xj314-list { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .xj314-stage canvas { height:clamp(305px,65vw,460px) }
  .xj314-isolate-row { justify-content:start }
}
@media(max-width:510px) {
  .xj314-list { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .xj314-sidebar { padding:11px }
  .xj314-toolbar { inset-inline:8px; top:8px; gap:6px }
  .xj314-viewer button { font-size:12px; min-height:38px; padding:6px 7px }
  .xj314-toolbar .xj314-zoom { width:32px }
  .xj314-stage-info { bottom:8px; left:8px }
}
body.film .xj314-viewer { grid-template-columns:minmax(0,1fr) 202px }
body.film .xj314-stage canvas { height:420px }
body.film .xj314-sidebar { border-inline-start:1px solid var(--xj314-border); border-top:0 }
body.film .xj314-list { grid-template-columns:1fr }
body.film .xj314-help { display:none }
@media print {
  .xj314-viewer,.xj314-help,.xj314-notice { display:none !important }
  #xj314-3d-fallback[hidden] { display:block !important }
}
