:root{--paper:#f6f3ec;--card:#fffdf8;--ink:#263d36;--muted:#78817a;--orange:#c96136;--line:#e5e4da;--green:#54755c;--soft:#eff2e9;--danger:#ae4940}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{border:1px solid transparent;border-radius:9px;background:var(--ink);color:white;padding:9px 18px;cursor:pointer;font-weight:600}button:hover{filter:brightness(1.08)}button:disabled{opacity:.45;cursor:not-allowed}button.quiet{background:transparent;color:var(--ink);border-color:var(--line)}button.orange{background:var(--orange)}button.danger{color:var(--danger);background:#fff2ee}button.small{padding:4px 11px;font-size:13px}a{color:inherit;text-decoration:none}a:hover{color:var(--orange)}input,select{padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);max-width:100%}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;font-weight:650;letter-spacing:1px;margin-bottom:8px}h2{font-size:21px}h3{font-size:17px}small,.muted{color:var(--muted)}.demo-banner{text-align:center;background:#eee7d7;color:#73644a;font-size:12px;padding:5px 12px}.header{display:flex;align-items:center;justify-content:space-between;gap:25px;max-width:1240px;margin:auto;padding:24px 32px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:22px;font-weight:650;white-space:nowrap}.brand-mark{width:43px;height:43px;border-radius:14px;background:var(--orange);color:#fff;display:grid;place-items:center;font-family:serif;font-size:25px}.brand small{display:block;font-size:10px;letter-spacing:3px;font-weight:400}.header nav{display:flex;gap:24px}.nav-link{color:var(--muted);padding:12px 0;border-bottom:2px solid transparent;background:none;border-radius:0;font-size:14px}.nav-link.active{color:var(--ink);border-bottom-color:var(--orange)}#identity{font-size:12px;text-align:right}#identity select{font-size:12px;padding:5px}main{max-width:1176px;min-height:68vh;margin:34px auto 60px;padding:0 28px}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0}.eyebrow{color:var(--orange);font-size:11px;letter-spacing:3px;margin-bottom:10px;font-weight:700}.hero p{color:var(--muted);margin-bottom:0}.date-stamp{text-align:right;font-size:13px;white-space:nowrap;color:var(--muted)}.overview{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.child-card,.panel{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:23px}.child-card{position:relative;transition:transform .15s,box-shadow .15s}.child-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #273a3210}.child-card .avatar{background:#e9efdf;color:var(--green);font-family:serif;font-size:25px;width:49px;height:49px;display:grid;place-items:center;border-radius:50%;margin-bottom:18px}.child-card:nth-child(2) .avatar{background:#f5e6d9;color:#9e693f}.child-card:nth-child(3) .avatar{background:#e6ecee;color:#5b7883}.child-card:nth-child(4) .avatar{background:#eee6ed;color:#8a6480}.child-card h2{margin-bottom:3px}.stats{display:flex;gap:25px;margin:22px 0}.stats strong{font-size:26px;display:block;line-height:1.3;font-weight:550}.stats small{font-size:11px}.child-card button{width:100%}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:32px 0 15px}.section-heading h2{margin:0}.split{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.note-card{background:#eaf0e5;padding:26px;border-radius:15px}.note-card h3{font-family:serif;font-size:23px;font-weight:500}.note-card p{font-size:14px;color:#61725f}.tip{padding:11px 15px;background:var(--soft);border-radius:8px;font-size:13px;color:#5b705c;margin:15px 0}.warning{background:#fbefdf;color:#946d38}.badge{display:inline-block;font-size:11px;border-radius:5px;padding:2px 8px;background:var(--soft);color:var(--green);white-space:nowrap}.badge.orange{color:#ad5b33;background:#f8e9dc}.badge.red{color:var(--danger);background:#faece8}.badge.gray{background:#eee;color:#777}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.tabs button{background:transparent;color:var(--muted);border-color:var(--line)}.tabs button.active{background:var(--ink);color:white;border-color:var(--ink)}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.task-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.task-group{min-width:0}.group-title{display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:0}.group-title .dot{width:8px;height:8px;background:var(--orange);border-radius:50%}.group-title.review .dot{background:var(--green)}.work-row{padding:18px 0;border-bottom:1px solid var(--line)}.work-row:last-child{border-bottom:0}.work-title{background:transparent;color:var(--ink);padding:0;border:0;text-align:left;font-family:serif;font-size:20px;font-weight:600}.work-title:hover{color:var(--orange)}.meta{font-size:12px;color:var(--muted)}.task-note{font-size:13px;margin:8px 0 0;color:#7b725d}.record-control{margin-top:12px;display:flex;gap:7px;flex-wrap:wrap}.record-control button{padding:5px 10px;font-size:12px;background:white;color:var(--muted);border-color:var(--line)}.record-control button.chosen{border-color:var(--green);background:var(--soft);color:var(--ink)}.grade-control{margin-top:9px}.empty{padding:30px 12px;text-align:center;color:var(--muted);font-size:14px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-grid label{font-size:13px;display:flex;flex-direction:column;gap:6px}.editor-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:13px 0;border-bottom:1px solid var(--line)}.editor-item input{width:100%;font-size:12px;margin-top:8px}.search{width:100%;margin-bottom:14px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.resource-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:21px}.poem-preview{font-family:serif;color:#647268;font-size:15px;margin:17px 0;white-space:pre-line}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:500;font-size:12px}td .work-title{font-size:16px}.metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.metric{border-radius:10px;background:var(--soft);padding:14px}.metric strong{font-size:23px;display:block}.metric span{font-size:12px;color:var(--muted)}.history-item{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.history-item p{margin-bottom:4px}.timeline-date{font-size:11px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;padding:32px;width:min(600px,92vw);max-height:85vh;overflow:auto;color:var(--ink);background:var(--card)}dialog::backdrop{background:#152b255c;backdrop-filter:blur(3px)}.dialog-close{float:right;padding:4px 9px!important;font-size:12px}.poem-full{font:21px/2.1 "Songti SC","STSong",serif;white-space:pre-line;margin:30px 0;text-align:center}.detail-heading{font-family:serif;font-size:28px;margin-bottom:5px}.login{max-width:530px;margin:60px auto}.login button{margin:6px}.login textarea{width:100%}.invite-output{word-break:break-all;user-select:all;padding:14px;background:var(--soft);border-radius:8px;font-size:12px}footer{max-width:1120px;margin:0 auto;padding:20px 25px 30px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;padding:12px 23px;max-width:90vw;box-shadow:0 8px 30px #0002;z-index:20;font-size:14px}.public-children{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.public-children button.active{background:var(--orange)}.readonly{border-left:3px solid #becbb7;padding-left:12px;color:var(--muted);font-size:13px}.grant{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.header:empty{display:none}[hidden]{display:none!important}@media(max-width:900px){.overview{grid-template-columns:repeat(2,1fr)}.resource-grid{grid-template-columns:repeat(2,1fr)}.header{flex-wrap:wrap;padding:15px 24px;gap:14px}.header nav{order:3;width:100%;justify-content:center;gap:30px}.split{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:580px){main{padding:0 16px;margin-top:24px}.header{padding:14px 16px}.brand{font-size:19px}.brand-mark{width:37px;height:37px}.header nav{gap:24px}.nav-link{font-size:13px;padding:6px 0}.hero{margin:20px 0;align-items:flex-start}.hero h1{font-size:25px}.date-stamp{display:none}.hero p{font-size:13px}.child-card,.panel{padding:18px}.overview{gap:10px}.child-card .avatar{margin-bottom:12px}.child-card h2{font-size:20px}.stats{gap:18px;margin:15px 0}.stats strong{font-size:23px}.child-card button{font-size:12px;padding:8px 5px}.task-columns,.resource-grid,.form-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(3,1fr);gap:8px}.metric{padding:10px}.section-heading{align-items:flex-start}.section-heading h2{font-size:19px}.actions button{font-size:12px;padding:8px 12px}footer span{display:none}.demo-banner{font-size:10px}.grant{flex-wrap:wrap}.tabs{gap:6px}.tabs button{font-size:12px;padding:7px 12px}}
.import-report{margin-top:18px;overflow-wrap:anywhere}.import-report pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.import-report img{max-width:100%;max-height:320px}.import-report summary{cursor:pointer;font-weight:600}.import-report .task-columns>section{min-width:0}.import-report li{margin-bottom:8px;font-size:13px}
.work-images figure{margin:12px 0}.poem-image{max-width:100%;max-height:480px;object-fit:contain}.priority-details{max-width:100%;overflow-wrap:anywhere;font-size:13px}.priority-preview li{margin:12px 0}.priority-settings{margin-top:18px}.priority-settings select{max-width:100%;margin:12px 0}
.maintenance-dialog { width: min(760px, 94vw); max-height: 90vh; overflow: auto; padding: 24px; border: 1px solid var(--line, #ddd); border-radius: 16px; }
.maintenance-dialog label, .version-review label { display: block; margin: 12px 0; }
.maintenance-dialog textarea, .version-review select { width: 100%; max-width: 100%; }
.correction-preview, .version-preview { margin-top: 16px; }
.version-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Reading and controls stay usable with long source text and small screens. */
.reading-material{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.poem-full,.meta,.task-note,.history-source,.work-title{overflow-wrap:anywhere}
.editor-item{grid-template-columns:minmax(0,1fr) auto}.editor-item>div{min-width:0}
.resource-card,.child-card{min-width:0}.table-wrap{max-width:100%}
.import-completeness{margin-top:18px}.formal-import-panel label{display:block;margin:16px 0}
@media(max-width:580px){
  .header nav{justify-content:flex-start;gap:0;max-width:100%;flex-wrap:wrap}
  .header nav button{flex:0 0 auto;padding:10px 12px;min-height:44px}
  #identity{max-width:48%}.brand{min-width:0}
  .editor-item{grid-template-columns:minmax(0,1fr)}
  .editor-item>.actions{justify-content:flex-end}
  .record-control button,.tabs button,.editor-item button,.login button,.child-card button,.task-group .work-title,.section-heading>button,#identity button{min-height:44px}
  .dialog-close{position:sticky;top:0;z-index:1;min-height:44px;min-width:44px;background:var(--card)!important}
  .record-control{gap:8px}.grade-control{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero>.actions{width:100%}.hero:has(>.actions){flex-wrap:wrap}
  .section-heading{flex-wrap:wrap}.section-heading>.actions{width:100%;justify-content:flex-end}
  dialog,.maintenance-dialog{padding:20px;max-height:88dvh}.poem-full{font-size:20px;text-align:left}
  .import-report pre{font-size:14px}
}

.vacant-card{min-height:148px;display:grid;place-items:center;border-style:dashed;color:var(--muted)}
.vacant-card h2{margin:0}
.overview-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:16px}
.overview-pagination button{min-height:44px}
.review-set+.review-set{margin-top:14px;border-top:3px solid var(--line)}
.review-set>.work-row:last-child{border-bottom:0}
.task-evaluation-status{margin:9px 0 0}
.detail-evaluation{margin:18px 0;padding:14px;border-radius:10px;background:var(--soft)}
.detail-evaluation h3{margin:0}
.detail-evaluation button{min-height:44px}
@media(max-width:580px){
  .child-card .stats{flex-wrap:wrap;gap:5px 14px}
  .child-card .meta,.child-card button{overflow-wrap:anywhere}
  .overview-pagination button{padding-inline:12px}
}

.task-navigation{margin-bottom:8px}
.task-navigation button{min-height:44px}
.simple-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.simple-metrics button{min-height:64px}
.simple-metrics button[aria-pressed=true]{border-color:var(--green);background:var(--soft)}
.plain-works{padding:0;list-style:none;margin:0}
.plain-works li{display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:8px 0}
.plain-works .work-title{min-height:44px}
.profile-works .plain-works li{flex-wrap:nowrap;overflow-x:auto}
.profile-works .plain-works .work-title{flex:0 0 auto;white-space:nowrap}
.profile-work-metadata{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;white-space:nowrap;color:var(--muted);font-size:12px}
.library-list{display:grid;gap:12px}
@media(max-width:580px){
  .task-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .task-navigation button{padding:5px;font-size:12px}
}


/* Family V2.1: compact, accessible mobile-first reading and task controls. */
.formal-workbench .hero .eyebrow,.formal-workbench .date-stamp{display:none}
.formal-workbench .hero{margin:14px 0 10px}
.formal-workbench .hero h1,.formal-workbench .simple-heading{font-size:20px;line-height:1.4;letter-spacing:0;font-weight:650;margin:12px 0 9px}
.formal-workbench .task-summary{margin:0 0 4px}
.formal-workbench .task-summary .simple-heading{margin:8px 0 6px}
.formal-workbench .task-date-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:16px;margin:0 0 8px}
.formal-workbench .child-tabs-formal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0 15px}
.formal-workbench .child-tabs-formal button,.formal-workbench .child-placeholder{min-width:0;min-height:42px;padding:7px 1px;font-size:13px;display:grid;place-items:center;text-align:center;line-height:1.25;border:1px solid var(--line);border-radius:8px}
.formal-workbench .child-placeholder{color:var(--muted);border-style:dashed;background:transparent;cursor:default}
.formal-workbench .task-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0}
.formal-workbench .task-navigation button{min-width:0;min-height:42px;padding:6px 4px;line-height:1.35;font-size:13px}
.formal-workbench .work-title{font-family:inherit;font-size:15px;font-weight:540;line-height:1.6;letter-spacing:0}
.formal-workbench .work-row{padding:9px 0}
.formal-workbench .task-columns{grid-template-columns:1fr 1fr;gap:12px}
.formal-workbench .task-group,.formal-workbench .library-list .panel,.formal-workbench .review-search-panel{padding:15px}
.formal-workbench .task-group .group-title,.formal-workbench .panel h2{font-size:16px}
.formal-workbench .task-group .group-title{padding-bottom:9px}
.formal-workbench .work-row .task-evaluation .record-control,.formal-workbench .work-row .task-evaluation .review-guidance,.formal-workbench .work-row .task-evaluation small{display:none}
.formal-workbench .work-row .task-evaluation-status{margin:2px 0 0;font-size:11px}
.formal-workbench .editor-item{padding:8px 0}
.formal-workbench .editor-item .work-title{font-size:14px}
.formal-workbench .editor-item .actions button{font-size:12px}
.formal-workbench .plain-works li{padding:4px 0;gap:8px}
.formal-workbench .plain-works .work-title{min-height:39px;font-size:14px}
.formal-workbench .plain-works .meta{font-size:11px}
.formal-workbench .library-list{gap:10px}
.formal-workbench .study-date-picker{display:flex;align-items:center;justify-content:flex-start;gap:8px;font-size:14px;margin:6px 0}
.formal-workbench .study-date-picker input{font-size:14px;max-width:195px;min-height:40px;padding:6px 9px;border-radius:9px;background:#fff}
.formal-workbench .search-result-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0;gap:8px}
.formal-workbench .search-result-row>span{min-width:0}
.formal-workbench .search-result-row button{flex-shrink:0}
.formal-workbench .reading-material{font-size:14px;line-height:1.85}
.formal-workbench .detail-heading{font-size:21px}
.formal-workbench .poem-full{font-size:18px;line-height:1.95;margin:16px 0}
@media(max-width:580px){
 .formal-workbench .task-columns{grid-template-columns:1fr;gap:10px}
 .formal-workbench .simple-heading,.formal-workbench .hero h1{font-size:19px}
 .formal-workbench .child-tabs-formal{gap:4px}
 .formal-workbench .child-tabs-formal button,.formal-workbench .child-placeholder{font-size:12px;padding:7px 0}
 .formal-workbench .task-date-row{font-size:15px;gap:6px}
 .formal-workbench .panel{padding:14px}
 .formal-workbench .editor-item>.actions{justify-content:flex-start}
 .formal-workbench .search-result-row{flex-wrap:wrap}
}

/* Compact parent task workspace */
.formal-workbench #nav .nav-link:nth-child(-n+3){font-size:14px;white-space:nowrap;line-height:1.2}
.formal-workbench .task-navigation{grid-template-columns:repeat(3,minmax(0,1fr))}
.formal-workbench .task-columns{gap:10px}
.formal-workbench .task-columns + .section-heading{margin-top:10px}
.formal-workbench .task-columns>.panel,.formal-workbench .publish-summary{padding:12px}
.formal-workbench .task-columns h2,.formal-workbench .publish-summary h2{font-size:17px;margin-bottom:4px;padding-bottom:4px}
.formal-workbench .task-columns .empty{margin:0;padding:8px;font-size:13px}
.formal-workbench .task-columns .search{margin:8px 0 4px}
.formal-workbench .task-date-row,.formal-workbench .study-date-picker{margin-block:4px}
.formal-workbench .compact-task-row{padding:0}
.compact-work-line{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
.formal-workbench .compact-work-line .work-title{font-size:15px;flex:0 1 auto;min-width:0;max-width:58%;overflow:hidden;text-overflow:ellipsis}
.compact-work-line .meta{overflow:hidden;text-overflow:ellipsis;line-height:1.25}
.compact-editor-work{min-width:0}
.compact-editor-work summary{color:var(--muted);font-size:12px;cursor:pointer}
.formal-workbench .editor-item{padding:4px 0}
.formal-workbench .editor-item .actions{gap:4px}
.formal-workbench .editor-item .actions button{padding-inline:8px}
.publish-child{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:9px 0}
.publish-summary>.orange{margin-top:8px}
.formal-workbench [aria-label="分享内容"]{display:block;width:100%;min-height:7em;margin-top:8px}
@media(max-width:580px){
 .formal-workbench .header{padding-block:8px;gap:6px}
 .formal-workbench .header nav{column-gap:6px;row-gap:0;flex-wrap:wrap}
 .formal-workbench .header nav button{padding-inline:0}
 .formal-workbench #nav .nav-link:nth-child(-n+3){font-size:13px}
 .formal-workbench main{margin-top:8px}
 .formal-workbench .compact-work-line .work-title{min-height:44px}
 .formal-workbench .editor-item{grid-template-columns:minmax(0,1fr) auto;column-gap:4px}
 .publish-child{font-size:12px;gap:5px}
}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media(max-width:360px){.formal-workbench .header{padding-inline:7px}}

/* V2.3: compact, unmistakable primary navigation and reading identity */
.formal-workbench #nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-items:stretch}
.formal-workbench #nav .nav-link:nth-child(-n+3){min-width:0;min-height:44px;padding:8px 3px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);text-align:center}
.formal-workbench #nav .nav-link:nth-child(-n+3).active{background:#f5e9dd;border-color:var(--orange);color:#784b2f}
.formal-workbench #nav .nav-link:not(:nth-child(-n+3)){grid-column:1/-1;justify-self:end;font-size:12px;padding:2px 8px}
.formal-workbench .brand{font-size:19px;gap:8px}
.formal-workbench .brand-mark{width:38px;height:38px;border-radius:9px}
.formal-workbench .brand-mark svg{width:27px;height:27px}
.formal-workbench #identity .host-identity{white-space:nowrap;font-size:12px;font-weight:600}
.formal-workbench .batch-share-panel{margin-top:10px}
.formal-workbench .batch-share-panel .actions button{min-width:96px;min-height:44px}
@media(max-width:580px){.formal-workbench #nav{width:100%;column-gap:5px;row-gap:3px}.formal-workbench .header{column-gap:5px}.formal-workbench .brand{font-size:17px}.formal-workbench .brand small{letter-spacing:1px}.formal-workbench #identity{max-width:42%}.formal-workbench #nav .nav-link:nth-child(-n+3){font-size:13px;padding-inline:2px}}

/* V2.3 consolidated reading interface: distinguish function from participant. */
.formal-workbench .task-navigation{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;margin:12px 0 0;padding:7px;
  border:1px solid #e8e0d5;border-radius:12px;background:#f1eee8;
}
.formal-workbench .task-navigation button{
  min-height:44px;border:1px solid transparent;background:transparent;
  color:#66655e;border-radius:9px;font-size:13px;padding:8px 4px;font-weight:550;
}
.formal-workbench .task-navigation button.active{
  background:#fff9f1;border-color:#dbac83;color:#9b542c;
  box-shadow:0 1px 3px #42230d10;
}
.formal-workbench .child-tabs-formal{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;margin:17px 0 13px;padding:2px 0 0;
}
.formal-workbench .child-tabs-formal button,
.formal-workbench .child-tabs-formal .child-placeholder{
  min-height:44px;min-width:0;border-radius:22px;
  border:1px solid #d8dde3;background:#fffdf9;color:#576574;
  font-size:13px;font-weight:500;
}
.formal-workbench .child-tabs-formal button.active{
  border-color:#95a8bd;background:#e9eef5;color:#314c68;font-weight:650;
}
.formal-workbench .child-tabs-formal .child-placeholder{
  border-style:dashed;background:#f7f6f3;color:#929aa0;
}
.formal-workbench .task-kind-new{border-color:#f0d8c6;border-top:3px solid #d88a53;background:#fff2e6}
.formal-workbench .task-kind-review{border-color:#d0e2dc;border-top:3px solid #5d9d8f;background:#edf4e9}
.formal-workbench .task-kind-new .group-title,.formal-workbench .task-kind-new>h2{color:#9b582d}
.formal-workbench .task-kind-review .group-title,.formal-workbench .task-kind-review>h2{color:#367669}
.formal-workbench .task-kind-new .badge{background:#f9e6d8;color:#8b4e2b}
.formal-workbench .task-kind-review .badge{background:#e1f1eb;color:#346d60}
.formal-workbench .task-kind-new .group-title .dot{background:#d88a53}
.formal-workbench .task-kind-review .group-title .dot{background:#5d9d8f}
.formal-workbench .compact-task-row{display:flex;align-items:center;gap:6px;min-width:0}
.formal-workbench .task-sequence{
  flex:0 0 24px;text-align:right;color:#85877f;font-size:12px;
  font-variant-numeric:tabular-nums;
}
.formal-workbench .task-submit-row{justify-content:flex-start;margin-top:16px}
.formal-workbench #work-dialog{padding:22px 24px;border-radius:16px;background:#fffdf9}
.formal-workbench #work-body .detail-index{margin:0 0 8px;letter-spacing:1.4px;font-size:11px}
.formal-workbench #work-body .detail-heading{font-size:25px;line-height:1.4;margin:0 0 3px;font-weight:650}
.formal-workbench #work-body .detail-byline{font-size:13px;margin:0 0 16px;color:#767e7c}
.formal-workbench #work-body .poem-full{
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;
  font-size:20px;line-height:2.0;white-space:pre-wrap;
  text-align:center;margin:10px 0 22px;padding:16px 6px;
  background:#fbf7ef;border-radius:10px;overflow-wrap:anywhere;
}
.formal-workbench #work-body .poem-full.classical-prose{
  font-size:18px;line-height:2;text-align:left;padding:16px 17px;
}
.formal-workbench #work-body .detail-section-heading{
  font-size:15px;line-height:1.5;margin:17px 0 7px;padding-left:9px;
  border-left:3px solid #d5aa84;color:#554c40;
}
.formal-workbench #work-body .reading-material{
  font-size:14px;line-height:1.9;color:#424a47;margin:0 0 12px;
}
.formal-workbench #work-body .detail-evaluation{
  background:#fff;border:1px solid #e7ded1;border-radius:12px;
  padding:14px 16px;margin:24px 0 3px;
}
.formal-workbench #work-body .detail-evaluation h3{font-size:16px;margin:0 0 12px}
.formal-workbench #work-body .new-evaluation-compact{display:grid;grid-template-columns:1fr;gap:9px}
.formal-workbench #work-body .new-evaluation-compact button{
  min-height:46px;font-size:14px;text-align:center;border:1px solid #dedbd2;
  color:#3d4945;background:#fff;
}
.formal-workbench #work-body .new-evaluation-compact button.chosen{
  border-color:#cf8c59;background:#f9e9da;color:#85502d;
}
@media(max-width:580px){
 .formal-workbench .task-navigation{margin-top:8px;gap:4px;padding:5px}
 .formal-workbench .task-navigation button{font-size:12px;padding:7px 2px}
 .formal-workbench .child-tabs-formal{gap:5px;margin:15px 0 12px}
 .formal-workbench #work-dialog{padding:15px 14px;max-width:96vw}
 .formal-workbench #work-body .detail-heading{font-size:22px}
 .formal-workbench #work-body .poem-full{font-size:19px;padding:12px 8px}
 .formal-workbench #work-body .poem-full.classical-prose{font-size:17px}
 .formal-workbench .compact-task-row .task-sequence{flex-basis:20px;font-size:11px}
}

/* Primary navigation and task subsections use different selected indicators. */
.formal-workbench #nav .nav-link:nth-child(-n+3).active{
  background:var(--ink);border-color:var(--ink);color:white;font-weight:700;
}
.formal-workbench .task-navigation{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding-inline:0}
.formal-workbench .task-navigation button{border:0;border-radius:0;border-bottom:3px solid transparent}
.formal-workbench .task-navigation button.active{
  background:transparent;border-color:var(--orange);box-shadow:none;font-weight:700;color:var(--ink);
}
.formal-workbench .batch-share-link{display:block;width:100%;max-width:100%;min-height:4em;resize:vertical;overflow-wrap:anywhere}
.formal-workbench .task-submit-row>button{min-height:44px}

/* More separation between global navigation and each catalogue filter. */
.formal-workbench .profile-child-tabs,
.formal-workbench .library-stage-tabs{margin:24px 0 16px}
.formal-workbench .profile-child-tabs button,
.formal-workbench .profile-child-tabs .child-placeholder,
.formal-workbench .library-stage-tabs button{min-height:44px}
.formal-workbench .profile-child-tabs button.active,
.formal-workbench .library-stage-tabs button.active{box-shadow:inset 0 -3px 0 #d79b6b}
.formal-workbench .simple-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.formal-workbench .simple-metrics .metric{display:grid;gap:2px;justify-items:center;align-content:center;padding:8px 4px}
.formal-workbench .simple-metrics .metric[aria-pressed="true"]{box-shadow:inset 0 0 0 1px var(--green)}
.profile-works h2{margin-bottom:6px}
.library-stage-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:480px}
.library-count{margin:0 0 8px}
.library-search{max-width:480px}
.formal-workbench .editor-item>.actions{justify-content:flex-end}
.formal-workbench .task-completion{
  flex:0 0 44px;min-height:44px;padding:0;display:grid;place-items:center;
  background:transparent;border:0;border-radius:6px;color:#2e6540;
}
.task-completion>span{display:grid;place-items:center;width:22px;height:22px;border:1px solid #9a9e95;border-radius:4px;background:#fff;font-size:16px;line-height:1}
.task-completion.is-done>span{background:#e6f2e8;border-color:#54755c;font-weight:700}
.shared-child{margin:0 0 12px}
.shared-child h2,.shared-child h3{margin:0 0 4px}
@media(max-width:580px){
 .formal-workbench .profile-child-tabs,.formal-workbench .library-stage-tabs{margin-top:19px}
 .formal-workbench .simple-metrics{gap:7px}
}

.formal-workbench .task-navigation.task-steps{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:4px}
.task-step-arrow{color:var(--muted);font-size:14px}
.formal-workbench #nav .nav-paused{display:grid;align-content:center;line-height:1.25;color:#666e67;cursor:default}
.nav-paused small{display:block;font-size:10px}
.account-menu summary{cursor:pointer;color:var(--muted);font-size:12px}
.account-menu[open] summary{margin-bottom:3px}
.formal-workbench #identity .host-identity{white-space:normal;overflow-wrap:anywhere}
.formal-workbench .editor-save-row{justify-content:flex-start;flex-wrap:wrap}
.formal-workbench .editor-save-row > .actions{order:-1;justify-content:flex-start}
.formal-workbench .compact-work-line{flex-wrap:wrap;row-gap:0}
.formal-workbench .compact-work-line .work-title{max-width:100%}
.formal-workbench .compact-work-line .meta{white-space:normal;overflow-wrap:anywhere}
.work-byline{font-size:13px;color:var(--ink);white-space:normal;overflow-wrap:anywhere}
.work-byline:empty,.work-classification:empty{display:none}

.formal-workbench .task-navigation.task-steps{align-items:stretch}
.formal-workbench .task-steps .task-step-arrow{align-self:center}
.formal-workbench .task-steps button{display:grid;justify-items:center;align-content:start;gap:2px;padding:7px 2px}
.task-step-number{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--soft);color:var(--ink);font-weight:700}
.task-steps button.active .task-step-number{background:var(--ink);color:white}
.task-step-detail{display:grid;font-size:11px;font-weight:400;line-height:1.35}
.piece-submit{display:flex;justify-content:flex-end;margin-top:12px}
.piece-submit button{min-height:44px;min-width:84px}


.formal-workbench #work-dialog.task-work-dialog{width:min(600px, calc(100% - 32px));max-height:calc(100% - 32px)}
.batch-task-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:12px}
.batch-task-card img{width:clamp(78px,24%,140px);height:auto;border-radius:7px}
.batch-task-card div{display:grid;gap:2px;min-width:0}
.batch-card-title{font-size:16px}

.formal-workbench #work-dialog.task-work-dialog{padding-top:0}
.task-work-dialog .work-dialog-actions{
  position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;
  padding:6px 0;background:#fffdf9
}
.task-work-dialog .dialog-close{
  position:static;float:none;min-height:44px;min-width:56px
}
.task-work-metadata{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
 
#work-dialog:not(.task-work-dialog) .work-dialog-actions{display:contents}

/* Keep initial focus on the dialog heading for screen readers. */
#work-detail-title:focus{outline:none}
.editor-task-group .search::placeholder{color:#6f7871;opacity:1}
.shared-batch-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:20px 0}
.shared-batch-heading h1{min-width:0;margin:0;overflow-wrap:anywhere}
.shared-batch-back{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:56px;min-height:44px;padding:4px 10px;background:var(--card);border:1px solid var(--line);border-radius:9px;font-weight:600}
.shared-child .task-columns{gap:10px}

.task-card.task-kind-new{--task-accent:#874c27;--task-tint:#f4d4bd;--task-border:#dfb997;--task-surface:#fff2e6}
.task-card.task-kind-review{--task-accent:#42634d;--task-tint:#d5e4d1;--task-border:#adc7b1;--task-surface:#edf4e9}
#app .task-columns>.task-card{padding:0;min-width:0;border:1px solid var(--task-border);background:var(--task-surface,var(--card))}
#app .task-card .group-title{font-size:17px;margin:0;padding:10px 12px;background:var(--task-tint);color:var(--task-accent);border-color:var(--task-border);border-radius:14px 14px 0 0}
.task-card-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--card);font-size:17px;line-height:1}
#app .task-card .group-title .badge{margin-inline-start:auto;background:var(--card);color:var(--task-accent)}
.task-card .compact-task-row{padding:0;margin:0 10px}
.task-card .task-row-trigger{display:grid;grid-template-columns:24px minmax(0,1fr) 44px;align-items:center;gap:6px;width:100%;min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--ink);text-align:left}
.task-card .task-row-trigger.read-only-task-row{grid-template-columns:24px minmax(0,1fr)}
.task-card .task-row-trigger:hover{background:var(--soft);filter:none}
.task-card .task-row-trigger>.compact-work-line{display:grid;gap:4px;min-width:0;white-space:normal}
.task-card .task-row-trigger .work-title{font-family:inherit;font-size:15px;font-weight:600;line-height:1.45;min-height:0;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
#app .task-card .task-sequence,.task-card .task-work-metadata{color:#59665c;font-size:12px;font-weight:400;line-height:1.4}
.task-card .task-work-metadata .work-byline,.task-card .task-work-metadata .meta{color:inherit;font-size:inherit}

.task-card .empty{margin:0;padding:8px;font-size:13px;color:#59665c}

.batch-share-status:empty{margin:0}


/* Keep the existing evaluation container and responsive columns. */
.grade-control button.review-grade-card{min-width:80px;padding:5px 10px;white-space:normal;line-height:1.35;text-align:center}
.review-grade-card .review-grade-name{display:block;font-size:12px;font-weight:500;color:var(--ink)}
.review-grade-card .review-grade-description{display:block;contain:inline-size;margin-top:3px;font-size:10px;font-weight:400;line-height:1.4;color:#707870;white-space:normal;overflow-wrap:anywhere}

/* Owner-only management workspace. Existing parent and task layouts are unchanged. */
.admin-workbench main{max-width:1280px}
.admin-workspace{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start}
.admin-sidebar{position:sticky;top:24px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 12px}
.admin-sidebar-brand{padding:0 12px 15px;font-size:15px;font-weight:650;border-bottom:1px solid var(--line);margin-bottom:10px}
.admin-sidebar nav{display:grid;gap:5px}
.admin-menu-item{width:100%;text-align:left;background:transparent;color:var(--ink);border:1px solid transparent;border-radius:8px;padding:11px 12px;font-size:14px;min-height:44px}
.admin-menu-item.active{background:var(--soft);border-color:#d5dfd0;color:#304e3d;font-weight:650}
.admin-content{min-width:0}
.admin-content>.panel,.admin-content>.admin-feature-list{margin-bottom:18px}
.admin-page-heading{margin:0 0 22px}
.admin-page-heading .meta{margin:0 0 4px}
.admin-page-heading h1{font-size:27px;line-height:1.4;margin:0;font-family:inherit}
.admin-content h2{font-size:18px;margin-bottom:14px}
.admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.admin-stat{padding:19px 22px}
.admin-stat strong{display:block;font-size:30px;font-weight:600;line-height:1.5}
.admin-table-wrap{max-width:100%;overflow:auto}
.admin-content table{width:100%;white-space:normal}
.admin-content td,.admin-content th{overflow-wrap:anywhere}
.admin-feature-list article{padding:16px 0;border-top:1px solid var(--line)}
.admin-feature-list h3{font-size:15px;margin:0 0 6px}
.admin-planned{font-size:13px;color:var(--muted)}
.admin-content .advanced-maintenance>.panel{margin-top:18px}
.admin-content .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-content select,.admin-content input,.admin-content textarea{max-width:100%;min-width:0}
@media(max-width:760px){
  .admin-workspace{grid-template-columns:minmax(0,1fr);gap:18px}
  .admin-sidebar{position:static;padding:12px}
  .admin-sidebar-brand{padding-bottom:10px;margin-bottom:8px}
  .admin-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .admin-menu-item{font-size:13px;padding:9px 10px}
  .admin-stats{gap:8px}.admin-stat{padding:12px}.admin-stat strong{font-size:24px}
  .admin-page-heading h1{font-size:23px}.admin-content .form-grid{grid-template-columns:minmax(0,1fr)}
}

.admin-workbench #nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}

/* One owner PC header layout across daily pages and the management workspace. */
@media(min-width:761px){
  html.owner-pc-navigation{scrollbar-gutter:stable}
  .owner-pc-navigation .header{display:grid;grid-template-columns:minmax(0,1fr) 320px minmax(0,1fr);column-gap:16px;row-gap:14px}
  .owner-pc-navigation .header .brand{grid-column:1;grid-row:1;justify-self:start}
  .owner-pc-navigation .header #identity{grid-column:3;grid-row:1;justify-self:end;max-width:100%}
  .owner-pc-navigation .header #nav{display:grid;grid-template-columns:repeat(4,74px);gap:8px;width:320px;max-width:none;grid-column:2;grid-row:1;justify-self:center;order:0}
  .owner-pc-navigation .header #nav .nav-link{display:flex;align-items:center;justify-content:center;grid-column:auto;justify-self:stretch;min-width:0;width:74px;min-height:44px;height:44px;margin:0;padding:8px 3px;border-width:1px;font-size:14px;line-height:1.2;white-space:nowrap}
}
@media(min-width:761px) and (max-width:900px){
  .owner-pc-navigation .header{grid-template-columns:repeat(2,minmax(0,1fr))}
  .owner-pc-navigation .header #identity{grid-column:2}
  .owner-pc-navigation .header #nav{grid-column:1/-1;grid-row:2}
}

/* Match the unchanged brand size on each existing responsive layout. */
.reading-plan-heading h1{font-size:22px}
.formal-workbench .reading-plan-heading h1{font-size:19px}
@media(max-width:580px){.reading-plan-heading h1{font-size:19px}.formal-workbench .reading-plan-heading h1{font-size:17px}}
.work-title-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;min-width:0;overflow-wrap:anywhere}
.work-title-line>*{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.detail-heading .work-title{font:inherit;color:inherit}
.work-source{font-size:12px;font-weight:400;color:#59665c;line-height:1.5}
.task-card .task-work-metadata{display:block}
.publish-summary .publish-actions{margin-top:16px}
.reading-members-note{color:#000;text-align:center;font-weight:700}

/* Saved appearance follows acknowledged draft content; generation always keeps its normal orange. */
.editor-save-row button.orange[data-draft-saved="true"]{background:#e7b49d;color:#52392e}
.reading-plan-heading{display:grid;grid-template-columns:60px minmax(0,1fr) 60px;align-items:start}
.reading-plan-heading h1{grid-column:1/-1;grid-row:1;text-align:center;font-weight:700;overflow-wrap:anywhere;white-space:normal}
.reading-plan-heading.has-back h1{padding-inline:60px}
.reading-plan-heading .shared-batch-back{grid-column:3;grid-row:1;justify-self:end;z-index:1}
.reading-members-note{font-size:24px;overflow-wrap:anywhere;white-space:normal}
.task-submit-row{gap:12px;flex-wrap:wrap}
.progress-save-status.warning{color:#963e24}


/* Read-only learning dashboard: compact overview, expandable per-child detail. */
.dashboard-overview{display:grid;gap:12px}
.dashboard-section{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:17px 20px;min-width:0}
.dashboard-section h2,.dashboard-details h2{font-size:17px;margin:0}
.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.dashboard-section-heading .meta{margin:0}
.dashboard-grade-grid,.dashboard-state-grid,.dashboard-progress-grid{display:grid;gap:10px}
.dashboard-grade-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
.dashboard-state-grid,.dashboard-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}
.dashboard-stat-card{min-width:0;min-height:83px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--soft);color:var(--ink);text-align:left;display:flex;flex-direction:column;gap:4px}
.dashboard-stat-card[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.dashboard-stat-title{color:var(--muted);font-size:13px}
.dashboard-stat-numbers{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.dashboard-stat-value{font-size:24px;line-height:1.2;font-weight:650}
.dashboard-stat-percentage{font-size:20px;line-height:1.2;font-weight:650;white-space:nowrap}
.dashboard-stat-unit,.dashboard-stat-note{font-size:12px;color:var(--muted)}
.dashboard-state-grid .dashboard-stat-card{min-height:95px}
.dashboard-progress-item{min-width:0;background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:13px 15px;display:grid;gap:7px}
.dashboard-progress-heading,.dashboard-progress-legends{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.dashboard-progress-heading strong{font-size:14px}
.dashboard-progress-percent{font-size:17px!important}
.dashboard-progress-count{display:flex;align-items:baseline;gap:5px;color:var(--muted);font-size:13px}
.dashboard-progress-count strong{color:var(--ink);font-size:21px;line-height:1.2}
.dashboard-progress-track{height:10px;background:#dedfd6;border-radius:999px;overflow:hidden}
.dashboard-progress-fill{height:100%;border-radius:999px}
.dashboard-progress-fill.learning{background:#e79a3d}
.dashboard-progress-fill.review{background:#579c76}
.dashboard-progress-legends{font-size:11px;color:var(--muted)}
.dashboard-details{margin-top:0}
@media(max-width:900px){.dashboard-grade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboard-section{padding:12px}.dashboard-grade-grid,.dashboard-state-grid,.dashboard-progress-grid{gap:7px}.dashboard-progress-grid{grid-template-columns:1fr}.dashboard-stat-card{padding:10px;min-height:79px}.dashboard-stat-percentage{font-size:19px}.dashboard-stat-title{font-size:12px}.dashboard-stat-note{font-size:11px}.dashboard-section h2{font-size:16px}}

/* Prevent narrow iPhone WebKit from expanding the dashboard viewport. */
.dashboard-overview,.dashboard-section,.dashboard-grade-grid,.dashboard-state-grid,.dashboard-progress-grid,.dashboard-details{min-width:0;max-width:100%}
.dashboard-stat-card,.dashboard-progress-item{min-width:0;max-width:100%}
.dashboard-stat-title,.dashboard-stat-numbers,.dashboard-stat-percentage{min-width:0}
@media(max-width:390px){
  .dashboard-section{padding:10px 8px}
  .dashboard-grade-grid,.dashboard-state-grid{gap:6px}
  .dashboard-stat-card{padding:9px 7px}
  .dashboard-stat-value{font-size:20px}
  .dashboard-stat-percentage{font-size:15px}
  .dashboard-stat-numbers{gap:3px}
  .dashboard-stat-title{font-size:11px}
  .dashboard-details .plain-works{min-width:0;max-width:100%}
}

/* Dashboard mobile correction: grade count and share occupy separate lines. */
.dashboard-grade-grid .dashboard-stat-card{min-height:143px;padding:17px 14px;justify-content:flex-start;gap:12px}
.dashboard-grade-grid .dashboard-stat-numbers{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;width:100%}
.dashboard-grade-grid .dashboard-stat-value{font-size:29px;line-height:1.12;white-space:nowrap}
.dashboard-grade-grid .dashboard-stat-percentage{font-size:23px;line-height:1.12;white-space:nowrap}
.dashboard-progress-native{display:block;width:100%;height:12px;appearance:none;-webkit-appearance:none;border:0;border-radius:999px;overflow:hidden;background:#dedfd6;accent-color:#e79a3d}
.dashboard-progress-native::-webkit-progress-bar{background:#dedfd6;border-radius:999px}
.dashboard-progress-native::-webkit-progress-value{background:#e79a3d;border-radius:999px}
.dashboard-progress-native.review{accent-color:#579c76}
.dashboard-progress-native.review::-webkit-progress-value{background:#579c76}
.dashboard-progress-native::-moz-progress-bar{background:#e79a3d;border-radius:999px}
.dashboard-progress-native.review::-moz-progress-bar{background:#579c76}
.dashboard-detail-page{min-width:0;max-width:100%;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:20px}
.dashboard-back{margin-bottom:16px}
.dashboard-detail-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dashboard-detail-title h2{font-size:18px;margin:0}
.dashboard-detail-page .plain-works li{flex-wrap:nowrap;min-width:0}
.dashboard-detail-page .profile-work-metadata{margin-left:auto}
@media(max-width:600px){
  .dashboard-grade-grid .dashboard-stat-card{min-height:134px;padding:15px 12px;gap:10px}
  .dashboard-grade-grid .dashboard-stat-value{font-size:27px}
  .dashboard-grade-grid .dashboard-stat-percentage{font-size:22px}
  .dashboard-detail-page{padding:14px}
}

/* Override the legacy formal-workbench four-column selector on narrow screens. */
@media(max-width:900px){
  .formal-workbench .simple-metrics.dashboard-grade-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    max-width:100%;
  }
}

/* Learning dashboard presentation: hierarchy, compact figures and subdued mastery bands. */
.dashboard-grade-grid .dashboard-mastery-card{
  --grade-accent:#48856b;
  --grade-tint:#f1f7f2;
  position:relative;
  min-height:162px;
  padding:18px 17px;
  gap:0;
  background:linear-gradient(155deg,var(--card),var(--grade-tint));
  border-color:var(--line);
  box-shadow:0 3px 12px rgba(38,61,54,.035);
}
.dashboard-grade-grid .dashboard-mastery-card.grade-2{--grade-accent:#b38648;--grade-tint:#faf5eb}
.dashboard-grade-grid .dashboard-mastery-card.grade-3{--grade-accent:#ad7757;--grade-tint:#faf2ec}
.dashboard-grade-grid .dashboard-mastery-card.grade-4{--grade-accent:#a56e70;--grade-tint:#faf0f0}
.dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-title{
  color:var(--ink);font-size:14px;font-weight:750;line-height:1.4;
}
.dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-numbers{
  display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;
  gap:5px;width:100%;margin-top:16px;
}
.dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-value{
  font-size:37px;font-weight:750;line-height:1;letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
}
.dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-unit{
  color:var(--muted);font-size:12px;font-weight:400;
}
.dashboard-card-share{display:flex;align-items:center;gap:10px;width:100%;margin-top:auto;padding-top:18px;min-width:0}
.dashboard-card-share-track{display:block;flex:1 1 auto;height:5px;min-width:0;border-radius:100px;background:#dedfd8;overflow:hidden}
.dashboard-card-share-fill{display:block;height:100%;border-radius:100px;background:var(--grade-accent);max-width:100%}
.dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-percentage{
  color:var(--muted);font-size:13px;line-height:1.3;font-weight:600;
  font-variant-numeric:tabular-nums;flex:0 0 auto;
}
.dashboard-state-grid .dashboard-queue-card{min-height:110px;padding:14px 17px;gap:8px;justify-content:flex-start}
.dashboard-state-grid .dashboard-queue-card .dashboard-stat-title{
  color:var(--ink);font-weight:700;font-size:14px;line-height:1.4;
}
.dashboard-state-grid .dashboard-queue-card .dashboard-stat-numbers{
  display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:5px;
}
.dashboard-state-grid .dashboard-queue-card .dashboard-stat-value{
  font-size:30px;font-weight:750;line-height:1.05;font-variant-numeric:tabular-nums;
}
.dashboard-state-grid .dashboard-queue-card .dashboard-stat-unit{font-size:12px;flex:none}
.dashboard-state-grid .dashboard-queue-card .dashboard-stat-note{font-size:11px}
@media(max-width:600px){
  .dashboard-grade-grid .dashboard-mastery-card{min-height:147px;padding:15px 12px}
  .dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-title{font-size:13px}
  .dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-numbers{margin-top:15px}
  .dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-value{font-size:34px}
  .dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-percentage{font-size:12px}
  .dashboard-card-share{gap:7px;padding-top:15px}
  .dashboard-state-grid .dashboard-queue-card{min-height:112px;padding:12px 10px}
  .dashboard-state-grid .dashboard-queue-card .dashboard-stat-title{font-size:12px}
  .dashboard-state-grid .dashboard-queue-card .dashboard-stat-value{font-size:27px}
}
@media(max-width:390px){
  .dashboard-grade-grid .dashboard-mastery-card{padding:13px 10px}
  .dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-value{font-size:31px}
  .dashboard-grade-grid .dashboard-mastery-card .dashboard-stat-percentage{font-size:11px}
  .dashboard-state-grid .dashboard-queue-card{padding:11px 8px}
}
