/* 本页使用本站颜色；桌面以画布为中心，器材和参数各自滚动。 */
/* 函数图像共享播放条；桌面上下分区，手机切换到完整图像视图。 */
.page-physics-whiteboard .pw-graphs { flex:none; height:var(--pw-graph-height,220px); min-height:140px; max-height:60%; display:flex; flex-direction:column; gap:3px; padding:6px 10px; border-top:1px solid #dce7ed; background:white; position:relative; }
.page-physics-whiteboard .pw-graph-heading { display:flex; align-items:center; gap:6px; flex:none; min-height:28px; }
.page-physics-whiteboard .pw-graph-heading>strong { color:#2878b5; font-size:12px; }
.page-physics-whiteboard .pw-graph-heading>.pw-button { min-height:26px; padding:3px 7px; }
.page-physics-whiteboard .pw-graph-options { margin-right:auto; }
.page-physics-whiteboard .pw-graph-options>summary { cursor:pointer; font-size:11px; color:#526676; padding:5px; border-radius:4px; }
.page-physics-whiteboard .pw-graph-settings { position:absolute; top:40px; left:10px; right:10px; z-index:5; display:flex; align-items:end; flex-wrap:wrap; gap:7px; padding:10px; background:#f7fafc; border:1px solid #cbdce8; box-shadow:0 4px 15px #20374a15; border-radius:7px; }
.page-physics-whiteboard .pw-graph-settings label { display:flex; flex-direction:column; gap:4px; min-width:0; color:#526676; font-size:10px; }
.page-physics-whiteboard .pw-graph-settings label:nth-child(1) { flex:1 1 120px; }
.page-physics-whiteboard .pw-graph-settings label:nth-child(2) { flex:2 1 170px; }
.page-physics-whiteboard .pw-graph-settings select { width:100%; min-height:32px; padding:5px; background:white; border:1px solid #d6e1e9; border-radius:5px; font-size:11px; color:#20374a; }
.page-physics-whiteboard .pw-graph-tabs { display:flex; gap:5px; flex:none; overflow-x:auto; }
.page-physics-whiteboard .pw-graph-tabs button { padding:3px 8px; border:1px solid #dce7ed; border-radius:5px; color:#526676; font-size:10px; white-space:nowrap; }
.page-physics-whiteboard .pw-graph-tabs button[aria-pressed="true"] { background:#eaf5fc; border-color:#93c5fd; color:#2878b5; }
.page-physics-whiteboard .pw-graph-legend { display:flex; flex-wrap:wrap; gap:3px 10px; max-height:44px; overflow-y:auto; flex:none; font-size:10px; color:#526676; }
.page-physics-whiteboard .pw-graph-legend>span { display:flex; align-items:center; gap:4px; }
.page-physics-whiteboard .pw-graph-legend i { width:9px; height:3px; flex:none; }
.page-physics-whiteboard .pw-graph-legend button { padding:1px 4px; color:#64748b; }
.page-physics-whiteboard #pw-graph-canvas { flex:1; width:100%; min-height:45px; display:block; touch-action:none; cursor:crosshair; }
.page-physics-whiteboard .pw-graph-note { flex:none; font-size:9px; color:#64748b; min-height:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.page-physics-whiteboard .pw-graph-analysis { flex:none; max-height:42px; overflow-y:auto; font-size:10px; line-height:1.5; color:#2878b5; }
.page-physics-whiteboard #pw-graph-range[aria-pressed="true"] { background:#eaf5fc !important; border-color:#93c5fd !important; color:#2878b5; }
.page-physics-whiteboard .pw-graphs[data-compact="true"] .pw-graph-legend, .page-physics-whiteboard .pw-graphs[data-compact="true"] .pw-graph-note { display:none; }
@media(max-width:1050px) {
 .page-physics-whiteboard.pw-graphs-open #pw-canvas-wrap { display:none; }
 .page-physics-whiteboard.pw-graphs-open .pw-graphs { flex:1; height:auto; min-height:0; max-height:none; }
 .page-physics-whiteboard .pw-graph-heading { gap:4px; }
 .page-physics-whiteboard .pw-graph-settings { max-height:70%; overflow-y:auto; }
 .page-physics-whiteboard .pw-graph-legend button { min-width:24px; min-height:24px; }
 .page-physics-whiteboard .pw-graph-legend { max-height:96px; }
 .page-physics-whiteboard [data-command="graphs"] svg { display:none; }
}
@media(max-width:1050px) and (max-height:500px) {
 .page-physics-whiteboard .pw-graph-note { display:none; }
 .page-physics-whiteboard .pw-graph-legend { max-height:28px; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; }
 .page-physics-whiteboard .pw-graph-legend>span { flex:none; }
 .page-physics-whiteboard .pw-graphs { gap:2px; }
}
.page-physics-whiteboard { --pw-blue:var(--primary-color); --pw-blue-dark:var(--primary-dark); --pw-line:var(--border-color); --pw-muted:var(--text-secondary); --pw-bg:var(--page-bg); --text:var(--text-primary); --pw-header-height:48px; height:100dvh; min-height:0; padding-top:var(--site-nav-height,50px); display:flex; flex-direction:column; overflow:hidden; background:var(--pw-bg); font-size:13px; }
.page-physics-whiteboard *, .page-physics-whiteboard *::before, .page-physics-whiteboard *::after { box-sizing:border-box; }
.page-physics-whiteboard [hidden] { display:none !important; }
.page-physics-whiteboard .pw-icon-defs { position:absolute; width:0; height:0; overflow:hidden; }
.page-physics-whiteboard .pw-icon { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.page-physics-whiteboard :where(.pw-header,.pw-workspace,.pw-dialog) button { color:inherit; background:transparent; border:0; cursor:pointer; font:inherit; }
.page-physics-whiteboard button:disabled { opacity:.35; cursor:default; }
.page-physics-whiteboard :focus-visible { outline:3px solid #93c5fd; outline-offset:2px; }
.page-physics-whiteboard :where(h1,h2,h3,p) { margin:0; }
.page-physics-whiteboard .pw-sr-only { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.page-physics-whiteboard .pw-header { flex:none; height:var(--pw-header-height); display:flex; align-items:center; gap:16px; padding:0 16px; border-bottom:1px solid var(--pw-line); background:var(--pw-bg); z-index:22; }
.page-physics-whiteboard .pw-brand { align-self:stretch; display:flex; align-items:center; color:var(--pw-blue); border-bottom:2px solid var(--pw-blue); white-space:nowrap; }
.page-physics-whiteboard .pw-brand strong { font-size:15px; }
.page-physics-whiteboard .pw-document { min-width:80px; flex:1; }
.page-physics-whiteboard .pw-document input { width:min(260px,100%); border:0; border-radius:4px; background:transparent; color:var(--text); font-family:inherit; font-weight:600; font-size:13px; line-height:20px; padding:0 4px; }
.page-physics-whiteboard .pw-document input:focus { background:#fff; }
.page-physics-whiteboard .pw-document > span { display:block; color:var(--pw-muted); font-size:10px; padding-left:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.page-physics-whiteboard .pw-header-actions { display:flex; align-items:center; gap:6px; flex:none; }
.page-physics-whiteboard .pw-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:32px; padding:5px 10px; border:1px solid var(--pw-line) !important; border-radius:8px; background:#fff !important; font-size:12px !important; white-space:nowrap; text-decoration:none; }
.page-physics-whiteboard .pw-button:hover { background:#eff6ff !important; border-color:#93c5fd !important; }
.page-physics-whiteboard .pw-primary { background:var(--pw-blue) !important; border-color:var(--pw-blue) !important; color:#fff !important; }
.page-physics-whiteboard .pw-primary:hover { background:var(--pw-blue-dark) !important; }
.page-physics-whiteboard .pw-wide { width:100%; }
.page-physics-whiteboard .pw-file-menu { position:relative; }
.page-physics-whiteboard .pw-file-menu summary { list-style:none; cursor:pointer; }
.page-physics-whiteboard .pw-file-menu summary::-webkit-details-marker { display:none; }
.page-physics-whiteboard .pw-file-options { position:absolute; right:0; top:calc(100% + 6px); width:185px; padding:6px; background:#fff; border:1px solid var(--pw-line); border-radius:8px; box-shadow:0 8px 25px #0f172a18; }
.page-physics-whiteboard .pw-file-options button { display:block; text-align:left; width:100%; padding:10px; border-radius:5px; font-size:12px; }
.page-physics-whiteboard .pw-file-options button:hover { background:#eff6ff; color:var(--pw-blue); }
.page-physics-whiteboard .pw-workspace { flex:1; min-height:0; display:grid; grid-template-columns:220px minmax(0,1fr) 300px; }
.page-physics-whiteboard .pw-library, .page-physics-whiteboard .pw-inspector { min-height:0; background:#fff; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:14px 12px; }
.page-physics-whiteboard .pw-library { border-right:1px solid var(--pw-line); }
.page-physics-whiteboard .pw-inspector { border-left:1px solid var(--pw-line); padding:14px 16px; }
.page-physics-whiteboard .pw-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:12px; }
.page-physics-whiteboard .pw-panel-heading :where(h1,h2) { font-size:14px; line-height:1.5; }
.page-physics-whiteboard .pw-eyebrow { display:block; font-size:10px; color:var(--pw-muted); margin-bottom:3px; }
.page-physics-whiteboard .pw-library-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:3px; background:#f1f5f9; border-radius:7px; }
.page-physics-whiteboard .pw-library-tabs button { padding:7px 2px; border-radius:5px; font-size:12px; }
.page-physics-whiteboard .pw-library-tabs button[aria-selected="true"] { background:#eff6ff; color:var(--pw-blue); font-weight:600; }
.page-physics-whiteboard .pw-muted { font-size:11px; color:var(--pw-muted); line-height:1.6; margin:10px 0; }
.page-physics-whiteboard #pw-library-list { display:grid; gap:10px; }
.page-physics-whiteboard .pw-apparatus-group h3 { color:var(--pw-muted); font-size:11px; font-weight:500; margin-bottom:7px; }
.page-physics-whiteboard .pw-apparatus-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.page-physics-whiteboard .pw-model-card { display:flex; width:100%; align-items:center; gap:8px; border:1px solid var(--pw-line) !important; border-radius:7px; padding:8px; text-align:left; }
.page-physics-whiteboard .pw-model-card:hover { border-color:#93c5fd !important; background:#eff6ff; }
.page-physics-whiteboard .pw-apparatus-grid .pw-model-card { flex-direction:column; gap:3px; padding:5px 2px; min-height:63px; text-align:center; }
.page-physics-whiteboard .pw-model-card strong { display:block; font-size:11px; font-weight:500; }
.page-physics-whiteboard .pw-model-card small { display:block; color:var(--pw-muted); font-size:10px; line-height:1.5; margin-top:4px; }
.page-physics-whiteboard .pw-model-thumb { display:grid; place-items:center; width:42px; height:30px; flex:none; }
.page-physics-whiteboard .pw-model-thumb svg { width:40px; height:30px; fill:none; stroke:#35566f; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.page-physics-whiteboard .pw-preset-index { flex:none; width:20px; color:#94a3b8; font-size:13px; }
.page-physics-whiteboard .pw-scene-item { display:flex; border:1px solid var(--pw-line); border-radius:7px; min-width:0; }
.page-physics-whiteboard .pw-scene-item.is-active { background:#eff6ff; border-color:#93c5fd; }
.page-physics-whiteboard .pw-scene-select { flex:1; display:flex; gap:8px; align-items:center; min-width:0; padding:8px; text-align:left; }
.page-physics-whiteboard .pw-scene-select > span:last-child { min-width:0; }
.page-physics-whiteboard .pw-scene-select strong { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.page-physics-whiteboard .pw-scene-select small { display:block; font-size:10px; color:var(--pw-muted); margin-top:3px; }
.page-physics-whiteboard .pw-kind-dot { width:7px; height:7px; border-radius:2px; background:#3b82f6; flex:none; }
.page-physics-whiteboard .pw-kind-electric { background:#ad8546; }
.page-physics-whiteboard .pw-kind-magnetic { background:#278575; }
.page-physics-whiteboard .pw-board { display:flex; flex-direction:column; min-width:0; min-height:0; }
.page-physics-whiteboard .pw-toolbar { display:flex; align-items:center; gap:3px; padding:5px 8px; flex:none; background:#fff; border-bottom:1px solid var(--pw-line); }
.page-physics-whiteboard .pw-tool-group { display:flex; align-items:center; gap:2px; }
.page-physics-whiteboard .pw-tool { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:32px; padding:5px 7px; border-radius:6px; font-size:11px; }
.page-physics-whiteboard .pw-tool.is-active, .page-physics-whiteboard .pw-icon-button.is-active { background:#eff6ff; color:var(--pw-blue); }
.page-physics-whiteboard .pw-tool:hover, .page-physics-whiteboard .pw-icon-button:hover { background:#f1f5f9; }
.page-physics-whiteboard .pw-icon-button { width:32px; height:32px; display:inline-grid; place-items:center; flex:none; padding:0; border-radius:6px; }
.page-physics-whiteboard .pw-toolbar-end { margin-left:auto; display:flex; align-items:center; gap:2px; }
.page-physics-whiteboard .pw-tool-divider { width:1px; height:20px; background:var(--pw-line); margin:0 4px; }
.page-physics-whiteboard .pw-colors { display:flex; gap:8px; padding:0 7px; }
.page-physics-whiteboard .pw-color { width:15px; height:15px; min-height:15px !important; min-width:15px; padding:0; border:0 !important; border-radius:50%; position:relative; flex:none; }
.page-physics-whiteboard .pw-color.is-active::after { content:''; position:absolute; inset:-3px; border:1px solid #94a3b8; border-radius:50%; }
.page-physics-whiteboard .pw-color-ink { background:#20374a !important; }
.page-physics-whiteboard .pw-color-blue { background:#2878b5 !important; }
.page-physics-whiteboard .pw-color-red { background:#c75447 !important; }
.page-physics-whiteboard .pw-color-green { background:#278575 !important; }
.page-physics-whiteboard .pw-canvas-wrap { position:relative; flex:1; min-height:0; overflow:hidden; background:#fff; }
.page-physics-whiteboard #pw-canvas { display:block; width:100%; height:100%; touch-action:none; }
.page-physics-whiteboard #pw-canvas[data-tool="pen"], .page-physics-whiteboard #pw-canvas[data-tool="track"], .page-physics-whiteboard #pw-canvas[data-tool="box"] { cursor:crosshair; }
.page-physics-whiteboard #pw-canvas[data-tool="eraser"] { cursor:cell; }
.page-physics-whiteboard .pw-board-heading { position:absolute; top:10px; left:14px; pointer-events:none; max-width:55%; }
.page-physics-whiteboard .pw-board-heading h2 { font-size:12px; color:var(--pw-muted); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.page-physics-whiteboard .pw-board-heading p, .page-physics-whiteboard .pw-equation { display:none; }
.page-physics-whiteboard .pw-board-status { position:absolute; right:14px; top:11px; display:flex; align-items:center; gap:5px; font-size:10px; color:var(--pw-muted); pointer-events:none; }
.page-physics-whiteboard .pw-status-dot { width:5px; height:5px; border-radius:50%; background:#80a396; }
.page-physics-whiteboard .pw-view-controls { position:absolute; right:12px; bottom:42px; display:flex; align-items:center; background:#ffffffed; border:1px solid var(--pw-line); border-radius:7px; }
.page-physics-whiteboard .pw-view-controls .pw-button { border:0 !important; background:transparent !important; font-size:10px !important; padding:4px; }
.page-physics-whiteboard .pw-view-controls .pw-icon-button { font-size:18px; }
.page-physics-whiteboard .pw-playback { display:flex; align-items:center; gap:12px; padding:8px 12px; background:#fff; border-top:1px solid var(--pw-line); flex:none; }
.page-physics-whiteboard .pw-play-controls { display:flex; align-items:center; gap:3px; }
.page-physics-whiteboard .pw-play-button { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 12px; border-radius:7px; background:var(--pw-blue) !important; color:#fff !important; font-size:12px; }
.page-physics-whiteboard .pw-timeline { flex:1; min-width:40px; }
.page-physics-whiteboard input[type="range"] { width:100%; height:16px; accent-color:var(--pw-blue); margin:0; display:block; }
.page-physics-whiteboard .pw-timeline > div { display:flex; justify-content:space-between; font-size:10px; color:var(--pw-muted); font-variant-numeric:tabular-nums; }
.page-physics-whiteboard .pw-timeline b { font-weight:500; color:var(--text); }
.page-physics-whiteboard .pw-speed { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--pw-muted); }
.page-physics-whiteboard .pw-speed select { padding:4px; border:1px solid var(--pw-line); border-radius:6px; background:#fff; color:var(--text); font-size:12px; }
.page-physics-whiteboard .pw-board-footer { flex:none; min-height:25px; display:flex; align-items:center; gap:12px; padding:3px 12px; border-top:1px solid var(--pw-line); color:var(--pw-muted); font-size:10px; }
.page-physics-whiteboard #pw-hint { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.page-physics-whiteboard .pw-shortcuts { margin-left:auto; white-space:nowrap; font-size:9px; }
.page-physics-whiteboard .pw-shortcuts i { font-style:normal; padding:0 4px; }
.page-physics-whiteboard .pw-field { display:block; margin-top:9px; min-width:0; }
.page-physics-whiteboard .pw-field > span { display:flex; align-items:center; gap:4px; color:var(--pw-muted); font-size:11px; min-height:18px; flex-wrap:wrap; }
.page-physics-whiteboard .pw-field i { font-family:Georgia,serif; }
.page-physics-whiteboard .pw-field small { margin-left:auto; font-size:10px; }
.page-physics-whiteboard .pw-field input, .page-physics-whiteboard .pw-field select, .page-physics-whiteboard .pw-input { width:100%; min-width:0; min-height:34px; padding:6px 8px; border:1px solid var(--pw-line); border-radius:7px; background:#f8fafc; color:var(--text); font-size:13px; margin-top:4px; }
.page-physics-whiteboard .pw-property-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 10px; }
.page-physics-whiteboard .pw-property-grid .pw-field { grid-column:1/-1; }
.page-physics-whiteboard .pw-property-grid .pw-half-field { grid-column:auto; }
.page-physics-whiteboard .pw-check { display:flex; align-items:center; gap:7px; font-size:11px; margin:10px 0; color:var(--pw-muted); }
.page-physics-whiteboard .pw-check input { accent-color:var(--pw-blue); width:16px; height:16px; }
.page-physics-whiteboard .pw-property-description { font-size:10px; color:var(--pw-muted); line-height:1.6; margin-top:10px; }
.page-physics-whiteboard #pw-canvas { cursor:default; }
.page-physics-whiteboard #pw-canvas.is-panning { cursor:grabbing; }
.page-physics-whiteboard .pw-touch-zoom { display:none; }
.page-physics-whiteboard .pw-time-limit { display:flex; align-items:center; gap:4px; white-space:nowrap; font-size:10px; color:var(--pw-muted); }
.page-physics-whiteboard .pw-time-limit input { width:64px; min-width:0; padding:5px 4px; min-height:30px; background:#f8fafc; border:1px solid var(--pw-line); border-radius:6px; font-size:12px; color:var(--text); }
.page-physics-whiteboard #pw-meter-readout { color:#278575; }
.page-physics-whiteboard #pw-meter-readout.is-overloaded { color:#b5473d; font-weight:600; }
@media (pointer:coarse) { .page-physics-whiteboard .pw-touch-zoom { display:inline-grid; } }
.page-physics-whiteboard .pw-join-actions { display:flex; gap:6px; margin:10px 0; }
.page-physics-whiteboard .pw-join-actions .pw-button { flex:1; padding:5px; font-size:11px !important; }
.page-physics-whiteboard .pw-inspector-section { border-top:1px solid var(--pw-line); margin-top:14px; padding-top:12px; }
.page-physics-whiteboard .pw-section-title { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.page-physics-whiteboard .pw-section-title h3, .page-physics-whiteboard .pw-settings summary { font-size:12px; font-weight:600; }
.page-physics-whiteboard .pw-section-title > span { font-size:10px; color:var(--pw-muted); }
.page-physics-whiteboard .pw-settings summary { cursor:pointer; }
.page-physics-whiteboard .pw-switch { display:flex; align-items:center; gap:8px; position:relative; min-height:32px; font-size:11px; color:var(--pw-muted); }
.page-physics-whiteboard .pw-switch > input { position:absolute; right:0; opacity:0; width:32px; height:20px; }
.page-physics-whiteboard .pw-switch-track { margin-left:auto; flex:none; width:30px; height:18px; border-radius:10px; background:#cbd5e1; }
.page-physics-whiteboard .pw-switch-track::after { content:''; display:block; width:14px; height:14px; margin:2px; border-radius:50%; background:#fff; }
.page-physics-whiteboard .pw-switch input:checked + .pw-switch-track { background:var(--pw-blue); }
.page-physics-whiteboard .pw-switch input:checked + .pw-switch-track::after { transform:translateX(12px); }
.page-physics-whiteboard .pw-switch input:focus-visible + .pw-switch-track { outline:3px solid #93c5fd; }
.page-physics-whiteboard .pw-readout dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
.page-physics-whiteboard .pw-readout dt { font-size:10px; color:var(--pw-muted); margin-bottom:4px; }
.page-physics-whiteboard .pw-readout dd { display:flex; align-items:baseline; gap:4px; margin:0; }
.page-physics-whiteboard .pw-readout dd b { color:var(--pw-blue-dark); font-size:17px; font-weight:500; font-variant-numeric:tabular-nums; }
.page-physics-whiteboard .pw-readout dd span { font-size:10px; color:var(--pw-muted); }
.page-physics-whiteboard .pw-readout p { font-size:10px; color:var(--pw-muted); line-height:1.5; margin-top:8px; }
.page-physics-whiteboard .pw-object-actions { display:flex; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid var(--pw-line); }
.page-physics-whiteboard .pw-object-actions .pw-button { flex:1; }
.page-physics-whiteboard .pw-danger { color:#b85c51 !important; }
.page-physics-whiteboard .pw-empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:#ffffffed; text-align:center; padding:20px; }
.page-physics-whiteboard .pw-empty > .pw-icon { width:40px; height:40px; color:#94a3b8; }
.page-physics-whiteboard .pw-empty h2 { font-size:18px; }
.page-physics-whiteboard .pw-empty p { color:var(--pw-muted); font-size:12px; }
.page-physics-whiteboard .pw-simulation-message { position:absolute; top:40px; left:15px; right:15px; padding:10px; border:1px solid #e6c8a3; border-radius:7px; background:#fff8ec; color:#8a592c; z-index:2; font-size:12px; }
.page-physics-whiteboard .pw-toast { position:fixed; left:50%; bottom:25px; transform:translateX(-50%); max-width:calc(100% - 24px); padding:11px 16px; background:#1d4ed8; color:#fff; border-radius:7px; z-index:80; box-shadow:0 5px 24px #1d4ed820; font-size:12px; }
.page-physics-whiteboard .pw-toast.is-error { background:#a64f44; }
.page-physics-whiteboard .pw-dialog { margin:auto; width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:22px; border:1px solid var(--pw-line); border-radius:12px; color:var(--text); box-shadow:var(--shadow-xl); }
.page-physics-whiteboard .pw-dialog::backdrop { background:#152f4770; }
.page-physics-whiteboard .pw-dialog h2 { font-size:17px; font-weight:600; }
.page-physics-whiteboard .pw-dialog ol { padding-left:19px; line-height:1.8; font-size:12px; }
.page-physics-whiteboard .pw-dialog li { margin-bottom:7px; }
.page-physics-whiteboard .pw-dialog p { font-size:12px; line-height:1.7; color:var(--pw-muted); margin:12px 0; }
.page-physics-whiteboard .pw-boards-dialog { width:min(680px,calc(100% - 24px)); }
.page-physics-whiteboard #pw-board-count { margin-left:auto; color:var(--pw-muted); white-space:nowrap; }
.page-physics-whiteboard .pw-board-list { display:grid; gap:9px; margin:14px 0; }
.page-physics-whiteboard .pw-board-slot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid var(--pw-line); border-radius:8px; }
.page-physics-whiteboard .pw-board-slot.is-current { border-color:#93c5fd; background:#eff6ff; }
.page-physics-whiteboard .pw-board-slot > div:first-child { min-width:0; flex:1; }
.page-physics-whiteboard .pw-board-slot strong { overflow-wrap:anywhere; }
.page-physics-whiteboard .pw-board-number { margin-right:8px; color:var(--pw-muted); font-size:11px; }
.page-physics-whiteboard .pw-board-slot small { display:block; font-size:10px; color:var(--pw-muted); margin-top:5px; }
.page-physics-whiteboard .pw-board-actions, .page-physics-whiteboard .pw-board-library-footer, .page-physics-whiteboard .pw-board-login { display:flex; flex-wrap:wrap; gap:7px; }
.page-physics-whiteboard .pw-board-library-footer { justify-content:flex-end; padding-top:12px; }
.page-physics-whiteboard .pw-mobile-toggle, .page-physics-whiteboard .pw-mobile-close { display:none; }
.page-physics-whiteboard .pw-backdrop { position:fixed; inset:calc(var(--site-nav-height,50px) + var(--pw-header-height)) 0 0; background:#1d4ed855; z-index:30; }
.page-physics-whiteboard .pw-exit-present { position:absolute; right:15px; bottom:12px; }
.page-physics-whiteboard .pw-noscript { position:fixed; top:150px; left:10%; right:10%; padding:20px; background:#fff2dd; border:1px solid #d5912b; z-index:90; }
.page-physics-whiteboard.is-presenting { padding-top:0; }
.page-physics-whiteboard.is-presenting :where(.navbar,.pw-header,.pw-library,.pw-inspector,.pw-board-footer) { display:none; }
.page-physics-whiteboard.is-presenting .pw-workspace { display:flex; }
.page-physics-whiteboard.is-presenting .pw-board { width:100%; }
@media (max-width:1280px) { .page-physics-whiteboard .pw-tool span { display:none; } .page-physics-whiteboard .pw-shortcuts { display:none; } .page-physics-whiteboard .pw-workspace { grid-template-columns:208px minmax(0,1fr) 278px; } }
@media (max-width:1050px) {
 .page-physics-whiteboard .pw-workspace { grid-template-columns:minmax(0,1fr) 278px; }
 .page-physics-whiteboard .pw-library { display:none; position:fixed; top:calc(var(--site-nav-height,50px) + var(--pw-header-height)); bottom:0; left:0; width:252px; z-index:40; }
 .page-physics-whiteboard .pw-library.is-open { display:block; }
 .page-physics-whiteboard .pw-library .pw-mobile-close, .page-physics-whiteboard [data-command="open-library"] { display:inline-grid; }
 .page-physics-whiteboard .pw-header { gap:10px; }
}
@media (max-width:820px) {
 .page-physics-whiteboard .pw-touch-zoom { display:inline-grid; }
 .page-physics-whiteboard .pw-workspace { display:flex; }
 .page-physics-whiteboard .pw-board { width:100%; }
 .page-physics-whiteboard .pw-inspector { display:none; position:fixed; top:calc(var(--site-nav-height,50px) + var(--pw-header-height)); right:0; bottom:0; width:min(300px,calc(100% - 24px)); z-index:40; }
 .page-physics-whiteboard .pw-inspector.is-open { display:block; }
 .page-physics-whiteboard .pw-mobile-close, .page-physics-whiteboard [data-command="open-inspector"] { display:inline-grid; }
 .page-physics-whiteboard .pw-toolbar { flex-wrap:wrap; }
 .page-physics-whiteboard .pw-tool, .page-physics-whiteboard .pw-icon-button { min-width:38px; min-height:40px; }
 .page-physics-whiteboard .pw-tool-divider { display:none; }
 .page-physics-whiteboard .pw-field input { min-height:40px; font-size:16px; }
 .page-physics-whiteboard .pw-file-options button { min-height:44px; }
 .page-physics-whiteboard .pw-apparatus-grid .pw-model-card { min-height:70px; }
}
@media (max-width:560px) {
 .page-physics-whiteboard { --pw-header-height:88px; }
 .page-physics-whiteboard .pw-header { flex-wrap:wrap; gap:0 10px; padding:5px 10px; }
 .page-physics-whiteboard .pw-brand { align-self:auto; border:0; height:33px; }
 .page-physics-whiteboard .pw-document { height:33px; }
 .page-physics-whiteboard .pw-document input { font-size:13px; line-height:17px; }
 .page-physics-whiteboard .pw-document > span { font-size:9px; }
 .page-physics-whiteboard .pw-header-actions { width:100%; justify-content:space-between; gap:5px; }
 .page-physics-whiteboard .pw-header-actions .pw-button { min-height:38px; padding:5px 5px; gap:3px; font-size:11px !important; }
 .page-physics-whiteboard .pw-header-actions .pw-button .pw-icon { width:15px; height:15px; }
 .page-physics-whiteboard .pw-header-actions [data-command="boards"] span { display:none; }
 .page-physics-whiteboard .pw-header-actions [data-command="clear"] span { display:none; }
 .page-physics-whiteboard .pw-toolbar { gap:2px; padding:3px 6px; }
 .page-physics-whiteboard .pw-tool-group { gap:0; }
 .page-physics-whiteboard .pw-tool { padding:4px; min-width:34px; }
 .page-physics-whiteboard .pw-colors { order:4; padding:0 5px; gap:11px; }
 .page-physics-whiteboard .pw-toolbar-end { margin-left:auto; }
 .page-physics-whiteboard .pw-playback { flex-wrap:wrap; gap:5px 6px; padding:7px 10px; }
 .page-physics-whiteboard .pw-play-controls { gap:0; }
 .page-physics-whiteboard .pw-play-controls .pw-icon-button { min-width:30px; padding:4px; }
 .page-physics-whiteboard .pw-time-limit { margin-left:auto; gap:3px; }
 .page-physics-whiteboard .pw-time-limit input { width:50px; min-height:34px; font-size:14px; }
 .page-physics-whiteboard .pw-speed { margin-left:0; gap:0; font-size:0; }
 .page-physics-whiteboard .pw-play-button { min-height:40px; }
 .page-physics-whiteboard .pw-timeline { order:3; flex-basis:100%; }
 .page-physics-whiteboard .pw-board-footer { min-height:22px; font-size:9px; padding:3px 10px; }
 .page-physics-whiteboard .pw-board-heading { max-width:48%; }
 .page-physics-whiteboard .pw-board-heading h2 { font-size:10px; }
 .page-physics-whiteboard .pw-board-status { font-size:9px; }
 .page-physics-whiteboard .pw-board-slot { flex-direction:column; align-items:stretch; }
 .page-physics-whiteboard .pw-board-actions .pw-button { min-height:40px; flex:1; }
}
@media (max-height:450px) and (min-width:561px) {
 .page-physics-whiteboard { --pw-header-height:42px; }
 .page-physics-whiteboard .pw-tool, .page-physics-whiteboard .pw-icon-button { min-height:30px; height:30px; }
 .page-physics-whiteboard .pw-playback { padding-block:4px; }
 .page-physics-whiteboard .pw-board-footer { min-height:20px; }
}
@media (prefers-reduced-motion:reduce) { .page-physics-whiteboard *, .page-physics-whiteboard *::before, .page-physics-whiteboard *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; } }
.page-physics-whiteboard #pw-canvas[data-tool="rope"] { cursor:crosshair; }
.page-physics-whiteboard .pw-rope-actions { flex:none; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:7px 10px; border-bottom:1px solid #b8d7ed; background:#f4faff; }
.page-physics-whiteboard .pw-rope-actions span { flex:1 1 190px; font-size:12px; color:#34566e; }
.page-physics-whiteboard .pw-rope-actions .pw-button { min-height:30px; font-size:11px; padding:4px 8px; }
.page-physics-whiteboard .pw-rope-node { margin:8px 0; padding:8px; border:1px solid #e1e9f0; border-radius:7px; background:#fafcfe; }
.page-physics-whiteboard .pw-rope-node-heading { display:flex; justify-content:space-between; align-items:center; gap:4px; margin-bottom:5px; color:#526676; font-size:11px; }
.page-physics-whiteboard .pw-rope-node-buttons { display:flex; gap:3px; }
.page-physics-whiteboard .pw-rope-node-buttons button { padding:2px 5px; min-height:25px; border:1px solid #dbe6ee; border-radius:4px; background:white; color:#526676; cursor:pointer; }
.page-physics-whiteboard .pw-rope-node .pw-field { margin-bottom:5px; }
.page-physics-whiteboard .pw-rope-node select { max-width:100%; }
.page-physics-whiteboard .pw-rope-node .pw-property-grid { gap:5px; }
.page-physics-whiteboard .pw-rope-route-note { color:#526676; font-size:11px; line-height:1.65; }
@media(max-width:560px) { .page-physics-whiteboard .pw-rope-actions { padding:6px; gap:4px; } .page-physics-whiteboard .pw-rope-actions span { flex-basis:100%; } .page-physics-whiteboard .pw-rope-actions .pw-button { min-height:36px; } .page-physics-whiteboard .pw-rope-node-buttons button { min-width:32px; min-height:32px; } }
