@font-face {
  font-family: Inter;
  src: url(/inter.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.login-card {max-width:510px;margin:48px auto;padding:32px;background:white;border:1px solid var(--line);border-radius:10px}
.login-card h1 {font-size:1.65rem;line-height:1.3;margin:14px 0}
.login-card > p {color:var(--mute);font-size:14px}
.login-card .field {margin:22px 0 12px}
.login-card input {width:100%}
.login-card #login-message {font-size:13px;min-height:22px;color:var(--navy)}
.login-card #login-message.login-error {color:#b42318}
.login-card .btn {margin:4px 6px 4px 0}
.login-card .login-help {border-top:1px solid var(--line);margin-top:24px;padding-top:16px;font-size:12px}
.workspace button {margin-left:12px}
.tutor-table {width:100%;border-collapse:collapse;font-size:14px;background:white}
.tutor-table th,.tutor-table td {padding:16px;text-align:left;border-bottom:1px solid var(--line)}
.tutor-table thead {background:#edf2f5;color:var(--navy)}
.tutor-table tbody th {font-weight:500;overflow-wrap:anywhere}
.tutor-state {padding:4px 9px;border-radius:4px;font-size:12px;font-weight:600}
.tutor-state.active {color:#11663f;background:#e7f5ed}
.tutor-state.inactive {color:#6a493e;background:#f6ece6}
.tutor-message {min-height:24px;font-size:14px;color:#1565c0}
.tutor-message.is-error {color:#b42318}
.tutor-help {font-size:13px;color:var(--mute);margin-top:20px}
.tutor-invite {display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:20px;background:white;border:1px solid var(--line);border-radius:8px}
.tutor-invite .field {flex:1;min-width:220px;max-width:480px;margin:0}
.tutor-invite input {width:100%}
.tutor-invite p {flex-basis:100%;margin:0;font-size:13px;color:var(--mute)}
@media(max-width:600px){.login-card{margin:20px auto;padding:22px}}

:root {
  --navy: #172e41;
  --ink: #202d38;
  --mute: #5c6871;
  --quiet: #667581;
  --red: #b14b35;
  --coral: #f1a589;
  --paper: #f7f7f3;
  --line: #d9dcd6;
  --white: #fff;
  --font-family: Inter, sans-serif;
  --title-size: clamp(2.25rem, 3.5vw, 2.5rem);
  --section-size: clamp(1.375rem, 2vw, 1.5rem);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.6 var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button,select,input,textarea {
  font: inherit;
  color: inherit;
}

button,label,summary {
  font-weight: 500;
}

input,select,textarea {
  font-weight: 400;
}

input::file-selector-button {
  font: inherit;
  font-weight: 500;
}

button,select {
  cursor: pointer;
}

button {
  border: 0;
  background: none;
}

button:disabled {
  cursor: default;
  opacity: .4;
}

button:not(:disabled),a,select {
  touch-action: manipulation;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid #bc684b;
  outline-offset: 3px;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

h1 {
  font-size: var(--title-size);
  line-height: 1.18;
  letter-spacing: -.03em;
}

h2 {
  font-size: var(--section-size);
  letter-spacing: -.02em;
}

.icon {
  flex: none;
  vertical-align: middle;
}

.skip,.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  z-index: 10;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 8px 16px;
}

main:focus {
  outline: 0;
}

.masthead {
  background: #152b3e;
  color: #f8f7f1;
  border-bottom: 3px solid #cc795d;
}

.mast-inner {
  width: min(1180px,calc(100% - 80px));
  margin: auto;
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 46px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  font: 600 24px/1.2 var(--font-family);
  letter-spacing: -.6px;
}

.brand small {
  display: block;
  color: #c7d3d7;
  font: 600 10px/1.25 var(--font-family);
  letter-spacing: 1.7px;
  margin-top: 6px;
}

.mast-inner nav {
  display: flex;
  gap: 6px;
  align-self: center;
}

.mast-inner nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 5px;
  color: #d2dcde;
}

.mast-inner nav a[aria-current] {
  background: #31485a;
  color: #fff;
}

.mast-inner nav a:hover {
  background: #2d4354;
}

.workspace {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #dce3e2;
}

.workspace i {
  width: 7px;
  height: 7px;
  background: #9cbfa8;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ffffff0c;
}

main,footer {
  width: min(1180px,calc(100% - 80px));
  margin: 0 auto;
}

main {
  padding: 40px 0 50px;
  flex: 1;
}

.loading {
  padding: 80px 0;
}

.kicker,.eyebrow,.source-label,.res-type {
  font: 600 10px/1.4 var(--font-family);
  text-transform: uppercase;
  letter-spacing: 1.55px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
}

.kicker b {
  width: 20px;
  height: 2px;
  background: #c16a50;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-heading h1 {
  margin: 8px 0;
}

.page-heading p {
  color: var(--mute);
  font-size: 1rem;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #cbd1cc;
  border-radius: 6px;
  background: #fff;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.btn:hover {
  background: #f0f1ed;
}

.btn.primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.btn.primary:hover {
  background: #963c2a;
  border-color: #963c2a;
}

.btn.mini {
  min-height: 31px;
  padding: 5px 10px;
  font-size: 13px;
}

.btn.mini .icon {
  width: 14px;
}

.tool {
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  width: 31px;
  height: 31px;
  color: var(--quiet);
}

.tool:hover:not(:disabled) {
  color: var(--navy);
  background: #e9eeed;
}

.text-action,.text-link {
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 13px;
}

.text-action:hover,.text-link:hover {
  text-decoration: underline;
}

.muted {
  color: var(--mute);
}


.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0,1.9fr) minmax(255px,1fr);
  gap: 27px;
  align-items: start;
}

.dashboard-columns {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.section-heading h2,.panel-title h2 {
  font-size: var(--section-size);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.section-heading h2 small {
  display: inline-flex;
  font: 500 12px/1.2 var(--font-family);
  color: #59636a;
  vertical-align: middle;
  margin-left: 7px;
  background: #e9ebe5;
  border: 1px solid #d9ddd6;
  border-radius: 4px;
  padding: 4px 6px;
}

.course-stack {
  display: grid;
  gap: 14px;
}

.course-card {
  display: flex;
  align-items: stretch;
  min-height: 155px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.course-card:hover {
  border-color: #a9b5b8;
}

.course-cover {
  width: 27%;
  min-width: 105px;
  max-width: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2ddce;
  border-right: 1px solid #e4c8b6;
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 20px;
}

.card-copy h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 9px 0 10px;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.card-tags,.counts,.counts span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font: 600 10px/1.2 var(--font-family);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}

.year {
  background: #eef1f3;
  color: #415463;
  border-color: #dae1e4;
}


.green {
  background: #e4efe9;
  color: #336449;
}

.amber {
  background: #f9efd6;
  color: #795b25;
}

.counts {
  flex-wrap: wrap;
  gap: 13px;
  font-size: 12px;
  color: var(--mute);
}

.counts span {
  gap: 5px;
}

.circle-arrow {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8ddd8;
  background: #fff;
  border-radius: 50%;
  height: 31px;
  width: 31px;
  min-width: 31px;
  margin: 0 16px 0 0;
  color: #364d59;
}

.course-card:hover .circle-arrow,.circle-arrow:hover {
  background: #f4ede6;
  color: var(--red);
}

.source-card,.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px 22px;
}

.source-card {
  background: #f2f2ea;
  position: relative;
  overflow: hidden;
}

.source-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #596652;
}

.source-card h3,.side-panel h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 10px 0 4px;
  letter-spacing: -.4px;
}

.source-card p {
  font-size: 12px;
  color: #627066;
}

.source-card .text-link {
  margin-top: 14px;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mute);
  font-size: 12px;
  margin: -12px 0 26px;
}

.crumbs a:hover {
  text-decoration: underline;
}

.course-map,.chapter-plan {
  --title-size: clamp(1.5rem, 2.6vw, 1.875rem);
  --section-size: 1.0625rem;
  font-size: .875rem;
}

.course-map .crumbs {
  margin-bottom: 16px;
}

.course-map .page-heading {
  margin-bottom: 20px;
}

.course-map .btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: .8125rem;
}

.sequence-title {
  margin: 0 0 9px;
}

.sequence-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.sequence-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .8125rem;
}

.sequence-table thead {
  background: #edf1f3;
  color: #435967;
}

.sequence-table th,.sequence-table td {
  padding: 8px 14px;
  border-bottom: 1px solid #e1e6e8;
  text-align: start;
}

.sequence-table thead th {
  font-weight: 600;
  font-size: .75rem;
}

.sequence-table tbody tr:last-child > * {
  border-bottom: 0;
}

.sequence-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.sequence-table tbody tr:hover,.sequence-table tbody tr:focus-within {
  background: #edf4f7;
}

.chapter-label {
  width: 1%;
  white-space: nowrap;
  color: var(--mute);
}

.sequence-table tbody th {
  padding-block: 0;
}

.chapter-title-link {
  display: block;
  padding-block: 10px;
  color: var(--navy);
  font-weight: 600;
}

.chapter-title-link .icon {
  margin-inline-start: 3px;
  color: #71828d;
}

.chapter-title-link:hover,.table-link:hover {
  text-decoration: underline;
}

.table-resources div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.table-link {
  color: #355b76;
  white-space: nowrap;
  font-size: .75rem;
}

.table-link .icon {
  width: 11px;
}

.sequence-table tr > :last-child {
  width: 1%;
  text-align: center;
}

.course-sources {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-sources .source-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.course-sources .source-card h3 {
  margin-top: 6px;
  font-size: .9375rem;
}

.course-sources .source-card .text-link {
  margin-top: 5px;
}

.course-sources .earlier {
  padding: 8px 0 0;
}

.eyebrow,.res-type {
  color: var(--quiet);
  font-size: 10px;
}

.move {
  display: inline-flex;
  gap: 2px;
}

.move .tool {
  width: 27px;
  height: 27px;
}

.earlier {
  font-size: 13px;
  color: var(--mute);
  padding: 15px 2px;
}

.earlier p {
  padding: 8px 12px;
}

.earlier a {
  color: var(--red);
}

summary {
  cursor: pointer;
}

summary:hover {
  text-decoration: underline;
}

summary::marker {
  font-size: .8em;
}

.chapter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.chapter-toolbar .crumbs {
  margin: 0;
}

.chapter-overview {
  margin-bottom: 18px;
  padding: 18px 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.chapter-overview h1 {
  margin: 6px 0;
}

.enquiry {
  margin-top: 12px;
}

.enquiry span {
  font-weight: 600;
  font-size: .75rem;
  color: var(--mute);
}

.enquiry p {
  margin: 2px 0;
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  padding: 12px;
}

.point-grid .empty {
  grid-column: 1 / -1;
}

.chapter-materials {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 14px;
  margin-top: 16px;
}

.chapter-plan .resource-row {
  padding: 12px 14px;
}

.chapter-plan .resource-row + .resource-row {
  border-top: 1px solid var(--line);
}

.chapter-plan .res-link,.chapter-plan .res-description {
  font-size: .8125rem;
}

.panel,.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  min-height: 43px;
  background: var(--navy);
}

#notes > .panel-heading {
  background-color: #008547;
}

#classwork > .panel-heading {
  background-color: #d91375;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.panel-title h2 {
  color: inherit;
  font-size: var(--section-size);
}

.point {
  --point-tint: #eff5fa;
  --point-header: #daeaf5;
  --point-accent: #305f87;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--point-tint);
  overflow: hidden;
}

.point:nth-of-type(3n + 2) {
  --point-tint: #fff8ec;
  --point-header: #f7e8cc;
  --point-accent: #80551e;
}

.point:nth-of-type(3n) {
  --point-tint: #f6f2fa;
  --point-header: #e9e0f1;
  --point-accent: #68507d;
}

.point-heading {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 62px;
  padding: 10px;
  background: var(--point-header);
  color: var(--navy);
}

.point-num {
  padding: 4px 5px;
  border-radius: 4px;
  background: var(--point-accent);
  color: white;
  font: 600 .6875rem/1.2 var(--font-family);
  font-variant-numeric: tabular-nums;
}

.point-heading h3 {
  font-size: .9375rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.point-heading .tool {
  width: 26px;
  height: 26px;
  color: var(--point-accent);
}

.point-body {
  display: grid;
  gap: 11px;
  padding: 12px;
}

.point-part {
  min-width: 0;
}

.point p {
  font-size: .8125rem;
  line-height: 1.55;
  color: #344550;
  margin: 0;
}

.point .scope-label {
  margin: 0 0 3px;
  color: var(--ink);
  font: 600 .75rem/1.4 var(--font-family);
}

.knowledge-list {
  margin: 0;
  padding-left: 17px;
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.55;
}

.references {
  font-size: .75rem;
  color: var(--mute);
}

.references summary {
  font-weight: 600;
}

.references summary .icon {
  margin: 0 3px;
}

.references summary span {
  font: 500 12px var(--font-family);
  border-radius: 4px;
  background: var(--white);
  padding: 1px 4px;
  margin-left: 3px;
}

.references div {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
}

.references a {
  color: var(--navy);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.side-panel .source-label {
  color: var(--red);
  margin-bottom: 16px;
}

.side-panel p {
  color: #344550;
  font-size: 16px;
  white-space: pre-line;
}

.side-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.side-panel .text-action {
  margin-top: 18px;
}

.empty {
  padding: 22px;
  border: 1px dashed #cdd3cc;
  border-radius: 7px;
  color: var(--mute);
  background: #f8f9f6;
}

.empty p {
  margin-top: 3px;
  font-size: 1rem;
}

.panel .empty {
  border: 0;
  border-radius: 0;
}

.res-group+.res-group {
  border-top: 1px solid #e3e6df;
}

.resource-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 40px;
  background: #ebeff1;
  border: 1px solid #dde4e5;
  border-radius: 5px;
  color: #4a6376;
  flex: none;
}

.resource-main {
  min-width: 0;
  flex: 1;
}

.res-type {
  letter-spacing: 1.1px;
  font-size: 9px;
}

.res-link {
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.res-link:hover {
  color: var(--red);
  text-decoration: underline;
}

.res-link .icon {
  color: #647582;
  margin-left: 2px;
}

.res-description {
  font-size: 1rem;
  color: #40515b;
  margin: 4px 0;
  white-space: pre-line;
}

.filename {
  color: #667078;
  font: 11px/1.4 var(--font-family);
  overflow-wrap: anywhere;
}

.res-status {
  margin-top: 6px;
}

.matched {
  margin: 0 20px 16px 26px;
  border-left: 2px solid #88a397;
  padding: 7px 0 0 13px;
  background: #f5f8f4;
  border-radius: 0 5px 5px 0;
}

.matched .key-row {
  padding: 10px 9px 12px 0;
}

.key-icon {
  background: #e1ece3;
  border-color: #d4e1d4;
  color: #4e7059;
}


footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 11px;
}

footer>span:first-child {
  font-weight: 500;
  font-size: 15px;
  color: #425360;
}

footer i {
  font-style: normal;
  margin: 0 6px;
  color: #b18a78;
}

dialog {
  width: min(550px,calc(100vw - 24px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0;
  box-shadow: 0 18px 80px #0d233443;
  color: var(--ink);
  background: white;
}

dialog::backdrop {
  background: #12233070;
}

#editor-body {
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
}

.modal-head {
  padding: 21px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-head .eyebrow {
  color: var(--red);
}

.modal-head>div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  font-size: var(--section-size);
  letter-spacing: -.02em;
}

.modal-content {
  overflow: auto;
  padding: 19px 24px 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 14px;
  min-width: 0;
}

.field>span,.check-line {
  font-weight: 600;
  font-size: 14px;
}

.field small,.form-section small {
  font: 500 12px/1.4 var(--font-family);
  color: var(--quiet);
  margin-left: 5px;
}

.field input,.field textarea,.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c7cfca;
  border-radius: 5px;
  background: #fff;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
}

.field-grid {
  display: flex;
  gap: 12px;
}

.field-grid>.field {
  flex: 1;
}

.form-section {
  font: 600 16px/1.4 var(--font-family);
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin: 5px 0 12px;
}

.form-help {
  font-size: 14px;
  color: var(--mute);
  margin: -6px 0 15px;
}

.ref-row {
  border: 1px solid #dde2da;
  border-radius: 6px;
  padding: 10px 34px 0 12px;
  position: relative;
  margin-bottom: 10px;
}

.ref-row .tool {
  position: absolute;
  right: 2px;
  top: 5px;
}

.check-line {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 8px 0 12px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}

.danger {
  margin-right: auto;
  color: #ad4131;
  text-decoration: underline;
  font-size: 13px;
}

.modal-content>.text-action {
  margin-bottom: 10px;
}

#form-error {
  background: #fff2ec;
  border: 1px solid #efc5b8;
  color: #8e3827;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
}

#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 11px 20px;
  box-shadow: 0 4px 20px #162c3e22;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

#toast.visible {
  opacity: 1;
}

@media(min-width:1550px) {
  main {
    padding-top: 52px;
  }
}

@media(max-width:960px) {
  .mast-inner,main,footer {
    width: calc(100% - 48px);
  }
  .mast-inner {
    gap: 25px;
  }
  .dashboard-columns {
    gap: 18px;
    grid-template-columns: minmax(0,1.7fr) minmax(225px,1fr);
  }
  .card-copy {
    padding: 13px;
  }
  .course-cover {
    min-width: 84px;
    width: 22%;
  }
  .counts {
    gap: 7px;
  }
  .point-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .resource-row {
    padding: 16px 13px;
  }
}

@media(max-width:720px) {
  .mast-inner,main,footer {
    width: calc(100% - 32px);
  }
  .mast-inner {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding-top: 13px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand span {
    font-size: 22px;
  }
  .brand small {
    font-size: 8px;
  }
  .workspace {
    order: 1;
    font-size: 11px;
  }
  .mast-inner nav {
    order: 2;
    width: 100%;
    padding: 10px 0 8px;
    gap: 8px;
  }
  .mast-inner nav a {
    padding: 6px 11px;
    font-size: 12px;
  }
  .masthead {
    border-bottom-width: 2px;
  }
  main {
    padding: 25px 0 30px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .dashboard-columns,.chapter-materials {
    grid-template-columns: 1fr;
  }
  .dashboard-columns {
    margin-top: 23px;
  }
  .section-heading h2 {
    font-size: var(--section-size);
  }
  .course-cover {
    width: 24%;
    max-width: 130px;
  }
  .course-card {
    min-height: 134px;
  }
  .card-copy h3 {
    font-size: 1.375rem;
  }
  .source-card {
    padding: 16px 18px;
  }
  .crumbs {
    margin: 0 0 18px;
  }
  .table-resources,.chapter-title-link .icon {
    display: none;
  }
  .chapter-label {
    width: 5rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .sequence-table th,.sequence-table td {
    padding-inline: 8px;
  }
  .chapter-overview {
    padding: 14px 14px 0;
  }
  .point-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .point-heading {
    min-height: auto;
  }
  .side-panel {
    padding: 16px;
  }
  .heading-actions .btn {
    min-height: 35px;
  }
  .modal-content {
    padding: 15px 17px 6px;
  }
  .modal-head,.modal-foot {
    padding: 14px 17px;
  }
  footer {
    gap: 10px;
  }
}

@media(max-width:420px) {
  .card-copy {
    padding: 10px;
  }
  .course-cover {
    min-width: 76px;
    width: 23%;
  }
  .circle-arrow {
    width: 25px;
    height: 25px;
    min-width: 25px;
    margin-right: 9px;
  }
  .counts {
    font-size: 11px;
  }
  .panel-title {
    gap: 6px;
  }
  .ref-row {
    padding-right: 28px;
  }
  .field-grid {
    gap: 7px;
  }
  footer {
    font-size: 10px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .btn,.circle-arrow,.course-card {
    transition: background .14s,color .14s,border-color .14s;
  }
}

.chapter-jumps {
  display: flex;
  align-items: center;
  gap: 5px 12px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding: 7px 0;
  border-top: 1px solid #e4e8ea;
}

.jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  font-size: .75rem;
  color: #435865;
  border-radius: 4px;
}

.jump .icon {
  width: 14px;
}

.jump:hover {
  background: #edf3f5;
}

.panel {
  scroll-margin: 14px;
}

.review-entry {margin-top:12px}
.review-layout {display:grid;grid-template-columns:minmax(0,2fr) minmax(225px,.85fr);gap:24px;align-items:start}
.review-form {background:white;border:1px solid var(--line);border-radius:8px;padding:22px}
.review-form h2 {font-size: var(--section-size);line-height: 1.3;margin-bottom:10px}
.review-form > p,.review-previous p {color:var(--mute);margin:0 0 16px}
.review-form > .field {max-width:610px}
.review-form .form-error {color:#8c382b;background:#fbefe9;border-radius:5px;padding:9px 12px}
.review-form .btn:disabled {cursor:wait}
.review-previous {border-top:1px solid var(--line);padding:12px 0;margin:8px 0 12px}
.review-previous summary {font-weight:600;color:var(--navy)}
.review-previous[open] > summary {margin-bottom:10px}
.edition-source {display:grid;gap:7px;color:var(--mute);font-size: 1rem;margin:5px 0 10px}
.edition-source a,.scope-row a,.proposal a {color:var(--red);font-size:13px}
.scope-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.75fr);align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.scope-row strong,.proposal-old strong {display:block}
.scope-row select {padding:7px 8px;width:100%;border:1px solid var(--line);border-radius:5px;background:white}
.proposal {margin:14px 0;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.proposal-heading {background:var(--navy);color:white;padding:9px 14px;font-size:14px}
.proposal-heading span {font-weight: 600;margin-right:12px}
.proposal-old,.proposal-new {padding:12px 15px}
.proposal-old {background:var(--paper);font-size: 1rem}
.proposal-old small {color:var(--mute)}
.proposal-old ul {padding-left:18px;margin:5px 0}
.proposal-new .check-line {margin-bottom:0}
.review-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:720px) {
  .review-layout,.scope-row {grid-template-columns:1fr}
  .review-form {padding:16px}
}


