#canvas-view { display: none; flex-direction: column; min-height: 0; }
#canvas-view.active { display: flex; }
.app:has(#canvas-view.active) { height: 100dvh; min-height: 0; }
.canvas-toolbar { align-items: center; padding: 6px 10px; gap: 6px; flex-shrink: 0; }
.canvas-toolbar button, .canvas-options summary { padding: 7px 10px; min-height: 34px; }
.canvas-identity { flex: 1; min-width: 70px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.canvas-identity strong { color: var(--blue); font-size: 12px; letter-spacing: .08em; }
.canvas-identity span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#canvas-view.active { min-height: 0; height: 100%; position: relative; }
#canvas-frame { flex: 1 1 0; width: 100%; min-height: 200px; border: 0; background: #fff; }
#canvas-frame[hidden] { display: none; }
.canvas-hint { padding: 10px 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
#canvas-link[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); }
#canvas-status { padding: 4px 10px; font-size: 11px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#canvas-autofit[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); }
.canvas-options { position: relative; }
.canvas-options summary { cursor: pointer; color: var(--blue); font-size: 12px; border: 1px solid var(--line); border-radius: 12px; }
.canvas-options > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; display: grid; gap: 6px; padding: 8px; min-width: 170px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
#canvas-view.canvas-expanded { position: fixed; inset: 0; z-index: 1000; height: 100dvh; background: var(--panel); }
@media (max-width: 600px) { .canvas-toolbar { gap: 4px; } .canvas-toolbar button, .canvas-options summary { padding: 6px; min-height: 36px; font-size: 11px; } .canvas-identity { min-width: 50px; } }
