/* Integration additions follow the existing navy, serif headings and white cards. */
.joy-status{box-sizing:border-box;width:100%;margin:0;padding:10px 18px;text-align:center;background:#fff3d4;color:#513d15;font:14px/1.6 "Microsoft JhengHei",sans-serif;overflow-wrap:anywhere}
.joy-account{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;font:14px/1.5 "Microsoft JhengHei",sans-serif}
.joy-account button,.joy-account a{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #b7c5d9;border-radius:12px;background:white;color:#182b52;cursor:pointer;text-decoration:none;box-sizing:border-box}
body>.joy-account{width:100%;box-sizing:border-box;padding:8px 16px}
.joy-dialog,dialog[aria-label="學習進度提醒"]{box-sizing:border-box;max-width:520px!important;max-height:85dvh;overflow:auto;color:#182b52;border:0;border-radius:20px;padding:24px;font:17px/1.7 "Microsoft JhengHei",sans-serif}
dialog::backdrop{background:#182b5266} .joy-dialog h2{font-family:"Noto Serif TC","PMingLiU",serif;font-size:24px}
.joy-dialog a,.joy-dialog button,dialog[aria-label="學習進度提醒"] a,dialog[aria-label="學習進度提醒"] button{box-sizing:border-box;display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;margin:5px;border:1px solid #b7c5d9;border-radius:12px;cursor:pointer;background:#fff;color:#182b52;font:inherit;text-decoration:none}
.account-main{width:calc(100% - 32px);max-width:520px;margin:32px auto;padding:28px;box-sizing:border-box;background:white;border:1px solid #dce4ed;border-radius:24px;box-shadow:0 8px 32px #182b520d;color:#182b52}
.account-main h1,.account-heading{font-family:"Noto Serif TC","PMingLiU",serif;font-size:30px;line-height:1.5}
.account-logo{display:block;width:190px;max-width:100%;height:auto;margin:0 auto 24px}
.account-form{display:grid;gap:16px}.account-form label{display:grid;gap:6px;font-weight:700}
.account-form input,.account-form select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:10px;border:1px solid #9eafc7;border-radius:10px;background:#fff;color:#182b52;font:18px "Microsoft JhengHei",sans-serif}
.account-form button,.account-main .button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;padding:12px 18px;border:0;border-radius:12px;background:linear-gradient(120deg,#274d9a,#5544a8);color:white;font:700 17px "Microsoft JhengHei",sans-serif;cursor:pointer;text-decoration:none}
.account-main .secondary{background:#f0f4fa;color:#182b52}.account-message{min-height:26px;overflow-wrap:anywhere;line-height:1.7}.account-message[role=alert]{color:#91372f}
.account-content{width:calc(100% - 32px);max-width:900px;margin:30px auto 50px;color:#182b52}.account-panel{background:white;border:1px solid #dce4ed;border-radius:20px;padding:24px;margin:20px 0;overflow-wrap:anywhere}
.account-content button{min-height:44px;cursor:pointer}.wrong-options{display:grid;gap:10px}.wrong-options button{width:100%;text-align:left;border:1px solid #9eafc7;border-radius:12px;padding:14px;background:white;color:#182b52;font:inherit;line-height:1.6}
.wrong-explanation p{line-height:1.8}.stamp-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;margin:18px 0}.stamp{aspect-ratio:1;display:grid;place-items:center;border:1px dashed #9eafc7;border-radius:50%;color:#617189;font-size:13px}.stamp.earned{color:#185e49;background:#dff3e9;border:2px solid #278a6b;animation:joy-stamp .35s ease both}.point-total{font-size:42px;font-weight:900;margin:0}.point-detail{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e4eaf2;padding:14px 0;line-height:1.7}.point-detail time{display:block;font-size:14px;color:#435469}.point-detail strong{white-space:nowrap}
@keyframes joy-stamp{from{transform:scale(1.3);opacity:0}to{transform:scale(1);opacity:1}}
.mobile-my{min-height:44px;box-sizing:border-box}
@media(max-width:1100px){.site-header .joy-account{display:none}}
@media(max-width:600px){.account-main{padding:22px;margin:24px auto}.account-panel{padding:18px}.stamp-grid{gap:5px;grid-template-columns:repeat(5,minmax(0,1fr))}.joy-account{margin-left:auto}.account-heading{font-size:26px}}
@media(prefers-reduced-motion:reduce){.stamp.earned{animation:none}}
.pw-wrap{position:relative;display:block}.pw-wrap input{padding-right:56px!important}.account-form .pw-eye{position:absolute;top:50%;right:4px;transform:translateY(-50%);min-height:40px;width:44px;padding:0;background:transparent;border:0;border-radius:8px;color:#182b52;font-size:22px;line-height:1;cursor:pointer}.account-form .pw-eye:focus-visible{outline:2px solid #5544a8}
