/* The classroom desk is the site shell; homework typography and print slips are separate. */
.topbar .brand{text-decoration:none}
.summary-card[data-action="filter-submissions"]{font:inherit;text-align:left;cursor:pointer;min-height:88px}
.summary-card[data-action="filter-submissions"]:hover{border-color:currentColor}
.summary-card[data-action="filter-submissions"][aria-pressed="true"]{outline:2px solid currentColor;outline-offset:2px}
.summary-card[data-action="filter-submissions"]:focus-visible{outline:3px solid #284f39;outline-offset:3px}
.summary-card .summary-unit{font-size:13px;font-weight:500;margin-left:6px}
.submission-filter-summary{font-size:16px;line-height:1.6;color:#3b5745;margin:16px 0}
.submission-filters{margin:0 0 18px}
.submission-filters label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:17px;font-weight:650}
.submission-filters select{font:inherit;font-weight:500;color:#294834;background:#fffef8;border:1px solid #b7c7ae;border-radius:10px;padding:12px;min-height:48px;width:min(100%,560px);min-width:0;max-width:100%}
.submission-filters select:focus-visible{outline:2px solid #376d54;outline-offset:2px}
.submission-table .submission-filter-empty{text-align:center;padding:30px 16px;font-size:17px;color:#63766d}
@media screen {
:root{--ink:#263f36;--muted:#63766d;--line:#dce5db;--paper:#fffefa;--bg:#f1f4ed;--lav-dark:#356951;--shadow:0 8px 30px #354f3510}
body{background:#f1f4ed;font-family:system-ui,-apple-system,"Noto Sans TC","Microsoft JhengHei",sans-serif}
.topbar{background:#fffefa;border-bottom:1px solid #dce4d8;padding:14px 3vw;min-height:82px;gap:16px;position:relative}
.brand-mark{border-radius:8px 15px 15px 8px;background:#376d54;border:0;transform:rotate(-5deg)}
.topbar .brand strong{font-size:20px;color:#264e3d}.brand span{font-size:12px;letter-spacing:.16em;margin-top:5px}
.top-actions .nav-action{font-size:15px;padding:10px 16px;border-radius:12px}.topbar .demo-badge{border:1px solid #dde7d2;padding:5px 9px;border-radius:30px;background:#f1f6e7;font-size:11px}
.topbar-identity{flex-wrap:wrap}.demo-banner{width:min(1456px,94vw);margin:18px auto 0;background:#fff8df;border:1px solid #eee2b6;border-radius:12px;padding:10px 18px}
.demo-banner p{font-size:13px}.demo-banner strong{font-size:14px}
.app-layout{max-width:1456px;width:94vw;grid-template-columns:220px minmax(0,1fr);gap:28px;margin:26px auto 36px;align-items:start}
.sidebar{background:#fffefa;border:1px solid #dce5d7;border-radius:22px;padding:14px;position:sticky;top:18px;box-shadow:0 8px 22px #354f3506}
.class-card{display:block;background:#38694f;border:0;border-radius:13px;color:#fff;padding:22px 18px;position:relative;overflow:hidden}
.class-card .eyebrow{display:block;color:#dce8c9;font-size:11px;letter-spacing:.18em}.class-card strong{color:#fffdf0;font-size:29px;line-height:1.4;margin:8px 0 9px;overflow-wrap:anywhere;border:0;padding:0}
.class-card>span:not(.eyebrow){color:#dfebd8;font-size:13px}.class-card .class-lock{color:#d9e7d4;font-size:11px;border-top:1px solid #ffffff25;padding-top:12px;margin-top:16px}
.nav-class-switch{position:relative;z-index:1}.nav-class-switch span{color:#e4efd9}.nav-class-switch select{background:#fffdf2;font-size:15px;border:0;min-height:44px}
.tabs{margin-top:18px;gap:7px}.tab{font-size:17px;min-height:52px;text-align:left;border:0;padding:12px 15px;border-radius:11px;position:relative;color:#607264;font-weight:600;transition:background .16s,transform .16s}
.tab::before{display:inline-block;margin-right:12px;font-size:19px;line-height:1;color:#859682;content:"·"}.tab[data-action="view:today"]::before{content:"✎"}.tab[data-action="view:week"]::before{content:"▤"}.tab[data-action="view:calendar"]::before{content:"▦"}.tab[data-action="view:contact"]::before{content:"▣"}.tab[data-action="view:submissions"]::before{content:"✓"}
.tab.active{background:#e8efdd;color:#284f39;box-shadow:none}.tab:hover{background:#f0f4e9;transform:none}
.class-tools{border-color:#e1e6da;padding-top:14px;margin-top:18px}.class-tools .btn{border:0;background:#f7f8f1;font-size:15px;min-height:44px;border-radius:10px}
.role-strip{padding:10px 0 0;flex-wrap:wrap}.role-strip .btn{font-size:13px;padding:7px 10px}
.main-panel{min-width:0}.classroom-welcome{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:205px;border:1px solid #d5e0cb;border-radius:22px;background:#e4ecd9;overflow:hidden;margin-bottom:20px}
.welcome-copy{padding:30px 0 26px 30px;align-self:center;z-index:1}.welcome-kicker{display:flex;align-items:center;gap:8px;font-size:12px;color:#526e49;font-weight:650;letter-spacing:.08em}.welcome-kicker i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#64894c}.welcome-kicker span{color:#6a7e60;letter-spacing:0}
.welcome-copy h1{font-family:"Noto Serif TC","PMingLiU",serif;font-size:clamp(23px,2.05vw,32px);font-weight:800;line-height:1.45;letter-spacing:.025em;color:#2e503a;margin:12px 0 8px;overflow-wrap:anywhere}
.welcome-copy p{font-size:14px;line-height:1.7;color:#617358;margin:0}.classroom-scene{width:100%;height:205px;align-self:center;cursor:pointer;position:relative}.classroom-scene canvas{display:block;width:100%;height:100%}
.desk-scene-controls{display:flex;gap:14px;margin-top:10px;min-height:22px}.desk-scene-controls button{border:0;background:none;color:#4d704d;padding:3px 0;min-height:28px;font:inherit;font-size:12px;cursor:pointer;text-underline-offset:4px}.desk-scene-controls button:hover{text-decoration:underline}.desk-scene-controls button:disabled{opacity:.45;cursor:default}.desk-scene-controls [hidden]{display:none}
.desk-fallback{position:absolute;inset:35px 30px;transform:rotate(-12deg)}.desk-fallback span{position:absolute;width:130px;height:90px;background:#95b28a;border-radius:4px;border-left:10px solid #436c51;left:30px;top:20px;box-shadow:5px 6px 0 #fcf5d9,7px 10px 0 #d9a572}.desk-fallback span+span{width:80px;height:26px;background:#f5f0cc;left:55px;top:38px;border:0;box-shadow:none}.desk-fallback i{position:absolute;width:9px;height:130px;background:#dbaa58;right:35px;top:0;transform:rotate(28deg);border-radius:2px}
.classroom-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}
.classroom-step{display:flex;align-items:center;text-align:left;gap:12px;border:1px solid #dce4d5;background:#fffefa;border-radius:14px;padding:16px;color:#435d4c;cursor:pointer;font-family:inherit;transition:transform .15s,box-shadow .15s,border-color .15s;min-width:0}
.classroom-step:hover{transform:translateY(-3px);box-shadow:0 8px 20px #304e3010;border-color:#9bb38a}.classroom-step.active{border-color:#779f71;background:#f8fbf0}.step-number{display:grid;place-items:center;flex:0 0 35px;height:39px;background:#edf2e2;border-radius:9px;font-size:13px;font-weight:750;color:#648459}.classroom-step:nth-child(2) .step-number{background:#f9ecd6;color:#ad8242}.classroom-step:nth-child(3) .step-number{background:#e4eef0;color:#64898d}
.classroom-step strong{display:block;font-size:17px;white-space:nowrap}.classroom-step small{display:block;color:#788473;font-size:12px;line-height:1.5;margin-top:4px}.step-arrow{margin-left:auto;color:#8a9d81;font-size:18px}
.date-toolbar{margin-bottom:16px;background:#ffffff70;border:1px solid #dfe6d8;border-radius:12px;padding:10px 12px}.date-title{font-size:18px;color:#36583e}.icon-btn{background:#fffefa;border:1px solid #dbe3d2;border-radius:9px}.date-navigation{min-width:0}.date-toolbar .btn{font-size:14px;min-height:40px}
.content-section{background:#fffefa;border:1px solid #dce3d5;border-radius:19px;box-shadow:0 5px 18px #304d3010;padding:26px}
.section-heading{border-bottom:1px solid #dce5d6;padding-bottom:19px;margin-bottom:22px}.section-heading h2{font-family:inherit;font-size:25px;letter-spacing:0;color:#2c5039}.section-heading p{color:#728069;font-size:14px}
.btn{border-radius:10px;transition:background .15s,box-shadow .15s}.btn.primary{background:#386f50;border-color:#386f50;box-shadow:0 4px 9px #345d3217}.btn.primary:hover{background:#2b573e}.btn.ghost{background:#fffefa;border-color:#d7e0d0}.btn.secondary{background:#e9f0e0}
.assignment-card.editor-card{border:1px solid #dfe6d8;border-radius:13px;padding:20px;background:#fcfcf6}.editor-card input,.editor-card textarea{border-radius:8px;background:#fff;border-color:#d3ddca}.editor-card input:focus,.editor-card textarea:focus{border-color:#779e69;box-shadow:0 0 0 3px #b3cc982b}
.published-card{border-radius:13px;border-left:4px solid #9bb789}.day-card{border-radius:12px;padding:14px;transition:transform .15s}.day-card:hover{transform:translateY(-3px)}.mini-assignment{font-size:14px;line-height:1.7}.calendar-day{border-radius:10px;transition:background .15s}.calendar-day:hover{background:#edf3e2}.calendar-dot{font-size:13px}.calendar-weekdays{font-size:14px}
.summary-card{border-radius:12px;padding:16px}.summary-card strong{font-size:29px}.summary-card span{font-size:15px}.parent-status-panel,.parent-homework-panel{background:#fffefa;border-radius:14px}.empty-state{background:#f7f9ef;border-style:dashed;border-radius:12px}
.font-size-control{border-radius:10px!important;font-size:13px;gap:10px;padding:10px!important}.font-size-control input{width:100px}.print-surface .section-heading{border-bottom:1px solid #dce5d6}.contact-book:not(:fullscreen){border-radius:10px}
.parent-portal-layout{grid-template-columns:minmax(0,1fr);max-width:1140px}.family-welcome{background:#edf0db}.site-footer{width:min(1456px,94vw);border-color:#d5decf;padding-top:22px;color:#73826b}
.parent-class-heading{margin:0 0 22px;padding:4px 0 18px;border-bottom:1px solid #cbd7c4;overflow-wrap:anywhere}.parent-school-name{margin:0 0 8px;font-size:clamp(20px,2.2vw,26px);font-weight:650;color:#36583e}.parent-class-heading h1{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;margin:0;font-size:clamp(28px,3vw,36px);line-height:1.4;color:#263f36}.parent-class-heading h1 span{font-size:18px;font-weight:500;color:#63766d}.parent-class-meta{margin:9px 0 0;font-size:15px;color:#63766d}
@media(min-width:1600px){.classroom-welcome{grid-template-columns:minmax(0,1fr) 360px}.classroom-scene{height:220px}}
@media(max-width:1100px){.app-layout{grid-template-columns:185px minmax(0,1fr);gap:18px}.sidebar{padding:10px}.class-card{padding:18px 13px}.classroom-welcome{grid-template-columns:minmax(0,1fr) 230px}.welcome-copy{padding:24px}.classroom-step{padding:12px;gap:8px}.classroom-step small{display:none}.step-arrow{display:none}.topbar{flex-wrap:wrap}.top-actions{margin-left:auto}.parent-portal-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;padding:12px;border-radius:16px}.class-card{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:14px 18px}.class-card strong{font-size:23px;margin:0}.class-card .eyebrow{font-size:11px}.class-card .class-lock{padding:0;border:0;margin:0 0 0 auto}.class-card .nav-class-switch{margin:0;max-width:240px}.class-card .nav-class-switch>span{display:none}.tabs{display:flex;overflow:auto;margin-top:10px;gap:5px}.tab{flex:0 0 auto;font-size:16px;padding:10px 13px;min-height:46px}.tab::before{margin-right:7px}.class-tools{display:flex;margin-top:10px;padding-top:10px}.classroom-steps{display:none}.classroom-welcome{min-height:180px}.classroom-scene{height:185px}}
@media(max-width:600px){.topbar{padding:13px 4vw;gap:12px}.topbar .brand strong{font-size:17px}.brand-mark{width:32px;height:38px}.brand span{font-size:10px}.topbar-identity{gap:10px;flex-basis:100%}.topbar .demo-badge{display:none}.top-actions{width:100%;margin:0;justify-content:flex-start;gap:6px;flex-wrap:wrap}.top-actions .nav-action{font-size:14px;padding:8px 12px;min-height:42px}.apply-class-btn{font-size:13px;padding:8px 10px}.app-layout{width:94vw;margin-top:16px;gap:16px}.class-card>span:not(.eyebrow){font-size:12px}.class-card .eyebrow{display:none}.class-card .class-lock{font-size:10px}.class-card .nav-class-switch{max-width:none;width:100%}.classroom-welcome{grid-template-columns:minmax(0,1fr) 118px;min-height:146px;border-radius:15px;margin-bottom:14px}.welcome-copy{padding:19px 0 18px 18px}.welcome-copy h1{font-size:21px;margin:8px 0;line-height:1.5}.welcome-copy p{font-size:12px}.welcome-kicker{font-size:10px;gap:5px;flex-wrap:wrap}.welcome-kicker span{display:none}.classroom-scene{height:125px}.desk-scene-controls{gap:8px}.desk-scene-controls button{font-size:11px}.desk-fallback{transform:scale(.55) rotate(-12deg);inset:0;transform-origin:center}.date-toolbar{padding:8px;gap:6px;flex-wrap:wrap}.date-title{font-size:15px}.icon-btn{min-width:36px;min-height:40px}.date-navigation{gap:3px}.date-toolbar .btn{padding:7px 9px;font-size:12px}.content-section{padding:19px 15px;border-radius:15px}.section-heading h2{font-size:22px}.font-size-control{font-size:12px}.font-size-control input{width:90px}.section-actions{gap:7px}.section-actions .btn{font-size:14px}.summary-card{padding:12px}.calendar-grid{gap:4px}.calendar-day{padding:6px;min-height:84px}.calendar-dot{font-size:10px}.calendar-day strong{font-size:13px}}
@media(max-width:600px){.topbar .top-actions{display:flex;flex-wrap:wrap}.topbar .top-actions .nav-action{width:auto;min-width:0;flex:1 1 0;text-align:center;justify-content:center}.sidebar .tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:3px}.sidebar .tab{white-space:normal;text-align:center;padding:8px 2px;font-size:14px;line-height:1.4;min-width:0}.sidebar .tab::before{display:block;margin:0 0 6px;font-size:20px}.sidebar .tab.active{box-shadow:none}.sidebar .tab:hover{transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.tab:hover,.classroom-step:hover,.day-card:hover{transform:none}}
}
@media print{.classroom-welcome,.classroom-steps{display:none!important}}

@media screen {
  .print-surface .section-actions .projection-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 18px;
    border: 2px solid #29543d;
    background: #29543d;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    white-space: nowrap;
  }
  .print-surface .section-actions .projection-button:hover {
    border-color: #1e402e;
    background: #1e402e;
  }
  .print-surface .section-actions .projection-button:focus-visible {
    outline: 3px solid #d4a64d;
    outline-offset: 3px;
  }
  .projection-button-icon { width: 22px; height: 22px; flex: none; }
  @media (max-width: 600px) {
    .print-surface .section-actions .projection-button { width: 100%; }
  }
}
/* Text remains in the existing vertical layout; interaction adds no decoration at rest. */
.contact-glyph[data-action="edit-pronunciation"]{cursor:pointer}
.contact-glyph[data-action="edit-pronunciation"]:hover,.contact-glyph[data-action="edit-pronunciation"]:focus-visible{outline:2px solid #54785b;outline-offset:2px;border-radius:3px;background:#eaf0e1}
.reading-help{font-size:14px;color:#5a6855;margin:0 0 14px;line-height:1.6}
.reading-help a{color:inherit}
.pronunciation-dialog{writing-mode:horizontal-tb;direction:ltr;box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid #b9c8ad;border-radius:16px;padding:24px;background:#fffef6;color:#294834;box-shadow:0 16px 50px #172a2933;font:18px/1.6 system-ui,sans-serif}
.pronunciation-dialog::backdrop{background:#12261966}
.pronunciation-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pronunciation-dialog h2{font-size:25px;margin:0}
.pronunciation-dialog input{font:24px/1.5 system-ui,sans-serif;min-height:48px;box-sizing:border-box;width:100%;padding:8px}
.reading-options,.reading-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.reading-options .btn{font-size:26px;min-height:54px;letter-spacing:.08em}
.reading-options .btn[aria-pressed="true"]{background:#315d46;color:#fff}
.reading-error{color:#a72d2d}.reading-context{overflow-wrap:anywhere;color:#64725c}
@media print{.reading-help,.pronunciation-dialog{display:none!important}.contact-glyph[data-action]{outline:none!important;background:none!important}}
