:root {
  font-family: Inter, system-ui, sans-serif;
  color: #203b49;
  background: #f2f7f6;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 5%;
  background: white;
  border-bottom: 1px solid #d8e7e3;
}
a {
  color: #117a6c;
}
header a {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 32px;
}
.hero {
  background: #173f44;
  color: white;
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1.3px;
  margin: 6px 0;
}
.hero p {
  max-width: 740px;
}
.eyebrow {
  color: #abddd0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}
.pill {
  display: inline-block;
  background: #e3f2ed;
  color: #176457;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 13px;
}
section,
aside {
  background: white;
  border: 1px solid #d9e6e2;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}
.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}
aside {
  align-self: start;
}
h2,
h3 {
  line-height: 1.3;
}
h2 {
  margin-top: 0;
}
.toolbar,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar h2 {
  margin: 0;
  flex: 1;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid #b9cfca;
  background: #fff;
  border-radius: 9px;
  padding: 11px;
  margin-top: 6px;
}
textarea {
  resize: vertical;
  font-weight: 400;
  line-height: 1.65;
}
button,
.button {
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  background: #137d6b;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  background: #eaf2ef;
  color: #215449;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e3a446;
  outline-offset: 3px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  padding: 13px 0;
}
details {
  border-top: 1px solid #e1ebe7;
  margin-top: 12px;
}
.hint {
  font-size: 13px;
  color: #58726c;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.subject {
  border-top: 1px solid #d5e5df;
  padding: 16px 0;
}
.subject h3 {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.status {
  font-size: 12px;
  font-weight: 500;
  color: #56746b;
}
.report-choice {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  background: #eef5f2;
  color: #24584b;
}
.report-choice.active {
  background: #137d6b;
  color: white;
}
#message:not(:empty) {
  padding: 14px;
  background: #fff1d7;
  border-radius: 10px;
  white-space: pre-wrap;
}
dialog {
  width: min(860px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  padding: 28px;
}
dialog::backdrop {
  background: #173e4690;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.warning {
  color: #95521b;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 8px 0;
}
.choice input {
  width: auto;
  margin: 0;
}
#printReport {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  main {
    padding: 16px;
  }
  .layout,
  .two {
    grid-template-columns: 1fr;
  }
  header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero {
    padding: 24px;
  }
}
@media print {
  :root {
    background: white;
  }
  @page {
    size: A4;
    margin: 16mm;
  }
  body {
    background: white;
    color: #172f39;
    font-family: Arial, sans-serif;
    font-size: 11pt;
  }
  body > * {
    display: none !important;
  }
  body > #printReport {
    display: block !important;
  }
  #printReport h1 {
    font-size: 24pt;
  }
  #printReport h2 {
    margin-top: 20px;
    border-bottom: 2px solid #187d6b;
    padding-bottom: 6px;
  }
  #printReport h3 {
    font-size: 12pt;
  }
  #printReport p {
    white-space: pre-wrap;
    orphans: 3;
    widows: 3;
  }
  #printReport .subject-print {
    break-inside: auto;
  }
  #printReport h2,
  #printReport h3 {
    break-after: avoid;
  }
  .print-meta {
    color: #54756b;
    font-size: 10pt;
  }
}

#editor > .eyebrow {
  color: #24776a;
}
#demoBar {
  background: #fff3d9;
  border: 1px solid #e7c58a;
}
#pdfPreview {
  width: min(1100px, 96vw);
  height: 92vh;
}
#pdfFrame {
  width: 100%;
  height: 64vh;
  border: 1px solid #d9e6e2;
  border-radius: 8px;
}
#teacherPreviewBody .eyebrow {
  color: #24776a;
}
#pdfOpen {
  background: #eaf2ef;
  color: #215449;
}

/* Publishing workspace */
:root {
  color: #20334d;
  background: #f5f7fb;
  line-height: 1.5;
}
header {
  padding: 16px 4%;
  border-color: #e2e7ef;
  gap: 20px;
}
header a,
a {
  color: #203f69;
}
header > span:not(.pill) {
  color: #65748b;
  font-size: 14px;
}
header #signout {
  margin-left: auto;
}
main {
  max-width: 1440px;
  padding: 32px 40px;
}
.hero {
  background: none;
  color: #20334d;
  border: 0;
  padding: 0;
  margin-bottom: 28px;
  border-radius: 0;
}
.hero h1 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -1px;
}
.hero p {
  color: #64748b;
  max-width: 680px;
  margin: 8px 0;
}
.hero .eyebrow {
  color: #486484;
  font-size: 11px;
  letter-spacing: 1.6px;
}
section,
aside {
  border-color: #e2e7ef;
  border-radius: 12px;
  box-shadow: none;
}
#home {
  padding: 16px 20px;
  background: #fff;
}
#home .toolbar {
  margin-bottom: 0;
}
#home .toolbar label {
  margin: 0;
  min-width: 230px;
  order: -1;
  flex: 1;
  max-width: 480px;
}
#openDemo {
  margin-left: auto;
  background: transparent;
  text-decoration: underline;
  font-size: 13px;
}
#createWorkspaceDetails {
  margin-top: 12px;
}
#createWorkspaceDetails summary {
  font-size: 13px;
  padding: 8px 0;
}
.layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}
.layout aside {
  padding: 16px;
  background: transparent;
  border: 0;
}
aside h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #718097;
}
button,
.button {
  background: #23466f;
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 15px;
}
button.secondary,
.button.secondary,
#pdfOpen {
  background: #f0f3f8;
  color: #304e73;
}
input,
textarea,
select {
  border-color: #cfd8e4;
  border-radius: 7px;
}
textarea {
  background: #fdfefe;
}
.pill {
  background: #eaf2ed;
  color: #2d6652;
  font-size: 12px;
}
.report-choice {
  background: transparent;
  color: #344a67;
  border: 1px solid transparent;
  padding: 12px;
}
.report-choice.active {
  background: #e7edf7;
  color: #23466f;
  border-color: #cdd9e9;
}
.report-choice small {
  font-weight: 400;
}
#editor {
  padding: 28px;
}
.report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.report-heading h2 {
  font-size: 30px;
  margin: 0;
}
.report-heading .eyebrow {
  color: #59718f;
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.report-heading .hint {
  margin: 8px 0 16px;
}
.hint {
  color: #6c798e;
}
.workflow-progress {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid #e8edf4;
  padding: 15px 0;
  font-size: 13px;
  color: #6c798e;
}
.workflow-progress b {
  color: #23466f;
  font-size: 17px;
  margin-right: 4px;
}
.report-preview-card {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 22px;
  background: #f2f5fa;
  border-radius: 10px;
  margin: 8px 0 30px;
}
.paper-symbol {
  width: 70px;
  height: 90px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid #d9e1ec;
  border-radius: 4px;
  font-size: 52px;
  color: #23466f;
  box-shadow: 4px 5px 0 #e0e7f0;
}
.report-preview-card h3 {
  margin: 0;
  font-size: 19px;
}
.report-preview-card p {
  margin: 8px 0 14px;
}
.report-preview-card .actions {
  margin: 0;
}
.section-heading h3 {
  font-size: 16px;
  margin: 0;
}
.section-heading p {
  margin: 7px 0 16px;
}
.subject {
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5eaf2;
}
.subject > summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 19px 2px;
}
.subject > summary::before {
  content: "›";
  color: #6f819a;
  font-size: 22px;
  width: 16px;
}
.subject[open] > summary::before {
  transform: rotate(90deg);
}
.subject-name {
  font-size: 16px;
  min-width: 110px;
}
.subject-owner {
  font-size: 12px;
  color: #748298;
  font-weight: 400;
}
.subject .status {
  margin-left: auto;
  font-size: 11px;
  color: #4b637e;
  background: #f0f3f8;
  padding: 5px 9px;
  border-radius: 5px;
}
.subject-content {
  padding: 0 12px 22px;
}
.subject[open] {
  background: #fcfdff;
}
.subject textarea {
  min-height: 220px;
}
.subject .actions {
  gap: 7px;
}
.subject .actions button {
  font-size: 12px;
}
.subject summary:focus-visible,
summary:focus-visible {
  outline: 2px solid #547dab;
  outline-offset: 3px;
}
#coordinator {
  padding: 0 24px;
  background: white;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
}
#coordinator > summary {
  padding: 20px 0;
  color: #4f6380;
  font-size: 14px;
}
#coordinator > details:last-child {
  margin-bottom: 20px;
}
.report-maintenance {
  margin-top: 20px;
  font-size: 13px;
}
.report-maintenance > summary {
  color: #687c94;
}
.status {
  overflow-wrap: anywhere;
}
#demoBar {
  font-size: 13px;
  padding: 16px 20px;
  background: #fff9e9;
  border-color: #efe0b9;
}
#demoBar p {
  margin: 6px 0;
}
#demoBar .toolbar {
  margin: 0;
}
@media (max-width: 800px) {
  main {
    padding: 22px 16px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .layout aside {
    padding: 0;
  }
  #reports {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .report-choice {
    min-width: 170px;
    width: auto;
    flex-shrink: 0;
  }
  .report-heading h2 {
    font-size: 24px;
  }
  #editor {
    padding: 18px;
  }
  .report-preview-card {
    padding: 16px;
    gap: 12px;
  }
  .paper-symbol {
    display: none;
  }
  .subject .status {
    margin-left: 26px;
  }
  .subject-owner {
    display: block;
  }
  .subject-content {
    padding: 0 4px 16px;
  }
  .report-heading {
    flex-wrap: wrap;
  }
  header {
    gap: 12px;
  }
  header .pill {
    display: none;
  }
  .workflow-progress {
    gap: 12px;
  }
  #home .toolbar label {
    min-width: 0;
    width: 100%;
  }
  #openDemo {
    margin-left: 0;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
.has-workspace .hero {
  display: none;
}
.has-workspace main {
  padding-top: 20px;
}
.has-workspace #home {
  padding: 12px 20px;
  margin-bottom: 16px;
}
.has-workspace #home .toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 580px;
  font-size: 12px;
  white-space: nowrap;
}
.has-workspace #home select {
  margin: 0;
  min-width: 0;
}
.has-workspace #demoBar .toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  font-size: 12px;
}
.has-workspace #demoBar select {
  margin: 0;
}
@media (max-width: 800px) {
  .has-workspace #home .toolbar label {
    display: block;
    white-space: normal;
  }
  .has-workspace #home select {
    margin-top: 6px;
  }
  .has-workspace #demoBar .toolbar label {
    display: block;
    width: 100%;
  }
}
.parent-sharing {
  border-top: 1px solid #e2e7ef;
  margin-top: 24px;
  padding-top: 20px;
}
.parent-sharing h3 {
  font-size: 16px;
}
.parent-sharing input {
  font-size: 12px;
  background: #f6f8fb;
}
.parent-sharing .actions {
  margin-top: 12px;
}

.newsletter-workflow {
  border: 1px solid #dce5ec;
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
  background: #f7fafc;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.task-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.newsletter-workflow details {
  padding: 14px 0;
}
.newsletter-workflow form {
  padding: 16px;
  background: white;
  border-radius: 12px;
  margin: 10px 0;
}
.newsletter-workflow label {
  display: block;
  margin: 10px 0;
}
.newsletter-workflow input[type="checkbox"] {
  width: auto;
  display: inline;
}
.newsletter-workflow pre {
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
  font: inherit;
}
.phone-dialog {
  max-width: 440px;
}
.task-card[hidden] {
  display: none;
}

.readiness-item {
  display: block;
  text-align: left;
  margin: 8px 0;
  width: 100%;
}
.layout > *,
#editor,
.newsletter-workflow,
#progressResult {
  min-width: 0;
}
#progressResult table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
#progressResult th,
#progressResult td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #dce5ec;
  min-width: 105px;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .newsletter-workflow {
    padding: 16px;
  }
  .task-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Keep setup secondary; put the weekly task within the first screen. */
.has-workspace main {
  max-width: 1440px;
  margin: auto;
  padding-top: 12px;
}
.has-workspace #home {
  padding: 10px 18px;
  margin-bottom: 10px;
}
#home .toolbar {
  margin: 0;
  gap: 12px;
}
#home select {
  max-width: 360px;
}
.has-workspace #createWorkspaceDetails {
  border: 0;
  margin: 0;
}
.has-workspace #createWorkspaceDetails > summary {
  font-size: 12px;
  padding: 5px 0;
  color: #637389;
}
#demoBar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 18px;
  margin-bottom: 18px;
  font-size: 13px;
}
#demoBar .toolbar {
  margin: 0;
  gap: 8px;
  margin-left: auto;
}
#demoBar .toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}
#demoBar select {
  width: 230px;
  padding: 8px;
}
#demoBar button {
  padding: 8px 12px;
  font-size: 12px;
}
#demoBar .demo-help {
  border: 0;
  margin: 0;
  max-width: 360px;
}
#demoBar .demo-help summary {
  padding: 4px;
  color: #705d36;
  font-size: 12px;
}
#workspace > .toolbar {
  display: none;
}
.layout {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}
#editor {
  padding: 24px;
  border: 0;
  background: white;
}
.contribution-overview.newsletter-workflow {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.overview-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.overview-heading h2 {
  margin: 5px 0;
  font-size: 28px;
}
.overview-heading label {
  min-width: 180px;
  margin: 0;
  font-size: 12px;
}
.task-grid {
  grid-template-columns: 1fr;
  margin: 12px 0;
  gap: 8px;
}
.task-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #f6f8fc;
  border: 1px solid #e1e7ef;
}
.task-description {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.task-description > span,
.task-description > small {
  font-size: 12px;
  font-weight: 400;
  color: #5f7289;
}
.task-action {
  font-size: 13px;
  color: #23466f;
  white-space: nowrap;
}
.report-heading {
  border-top: 1px solid #e1e7ef;
  padding-top: 20px;
}
body[data-newsletter-role="teacher"] .layout,
body[data-newsletter-role="translator"] .layout {
  grid-template-columns: minmax(0, 1fr);
}
body[data-newsletter-role="teacher"] .layout > aside,
body[data-newsletter-role="translator"] .layout > aside {
  display: none;
}
body[data-newsletter-role="teacher"] .report-preview-card,
body[data-newsletter-role="translator"] .report-preview-card {
  padding: 12px 16px;
  margin: 12px 0;
  background: transparent;
  border: 1px solid #e1e7ef;
}
body[data-newsletter-role="teacher"] .paper-symbol,
body[data-newsletter-role="translator"] .paper-symbol {
  display: none;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #demoBar .toolbar {
    margin-left: 0;
    flex-wrap: wrap;
  }
  #demoBar select {
    width: 190px;
  }
  .overview-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .overview-heading h2 {
    font-size: 24px;
  }
  .overview-heading label {
    min-width: 0;
    width: 100%;
  }
  .task-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  #editor {
    padding: 18px;
  }
  .has-workspace #home .toolbar label {
    display: block;
  }
  #home select {
    max-width: 100%;
  }
}
@media (max-width: 800px) {
  .has-workspace #home .toolbar {
    flex-wrap: wrap;
  }
  .has-workspace #home .toolbar label {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .has-workspace #home select {
    width: 100%;
  }
  #demoBar .demo-help {
    font-size: 12px;
  }
}
.contribution-overview .eyebrow {
  color: #527585;
}

.matrix-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
}
.progress-matrix table {
  width: 100%;
  border-collapse: collapse;
}
.progress-matrix th,
.progress-matrix td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5ebf1;
  min-width: 145px;
}
.progress-matrix th {
  background: #f5f8fc;
}
.progress-matrix small {
  display: block;
  font-weight: 400;
  margin-top: 5px;
}
.matrix-cell {
  width: 100%;
  text-align: left;
  background: #edf2f7;
  color: #253d58;
  border: 1px solid #ccd9e5;
}
.matrix-cell.state-missing {
  background: #fff1eb;
  color: #843d24;
}
.matrix-cell.state-draft {
  background: #fff8e6;
  color: #75500f;
}
.matrix-cell.state-submitted {
  background: #eaf2ff;
  color: #234a7e;
}
.matrix-cell.state-translated,
.matrix-cell.state-approved {
  background: #e6f4ee;
  color: #1e624b;
}
.review-feedback {
  border-left: 4px solid #ca9143;
  padding: 14px;
  background: #fff8e9;
  margin-bottom: 18px;
}

/* Keep daily work separate from administration without recreating draft fields. */
#newsletterNav{display:grid;gap:6px;margin-bottom:24px;position:sticky;top:16px}
#newsletterNav button{text-align:left;width:100%;background:transparent;color:#294869;border:1px solid transparent;border-radius:9px;padding:12px 14px;font-weight:700}
#newsletterNav button:hover{background:#edf4fa}
#newsletterNav button[aria-current="page"]{background:#21466e;color:white;border-color:#21466e}
#editor>[hidden],.contribution-overview>[hidden]{display:none!important}
@media(max-width:760px){#newsletterNav{display:flex;position:static;overflow-x:auto;gap:8px;margin-bottom:12px}#newsletterNav button{width:auto;flex:0 0 auto}}

body[data-newsletter-role] .layout{grid-template-columns:220px minmax(0,1fr)}
body[data-newsletter-role] .layout>aside{display:block}
@media(max-width:760px){body[data-newsletter-role] .layout{grid-template-columns:minmax(0,1fr)}}

/* Match the main teacher workspace without changing newsletter content layouts. */
:root { color:#16223a; background:#f7f7f4; }
body { background:#f7f7f4; }
button,.button { border-radius:6px; box-shadow:none; background:#183e35; }
button.secondary,.button.secondary { background:#fff; color:#183e35; border-color:#dce1dd; }
input,select,textarea { border-radius:6px; border-color:#dce1dd; }
input:focus,select:focus,textarea:focus { outline:2px solid #21654d; outline-offset:2px; }
#newsletterNav button { border-radius:4px; color:#344c40; }
#newsletterNav button:hover { background:#edf3ed; }
#newsletterNav button[aria-current="page"] { background:#183e35; border-color:#183e35; }
