/* 登入／取名／綁定／準備好：樣式對齊 proposals 核准的示意頁（login-mock），不含示意標籤。 */
html[data-auth-flow="1"] main > .screen:not(#auth-flow),
html[data-auth-flow="1"] #sync-status { display: none !important; }
#auth-flow {
  display: none; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto;
  background: #d7e6c9; border: 3px solid #698975; border-image: none; border-radius: 14px;
}
#auth-flow .auth-view { flex: none; display: flex; flex-direction: column; }
#auth-flow .auth-view[hidden] { display: none !important; }
#auth-flow .panel { max-height: none; overflow: visible; }

html[data-auth-flow="1"] #auth-flow,
#auth-flow.is-on { display: flex; }
#auth-flow .lead { margin: 0 0 12px; text-align: center; color: #3a5a4d; font-weight: 700; }
#auth-flow .panel {
  margin-top: 4px; padding: 14px 12px 12px; background: #fff4d6; color: #2b2140;
  border: 3px solid #1b1430; border-radius: 10px; box-shadow: 4px 4px 0 rgba(0,0,0,.28);
}
#auth-flow .panel h2 { margin: 0 0 8px; font-size: 1.05rem; text-align: center; }
#auth-flow .panel p { margin: 0 0 10px; font-size: .88rem; }
#auth-flow .hint { margin: 10px 0 0; font-size: .78rem; color: #5b4a3a; text-align: center; line-height: 1.45; }
#auth-flow .auth-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
#auth-flow .auth-confirm, #auth-flow .provider, #auth-flow .back, #auth-flow .ghost {
  min-height: 44px; width: 100%; padding: 10px 16px; font-weight: 700; border-radius: 8px;
}
#auth-flow .auth-confirm { background: #325247; color: #fff; border: 3px solid #1b1430; box-shadow: 3px 3px 0 rgba(0,0,0,.22); }
#auth-flow .provider.google { background: #fff; color: #2b2140; border: 3px solid #1b1430; box-shadow: 3px 3px 0 rgba(0,0,0,.22); }
#auth-flow .provider.line { background: #06c755; color: #fff; border: 3px solid #1b1430; box-shadow: 3px 3px 0 rgba(0,0,0,.22); }
#auth-flow .provider[disabled], #auth-flow .provider.is-soon { opacity: .55; cursor: default; box-shadow: none; }
#auth-flow .provider.fake { background: #ffe9a8; color: #2b2140; border: 3px dashed #1b1430; box-shadow: 3px 3px 0 rgba(0,0,0,.18); }
#auth-flow .back { background: #edf4df; color: #233a36; border: 1px solid #819c81; }
#auth-flow .ghost { background: transparent; color: #3a5a4d; border: 0; min-height: 36px; font-size: .86rem; }
#auth-flow .soon { display: block; margin-top: 2px; font-size: .7rem; font-weight: 700; opacity: .9; }
#auth-flow label { display: block; margin: 8px 0 4px; font-size: .86rem; font-weight: 700; }
#auth-flow input[type=text] {
  width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; color: #2b2140;
  background: #fffaf0; border: 3px solid #1b1430; border-radius: 0;
}
#auth-flow .consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: .78rem; color: #3a5a4d; }
#auth-flow .consent input { margin-top: 3px; flex: none; }
#auth-flow .badge { display: inline-block; margin-top: 8px; padding: 2px 8px; border: 2px solid #1b1430; background: #e8efd9; font-size: .72rem; font-weight: 700; }
#auth-flow .auth-view[hidden] { display: none !important; }
#auth-flow .footer-note { margin: 12px 0 0; text-align: center; font-size: .72rem; color: #6b7f74; }
#auth-flow .auth-error { margin: 0 0 10px; padding: 8px 10px; background: #fde8e4; border: 2px solid #1b1430; color: #7a2a22; font-size: .82rem; }
#auth-flow .auth-error:empty { display: none; }

#auth-flow .footer-links { margin: 6px 0 0; text-align: center; font-size: .72rem; }
#auth-flow .footer-links a { color: #1f4d3a; font-weight: 700; }
.help-legal { margin: 8px 0 0; text-align: center; font-size: .78rem; }
.help-legal a { color: #1f4d3a; font-weight: 700; }
