
.scene { position: relative; margin-top: var(--space-6); }
.scene-window { position: relative; width: calc(100% - 220px); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -40px var(--shadow); }
.window-chrome { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); }
.window-address { flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0; height: 30px; padding: 0 12px; border-radius: 4px; background: var(--well); color: var(--text); font-size: 15px; white-space: nowrap; overflow: hidden; }
.window-path { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.window-lock { width: 9px; height: 8px; margin-right: 8px; border: 1.5px solid var(--muted); border-radius: 2px; position: relative; top: 2px; }
.window-lock::before { content: ""; position: absolute; left: 1px; top: -6px; width: 4px; height: 5px; border: 1.5px solid var(--muted); border-bottom: 0; border-radius: 3px 3px 0 0; }
.window-tool { position: relative; display: flex; align-items: center; padding: 5px; border-radius: 6px; background: var(--well); border: 1px solid var(--line); }
.scene[data-paused="yes"] .toolbar-on { display: none; }
.scene[data-paused="yes"] .toolbar-off { display: block; }
.window-tool .lamp { position: absolute; right: -4px; top: -4px; width: 8px; height: 8px; }
.window-view { position: relative; height: 500px; overflow: hidden; }

.console { position: absolute; top: 60px; right: 0; width: 316px; display: grid; gap: 12px; padding: 16px; z-index: 2; background: var(--surface); }
.console::after { content: ""; position: absolute; top: -9px; right: 252px; width: 16px; height: 16px; transform: rotate(45deg); background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.console-title { font-size: 0; }
.console-title .wordmark { font-size: 18px; }
.lamp-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 15px / 1 var(--body); letter-spacing: 0; }
.console-reason { padding: 18px 14px; color: var(--text); font-weight: 600; }
.site-host { display: flex; flex-wrap: wrap; gap: 0; font-size: 15px; font-weight: 600; }
.site-path { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.site-note { color: var(--muted); font-size: 15px; }
.sample-tag { grid-column: 1 / -1; justify-self: start; color: var(--accent-text); font: italic 400 15px / 1.4 var(--heading); }
.scene-caption { width: calc(100% - 220px); margin-top: var(--space-4); color: var(--muted); font-size: 15px; }
.scene-nojs { margin-top: var(--space-3); color: var(--muted); }
.js .scene-nojs { display: none; }

.m-page {
  --m-paper: #FBF8F2;
  --m-ink: #23201C;
  --m-soft: #6B645A;
  --m-rule: #E3DDD2;
  --m-bar: #DDD6CA;
  --m-mast: #8C2F1B;
  --m-ad-yellow: #FFD84D;
  --m-ad-red: #D7263D;
  --m-ad-blue: #2D5BD7;
  --m-ad-white: #FFFFFF;
  --m-night: #1F1F24;
  position: relative; height: 100%; padding: 14px 22px 0; background: var(--m-paper); color: var(--m-ink); font: 15px / 1.45 Georgia, "Times New Roman", serif;
}
.m-mast { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 8px; border-bottom: 3px double var(--m-rule); }
.m-paper { color: var(--m-mast); font: 700 26px / 1 Georgia, serif; letter-spacing: -0.01em; }
.m-section { color: var(--m-soft); font: 600 15px / 1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.m-cols { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; padding-top: 14px; }
.m-headline { font: 700 24px / 1.12 Georgia, serif; letter-spacing: -0.01em; }
.m-byline { margin: 6px 0 12px; color: var(--m-soft); font: 15px var(--body); }
.m-line { display: block; height: 9px; margin: 0 0 9px; border-radius: 3px; background: var(--m-bar); }
.m-short { width: 62%; }
.m-most { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--m-rule); font: 15px / 1.3 var(--body); }
.m-most b { font: 700 15px / 1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--m-mast); }
.m-ad { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: var(--m-ad-yellow); color: var(--m-ink); font: 700 15px / 1.25 var(--body); }
.m-ad b { padding: 2px 5px; border-radius: 3px; background: var(--m-ad-red); color: var(--m-ad-white); font-size: 15px; letter-spacing: .04em; }
.m-ad i { margin-left: auto; padding: 6px 10px; border-radius: 4px; background: var(--m-ad-blue); color: var(--m-ad-white); font-style: normal; white-space: nowrap; }
.m-ad-wide { min-height: 64px; }
.m-ad-tall { flex-direction: column; align-items: flex-start; min-height: 196px; background: var(--m-ad-blue); color: var(--m-ad-white); }
.m-ad-tall i { margin: auto 0 0; background: var(--m-ad-yellow); color: var(--m-ink); }
.m-native { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; padding: 10px; border: 1px dashed var(--m-rule); font: 15px / 1.3 var(--body); }
.m-native-tag { grid-column: 1 / -1; color: var(--m-soft); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.m-native-item { display: grid; gap: 2px; }
.m-native-item small { color: var(--m-soft); }

.clutter { position: relative; }
.clutter-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; transition-delay: var(--slot-delay, 0ms); }
.clutter-inner { min-height: 0; overflow: hidden; }
.clutter > .tray { margin: 2px 0 12px; border-color: var(--m-bar); color: var(--m-soft); transition: opacity .25s ease, transform .25s ease; transition-delay: var(--slot-delay, 0ms); }
.clutter > .tray .tray-source { color: var(--m-mast); }
.scene[data-blocking="off"] .clutter-body { grid-template-rows: 1fr; opacity: 1; }
.scene[data-blocking="off"] .clutter > .tray { display: none; }
.clutter-leader { --slot-delay: 70ms; }
.clutter-native { --slot-delay: 140ms; }
.clutter-side { --slot-delay: 210ms; }

.scene.is-changing .clutter-inner > *, .scene.is-changing .clutter > .tray { animation: ring .9s ease-out both; animation-delay: var(--slot-delay, 0ms); }
.scene.is-changing .odometer { animation: ring .9s ease-out both; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 var(--glow); } 30% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: 0 0 0 10px transparent; } }

.scene[data-blocking="off"] .drum { color: var(--muted); }

.scene-rack { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "panel window"; gap: var(--space-5); align-items: start; margin-top: var(--space-4); }
.scene-rack .scene-window { grid-area: window; width: 100%; }
.scene-rack .window-view { height: 560px; }
.scene-rack .console { grid-area: panel; position: sticky; top: calc(var(--header-height) + 20px); width: auto; }
.scene-rack .console::after { display: none; }
.scene-rack .scene-nojs { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .scene-window, .scene-caption { width: 100%; }
  .console { position: relative; top: auto; right: auto; width: auto; margin-top: var(--space-4); }
  .console::after { display: none; }
  .scene-rack { grid-template-columns: minmax(0, 1fr); grid-template-areas: "window" "panel"; }
  .scene-rack .console { position: relative; top: auto; }
  .m-cols { grid-template-columns: minmax(0, 1fr); }
  .m-aside { display: none; }
  .window-view, .scene-rack .window-view { height: 440px; }
}
