#online-account { margin-block: 1.5rem; padding: 1rem; border: 1px solid var(--line, #36394a); border-radius: 16px; background: var(--surface, #191d29); }
#online-account h3 { margin-top: 0; }
#online-account .account-identity { margin: -.4rem 0 1rem; }
.account-profile-context { margin:0 0 .8rem; overflow-wrap:anywhere; }
.account-session-actions { margin-bottom:1rem; }
.account-session-actions>p { margin:.6rem 0 0; }
.account-profile-notice { padding:.85rem; margin-bottom:.8rem; border:1px solid #bba1ff65; border-radius:10px; background:#bba1ff09; overflow-wrap:anywhere; }
.account-profile-notice p { margin:.4rem 0 0; font-size:.85rem; line-height:1.6; }
.account-remembered { margin:1rem 0; padding:1rem; border:1px solid var(--border,#454052); border-radius:10px; overflow-wrap:anywhere; }
.account-remembered h4 { margin:0 0 .5rem; }
.account-remembered-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem; padding:.7rem 0; border-top:1px solid var(--border,#454052); }
.account-remembered-row>span { min-width:0; }
.account-sync-card { padding: 1rem; border: 1px solid #bba1ff65; border-radius: 10px; background: #bba1ff09; }
.account-sync-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.account-sync-state { padding: .25rem .6rem; border-radius: 6px; background: #bba1ff20; font-size: .75rem; font-weight: 700; }
.account-sync-card[data-sync=on] { border-color: #83d6b965; background: #83d6b909; }
.account-sync-card[data-sync=on] .account-sync-state { background: #83d6b920; color: #a2efd3; }
.account-sync-card>p { margin: .65rem 0; line-height: 1.6; }
.account-sync-card>p:last-child { margin-bottom: 0; }
.account-sync-options { display: grid; gap: .8rem; margin: 1rem 0; }
.account-sync-options .button { width: 100%; }
.account-sync-options p { margin: .4rem 0 0; line-height: 1.5; }
.account-help { margin-top: .7rem; }
.account-help summary,.account-settings summary { padding-block: .6rem; min-height: 44px; box-sizing: border-box; cursor: pointer; }
.account-help ol { padding-left: 1.3rem; line-height: 1.7; }
.account-help li+li { margin-top: .5rem; }
.account-access,.account-export,.account-danger { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line, #36394a); }
.account-access h4 { margin: 0 0 .6rem; }
.online-preview { display: inline-block; font-size: .6rem; padding: .25rem .4rem; border-radius: 5px; background: #512f49; color: #ffc7e9; vertical-align: middle; }
.account-signin, .account-signin form { display: grid; gap: .65rem; }
.account-signin form { border-top: 1px solid var(--line, #36394a); padding-top: 1rem; margin-top: .5rem; }
#account-google-button { display: flex; justify-content: center; width: 100%; min-width: 0; }
#account-google-button iframe { color-scheme: light; }
#online-account [data-account="google"][hidden], #online-account [data-account="google-link"][hidden] { display: none; }
#online-account input:not([type="checkbox"]) { box-sizing: border-box; width: 100%; min-width: 0; }
.account-check { display: flex; gap: .6rem; align-items: flex-start; }
.account-check input { flex: 0 0 auto; margin-top: .3rem; }
.account-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.account-actions p { width: 100%; }
.account-settings { margin-top: 1rem; }
.account-settings form { display: grid; gap: .65rem; padding-block: 1rem; }
.account-settings summary { cursor: pointer; }
.account-settings h4 { margin-bottom: 0; }
.account-settings p { margin-block: .4rem; }
#account-delete-form { border-top: 1px solid var(--line, #36394a); }
.login-key-notice, .account-conflict { border: 1px solid #da9b56; border-radius: 10px; padding: 1rem; margin-top: 1rem; }
.login-key-notice { display: grid; gap: .75rem; }
.login-key-notice h4, .account-conflict h4 { margin: 0; }
.account-sync-card .account-conflict { padding: .8rem 0 0; margin-top: .8rem; border: 0; border-top: 1px solid var(--line, #36394a); border-radius: 0; }
#online-account .button { white-space: normal; max-width: 100%; }

.account-agreement { font-size: .9rem; line-height: 1.6; }
.account-agreement a { text-decoration: underline; text-underline-offset: .15em; }
.legal-update-dialog { width: min(38rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.5rem; border: 1px solid var(--border, #626b7d); border-radius: 1rem; background: var(--surface, #171d29); color: var(--text, #f5f6fa); }
.legal-update-dialog::backdrop { background: rgba(0,0,0,.75); }
.legal-update-dialog p { overflow-wrap: anywhere; line-height: 1.6; }
.legal-update-dialog :focus-visible { outline: 3px solid #9cb7ff; outline-offset: 3px; }
.account-legal-notice { padding: .75rem; border: 1px solid var(--border, #626b7d); border-radius: .5rem; }

/* Simple native disclosure for prospective accounts; never load Google to explain benefits. */
.account-heading { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:10px; margin-bottom:9px; }
#online-account .account-heading h3 { margin:0; }
.account-why { position:relative; flex:0 0 auto; }
.account-why > summary { display:grid; place-items:center; width:32px; height:32px; cursor:pointer; list-style:none; border:1px solid #bb8cba; border-radius:50%; color:#ffd0e7; background:#34253c; font-weight:800; }
.account-why > summary::-webkit-details-marker { display:none; }
.account-why > summary:hover,.account-why[open] > summary { background:#58364f; border-color:#ffb4d8; }
.account-why-content { position:relative; width:min(100%,420px); max-width:100%; padding:14px; border:1px solid #be85ac; border-radius:11px; background:#282337; color:var(--text); }
.account-why[open] { flex:1 1 100%; order:3; }
.account-why[open] > summary { margin-left:auto; margin-bottom:9px; }
.account-why-content p { margin:7px 0; font-size:.85rem; line-height:1.65; }
.account-why-content a { display:inline-block; margin-top:6px; color:#ffc6e0; font-size:.85rem; text-decoration:underline; text-underline-offset:3px; }
.account-why > summary:focus-visible,.account-why-content a:focus-visible { outline:3px solid #ff9ecc; outline-offset:3px; }

