:root { color-scheme: light; --ink:#17202b; --muted:#65717e; --line:#d8d1c7; --paper:#f6f0e8; --card:#fffdf9; --teal:#147d78; --yellow:#f6cc48; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--paper); color:var(--ink); font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif; }
.auth-card { width:min(440px, calc(100% - 32px)); margin:8vh auto; padding:36px; background:var(--card); border:1px solid var(--line); border-radius:22px; box-shadow:0 18px 50px #433d3214; }
.brand-mark { width:48px; height:48px; display:grid; place-items:center; background:var(--yellow); border:2px solid var(--ink); border-radius:12px; font-size:25px; font-weight:900; margin-bottom:24px; }
.eyebrow { margin:0 0 9px; color:var(--teal); font-size:12px; font-weight:800; letter-spacing:.16em; }
h1 { margin:0 0 14px; font-size:30px; } h2 { margin:0; font-size:22px; } .lede { color:var(--muted); line-height:1.8; }
form { display:grid; gap:16px; margin-top:24px; } label { display:grid; gap:7px; font-weight:700; font-size:14px; } input { width:100%; min-height:44px; border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; color:var(--ink); font:inherit; }
.button { display:inline-flex; justify-content:center; align-items:center; min-height:42px; border:1px solid var(--ink); border-radius:10px; padding:8px 15px; background:transparent; color:var(--ink); text-decoration:none; font:inherit; font-weight:800; cursor:pointer; } .button.primary { background:var(--yellow); } .button.small { min-height:34px; font-size:13px; } .button:disabled { opacity:.45; cursor:not-allowed; }
.notice { margin:18px 0; padding:12px 14px; border-radius:10px; line-height:1.6; } .notice.error { background:#f8e1dd; color:#873b35; } .notice.success { background:#dff2ee; color:#12655f; }
.admin-shell { width:min(1100px, calc(100% - 32px)); margin:40px auto; } .admin-header { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; margin-bottom:24px; } .admin-links { display:flex; gap:8px; flex-wrap:wrap; } .admin-card { padding:22px; margin:18px 0; background:var(--card); border:1px solid var(--line); border-radius:16px; } .inline-form { display:grid; grid-template-columns:1fr 1fr 1.3fr 1.3fr auto; align-items:end; gap:10px; } .section-heading,.user-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; } .user-row { border-top:1px solid var(--line); padding:20px 0 4px; } .user-row:first-child { border-top:0; } .user-heading small { display:block; margin-top:5px; color:var(--muted); } .permission-grid { display:flex; flex-wrap:wrap; gap:10px 18px; margin:18px 0; } .permission-grid label { display:flex; align-items:center; gap:7px; font-weight:600; } .permission-grid input { width:18px; min-height:18px; } .user-actions { display:flex; gap:8px; } .switch { display:flex; align-items:center; gap:7px; color:var(--muted); } .switch input { width:18px; min-height:18px; }
@media (max-width:760px) { .admin-header { flex-direction:column; } .inline-form { grid-template-columns:1fr; } .auth-card { padding:26px; } }
