@import url('./assets/base.css');
:root {
  --ink: #3d3650;
  --muted: #766e82;
  --paper: #f8f5f0;
  --panel: #fffdfa;
  --accent: #665496;
  --line: #dfd9e3;
  --soft: #eee8f5;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
  padding: 64px 0 52px;
}
.intro h1 {
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 550;
  letter-spacing: -2.5px;
  line-height: 1.13;
  margin: 15px 0 22px;
}
.intro h1 span {
  color: #89779e;
}
.lede {
  font-size: 16px;
  line-height: 1.8;
  max-width: 600px;
  color: var(--muted);
}
.intro-shapes {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shape {
  width: 90px;
  height: 104px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-family: Georgia, serif;
}
.circle {
  border-radius: 50%;
  background: #e2e8d9;
  transform: translateY(16px);
}
.arch {
  border-radius: 50% 50% 8px 8px;
  background: #dfd5e9;
}
.square {
  border-radius: 8px;
  background: #eedece;
  transform: translateY(16px);
}
.intro-shapes p {
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-top: 30px;
}
.studio {
  display: grid;
  grid-template-columns: 280px minmax(300px, 1fr) 275px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.plan-panel {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #f5f1f7;
}
.plan-panel label {
  margin-top: 20px;
}
.plan-panel label:first-of-type {
  margin-top: 0;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 14px;
}
.list-heading h3 {
  font-size: 13px;
  margin: 0;
}
.list-heading span {
  font-size: 10px;
  color: var(--muted);
}
#activities {
  display: grid;
  gap: 8px;
}
.activity-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px;
  background: #fffdfa;
  border: 1px solid var(--line);
  width: 100%;
  font-weight: 450;
  font-size: 12px;
}
.activity-item[aria-pressed='true'] {
  border-color: #817299;
  background: #ece5f4;
}
.activity-item .number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #e1d7ea;
  border-radius: 50%;
  font-size: 10px;
}
.activity-item small {
  font-size: 9px;
  color: var(--muted);
}
.add-button {
  width: 100%;
  margin: 12px 0;
  background: transparent;
  border-style: dashed;
  font-size: 11px;
}
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.plan-actions button {
  font-size: 10px;
  padding: 8px;
}
details {
  font-size: 11px;
  margin-top: 22px;
}
details label {
  margin-top: 15px !important;
}
input[type='file'] {
  font-size: 10px;
}
.plan-panel > .help {
  margin: 22px 0 0;
}
.session-panel {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.9px;
  color: var(--muted);
}
.session-label {
  font-weight: 650;
}
#player {
  padding: 40px 10px 20px;
}
.activity-symbol {
  width: 92px;
  height: 92px;
  border-radius: 45% 45% 40% 40%;
  background: #e5ebdb;
  margin: 0 auto 27px;
  display: grid;
  place-items: center;
  font-size: 39px;
  color: #526b47;
}
#player h3 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 550;
  margin: 12px 0 20px;
}
#current-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto;
}
#player-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
}
#timer {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  margin-top: 20px;
  color: var(--accent);
}
.next-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: #f7f4f8;
  border-radius: 8px;
  padding: 12px 18px;
  text-align: left;
  margin-top: auto;
}
.next-preview span {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.next-preview p {
  font-size: 12px;
  margin: 0;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 25px 0 8px;
}
.player-controls button {
  font-size: 12px;
}
.player-controls .primary {
  min-width: 160px;
}
#status {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 34px;
}
.preferences {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 10px;
}
.preferences label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 450;
  margin: 0;
}
.preferences input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.editor-panel {
  padding: 24px;
  border-left: 1px solid var(--line);
}
.editor-panel legend {
  font-size: 14px;
  margin-bottom: 22px;
}
.editor-panel label {
  margin-top: 18px;
}
.editor-panel form > label:first-child {
  margin-top: 0;
}
.editor-panel input,
.editor-panel textarea,
.editor-panel select {
  font-size: 12px;
}
.editor-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}
.editor-panel .primary {
  width: 100%;
  margin-top: 20px;
  font-size: 12px;
}
.reorder {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}
.reorder button {
  font-size: 10px;
  padding: 8px;
  flex: 1;
}
#remove {
  font-size: 11px;
  width: 100%;
  margin-top: 8px;
}
.editor-note {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.editor-note > span {
  font-size: 24px;
  color: #88799e;
}
.editor-note h3 {
  font-size: 13px;
}
.editor-note p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.principles {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
  margin: 60px 0 30px;
}
.principles h2 {
  font-size: 27px;
}
.principles h3 {
  font-size: 14px;
}
.principles p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.scope-note {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 30px;
  max-width: 900px;
}
.high-contrast {
  --ink: #211832;
  --muted: #44394f;
  --line: #8b7a9a;
  --accent: #4f317c;
}
.high-contrast .intro h1 span {
  color: #665078;
}
.high-contrast .activity-item small {
  color: #44394f;
}
@media (max-width: 1150px) {
  .studio {
    grid-template-columns: 250px 1fr;
  }
  .editor-panel {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  #editor label,
  #editor input,
  #editor textarea {
    grid-column: 1;
  }
  #editor label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
  #activity-description {
    grid-column: 2 !important;
    grid-row: 2/5;
  }
  .editor-row {
    grid-column: 1;
  }
  .editor-panel .primary {
    grid-column: 2;
    align-self: end;
  }
  .editor-note {
    display: none;
  }
  .reorder {
    max-width: 300px;
  }
  #remove {
    width: auto;
  }
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .intro {
    display: block;
    padding: 36px 0;
  }
  .intro h1 {
    letter-spacing: -1.5px;
  }
  .intro-shapes {
    display: none;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .plan-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .session-panel {
    padding: 24px 20px;
  }
  #player {
    padding-top: 30px;
  }
  #player h3 {
    font-size: 28px;
  }
  .editor-panel {
    grid-column: auto;
  }
  #editor {
    display: block;
  }
  #editor label:nth-of-type(2) {
    margin-top: 18px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section-head {
    align-items: start;
  }
  .local-badge {
    font-size: 9px;
  }
  .activity-symbol {
    width: 80px;
    height: 80px;
  }
  .session-top {
    font-size: 8px;
  }
}
@media print {
  .topbar,
  .intro,
  .editor-panel,
  .session-panel,
  .plan-actions,
  .add-button,
  details,
  .principles,
  footer,
  .scope-note,
  .skip,
  #template,
  #plan-title,
  label[for='template'],
  label[for='plan-title'],
  .plan-panel > .help {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  main {
    padding: 0;
  }
  .studio {
    display: block;
    border: 0;
  }
  .plan-panel {
    background: white;
    border: 0;
    padding: 0;
  }
  .activity-item {
    break-inside: avoid;
    border: 1px solid #999 !important;
    background: white !important;
    color: black;
    padding: 20px;
    font-size: 17px;
  }
  .activity-item small {
    font-size: 14px;
  }
  .list-heading h3 {
    font-size: 20px;
  }
  .section-head {
    display: block;
  }
  #save-status {
    display: none;
  }
}

#print-plan {
  display: none;
}
@media print {
  main > * {
    display: none !important;
  }
  main > #print-plan {
    display: block !important;
  }
  #print-plan h1 {
    font-size: 26px;
  }
  #print-plan li {
    break-inside: avoid;
    padding: 14px 0;
    border-bottom: 1px solid #bbb;
  }
  #print-plan h2 {
    font-size: 19px;
    margin: 0;
  }
  #print-plan p {
    font-size: 14px;
    line-height: 1.7;
  }
  #print-plan small {
    font-size: 12px;
  }
}

.language-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}
.language-control select {
  width: auto;
  max-width: 9rem;
  margin: 0;
  padding: 0.4rem;
  font: inherit;
}
.topbar nav {
  flex-wrap: wrap;
}
