#studyGuideView { --sg-green:#23734d; --sg-line:#d8e1df; color:#253331; padding:8px 0 36px; }
#studyGuideView * { box-sizing:border-box; letter-spacing:0; }
#studyGuideView a { text-decoration:none; }
.sg-view-tabs { display:flex; gap:24px; border-bottom:1px solid var(--sg-line); margin:8px 0 20px; }
.sg-view-tabs a { display:flex; align-items:center; gap:8px; min-height:48px; color:#566860; border-bottom:3px solid transparent; }
.sg-view-tabs a[aria-current] { color:var(--sg-green); border-color:var(--sg-green); font-weight:700; }
.sg-timeline h3 { font-size:20px; margin:0; }
.st-section-head,.st-toolbar { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin:22px 0 12px; }
.st-section-head>span { font-size:12px; color:#61746a; }
.st-upcoming { border-bottom:1px solid var(--sg-line); padding-bottom:20px; }
.st-upcoming ol { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:0 28px; }
.st-upcoming ol,.st-month ol,.st-projects ul { list-style:none; padding:0; margin:0; }
.st-semesters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:2px solid var(--sg-line); margin:28px 0; }
.st-semesters a { color:#536661; padding:16px 18px; border-bottom:4px solid transparent; display:grid; gap:6px; min-width:0; }
.st-semesters a[aria-current] { border-color:#23734d; background:#eff7f1; color:#174e32; }
.st-semesters span { font-size:13px; }
.st-semesters small { font-size:12px; }
.st-toolbar label { display:flex; align-items:center; gap:12px; font-size:13px; }
.st-toolbar select { width:auto; max-width:100%; }
.st-main { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:40px; align-items:start; }
.st-month { padding:0 0 22px 18px; border-left:2px solid #dae4df; }
.st-month h4 { font-size:16px; margin:20px 0 10px; }
.st-event { border-bottom:1px solid #e5eae7; }
.st-event>a { display:flex; gap:12px; color:#263e34; padding:14px 0; align-items:center; min-width:0; }
.st-event>a:hover strong { text-decoration:underline; }
.st-event-text { flex:1; min-width:0; display:grid; gap:5px; }
.st-event-text strong { font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.st-event-text time,.st-event-text small { color:#617267; font-size:12px; }
.st-dot { width:30px; height:30px; display:grid; place-items:center; background:#eaf0f5; color:#286184; border-radius:4px; flex:none; }
.st-event[data-kind=link] .st-dot { color:#8a456c; background:#f5ebf1; }
.st-event[data-kind=holiday] .st-dot { color:#7e6a2c; background:#f6f2e3; }
.st-event[data-status=confirmed] .st-dot { color:#21613c; background:#e8f4ed; }
.st-event[data-status=proposal] .st-dot { color:#9b661b; background:#fcf1dd; }
.st-state { font-size:11px; color:#526a79; max-width:110px; line-height:1.4; }
.st-event[data-status=proposal] .st-state,.st-state[data-status=proposal] { color:#966113; }
.st-event[data-status=open] .st-state { color:#97571c; }
.st-event[data-status=confirmed] .st-state,.st-state[data-status=confirmed] { color:#23734d; }
.st-upcoming .st-state { display:none; }
.st-projects { border-left:1px solid var(--sg-line); padding-left:24px; }
.st-projects h3 { font-size:17px; margin:20px 0 16px; }
.st-projects h3 span { color:#687c6f; font-weight:400; }
.st-projects li { border-bottom:1px solid var(--sg-line); padding:16px 0; }
.st-projects a { display:flex; align-items:flex-start; gap:10px; color:#2a5340; line-height:1.5; font-size:14px; }
.st-projects strong { overflow-wrap:anywhere; }
.st-projects small { display:block; font-size:12px; color:#64736b; line-height:1.5; margin-top:6px; }
.st-project-track { position:relative; height:8px; margin:10px 0; background:#edf0ef; overflow:hidden; }
.st-project-track span { position:absolute; top:0; bottom:0; background:#729f88; min-width:1px; }
.st-boundaries { border-top:1px solid var(--sg-line); margin-top:28px; padding-top:18px; font-size:13px; line-height:1.7; color:#596e63; }
.st-boundaries summary { cursor:pointer; font-weight:650; }
.st-return { display:inline-flex; align-items:center; gap:8px; color:var(--sg-green); margin:8px 0; }
.st-event-detail { max-width:1100px; margin:auto; }
.st-event-detail>h3 { font-size:24px; margin:16px 0 10px; overflow-wrap:anywhere; }
.st-event-detail>p { line-height:1.6; }
.st-when { font-weight:650; }
.st-provenance { font-size:13px; color:#63726a; }
.st-notes { border-top:1px solid var(--sg-line); margin-top:30px; }
.st-notes h4 { font-size:18px; margin:0; }
.st-notes h5 { font-size:14px; margin:16px 0 8px; }
.st-notes label { display:grid; gap:8px; font-size:13px; color:#415c4d; min-width:0; }
.st-notes textarea { width:100%; resize:vertical; min-height:120px; font-family:inherit; font-size:15px; line-height:1.65; font-weight:400; }
.st-notes input { width:100%; min-width:0; }
.st-note-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:20px; }
.st-task-row { display:grid; grid-template-columns:24px minmax(0,2fr) minmax(0,1fr) 150px 40px; gap:12px; align-items:end; border-bottom:1px solid var(--sg-line); padding:12px 0; }
.st-task-row .st-check { align-self:center; padding-top:22px; }
.st-task-row input[type=checkbox] { width:20px; height:20px; accent-color:var(--sg-green); }
.st-task-row button { padding:0; height:40px; width:40px; }
.st-savebar { display:flex; align-items:center; gap:16px; margin:20px 0; flex-wrap:wrap; }
.st-savebar button,.st-notes .ghost { display:inline-flex; gap:8px; align-items:center; }
.st-savebar .st-note-state { font-size:13px; }
.st-history pre,.st-conflict pre { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; font-size:14px; line-height:1.6; }
.st-history details { border-top:1px solid var(--sg-line); padding:14px 0; }
.st-conflict { padding:16px; border-left:3px solid #b8872b; background:#fff9ec; margin:16px 0; }
@media(max-width:950px) {
  .st-main { grid-template-columns:minmax(0,1fr); gap:20px; }
  .st-projects { padding:0; border-left:0; border-top:1px solid var(--sg-line); }
  .st-task-row { grid-template-columns:24px minmax(0,1fr) 40px; }
  .st-task-row label:not(.st-check) { grid-column:2; }
  .st-task-row button { grid-column:3; grid-row:1; }
}
@media(max-width:560px) {
  .st-semesters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .st-semesters a { padding:14px 10px; }
  .st-note-columns { grid-template-columns:minmax(0,1fr); }
  .st-event .st-state { max-width:74px; font-size:10px; }
  .st-event>a>svg { display:none; }
  .st-month { padding-left:10px; }
  .st-toolbar label { flex-wrap:wrap; }
  .st-event-detail>h3 { font-size:21px; }
  .st-savebar button { width:100%; justify-content:center; }
}
#studyGuideView a:focus-visible, #studyGuideView button:focus-visible, #studyGuideView input:focus-visible { outline:3px solid #318766; outline-offset:3px; }
#studyGuideView svg { width:20px; height:20px; flex-shrink:0; }
.sg-heading { display:flex; align-items:center; gap:14px; position:sticky; top:0; background:white; z-index:2; padding:8px 0; }
.sg-heading>div { flex:1; min-width:0; }
.sg-heading p { margin:0 0 4px; font-size:13px; color:#596a67; }
.sg-heading h2 { margin:0; font-size:26px; }
.sg-heading .sg-back { color:var(--sg-green); border:1px solid #acd1be; background:#edf7f1; width:44px; height:44px; display:grid; place-items:center; padding:0; border-radius:6px; }
.sg-baseline { display:flex; flex-wrap:wrap; gap:8px 22px; border-bottom:1px solid var(--sg-line); padding:18px 0 16px; font-size:13px; color:#536662; }
.sg-baseline span { display:flex; align-items:center; gap:6px; }
.sg-baseline span:last-child { margin-left:auto; }
.sg-crumbs { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:13px; padding-top:16px; }
.sg-crumbs a { color:var(--sg-green); }
.sg-crumbs [aria-current] { color:#283732; font-weight:650; }
.sg-crumbs svg { width:14px !important; }
.sg-message:empty { display:none; }
.sg-message { margin:12px 0; }
.sg-tree { max-width:1000px; margin:24px auto; }
.sg-trunk { display:flex; align-items:center; gap:12px; padding:18px 20px; border-bottom:2px solid var(--sg-green); background:#eff6f2; }
.sg-trunk strong { font-size:18px; }
.sg-trunk>span { margin-left:auto; color:#526c5c; font-size:13px; }
.sg-tree ol { list-style:none; margin:0 0 0 30px; padding:16px 0 0 34px; border-left:2px solid var(--sg-line); }
.sg-tree li { position:relative; display:flex; align-items:center; gap:14px; margin:0 0 9px; }
.sg-tree li::before { content:''; position:absolute; left:-36px; width:26px; top:50%; border-top:2px solid var(--sg-line); }
.sg-order { color:#71837a; font-size:12px; width:20px; flex:none; font-variant-numeric:tabular-nums; }
#studyGuideView .sg-node { display:flex; align-items:center; gap:14px; min-height:74px; padding:14px 16px; border:1px solid var(--sg-line); border-radius:6px; color:#273a32; background:#fff; width:100%; min-width:0; }
#studyGuideView .sg-node:hover { background:#f0f7f3; border-color:#8bb8a1; }
.sg-node>svg:first-child { color:var(--sg-green); width:24px !important; height:24px !important; }
.sg-node>span:first-of-type { min-width:0; flex:1; }
.sg-node strong { display:block; font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.sg-node small { display:block; margin-top:4px; color:#64706d; font-size:13px; line-height:1.45; }
.sg-count { display:grid; place-items:center; min-width:28px; height:28px; border-radius:50%; background:#eef2f0; font-size:12px; flex-shrink:0; color:#586a61; }
.sg-foot { border-top:1px solid var(--sg-line); padding-top:14px; font-size:12px; color:#62716b; }
.sg-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:32px; margin-top:24px; }
.sg-branches { display:flex; flex-direction:column; gap:4px; border-right:1px solid var(--sg-line); padding-right:16px; align-self:start; }
.sg-branches a { display:flex; gap:10px; align-items:center; padding:11px 8px; color:#566860; font-size:13px; border-radius:4px; min-width:0; }
.sg-branches a[aria-current] { color:#145b38; background:#eaf5ed; font-weight:700; }
.sg-detail { min-width:0; max-width:980px; }
.sg-detail-heading h3 { font-size:23px; margin:12px 0 6px; }
.sg-detail-heading>p { color:#5a6c64; }
.sg-detail p { line-height:1.65; }
.sg-detail h4 { font-size:17px; margin:26px 0 10px; }
.sg-children,.sg-sources { list-style:none; padding:0; margin:20px 0; }
.sg-children li { margin-bottom:8px; }
.sg-badge { display:inline-flex; align-items:center; gap:5px; color:#30555c; font-size:12px; line-height:1.4; }
.sg-badge svg { width:16px !important; height:16px !important; }
.sg-badge[data-kind=rule] { color:#215691; }
.sg-badge[data-kind=open] { color:#906119; }
.sg-badge[data-kind=example],.sg-badge[data-kind=group] { color:#855844; }
.sg-alert { border-left:3px solid #b7872e; background:#fff9e9; padding:14px 16px; display:flex; gap:10px; align-items:flex-start; }
.sg-alert svg { margin-top:4px; }
.sg-source { padding:18px 0; border-top:1px solid var(--sg-line); }
.sg-source>strong,.sg-source>small { display:block; margin-top:5px; }
.sg-source>small { color:#61746a; }
.sg-source p { font-size:14px; }
.sg-source details { font-size:13px; color:#56685f; }
.sg-source summary { cursor:pointer; margin-top:14px; }
.sg-source dl,.sg-facts { display:grid; grid-template-columns:minmax(120px,1fr) 3fr; gap:8px 18px; }
.sg-source dd,.sg-facts dd { margin:0; overflow-wrap:anywhere; }
.sg-source dt,.sg-facts dt { font-weight:650; }
.sg-hash { font:11px ui-monospace,monospace; }
.sg-actions { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; margin:12px 0 6px; }
.sg-actions a,.sg-document>a { display:inline-flex; align-items:center; gap:7px; color:#23734d; min-height:38px; }
.sg-warning { color:#995013; }
.sg-related { display:grid; gap:8px; margin:22px 0; }
#studyGuideView .sg-compact { min-height:54px; }
.sg-task { display:flex; align-items:center; gap:10px; padding:12px 0; font-weight:650; }
.sg-task input { width:20px; height:20px; accent-color:var(--sg-green); }
.sg-reader { margin-top:20px; }
.sg-reader-head { display:flex; flex-wrap:wrap; gap:8px 24px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--sg-line); padding-bottom:12px; }
.sg-reader-head h3 { font-size:18px; overflow-wrap:anywhere; }
.sg-document { min-width:0; margin-top:10px; }
.sg-document iframe { width:100%; height:80vh; border:1px solid var(--sg-line); background:white; }
.sg-page-image { display:block; max-width:100%; width:1000px; height:auto; margin:16px auto; border:1px solid var(--sg-line); }
.sg-pages { display:flex; justify-content:center; align-items:center; gap:18px; }
.sg-pages>span { width:40px; }
.sg-pages a { width:40px; height:40px; display:grid; place-items:center; color:var(--sg-green); }
.sg-pages label { display:flex; gap:10px; align-items:center; }
.sg-pages select { width:74px; }
@media(max-width:740px) {
  .sg-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
  .sg-branches { flex-direction:row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--sg-line); padding:0 0 8px; }
  .sg-branches a { flex:0 0 158px; }
  .sg-baseline span:last-child { margin-left:0; }
  .sg-tree ol { margin-left:12px; padding-left:19px; }
  .sg-tree li { gap:5px; }
  .sg-tree li::before { left:-21px; width:15px; }
  .sg-order { display:none; }
  #studyGuideView .sg-node { padding:12px; gap:10px; min-height:90px; }
  .sg-node strong { font-size:15px; }
  .sg-node>svg:last-child { display:none; }
  .sg-trunk { padding:16px 12px; }
  .sg-trunk>span { display:none; }
  .sg-heading h2 { font-size:22px; }
  .sg-source dl,.sg-facts { grid-template-columns:minmax(0,1fr); gap:4px; }
  .sg-source dd,.sg-facts dd { margin-bottom:9px; }
}
