:root{color-scheme:light;--ink:#123047;--teal:#0e7469;--muted:#526b79;--line:#dce8e6;--bg:#f4f8f7}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:15px/1.5 system-ui,"Noto Sans TC","Microsoft JhengHei",sans-serif}a{color:#0b665d;text-underline-offset:3px}a:hover{text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #bc7900;outline-offset:3px}button,input{font:inherit}button{background:var(--teal);color:#fff;border:0;border-radius:8px;padding:10px 18px;cursor:pointer;font-weight:700}button:hover{background:#09594f}button:disabled{opacity:.5;cursor:default}.public{background:#fff;padding:4px}.board{max-width:380px;margin:0 auto;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.board-head{position:relative;background:#eef6f2;padding:10px 14px 9px;border-bottom:1px solid var(--line)}.eyebrow{display:block;font-size:10px;letter-spacing:1.2px;color:#49675c;font-weight:700}.board h1{font-size:16px;line-height:1.35;margin:3px 48px 0 0;font-weight:750}.board h1 span{color:var(--teal);font-size:17px}.top-five{position:absolute;right:14px;top:34px;font-size:10px;font-weight:800;letter-spacing:.6px;border:1px solid #aacabd;border-radius:20px;padding:2px 7px;color:#32624e}table{border-collapse:collapse;width:100%;font-size:14px}thead{background:#f7faf9;color:#516975}th,td{padding:5px 7px;text-align:left;border-bottom:1px solid #edf2f1;font-weight:400}thead th{font-size:11px;font-weight:650;white-space:nowrap}.board th:first-child,.board td:first-child{width:40px;text-align:center}.board th:nth-child(2){width:45px}.board th:nth-child(3){width:38px}.board tbody th{font-weight:650;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board tbody tr{height:31px}.board tbody tr:first-child{background:#fffbef}.points{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.board td.points{font-weight:800;color:var(--teal);padding-right:14px}.rank{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;font-size:11px;font-weight:800;background:#edf3f1;color:#415b51}.r1{background:#f9d876;color:#624807}.r2{background:#e3e9ef;color:#475d73}.r3{background:#efd4be;color:#6d4a2c}.board-foot{padding:7px 12px;color:#60736d;font-size:10px;text-align:right}.empty{padding:25px 10px!important;text-align:center!important;color:var(--muted)}.management{background:var(--bg);padding:28px 20px}.admin-wrap{max-width:980px;margin:auto}.admin-head,.nav-actions,.section-heading,.row-tools,.form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-head h1{font-size:27px;margin:4px 0}.nav-actions{font-size:14px}.nav-actions form,.row-tools form{margin:0}.panel,.login-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px;margin:18px auto;box-shadow:0 6px 24px #14332b06}h2{font-size:19px;margin:0 0 16px}.muted{color:var(--muted)}.small{font-size:13px}.message{color:#895215;min-height:1.5em;margin:10px 0}.entry-form{display:grid;grid-template-columns:1fr .8fr 1.3fr 1fr;gap:16px}label{display:block;font-weight:650;font-size:14px}input{display:block;border:1px solid #b9ceca;border-radius:8px;width:100%;min-height:42px;margin-top:6px;padding:8px 10px;color:var(--ink);background:#fff}.form-actions{grid-column:1/-1;justify-content:flex-start}.table-wrap{overflow-x:auto}.row-tools{justify-content:flex-start;white-space:nowrap}.small-button{font-size:12px;padding:5px 10px}.danger{background:#fff3f1;color:#a13a2c}.danger:hover{background:#ffe1dc}.secondary{background:#e9f1ee;color:#245b4a}.count{font-size:12px;font-weight:500;border-radius:20px;background:#eaf3ee;padding:4px 10px}.login-card{max-width:390px;margin:7vh auto;padding:28px}.login-card h1{font-size:26px;margin:12px 0 4px}.login-card label{margin-bottom:16px}.login-card button{width:100%}.back{display:inline-block;font-size:13px;margin-bottom:24px}.management table tbody th{font-weight:650}@media(max-width:600px){.management{padding:16px 10px}.admin-head{align-items:flex-start;flex-direction:column}.entry-form{grid-template-columns:1fr 1fr}.panel{padding:16px}.nav-actions{gap:20px}.board-head{padding-left:10px}.board h1{font-size:15px}.board h1 span{font-size:16px}.board table{font-size:13px}th,td{padding-left:5px;padding-right:5px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* 共用帳號管理專區：不改公開排行榜 */
.accounts-panel{padding:0;overflow:hidden}
.accounts-title{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px 26px;border-bottom:1px solid var(--line);background:linear-gradient(115deg,#f6fbfa,#fff)}
.accounts-title h2{margin:3px 0 6px;font-size:23px}
.accounts-title p{margin:0}
.accounts-count{white-space:nowrap;border-radius:999px;background:#e8f3ef;color:#155b52;font-size:13px;font-weight:700;padding:7px 12px}
.accounts-create{padding:22px 26px 26px;border-bottom:1px solid var(--line)}
.accounts-panel h3{font-size:17px;margin:0 0 14px}
.account-create-form{display:grid;gap:18px}
.account-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.account-fields input{margin-top:7px}
.permissions-fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-wrap:wrap;gap:12px}
.permissions-fieldset legend{font-weight:700;font-size:14px;margin-bottom:10px;padding:0}
.permission-option{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #cadcda;border-radius:10px;background:#f9fcfb;min-width:210px;cursor:pointer}
.permission-option:has(input:checked){border-color:var(--teal);background:#eef9f4}
.permission-option input{appearance:auto;display:inline-block;flex:0 0 auto;width:19px;height:19px;min-height:0;margin:0;accent-color:var(--teal)}
.permission-option span{display:grid;gap:2px}
.permission-option small{color:var(--muted);font-size:12px;font-weight:400}
.create-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.create-footer p{margin:0}
.create-footer button{white-space:nowrap}
.account-list-heading{padding:22px 26px 12px;display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.account-list-heading h3{margin:0}
.account-list-heading p{margin:0}
.accounts-panel .table-wrap{margin:0 26px 26px}
.account-table{font-size:14px;min-width:670px}
.account-table th,.account-table td{padding:13px 10px;vertical-align:middle}
.account-table tbody th{font-weight:750}
.account-table thead th{font-size:12px}
.role-pill,.status-pill{display:inline-block;border-radius:999px;padding:4px 10px;background:#edf3f2;color:#31534c;font-size:12px;font-weight:700;white-space:nowrap}
.role-super{background:#e6f0fb;color:#234d87}
.status-active{background:#e4f5ed;color:#146245}
.status-inactive{background:#f1f1f1;color:#575f64}
.permission-yes{color:#0d6452;font-weight:700;white-space:nowrap}
.permission-no{color:#7a8990}
.account-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-actions form{margin:0}
.password-details{position:relative}
.password-details summary{display:inline-block;list-style:none;padding:6px 9px;color:#0a655c;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-weight:650}
.password-details summary::-webkit-details-marker{display:none}
.password-details summary:focus-visible{outline:3px solid #bc7900;outline-offset:3px}
.password-details[open]{flex-basis:100%}
.reset-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding:12px;background:#f7faf9;border:1px solid var(--line);border-radius:9px;max-width:360px}
.reset-form label{flex:1 1 190px;font-size:12px}
.reset-form input{min-height:37px;font-size:13px}
.reset-form button{margin-bottom:1px}
@media(max-width:650px){.accounts-title,.accounts-create{padding:18px}.account-fields{grid-template-columns:1fr}.accounts-panel .table-wrap{margin:0 14px 18px}.account-list-heading{padding:18px 14px 12px}.permissions-fieldset{display:grid}.permission-option{min-width:0}.create-footer button{width:100%}}

/* Public leaderboard: single-line heading without English eyebrow */
.board-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;padding:10px 12px;border-bottom:1px solid var(--line)}
.board .board-head h1{font-size:14px;line-height:1.4;font-weight:750;white-space:nowrap;min-width:0;flex:1;margin:0;letter-spacing:-.45px}
.board .board-head .top-five{position:static;flex:0 0 auto;margin:0;font-size:10px;white-space:nowrap}
@media(max-width:380px){.board .board-head h1{font-size:12px;letter-spacing:-.65px}.board-head{padding-left:7px;padding-right:7px;gap:5px}.board .board-head .top-five{font-size:9px;padding:2px 5px}}
