.theotopia-install-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: #f2f2f2; background: #0c151c; border: 1px solid #25313b; border-radius: 20px; overflow: auto; }
.theotopia-install-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.theotopia-install-card, .theotopia-install-card * { box-sizing: border-box; }
.theotopia-install-card { position: relative; padding: 28px; color: #f2f2f2; font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.theotopia-install-card h1, .theotopia-install-card h2, .theotopia-install-card h3, .theotopia-install-card p { margin: 0; }
.theotopia-install-card [hidden] { display: none !important; }
.theotopia-install-card .install-top { display: flex; gap: 16px; align-items: center; padding-right: 26px; }
.theotopia-install-card .install-icon { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.theotopia-install-card .install-title { color: #fff; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.4px; }
.theotopia-install-card .install-origin { color: #b8bdc3; font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
.theotopia-install-card .install-description { margin-top: 20px; color: #b8bdc3; }
.theotopia-install-card .install-close { position: absolute; top: 10px; right: 10px; width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.theotopia-install-card .install-close:hover { background: #25313b; }
.theotopia-install-card .install-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.theotopia-install-card .install-device { min-height: 44px; padding: 10px 6px; border: 1px solid #25313b; border-radius: 999px; color: #f2f2f2; background: transparent; font: 700 13px/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; }
.theotopia-install-card .install-device[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }
.theotopia-install-card .install-method { margin-top: 24px; }
.theotopia-install-card .install-method h3 { color: #fff; font-size: 17px; line-height: 1.4; font-weight: 700; }
.theotopia-install-card .install-method ol { display: grid; gap: 12px; margin: 14px 0 0; padding-left: 22px; }
.theotopia-install-card .install-method li { padding-left: 4px; }
.theotopia-install-card .install-method p { margin-top: 14px; color: #b8bdc3; font-size: 14px; }
.theotopia-install-card .install-open { display: flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; margin-top: 24px; padding: 13px 20px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; cursor: pointer; }
.theotopia-install-card .install-open:hover { background: #e7e7e7; border-color: #e7e7e7; }
.theotopia-install-card .install-note { margin-top: 10px; color: #b8bdc3; font-size: 13px; text-align: center; }
.theotopia-install-card .install-trouble { margin-top: 24px; padding-top: 16px; border-top: 1px solid #25313b; font-size: 14px; }
.theotopia-install-card .install-trouble summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.theotopia-install-card .install-trouble p { margin-top: 8px; color: #b8bdc3; }
.theotopia-install-card .install-status { margin-top: 12px; color: #fff1bf; }
.theotopia-install-card button:focus-visible, .theotopia-install-card a:focus-visible, .theotopia-install-card summary:focus-visible { outline: 2px solid #ffd000; outline-offset: 4px; }
.install-page { max-width: 620px; margin: 40px auto 64px; }
.install-page .theotopia-install-card { background: #0c151c; border: 1px solid #25313b; border-radius: 20px; }
.install-page .install-top { padding-right: 0; }
.install-page .install-close { display: none; }
.install-header { justify-content: space-between; }
.install-back { color: #b8bdc3; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 680px) {
  .theotopia-install-card { padding: 24px 20px; }
  .theotopia-install-card .install-top { gap: 12px; }
  .theotopia-install-card .install-icon { width: 48px; height: 48px; }
  .theotopia-install-card .install-title { font-size: 22px; }
  .install-page { margin-top: 24px; margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .theotopia-install-dialog { scroll-behavior: auto; } }
