.account-personal-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line, #e8e5eb); }
.account-personal-section h3 { margin: 0 0 8px; font-size: 17px; }
.account-personal-section > p { margin: 0 0 16px; }
.account-password-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.account-password-fields label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }
.account-password-fields label:first-child { grid-column: 1 / -1; }
.account-password-fields input, #account-video-player { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--line, #e8e5eb); border-radius: 9px; padding: 10px 12px; background: var(--paper, #fff); color: inherit; font: inherit; font-size: 16px; }
.account-password-actions, .account-device-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.account-settings-status { min-height: 1.5em; margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
.account-settings-status[data-error="true"] { color: #b64453; }
.account-devices-list { list-style: none; margin: 16px 0 0; padding: 0; }
.account-device { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line, #e8e5eb); }
.account-device-details { flex: 1; min-width: 0; display: grid; gap: 5px; overflow-wrap: anywhere; }
.account-device-details strong { font-size: 13px; }
.account-device-details span { font-size: 11px; }
.account-device-current { font-size: 11px; white-space: nowrap; font-weight: 600; color: var(--accent, #b52e54); }
.account-device .button { flex: none; }
#account-video-player {
  width: min(100%, 225px); height: 44px; appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 5px 5px; background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-repeat: no-repeat;
}
.account-player-choice { flex-wrap: wrap; }
.account-player-choice .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.external-video-dialog { width: min(470px, calc(100% - 36px)); max-height: calc(100% - 36px); overflow: auto; border: 1px solid var(--line, #e8e5eb); border-radius: 18px; padding: 26px; background: var(--paper, #fff); color: var(--ink, #222); }
.external-video-dialog::backdrop { background: #1119; }
.external-video-dialog h2 { margin: 0 0 10px; font-size: 22px; }
.external-video-dialog p { font-size: 13px; line-height: 1.6; }
.external-video-name { overflow-wrap: anywhere; }
.external-video-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.external-video-actions .button { min-height: 44px; }
@media (max-width: 600px) {
  .account-password-fields { grid-template-columns: minmax(0,1fr); }
  .account-device { gap: 10px; flex-wrap: wrap; }
  .account-device-details { flex-basis: 60%; }
  #account-video-player { width: 100%; }
  .account-player-choice { align-items: stretch; }
}
@media (min-width: 761px) {
  body.tv-mode .account-personal-section h3 { font-size: 21px; }
  body.tv-mode .account-password-fields label, body.tv-mode .account-device-details strong { font-size: 17px; }
  body.tv-mode .account-device-details span, body.tv-mode .account-settings-status, body.tv-mode .account-device-current { font-size: 14px; }
}

.account-password-kind { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.account-password-kind legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.account-password-kind-options { display: flex; flex-wrap: wrap; gap: 10px; }
.account-password-kind label { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line, #e8e5eb); border-radius: 9px; font-size: 13px; cursor: pointer; }
.account-password-kind input { width: 17px; height: 17px; margin: 0; accent-color: var(--media-accent, #c91839); }
.account-password-kind input:focus-visible { outline: 3px solid var(--media-focus, #c91839); outline-offset: 3px; }
#account-password-kind-help { margin: 9px 0 0; font-size: 12px; line-height: 1.6; }
body.tv-mode .account-password-kind label { min-height: 48px; font-size: 17px; }
