/* NEXELOGIC 帳號網站 */
:root {
  --brand: #0F6E74; --brand-strong: #0A5459; --brand-soft: #E3F1F1;
  --ink: #15232B; --ink-2: #4E5F67; --ink-3: #7C8B92;
  --bg: #F3F6F6; --card: #fff; --line: #D8E1E3;
  --bad: #B3261E; --bad-soft: #FBE7E5; --ok: #1E7F4F; --ok-soft: #E2F3EA;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4FB3B8; --brand-strong: #74C7CB; --brand-soft: #173336;
    --ink: #E4ECEE; --ink-2: #A9B8BD; --ink-3: #7F8F95;
    --bg: #0F1A1E; --card: #16242A; --line: #2A3B42;
    --bad: #F08A82; --bad-soft: #3F1A18; --ok: #5CC891; --ok-soft: #133524;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
.acct { max-width: 440px; margin: 0 auto; padding: 40px 16px 32px; }
.acct-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 18px; margin-bottom: 24px; }
.acct-brand img { border-radius: 10px; }
.acct-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 14px; }
.acct-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.acct-lead { margin: 0 0 18px; color: var(--ink-2); }
.acct-muted { color: var(--ink-3); font-size: 14px; margin: 0 0 14px; }
.acct-center { text-align: center; }
.acct-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); font-size: 26px; }
.acct-field { margin-bottom: 16px; }
.acct-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.acct-field input, .acct-field select { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; }
.acct-field input:focus, .acct-field select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.acct-field small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.has-error input { border-color: var(--bad); }
.acct-error { color: var(--bad); font-size: 14px; margin: 6px 0 0; }
.acct-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 15px; }
.acct-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.acct-check a, .acct-switch a, .acct-links a, .acct-back { color: var(--brand-strong); }
.acct-btn { display: inline-block; width: 100%; padding: 13px 16px; font: inherit; font-weight: 700; text-align: center;
  color: #fff; background: var(--brand-strong); border: none; border-radius: 10px; cursor: pointer; text-decoration: none; }
.acct-btn:hover { filter: brightness(1.08); }
.acct-btn.is-secondary { background: var(--brand-soft); color: var(--brand-strong); }
.acct-btn.is-danger { background: var(--bad); }
@media (prefers-color-scheme: dark) { .acct-btn { color: #0F1A1E; } .acct-btn.is-danger { color: #fff; background: #B3261E; } }
.acct-btn:focus-visible, .acct-link:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.acct-alert { background: var(--bad-soft); color: var(--bad); padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; }
.acct-ok { background: var(--ok-soft); color: var(--ok); padding: 10px 14px; border-radius: 10px; margin: 12px 0 0; }
.acct-links { text-align: center; margin: 14px 0 0; font-size: 15px; }
.acct-switch { text-align: center; color: var(--ink-2); margin: 18px 0 0; }
.acct-link { background: none; border: none; font: inherit; color: var(--brand-strong); cursor: pointer; text-decoration: underline; padding: 4px; }
.acct-foot { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 28px; }
.acct-who { display: flex; align-items: center; gap: 14px; }
.acct-who h1 { font-size: 20px; margin: 0; }
.acct-who .acct-muted { margin: 0; }
.acct-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 20px; }
.acct-section { padding: 0; }
.acct-section > summary { padding: 18px 24px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.acct-section > summary::-webkit-details-marker { display: none; }
.acct-section > summary::after { content: "＋"; color: var(--ink-3); }
.acct-section[open] > summary::after { content: "－"; }
.acct-section > :not(summary) { margin-left: 24px; margin-right: 24px; }
.acct-section > form { padding-bottom: 24px; }
.acct-danger > summary { color: var(--bad); }
.acct-back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 600; }

/* 服務條款、隱私權政策 */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 40px; }
.legal-tabs { display: flex; gap: 6px; justify-content: center; margin: 0 0 18px; }
.legal-tabs a { padding: 8px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.legal-tabs a[aria-current=page] { background: var(--brand-soft); color: var(--brand-strong); }
.legal-doc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 20px; }
.legal-doc h1 { font-size: 24px; margin: 0 0 4px; }
.legal-date { color: var(--ink-3); font-size: 14px; margin: 0 0 22px; }
.legal-doc h2 { font-size: 19px; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-doc h3 { font-size: 16px; margin: 20px 0 6px; }
.legal-doc p, .legal-doc li { color: var(--ink); font-size: 15.5px; line-height: 1.8; }
.legal-doc ol, .legal-doc ul { padding-left: 1.4em; margin: 6px 0 12px; }
.legal-doc li { margin: 2px 0; }
.legal-doc a { color: var(--brand); }
.legal-contact { background: var(--bg); border-radius: 10px; padding: 12px 16px; margin: 10px 0 14px; }
.legal-contact p { margin: 2px 0; }
@media (max-width: 560px) { .legal-doc { padding: 20px 16px 12px; border-radius: 12px; } .legal-doc h1 { font-size: 21px; } }
@media print { .legal-tabs, .acct-brand, .acct-foot { display: none; } .legal-doc { border: none; padding: 0; } }

/* ---- 品牌列 ---- */
.acct-brand-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.acct-brand-sub { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.acct-tagline { text-align: center; color: var(--ink-2); margin: -12px 0 20px; font-size: 15px; }

/* ---- 產品外觀：依各產品自己的介面 ---- */
/* NEXE-restaurant：米白底、森林綠、圓角大（ui/static/ui/nexelink.css） */
[data-theme=restaurant] {
  --brand: #325146; --brand-strong: #283F37; --brand-soft: #E6EEE9;
  --ink: #1F1F1F; --ink-2: #3D3D3A; --ink-3: #6B6B68;
  --bg: #F8F6F1; --card: #FFFFFF; --line: #E8E5DF;
  --bad: #9A3D12; --bad-soft: #FBEDE4;
}
[data-theme=restaurant] .acct-card { border-radius: 20px; box-shadow: 0 6px 20px rgba(31, 31, 31, .08); border-color: #F1EFEA; }
[data-theme=restaurant] .acct-btn { border-radius: 14px; background: var(--brand); }
[data-theme=restaurant] .acct-btn:hover { background: var(--brand-strong); filter: none; }
[data-theme=restaurant] .acct-field input { border-radius: 10px; background: #FAF8F4; }
[data-theme=restaurant] body { background: linear-gradient(180deg, #E9DFC4 0, #F8F6F1 220px); }
@media (prefers-color-scheme: dark) {
  [data-theme=restaurant] { --bg: #1A1C1A; --card: #232623; --line: #34382F; --ink: #F0EEE8; --ink-2: #C9C6BE; --ink-3: #9A968C;
    --brand: #8DB5A3; --brand-strong: #A9CCBB; --brand-soft: #22302A; }
  [data-theme=restaurant] body { background: var(--bg); }
  [data-theme=restaurant] .acct-btn { background: #325146; color: #fff; }
}

/* NEXE-work：冷灰紙張、團隊藍、俐落（web/styles.css） */
[data-theme=work] {
  --brand: #2F6FED; --brand-strong: #2459C8; --brand-soft: #E5EDFD;
  --ink: #18202B; --ink-2: #3E4856; --ink-3: #5A6574;
  --bg: #F2F4F7; --card: #FFFFFF; --line: #D9DFE6;
  --bad: #B93524; --bad-soft: #FBE6E2; --ok: #1F7A55; --ok-soft: #E1F3EA;
}
[data-theme=work] .acct-card { border-radius: 14px; box-shadow: 0 1px 2px rgba(24, 32, 43, .06), 0 8px 24px rgba(24, 32, 43, .08); }
[data-theme=work] .acct-btn, [data-theme=work] .acct-field input { border-radius: 9px; }
[data-theme=work] .acct-btn { background: var(--brand); }
@media (prefers-color-scheme: dark) {
  [data-theme=work] { --bg: #11161D; --card: #182029; --line: #2A3542; --ink: #E7ECF2; --ink-2: #B8C2CE; --ink-3: #97A3B2;
    --brand: #7EA8FF; --brand-strong: #A3C0FF; --brand-soft: #1B2840; --bad: #F07A6A; --bad-soft: #3A1E1A; }
  [data-theme=work] .acct-btn { background: #2F6FED; color: #fff; }
}

/* NEXE-artist：暖紙色、Syne 標題、音樂／美術／舞蹈三色（src/app/globals.css） */
[data-theme=artist] {
  --brand: #161616; --brand-strong: #161616; --brand-soft: #ECE8E1;
  --ink: #161616; --ink-2: #3F3C38; --ink-3: #5B5853;
  --bg: #F5F3EF; --card: #FBFAF7; --line: #DDD8D0;
  --bad: #8A2F1C; --bad-soft: #F6DCD6; --ok: #1F5F55; --ok-soft: #D6ECE6;
}
[data-theme=artist] .acct-stripe { position: fixed; inset: 0 0 auto 0; display: flex; height: 6px; z-index: 1; }
[data-theme=artist] .acct-stripe i { flex: 1; }
[data-theme=artist] .acct-stripe i:nth-child(1) { background: #2B4C7E; }
[data-theme=artist] .acct-stripe i:nth-child(2) { background: #A9472E; }
[data-theme=artist] .acct-stripe i:nth-child(3) { background: #8F6B14; }
[data-theme=artist] .acct-brand-name, [data-theme=artist] .acct-card h1 { font-family: "Syne", "Avenir Next", system-ui, sans-serif;
  font-weight: 800; letter-spacing: -.5px; }
[data-theme=artist] .acct-card h1 { font-size: 26px; }
[data-theme=artist] .acct-tagline { font-family: "Syne", "Avenir Next", system-ui, sans-serif; font-weight: 700; letter-spacing: .12em;
  font-size: 13px; color: var(--ink-3); }
[data-theme=artist] .acct-card { border-radius: 16px; }
[data-theme=artist] .acct-btn { border-radius: 999px; background: #161616; color: #F5F3EF; }
[data-theme=artist] .acct-btn.is-secondary { background: var(--brand-soft); color: var(--ink); }
[data-theme=artist] .acct-field input { border-radius: 12px; }
[data-theme=artist] .acct-check a, [data-theme=artist] .acct-switch a, [data-theme=artist] .acct-links a { color: #A9472E; }
@media (prefers-color-scheme: dark) {
  [data-theme=artist] { --bg: #121212; --card: #1A1A19; --line: #2E2C29; --ink: #F2EFEA; --ink-2: #CFCAC2; --ink-3: #A8A39B;
    --brand: #F2EFEA; --brand-strong: #F2EFEA; --brand-soft: #2A2826; }
  [data-theme=artist] .acct-btn { background: #F2EFEA; color: #121212; }
  [data-theme=artist] .acct-check a, [data-theme=artist] .acct-switch a, [data-theme=artist] .acct-links a { color: #E08A6E; }
}

/* NEXELOGIC 官網：淺灰藍底、深藍＋青綠、Manrope、膠囊按鈕（NEXELOGIC-web/src/assets/css/site.css） */
[data-theme=website] {
  --brand: #2C5486; --brand-strong: #244874; --brand-soft: #EDF1F6;
  --ink: #0F1E33; --ink-2: #33445C; --ink-3: #526279;
  --bg: #F5F7FA; --card: #FFFFFF; --line: #DCE3EC;
  --bad: #C63B3B; --bad-soft: #FBE8E8; --ok: #1E8A55; --ok-soft: #E3F3EA;
}
[data-theme=website] body { font-family: Manrope, "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  background: radial-gradient(1200px 420px at 50% -120px, rgba(98, 178, 188, .22), transparent 70%), #F5F7FA; }
[data-theme=website] .acct-brand img.is-wide { border-radius: 0; width: 56px; height: 35px; }
[data-theme=website] .acct-brand-name { font-weight: 800; letter-spacing: .02em; }
[data-theme=website] .acct-card { border-radius: 20px; border-color: #DCE3EC; box-shadow: 0 10px 30px rgba(15, 30, 51, .06); }
[data-theme=website] .acct-card h1 { font-weight: 800; }
[data-theme=website] .acct-btn { border-radius: 999px; min-height: 48px; background: var(--brand); }
[data-theme=website] .acct-btn:hover { background: var(--brand-strong); filter: none; }
[data-theme=website] .acct-field input { border-radius: 12px; border-width: 1.5px; }
[data-theme=website] .acct-field input:focus { outline-color: #62B2BC; border-color: #2B8E9B; }
[data-theme=website] .acct-foot a { color: var(--brand); text-decoration: none; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  [data-theme=website] { --bg: #0A1320; --card: #101C2D; --line: #22344B; --ink: #E7EEF7; --ink-2: #C3D0E0; --ink-3: #9AABC2;
    --brand: #7FA8DE; --brand-strong: #9BBDE8; --brand-soft: #16253A; }
  [data-theme=website] body { background: radial-gradient(1200px 420px at 50% -120px, rgba(108, 195, 205, .16), transparent 70%), #0A1320; }
  [data-theme=website] .acct-btn { background: #2C5486; color: #fff; }
  [data-theme=website] .acct-brand img.is-wide { filter: brightness(1.6); }
}
