body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
header { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 52px); }
.library-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; min-height: 44px; font-size: .9rem; border-radius: 12px; }
.library-link:hover { background: var(--panel); }
.library-link .ui-icon { width: 17px; height: 17px; }
main { flex: 1; display: grid; place-items: center; padding: 34px 22px; }
.account { width: min(100%, 370px); }
.signature { display: block; width: 65px; height: 46px; margin: 0 auto 22px; }
h1 { font-size: clamp(1.95rem, 4vw, 2.25rem); font-weight: 620; line-height: 1.15; letter-spacing: -.05em; margin: 0; text-align: center; }
#signed-out > p { color: var(--subtle); max-width: 340px; margin: 13px auto 30px; font-size: .95rem; line-height: 1.6; text-align: center; }
.providers { display: grid; gap: 10px; }
.providers a, .providers button { min-height: 50px; display: grid; place-items: center; width: 100%; padding: 10px 12px; border: 1px solid var(--edge); background: var(--canvas); color: var(--ink); border-radius: 26px; font-size: .95rem; font-weight: 600; }
.providers > :first-child { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.providers > :hover { border-color: var(--subtle); background: var(--panel); color: var(--ink); }
.notice { color: var(--subtle); font-size: .87rem; text-align: center; margin: 16px 0 0; }
.notice:empty { margin: 0; }
#signed-in h1, #signed-in:not([hidden]) + .notice { text-align: left; }
.account-name { overflow-wrap: anywhere; margin: 12px 0 0; }
.account-detail { font-size: .84rem; color: var(--subtle); }
.account-detail summary { cursor: pointer; padding: 8px 0; }
.account-detail code { overflow-wrap: anywhere; }
.account-links { margin: 20px 0 13px; border-bottom: 1px solid var(--line); }
.account-links a { display: flex; gap: 12px; align-items: center; min-height: 54px; border-top: 1px solid var(--line); }
.account-links a:hover, footer a:hover { color: var(--accent); }
.account-links a svg:first-child { color: var(--subtle); }
.account-links a svg:last-child { margin-left: auto; width: 16px; }
.text-button { border: 0; border-radius: 12px; min-height: 44px; padding: 6px 15px; background: var(--panel); color: var(--ink); font-size: .85rem; }
footer { display: flex; justify-content: center; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); }
footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; color: var(--subtle); font-size: .8rem; }
footer a svg { width: 13px; height: 13px; }
@media (max-width: 520px) {
  header { padding: max(6px, env(safe-area-inset-top)) 14px 6px; }
  .brand { font-size: 1.05rem; }
  .brand .ui-icon { width: 27px; }
}
