/* Shared reading workspace and page editor. */
:root{
  --study-bar:40px;--study-dock:48px;--study-green:#164f42;--study-ink:#18352e;
  --study-muted:#526b61;--study-line:#d8e3dc;--study-page:#f2f5f2;
}
.tone0{--tone:#28624d;--tone-soft:#dfeee4;--tone-dark:#173f34}
.tone1{--tone:#38677a;--tone-soft:#e1eef2;--tone-dark:#244854}
.tone2{--tone:#8a6027;--tone-soft:#f6ead5;--tone-dark:#51462c}
.tone3{--tone:#586b67;--tone-soft:#e4ebe6;--tone-dark:#354d47}
body :is(a,a:hover,a:focus-visible,.editLink:hover,.textbtn:hover){text-decoration:none}
:where(.readbody,.editSheet) u,.readbody .sourceLink u{ text-decoration:none }
#shell :is(.sourceJump,.sourceLink,.refLinks a,.liveSearch a,.textbtn):hover{background:#e0eee5;color:#12452f;border-radius:3px;text-decoration:none}
.refLinks a{background:#dceae0;color:#22533b;min-width:15px;text-align:center;border-radius:3px}
:where(a,button,summary,input,select,[contenteditable]):focus-visible{outline:2px solid #32806a;outline-offset:1px}
.studyPage .frame{background:var(--study-page)}
.studyPage .topbar{
 position:sticky;top:0;z-index:14;height:var(--study-bar);gap:10px;padding:0 16px;
 background:#fcfdfb;border-bottom:1px solid var(--study-line)
}
.studyPage .topbar .crumb{flex:0 1 auto;min-width:0;gap:6px;white-space:nowrap}
.studyPage .crumb a{color:#365c4e;padding:3px 2px}
.studyPage .crumb a:last-child{font-weight:650;color:var(--study-ink)}
.studyPage .crumb a:hover{background:#e6efe8;border-radius:3px}
.studyPage .topbar .mobilemenu{align-items:center;justify-content:center}
.barSearch{width:clamp(180px,42vw,480px);min-width:0;margin-left:auto}
.barSearch .searchWidget{position:relative}
.barSearch .searchform{background:#edf3ee;border-color:transparent;border-radius:5px;height:28px}
.barSearch .searchform:focus-within{background:white}
.barSearch .liveSearch{position:absolute;right:0;top:100%;width:max(100%,min(490px,90vw));max-height:55dvh;overflow:auto;z-index:18;box-shadow:0 8px 24px #193e3029;background:#fff;padding:10px 12px}
.studyPage .content{padding:0 16px 18px;max-width:1360px;min-width:0}
.catalogTitle{display:flex;align-items:center;margin:10px 0 7px;color:var(--study-ink)}
.catalogLayout{display:grid;grid-template-columns:minmax(160px,199px) minmax(0,1fr);gap:12px;align-items:start;max-width:1130px}
.catalogRail{padding:8px;background:#e7ede7;border-radius:7px;min-width:0}
.catalogRail h2,.railHead h2{margin:0;font-size:12px}
.catalogRail h2{color:#485f53;margin:0 4px 5px}
.courseChoice{display:flex;align-items:center;gap:7px;width:100%;text-align:left;min-width:0;padding:6px;border-radius:5px;color:var(--study-ink)}
.courseChoice>span:nth-child(2){min-width:0;display:grid;gap:1px;flex:1}
.courseChoice b{font-size:12px;font-weight:600}.courseChoice small{color:#52685b;font-size:12px}
.courseChoice>svg{color:#61796a}.courseChoice:hover,.pickerCatalog:hover{background:#e0eae2}
.courseChoice[aria-current]{background:white;box-shadow:inset 3px 0 var(--tone);color:var(--tone-dark)}
.courseMark{width:27px;height:27px;border-radius:5px;flex:0 0 auto;display:grid;place-items:center;color:var(--tone,#28624d);background:var(--tone-soft,#dfeee4)}
.syllabus,.readingSheet{min-width:0;background:#fff;border-radius:7px;overflow:hidden}
.courseBand{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 11px;background:var(--tone-dark);color:white;border-radius:7px 7px 0 0}
.courseBand .courseMark{width:32px;height:32px;background:#ffffff1c;color:#fff}
.courseBand h2{margin:0;color:#fff;font-size:12px}.bandProgress{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:12px;color:#eef6ed}
.courseMeter{height:4px;width:55px;overflow:hidden;background:#ffffff40;border-radius:8px}.courseMeter i{display:block;height:100%;background:#a6daba;border-radius:inherit}
.bandAction{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:4px;background:#fff;color:var(--tone-dark);font-weight:650}
.bandAction:hover{background:var(--tone-soft)}
.syllabusGroups{padding:4px 7px 7px}.syllabusGroup{margin:4px 0 0}
.syllabusGroup h3,.referenceGroup h3{display:flex;align-items:center;gap:6px;margin:0 0 1px;padding:3px 6px;color:var(--tone-dark,#284f3b);font-size:12px;font-weight:650;background:#f0f4ef;border-radius:3px}
.syllabusGroup ol,.referenceGroup ul{list-style:none;margin:0;padding:0}
.syllabusItem,.chapterItem,.referenceMain{display:flex;align-items:baseline;gap:7px;min-width:0;color:var(--study-ink);border-radius:4px}
.syllabusItem{padding:4px 6px;min-height:23px}.syllabusItem>span:nth-child(2),.referenceMain>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.ord{font-size:12px;line-height:1.3;font-variant-numeric:tabular-nums;min-width:18px;text-align:center;color:#607569}
.syllabusItem:hover,.chapterItem:hover,.chapterChildren a:hover,.referenceMain:hover,.referenceChildren a:hover{background:#e9f2eb}
.syllabusItem.upcoming,.syllabusItem[aria-current]{background:var(--tone-soft,#e5f0e9);color:var(--tone-dark,#214e3c)}
.syllabusItem.upcoming .ord,.syllabusItem[aria-current] .ord{font-weight:700;color:inherit}
.rowState,.studied{font-size:12px;color:#3a6651;display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.syllabusItem.upcoming .rowState{color:var(--tone-dark)}
.desk,.courseDesk{max-width:1130px}.courseDesk .catalogLayout{width:100%}
.readerDock{
 position:sticky;top:var(--study-bar);z-index:11;display:flex;align-items:center;justify-content:space-between;gap:6px;
 min-height:var(--study-dock);padding:4px 0;background:var(--study-page);border-bottom:1px solid var(--study-line)
}
.dockPath,.dockActions{display:flex;align-items:center;gap:3px;min-width:0}.dockPath{flex:1}
.dockControl{display:flex;align-items:center;gap:6px;min-width:0;max-width:38%;padding:3px 6px;border-radius:4px;text-align:left;color:#274539}
.dockControl>svg:first-child{color:var(--tone,#426257)}.dockControl>svg:last-child{color:#5c7468}
.dockControl span{display:grid;gap:0;min-width:0}.dockControl small{font-size:12px;color:#586d60}
.dockControl b{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:25em}
.dockControl:hover,.dockControl[aria-expanded=true],.stepControl:hover,.dockEdit:hover{background:#dfebe2}
.dockControl[aria-expanded=true]{background:#d2e4d8}
.dockActions{flex-shrink:0}.stepControl,.dockEdit,.pickerBack{display:inline-flex;align-items:center;justify-content:center;gap:3px;padding:4px 5px;min-height:26px;border-radius:4px;white-space:nowrap;color:#285541;font-size:12px}
.stepControl:disabled{opacity:.34}.dockEdit{background:#e2ece5}.dockEdit svg{width:13px;height:13px}
.readerPicker{position:absolute;top:calc(100% + 2px);left:0;background:#fff;border:1px solid #cedcd2;border-radius:7px;box-shadow:0 8px 30px #15382829;width:min(390px,100%);overflow:hidden;color:var(--study-ink)}
.readerPicker[data-view=lessons]{left:min(10%,100px)}.readerPicker[data-view=chapters]{left:min(23%,235px)}
.pickerHead,.railHead{display:flex;align-items:center;gap:6px}.pickerHead{padding:5px 8px;background:#edf3ed;border-bottom:1px solid var(--study-line)}
.pickerHead h2{font-size:12px;margin:0}.pickerHead [data-picker-close]{margin-left:auto;padding:4px;color:#2c5140}
.pickerBack,.pickerCatalog{font-size:12px;color:#38634b}.pickerBack{padding:2px;min-height:20px}
.pickerScroll{overflow:auto;overscroll-behavior:contain;max-height:min(52dvh,425px);padding:5px;scrollbar-width:thin}
.pickerCatalog{display:inline-flex;align-items:center;gap:4px;padding:4px 5px;border-radius:3px}
.readerWorkspace{display:grid;grid-template-columns:clamp(170px,19vw,238px) minmax(0,1fr);align-items:start;gap:13px;margin-top:8px;max-width:1230px}
.readerWorkspace.noRail{grid-template-columns:minmax(0,1fr);max-width:990px}
.chapterRail{position:sticky;top:calc(var(--study-bar) + var(--study-dock) + 6px);max-height:calc(100dvh - var(--study-bar) - var(--study-dock) - 12px);padding:8px 6px;border-radius:6px;overflow:auto;overscroll-behavior:contain;background:#e7ede7;scrollbar-width:thin}
.railHead{padding:0 4px;color:#365743}.railLesson{display:block;margin:2px 4px 6px;font-size:12px;font-weight:500;color:#516859}
.chapterItem{padding:4px 5px;min-height:24px;line-height:1.28}
.chapterItem .ord{min-width:16px}.chapterItem[aria-current]{background:white;color:var(--tone-dark,#235240);box-shadow:inset 2px 0 var(--tone,#387256);font-weight:650}
.chapterChildren{margin:1px 0 3px 12px;padding-left:6px;border-left:1px solid #b9cdbd}
.chapterChildren a,.referenceChildren a{display:block;padding:3px 5px;border-radius:3px;line-height:1.3;font-size:12px;color:#345843}
.chapterChildren a[aria-current]{background:#d3e4d7;font-weight:650}
.readCode,.syllabusGroup .ord,.chapterItem .ord,.chapterChildren .ord{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
.readCode{color:#506c5c;font-weight:550}
.chapterChildren .subJump{display:flex;align-items:baseline;gap:5px}
.chapterItem>span:last-child,.chapterChildren .subJump>span:last-child{min-width:0;overflow-wrap:anywhere}

.readingColumn{min-width:0}.readingSheet{position:relative;padding:10px clamp(10px,1.6vw,21px);isolation:isolate}
.readingSheet>.readbody{max-width:94ch;min-width:0}.noRail .readingSheet>.readbody{max-width:110ch}
.chapterHeader{margin:0 0 6px;padding:0 0 5px;border-bottom:1px solid #e4ebe4}
.chapterMeta{display:flex;gap:5px;align-items:center;flex-wrap:wrap;color:var(--study-muted);font-size:12px}.chapterMeta>svg{color:var(--tone,#39624c)}.metaSep{color:#98ad9d}
.readbody .chapterName{margin:2px 0 0;color:var(--study-ink);font-size:12px}
.readCluster{margin:7px 0 2px}.readbody .clusterLabel{display:block;margin:0 0 3px;padding:2px 6px;color:var(--tone-dark,#22543c);background:#edf3ed;border-radius:3px;font-size:12px}
.readbody .actionLine{position:relative;padding-left:11px;margin:2px 0}.actionLine::before{content:"";position:absolute;top:.6em;left:3px;width:3px;height:3px;background:#769680;border-radius:50%}
.readingSheet [id^=read-],.readingSheet [data-found]{scroll-margin-top:calc(var(--study-bar) + var(--study-dock) + 10px)}
.returnSearch,.studyFinish{display:flex;gap:5px;align-items:center;color:#315e43}.returnSearch{width:fit-content;margin:0 0 4px;padding:2px 4px}.studyFinish{flex-wrap:wrap;margin:5px 0}
.referenceMap{margin:5px 0}.referenceGroup{margin:4px 0 5px}.readbody .referenceGroup h3{margin:0;padding:4px 6px;font-size:12px}
.readbody .referenceGroup li{margin:0;white-space:normal}.referenceItem{position:relative;min-width:0}
.referenceMain{padding:4px 6px;min-height:23px;line-height:1.3}.referenceItem.hasTopics>.referenceMain{padding-right:78px}
.referenceChildren summary{position:absolute;top:1px;right:3px;display:inline-flex;align-items:center;gap:3px;cursor:pointer;color:#355a45;padding:3px 5px;border-radius:3px;background:#edf3ed;font-size:12px;list-style:none}
.referenceChildren summary::-webkit-details-marker{display:none}.referenceChildren[open] summary svg:last-child{transform:rotate(180deg)}
.referenceChildren>div{border-left:1px solid #bed2c3;margin:1px 0 4px 21px;padding-left:5px}
.readbody figure,.editSheet figure{display:block;width:fit-content;max-width:100%;margin-top:5px;margin-bottom:5px;min-width:0}
:is(.readbody,.editSheet) figure[data-photo-align=left]{margin-left:0;margin-right:auto}
:is(.readbody,.editSheet) figure[data-photo-align=center]{margin-left:auto;margin-right:auto}
:is(.readbody,.editSheet) figure[data-photo-align=right]{margin-left:auto;margin-right:0}
:is(.readbody,.editSheet) figure[data-sized] img{display:block;width:100%;min-width:0;max-width:100%;height:auto;max-height:none;object-fit:contain}
.readbody figure img,.editSheet figure img{max-width:100%;height:auto}.readbody figure figcaption{overflow-wrap:anywhere}
:is(.editSheet,.readbody) figure[data-photo-fit] img{display:block;height:var(--photo-height);max-height:none;max-width:100%;object-fit:contain}
:is(.editSheet,.readbody) figure[data-photo-fit=cover] img{object-fit:cover}
.formatStrip,.pictureStrip{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;padding:4px 6px;background:#f4f7f3;color:#294632}
.formatStrip label,.pictureStrip label,.colorTool,.cellPaint,.photoPositions,.photoPresets{display:inline-flex;align-items:center;gap:3px;font-size:12px}
.formatStrip select,.pictureStrip select,.pictureStrip input[type=number]{padding:2px 4px;height:24px;min-width:0;border:1px solid #cadacc;border-radius:3px;background:white}
.pictureStrip input[type=number]{width:52px}.colorTool input{width:24px;height:22px;padding:1px;background:#fff;border:1px solid #c9d7cb;border-radius:3px;cursor:pointer}
.formatStrip{position:relative}.colorTool{padding:3px 4px;border-radius:3px}.colorTool:hover,.colorTool[aria-expanded=true]{background:#dce9dd}
.colorTool i{width:13px;height:13px;border:1px solid #788c7e;border-radius:3px}
.editColors{position:absolute;top:100%;left:4px;z-index:5;display:flex;align-items:center;gap:6px;padding:5px 6px;background:white;border:1px solid #c5d6ca;border-radius:4px;box-shadow:0 4px 12px #193c2a29}
.editColors [data-swatches]{display:flex;gap:3px}.editColors [data-swatch]{width:20px;height:20px;border:1px solid #82948a;border-radius:3px}
.editColors input{width:22px;height:22px;padding:0;border:0}.editColors button:not([data-swatch]){font-size:12px;padding:3px}
.photoPositions,.photoPresets{padding:1px;background:#e3ece2;border-radius:4px;gap:1px}
.photoPositions button,.photoPresets button{font-size:12px;padding:4px 5px;border-radius:3px}
.photoPositions [aria-pressed=true],.photoPresets [aria-pressed=true]{background:#315d45;color:white}
.isPreview .formatStrip,.isPreview .pictureStrip{display:none}
.editFigure.chosen{box-shadow:0 0 0 2px #7aa28a;border-radius:3px}
.editSheet [contenteditable]{font-family:inherit;font-size:inherit}
#visualPage .editTools{position:sticky;top:-13px;z-index:4;background:white}
#visualPage .editTools .composeBar{position:static}
@media(min-width:801px){.studyPage .side{z-index:16}}
@media(max-width:900px){.dockActions .stepControl span,.dockEdit span{display:none}.dockActions .stepControl,.dockActions .dockEdit{width:27px;padding:4px}.dockControl{gap:4px}}
@media(max-width:800px){
 .studyPage .navShade.open{z-index:23}.studyPage .side{z-index:24}
 .studyPage .content{padding:0 8px 14px}.studyPage .topbar{padding:0 8px}
 .catalogLayout{grid-template-columns:minmax(130px,175px) minmax(0,1fr);gap:7px}
 .readerWorkspace{grid-template-columns:minmax(0,1fr);margin-top:4px}.chapterRail{display:none}
 .readerDock{gap:2px}.dockControl{padding:3px 4px;max-width:40%}.dockControl:first-child{max-width:28%}
 .readingSheet{padding:7px 9px}.readerPicker[data-view]{left:0}
 .studyPage .topbar .crumb::before{content:none}.studyPage .crumb>.homeCrumb,.studyPage .crumb>.homeCrumb+svg{display:none}
 #visualPage .editTools{top:-8px}
}
@media(max-width:580px){
 :root{--study-bar:36px;--study-dock:45px}
 .studyPage .crumb>a:last-child{font-size:12px}.barSearch{flex:1;width:auto;max-width:370px}
 .catalogTitle{margin:5px 0}.catalogLayout{display:block}.catalogRail{display:flex;align-items:stretch;gap:3px;padding:3px;margin-bottom:5px;overflow:auto}
 .catalogRail h2{display:none}.catalogRail .courseChoice{align-items:center;width:auto;min-width:0;flex:1;padding:4px;gap:3px}.catalogRail .courseChoice small,.catalogRail .courseChoice>svg{display:none}
 .catalogRail .courseMark{width:18px;height:20px}.catalogRail .courseMark svg{width:13px;height:13px}.catalogRail .courseChoice b{font-size:12px;line-height:1.2}
 .courseBand{padding:6px 7px}.syllabusGroups{padding:1px 4px 4px}.syllabusItem,.chapterItem,.referenceMain{min-height:26px}
 .dockPath{gap:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1.08fr)}
 .dockControl,.dockControl:first-child{max-width:none;width:100%;gap:1px;padding:2px}.dockControl>svg:first-child{display:none}
 .dockControl>svg:last-child{width:10px}.dockControl b{font-size:12px}.dockControl small{font-size:12px}.dockActions{gap:1px}
 .dockActions .stepControl,.dockActions .dockEdit{width:24px;min-height:29px;padding:2px}
 .readerPicker{width:100%}.readerPicker .pickerScroll{max-height:55dvh}
 .referenceItem.hasTopics>.referenceMain{padding-right:66px}.referenceChildren summary>svg:first-child{display:none}
 .formatStrip,.pictureStrip{gap:3px 5px;padding:3px 2px}.photoPositions button,.photoPresets button{padding:4px}
}
@media(max-width:365px){.dockEdit{width:21px!important}.catalogRail .courseMark{display:none}.courseBand .courseMark{width:25px;height:25px}}
@media(max-height:520px){.readerPicker .pickerScroll{max-height:45dvh}#visualPage .editTools{position:static}}

@media(min-width:801px){
 .readerWorkspace:not(.noRail){grid-template-columns:minmax(0,1fr) clamp(170px,20vw,252px);grid-template-areas:"reading topics";column-gap:14px}
 .readerWorkspace:not(.noRail) .chapterRail{grid-area:topics}
 .readerWorkspace:not(.noRail) .readingColumn{grid-area:reading}
}
.readbody h3.topicHeading{display:block;margin:9px 0 3px;padding:3px 6px;background:#e9f1eb;color:var(--tone-dark,#244635);font-size:12px;border-radius:3px;scroll-margin-top:calc(var(--study-bar) + var(--study-dock) + 8px)}
.tableTopic{display:block;font-size:12px;font-weight:650;color:#315c47;margin-bottom:2px}
.chapterChildren .blockJump{padding-left:8px}.chapterChildren .nested{padding-left:16px}
#regulationMap{max-width:1160px;color:var(--study-ink)}
.mapTop,.mapCourse h3,.mapActions,.mapConfirm{display:flex;align-items:center;gap:6px}
.mapTop{justify-content:space-between;margin:4px 0 6px}.mapTop h2,.mapDetail h2{font-size:12px;margin:0}
.mapTop label{display:flex;align-items:center;gap:5px;padding:4px 7px;background:#e9f1eb;border-radius:5px;color:#577461}
.mapTop input{border:0;background:transparent;min-width:0;width:min(200px,38vw);font:inherit}
.mapLayout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.85fr);gap:12px;align-items:start}
.mapTree,.mapDetail{background:#fff;border-radius:6px;padding:8px;min-width:0}
.mapTree{max-height:calc(100dvh - 145px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.mapCourse{margin:0 0 6px}.mapCourse h3{background:var(--tone-soft,#e3eee5);color:var(--tone-dark,#244a32);padding:4px 6px;font-size:12px;margin:0 0 2px;border-radius:4px}
.mapRoots,.mapChildren{list-style:none;padding:0;margin:0}
.mapChildren{margin-left:10px;padding-left:5px;border-left:1px solid #e4ece6}
.mapNodeRow{display:flex;align-items:center;gap:2px;margin:1px 0}
.mapIndent,.mapToggle{width:21px;flex:none}
.mapToggle{display:grid;place-items:center;min-height:23px;padding:0;border:0;border-radius:3px;background:transparent;color:#547060}
.mapToggle:hover{background:#e2ede5}
#regulationMap .mapPick{flex:1;min-width:0;display:flex;align-items:baseline;gap:6px;text-align:left;padding:4px 6px;line-height:1.3;border-radius:4px;color:#294c3b}
.mapPick small{flex:none;color:#57725f;font-size:12px;font-variant-numeric:tabular-nums}
.mapNodeTitle,.mapTrail,.mapSubject h2{overflow-wrap:anywhere}
#regulationMap .mapPick:hover,.mapActions button:hover{background:#e6f0e8}
#regulationMap .mapTree .mapPick[aria-current=true]{background:#205b45;color:white;font-weight:650}
#regulationMap .mapPick[aria-current] small{color:#e9f4ea}
.mapPicked{display:inline-flex;align-items:center;gap:3px;margin-left:auto;font-size:12px;align-self:center;white-space:nowrap}
.mapActions [aria-pressed=true]{background:#cfe3d5;color:#17492e;font-weight:bold}
.mapDetail{position:sticky;top:8px;padding:9px 10px}
.mapSubject,.mapEmpty{background:#e9f1eb;padding:8px 10px;border-radius:4px}
.mapDetailLabel{display:inline-flex;align-items:center;gap:5px;color:#285a40;font-size:12px;font-weight:650}
.mapTrail{display:flex;align-items:center;flex-wrap:wrap;gap:2px 3px;color:#496454;font-size:12px;margin:4px 0}
.mapTrail svg{flex:none}
.mapSubjectName{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.mapSubjectName small{font-size:12px;color:#3f634c;font-weight:600}
.mapLinks{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mapLinks .mapRead,.mapLinks .textbtn{display:inline-flex;align-items:center;gap:4px;color:#2e6044;font-size:12px;margin:0;padding:3px}
.mapEmpty{background:#f1f5f1}
#regulationMap .mapEmpty h2{margin:5px 0 2px}.mapEmpty p,.mapHint{color:#4a6353;font-size:12px}
.mapFields{border:0;padding:0;min-width:0}.mapFields legend{padding:0 0 3px;font-size:12px;font-weight:bold;color:#35543f}
.mapAnnounce{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.mapActions{flex-wrap:wrap;background:#edf3ed;padding:3px;border-radius:4px;margin:8px 0 2px}
.mapActions button{padding:4px 6px;border-radius:3px;font-size:12px}.mapFields{display:grid;gap:5px;margin:7px 0}
.mapFields label{display:grid;gap:2px;color:#3c5947;font-size:12px}
.mapFields select,.mapFields input,.mapFields textarea{width:100%;min-width:0;font:inherit;font-size:12px;padding:4px 5px;border:1px solid #c6d8cb;border-radius:4px;background:white;color:#183b2f}
.mapConfirm{flex-wrap:wrap;margin:7px 0 1px}.mapPreview{width:100%;padding:6px 8px;background:#eaf3e9;border-radius:4px}
.mapPreview p,.mapFields p{margin:2px 0}.mapPreview label{display:flex;align-items:baseline;gap:4px}
#regulationMap[aria-busy=true] .mapConfirm{opacity:.7}
@media(max-width:720px){
 .mapLayout{display:flex;flex-direction:column;gap:6px}.mapTree,.mapDetail{width:100%;box-sizing:border-box}
 .mapTree{max-height:40dvh}.mapDetail{position:static;scroll-margin:65px 0 8px}.mapTop{flex-wrap:wrap}.mapNodeRow{min-height:26px}.mapToggle{min-height:26px}.mapChildren{margin-left:5px;padding-left:3px}
}

.mapTop [data-map-refresh]{margin-left:auto;padding:3px 5px;font-size:12px}

.mapFields textarea{resize:vertical;line-height:1.35}

/* The selected frame has compact corner handles; reading views use the same geometry. */
:is(.readbody,.editSheet) :is(figure[data-photo-align],[data-table-align]){
  --edge-space:min(var(--object-inset,0px),20%);
  box-sizing:border-box;
  max-width:calc(100% - var(--edge-space) - var(--edge-space));
}
:is(.readbody,.editSheet) :is(figure[data-photo-align=left],[data-table-align=left]){margin-inline:var(--edge-space) auto}
:is(.readbody,.editSheet) :is(figure[data-photo-align=center],[data-table-align=center]){margin-inline:auto}
:is(.readbody,.editSheet) :is(figure[data-photo-align=right],[data-table-align=right]){margin-inline:auto var(--edge-space)}
[data-table-align]>table{height:var(--table-height,auto)}
.editSheet .editTable,.editSheet .imageFrame{position:relative}
.editSheet .editTable{overflow:auto}
.editSheet .imageFrame{width:100%}
.editSheet .activeObject.editTable{outline:1px solid #48745c;outline-offset:-1px}
.editSheet .objectGrip{display:none;position:absolute;z-index:2;width:18px;height:18px;touch-action:none;user-select:none}
.editSheet .objectGrip::before{content:"";position:absolute;inset:4px;background:#fff;border:2px solid #2c6a51;box-sizing:border-box;border-radius:2px}
.editSheet .activeObject>.objectGrip,.editSheet .activeObject>.imageFrame>.objectGrip{display:block}
.editSheet [data-corner=nw],.editSheet [data-corner=sw]{left:0}
.editSheet [data-corner=ne],.editSheet [data-corner=se]{right:0}
.editSheet [data-corner=nw],.editSheet [data-corner=ne]{top:0}
.editSheet [data-corner=sw],.editSheet [data-corner=se]{bottom:0}
.editSheet [data-corner=nw],.editSheet [data-corner=se]{cursor:nwse-resize}
.editSheet [data-corner=ne],.editSheet [data-corner=sw]{cursor:nesw-resize}

.editLinkPanel:not([hidden]){display:flex;align-items:end;gap:6px;flex-wrap:wrap;padding:6px;background:#eef5f0}
.editLinkPanel label{display:grid;gap:2px;font-size:12px}
.editLinkPanel input,.editLinkPanel select{max-width:100%;min-height:27px;font-size:12px}
.editLinkPanel .linkActions{display:flex;align-items:center;gap:4px}
.editLinkPanel [role=alert]:not(:empty){flex-basis:100%;color:#8c352a;font-size:12px}
a.authoredLink{color:#116652;text-decoration:none;font-weight:inherit}
a.authoredLink:hover,a.authoredLink:focus-visible{background:#e3f2e9}
.composeBar .edTool[aria-pressed=true]{background:#d6e9dd;color:#164f3a}

.fieldChecklistBar,.fieldChecklistHead,.fieldRunMeta,.fieldRunList{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.fieldChecklistBar,.fieldChecklistBuilder{margin:5px 0}
.fieldChecklistBuilder{background:#f0f4f1;border-radius:5px;padding:7px}
.fieldChecklistHead{justify-content:space-between}
.fieldChecklistForm{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:6px}
.fieldChecklistForm label,.fieldRunMeta,.fieldRunList{display:flex;flex-direction:column;align-items:stretch;gap:3px}
.fieldChecklistForm input,.fieldChecklistForm select{width:100%;min-width:0;box-sizing:border-box}
.fieldSourceRows{max-height:35vh;overflow:auto;margin:4px 0;background:white;padding:3px}
.fieldSourceRows label{display:flex;align-items:baseline;gap:6px;padding:3px}
.fieldSourceRows input,.fieldRunItems input{flex:none}
.fieldRunItems{position:relative;max-height:56vh;overflow-y:auto;margin:7px 0}
.fieldRunEntry{width:100%;text-align:left;padding:5px;color:inherit;background:transparent;border:0;border-radius:4px}
.fieldRunEntry:hover,.fieldRunEntry:focus-visible{background:#e6efe9}
.fieldRunEntry small{display:block;color:#4e665a;font-size:12px}
.readingNotice,.deskRevisions{margin:5px 0 8px;padding:6px 9px;background:#edf4eb;border-radius:5px;color:#173d31}
.readingNotice>div,.revisionChoice{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.readingNotice ul,.deskRevisions ul{list-style:none;margin:4px 0;padding:0;display:grid;gap:3px}
.readingNotice li small{display:block;color:#596a5a}
.readingNotice a,.deskRevisions a{color:#184d3a;text-decoration:none}
.readingNotice .actionButton{margin-top:2px}
.revisionChoice{margin:5px 0;font-size:12px}
.revisionChoice small,.readingNotice small{font-size:12px}
.revisionChoice[hidden]{display:none}

[data-toc-preview] [data-clip],.syllabusGroup h3 [data-clip],.courseChoice [data-clip],.syllabusItem [data-clip],.referenceMain [data-clip],.chapterItem [data-clip],.chapterChildren [data-clip],.referenceChildren [data-clip]{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.syllabusGroup h3{display:flex;align-items:center;gap:5px;min-width:0}
.syllabusGroup h3 .ord,.syllabusItem .ord,.chapterChildren .ord,.referenceMain .ord,.referenceChildren .ord{flex:0 0 auto;white-space:nowrap}
.syllabusItem .rowState{flex:none;white-space:nowrap}
#tocFullTitle{position:fixed;z-index:180;max-width:min(360px,calc(100vw - 16px));box-sizing:border-box;padding:8px 10px;border-radius:6px;background:#183e34;color:white;box-shadow:0 3px 14px #102e3226;font:500 12px/1.45 system-ui,sans-serif;white-space:pre-line;overflow-wrap:anywhere}
#tocFullTitle[hidden]{display:none}#tocFullTitle a{display:block;font-size:12px;font-weight:700;color:#b6f0d5;margin-top:4px}

.courseBand :is(div,h2)[data-clip],.courseBand [data-clip]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.referenceGroup h3,.referenceChildren>div>a{display:flex;align-items:center;gap:5px;min-width:0}

.svuTabs,.svuTools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0}
.svuTabs a,.svuPlace{display:inline-flex;align-items:center;gap:3px;text-decoration:none;padding:3px 7px;color:#21584c}
.svuTabs [aria-current]{background:#deece5;border-radius:4px;font-weight:700}
#svuBook table{width:100%;border-collapse:collapse}#svuBook th,#svuBook td{padding:4px;text-align:center}
#svuBook th:first-child{text-align:left}#svuBook tbody tr:nth-child(odd){background:#f3f6f4}
#svuBook th button{background:transparent;border:0;text-align:left;color:inherit;font:inherit;cursor:pointer}
#svuBook .svuFields label{display:grid;grid-template-columns:minmax(65px,110px) 1fr;text-align:left;gap:8px;align-items:start;padding:3px 0}
#svuBook textarea{width:100%;font:inherit;resize:vertical}#svuBook .svuTools input{flex:1}

.readbody .svuIndex{width:100%;border-collapse:collapse}.readbody .svuIndex :is(th,td){padding:3px 5px;border:0;text-align:center}.readbody .svuIndex th:first-child{text-align:left}.readbody .svuIndex tbody th{font-weight:400}.readbody .svuIndex tbody tr:nth-child(odd){background:#f3f6f4}
