.article-embed body { background: #e6e9e3; color: #29342a; }
.article-embed body > header { display: none; }
.article-embed main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100dvh;
  min-height: 0;
}
.article-embed #stage { height: auto; min-height: 0; grid-column: 1; grid-row: 1; }
.article-embed aside { display: none; }
.article-embed .inspector-open { grid-template-columns: minmax(0, 1fr) 280px; }
.article-embed .inspector-open aside { display: block; grid-column: 2; grid-row: 1; min-height: 0; overflow: auto; padding: 16px; background: var(--paper, #101921); color: var(--ink, #ecf1f6); }
.article-embed #toolbar { top: 12px; left: 12px; right: 12px; gap: 5px; }
.article-embed #toolbar button { padding: 6px 10px; background: #fffefaf2; border: 1px solid #cbd2c5; border-radius: 4px; color: #475740; font-size: 11px; pointer-events: auto; }
.article-embed #toolbar button[aria-pressed="true"] { background: #39543d; color: white; border-color: #39543d; }
.article-embed #hint { bottom: 10px; left: 12px; right: auto; max-width: calc(100% - 24px); padding: 5px 8px; border-radius: 4px; background: #fffefad9; color: #53604b; font-size: 10px; }
.article-embed #playback { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-top: 1px solid #d8dfd2; background: #fffefa; }
.article-embed #playback h2, .article-embed #motion-note { display: none; }
.article-embed #playback .actions { margin: 0; gap: 6px; }
.article-embed #playback button { padding: 6px 12px; border-radius: 4px; font-size: 12px; background: #f1f3ed; color: #38553b; border: 1px solid #cbd2c5; }
.article-embed #playback #play { background: #38553b; color: white; min-width: 64px; }
.article-embed #playback label { font-size: 11px; color: #70766f; }
.article-embed #playback #timeline { flex: 1; width: auto !important; min-width: 100px; accent-color: #547354 !important; }
.article-embed #time { margin: 0; color: #70766f; font-size: 11px; font-variant-numeric: tabular-nums; }
.generation-mode #playback { display: none !important; }
.article-embed #variation-controls { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid #d8dfd2; background: #fffefa; }
.article-embed #variation-controls button { padding: 7px 12px; border: 1px solid #cbd2c5; border-radius: 4px; font-size: 12px; color: #38553b; background: #f1f3ed; }
.article-embed #variation-controls button:first-child { background: #38553b; color: white; }
.article-embed #variation-controls button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 540px) {
  .article-embed .inspector-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(180px, 1fr) minmax(0, 180px) auto; }
  .article-embed .inspector-open aside { grid-column: 1; grid-row: 2; }
  .article-embed .inspector-open #playback { grid-row: 3; }
  .article-embed .inspector-open #variation-controls { grid-row: 3; }
  .article-embed #playback { gap: 8px; padding: 10px 12px; }
  .article-embed #playback label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .article-embed #time { width: 100%; }
}
