@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');
:root{--navy:#173b57;--navy2:#214d6b;--ink:#1d2c39;--muted:#748391;--line:#e4ebef;--bg:#f4f7f9;--white:#fff;--blue:#3277a6;--pale:#eaf3f8;--shadow:0 14px 40px rgba(25,54,75,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Noto Sans TC',system-ui,-apple-system,sans-serif;font-size:15px}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2));position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;font-size:21px}.brand b{display:block;font-size:16px;letter-spacing:.03em}.brand small{display:block;color:#93a0aa;font-size:10px;letter-spacing:.13em;margin-top:1px}.top-actions{display:flex;align-items:center;gap:14px}.user-label{font-size:13px;color:#667784}.hidden{display:none!important}main{max-width:1160px;margin:0 auto;padding:42px 24px 30px}.auth-layout{min-height:calc(100vh - 160px);display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:70px;max-width:1000px;margin:auto}.welcome-panel{padding:30px 0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.2em;color:#7392a7}.welcome-panel h1{font-size:clamp(34px,4vw,52px);line-height:1.35;letter-spacing:.02em;color:var(--navy);margin:18px 0}.welcome-panel p{color:#71818e;line-height:1.9;max-width:420px}.welcome-points{display:grid;gap:14px;margin-top:40px;color:#526a7a;font-size:14px}.welcome-points span: first-letter{color:#4a9a81}.auth-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}.tabs{display:flex;gap:8px;background:#f1f5f7;padding:5px;border-radius:12px}.tab{border:0;background:transparent;color:#71818e;border-radius:9px;padding:10px 18px;flex:1;font-weight:600}.tab.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px #183d5612}.auth-form{padding-top:28px}.auth-form h2{font-size:23px;margin:0 0 4px;color:var(--navy)}.muted{color:var(--muted);font-size:13px;line-height:1.8}.auth-form label,.form-card label{display:grid;gap:8px;margin-top:19px;font-size:13px;font-weight:600;color:#435664}.auth-form input,.form-card input,.form-card textarea,.form-card select{width:100%;border:1px solid #dce5ea;border-radius:10px;padding:12px 13px;background:#fff;outline:none;color:var(--ink);transition:.2s}.auth-form input:focus,.form-card input:focus,.form-card textarea:focus,.form-card select:focus{border-color:#6b9ab7;box-shadow:0 0 0 3px #3277a615}.hint,.form-note{font-size:11px;color:#8a98a2;line-height:1.7}.form-note{margin:16px 0 0}.warning-note{color:#9b7850}.btn{border:0;border-radius:10px;padding:11px 17px;font-weight:700;font-size:13px;transition:.2s}.btn-primary{background:var(--navy);color:#fff}.btn-primary:hover{background:#245674;transform:translateY(-1px)}.btn-outline{background:#fff;border:1px solid #dce5ea;color:#536b7a}.full{width:100%;margin-top:24px;padding:13px}.message{padding:12px 15px;border-radius:10px;background:#eaf4ef;color:#34775d;font-size:13px;line-height:1.7;margin:18px 0}.message.error{background:#fff0ef;color:#a44b45}.message.info{background:#edf4f8;color:#466c85}.hero-strip{background:linear-gradient(115deg,#173b57,#2b627f);border-radius:20px;padding:32px 38px;color:#fff;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.hero-strip .eyebrow{color:#b6d1df}.hero-strip h1{font-size:29px;margin:8px 0}.hero-strip p{margin:0;color:#d0e0e8;font-size:13px}.hero-icon{font-size:92px;opacity:.18;margin-right:20px}.main-nav{display:flex;gap:5px;margin:24px 0 30px;border-bottom:1px solid var(--line);overflow:auto}.nav-item{white-space:nowrap;border:0;background:transparent;padding:13px 17px;color:#73828d;font-size:13px;font-weight:600;border-bottom:3px solid transparent}.nav-item.active{color:var(--navy);border-color:#4384a8}.page-section{animation:fade .2s ease}@keyframes fade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 22px}.section-heading h2{font-size:24px;color:var(--navy);margin:5px 0}.section-heading p{margin:3px 0}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.quick-card{position:relative;text-align:left;background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;display:flex;flex-direction:column;gap:8px;color:var(--ink);min-height:150px;box-shadow:0 4px 16px #1b405508}.quick-card:hover{border-color:#a9c5d5;transform:translateY(-2px)}.quick-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-size:18px;margin-bottom:5px}.quick-icon.blue{background:#eaf3f8;color:#36799f}.quick-icon.violet{background:#f1effb;color:#7768a9}.quick-icon.orange{background:#fff3e8;color:#bf8148}.quick-icon.green{background:#eaf5ef;color:#4d9677}.quick-card b{font-size:14px}.quick-card small{font-size:11px;color:#8996a0}.quick-arrow{position:absolute;right:18px;top:22px;color:#9aabb5}.content-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px;box-shadow:0 4px 16px #1b405506}.section-heading.compact{margin:0 0 15px}.section-heading.compact h2{font-size:18px}.text-btn{border:0;background:none;color:#477c9a;font-size:12px;font-weight:700}.stack-list{display:grid;gap:11px}.empty-state{border:1px dashed #d7e1e7;border-radius:12px;padding:28px;text-align:center;color:#91a0aa;font-size:13px;background:#fbfcfd}.announcement-item,.record-item,.application-item,.vote-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px 18px}.announcement-item{display:flex;gap:15px;align-items:flex-start}.date-chip{min-width:48px;text-align:center;background:#edf4f8;border-radius:10px;padding:7px 4px;color:#47758f}.date-chip b{display:block;font-size:18px;line-height:1.2}.date-chip small{font-size:9px}.item-main{min-width:0;flex:1}.item-main h3{font-size:15px;margin:0 0 6px;color:#29485e}.item-main p{font-size:13px;color:#74838e;line-height:1.8;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.item-meta{font-size:11px;color:#9aa6ae;margin-top:9px}.pin{font-size:10px;color:#a87937;background:#fff5e7;padding:3px 7px;border-radius:20px;margin-left:6px}.principle-note{display:flex;gap:13px;padding:17px 19px;background:#edf4f7;border-radius:13px;margin-top:20px;color:#587183}.note-icon{width:24px;height:24px;border:1px solid #9bb7c7;border-radius:50%;display:grid;place-items:center;font-size:12px;flex:none}.principle-note b{font-size:13px}.principle-note p{font-size:11px;line-height:1.7;margin:4px 0 0;color:#7d909c}.two-column{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:start}.form-card h3,.admin-panel h3,.list-title{font-size:16px;color:#2d4d62;margin:0 0 13px}.form-card textarea{resize:vertical;line-height:1.7}.form-card .btn{margin-top:20px}.list-title{margin:5px 0 14px}.record-item h4{font-size:14px;margin:0 0 7px}.record-item p{font-size:12px;color:#71818d;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.status{display:inline-flex;padding:4px 8px;border-radius:30px;font-size:10px;font-weight:700;background:#eef2f4;color:#6d7c86}.status.pending{background:#fff4df;color:#a57931}.status.reviewing,.status.processing{background:#eaf2fb;color:#4f78a2}.status.approved,.status.resolved,.status.completed{background:#e9f5ee;color:#438365}.status.rejected{background:#fff0ef;color:#a85b54}.record-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:7px}.admin-reply{margin-top:10px;padding:10px 12px;background:#f4f7f9;border-radius:9px;font-size:12px;color:#607584;line-height:1.7}.vote-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.vote-card h3{font-size:16px;margin:0 0 8px;color:#2d4d62}.vote-card>p{font-size:12px;color:#788791;line-height:1.7}.vote-option{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e6edf1;border-radius:9px;margin-top:8px;font-size:13px}.vote-option input{accent-color:var(--navy)}.vote-card .btn{margin-top:13px}.vote-foot{font-size:11px;color:#9aa6ae;margin-top:10px}.admin-tabs{display:flex;gap:7px;overflow:auto;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:22px}.admin-tab{border:1px solid #e1e9ed;background:#fff;color:#71818e;border-radius:9px;padding:9px 13px;white-space:nowrap;font-size:12px}.admin-tab.active{background:#eaf2f7;color:#234d68;border-color:#c8dce7;font-weight:700}.count-pill{background:#dbe9f1;border-radius:20px;padding:1px 6px;margin-left:4px}.admin-panel h3{margin-bottom:15px}.application-item{display:flex;justify-content:space-between;gap:12px;align-items:center}.application-item b{font-size:13px}.application-item small{display:block;color:#87949d;font-size:11px;margin-top:4px}.action-row{display:flex;gap:7px;flex-wrap:wrap}.btn-small{padding:7px 10px;font-size:11px}.btn-approve{background:#e8f4ed;color:#3e805f}.btn-reject{background:#fff0ef;color:#a85b54}.narrow-form{max-width:650px}.checkbox-label{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important}.checkbox-label input{width:auto!important}.admin-record-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.admin-record-actions select,.admin-record-actions input{padding:8px;border:1px solid #dce5ea;border-radius:8px;font-size:12px}.site-footer{text-align:center;color:#9aa6ae;font-size:11px;padding:35px 0 12px}.site-footer span{padding:0 7px}.modal-backdrop{position:fixed;inset:0;background:#102b3a66;display:grid;place-items:center;padding:20px;z-index:30}.modal{background:#fff;border-radius:16px;padding:24px;width:min(460px,100%);box-shadow:var(--shadow)}.modal h3{margin:0 0 12px}.modal textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px;min-height:90px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
@media(max-width:800px){main{padding:24px 16px}.auth-layout{grid-template-columns:1fr;gap:20px;max-width:480px}.welcome-panel{padding:10px 0 0}.welcome-panel h1{font-size:34px;margin:10px 0}.welcome-points{display:none}.auth-card{padding:22px}.quick-grid{grid-template-columns:repeat(2,1fr)}.two-column{grid-template-columns:1fr}.vote-grid{grid-template-columns:1fr}.hero-strip{padding:25px}.hero-strip h1{font-size:24px}.hero-icon{font-size:65px;margin:0}.topbar{height:68px;padding:0 16px}.brand-mark{width:37px;height:37px}.user-label{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-heading h2{font-size:21px}.main-nav{margin:18px -16px 24px;padding:0 12px}.nav-item{padding:12px 13px}.application-item{align-items:flex-start;flex-direction:column}.action-row{width:100%}.action-row button{flex:1}.announcement-item{padding:14px}.content-card{padding:18px}}
@media(max-width:380px){.quick-card{padding:15px;min-height:140px}.auth-card{padding:17px}.hero-strip{padding:20px}.hero-icon{display:none}}


/* Softer light palette and optional dark mode */
:root{--navy:#29485d;--navy2:#355d73;--ink:#263640;--muted:#71808a;--line:#dce3e5;--bg:#edf1f2;--white:#f8f9f8;--blue:#477f9d;--pale:#e5edf0;--shadow:0 12px 34px rgba(36,57,68,.07)}
body{background:var(--bg);color:var(--ink)}
.topbar{background:#f7f8f7}
.auth-card,.content-card,.quick-card,.announcement-item,.record-item,.application-item,.vote-card{background:#f8f9f8}
.tabs{background:#e9eef0}
.tab.active{background:#f9faf9}
.auth-form input,.form-card input,.form-card textarea,.form-card select{background:#f7f9f9;border-color:#d7e0e3}
.empty-state{background:#f3f6f6}
.btn-outline,.admin-tab{background:#f7f9f8}
.theme-toggle{white-space:nowrap;min-width:82px}

body[data-theme="dark"]{
  --navy:#a9c8dc;--navy2:#83abc4;--ink:#e1e8ec;--muted:#a4b2bb;--line:#35444e;--bg:#17222b;--white:#202d37;--blue:#8ab5d0;--pale:#293b48;--shadow:0 14px 38px rgba(0,0,0,.22);
  background:var(--bg);color:var(--ink)
}
body[data-theme="dark"] .topbar{background:#1c2933;border-color:#35444e}
body[data-theme="dark"] .brand{color:#e1e8ec}
body[data-theme="dark"] .brand small{color:#91a2ad}
body[data-theme="dark"] .user-label{color:#aab8c1}
body[data-theme="dark"] .welcome-panel h1,body[data-theme="dark"] .auth-form h2,body[data-theme="dark"] .section-heading h2{color:#c2d9e7}
body[data-theme="dark"] .welcome-panel p,body[data-theme="dark"] .muted{color:#a4b2bb}
body[data-theme="dark"] .eyebrow{color:#8eafc3}
body[data-theme="dark"] .welcome-points{color:#b4c2ca}
body[data-theme="dark"] .auth-card,body[data-theme="dark"] .content-card,body[data-theme="dark"] .quick-card,body[data-theme="dark"] .announcement-item,body[data-theme="dark"] .record-item,body[data-theme="dark"] .application-item,body[data-theme="dark"] .vote-card,body[data-theme="dark"] .modal{background:#202d37;border-color:#35444e;color:#e1e8ec}
body[data-theme="dark"] .tabs{background:#18252e}
body[data-theme="dark"] .tab{color:#9eafb9}
body[data-theme="dark"] .tab.active{background:#2b3b46;color:#d7e6ee;box-shadow:0 2px 8px #0003}
body[data-theme="dark"] .auth-form label,body[data-theme="dark"] .form-card label{color:#c2cdd3}
body[data-theme="dark"] .auth-form input,body[data-theme="dark"] .form-card input,body[data-theme="dark"] .form-card textarea,body[data-theme="dark"] .form-card select,body[data-theme="dark"] .admin-record-actions select,body[data-theme="dark"] .admin-record-actions input,body[data-theme="dark"] .modal textarea{background:#18252e;border-color:#40515d;color:#e1e8ec}
body[data-theme="dark"] input::placeholder,body[data-theme="dark"] textarea::placeholder{color:#82939e}
body[data-theme="dark"] .hint,body[data-theme="dark"] .form-note,body[data-theme="dark"] .item-meta,body[data-theme="dark"] .site-footer{color:#899ba6}
body[data-theme="dark"] .btn-outline,body[data-theme="dark"] .admin-tab{background:#263640;border-color:#40515d;color:#c1d0d8}
body[data-theme="dark"] .btn-primary{background:#426f89;color:#fff}
body[data-theme="dark"] .btn-primary:hover{background:#527f98}
body[data-theme="dark"] .main-nav{border-color:#35444e}
body[data-theme="dark"] .nav-item{color:#9eafb9}
body[data-theme="dark"] .nav-item.active{color:#c4dce9;border-color:#83abc4}
body[data-theme="dark"] .quick-card{box-shadow:0 4px 16px #0002}
body[data-theme="dark"] .quick-card small,body[data-theme="dark"] .item-main p,body[data-theme="dark"] .record-item p,body[data-theme="dark"] .vote-card>p{color:#a3b1ba}
body[data-theme="dark"] .quick-icon.blue{background:#294453;color:#9cc8df}
body[data-theme="dark"] .quick-icon.violet{background:#39364d;color:#c0b3e6}
body[data-theme="dark"] .quick-icon.orange{background:#493b30;color:#e4b98c}
body[data-theme="dark"] .quick-icon.green{background:#29443b;color:#9bcab2}
body[data-theme="dark"] .quick-arrow{color:#91a4af}
body[data-theme="dark"] .empty-state{background:#1b2932;border-color:#40515d;color:#91a2ad}
body[data-theme="dark"] .date-chip{background:#2b414e;color:#b5d2e2}
body[data-theme="dark"] .item-main h3,body[data-theme="dark"] .form-card h3,body[data-theme="dark"] .admin-panel h3,body[data-theme="dark"] .list-title,body[data-theme="dark"] .vote-card h3{color:#c2d9e7}
body[data-theme="dark"] .principle-note{background:#263944;color:#b9cbd5}
body[data-theme="dark"] .principle-note p{color:#9fb1bc}
body[data-theme="dark"] .note-icon{border-color:#7897a9}
body[data-theme="dark"] .status{background:#34434c;color:#c0cbd1}
body[data-theme="dark"] .status.pending{background:#4b402b;color:#e2c48a}
body[data-theme="dark"] .status.reviewing,body[data-theme="dark"] .status.processing{background:#2d4052;color:#a9c9e3}
body[data-theme="dark"] .status.approved,body[data-theme="dark"] .status.resolved,body[data-theme="dark"] .status.completed{background:#29443a;color:#a8d4ba}
body[data-theme="dark"] .status.rejected{background:#4b3031;color:#e3aaa7}
body[data-theme="dark"] .admin-tab.active{background:#304755;color:#c6deeb;border-color:#49687a}
body[data-theme="dark"] .count-pill{background:#405a69;color:#d4e4ec}
body[data-theme="dark"] .vote-option{border-color:#40515d;color:#d2dce1}
body[data-theme="dark"] .admin-reply{background:#293944;color:#b6c6cf}
body[data-theme="dark"] .message{background:#29463b;color:#b5dec8}
body[data-theme="dark"] .message.error{background:#4a3031;color:#efb7b3}
body[data-theme="dark"] .message.info{background:#2d4250;color:#b7d2e1}
body[data-theme="dark"] .btn-approve{background:#29463b;color:#b5dec8}
body[data-theme="dark"] .btn-reject{background:#4a3031;color:#efb7b3}
body[data-theme="dark"] .modal-backdrop{background:#0009}
body[data-theme="dark"] .pin{background:#4a3d2b;color:#e4c18c}
@media(max-width:520px){.top-actions{gap:7px}.theme-toggle{padding:8px 10px;min-width:0;font-size:11px}.user-label{max-width:90px}}
