@charset "UTF-8";
:root {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button, .course-card, input, select { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .5; }
p, h1, h2, h3 { margin: 0; }
button svg { flex-shrink: 0; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; background: white; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 650; letter-spacing: .06em; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; background: var(--accent); color: var(--color-on-primary); border-radius: 12px; }
.brand-mark svg { width: 39px; height: 39px; }
.brand-caption { display: block; font-size: 10px; letter-spacing: .13em; font-weight: 400; color: var(--muted); margin-top: 3px; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .15em; font-weight: 500; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 11px 19px; border-radius: 7px; font-size: 13px; font-weight: 550; line-height: 1.5; border: 1px solid transparent; white-space: nowrap; }
.primary { background: var(--accent); color: var(--color-on-primary); box-shadow: 0 2px 4px #3423140b; }
.primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px #34231414; }
.secondary { background: var(--surface); border-color: var(--line); }
.secondary:hover { border-color: var(--accent); color: var(--accent); }
.text-button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; padding: 4px 0; color: var(--muted); }
.text-link:hover { color: var(--accent); }
.text-link .icon { width: 16px; height: 16px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; padding: 6px; border-radius: 6px; color: var(--muted); }
.icon-button:hover { color: var(--accent); background: var(--soft); }
.theme-control { position: relative; }
.theme-toggle { gap: 8px; min-height: 34px; }
.theme-toggle > .icon:first-child { width: 17px; height: 17px; }
.theme-toggle > .icon:last-child { width: 12px; height: 12px; }
.theme-menu { position: absolute; top: calc(100% + 9px); right: 0; width: 200px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 9px; z-index: 20; box-shadow: 0 12px 40px #302b2020; }
.theme-menu p { font-size: 11px; color: var(--muted); padding: 8px; }
.theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 8px; border-radius: 5px; font-size: 13px; }
.theme-menu button:hover, .theme-menu button[aria-pressed="true"] { background: var(--bg); }
.theme-menu .icon { margin-left: auto; width: 16px; height: 16px; }
.swatch { width: 15px; height: 15px; border-radius: 50%; }
.swatch.terracotta { background: var(--material-warm-accent); }.swatch.blue { background: #446780; }.swatch.graphite { background: #56616c; }
.preview-label { display: inline-flex; align-items: center; font-size: 10px; letter-spacing: .03em; line-height: 1.5; padding: 4px 8px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
/* 登入：有留白、有紙張層次的教學工作室 */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 53% 47%; background: var(--surface); }
.login-story { background: var(--story); position: relative; overflow: hidden; padding: 44px 9% 29px; min-height: 820px; display: flex; flex-direction: column; }
.login-story::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.18' filter='url(%23n)'/%3E%3C/svg%3E"); }
.story-heading { position: relative; z-index: 1; margin-top: 64px; }
.story-heading .eyebrow { display: flex; align-items: center; gap: 10px; color: #737868; }
.tiny-line { width: 22px; height: 1px; background: #959985; }
.story-heading h1 { font-size: clamp(40px, 3.7vw, 62px); line-height: 1.48; font-weight: 580; letter-spacing: .045em; margin: 19px 0 17px; }
.accent-word { color: var(--accent); position: relative; display: inline-block; }
.accent-word svg { position: absolute; width: 98%; left: 0; bottom: -4px; stroke: var(--accent); fill: none; stroke-width: 2; opacity: .5; }
.story-heading p { line-height: 2; color: #74786c; font-size: 14px; letter-spacing: .04em; }
.paper-scene { position: relative; width: 100%; max-width: 500px; height: 330px; margin: 28px auto 10px; z-index: 1; }
.scene-orbit { position: absolute; border: 1px solid #cfd1c2; width: 290px; height: 290px; border-radius: 50%; top: 15px; right: 0; }
.scene-orbit::after { content: ''; width: 230px; height: 230px; position: absolute; border-radius: 50%; border: 1px solid #d6d8c9; inset: 28px; }
.scene-cross { position: absolute; right: 10px; top: 3px; font-size: 30px; color: #a6ad91; font-weight: 200; }
.scene-small-dot { width: 8px; height: 8px; background: #b8bba5; border-radius: 50%; position: absolute; left: 4px; top: 115px; }
.back-paper { background: #dedfcf; width: 350px; height: 230px; position: absolute; left: 63px; top: 24px; transform: rotate(9deg); border-radius: 7px; border: 1px solid #d4d7c2; padding: 23px; color: #727b61; font-size: 11px; }
.back-paper-lines { margin-top: 20px; width: 100%; height: 130px; background: repeating-linear-gradient(transparent 0 28px,#c9ceba 28px 29px); }
.main-paper { width: 365px; height: 244px; position: absolute; top: 40px; left: 26px; transform: rotate(-7deg); border: 1px solid #dfdfd2; background: #fffdf5; border-radius: 7px; padding: 25px 26px; box-shadow: -3px 15px 30px #56543912, 0 3px 5px #44402e05; overflow: hidden; }
.paper-kicker { display: flex; justify-content: space-between; color: #89877a; font-size: 9px; letter-spacing: .05em; }
.paper-title { font-size: 31px; line-height: 1.48; font-weight: 600; margin-top: 17px; color: #484a3e; position: relative; z-index: 1; }
.main-paper > p { font-size: 8px; color: #7b7b6a; margin-top: 10px; }
.paper-bottom { position: absolute; bottom: 17px; left: 26px; right: 26px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e8e5d8; padding-top: 10px; font-size: 7px; color: #8c897b; }
.paper-logo { font-size: 8px; font-weight: 550; }
.floating-note { position: absolute; right: -4px; top: 44px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid #e3e0d5; border-radius: 7px; background: #fffefa; box-shadow: 0 8px 18px #4947350b; font-size: 11px; transform: rotate(3deg); color: #515649; }
.floating-note .icon { color: #818b69; width: 17px; height: 17px; }
.note-dot { width: 5px; height: 5px; background: #9ba97d; border-radius: 50%; }
.floating-people { position: absolute; z-index: 3; bottom: 15px; left: 63px; transform: rotate(2deg); background: #fffefa; padding: 12px 16px; display: flex; align-items: center; gap: 13px; border: 1px solid #e3e0d5; border-radius: 8px; box-shadow: 0 8px 24px #4947350c; }
.avatar-stack { display: flex; padding-left: 6px; }
.avatar-stack i { font-style: normal; display: grid; place-items: center; background: #ead5bd; width: 29px; height: 29px; margin-left: -6px; border: 2px solid #fffefa; border-radius: 50%; color: #775742; font-size: 9px; }
.avatar-stack i:nth-child(2) { background: #d9dfcd; color: #5e6b48; }.avatar-stack i:nth-child(3) { background: #d7e1e3; color: #5f7780; }
.floating-people strong { font-size: 10px; font-weight: 500; color: #5b5d51; display: block; }
.floating-people small { font-size: 8px; color: #939285; display: block; margin-top: 3px; }
.story-footer { margin-top: auto; padding-top: 15px; display: flex; justify-content: center; align-items: center; gap: 19px; font-size: 10px; letter-spacing: .05em; color: #828575; z-index: 1; }
.story-footer i { width: 3px; height: 3px; border-radius: 50%; background: #aaa996; }
.login-panel { position: relative; display: flex; flex-direction: column; padding: 30px 43px 27px; }
.login-tools { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.login-form-wrap { width: 100%; max-width: 352px; margin: auto; padding: 36px 0 40px; }
.login-welcome-icon { width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; color: var(--accent); margin-bottom: 25px; }
.login-welcome-icon .icon { width: 22px; height: 22px; }
.login-form-wrap > .eyebrow { font-size: 10px; margin-bottom: 10px; }
.login-form-wrap h2 { font-size: 31px; letter-spacing: .04em; font-weight: 600; }
.login-intro { margin-top: 11px; font-size: 13px; color: var(--muted); }
.role-switch { margin-top: 29px; display: flex; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.role-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 50%; height: 38px; font-size: 12px; color: var(--muted); border-radius: 5px; }
.role-switch .icon { width: 16px; height: 16px; }
.role-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 5px #342d2010; font-weight: 600; }
form label, .label-row label { font-size: 12px; font-weight: 500; display: block; }
#login-form { margin-top: 25px; }
.input-shell { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-height: 46px; gap: 11px; margin: 9px 0 21px; padding: 0 13px; }
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.input-shell > .icon { width: 17px; height: 17px; color: var(--subtle); }
.input-shell input, .input-shell select { color: var(--ink); border: 0; background: none; min-width: 0; width: 100%; padding: 13px 0; outline: none; font-size: 12px; }
.input-shell input::placeholder { color: var(--subtle); }
.input-shell > .icon-button { width: 27px; height: 30px; margin-right: -6px; }
.input-shell input:focus-visible, .input-shell select:focus-visible { outline: none; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row .text-link { font-size: 11px; padding: 0; }
.form-hint { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: -6px; }
.form-hint .icon { width: 12px; height: 12px; }
.login-submit { width: 100%; margin-top: 22px; min-height: 47px; font-size: 13px; position: relative; }
.login-submit .icon { position: absolute; right: 17px; width: 18px; height: 18px; }
.preview-divider { display: flex; align-items: center; gap: 13px; color: var(--subtle); font-size: 10px; margin: 25px 0 13px; }
.preview-divider::before, .preview-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.preview-entry { width: 100%; border: 1px solid var(--line); font-size: 12px; font-weight: 450; color: var(--muted); }
.preview-entry:hover { background: var(--soft); border-color: var(--soft); color: var(--accent); }
.preview-entry .icon { width: 16px; height: 16px; }
.demo-note { font-size: 10px; line-height: 1.8; color: var(--subtle); margin-top: 12px; }
.login-form-wrap > .demo-note { text-align: center; }
.login-footer { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--subtle); gap: 12px; }
.login-footer .text-link { font-size: 10px; }
.login-footer .icon { width: 13px; height: 13px; }
/* 共用幾何封面：平面紙材、拱形、花瓣與階梯 */
.cover-art { position: absolute; width: 150px; height: 160px; right: 7px; bottom: 24px; }
.arch { position: absolute; display: block; border-radius: 80px 80px 0 0; width: 88px; height: 128px; }
.arch-back { background: #b6b799; left: 12px; top: 9px; transform: rotate(-13deg); }
.arch-front { background: #be7051; left: 56px; top: 35px; transform: rotate(11deg); }
.arch-front::after { content: ''; position: absolute; width: 46px; height: 105px; left: 22px; top: 26px; background: #ead8be; border-radius: 70px 70px 0 0; }
.art-dot { position: absolute; left: 114px; top: 5px; background: #bf8c5c; width: 19px; height: 19px; border-radius: 50%; }
.art-line { position: absolute; width: 100px; height: 100px; border: 1px solid #9d897062; border-radius: 50%; left: 43px; top: 41px; }
.main-paper .cover-art { transform: scale(.84); right: 13px; bottom: 38px; }
.main-paper .arch-front::after { background: #fffdf5; }
.petal { position: absolute; width: 59px; height: 70px; background: #8b9b78; border-radius: 50% 50% 0 50%; }
.p1 { left: 21px; top: 11px; transform: rotate(-6deg); }.p2 { left: 76px; top: 15px; transform: rotate(84deg); background: #c0c8aa; }.p3 { left: 73px; top: 78px; transform: rotate(174deg); background: #aab997; }.p4 { left: 14px; top: 74px; transform: rotate(264deg); background: #b6bfa0; }
.petal-center { position: absolute; width: 15px; height: 15px; border-radius: 50%; left: 68px; top: 72px; background: #e9ecde; }
.step { display: block; position: absolute; width: 53px; transform: skewY(-17deg); background: #849fab; border: 1px solid #68818e24; }
.s1 { left: 12px; top: 85px; height: 58px; background: #b0c4ca; }.s2 { left: 58px; top: 55px; height: 89px; background: #91aeb9; }.s3 { left: 104px; top: 23px; height: 121px; background: #7896a4; }
.blue-orbit { position: absolute; width: 82px; height: 82px; top: 3px; left: 27px; border: 1px solid #718f9c; border-radius: 50%; }
/* 工作台 */
.dashboard { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; background: var(--surface); border-right: 1px solid var(--line); padding: 30px 20px 0; display: flex; flex-direction: column; z-index: 10; }
.sidebar .brand { font-size: 19px; gap: 9px; margin-left: 7px; }
.sidebar .brand-mark { width: 37px; height: 37px; border-radius: 10px; }.sidebar .brand-mark svg { width: 34px; height: 34px; }.sidebar .brand-caption { font-size: 8px; }
.workspace-chip { display: flex; gap: 9px; align-items: center; margin-top: 40px; padding: 12px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.workspace-icon { display: grid; place-items: center; width: 30px; height: 32px; border-radius: 6px; color: var(--soft-ink); background: var(--soft); font-size: 13px; }
.workspace-chip small { display: block; color: var(--subtle); font-size: 9px; margin-top: 4px; }.workspace-dot { width: 5px; height: 5px; border-radius: 50%; background: #8c977d; margin-left: auto; margin-right: 3px; }
.nav-label { font-size: 10px; color: var(--subtle); margin: 27px 11px 10px; letter-spacing: .08em; }
.nav-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; margin: 3px 0; color: var(--muted); font-size: 12px; border-radius: 6px; min-height: 43px; }
.nav-item .icon { width: 18px; height: 18px; }.nav-item:hover { background: var(--bg); }.nav-item.active { background: var(--soft); color: var(--accent); font-weight: 550; }.nav-count { margin-left: auto; font-size: 10px; color: var(--subtle); }
.sidebar-bottom { margin-top: auto; }
.little-note { position: relative; background: var(--bg); border-radius: 7px; padding: 18px 15px 31px; margin-bottom: 19px; overflow: hidden; }
.little-note-icon { color: #8d947b; }.little-note-icon .icon { width: 18px; height: 18px; }
.little-note p { font-size: 13px; line-height: 1.9; margin-top: 10px; letter-spacing: .04em; color: #6d725f; }
.little-note > span:last-of-type { font-size: 9px; color: var(--subtle); display: block; margin-top: 8px; }
.little-note > svg { position: absolute; width: 90px; bottom: -4px; right: -3px; fill: none; stroke: #c7cabb; stroke-width: 1; }
.profile { display: flex; align-items: center; gap: 10px; padding: 19px 0 22px; border-top: 1px solid var(--line); margin-top: 14px; }
.profile-avatar, .mini-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--soft-ink); font-size: 12px; width: 33px; height: 33px; }
.profile-name { font-size: 11px; }.profile-name small { display: block; margin-top: 4px; font-size: 9px; color: var(--subtle); }.profile .icon-button { margin-left: auto; width: 28px; }.profile .icon { width: 17px; height: 17px; }
.workspace { margin-left: 224px; }
.topbar { padding: 0 41px; height: 72px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: 14px; color: var(--subtle); font-size: 11px; }.breadcrumb > .icon { width: 12px; height: 12px; color: #bbb9b1; }.breadcrumb strong { color: var(--ink); font-weight: 450; }
.topbar-right { display: flex; align-items: center; gap: 24px; }.mini-avatar { width: 29px; height: 29px; font-size: 10px; }.topbar .theme-toggle { font-size: 10px; }
.dashboard-main { max-width: 1450px; margin: auto; padding: 37px 42px 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-heading .eyebrow { font-size: 10px; letter-spacing: .12em; }.page-heading h1 { font-size: 30px; line-height: 1.5; font-weight: 570; letter-spacing: .02em; margin: 9px 0 8px; }.page-heading > div > p:last-child { font-size: 12px; color: var(--muted); letter-spacing: .015em; }
.page-heading > .button { margin-top: 18px; }.page-heading .button .icon { width: 17px; height: 17px; }
.overview-strip { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; margin: 29px 0 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 20px 0; }
.overview-strip > div { display: flex; align-items: center; gap: 15px; padding: 0 24px; border-right: 1px solid var(--line); }.overview-strip > div > .icon { color: var(--muted); width: 20px; height: 20px; margin-top: -17px; }.overview-strip > div > span { font-size: 10px; color: var(--muted); }.overview-strip strong { display: block; font-weight: 500; font-size: 28px; color: var(--ink); line-height: 1.2; margin-top: 7px; font-variant-numeric: tabular-nums; }.overview-strip small { font-size: 10px; font-weight: 400; color: var(--subtle); margin-left: 3px; }.overview-strip > .overview-caption { border: 0; gap: 13px; justify-content: center; padding: 0 20px; }.overview-caption p { font-size: 11px; line-height: 1.9; color: var(--muted); letter-spacing: .04em; }.overview-caption > .small-sun { color: #b3b69d; font-size: 45px; line-height: 1; font-family: Georgia, serif; font-weight: 400; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }.section-heading h2 { font-size: 16px; font-weight: 550; letter-spacing: .015em; }.section-heading > span { font-size: 10px; color: var(--subtle); }.section-heading > .text-link { font-size: 10px; gap: 7px; }.heading-inline { display: flex; align-items: center; gap: 11px; }.count-tag { font-size: 9px; background: var(--soft); padding: 3px 7px; border-radius: 4px; color: var(--muted); }
.continue-card { display: flex; align-items: center; gap: 23px; padding: 20px 25px; border: 1px solid #e4dfd2; border-radius: 9px; background: #f1efe7; position: relative; }
:root[data-theme="blue"] .continue-card { background: #ecf0f2; border-color: var(--line); }:root[data-theme="graphite"] .continue-card { background: #eceeeb; border-color: var(--line); }
.session-date { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; width: 67px; padding: 10px 0; background: #fffef8b8; border: 1px solid #e1dfd4; border-radius: 6px; }.session-date span { font-size: 9px; color: #919181; }.session-date strong { font-size: 30px; font-weight: 500; line-height: 1.2; color: #666b55; margin: 1px 0 3px; }
.session-labels { display: flex; gap: 12px; align-items: center; color: #8d8c7e; font-size: 10px; }.status-badge { color: #777959; background: #e5e7d8; border: 1px solid #dce0cb; font-size: 9px; padding: 3px 7px; border-radius: 4px; }.status-badge::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #8b936d; margin-right: 5px; vertical-align: middle; }
.session-info h3 { font-size: 17px; font-weight: 550; margin: 9px 0; letter-spacing: .025em; }.session-info > p { color: #848576; font-size: 10px; display: flex; gap: 6px; align-items: center; }.session-info p .icon { width: 13px; height: 13px; }.separator { margin: 0 3px; }.session-action { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }.session-action > span { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #909182; }.session-action > span .icon { width: 11px; height: 11px; }.session-action .button { min-height: 37px; padding: 8px 14px; font-size: 11px; background: #fffef9b5; }.session-action .button .icon { width: 16px; height: 16px; }
.materials-section { margin-top: 30px; }.materials-section > .section-heading { margin-bottom: 20px; }.materials-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.filter-tabs { display: flex; gap: 5px; flex-shrink: 0; }.filter-tabs button { display: flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 5px; font-size: 10px; color: var(--muted); }.filter-tabs button[aria-pressed="true"] { color: var(--accent); background: var(--soft); font-weight: 550; }.filter-tabs button:hover { color: var(--accent); }.filter-tabs .icon { width: 12px; height: 12px; }
.material-tools { display: flex; align-items: center; gap: 12px; }.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 8px 10px; border-radius: 5px; }.search-field:focus-within { border-color: var(--accent); }.search-field .icon { width: 14px; height: 14px; color: var(--subtle); }.search-field input { width: 114px; padding: 0; background: none; border: none; outline: none; color: var(--ink); font-size: 10px; }.search-field input::placeholder { color: var(--subtle); }.search-field input:focus-visible { outline: none; }
.sort-control { display: flex; position: relative; align-items: center; }.sort-control select { appearance: none; border: none; background: none; color: var(--muted); padding: 8px 16px 8px 0; font-size: 10px; cursor: pointer; }.sort-control .icon { width: 11px; height: 11px; position: absolute; right: 0; pointer-events: none; color: var(--muted); }.view-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; }.view-switch .icon-button { width: 24px; height: 24px; padding: 5px; border-radius: 3px; }.view-switch .icon { width: 13px; height: 13px; }.view-switch button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }.course-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); }.course-card:hover { transform: translateY(-3px); box-shadow: 0 9px 25px #4038290c; border-color: #d5cdbc; }
.course-cover { position: relative; width: 100%; text-align: left; display: block; height: 195px; padding: 20px 21px; overflow: hidden; }.course-cover.orange { background: var(--material-warm-soft); color: var(--material-warm-accent); }.course-cover.sage { background: #e8ebdf; color: #566349; }.course-cover.blue { background: #e2ebed; color: #476473; }.course-cover::after { content: ''; position: absolute; inset: 8px; border: 1px solid #ffffff42; pointer-events: none; }.cover-kicker { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .08em; opacity: .65; }.course-cover h3 { position: relative; z-index: 1; margin-top: 25px; font-size: 24px; font-weight: 550; line-height: 1.5; letter-spacing: .035em; }.course-cover .cover-art { transform: scale(.77); transform-origin: bottom right; right: 10px; bottom: 23px; opacity: .9; }.course-cover .arch-front::after { background: var(--material-warm-soft); }.course-cover .arch-front { background: var(--art-warm-front); }.course-cover .arch-back { background: var(--art-warm-back); }.cover-bottom { position: absolute; bottom: 17px; left: 21px; right: 21px; font-size: 7px; opacity: .62; display: flex; justify-content: space-between; letter-spacing: .06em; }.cover-bottom > span { font-size: 14px; line-height: 1; }
.course-body { padding: 13px 19px 0; }.course-category { display: flex; justify-content: space-between; align-items: center; }.course-category > span { font-size: 8px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }.favorite-button { width: 25px; height: 25px; padding: 5px; }.favorite-button .icon { width: 15px; height: 15px; }.favorite-button.selected { color: #ae8960; }.favorite-button.selected svg { fill: #e8d6af; }
.course-title { display: block; width: 100%; text-align: left; font-size: 13px; line-height: 1.5; font-weight: 550; margin-top: 8px; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.course-title:hover { color: var(--accent); }
.course-meta { margin: 12px 0 18px; display: flex; gap: 13px; color: var(--muted); font-size: 9px; }.course-meta > span { display: flex; gap: 4px; align-items: center; white-space: nowrap; }.course-meta .icon { width: 12px; height: 12px; color: var(--subtle); }.course-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; gap: 5px; }.course-bottom > span { font-size: 8px; color: var(--subtle); }.course-bottom .text-link { font-size: 10px; color: var(--accent); padding: 2px 0; gap: 6px; }.course-bottom .icon { width: 13px; height: 13px; }
.workspace-footer { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 9px; color: var(--subtle); }.footer-mark { font-size: 14px; color: #aaa595; margin-right: 5px; vertical-align: -1px; }
.empty-state { grid-column: 1 / -1; padding: 50px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }.empty-state > .icon { color: var(--subtle); width: 28px; height: 28px; }.empty-state h3 { font-size: 16px; font-weight: 500; margin: 16px 0 8px; }.empty-state p { color: var(--muted); font-size: 12px; margin-bottom: 20px; }.empty-state .button { font-size: 11px; }
.course-grid.list-view { grid-template-columns: 1fr; }.list-view .course-card { display: flex; }.list-view .course-cover { width: 230px; flex-shrink: 0; height: 177px; }.list-view .course-body { flex: 1; padding-top: 15px; }.list-view .course-cover h3 { font-size: 21px; }.list-view .cover-art { transform: scale(.6); }.list-view .course-title { font-size: 16px; }.list-view .course-meta { font-size: 11px; margin: 16px 0; }.list-view .course-bottom { padding-top: 13px; }.list-view .course-bottom > span { font-size: 10px; }
.records-panel { margin-top: 34px; }.record-row { display: flex; align-items: center; gap: 25px; padding: 24px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; border-radius: 8px; }.record-date { display: flex; flex-direction: column; align-items: center; color: var(--subtle); font-size: 10px; padding-right: 24px; border-right: 1px solid var(--line); }.record-date strong { font-size: 24px; color: var(--ink); font-weight: 500; margin-bottom: 3px; }.record-row h3 { font-size: 14px; font-weight: 500; }.record-row p { font-size: 10px; color: var(--muted); margin-top: 8px; }.record-status { margin-left: auto; color: var(--sage); font-size: 10px; }.record-status .icon { width: 13px; height: 13px; margin-right: 5px; }.record-row > span:not(.record-status) { color: var(--muted); font-size: 10px; }.record-row .text-link { font-size: 10px; }
/* 小型回饋與對話框 */
#toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 9px; border-radius: 7px; background: var(--ink); box-shadow: 0 5px 25px #24282122; color: var(--color-on-primary); padding: 14px 21px; font-size: 12px; transition: opacity .2s, transform .2s; }#toast.visible { transform: translate(-50%, 0); opacity: 1; }#toast .icon { width: 16px; height: 16px; }
dialog { padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 520px; max-width: calc(100vw - 40px); border-radius: 13px; box-shadow: 0 24px 80px #22251826; max-height: calc(100vh - 60px); }dialog::backdrop { background: #34352a44; backdrop-filter: blur(4px); }.modal-header { padding: 26px 28px 20px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }.modal-header .eyebrow { font-size: 9px; }.modal-header h2 { margin-top: 9px; font-size: 21px; font-weight: 550; }.modal-header > .icon-button { margin-right: -7px; margin-top: -7px; }.modal-content { padding: 24px 28px; }.modal-content > p { line-height: 1.9; color: var(--muted); font-size: 13px; }.modal-content > p + p { margin-top: 12px; }.modal-content .modal-intro { margin-bottom: 20px; }.modal-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 18px 28px; }.modal-footer .button { font-size: 12px; }.modal-explainer { background: var(--soft); padding: 15px; border-radius: 6px; display: flex; gap: 10px; font-size: 11px; line-height: 1.9; color: var(--soft-ink); }.modal-explainer > .icon { width: 16px; height: 16px; margin-top: 3px; }.modal-course-cover { height: 255px; border-radius: 6px; padding: 24px; }.modal-course-cover h3 { font-size: 34px; margin-top: 32px; }.modal-course-cover .cover-art { transform: scale(1.12); right: 23px; bottom: 39px; }.modal-course-cover .cover-bottom { bottom: 22px; left: 24px; font-size: 9px; }.modal-content > .preview-course-description { font-size: 11px; margin-top: 18px; }.help-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }.help-steps li { position: relative; counter-increment: step; padding: 0 0 24px 40px; }.help-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 14px; }.help-steps strong { display: block; font-size: 14px; font-weight: 550; }.help-steps span { display: block; color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 7px; }.session-summary { padding: 17px; background: var(--bg); border-radius: 7px; margin-top: 18px; }.session-summary > span { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); padding: 8px 0; }.session-summary strong { color: var(--ink); font-weight: 500; text-align: right; }.created-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: #e7ecdf; color: #71865b; margin-bottom: 17px; }.modal-content > h3 { font-size: 20px; font-weight: 550; margin-bottom: 12px; }
@media (min-width: 1500px) {
  .login-story { padding-left: 12%; padding-right: 12%; }.story-heading { margin-top: 70px; }.paper-scene { margin-top: 45px; transform: scale(1.08); }.login-form-wrap { max-width: 390px; }.login-panel { padding: 36px 50px 30px; }.login-form-wrap h2 { font-size: 35px; }.login-form-wrap > .eyebrow { font-size: 12px; }.login-intro { font-size: 14px; }.role-switch button { font-size: 13px; height: 41px; }.input-shell { min-height: 50px; }.input-shell input { font-size: 13px; }form label { font-size: 13px; }.login-submit { min-height: 51px; }.demo-note { font-size: 11px; }
  .dashboard-main { padding: 44px 56px 28px; }.topbar { padding: 0 56px; }.page-heading h1 { font-size: 35px; }.page-heading > div > p:last-child { font-size: 14px; }.page-heading .eyebrow { font-size: 11px; }.overview-strip { margin-top: 33px; margin-bottom: 34px; padding: 24px 0; }.overview-strip > div > span { font-size: 12px; }.overview-strip strong { font-size: 32px; }.section-heading h2 { font-size: 18px; }.continue-card { padding: 24px 28px; }.materials-section { margin-top: 35px; }.materials-toolbar { margin-bottom: 21px; }.filter-tabs button { font-size: 12px; }.search-field input { font-size: 12px; width: 148px; }.search-field { padding: 10px; }.sort-control select { font-size: 12px; }.course-cover { height: 225px; padding: 24px; }.course-cover h3 { font-size: 29px; margin-top: 30px; }.course-cover .cover-art { transform: scale(.95); bottom: 33px; right: 17px; }.cover-kicker { font-size: 9px; }.cover-bottom { font-size: 8px; left: 24px; right: 24px; bottom: 20px; }.course-body { padding: 15px 23px 0; }.course-title { font-size: 15px; }.course-meta { font-size: 11px; margin: 15px 0 20px; }.course-bottom { padding: 16px 0; }.course-bottom > span { font-size: 10px; }.course-bottom .text-link { font-size: 11px; }.course-category > span { font-size: 10px; }.workspace-footer { font-size: 10px; }
}
@media (min-width: 1800px) { .login-story { padding-left: 16%; }.story-heading h1 { font-size: 67px; }.paper-scene { margin-top: 55px; height: 390px; transform: scale(1.18); transform-origin: center top; }.story-heading { margin-top: 80px; }.login-form-wrap { max-width: 410px; }.login-story { min-height: 940px; }.login-panel { padding-left: 65px; padding-right: 65px; } }
@media (max-width: 1200px) {
  .sidebar { width: 202px; padding-left: 16px; padding-right: 16px; }.workspace { margin-left: 202px; }.dashboard-main { padding: 30px 28px 24px; }.topbar { padding: 0 28px; }.page-heading h1 { font-size: 27px; }.overview-strip > div { padding: 0 17px; gap: 10px; }.overview-strip > .overview-caption { padding: 0 10px; }.overview-caption p { font-size: 10px; }.course-grid { gap: 14px; }.course-body { padding-left: 14px; padding-right: 14px; }.course-cover { padding-left: 17px; padding-right: 17px; height: 180px; }.course-cover h3 { font-size: 21px; }.course-cover .cover-art { transform: scale(.66); right: 5px; bottom: 26px; }.cover-bottom { left: 17px; right: 17px; }.course-meta { gap: 8px; font-size: 8px; }.course-title { font-size: 12px; }.material-tools { gap: 8px; }.filter-tabs button { padding: 8px 9px; }.search-field input { width: 95px; }.continue-card { gap: 18px; padding: 18px; }.session-info h3 { font-size: 15px; }.session-info p { font-size: 9px; }.session-action > span { font-size: 8px; }
  .login-story { padding-left: 8%; padding-right: 8%; }.story-heading { margin-top: 52px; }.main-paper { left: 6px; width: 330px; }.back-paper { left: 40px; width: 325px; }.floating-note { right: -6px; }.paper-scene { margin-top: 35px; }.main-paper .cover-art { right: 0; transform: scale(.7); transform-origin: bottom right; }.main-paper .paper-title { font-size: 29px; }.login-panel { padding-left: 35px; padding-right: 35px; }
}
@media (max-width: 1000px) {
  .login-page { grid-template-columns: 48% 52%; }.login-story { padding: 35px; }.story-heading h1 { font-size: 37px; }.story-heading p { font-size: 12px; }.story-heading .eyebrow { font-size: 10px; }.paper-scene { transform: scale(.87); transform-origin: left center; width: 350px; }.story-footer { gap: 10px; font-size: 8px; }.login-panel { padding: 25px 30px; }.login-tools { gap: 15px; }.topbar-right { gap: 13px; }.topbar-right .theme-toggle span { display: none; }.material-tools .view-switch { display: none; }.materials-toolbar { flex-wrap: wrap; }.course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.overview-strip { grid-template-columns: repeat(3,1fr); }.overview-strip > .overview-caption { display: none; }.overview-strip > div:nth-child(3) { border: 0; }.session-action > span { max-width: 105px; text-align: right; line-height: 1.7; }.session-info p .separator, .session-info p .separator + span { display: none; }.session-info > p { flex-wrap: wrap; }.record-row { gap: 14px; }.record-row > span:not(.record-status) { display: none; }
}
@media (max-width: 760px) {
  .login-page { display: block; }.login-story { min-height: auto; padding: 30px; }.story-heading { margin-top: 40px; }.story-heading h1 { font-size: 40px; }.story-heading p { font-size: 13px; }.paper-scene, .story-footer { display: none; }.login-story { padding-bottom: 38px; }.login-panel { padding: 22px 25px; }.login-form-wrap { padding-top: 30px; padding-bottom: 38px; }.login-tools { justify-content: space-between; }.login-welcome-icon { display: none; }.login-form-wrap > .eyebrow { display: none; }.sidebar { width: 72px; padding: 24px 11px; }.sidebar .brand { margin: 0 0 25px 6px; }.sidebar .brand > span:last-child, .workspace-chip, .nav-label, .nav-count, .little-note, .profile, .sidebar-bottom { display: none; }.nav-item { width: 49px; height: 46px; overflow: hidden; font-size: 0; padding: 15px; gap: 24px; }.nav-item .icon { width: 19px; height: 19px; }.workspace { margin-left: 72px; }.topbar { padding: 0 18px; height: 60px; }.breadcrumb { gap: 7px; font-size: 9px; }.breadcrumb > .icon, .breadcrumb strong { display: none; }.topbar-right { gap: 9px; }.topbar-right .mini-avatar { display: none; }.topbar .preview-label { font-size: 8px; padding: 3px 5px; }.dashboard-main { padding: 25px 19px; }.page-heading { align-items: flex-start; flex-wrap: wrap; gap: 2px; }.page-heading h1 { font-size: 24px; }.page-heading > div > p:last-child { line-height: 1.8; font-size: 11px; }.page-heading > .button { margin-top: 16px; font-size: 11px; min-height: 36px; padding: 8px 11px; }.overview-strip { padding: 15px 0; margin-top: 24px; }.overview-strip > div { padding: 0 12px; }.overview-strip > div > .icon { display: none; }.overview-strip > div > span { font-size: 9px; }.overview-strip strong { font-size: 23px; }.overview-strip small { font-size: 9px; }.section-heading h2 { font-size: 14px; }.section-heading > span { display: none; }.continue-card { flex-wrap: wrap; gap: 14px; padding: 15px; }.session-info { flex: 1; }.session-info h3 { font-size: 13px; line-height: 1.6; }.session-date { width: 54px; }.session-info p { display: none; }.session-action { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }.session-action > span { max-width: none; font-size: 9px; }.session-action .button { min-height: 32px; font-size: 10px; padding: 6px 10px; }.materials-toolbar { gap: 10px; }.material-tools { width: 100%; justify-content: space-between; }.search-field { flex: 1; }.search-field input { width: 100%; }.course-grid { grid-template-columns: 1fr; }.course-cover { height: 205px; padding: 22px; }.course-cover h3 { font-size: 26px; }.course-cover .cover-art { transform: scale(.9); right: 10px; }.course-body { padding: 15px 18px 0; }.course-title { font-size: 14px; }.course-meta { font-size: 10px; gap: 15px; }.workspace-footer { font-size: 8px; }.workspace-footer > span:last-child { display: none; }.record-row { flex-wrap: wrap; padding: 15px; gap: 15px; }.record-row > div:nth-child(2) { flex: 1; }.record-row h3 { font-size: 12px; }.record-row p { font-size: 9px; }.record-status { margin-left: 0; }.record-row .text-link { margin-left: auto; }
}
@media (prefers-reduced-motion: no-preference) { .story-heading, .login-form-wrap, .dashboard-main { animation: appear .45s ease-out both; }.paper-scene { animation: appear .7s ease-out both; } @keyframes appear { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* 桌面第一層：完整卡片與主要操作維持在容易掃讀的位置。 */
@media (min-width: 761px) {
  .dashboard-main { padding-top: 29px; }
  .overview-strip { padding-top: 13px; padding-bottom: 13px; margin-top: 24px; margin-bottom: 24px; }
  .continue-card { padding-top: 13px; padding-bottom: 13px; }
  .materials-section { margin-top: 25px; }
  .materials-section > .section-heading { margin-bottom: 13px; }
  .materials-toolbar { margin-bottom: 15px; }
  .course-cover { height: 185px; }
  .workspace-footer { margin-top: 23px; }
  .nav-item { font-size: 13px; }
  .profile-name, .workspace-chip { font-size: 12px; }
  .breadcrumb { font-size: 12px; }
  .filter-tabs button, .search-field input, .sort-control select { font-size: 11px; }
  .course-category > span, .course-bottom > span { font-size: 10px; }
  .course-meta { font-size: 10px; }
  .course-bottom .text-link { font-size: 11px; }
  .course-cover { align-content: start; }
  .course-cover .cover-kicker { padding-top: 0; }
  .course-cover h3 { margin-top: 24px; }
  .course-cover .cover-art { bottom: 24px; }
  .session-action > span { font-size: 10px; }
  .course-grid.list-view .course-cover { height: 177px; }
}
@media (min-width: 1500px) {
  .course-cover { height: 195px; }
  .course-cover .cover-art { transform: scale(.85); }
  .course-cover h3 { font-size: 27px; margin-top: 23px; }
  .course-body { padding-top: 12px; }
  .course-meta { margin-top: 12px; margin-bottom: 15px; font-size: 11px; }
  .course-bottom { padding-top: 13px; padding-bottom: 13px; }
  .filter-tabs button, .search-field input, .sort-control select { font-size: 12px; }
}
/* 教材大綱：卡片直列；寬版清單善用右側空間，保留原有封面與操作。 */
.course-summary { min-width: 0; }
.course-outline { border-top: 1px solid var(--line); padding: 16px 0 18px; }
.course-outline h4 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; font-weight: 550; letter-spacing: .035em; }
.course-outline h4 > span { color: var(--subtle); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.course-outline ol { margin: 11px 0 0; padding-left: 21px; display: grid; gap: 5px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.course-outline li { padding-left: 3px; overflow-wrap: anywhere; }
.course-outline li::marker { color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
@media (min-width: 1101px) {
  .list-view .course-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, .85fr); column-gap: 25px; padding-top: 19px; }
  .list-view .course-summary { align-self: start; }
  .list-view .course-title { white-space: normal; }
  .list-view .course-outline { border-top: none; border-left: 1px solid var(--line); padding: 0 0 0 25px; margin-bottom: 16px; }
  .list-view .course-outline ol { font-size: 12px; gap: 2px; margin-top: 8px; }
  .list-view .course-bottom { grid-column: 1 / -1; }
  .course-grid.list-view .course-cover { height: auto; min-height: 245px; align-self: stretch; }
  .list-view .course-cover h3 { margin-top: 38px; }
  .list-view .course-cover .cover-art { bottom: 30px; }
}
@media (max-width: 1100px) {
  .list-view .course-body { min-width: 0; }
  .course-grid.list-view .course-cover { height: auto; min-height: 245px; align-self: stretch; }
  .list-view .course-title { white-space: normal; }
}
/* 授課單位：共用工作台樣式，以單位彙整已完成的授課。 */
.institution-heading-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.institution-heading-note .icon { color: var(--accent); width: 17px; height: 17px; }
.institution-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.institution-overview > div:last-child { border-right: none; }
.institution-toolbar .search-field input { width: 195px; }
.institution-result { font-size: 11px; line-height: 1.8; color: var(--muted); margin-bottom: 12px; }
.institution-result:empty { display: none; }
.institution-list { display: grid; gap: 22px; }
.institution-card { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.institution-card-header { padding: 21px 25px 19px; display: flex; align-items: center; gap: 14px; }
.institution-mark { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 21px; font-weight: 500; }
.institution-mark.clay { background: #f1e5d9; color: #a0704f; }.institution-mark.sage { background: #e9eddf; color: #72835f; }.institution-mark.blue { background: #e4edf0; color: #658793; }
.institution-identity { min-width: 0; }.institution-name { display: flex; align-items: center; gap: 11px; }.institution-name h3 { font-size: 17px; font-weight: 550; letter-spacing: .025em; }.institution-type { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; white-space: nowrap; }.institution-identity p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.7; }.institution-identity p > span { margin: 0 8px; color: var(--subtle); }
.institution-total { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }.institution-total > strong { font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }.institution-total small { font-size: 11px; color: var(--muted); font-weight: 400; }.institution-total > span { color: var(--muted); font-size: 10px; }.institution-total > span > span { margin: 0 7px; color: var(--subtle); }
.institution-table { border-collapse: collapse; table-layout: fixed; width: calc(100% - 50px); margin: 0 25px; text-align: left; font-size: 12px; }
.institution-table th, .institution-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); font-weight: 400; }.institution-table thead { background: var(--bg); color: var(--muted); font-size: 10px; }.institution-table thead th { border-bottom: none; }.institution-table thead th:first-child { border-radius: 5px 0 0 5px; width: 52%; }.institution-table thead th:nth-child(2) { width: 14%; }.institution-table thead th:nth-child(3) { width: 15%; }.institution-table thead th:last-child { width: 19%; border-radius: 0 5px 5px 0; }.institution-table tbody tr:last-child th, .institution-table tbody tr:last-child td { border-bottom: none; }.institution-table td { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }.institution-table td strong { color: var(--ink); font-weight: 500; font-size: 13px; }.institution-table td:last-child { color: var(--subtle); }
.unit-course-link { display: inline-flex; align-items: center; gap: 10px; padding: 3px 0; text-align: left; font-size: 12px; line-height: 1.7; }.unit-course-link:hover { color: var(--accent); }.unit-course-link .icon { width: 12px; height: 12px; color: var(--subtle); }.topic-dot { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; }.topic-dot.orange { background: #c49169; }.topic-dot.sage { background: #98a683; }.topic-dot.blue { background: #8da8b4; }
.institution-card-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 11px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }.institution-card-footer p { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--muted); line-height: 1.7; }.institution-card-footer p > .icon { width: 13px; height: 13px; color: var(--subtle); }.unit-planned-label { color: var(--soft-ink); background: var(--soft); border-radius: 3px; padding: 2px 6px; font-size: 9px; }.institution-card-footer .text-link { flex-shrink: 0; color: var(--accent); font-size: 11px; }
.unit-session-list { margin-top: 15px; }.unit-session { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }.unit-session:last-child { border: none; }.unit-session-date { grid-column: 1; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }.unit-session-status { padding: 3px 6px; border-radius: 3px; font-size: 9px; background: #e9edde; color: #617147; }.unit-session-status.planned { background: var(--soft); color: var(--soft-ink); }.unit-session-topic { grid-column: 1; margin-top: 9px; font-size: 13px; line-height: 1.7; }.unit-session > strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-weight: 500; font-size: 20px; }.unit-session > strong > small { font-size: 11px; font-weight: 400; color: var(--muted); }
@media (max-width: 1200px) { .institution-card-header { padding: 19px; }.institution-table { margin: 0 19px; width: calc(100% - 38px); }.institution-table thead th:first-child { width: 46%; }.institution-table thead th:last-child { width: 25%; }.institution-card-footer { padding-left: 19px; padding-right: 19px; } }
@media (max-width: 1000px) { .institution-overview { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 22px; }.institution-overview > div:nth-child(2) { border: none; }.institution-overview > div:nth-child(3) { border-right: 1px solid var(--line); }.institution-heading-note { display: none; }.institution-name h3 { font-size: 15px; }.institution-identity p { font-size: 10px; }.unit-next-course { display: none; } }
@media (max-width: 760px) { .institution-card-header { flex-wrap: wrap; gap: 10px; padding: 16px; }.institution-mark { width: 35px; height: 35px; font-size: 17px; }.institution-identity { flex: 1; }.institution-name { gap: 7px; flex-wrap: wrap; }.institution-name h3 { font-size: 14px; }.institution-identity p { display: none; }.institution-total { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; margin-top: 5px; }.institution-total > strong { font-size: 23px; }.institution-table { margin: 0 12px; width: calc(100% - 24px); }.institution-table th, .institution-table td { padding: 9px 5px; }.institution-table thead th:first-child { width: 49%; }.institution-table thead th:nth-child(2), .institution-table thead th:nth-child(3) { width: 25%; }.institution-table th:last-child, .institution-table td:last-child { display: none; }.unit-course-link { font-size: 11px; gap: 5px; }.unit-course-link .icon { display: none; }.institution-table td { font-size: 10px; }.institution-card-footer { flex-wrap: wrap; padding: 10px 16px; gap: 7px; }.institution-card-footer .text-link { margin-left: auto; }.institution-toolbar .search-field { width: 100%; }.institution-toolbar .search-field input { width: 100%; } }
/* 正式基礎：延續已確認的設計，補上真實資料與編輯狀態。 */
.sidebar a.nav-item { display:flex; }
.form-error { color:var(--color-danger); background:#fcf0eb; border:1px solid #ecd1c8; padding:12px 14px; border-radius:6px; margin:14px 0; font-size:13px; line-height:1.7; }
.login-security-note { text-align:center; color:var(--subtle); font-size:12px; margin-top:28px; }
.student-pending { text-align:center; padding:30px 8px; background:var(--bg); border:1px solid var(--line); border-radius:10px; }
.student-pending>.icon { width:32px; height:32px; color:var(--sage); margin-bottom:18px; }
.student-pending h3 { font-size:19px; margin-bottom:14px; }
.student-pending p { color:var(--muted); line-height:1.9; }
.loading-state { min-height:100vh; display:flex; flex-direction:column; gap:24px; align-items:center; justify-content:center; color:var(--muted); }
.inline-actions { display:flex; gap:24px; align-items:center; }
.unit-empty { display:flex; align-items:center; gap:12px; margin:0 24px; padding:30px 0; color:var(--muted); border-top:1px solid var(--line); }
.institution-identity p { overflow-wrap:anywhere; }
.institution-name h3 { overflow-wrap:anywhere; }
.institution-table th { text-align:left; }
.institution-table th .topic-dot { display:inline-block; margin-right:10px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; column-gap:18px; }
.form-grid label:first-child { grid-column:1; grid-row:1; }
.form-grid .input-shell:nth-child(2) { grid-column:1; grid-row:2; }
.form-grid label:nth-child(3) { grid-column:2; grid-row:1; }
.form-grid .input-shell:nth-child(4) { grid-column:2; grid-row:2; }
.modal-content form { margin-top:20px; }
.modal-content .input-shell input,.modal-content .input-shell select { min-width:0; width:100%; }
.unit-session-topic small { display:block; color:var(--muted); font-size:12px; margin-top:7px; font-weight:400; }
.unit-session-topic strong { font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.unit-session { grid-template-columns:110px minmax(0,1fr) 90px auto; gap:20px; }
.unit-session-status.cancelled { background:#efeeeb; color:var(--muted); }
.planning-panel { border:1px solid var(--line); border-radius:10px; background:var(--surface); padding:8px 26px; }
.planning-panel .unit-session-list { border:0; }
.planning-panel .unit-session { padding:22px 0; }
.getting-started { display:flex; align-items:center; justify-content:space-between; padding:35px 38px; background:var(--story); border-radius:10px; margin-top:32px; }
.getting-started h2 { margin:15px 0 12px; font-size:23px; font-weight:550; }
.getting-started p { color:var(--muted); line-height:1.8; }
.getting-started .text-link { color:var(--accent); margin-top:20px; }
.getting-started-art { display:grid; place-items:center; width:105px; height:105px; border:1px solid var(--story-deep); border-radius:52% 48% 35% 65%; color:var(--accent); transform:rotate(-8deg); margin:0 20px; }
.getting-started-art .icon { width:42px; height:42px; }
.stage-note { margin-top:24px; color:var(--muted); line-height:1.8; font-size:12px; }
.account-list { display:grid; gap:16px; }
.account-card { display:flex; align-items:center; gap:20px; padding:24px 28px; border:1px solid var(--line); background:var(--surface); border-radius:10px; }
.account-info { flex:1; min-width:0; }
.account-info h3 { font-size:17px; }
.account-info h3 small { font-size:12px; color:var(--subtle); font-weight:400; }
.account-info p { margin-top:6px; color:var(--muted); }
.role-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.role-chips span { padding:4px 8px; font-size:11px; border-radius:4px; background:var(--bg); color:var(--muted); }
.status-badge.inactive { color:var(--subtle); background:var(--bg); }
.roles-field { padding:16px; border:1px solid var(--line); border-radius:7px; margin:24px 0 14px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.roles-field legend { padding:0 7px; font-size:13px; }
.roles-field label,.active-choice { display:flex; align-items:center; gap:8px; margin:0; }
.roles-field input,.active-choice input { accent-color:var(--accent); }
.account-hint { padding:12px 15px; border-radius:7px; background:var(--bg); color:var(--muted); margin-bottom:20px; }
.audit-list { list-style:none; padding:0; }
.audit-list li { padding:20px 0; border-bottom:1px solid var(--line); }
.audit-list time { display:block; margin-top:9px; color:var(--muted); }
.profile-name { min-width:0; overflow-wrap:anywhere; }
@media(max-width:1100px) { .inline-actions { gap:15px; } .unit-session { grid-template-columns:95px minmax(0,1fr) 75px auto; gap:12px; } .getting-started { padding:28px; } }
@media(max-width:700px) { .form-grid { display:block; } .account-card { flex-wrap:wrap; } .unit-session { grid-template-columns:90px minmax(0,1fr); } .unit-session>strong { grid-column:2; } .getting-started-art { display:none; } }
.unit-session-date { grid-column:1; grid-row:1; flex-direction:column; align-items:flex-start; justify-content:center; }
.unit-session-topic { grid-column:2; grid-row:1; margin:0; align-self:center; }
.unit-session>strong { grid-column:3; grid-row:1; }
.unit-session>button { grid-column:4; grid-row:1; }
dialog.wide { width:740px; }
@media(max-width:700px) { .unit-session>strong { grid-column:2; grid-row:2; } .unit-session>button { grid-column:2; grid-row:3; justify-self:start; } }
.institution-mark.orange { background:#f1e5d9; color:#a0704f; }
@media(max-height:820px) { .sidebar .little-note { display:none; } .sidebar { overflow-y:auto; } }
/* 教材工作空間：沿用暖色紙感與安靜的閱讀節奏。 */
.material-status { color: var(--accent); font-size: 12px; margin: 16px 0 0; }
.material-owner { color: var(--subtle); font-size: 11px; }
a.course-cover, a.course-title { text-decoration: none; }
a.course-cover { display: block; }
.course-cover h3 { max-width: 84%; position: relative; z-index: 1; }
.material-context { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:12px; margin-bottom:25px; }
.material-commandbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:25px; }
.material-commandbar h2 { font-size:26px; margin:0 0 10px; letter-spacing:.015em; }
.material-commandbar p { color:var(--muted); font-size:13px; line-height:1.8; margin:0; max-width:650px; }
.material-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.material-actions .button { padding:11px 15px; font-size:12px; min-height:42px; }
.page-ribbon { display:flex; gap:12px; overflow-x:auto; padding:5px 0 18px; }
.page-ribbon button { width:174px; min-width:174px; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:9px; text-align:left; display:flex; flex-direction:column; gap:8px; }
.page-ribbon button[aria-pressed=true] { border-color:var(--accent); background:var(--soft); }
.page-ribbon span { font-size:11px; color:var(--accent); }
.page-ribbon strong { font-size:13px; font-weight:550; line-height:1.6; }
.page-ribbon small { font-size:10px; color:var(--muted); white-space:nowrap; text-overflow:ellipsis; overflow:hidden; max-width:100%; }
.preview-mode { display:flex; justify-content:space-between; align-items:center; margin:8px 0 15px; }
.preview-mode p { display:flex; align-items:center; gap:8px; font-size:13px; }
.preview-mode p span { margin-left:10px; color:var(--subtle); font-size:11px; }
.material-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:22px; align-items:start; }
.material-editor-layout.learner-mode { grid-template-columns:minmax(0,1fr); }
.material-stage { min-width:0; }
.deck-viewport { width:100%; position:relative; background:#faf8f2; box-shadow:0 8px 35px #453b2c0b; border:1px solid var(--line); overflow:hidden; }
.deck-page { width:2880px; min-height:1864px; transform-origin:top left; background:#faf8f2; padding:125px 170px 95px; color:#393b32; display:flex; flex-direction:column; box-sizing:border-box; font-family:inherit; }
.deck-header,.deck-footer { display:flex; justify-content:space-between; font-size:32px; letter-spacing:.09em; color:#928b7b; }
.deck-header { border-bottom:2px solid #ddd7c7; padding-bottom:42px; }
.deck-page > h1 { font-size:132px; font-weight:600; letter-spacing:.01em; line-height:1.35; margin:120px 0 70px; overflow-wrap:anywhere; }
.deck-content { flex:1; }
.deck-heading { font-size:86px; line-height:1.5; font-weight:500; margin:35px 0; white-space:pre-wrap; }
.deck-text { font-size:62px; line-height:1.85; color:#68695b; margin:40px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.deck-list { font-size:62px; line-height:1.8; margin:40px 0; padding-left:80px; }
.deck-list li { padding:15px 0 15px 20px; white-space:pre-wrap; overflow-wrap:anywhere; }
.deck-list li::marker { color:#b45e40; }
.deck-cards { display:grid; gap:40px; margin:65px 0; }
.columns-1 { grid-template-columns:1fr; }.columns-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }.columns-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }.columns-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.deck-cards article { background:#f0e8d8; border:2px solid #e7dbc5; border-radius:32px; padding:60px; }
.deck-cards article > span { color:#ad6348; font-size:42px; }
.deck-cards p { font-size:60px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.deck-table { width:100%; border-collapse:collapse; margin:50px 0; font-size:54px; table-layout:fixed; }
.deck-table th,.deck-table td { text-align:left; border-bottom:2px solid #ded7c6; padding:35px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.deck-table th { background:#f0e8d8; font-weight:500; }
.deck-footer { margin-top:100px; padding-top:45px; border-top:2px solid #ddd7c7; }
.deck-page.sage { background:#f5f6ed; }.deck-page.sage .deck-cards article,.deck-page.sage th { background:#e7ebdc; border-color:#d8dfca; }
.deck-page.blue { background:#f0f5f5; }.deck-page.blue .deck-cards article,.deck-page.blue th { background:#e0eaec; border-color:#cbdce0; }
.preview-footnote { color:var(--subtle); font-size:11px; text-align:center; margin:16px 0; }
.material-edit-panel { border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:22px; min-width:0; }
.edit-panel-heading h3,.private-note h3 { margin:0; font-size:15px; display:flex; gap:7px; align-items:center; }
.edit-panel-heading p,.private-note > p { font-size:11px; color:var(--muted); line-height:1.8; }
.material-edit-panel label { display:block; font-size:11px; color:var(--muted); margin:20px 0 8px; line-height:1.5; }
.material-edit-panel textarea { width:100%; resize:vertical; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink); font:inherit; font-size:13px; line-height:1.8; padding:10px 12px; min-height:66px; box-sizing:border-box; }
.material-edit-panel textarea:focus { outline:2px solid var(--accent); outline-offset:2px; }
.editor-save { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-top:16px; }
.editor-save > span { font-size:11px; color:var(--muted); }.editor-save .button,.private-note .button { font-size:12px; padding:10px 15px; min-height:40px; }
.private-note { margin-top:28px; padding-top:25px; border-top:1px solid var(--line); }
.private-note .button { margin-top:12px; }.private-note .icon { width:16px; height:16px; color:var(--accent); }
.material-origin { margin-top:24px; color:var(--muted); font-size:11px; }.material-origin code,.material-identity code { overflow-wrap:anywhere; font-size:10px; }
.revision-banner { background:var(--soft); color:var(--accent); padding:18px; border-radius:8px; display:flex; align-items:center; gap:20px; font-size:13px; margin-bottom:20px; }
.material-history article { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); }.material-history article > div:last-child { display:flex; gap:18px; }.material-history p,.material-history small { font-size:12px; color:var(--muted); }.published-tag { font-size:10px; padding:4px 8px; border-radius:4px; background:var(--soft); color:var(--accent); margin-left:12px; }
.material-diff article { margin-bottom:22px; font-size:12px; }.material-diff del,.material-diff ins { display:block; padding:12px; white-space:pre-wrap; overflow-wrap:anywhere; margin-top:8px; }.material-diff del { background:#f7e9e1; color:#865342; }.material-diff ins { background:#edf1e4; color:#53643e; text-decoration:none; }
@media(max-width:1400px){.material-commandbar{align-items:flex-start;flex-direction:column;}.material-editor-layout{grid-template-columns:minmax(0,1fr) 290px;gap:16px;}.material-edit-panel{padding:18px;}}
@media(max-width:1050px){.material-editor-layout{grid-template-columns:1fr;}.material-actions{flex-wrap:wrap;}.material-context{gap:15px;}.material-edit-panel{max-width:none;}}
.material-metadata { margin-top:24px; border-top:1px solid var(--line); padding-top:18px; }
.material-metadata summary { cursor:pointer; font-size:12px; color:var(--muted); }
.editor-save { margin-top:12px; position:sticky; top:-22px; background:var(--surface); padding:12px 0; z-index:2; border-bottom:1px solid var(--line); }
@media(min-width:1051px){.material-stage{position:sticky;top:24px;}.material-edit-panel{max-height:760px;overflow-y:auto;scrollbar-width:thin;}}
.course-cover h3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.material-tools .search-field input { width:155px; }
/* 暖陶橙的插圖與次要區塊，統一使用杏色、棕色的色溫。 */
:root[data-theme="terracotta"] .story-heading .eyebrow,
:root[data-theme="terracotta"] .story-heading p,
:root[data-theme="terracotta"] .story-footer,
:root[data-theme="terracotta"] .little-note p,
:root[data-theme="terracotta"] .little-note-icon { color:var(--muted); }
:root[data-theme="terracotta"] .tiny-line,
:root[data-theme="terracotta"] .scene-small-dot,
:root[data-theme="terracotta"] .story-footer i { background:var(--art-warm-back); }
:root[data-theme="terracotta"] .scene-orbit,
:root[data-theme="terracotta"] .scene-orbit::after { border-color:var(--story-deep); }
:root[data-theme="terracotta"] .scene-cross { color:var(--art-warm-front); }
:root[data-theme="terracotta"] .back-paper { background:var(--story-deep); border-color:var(--art-warm-back); color:var(--soft-ink); }
:root[data-theme="terracotta"] .back-paper-lines { background:repeating-linear-gradient(transparent 0 28px,#caa88b 28px 29px); }
:root[data-theme="terracotta"] .main-paper,
:root[data-theme="terracotta"] .floating-note,
:root[data-theme="terracotta"] .floating-people { background:var(--surface); border-color:var(--line); }
:root[data-theme="terracotta"] .main-paper .arch-front::after { background:var(--surface); }
:root[data-theme="terracotta"] .main-paper .arch-back { background:var(--art-warm-back); }
:root[data-theme="terracotta"] .main-paper .arch-front { background:var(--art-warm-front); }
:root[data-theme="terracotta"] .paper-title,
:root[data-theme="terracotta"] .floating-people strong { color:var(--ink); }
:root[data-theme="terracotta"] .paper-kicker,
:root[data-theme="terracotta"] .main-paper > p,
:root[data-theme="terracotta"] .paper-bottom,
:root[data-theme="terracotta"] .floating-people small { color:var(--muted); }
:root[data-theme="terracotta"] .paper-bottom { border-color:var(--line); }
:root[data-theme="terracotta"] .little-note > svg { stroke:var(--story-deep); }
.deck-page.orange { background:var(--material-warm-paper); color:var(--material-warm-ink); }
.deck-page.orange .deck-header,.deck-page.orange .deck-footer,.deck-page.orange .deck-text { color:var(--material-warm-muted); }
.deck-page.orange .deck-header,.deck-page.orange .deck-footer,.deck-page.orange th,.deck-page.orange td { border-color:var(--material-warm-line); }
.deck-page.orange .deck-cards article,.deck-page.orange th { background:var(--material-warm-soft); border-color:var(--material-warm-line); }
.deck-page.orange .deck-list li::marker,.deck-page.orange .deck-cards article > span { color:var(--material-warm-accent); }

/* Material assets share the studio palette and typography. */
.asset-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.asset-toolbar .input-shell{max-width:330px;margin:0}.asset-toolbar p{color:var(--muted);font-size:13px}.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.asset-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 8px 28px #342e2905}.asset-preview{height:210px;background:var(--soft);position:relative;display:grid;place-items:center;border-bottom:1px solid var(--line);padding:24px}.asset-preview img{width:100%;height:100%;object-fit:contain}.asset-version{position:absolute;top:14px;right:14px;background:var(--surface);padding:5px 10px;border-radius:20px;font-size:11px;color:var(--muted);border:1px solid var(--line)}.asset-file-symbol{display:grid;justify-items:center;gap:16px;color:var(--accent)}.asset-file-symbol .icon{width:48px;height:48px}.asset-file-symbol strong{font-size:13px;letter-spacing:.14em}.asset-card-body{padding:22px}.asset-card-body h3{font-size:17px;line-height:1.6;margin:0;overflow-wrap:anywhere}.asset-card-body>p{font-size:12px;color:var(--muted);margin:8px 0 22px}.asset-card-body footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px}.asset-card-body footer .text-link{font-size:13px}.asset-upload-zone{display:grid;gap:14px;justify-items:center;padding:28px 20px;border:1px dashed var(--accent);background:var(--soft);border-radius:12px;margin:24px 0;color:var(--ink)}.asset-upload-zone>.icon{width:36px;height:36px;color:var(--accent)}.asset-upload-zone>span{font-size:13px;color:var(--muted)}.asset-upload-zone input{max-width:100%;font-size:14px}.asset-upload-zone input::file-selector-button{border:1px solid var(--line);background:var(--surface);padding:9px 12px;border-radius:6px;color:var(--ink);margin-right:12px}.asset-detail h3{overflow-wrap:anywhere}.asset-detail>p{color:var(--muted);font-size:14px}.asset-detail h4{margin:28px 0 12px}.asset-version-list>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}.asset-version-list small{display:block;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.asset-uses{padding:0;list-style:none;max-height:240px;overflow:auto}.asset-uses li{padding:12px 0;border-bottom:1px solid var(--line)}.asset-uses a{color:var(--accent);display:block}.asset-uses span{font-size:12px;color:var(--muted)}.deck-image{margin:30px 0 45px}.deck-image img{display:block;width:100%;height:800px;object-fit:contain;background:var(--material-warm-soft);border-radius:24px}.deck-image figcaption{font-size:34px;color:var(--material-warm-muted);text-align:center;margin:24px 0;white-space:pre-wrap}.deck-resource{display:flex;gap:45px;align-items:center;background:var(--material-warm-soft);border:2px solid var(--material-warm-line);border-radius:24px;padding:50px;color:var(--material-warm-ink);text-decoration:none}.deck-resource-symbol{font-size:80px;color:var(--material-warm-accent)}.deck-resource strong{display:block;font-size:48px}.deck-resource small{display:block;font-size:32px;margin-top:16px;white-space:pre-wrap}.deck-resource-action{margin-left:auto;white-space:nowrap;font-size:32px;color:var(--material-warm-accent)}@media(max-width:1200px){.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-toolbar{align-items:flex-start;flex-direction:column;gap:8px}}@media(max-width:700px){.asset-grid{grid-template-columns:1fr}}
.asset-library{margin-top:34px}.asset-library .count-badge{display:inline-block;margin-left:10px;padding:3px 9px;background:var(--soft);border-radius:5px;color:var(--muted);font-size:12px;font-weight:400;vertical-align:middle}

/* Edit text in its actual layout; metadata and private notes stay below the page. */
.material-editor-layout.inline-layout{grid-template-columns:minmax(0,1fr)}
.inline-layout .material-edit-panel{max-height:none;overflow:visible;margin-top:24px}
.inline-edit-toolbar{position:sticky;top:0;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin-bottom:18px;box-shadow:0 4px 16px #342e2908}
.inline-edit-toolbar>span{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.inline-edit-toolbar>div{display:flex;align-items:center;gap:16px}.inline-edit-toolbar [role=status]{font-size:12px;color:var(--muted)}
.deck-page [data-inline-path]{cursor:text;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;outline:3px solid transparent;outline-offset:12px;transition:outline-color .15s,background-color .15s;min-height:1.4em}
.deck-page [data-inline-path]:hover{outline-color:var(--line);background:#a84c2105}
.deck-page [data-inline-path]:focus{outline-color:var(--accent);background:#a84c2109}
.deck-page [data-inline-path]:empty:before{content:'點此輸入文字';color:var(--muted);opacity:.65;pointer-events:none}
.deck-resource-action{text-decoration:none}.deck-resource-action:hover{text-decoration:underline}
.inline-layout .material-metadata{margin-top:8px}.inline-layout .private-note{max-width:800px}
@media(max-width:700px){.inline-edit-toolbar{align-items:flex-start;flex-direction:column}.inline-edit-toolbar>div{width:100%;justify-content:space-between}}
.inline-layout .material-stage{position:static}
.deck-page-number{font-variant-numeric:tabular-nums;white-space:nowrap}
#modal.all-pages-dialog{width:min(1320px,calc(100vw - 48px));max-width:1320px}
.all-pages-dialog .modal-content{background:var(--bg)}
.all-pages-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 26px}.all-pages-summary h3{margin:0 0 8px;font-size:20px}.all-pages-summary p,.all-pages-summary>span{font-size:13px;color:var(--muted);margin:0}
.all-pages-preview{display:grid;gap:36px}.all-pages-label{display:flex;justify-content:space-between;gap:16px;margin:0 0 12px;font-size:13px;color:var(--muted)}.all-pages-label strong{color:var(--accent);font-weight:500}.all-pages-item{min-width:0}.all-pages-item .deck-viewport{border-radius:4px}.all-pages-dialog .modal-footer{background:var(--surface)}
@media(max-width:700px){.all-pages-summary{align-items:flex-start;flex-direction:column}#modal.all-pages-dialog{width:calc(100vw - 24px)}}
.all-pages-dialog .modal-header{position:sticky;top:0;z-index:2;background:var(--surface)}.all-pages-dialog .modal-footer{position:sticky;bottom:0;z-index:2}
.all-pages-preview{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.all-pages-item{background:var(--surface);padding:12px;border:1px solid var(--line);border-radius:12px;transition:box-shadow .15s,border-color .15s}
.all-pages-item[draggable=true]{cursor:grab}.all-pages-item.dragging{opacity:.4}.all-pages-item.drop-target{outline:3px solid var(--accent);outline-offset:3px}
.thumbnail-sheet{pointer-events:none;overflow:hidden;border-radius:4px}.thumbnail-caption{padding:12px 0 0;font-size:13px}.thumbnail-caption>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thumbnail-caption>div{display:flex;justify-content:space-between;margin-top:12px}.thumbnail-caption button{font-size:12px}.thumbnail-caption button:disabled{opacity:.3;cursor:default}
.all-pages-label{font-size:11px;gap:8px}.all-pages-label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.all-pages-summary>span{max-width:460px;line-height:1.8}#order-status{color:var(--accent);font-size:13px}
@media(max-width:1000px){.all-pages-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.all-pages-preview{grid-template-columns:1fr}}
.material-files{margin-top:32px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.material-files h3{margin:0 0 10px}.material-files .section-heading p{font-size:14px;color:var(--muted);margin:0}.material-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.material-file-card{display:flex;gap:16px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0}.material-file-card>img,.material-file-symbol{width:76px;height:76px;object-fit:contain;border-radius:8px;background:var(--bg);flex-shrink:0}.material-file-symbol{display:grid;place-items:center}.material-file-card>div{min-width:0}.material-file-card strong{display:block;overflow-wrap:anywhere;font-size:14px}.material-file-card small{display:block;color:var(--muted);margin:8px 0}.material-file-actions{display:flex;gap:16px;font-size:13px}.material-files .stage-note{margin-bottom:0}
.design-foundation{padding:32px;background:var(--soft);border:1px solid var(--line);border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:36px}.design-foundation h2{font-size:24px;margin:12px 0}.design-foundation p{color:var(--muted);line-height:1.8}.design-swatches{display:flex;gap:18px;flex-shrink:0}.design-swatches span{font-size:12px;color:var(--muted);text-align:center}.design-swatches span:before{content:'';display:block;background:var(--swatch);width:44px;height:44px;border-radius:50%;border:1px solid var(--line);margin-bottom:10px}.component-filters{margin-bottom:24px}.component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.component-card{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.component-card-heading{padding:24px 24px 12px}.component-card-heading>span{font-size:12px;color:var(--muted)}.component-card-heading>span+span{float:right;color:var(--accent)}.component-card h3{font-size:22px;margin:12px 0}.component-card-heading p{font-size:14px;color:var(--muted);line-height:1.8}.component-example{margin:0 20px 20px;pointer-events:none;border-radius:8px;overflow:hidden}.component-variant{display:flex;align-items:center;gap:12px;padding:0 24px 16px;font-size:13px;color:var(--muted)}.component-variant select{width:auto;padding:6px 24px 6px 10px}.component-card[hidden]{display:none}
@media(max-width:1100px){.material-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.design-foundation{align-items:flex-start;flex-direction:column}}@media(max-width:700px){.component-grid,.material-file-grid{grid-template-columns:1fr}.material-files{padding:18px}.material-files .section-heading{align-items:flex-start;flex-direction:column;gap:16px}}

.design-swatches .swatch-paper{--swatch:#faf8f5}.design-swatches .swatch-sand{--swatch:#f0e2d3}.design-swatches .swatch-clay{--swatch:#a84c21}.design-swatches .swatch-ink{--swatch:#342e29}

.component-contract { margin: 0 24px 24px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; }
.component-contract summary { cursor: pointer; color: var(--ink); }
.component-contract summary span { float: right; color: var(--muted); font-size: 12px; }
.component-contract dl { display: grid; grid-template-columns: 100px 1fr; gap: 12px; line-height: 1.7; }
.component-contract dt { color: var(--ink); }
.component-contract dd { margin: 0; overflow-wrap: anywhere; }

.page-tool-options { display:grid; gap:12px; margin:24px 0; }
.page-picks { max-height:360px; overflow:auto; margin:18px 0; border:1px solid var(--line); border-radius:12px; }
.page-pick { display:flex!important; align-items:center; gap:12px; padding:14px 18px; margin:0!important; border-bottom:1px solid var(--line); cursor:pointer; }
.page-pick:last-child { border-bottom:0; }
.page-pick input { width:18px; height:18px; flex-shrink:0; accent-color:var(--accent); }
.page-pick small { display:block; color:var(--muted); margin-top:4px; }

.teaching-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-bottom:24px; }
.teaching-card { border:1px solid var(--line); border-radius:16px; padding:28px; background:var(--surface); }
.teaching-card h3 { margin:18px 0 12px; font-size:22px; }
.teaching-card p { color:var(--muted); line-height:1.7; }
.teaching-card .course-bottom { margin-top:24px; }
.teaching-actions { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; }
.session-history { border-top:1px solid var(--line); padding-top:20px; }
.session-history summary { cursor:pointer; }
.teaching-summary p { line-height:1.8; }
@media(max-width:800px){.teaching-grid{grid-template-columns:1fr;}}

/* Classroom shares the teaching workspace palette and material renderer. */
.classroom-join{max-width:520px;margin:8vh auto;padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:20px}.classroom-join h1{font-size:30px;margin:18px 0}.classroom-join form{display:grid;gap:16px;margin:24px 0}.classroom-reader{max-width:1600px;margin:auto;padding:32px}.classroom-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding-bottom:24px}.classroom-toolbar h2{margin:8px 0}.classroom-toolbar #connection{color:var(--muted);font-size:14px}.classroom-control{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-bottom:24px;padding:24px;background:var(--soft);border-radius:14px}.classroom-control label{display:block;margin-bottom:12px}.classroom-control input{display:block;width:100%;margin-top:8px}.attendance-panel{margin-top:24px}.attendance-row{display:flex;align-items:center;gap:18px;padding:16px 0;border-top:1px solid var(--line);flex-wrap:wrap}.attendance-row span,.attendance-row time{font-size:14px;color:var(--muted)}.attendance-row .text-link{margin-left:auto}@media(max-width:800px){.classroom-reader{padding:16px}.classroom-toolbar{align-items:flex-start;flex-direction:column}.classroom-control{grid-template-columns:1fr;padding:16px}.classroom-join{margin:24px 16px;padding:24px}}

/* Institution-owned course composition shares the material card renderer. */
.course-steps{display:flex;gap:24px;list-style:none;padding:24px 0;margin:0 0 24px;border-bottom:1px solid var(--border,#e7dfd5);color:var(--muted,#887c70)}
.course-steps [aria-current]{color:var(--accent,#aa4c23);font-weight:700}
.course-name-form{max-width:680px;display:grid;gap:16px;padding:32px;background:var(--surface,#fff);border:1px solid var(--border,#e7dfd5);border-radius:16px}
.course-name-form input,.course-name-form textarea,#course-minutes{padding:14px;border:1px solid var(--border,#e7dfd5);border-radius:8px;font:inherit;background:#fff;color:inherit}
.course-name-form textarea{min-height:100px;resize:vertical}
.course-sticky{position:sticky;bottom:12px;background:var(--surface,#fff);border:1px solid var(--border,#e7dfd5);border-radius:12px;padding:20px;display:flex;gap:20px;justify-content:space-between;align-items:center;box-shadow:0 8px 30px #55321a14;margin-top:24px;z-index:5}
.course-selected{outline:2px solid #b15a32;outline-offset:-2px}
.course-select{display:flex;align-items:center;gap:10px;cursor:pointer;color:#a94e28;font-weight:600}
.course-select input{width:20px;height:20px;accent-color:#a94e28}
.course-description{color:var(--muted,#887c70);line-height:1.7;margin:12px 0}
.course-wizard .course-outline ol{max-height:none;overflow:visible}
.course-order{display:grid;gap:16px;margin:24px 0}.course-order article{padding:24px;cursor:grab}.course-order .inline-actions{margin-top:16px}.course-order .dragging{opacity:.5}
.course-unit-list{display:grid;gap:20px;margin-top:28px}.course-unit-list .planning-panel{padding:28px}
.course-wizard #course-create{margin-top:28px}.course-wizard #course-create .inline-actions{margin-top:24px}
@media(max-width:800px){.course-sticky{flex-direction:column;align-items:stretch;bottom:0}.course-sticky .inline-actions{flex-wrap:wrap}.course-steps{gap:10px;font-size:13px}.course-name-form{padding:20px}.course-wizard .materials-toolbar{flex-wrap:wrap}.course-bottom{flex-wrap:wrap}}
.course-breadcrumb{justify-content:flex-start;gap:12px;flex-wrap:wrap}
.course-wizard .course-grid.grid-view{align-items:start}
@media(max-width:650px){.course-wizard .course-grid.list-view .course-card{display:block}.course-wizard .course-grid.list-view .course-cover{height:220px;min-height:220px;width:100%}.course-wizard .course-cover h3{max-width:70%}.course-wizard .course-select{min-height:40px}.course-wizard .course-sticky .button{padding:12px}.course-wizard .materials-toolbar .search-field{max-width:100%}}
.course-preparation{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--surface,#fff);padding:22px 26px;border:1px solid var(--line);border-radius:12px;margin:24px 0 12px}.course-preparation p{margin:4px 0}.course-source-history{margin-top:30px;padding:20px;border-top:1px solid var(--line)}
@media(max-width:900px){.course-preparation{align-items:flex-start;flex-direction:column}.course-preparation .inline-actions{flex-wrap:wrap}}
