:root{color:#213932;background:#f5f4ed;font-family:Noto Sans TC,Microsoft JhengHei,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #e9a856;outline-offset:2px}.login-page{min-height:100vh;display:grid;place-items:center;padding:42px 24px;position:relative;overflow:hidden;background:linear-gradient(145deg,#eef4ea,#f8f1df 52%,#e8f2ef)}.ambient{position:absolute;border-radius:999px;filter:blur(3px);opacity:.56}.ambient-one{width:420px;height:420px;background:#d6e8dc;top:-180px;right:-100px}.ambient-two{width:360px;height:360px;background:#f0d9b7;bottom:-160px;left:-100px}.login-shell{width:min(980px,100%);display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;position:relative;z-index:1}.brand-mark,.mini-mark{display:grid;place-items:center;color:#fff;background:#315f54;font-family:serif}.brand-mark{width:82px;height:82px;border-radius:28px;font-size:38px;box-shadow:0 18px 40px #315f5430}.brand-block h1{margin:8px 0 18px;font-size:clamp(3rem,7vw,5.4rem);line-height:1;color:#315f54;letter-spacing:-.06em}.eyebrow{margin:24px 0 0;color:#9c6c2d;font-weight:800;letter-spacing:.14em}.brand-copy{max-width:430px;font-size:1.18rem;line-height:1.9}.privacy-note{display:inline-flex;align-items:center;gap:10px;padding:10px 15px;border-radius:999px;background:#ffffffb5;color:#315f54;font-weight:700}.privacy-note span{font-size:.65rem}.login-card{padding:34px;border:1px solid #fff;border-radius:30px;background:#fffffff0;box-shadow:0 24px 80px #385f4c1d;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.login-card h2{margin:0;font-size:1.8rem}.subtle{color:#66756f;line-height:1.65}.login-urgent-note{display:grid;gap:5px;margin:17px 0;padding:14px 16px;border:2px solid #d57b68;border-radius:13px;color:#7d342c;background:#fff0ed}.login-urgent-note strong{font-size:1.02rem}.login-urgent-note span{line-height:1.55}.role-tabs,.case-filter{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#edf0ea;border-radius:14px}.role-tabs button,.case-filter button{border:0;padding:12px;border-radius:10px;background:transparent;color:#607068;font-weight:800}.role-tabs button.active,.case-filter button.active{background:#fff;color:#315f54;box-shadow:0 3px 12px #2f56451a}.login-form{display:grid;gap:15px;margin-top:22px}.login-form label:not(.consent-row),.account-create-form label,.extra-reply{display:grid;gap:7px;font-weight:800}input,textarea,select{width:100%;border:1px solid #cfd9d2;border-radius:12px;padding:12px 13px;color:#203a32;background:#fff}textarea{resize:vertical}.consent-row{display:flex;gap:10px;align-items:flex-start;line-height:1.5}.consent-row input{width:20px;height:20px;margin-top:1px}.consent-row button,footer button{border:0;padding:0;color:#315f54;background:none;font-weight:800;text-decoration:underline}.primary-button,.secondary-button,.complete-button,.print-button{border:0;border-radius:13px;padding:13px 18px;font-weight:900}.primary-button{color:#fff;background:#315f54;box-shadow:0 8px 18px #315f5433}.primary-button:hover{background:#264e45}.primary-button.small{padding:10px 15px}.secondary-button{color:#315f54;background:#e2eee9}.secondary-button:disabled{opacity:.5;cursor:not-allowed}.form-error,.global-message.error{color:#8c2f28;background:#fff0ed}.form-error{margin:0;padding:10px 12px;border-radius:10px}.demo-credentials{display:flex;justify-content:space-between;gap:16px;margin-top:18px;padding:11px 13px;border-radius:12px;color:#5e615c;background:#f4efe5;font-size:.9rem}.loading-page{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:16px;background:#f3f4ec}.mode-banner{padding:8px 20px;text-align:center;color:#6a4d22;background:#fff0c8;font-size:.9rem;font-weight:800}.topbar{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px max(24px,calc((100vw - 1320px)/2));color:#fff;background:#315f54}.topbar-brand,.account-area{display:flex;align-items:center;gap:12px}.topbar-brand div{display:grid;gap:2px}.topbar-brand div span{color:#cce0d8;font-size:.85rem}.mini-mark{width:42px;height:42px;border:1px solid #ffffff5c;border-radius:14px;background:#ffffff13}.account-area button{border:1px solid #ffffff58;border-radius:10px;padding:8px 12px;color:#fff;background:#ffffff12}.global-message{width:min(1240px,calc(100% - 40px));margin:16px auto 0;padding:12px 16px;border-radius:12px}.global-message.success{color:#245344;background:#e4f3eb}footer{display:flex;justify-content:center;gap:5px;padding:30px 20px;color:#66756f;font-size:.9rem}.student-layout{width:min(820px,calc(100% - 40px));margin:0 auto;padding:70px 0 20px}.welcome-copy{margin-bottom:28px}.welcome-copy h1{margin:7px 0;color:#315f54;font-size:clamp(2.2rem,6vw,4rem)}.welcome-copy p{color:#65746e;line-height:1.7}.message-card,.student-status-card{padding:clamp(24px,5vw,42px);border:1px solid #e1e4dc;border-radius:28px;background:#fff;box-shadow:0 22px 55px #315f5413}.message-card>label:first-child{display:block;margin-bottom:10px;font-size:1.25rem;font-weight:900}.message-card textarea{min-height:220px;font-size:1.1rem;line-height:1.75}.counter{margin:6px 3px 18px;color:#7f8c86;text-align:right;font-size:.85rem}.help-choice{display:flex;gap:14px;align-items:center;padding:18px;border:2px solid #d8e2dd;border-radius:17px;cursor:pointer}.help-choice.checked{border-color:#d6963d;background:#fff7e7}.help-choice input{position:absolute;opacity:0;pointer-events:none}.check-visual{width:28px;height:28px;display:grid;flex:0 0 28px;place-items:center;border:2px solid #9aaba3;border-radius:8px;color:#fff;background:#fff}.checked .check-visual{border-color:#d6963d;background:#d6963d}.help-choice strong,.help-choice small{display:block}.help-choice small{margin-top:3px;color:#6f7e78}.urgent-note{display:grid;gap:4px;margin:20px 0;padding:15px 17px;border-left:4px solid #c86454;border-radius:8px 13px 13px 8px;color:#7d342c;background:#fff0ed}.urgent-note span{line-height:1.55}.send-button{width:100%;padding:16px;font-size:1.05rem}.completed-summary{margin-bottom:20px;padding:18px 20px;border-radius:16px;background:#e8f3ed}.completed-summary strong,.completed-summary span{display:block}.completed-summary p{white-space:pre-line}.status-hero{display:flex;align-items:center;gap:22px}.status-hero h1{margin:5px 0;color:#315f54}.pending-icon{width:58px;height:58px;display:grid;place-items:center;flex:0 0 58px;border-radius:20px;color:#fff;background:#4d8b77;font-size:1.8rem}.student-message-copy,.teacher-reply{margin-top:24px;padding:20px;border-radius:16px}.student-message-copy{background:#f5f5ef}.teacher-reply{background:#fff3dc}.student-message-copy span,.teacher-reply span{color:#6d7772;font-size:.87rem;font-weight:800}.student-message-copy p,.teacher-reply p{white-space:pre-line;line-height:1.75}.teacher-reply small{color:#756b57}.admin-layout{width:min(1320px,calc(100% - 40px));margin:0 auto;padding:42px 0 0}.admin-heading{display:flex;justify-content:space-between;gap:30px;align-items:end}.admin-heading h1{margin:5px 0;color:#315f54;font-size:2.5rem}.admin-heading p{color:#66756f}.summary-row{display:flex;gap:12px}.summary-card{min-width:130px;padding:16px 18px;border-radius:16px;background:#fff;box-shadow:0 8px 24px #315f5410}.summary-card strong,.summary-card span{display:block}.summary-card strong{color:#315f54;font-size:2rem}.summary-card span{color:#6c7873;font-size:.84rem}.summary-card.alert{background:#fff2df}.summary-card.alert strong{color:#a86122}.crisis-banner{display:flex;gap:18px;margin:24px 0;padding:16px 20px;border-radius:14px;color:#7e342d;background:#ffebe8}.crisis-banner span{line-height:1.6}.admin-nav{display:flex;gap:6px;border-bottom:1px solid #d8ddd8}.admin-nav button{border:0;border-bottom:3px solid transparent;padding:13px 18px;color:#65726d;background:transparent;font-weight:900}.admin-nav button.active{border-bottom-color:#315f54;color:#315f54}.admin-nav span{display:inline-grid;min-width:23px;height:23px;place-items:center;margin-left:4px;border-radius:999px;color:#fff;background:#c87643;font-size:.76rem}.admin-workspace{display:grid;grid-template-columns:360px 1fr;min-height:700px;margin-top:20px;border:1px solid #dde1db;border-radius:22px;overflow:hidden;background:#fff}.case-sidebar{border-right:1px solid #e0e4df;background:#f7f7f2}.case-filter{grid-template-columns:repeat(3,1fr);margin:15px}.case-list{display:grid;max-height:760px;overflow:auto}.case-list-item{display:grid;gap:7px;border:0;border-top:1px solid #e2e5df;padding:17px;text-align:left;color:#273d35;background:transparent}.case-list-item:hover,.case-list-item.selected{background:#fff}.case-list-item.selected{box-shadow:inset 4px 0 #315f54}.case-name-row{display:flex;justify-content:space-between;gap:8px}.case-name-row em{padding:3px 7px;border-radius:999px;color:#8f4b1d;background:#ffe7ca;font-size:.72rem;font-style:normal}.case-list-item>span:not(.case-name-row),.case-list-item small{color:#71807a}.case-list-item small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-status{width:fit-content;padding:4px 8px;border-radius:999px;background:#e9eeeb;font-size:.75rem;font-weight:800}.status-待關懷{color:#994b22;background:#ffe6cc}.status-處理中,.status-持續追蹤{color:#4d568e;background:#e9eaff}.status-已結案{color:#426a59;background:#dfeee7}.case-detail{padding:clamp(22px,4vw,42px)}.detail-heading{display:flex;justify-content:space-between;gap:20px}.detail-heading h2{margin:4px 0;font-size:2rem}.detail-heading>div>span{color:#6d7b75}.detail-badges{display:flex;gap:10px;align-items:start}.detail-badges select{width:auto;min-width:110px}.help-badge{padding:8px 10px;border-radius:999px;color:#914c20;background:#ffe7ca;font-size:.82rem;font-weight:900}.entry-content{margin:26px 0;padding:24px;border-radius:17px;background:#f5f5ef;font-size:1.08rem;line-height:1.85;white-space:pre-wrap}.sent-reply{padding:18px 20px;border-radius:15px;background:#fff3dc}.sent-reply p{white-space:pre-line}.reply-builder,.internal-record{margin-top:24px;padding:22px;border:1px solid #dfe4df;border-radius:18px}.section-title{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:15px}.section-title h3{margin:2px 0}.section-title span{color:#98672b;font-size:.78rem;font-weight:900}.section-title small{color:#738078}fieldset{display:grid;gap:7px;border:0;padding:0}legend{margin-bottom:10px;font-weight:800}.template-option{display:flex;gap:10px;align-items:start;padding:10px 12px;border:1px solid #e0e4df;border-radius:10px;cursor:pointer}.template-option.selected{border-color:#7eaa9b;background:#eef7f3}.template-option input{width:auto;margin-top:3px}.extra-reply{margin-top:16px}.reply-preview{margin:15px 0;padding:15px;border-radius:12px;background:#f4f6f2}.reply-preview p{margin-bottom:0;white-space:pre-line}.internal-record textarea{min-height:120px;margin-bottom:10px}.case-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.print-button{color:#315f54;background:#edf1ed}.complete-button{color:#fff;background:#b4613c}.completed-label{padding:12px 0;color:#43715f;font-weight:900}.empty-mini,.empty-detail,.empty-panel{padding:30px;color:#718078;text-align:center}.account-panel{margin-top:20px;padding:clamp(22px,4vw,36px);border:1px solid #dde1db;border-radius:22px;background:#fff}.account-panel-heading{display:flex;justify-content:space-between;gap:20px}.account-panel-heading h2{margin:0}.account-panel-heading p{color:#68766f}.account-create-form{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:12px;align-items:end;margin:22px 0;padding:18px;border-radius:16px;background:#f5f6f1}.csv-import{margin:20px 0;padding:16px 18px;border:1px solid #dfe3de;border-radius:14px}.csv-import summary{cursor:pointer;color:#315f54;font-weight:900}.csv-import p{color:#69766f}.csv-import textarea{min-height:120px;margin-bottom:10px;font-family:ui-monospace,monospace}.csv-file-button{display:inline-flex;margin:2px 0 10px;border:1px solid #b9cdc5;border-radius:11px;padding:10px 14px;color:#315f54;background:#eef5f2;cursor:pointer;font-weight:900}.csv-file-button input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.csv-or{display:block;margin:0 0 8px;color:#75817b;font-size:.86rem}.csv-feedback{margin:0 0 12px;padding:11px 13px;border-radius:10px;font-weight:800}.csv-feedback.info{color:#405e54;background:#eef3f0}.csv-feedback.success{color:#245344;background:#e4f3eb}.csv-feedback.error{color:#8c2f28;background:#fff0ed}.account-table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:13px 12px;border-bottom:1px solid #e4e7e2;text-align:left}th{color:#66736d;background:#f6f7f3;font-size:.85rem}td select{min-width:100px}code{padding:4px 7px;border-radius:6px;color:#315f54;background:#eef2ef}.account-safety-note{margin-top:18px;padding:14px 16px;border-left:4px solid #769f91;border-radius:9px;background:#edf5f1;color:#466359}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#142a238c}.dialog{width:min(650px,100%);max-height:90vh;overflow:auto;padding:28px;border-radius:22px;background:#fff;box-shadow:0 30px 90px #0003}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0}.dialog-heading button{border:0;color:#52635c;background:transparent;font-size:2rem}.privacy-dialog p{line-height:1.8}.print-sheet{width:min(850px,100%);max-height:92vh;overflow:auto;padding:38px;background:#fff;color:#1d2824;box-shadow:0 30px 90px #0003}.print-heading{display:flex;justify-content:space-between;gap:20px;border-bottom:3px solid #263a33;padding-bottom:16px}.print-heading p,.print-heading h2{margin:0 0 5px}.print-heading span{font-size:.8rem;overflow-wrap:anywhere}.print-grid{display:grid;grid-template-columns:1fr 1fr;margin:22px 0;border:1px solid #aeb8b3}.print-grid div{padding:12px;border:1px solid #d4dad6}.print-grid dt{font-size:.8rem;color:#5e6a65}.print-grid dd{margin:4px 0 0;font-weight:800}.print-sheet section{margin:20px 0}.print-sheet section p{min-height:50px;line-height:1.7;white-space:pre-wrap}.print-lines{margin-top:30px;line-height:2}.print-footnote{padding:12px;border:1px solid #999;font-size:.78rem}.print-actions{display:flex;justify-content:end;gap:10px;margin-top:20px}.print-actions>button:first-child{border:1px solid #9fa9a4;border-radius:10px;padding:10px 15px;background:#fff}@media(max-width:920px){.login-shell{grid-template-columns:1fr;gap:32px}.brand-block{text-align:center}.brand-mark,.privacy-note,.brand-copy{margin-inline:auto}.admin-workspace{grid-template-columns:1fr}.case-sidebar{border-right:0;border-bottom:1px solid #e0e4df}.case-list{max-height:360px}.account-create-form{grid-template-columns:1fr 1fr}}@media(max-width:640px){.login-page{padding:25px 15px}.login-card{padding:24px 20px}.topbar{align-items:flex-start;padding:12px 16px}.account-area{display:grid;justify-items:end}.student-layout,.admin-layout{width:min(100% - 24px,1320px)}.student-layout{padding-top:36px}.admin-heading,.detail-heading,.crisis-banner,.case-actions{display:grid}.summary-row{width:100%}.summary-card{flex:1;min-width:0}.admin-nav{overflow-x:auto}.admin-nav button{white-space:nowrap}.detail-badges{flex-wrap:wrap}.account-create-form,.print-grid{grid-template-columns:1fr}}@media print{body *{visibility:hidden}.print-modal,.print-modal *{visibility:visible}.print-modal{position:absolute;inset:0;display:block;padding:0;background:#fff}.print-sheet{width:100%;max-height:none;overflow:visible;padding:18mm;box-shadow:none}.print-actions{display:none}}
