:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Zen Hei", sans-serif;
  color: #252825;
  background: #f6f6f3;
  color-scheme: light;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  max-width: 1024px;
  margin: auto;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; color: #435d52; flex: none; }
a { color: inherit; text-underline-offset: 4px; }
.brand, .action-link { text-decoration: none; }
main { max-width: 688px; margin: 42px auto 80px; padding: 0 24px; }
.card { padding: 38px 40px; border: 1px solid #e2e5de; border-radius: 16px; background: #fff; }
.loading-panel { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.loading-spinner { width: 32px; height: 32px; border: 3px solid #e2e8df; border-top-color: #435d52; border-radius: 50%; animation: loading-turn .8s linear infinite; }
@keyframes loading-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }
h1 { font-size: 29px; line-height: 1.4; letter-spacing: -.6px; margin: 0 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 19px; line-height: 1.5; margin: 0 0 12px; }
p { margin: 12px 0; color: #626862; line-height: 1.8; font-size: 15px; }
.intro { margin-top: 0; }
form { display: grid; gap: 24px; margin-top: 30px; }
label { display: grid; gap: 9px; font-size: 15px; font-weight: 600; }
input {
  min-width: 0;
  width: 100%;
  padding: 14px;
  border: 1px solid #cdd2cb;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
input::placeholder { color: #858b84; }
input:hover { border-color: #9ca79d; }
input:focus { border-color: #435d52; }
button, .action-link {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #cdd2cb;
  border-radius: 8px;
  background: #fff;
  color: #303b33;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
}
button:hover, .action-link:hover { background: #f0f3ee; border-color: #a8b1a7; }
.primary { background: #293e34; border-color: #293e34; color: #fff; }
.primary:hover { background: #3b5446; border-color: #3b5446; }
.quiet { background: transparent; border-color: transparent; color: #626862; font-size: 14px; font-weight: 400; padding: 10px 12px; }
.quiet:hover { background: #edf0e9; border-color: transparent; color: #252825; }
button:disabled { opacity: .55; cursor: default; }
.full-width { width: 100%; }
.field-help, .form-note, .muted { font-size: 13px; color: #6d736c; font-weight: 400; line-height: 1.7; }
.form-note { margin: 18px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 30px -8px; counter-reset: step; }
.steps li { position: relative; padding: 38px 4px 0; color: #777e76; font-size: 13px; line-height: 1.6; text-align: center; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: calc(50% - 13px); display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #d4d9d0; border-radius: 50%; background: #fff; font-size: 12px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 20px); width: calc(100% - 40px); height: 1px; background: #dde2d9; }
.steps .complete::before { content: "✓"; background: #edf3ed; color: #365c41; border-color: #ccdccc; }
.steps .current { font-weight: 600; color: #293e34; }
.steps .current::before { color: #fff; background: #293e34; border-color: #293e34; }
.estimate { padding: 18px 20px; background: #f2f5f0; border-radius: 10px; margin: 24px 0; }
.estimate p { margin: 6px 0; font-size: 13px; }
.estimate .eta { font-size: 23px; line-height: 1.4; font-weight: 600; color: #293e34; }
.task-section { border-top: 1px solid #e6e9e2; padding-top: 26px; margin-top: 26px; }
.help { margin-top: 16px; font-size: 14px; }
.help p { font-size: 14px; }
/* Match the App controls shown in the login guide; these are instructions. */
.ps-app-path { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 8px; list-style: none; padding: 0; margin: 16px 0; color: #17191a; font-size: 14px; line-height: 1.6; }
.ps-app-path li, .ps-app-step { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ps-app-path li { gap: 8px; }
.ps-app-icon { display: block; flex: none; width: 21px; height: 21px; }
.ps-app-settings { color: #006eab; }
.ps-app-console { width: 21px; height: 27px; color: #000; }
.ps-app-arrow { color: #737973; }
.ps-app-manual { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border: 1px solid #77aecb; border-radius: 999px; background: #f1eff0; color: #096ba6; font-size: 15px; font-weight: 700; line-height: 1.6; }
.ps-app-manual .ps-app-icon { width: 21px; height: 18px; }
summary { cursor: pointer; color: #555f54; padding: 6px 0; line-height: 1.6; }
summary:hover { color: #293e34; }
.refresh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 8px; }
.refresh-row p { margin: 0; }
.refresh-row button { flex-shrink: 0; }
.order-meta { border-top: 1px solid #e6e9e2; padding-top: 12px; font-size: 13px; }
.order-code, .digest { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 12px; }
.center { text-align: center; }
.action-link { display: inline-block; }
.cancel-action { display: block; margin: 18px auto 0; text-decoration: underline; text-underline-offset: 4px; }
.preparation-note { padding: 12px 15px; background: #f6f6f1; border-radius: 8px; font-size: 14px; margin: 20px 0; }
/* Keep the console-style QR and digits recognizable during Sony sign-in. */
.qr-frame { width: 224px; height: 224px; max-width: 100%; margin: 22px auto 0; border: 2px solid #525a60; border-radius: 11px; overflow: hidden; background: #202326; }
.authorization-qr { display: block; width: 100%; height: 100%; }
.console-authorization { margin: 22px auto 14px; padding: 14px 12px 10px; width: 258px; max-width: 100%; background: #202326; border-radius: 4px; text-align: center; }
.console-authorization .qr-frame { margin: 0 auto; }
.console-authorization .code { margin: 6px 0 0; color: #c9cbcc; font-family: Arial, "Helvetica Neue", sans-serif; font-size: 21px; font-weight: 400; line-height: 1.4; letter-spacing: 0; font-variant-numeric: tabular-nums; user-select: all; }
.console-authorization.code-only { background: #f2f5f0; width: 100%; padding: 24px 12px; border-radius: 10px; }
.console-authorization.code-only .code { color: #293e34; font-size: clamp(24px, 6vw, 36px); letter-spacing: .1em; margin: 0; overflow-wrap: anywhere; }
.authorization-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
#code-expiry, #copy-status { text-align: center; }
#code-expiry { color: #435d52; font-size: 14px; font-variant-numeric: tabular-nums; }
dl { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 14px; line-height: 1.7; margin: 20px 0; }
dt { color: #6d736c; }
dd { margin: 0; overflow-wrap: anywhere; }
#message { color: #923d30; border: 1px solid #ead6cd; background: #fff7f2; padding: 14px 18px; border-radius: 10px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6e9885; outline-offset: 3px; }
@media (max-width: 520px) {
  header { padding: 18px 20px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-mark { width: 27px; height: 27px; }
  main { margin: 22px auto 48px; padding: 0 16px; }
  .card { padding: 26px 22px; border-radius: 12px; }
  h1 { font-size: 25px; }
  p { font-size: 14px; }
  form { gap: 22px; margin-top: 26px; }
  .steps { margin: 26px -8px; }
  .estimate { padding: 16px; }
  .estimate .eta { font-size: 22px; }
  .authorization-actions > * { width: 100%; }
  .console-authorization { width: 246px; }
  dl { grid-template-columns: 76px 1fr; gap: 10px; font-size: 13px; }
}

.mail-panel { overflow-wrap: anywhere; }
.mail-panel form { gap: 14px; margin-top: 20px; }
.mail-panel fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.mail-panel legend { font-size: 14px; margin-bottom: 12px; color: #626862; }
.mail-choice { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 400; }
.mail-choice input { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: #293e34; }
#mail-other { margin-top: 16px; }
#mail-other label { margin-bottom: 8px; }
#mail-address-help, #mail-quota { font-size: 13px; margin: 4px 0; }
#mail-form p { margin-bottom: 0; }
#mail-send { justify-self: start; }
#mail-sent { font-size: 14px; }
#mail-state { font-size: 13px; }

.email-providers{font-size:13px;color:#626862}.email-providers summary{cursor:pointer;padding:4px 0}.email-providers p{line-height:1.9;overflow-wrap:anywhere;margin:8px 0 16px}

.multi-account-consent{margin:1.5rem 0;padding:1.25rem;background:#f3f5f0;border:1px solid #d5ddd3;border-radius:14px;text-align:left}.multi-account-consent h3{margin-top:0}.multi-account-consent li{margin:.6rem 0}.consent-check{display:flex;align-items:flex-start;gap:.65rem;line-height:1.6;cursor:pointer}.consent-check input{width:1.1rem;height:1.1rem;flex:0 0 auto;margin-top:.25rem;accent-color:#29473a}

.account-summary{margin:1.5rem 0}.account-summary h2{font-size:1.1rem}.account-cards{display:flex;flex-wrap:wrap;gap:1rem}.account-card{display:flex;align-items:center;gap:.8rem;min-width:0;flex:1 1 210px;padding:1rem;border:1px solid #dce2d9;border-radius:14px}.account-avatar{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#edf1e9;color:#29473a;font-size:1.4rem}.account-avatar img{display:block;width:64px;height:64px}.account-card p{margin:.15rem 0;overflow-wrap:anywhere}.account-name{font-weight:600}
.window-duration{white-space:nowrap}
.environment-banner{padding:.65rem 1rem;text-align:center;background:#fff0c7;color:#684b0b;font-size:.9rem;font-weight:600}
.page-update{margin:0;padding:.65rem 1rem;text-align:center;background:#edf2ec;color:#29473a;font-size:.9rem}
