.desktop-auth {
  margin: 0;
  line-height: 1.6;
  font-family: Inter, Arial, sans-serif;
  color: #261e37;
  background: #fff8ed;
}
.desktop-shell, .desktop-shell *, .desktop-confirm-dialog, .desktop-confirm-dialog * { box-sizing: border-box; }
.desktop-shell {
  max-width: 540px;
  margin: 6vh auto;
  padding: 32px;
  background: #fffdf8;
  border: 1px solid #e7dfd5;
  border-radius: 28px;
  box-shadow: 0 12px 50px #41305a0c;
}
.desktop-brand { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; text-decoration: none; color: inherit; }
.desktop-shell h1, .desktop-confirm-dialog h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; }
.desktop-shell h2 { font-size: 18px; }
.desktop-auth button, .desktop-auth select, .desktop-confirm-dialog button, .desktop-device-tools button { font: inherit; }
.desktop-auth button, .desktop-confirm-dialog button, .desktop-device-tools button {
  border: 1px solid #d8cde5;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  background: #f3edf8;
  color: #3c2857;
  font-weight: 700;
}
.desktop-auth button:disabled, .desktop-confirm-dialog button:disabled { opacity: .6; cursor: default; }
.desktop-auth .desktop-primary, .desktop-confirm-dialog .desktop-primary { color: white; background: #7043a1; border-color: #7043a1; }
.desktop-field { display: grid; gap: 8px; margin: 24px 0; }
.desktop-field select { padding: 12px; border: 1px solid #cfc4da; border-radius: 12px; background: white; color: inherit; }
.desktop-shell canvas, .desktop-confirm-dialog canvas { display: block; width: min(240px,100%); height: auto; margin: 20px auto; border-radius: 12px; image-rendering: pixelated; }
.desktop-comparison { font-size: 32px; letter-spacing: 8px; text-align: center; font-weight: 800; color: #633c87; margin: 12px 0; }
.desktop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 20px 0; }
.desktop-auth a, .desktop-confirm-dialog a, .desktop-device-tools a { color: #694191; }
.desktop-auth :focus-visible, .desktop-confirm-dialog :focus-visible { outline: 3px solid #8350bd; outline-offset: 3px; }
.desktop-note { font-size: 14px; color: #746b7b; margin-top: 28px; }
.desktop-account { color: #7043a1; font-weight: 700; }
.desktop-warning { padding: 14px; border-radius: 12px; background: #fff2d9; }
.desktop-confirm-check { display: flex; align-items: flex-start; gap: 12px; }
.desktop-confirm-check input { margin-top: 6px; min-width: 20px; min-height: 20px; }
.desktop-device-list article { border-top: 1px solid #e5dce9; padding: 16px 0; }
.desktop-device-list p { font-size: 14px; color: #746b7b; }
.desktop-confirm-dialog { max-width: 520px; width: calc(100% - 32px); max-height: 90vh; overflow: auto; border: 1px solid #e4d9eb; border-radius: 24px; padding: 28px; color: #261e37; background: #fffdf8; }
.desktop-confirm-dialog::backdrop { background: #21152d99; }
.desktop-close { float: right; font-size: 24px; padding: 0 10px; }
.desktop-device-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.desktop-device-tools button, .desktop-device-tools a { font-size: 14px; padding: 8px 12px; }
.desktop-auth [hidden], .desktop-device-tools[hidden], .desktop-confirm-dialog [hidden] { display: none !important; }
@media(max-width:600px) {
  .desktop-shell { margin: 0; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; padding: 24px; }
  .desktop-shell h1 { font-size: 26px; }
}

.desktop-shell[data-stage="waiting"] { margin-top: 3vh; }
