.app-body .mirror-page { max-width: 1160px; }
.app-body .mirror-topbar { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.app-body .mirror-layout { display: grid; grid-template-columns: minmax(280px, 520px) minmax(280px, 1fr); gap: 28px; align-items: start; }
.app-body .mirror-preview { display: grid; place-items: center; padding: 22px; border: 1px solid var(--app-line); border-radius: 22px; background: #111214; }
.app-body .mirror-preview canvas { display: block; grid-area: 1 / 1; width: min(100%, 405px); height: auto; aspect-ratio: 9 / 16; background: #f7f8f8; box-shadow: 0 24px 70px rgba(0,0,0,.36); }
.app-body .mirror-preview canvas[data-ready="error"] { opacity: .12; }
.app-body .mirror-draw-error { z-index: 1; display: grid; grid-area: 1 / 1; justify-items: center; gap: 10px; width: min(320px, calc(100% - 32px)); padding: 22px; border: 1px solid var(--app-line-2); border-radius: 16px; background: #17181A; color: var(--fg); text-align: center; }
.app-body .mirror-draw-error[hidden] { display: none; }
.app-body .mirror-draw-error p { margin: 0; color: var(--fg-3); line-height: 1.45; }
.app-body .mirror-draw-error .button { min-height: 44px; margin-top: 4px; }
.app-body .mirror-tools { display: grid; gap: 24px; padding: 26px; }
.app-body .mirror-tools strong { display: block; overflow-wrap: anywhere; color: var(--fg); font-size: 15px; line-height: 1.45; }
.app-body .mirror-tools p { color: var(--fg-3); line-height: 1.55; }
.app-body .mirror-actions { display: grid; gap: 10px; }
.app-body .mirror-actions .button { width: 100%; margin: 0; text-align: center; }
.app-body .mirror-nfc { padding-top: 22px; border-top: 1px solid var(--app-line); }
.app-body .mirror-nfc h2 { margin: 0; font-size: 18px; }
.app-body .mirror-nfc-status { min-height: 48px; margin-bottom: 0; }
.app-body .mirror-settings { display: grid; gap: 16px; }
.app-body .mirror-settings label { display: grid; gap: 7px; }
.app-body .mirror-settings-help { margin: 0; color: var(--fg-3); line-height: 1.5; }

@media (max-width: 760px) {
  .app-body .mirror-topbar { position: sticky; z-index: 16; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 16px; padding: 8px 0; background: #08090A; box-shadow: 0 -12px 0 #08090A, 0 1px 0 var(--app-line); }
  .app-body .mirror-topbar .app-title h1 { margin-bottom: 3px; font-size: 25px; }
  .app-body .mirror-topbar .app-title > p:last-child { display: none; }
  .app-body .mirror-topbar .app-button { padding-inline: 13px; }
  .app-body .mirror-layout { grid-template-columns: 1fr; }
  .app-body .mirror-preview { padding: 14px; }
  .app-body .mirror-tools { padding: 20px; }
}
