/* 網頁版官網的「註冊／登入」與「我的市集」（/account）：版面、按鈕、表單、徽章共用 /creator-join/join.css（和網頁加入市集長得一樣），這裡只放這頁多出來的東西。
   沒有內嵌樣式、沒有外部圖：頭像是媒體閘道的簽名網址（只在登入後的清單裡），載不出來就退回名稱的第一個字。 */

/* ---------- 登入按鈕：Google 白底附標誌、Apple 黑底，和一般網站的登入鈕長得一樣，比較放心 ---------- */
#signin .buttons { margin-top: 16px; }
#signin .google-btn, #signin .apple-btn { margin-top: 0; }
.apple-btn { width: 100%; min-height: 50px; padding: 12px; background: #000; color: #fff; border-color: #000; box-shadow: 0 5px 0 #4a4a52; font-weight: 600; }
.apple-btn:hover { background: #222; color: #fff; }
.apple-btn:active:not(:disabled) { box-shadow: 0 2px 0 #4a4a52; }
.apple-btn .logo { flex: none; }
#signin-error { margin-top: 12px; text-align: center; }

/* 舊帳號用 Email 登入。 */
input[type="email"], input[type="password"] { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; }
input[type="email"]:focus, input[type="password"]:focus { border-color: var(--accent); outline: none; }
#email-toggle { margin-top: 8px; }
#signin-email { margin-top: 6px; }
#signin-email .ghost { width: 100%; }

/* 補資料的同意條款：和創作者加入頁落地頁的勾選框同一種樣子（它在 .consent 上已經有）。 */
#agree-row, #signup-agree-row { margin-top: 0; }
#agree-row a, #signup-agree-row a { color: var(--accent-d); }

/* 用 Email 註冊（signup.js）：入口和 Google 的白底按鈕同一種；表單沿用上面的輸入框與下面共用的表單樣式；驗證方塊是 Cloudflare 的框架，這裡只留位置。 */
#signin .email-btn { margin-top: 0; width: 100%; min-height: 50px; padding: 12px; background: #fff; color: var(--ink); border-color: var(--line-d); font-weight: 600; box-shadow: 0 5px 0 var(--line); }
#signin .email-btn:hover { background: var(--tint); color: var(--ink); }
#signin .email-btn:active:not(:disabled) { box-shadow: 0 2px 0 var(--line); }
#signin .email-btn .logo { flex: none; }
#signup form { margin-top: 6px; }
.human-box { min-height: 65px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.human-box:empty { min-height: 0; }
.fake-turnstile { width: 100%; max-width: 300px; min-height: 65px; padding: 8px 14px; border: 1.5px solid var(--line-d); border-radius: 8px; background: var(--tint); color: var(--body); font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; }
#signup-back { margin-top: 4px; }
/* 驗證頁：Email 方塊（沿用完成頁的綠色方塊）、一行狀態、按鈕。 */
#verify .account-box { margin-top: 6px; }
#verify .account-value { font-size: 17px; }
#verify .hint, #verify .error { margin: 10px 0 0; }
#verify .buttons { margin-top: 14px; }
#verify .link { margin-top: 2px; }
#verify-restart { margin-top: 10px; padding: 14px 16px 6px; border-radius: 18px; background: var(--tint); }
#verify-restart h2 { margin: 0; }
#verify-restart .hint { margin: 0; }
#verify-restart-confirm { width: 100%; }

/* ---------- 已登入：帳號與登出鈕（最上面，一眼看得到）、市集清單、下載 ---------- */
/* 只有這一頁在登入之後的畫面用小一點的吞吞，清單才不會被大圖擠到下面。 */
#page.compact .who:has(.hero:not(.avatar):not([hidden])) .hero { width: 84px; height: 84px; }
#page.compact .who:has(.hero:not(.avatar):not([hidden])) h1 { font-size: 21px; }

.account-bar { margin-top: 14px; padding: 10px 12px 10px 16px; border-radius: 18px; background: var(--green-bg); color: var(--green); display: flex; align-items: center; gap: 12px; }
.account-who { min-width: 0; flex: 1 1 auto; }
.account-bar .code-label { text-align: left; }
.account-bar .account-value { text-align: left; font-size: 15px; }
#account-signout { flex: none; min-height: 44px; margin: 0; padding: 8px 18px; font-size: 14px; box-shadow: 0 3px 0 var(--line); }
#account-signout:active:not(:disabled) { box-shadow: 0 1px 0 var(--line); }
#account-error { margin-top: 10px; text-align: center; }

/* 我加入的市集：只是清單（不能點），每一列頭像或名稱第一個字、名稱、公開／祕密。 */
.my-markets { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.market-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--tint); }
.market-row .avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--tint-on); color: var(--accent-d);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; line-height: 1; }
.market-row .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.market-row .avatar.has-image { color: transparent; }
.market-row .name { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.market-row .badge { flex: none; }

/* 沒有加入任何市集：一行說明＋一顆「找市集」。 */
.no-markets { margin-top: 18px; text-align: center; }
.no-markets-text { margin: 0; font-size: 15px; color: var(--body); }
.no-markets .button { margin-top: 12px; width: 100%; }

/* 下載 App：商店徽章的樣子（黑底、左邊商店標誌、右邊兩行字）。
   手機上自己那一邊是主按鈕（黑底），另一邊加 ghost 改白底、排在後面；電腦兩個都是黑底。 */
#account .buttons.row.stores { margin-top: 18px; gap: 12px; }
.store { flex: 1 1 136px; max-width: 210px; min-height: 54px; padding: 7px 10px; gap: 8px; border-radius: 12px; border: 1px solid #a6a6a6; background: #000; color: #fff;
  box-shadow: none; margin-bottom: 0; font-weight: 600; }
.store:hover { background: #1f1f22; color: #fff; }
.store:active { transform: none; box-shadow: none; }
.store.ghost { order: 1; background: #fff; color: #000; border-color: #000; }
.store.ghost:hover { background: #f2f2f5; color: #000; }
.store-mark { flex: none; width: 24px; height: 24px; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.15; }
.store-text strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.store-text small { margin-top: 2px; font-size: 11px; font-weight: 500; opacity: .88; white-space: nowrap; }

#retry button { width: 100%; }

/* ---------- 我的主頁（2026-12-01）：登入後有公開主頁才顯示的一列，頭像或名字第一個字、名字、「我的主頁」 ---------- */
.self-link { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--tint); color: var(--ink); text-decoration: none; }
.self-link[hidden] { display: none; }
.self-link:hover { border-color: var(--accent); }
.self-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.self-link .avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--tint-on); color: var(--accent-d);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; line-height: 1; }
.self-link .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.self-link .avatar.has-image { color: transparent; }
.self-text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.self-text strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.self-text small { margin-top: 2px; font-size: 12px; color: var(--body); }
.self-link::after { content: "\203A"; flex: none; font-size: 22px; line-height: 1; color: var(--accent-d); }
/* 登入方式的順序和 App 一致：按鈕在上（含用 Email 註冊），「忘記用哪種方式登入？」與查詢表單在按鈕下面。 */
.buttons > #external-signin:not([hidden]) { display: contents; }
.buttons > #signup-open { order: 1; }
#external-signin > :not(.provider) { order: 2; }
