@font-face{font-family:課序圖示;src:url("./assets/icons.woff2") format("woff2");font-display:block}
:root{--bg:#f0fdf4;--ink:#1f2937;--muted:#586b61;--green:#16a34a;--action:#14753d;--forest:#164e3a;--line:#d7e8dc;--light:#e4f5e8;--white:#fff;--red:#9c322f;--radius:20px;--shadow:0 6px 22px #1a543209}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;color:var(--ink);background:var(--bg);font-family:"Microsoft JhengHei","PingFang TC","Noto Sans TC",system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,textarea,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
a{color:var(--action)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #198452;outline-offset:3px}
[hidden]{display:none!important}
.wrap{width:min(1152px,calc(100% - 96px));margin-inline:auto}
.icon::before{font-family:課序圖示!important;font-weight:400!important;font-style:normal;line-height:1;display:inline-block;vertical-align:-.09em}
.mast{height:76px;background:#fff;border-bottom:1px solid var(--line)}
.mast-inner,.mast-actions,.brand,.plain,.workspace-line,.crumb,.today,.footer-inner,.footer-brand,.btn,.tag,.loading,.cover-label,.cover-foot,.login-note,.searchbox,.dialog-head,.row-actions,.metric-top,.dashboard-heading,.toolbar,.card-bottom,.tabs,.assignment-top,.meter-caption{display:flex;align-items:center}
.mast-inner{height:100%;justify-content:space-between;gap:15px}
.brand{gap:11px;text-decoration:none;color:var(--forest)}
.brand-icon{width:39px;height:39px;background:#176943;color:white;border-radius:12px;display:grid;place-items:center;font-size:21px}
.brand strong{font-size:25px;line-height:1;letter-spacing:.05em}
.brand-desc{margin-left:6px;padding-left:16px;border-left:1px solid #cfdfd2;font-size:14px;font-weight:650;color:#3b5545}
.mast-actions,.plain,.crumb,.today,.footer-brand,.btn,.tag,.cover-label,.cover-foot,.row-actions,.card-bottom,.meter-caption{gap:8px}
.plain{border:0;border-radius:8px;background:none;padding:8px 10px;color:#44604e;font-size:14px;font-weight:650}
.plain:hover{background:var(--light)}
.main{flex:1;padding:28px 0 53px}
.workspace-line{justify-content:space-between;color:var(--muted);margin-bottom:20px;gap:12px;font-size:13px}
.crumb{font-weight:700;color:#4c6957}
.today{font-variant-numeric:tabular-nums}
.login-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(302px,1fr);gap:20px}
.cover,.login-card,.guide-list,.panel,.metric,.assignment,.profile-card,.empty,.error-panel{border-radius:var(--radius);box-shadow:var(--shadow)}
.cover{position:relative;isolation:isolate;min-height:374px;overflow:hidden;background:linear-gradient(118deg,#123f31 0%,#19563d 66%,#286347 100%);color:#f6f8e8}
.cover::before{content:"";position:absolute;inset:auto -8% -57% 38%;height:115%;border:1px solid #a3cda53d;border-radius:50%;box-shadow:0 0 0 22px #c3dbac0a,0 0 0 23px #a3cda525,0 0 0 44px #c3dbac06,0 0 0 45px #a3cda518}
.cover-grid{position:absolute;inset:0;background-image:radial-gradient(#c4d5a83b .9px,transparent 1px);background-size:15px 15px;mask-image:linear-gradient(115deg,transparent 10%,#000 100%)}
.cover-copy{position:relative;z-index:2;padding:34px 34px 66px;pointer-events:none}
.cover-label{margin:0;color:#c5e7b9;font-size:14px;font-weight:650}
.cover-label .icon{font-size:19px}
h1,h2,h3,h4,p{margin-top:0}
.cover h1{margin:17px 0 14px;font-size:clamp(36px,3.6vw,54px);letter-spacing:.035em;line-height:1.21;color:#fffbe9;font-weight:780}
.cover-copy>p:last-child{color:#e0eada;line-height:1.7;margin:0;font-size:15px}
.cover-foot{position:absolute;bottom:25px;left:34px;z-index:2;color:#c8dece;font-size:12px}
.cover-art{position:absolute;width:51%;height:auto;right:-4%;bottom:-1%;transform:rotate(-5deg);pointer-events:none}
.login-card,.guide-list,.panel,.metric,.assignment,.profile-card,.empty,.error-panel{background:var(--white);border:1px solid var(--line)}
.login-card{padding:32px;display:flex;flex-direction:column;justify-content:center}
.login-icon{background:var(--light);color:#28794a;border-radius:14px;width:50px;height:50px;display:grid;place-items:center;font-size:24px;margin-bottom:16px}
.login-card h2{font-size:27px;line-height:1.25;margin-bottom:10px;color:#223b2e}
.muted,.text-sub,.field-help{color:var(--muted)}
.login-card>.muted{font-size:15px;margin-bottom:21px;line-height:1.75}
.btn{border:1px solid var(--line);min-height:42px;justify-content:center;border-radius:10px;padding:8px 14px;font-weight:700;font-size:14px;line-height:1.4;text-decoration:none;background:#fff;color:#355641}
.btn:hover{background:#f2f8f3;border-color:#b6d2bd}
.btn.primary{background:var(--action);border-color:var(--action);color:#fff}
.btn.primary:hover{background:#105f32}
.btn.danger{color:var(--red);border-color:#e9bfbd;background:#fffaf9}
.btn.danger:hover{background:#ffeceb}
.btn.compact{min-height:35px;font-size:13px;padding:6px 10px}
.login-action{width:100%;min-height:48px;gap:12px}
.login-action .i-arrow-right{margin-left:auto}
.google-mark{display:grid;place-items:center;border-radius:50%;background:#fff;width:24px;height:24px;font-size:14px}
.google-mark::before{color:transparent;background:conic-gradient(#4285f4 0 85deg,#34a853 85deg 185deg,#fbbc05 185deg 230deg,#ea4335 230deg 300deg,#4285f4 300deg);background-clip:text}
.login-note{gap:7px;color:#63776a;font-size:12px;margin:13px 0 0}
.inline-error,.form-error{color:var(--red);background:#fff2ef;border-radius:9px;padding:9px 12px;margin:12px 0 0;font-size:14px}
.guide-section{margin-top:34px}
.guide-section h2,.section-title{font-size:21px;color:#243f30;line-height:1.4;margin:0 0 14px}
.guide-list{display:grid;grid-template-columns:repeat(3,1fr);padding:10px 4px}
.guide-list button{background:none;border:0;font:inherit;text-align:left;display:flex;align-items:center;gap:12px;padding:13px 18px}
.guide-list button+button{border-left:1px solid var(--line)}
.guide-list button:hover{background:#f7fbf7}
.guide-icon,.metric-icon,.mini-icon,.empty-icon{display:inline-grid;place-items:center;background:#e4f3e9;border-radius:12px;color:#257247;flex:none}
.guide-icon{height:40px;width:40px;font-size:20px}
.guide-icon.gold,.metric-icon.gold{background:#faf0d8;color:#886024}
.guide-icon.blue,.metric-icon.blue{background:#e6f1fa;color:#375f83}
.guide-list strong,.guide-list small{display:block}
.guide-list strong{font-size:15px;color:#284835}
.guide-list small{font-size:12px;color:var(--muted);margin-top:2px}
.guide-arrow{margin-left:auto;font-size:13px;color:#779483}
footer{background:#f6fcf7;border-top:1px solid var(--line);color:#64786b}
.footer-inner{min-height:66px;gap:14px;font-size:12px}
.footer-brand{color:#486653;font-weight:720;font-size:14px}
.skip{position:absolute;transform:translateY(-150%);left:14px;top:8px;padding:8px 12px;background:#fff;border-radius:8px;z-index:10}
.skip:focus{transform:none}
.dashboard-heading{justify-content:space-between;gap:14px;margin-bottom:20px}
.dashboard-heading h1,.profile-card h1{font-size:clamp(27px,3vw,34px);line-height:1.3;color:#193d2a;margin-bottom:4px}
.dashboard-heading p,.section-head p{margin:0;color:var(--muted);font-size:14px}
.tag{display:inline-flex;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:700;white-space:nowrap;color:#476150;background:#ebf2ed}
.tag.pending{color:#83581c;background:#fff0cb}
.tag.graded{color:#226640;background:#e0f3e6}
.tag.closed{color:#755357;background:#f6eaec}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:22px}
.metric{padding:16px 19px;border-radius:15px}
.metric-top{gap:9px;font-size:13px;color:var(--muted);font-weight:650}
.metric-icon,.mini-icon{width:30px;height:30px;font-size:15px;border-radius:8px}
.metric-value{display:block;color:#254a32;font-size:30px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.25;margin-top:8px}
.tabs{border-bottom:1px solid #bcdbc5;gap:16px;overflow:auto;white-space:nowrap;margin:0 0 22px}
.tab{padding:9px 5px 12px;color:#536a5b;background:none;border:0;border-bottom:3px solid transparent;display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:700;white-space:nowrap}
.tab.active{color:#15693b;border-color:var(--green)}
.section-head,.toolbar,.card-bottom,.assignment-top,.meter-caption{justify-content:space-between}
.section-head{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.section-head h2{margin:0;font-size:21px;color:#274533}
.toolbar{gap:10px;flex-wrap:wrap;margin-bottom:16px}
.searchbox{position:relative;flex:1 1 195px}
.searchbox .icon{position:absolute;left:12px;color:#6c8273;pointer-events:none}
.searchbox input{padding-left:38px;min-height:42px}
input,textarea,select{background:#fff;border:1px solid #bdd2c3;border-radius:9px;padding:8px 11px;min-width:0;line-height:1.5;font-size:15px;max-width:100%}
input,textarea,.field select,.searchbox input{width:100%}
textarea{min-height:100px;resize:vertical}
.toolbar select{min-height:42px}
.assignment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.assignment{display:flex;flex-direction:column;padding:19px;gap:10px;border-radius:15px;min-width:0}
.assignment-top .mini-icon{width:35px;height:35px;font-size:17px}
.assignment h3{font-size:19px;color:#22472e;line-height:1.4;margin:0;overflow-wrap:anywhere}
.preview{font-size:14px;line-height:1.6;color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.card-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:12px;flex-wrap:wrap}
.due,.meta{font-size:12px;color:var(--muted)}
.due .icon{margin-right:5px}
.row-actions{flex-wrap:wrap}
.empty,.error-panel,.profile-card{padding:28px;text-align:center}
.empty-icon{width:45px;height:45px;color:#547861;font-size:21px;margin-bottom:9px}
.empty h3,.error-panel h2,.profile-card h2{margin:0 0 5px;color:#284835}
.empty p,.error-panel p{margin:0;color:var(--muted);font-size:14px}
.error-panel .btn{margin:14px auto 0}
.profile-card{text-align:left;max-width:580px;margin:auto}
.profile-card .form-actions{justify-content:flex-start}
.panel{overflow:hidden;border-radius:14px}
table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
thead{background:#f4f9f5;color:#4d6957;font-size:12px}
th,td{padding:12px 14px;border-bottom:1px solid #e5eee7;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
th{font-weight:700}
td{overflow-wrap:anywhere}
.text-main,.text-sub{display:block}
.text-main{color:#2c4634;font-weight:650}
.text-sub{font-size:12px}
.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.meter-caption{font-size:13px;color:var(--muted)}
progress{width:100%;height:8px;appearance:none;border:0;border-radius:20px;background:#e3efe6;overflow:hidden}
progress::-webkit-progress-bar{background:#e3efe6}
progress::-webkit-progress-value,progress::-moz-progress-bar{background:var(--green)}
progress::-webkit-progress-value{background:var(--green);border-radius:20px}
.field{display:grid;gap:5px;margin:0 0 15px}
.field label,.detail-label{font-size:14px;color:#344c3a;font-weight:700}
.field-help{font-size:12px}
.dialog-content{padding:22px}
dialog{position:fixed;inset:0;max-height:min(86vh,840px);max-width:calc(100% - 28px);width:520px;overflow:auto;border:1px solid var(--line);border-radius:18px;color:var(--ink);box-shadow:0 16px 80px #142d2652}
dialog::backdrop{background:#102c22a3}
body:has(dialog[open]){overflow:hidden}
iframe[aria-hidden="true"][src*="/__/auth/iframe"]{position:absolute;top:-100px;width:1px;height:1px;border:0}
.dialog-head{justify-content:space-between;gap:10px;margin-bottom:16px}
.dialog-head h2{color:#22432f;font-size:22px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.icon-btn{padding:7px 10px}
.detail{border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:12px}
.detail-label{display:block;margin:0 0 4px}
.detail p,.detail a{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:18px}
.instructions{padding-left:21px;color:#485e4f}
.instructions li+li{margin-top:7px}
#toast,#loading{position:fixed;z-index:10;bottom:22px;border-radius:11px;padding:11px 16px;max-width:calc(100% - 30px);background:#183e2d;color:#fff;box-shadow:0 3px 16px #173f3033;font-size:14px}
#toast{right:18px}
#toast:empty{display:none}
#loading{left:18px;display:flex;align-items:center;gap:7px}
.spinner{width:16px;height:16px;border:2px solid #fff6;border-top-color:#fff;border-radius:50%;animation:spin .75s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:980px){.wrap{width:min(900px,calc(100% - 48px))}.login-layout{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr)}.cover-art{right:-10%;width:55%}.login-card{padding:25px}.guide-list button{padding:12px}.guide-list small{font-size:11px}}
@media(max-width:710px){.wrap{width:calc(100% - 32px)}.mast{height:63px}.brand-desc{display:none}.main{padding:19px 0 35px}.workspace-line{margin-bottom:12px}.login-layout{grid-template-columns:1fr;gap:13px}.cover{min-height:255px}.cover-copy{padding:22px 24px 55px}.cover-label{font-size:12px}.cover h1{font-size:35px;margin:11px 0 7px}.cover-copy>p:last-child{font-size:13px}.cover-foot{bottom:15px;left:24px;font-size:11px}.cover-art{right:-2%;width:min(47%,265px);bottom:-4%}.login-card{padding:20px}.login-icon{width:36px;height:36px;font-size:19px;margin-bottom:9px}.login-card h2{font-size:23px}.login-card>.muted{font-size:14px;margin-bottom:13px}.guide-section{margin-top:22px}.guide-list{grid-template-columns:1fr;padding:2px 12px}.guide-list button+button{border-left:0;border-top:1px solid var(--line)}.guide-list button{padding:12px 0}.guide-list small{font-size:12px}.metrics{gap:8px}.metric{padding:11px}.metric-top{gap:4px;font-size:12px}.metric-icon{display:none}.metric-value{font-size:24px}.assignment-grid,.stat-grid{grid-template-columns:1fr}.tabs{gap:10px}.tab{font-size:13px}.section-head h2{font-size:19px}.dashboard-heading .btn{font-size:12px}.panel{border:0;border-radius:0;box-shadow:none;background:none}.panel table,.panel tbody,.panel tr,.panel td{display:block}.panel thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.panel tbody{display:grid;gap:10px}.panel tr{border:1px solid var(--line);border-radius:13px;background:#fff;padding:10px 12px}.panel td{display:grid;grid-template-columns:5.5em 1fr;gap:9px;border:0;padding:4px 0}.panel td::before{content:attr(data-label);font-size:12px;color:var(--muted)}.toolbar .searchbox{flex-basis:100%}.toolbar select{flex:1}.footer-inner{min-height:52px}.dialog-content{padding:18px}.mast-actions{gap:0}}
@media(max-width:380px){.wrap{width:calc(100% - 24px)}.cover-art{width:43%;right:-4%;bottom:3%}.cover-copy{padding-left:18px}.cover-foot{left:18px}.today,.plain{font-size:12px}.btn{padding:8px 10px}.metric{padding:9px}.dashboard-heading,.section-head{align-items:flex-start}.tabs{gap:5px}.tab{gap:4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
