.qr-reader-button { display: none; }
@media (max-width: 760px) {
  .app-header,
  .app-header.has-corporation-mode {
    grid-template-columns: 44px minmax(0, 1fr) 44px 38px;
    column-gap: 6px;
  }
  .app-header .brand { width: 100%; min-width: 0; }
  .app-header .brand-text { width: 100%; max-width: 252px; min-width: 0; }
  .qr-reader-button {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    padding: 3px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .qr-reader-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .app-header .refresh-button { grid-column: 4; grid-row: 1; }
}
.qr-reader-dialog {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 16px;
  overflow-y: auto;
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
}
.qr-reader-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.qr-reader-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qr-reader-heading h2 { margin: 0; font-size: 19px; }
.qr-reader-dialog button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--panel-border); border-radius: 6px; background: #fff; color: #2478a0; cursor: pointer; }
.qr-reader-dialog video { display: block; width: 100%; aspect-ratio: 1; margin-top: 12px; border-radius: 8px; object-fit: cover; background: #15232c; }
.qr-reader-dialog video[hidden] { display: none; }
.qr-reader-status { line-height: 1.6; }
.qr-reader-result { max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: #eef8fe; border-radius: 6px; }
