/* Isolated customer account dialog and optional inline save status. */
dialog.azure-account {
  width: min(500px, calc(100% - 32px));
  max-width: 500px;
  max-height: min(92dvh, 850px);
  padding: 0;
  border: 1px solid #e1e5ef;
  border-radius: 4px;
  color: #192c49;
  background: #fff;
  box-shadow: 0 30px 100px #152a4940;
  overflow: auto;
  overscroll-behavior: contain;
  font: 14px/1.65 "Microsoft JhengHei", "PingFang TC", "Microsoft YaHei", Arial, sans-serif;
}
dialog.azure-account::backdrop { background: #12213c85; }
.account-shell { padding: 24px 34px 22px; }
.account-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-top > span { color: #62718a; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.azure-account .account-close {
  display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0;
  border: 1px solid #e6eaf1; border-radius: 50%; background: #f8f9fc; color: #506079; font-size: 24px; line-height: 1;
}
.account-close:hover { background: #eceff6; }
.account-heading { margin: 22px 0 24px; }
.account-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; color: #5167bb; background: linear-gradient(145deg, #eaf2ff, #f0eafa); border: 1px solid #dce4f5; border-radius: 15px; }
.account-mark svg { width: 24px; height: 24px; }
.azure-account .account-heading h2 { margin: 0 0 9px; color: #1b3151; font-size: 27px; line-height: 1.35; letter-spacing: -.5px; font-weight: 700; }
.account-heading > p { margin: 0; color: #69768b; font-size: 14px; line-height: 1.75; }
.account-heading > .account-email { color: #4c5d78; overflow-wrap: anywhere; }
.account-tabs { display: flex; padding: 4px; margin-bottom: 23px; border: 1px solid #e7eaf1; border-radius: 11px; background: #f4f6fa; }
.account-tabs button { flex: 1; min-height: 39px; padding: 6px 12px; border-radius: 8px; color: #718097; font-weight: 600; }
.account-tabs button[aria-pressed="true"] { background: #fff; color: #2854a9; box-shadow: 0 2px 6px #16315c12; }
.account-form { margin: 0; }
.account-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.account-field { margin: 0 0 19px; }
.account-field > label { display: block; margin-bottom: 7px; color: #314563; font-size: 13px; font-weight: 700; }
.azure-account input { display: block; width: 100%; height: 48px; padding: 11px 14px; border: 1px solid #cfd8e7; border-radius: 9px; background: #fff; color: #1b3151; font: inherit; font-size: 15px; outline-offset: 2px; box-shadow: 0 1px 2px #1e3c6504; }
.azure-account input::placeholder { color: #9aa5b6; }
.azure-account input[aria-invalid="true"] { border-color: #bc4b63; }
.account-password { position: relative; }
.account-password input { padding-right: 70px; }
.account-password button { position: absolute; top: 5px; right: 5px; min-width: 54px; height: 38px; padding: 5px 8px; border-radius: 6px; color: #596c8a; font-size: 12px; font-weight: 600; }
.account-password button:hover { background: #f0f3fa; }
.account-field > .account-hint { margin: 8px 0 0; color: #7c8799; font-size: 11px; line-height: 1.6; }
.azure-account .account-primary { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin-top: 4px; padding: 12px 18px; border: 1px solid #385abb; border-radius: 10px; background: linear-gradient(105deg, #2e5db9, #6861af); box-shadow: 0 5px 12px #365aaf1a; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.55; }
.azure-account .account-primary:hover:not(:disabled) { filter: brightness(1.07); }
.azure-account .account-primary > span:last-child:not(.account-spinner) { margin-left: auto; font-size: 18px; font-weight: 400; }
.account-notice { padding: 12px 14px; margin: 0 0 18px; border: 1px solid #ead2d9; border-radius: 9px; background: #fff5f6; color: #964355; font-size: 12px; line-height: 1.7; }
.account-notice[data-tone="success"] { background: #edf8f4; border-color: #d1e8dd; color: #366852; }
.account-notice[hidden], .account-toast[hidden] { display: none; }
.account-guest-note { margin: 19px auto 3px; color: #7b8799; text-align: center; font-size: 12px; }
.account-continue { display: block; margin: 0 auto; padding: 8px 12px; color: #4262a1; font-size: 13px; }
.account-continue > span { margin-left: 8px; }
.account-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf0f5; }
.account-footer a { color: #8a94a5; font-size: 11px; text-decoration: none; }
.account-footer a:hover { color: #3657a5; text-decoration: underline; }
.account-saved { margin: 0 0 22px; padding: 20px; border: 1px solid #e1e7f4; border-radius: 14px; background: linear-gradient(115deg, #f7faff, #f8f6fc); }
.account-saved-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #5872ae; }
.account-saved-top svg { width: 19px; height: 19px; }
.account-saved-top h3 { margin: 0; font-size: 12px; font-weight: 600; }
.account-saved > strong { display: block; color: #263e67; font-size: 22px; font-weight: 700; }
.account-saved > p { margin: 8px 0 15px; color: #7c8799; font-size: 12px; }
[data-account-sync] { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; font-size: 12px; line-height: 1.65; color: #7b8799; }
[data-account-sync][data-state="error"] { color: #a44a5d; }
[data-account-sync][data-state="success"] { color: #4d7966; }
[data-account-sync][data-state="working"] { color: #677bb1; }
[data-account-sync] button { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; padding: 2px; }
.account-guest-sync { margin-top: 13px; font-size: 11px; justify-content: center; }
.account-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 14px; }
.account-actions button { padding: 9px 0; color: #6b7890; font-size: 12px; }
.account-actions button:hover, .account-back:hover { color: #2e57ab; }
.account-back { display: block; padding: 13px 0 0; margin: 0 auto; color: #6d7c92; font-size: 12px; }
.account-toast { position: fixed; right: 24px; bottom: 24px; z-index: 300; width: max-content; max-width: min(440px, calc(100% - 40px)); padding: 15px 20px; border: 1px solid #d6e1f1; border-radius: 12px; background: #f7faff; color: #34547d; box-shadow: 0 8px 35px #172e4a20; font-size: 13px; line-height: 1.7; }
.account-spinner { width: 15px; height: 15px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: account-spin .75s linear infinite; }
.azure-account button:focus-visible, .azure-account a:focus-visible, .azure-account input:focus-visible { outline: 3px solid #a59bd5; outline-offset: 3px; }
.azure-account #account-title:focus { outline: none; }
@keyframes account-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  dialog.azure-account { width: calc(100% - 24px); max-height: 94dvh; border-radius: 19px; }
  .account-shell { padding: 20px 23px; }
  .account-top > span { font-size: 9px; letter-spacing: .65px; }
  .account-heading { margin-top: 18px; }
  .azure-account .account-heading h2 { font-size: 25px; }
  .azure-account input { font-size: 16px; }
  .account-saved { padding: 18px; }
  .account-toast { right: 20px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .account-spinner { animation: none; } }
@media print { .azure-account, .account-toast { display: none !important; } }

/* Client account uses the same restrained styling as the service pages. */
dialog.azure-account{background:#faf9f6;box-shadow:0 12px 45px #152a4920;border-radius:4px}
.account-mark{display:none}.account-top>span{letter-spacing:0;text-transform:none;font-size:12px}.account-tabs{background:transparent;padding:0;border:0;border-bottom:1px solid #dcdeda;border-radius:0}.account-tabs button{border-radius:0}.account-tabs button[aria-pressed="true"]{background:transparent;box-shadow:none;border-bottom:2px solid #233f68;color:#233f68}.azure-account input,.account-notice{border-radius:3px}.azure-account .account-primary{background:#233f68;border-color:#233f68;border-radius:3px;box-shadow:none;font-weight:500}.account-saved{background:#eeefed;border-radius:3px;margin-top:20px}.account-saved-top svg{display:none}.account-toast{border-radius:3px;box-shadow:none}
