@charset "UTF-8";
:root {
  --ink: #172b4d;
  --muted: #485973;
  --paper: #eef2f8;
  --white: #ffffff;
  --line: #c1cddd;
  --english: #183fa8;
  --polish: #ffdf69;
  --orange: #b9532c;
  --orange-bg: #fbecdf;
  --radius: 18px;
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

button,a,select,input,textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none!important;
}

.site-header {
  max-width: 1280px;
  margin: auto;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.7px;
}

.brand-mark {
  width: 42px;
  height: 46px;
  background: var(--ink);
  color: #fcf8e9;
  border-radius: 10px 10px 17px 10px;
  font-family: Georgia,serif;
  font-size: 27px;
  display: grid;
  place-items: center;
  letter-spacing: -2px;
  font-weight: normal;
}

.brand div>span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 500;
  margin-top: 5px;
  color: var(--muted);
}

.local-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}

.local-badge>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #598065;
}

main {
  max-width: 1184px;
  margin: auto;
  padding: 0 0 36px;
}

.intro {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  margin-bottom: 16px;
}

.intro h1 {
  font-family: Georgia,"Times New Roman",serif;
  font-weight: normal;
  font-size: clamp(30px,3.5vw,43px);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.intro h1 em {
  font-weight: normal;
  color: var(--english);
}

.lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.material-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 26px;
  flex-shrink: 0;
  padding-right: 8px;
}

.material-counts strong {
  display: block;
  font-family: Georgia,serif;
  font-size: 38px;
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 8px;
}

.material-counts div {
  border-left: 1px solid #c6cdbf;
  padding-left: 18px;
}

.material-counts div>span {
  font-size: 11px;
  color: var(--muted);
}

.topic-count {
  grid-column: 1/-1;
  font-size: 11px;
  color: var(--muted);
  padding-left: 18px;
}

.topic-count>span {
  margin-left: 12px;
}

.mode-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.mode-nav button {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 18px 16px;
  text-align: left;
  font-weight: 750;
  font-size: 15px;
  color: var(--ink);
}

.mode-nav button[aria-pressed=true] {
  color: var(--white);
  border-color: var(--english);
  background: var(--english);
}

.mode-nav button[aria-pressed=true] .tab-number,
.mode-nav button[aria-pressed=true] .tab-detail {
  color: var(--white);
}

.tab-number {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--muted);
}

.tab-detail {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  font-weight: normal;
}

.study-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 32px;
  align-items: start;
}

.settings {
  padding: 22px;
  background: #e2e9f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font-weight: 650;
}

.section-label>span {
  font-size: 18px;
  font-weight: normal;
  line-height: 10px;
}

.settings label,.reference-body label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.settings select {
  width: 100%;
  background: var(--white);
  border: 1px solid #98aac2;
  border-radius: 8px;
  padding: 11px 27px 11px 10px;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 18px;
  cursor: pointer;
}

.filter-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 13px 21px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  transition: background .15s,transform .15s;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover:not(:disabled) {
  background: var(--english);
}

.button-outline {
  border-color: #c6cdbf;
  background: transparent;
}

.button-outline:hover:not(:disabled) {
  background: #d5e2f5;
}

.button-review {
  background: var(--orange-bg);
  color: #874125;
  border-color: #ebcfb8;
}

.button-known {
  background: var(--english);
  color: var(--white);
}

.full-width {
  width: 100%;
  font-size: 12px;
  padding: 10px;
}

.sidebar-note {
  border-top: 1px dashed #c9cfbf;
  margin-top: 23px;
  padding-top: 19px;
  display: flex;
  gap: 10px;
}

.small-star {
  font-size: 24px;
  color: #7e8c64;
}

.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.workspace {
  min-width: 0;
  outline: none;
}

.session-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 1.2px;
  margin: 5px 0 13px;
  font-weight: 600;
}

.session-heading>span:last-child {
  white-space: nowrap;
  color: var(--muted);
  font-weight: normal;
}

progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 3px;
  background: #e2e4da;
  appearance: none;
  margin-bottom: 20px;
}

progress::-webkit-progress-bar {
  background: #e2e4da;
  border-radius: 3px;
}

progress::-webkit-progress-value {
  background: #8d9a6a;
  border-radius: 3px;
}

progress::-moz-progress-bar {
  background: #8d9a6a;
  border-radius: 3px;
}

.exercise-meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: .2px;
  line-height: 1.4;
  background: #dde7fc;
  color: #183c87;
}

.pill-reading {
  background: #f0e7d9;
  color: #7e5435;
}

.pill-practice {
  background: #eeece2;
  color: #67664f;
}

.source-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration-thickness: 1px;
}

.flashcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 330px;
  padding: 14px;
  border: 2px solid #9dafc9;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 5px 0 #d3ddeb;
}

.card-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  position: relative;
  width: 100%;
}

.card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 220px;
  padding: 26px 20px;
  border-radius: 12px;
}

.card-side-en {
  background: var(--english);
  color: #ffffff;
}

.card-side-pl {
  background: var(--polish);
  color: #302300;
}

.card-connector {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #a8b8cf;
  background: #ffffff;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
}

.card-side-hidden {
  background: #f2f5fa;
  color: #43546f;
  border: 2px dashed #8295b4;
}

.card-label {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 750;
  margin-bottom: 17px;
}

.card-word {
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.card-side-pl .card-word {
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 750;
}

.card-placeholder {
  font-size: 46px;
  font-weight: 750;
}

.card-recall {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

.card-instruction {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.6;
}

.flip-symbol {
  font-size: 19px;
  line-height: 1;
}

.card-context {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 18px 10px 0;
}

.card-example {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card-note {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  color: var(--muted);
}

.rating-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.session-state {
  margin: -8px 0 16px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
  color: var(--ink);
}

.session-save-status {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  color: var(--muted);
}

.keyboard-help {
  text-align: center;
  color: #667367;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .2px;
  margin: 18px 0 4px;
}

kbd {
  font: inherit;
  border: 1px solid #d5d9ce;
  border-radius: 4px;
  padding: 2px 5px;
  background: #fefdfa;
  color: #54604d;
  margin: 0 2px;
}

.writing-card {
  border: 1px solid #d9ddcf;
  background: var(--white);
  border-radius: var(--radius);
  padding: 27px;
}

.prompt-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 13px;
}

.writing-prompt {
  font-size: 26px;
  font-weight: 700;
  color: #163b92;
  background: #edf2ff;
  border-left: 5px solid var(--english);
  border-radius: 5px;
  padding: 14px 18px;
  line-height: 1.55;
  letter-spacing: -.25px;
  margin-bottom: 23px;
  overflow-wrap: anywhere;
}

.writing-card label {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-bottom: 9px;
}

.answer-input {
  width: 100%;
  border: 1px solid #c8d1bd;
  border-radius: 9px;
  background: #fcfdf7;
  padding: 14px;
  min-height: 105px;
  resize: vertical;
  line-height: 1.7;
  font-size: 14px;
  color: var(--ink);
}

.answer-input:disabled {
  color: #4c5e51;
  opacity: 1;
  background: #f1f2eb;
}

.writing-card input.answer-input {
  min-height: 48px;
}

.writing-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.text-button {
  background: none;
  border: 0;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.text-button:hover {
  color: var(--ink);
}

.hint-box {
  background: #f8f0e2;
  color: #795c36;
  border-left: 3px solid #c6a468;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 16px;
}

.feedback {
  padding: 20px;
  margin-top: 20px;
  border-radius: 12px;
  background: #eff2e8;
  border: 1px solid #d5deca;
}

.feedback.match {
  background: #e6efdf;
}

.feedback-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  margin-bottom: 14px;
}

.feedback .model-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #657557;
}

.model-answer {
  font-size: 20px;
  font-weight: 650;
  color: #302300;
  background: #ffedaa;
  border-left: 5px solid #bd8c00;
  padding: 12px 15px;
  line-height: 1.65;
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
}

.explanation {
  font-size: 12px;
  line-height: 1.8;
  color: #52624d;
  margin-bottom: 0;
}

.feedback details {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
}

.feedback summary {
  cursor: pointer;
}

.feedback ul {
  padding-left: 20px;
}

.self-assessment {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 0;
}

.empty-state,.complete-state {
  padding: 48px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.state-symbol {
  font-family: Georgia,serif;
  font-size: 42px;
  color: #7a8a60;
  margin-bottom: 15px;
}

.empty-state h2,.complete-state h2 {
  font-family: Georgia,serif;
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 12px;
  letter-spacing: -.6px;
}

.empty-state p,.complete-state p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 490px;
}

.complete-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.session-result {
  display: flex;
  gap: 40px;
  margin: 15px 0 25px;
}

.session-result strong {
  font-family: Georgia,serif;
  font-weight: normal;
  font-size: 33px;
  display: block;
}

.session-result span {
  font-size: 11px;
  color: var(--muted);
}

.progress-panel {
  margin: 33px 0 0;
  padding: 25px 30px;
  border: 1px solid #d8ddce;
  border-radius: var(--radius);
  background: #e9edde;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.progress-panel .eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-bottom: 10px;
  color: #55634c;
}

.progress-panel h2 {
  font-family: Georgia,serif;
  font-size: 25px;
  font-weight: normal;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}

.progress-panel p:last-child {
  font-size: 11px;
  line-height: 1.7;
  color: #5f6a53;
  margin: 0;
}

.progress-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  text-align: center;
  flex-shrink: 0;
}

.progress-stats strong {
  display: block;
  font-family: Georgia,serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.2;
}

.progress-stats span {
  font-size: 10px;
  line-height: 1.6;
  color: #637052;
}

.progress-stats .text-button {
  grid-column: 1/-1;
  font-size: 10px;
  margin-top: 4px;
}

.storage-status {
  font-size: 11px;
  color: #86552e;
  line-height: 1.7;
  margin: 10px 0;
}

.storage-status:empty {
  display: none;
}

.reference {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.reference+ .reference {
  margin-top: 0;
}

.reference>summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 16px;
}

.reference>summary::-webkit-details-marker {
  display: none;
}

.reference summary .eyebrow {
  display: block;
  font-size: 9px;
  margin-bottom: 8px;
  letter-spacing: 1.1px;
  color: var(--muted);
}

.reference summary strong {
  font-size: 15px;
  font-weight: 500;
}

.details-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
}

details[open]>.reference-body {
  padding: 0 0 25px;
}

details[open]>summary>.details-icon {
  transform: rotate(45deg);
}

.reference-body p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 850px;
}

.reference-body input[type=search] {
  width: 100%;
  max-width: 650px;
  border: 1px solid #cdd3c3;
  border-radius: 9px;
  padding: 13px 15px;
  background: var(--white);
  margin: 1px 0 12px;
  color: var(--ink);
}

#dictionary-count {
  font-size: 11px;
}

#dictionary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dictionary-entry {
  background: var(--white);
  border: 1px solid #e1e4d8;
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
}

.dictionary-entry h3 {
  font-size: 21px;
  color: var(--english);
  font-weight: 600;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}

.dictionary-entry p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}

.dictionary-entry .dictionary-example {
  font-style: italic;
  color: #71805f;
  font-size: 11px;
}

.dictionary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dictionary-footer .pill {
  font-size: 9px;
  padding: 3px 6px;
}

.writing-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}

.source-links {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  margin: 18px 0 22px;
}

.source-links a {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

footer {
  max-width: 1280px;
  margin: auto;
  padding: 23px 48px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #72806a;
  font-size: 10px;
}

.footer-brand {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -.5px;
}

footer>span:last-child {
  letter-spacing: 1px;
  font-size: 9px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 10;
}

.skip-link:focus {
  top: 10px;
}

.noscript {
  padding: 20px;
  text-align: center;
  color: #a1331e;
}

@media(min-width:1450px) {
  .site-header,footer {
    max-width: 1380px;
  }

  main {
    max-width: 1284px;
  }

  .intro {
    padding-top: 25px;
  }

  .study-layout {
    grid-template-columns: 270px minmax(0,1fr);
    gap: 40px;
  }

  .flashcard {
    min-height: 350px;
  }

}

@media(max-width:1280px) {
  main {
    margin: 0 48px;
  }

}

@media(max-width:1000px) {
  .tab-detail {
    display: none;
  }

  .study-layout {
    grid-template-columns: 225px minmax(0,1fr);
    gap: 22px;
  }

  .settings {
    padding: 18px;
  }

  .material-counts {
    gap: 22px 12px;
  }

  .intro h1 {
    font-size: 36px;
  }

  .intro {
    gap: 20px;
  }

  .material-counts strong {
    font-size: 33px;
  }

  .progress-panel {
    padding: 22px;
  }

  .progress-stats {
    gap: 0 20px;
  }

  .progress-panel h2 {
    font-size: 22px;
  }

}

@media(max-width:760px) {
  main {
    margin: 0 22px;
  }

  .site-header {
    padding: 20px 22px;
  }

  .local-badge {
    font-size: 10px;
  }

  .intro {
    padding: 20px 0;
    align-items: start;
  }

  .intro h1 {
    font-size: 30px;
    letter-spacing: -.7px;
  }

  .intro h1 em {
    display: inline;
  }

  .intro .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
    line-height: 1.8;
  }

  .lead {
    font-size: 13px;
    line-height: 1.7;
  }

  .material-counts {
    grid-template-columns: 1fr;
    gap: 17px;
    min-width: 100px;
    padding-top: 0;
    padding-right: 0;
  }

  .material-counts strong {
    font-size: 28px;
  }

  .material-counts div {
    padding-left: 12px;
  }

  .material-counts div>span {
    font-size: 9px;
  }

  .topic-count {
    display: none;
  }

  .mode-nav {
    gap: 8px;
    margin-bottom: 20px;
  }

  .mode-nav button {
    font-size: 14px;
    gap: 7px;
    padding: 14px 10px;
    line-height: 1.5;
  }

  .tab-number {
    font-size: 9px;
  }

  .study-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .workspace {
    grid-row: 1;
  }

  .settings {
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
    padding: 18px;
  }

  .section-label {
    grid-column: 1/-1;
    margin-bottom: 18px;
  }

  .settings>label[for=status],.settings>label[for=limit] {
    align-self: end;
  }

  .settings label[for=topic] {
    grid-column: 1;
  }

  .settings #topic {
    grid-column: 1;
    grid-row: 3;
  }

  .settings #direction-field {
    grid-column: 2;
    grid-row: 2/4;
  }

  .settings #origin-field {
    grid-column: 1;
    grid-row: 4/6;
  }

  .settings>label[for=status] {
    grid-column: 2;
    grid-row: 4;
  }

  .settings #status {
    grid-column: 2;
    grid-row: 5;
  }

  .settings>label[for=limit] {
    grid-column: 1;
    grid-row: 6;
  }

  .settings #limit {
    grid-column: 1;
    grid-row: 7;
    margin-bottom: 0;
  }

  .settings .filter-help {
    grid-column: 2;
    grid-row: 6/8;
    align-self: center;
    margin: 0;
  }

  .settings #restart {
    grid-column: 1/-1;
    margin-top: 15px;
  }

  .sidebar-note {
    display: none;
  }

  .session-heading {
    font-size: 9px;
  }

  .flashcard {
    min-height: 0;
    padding: 10px;
  }

  .card-pair {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 12px;
  }

  .card-side {
    min-height: 125px;
    padding: 20px 16px;
  }

  .card-connector {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .card-word, .card-side-pl .card-word {
    font-size: 34px;
  }

  .card-label {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .card-instruction {
    font-size: 11px;
    padding: 12px 5px 0;
  }

  .card-example {
    font-size: 17px;
  }

  .writing-card {
    padding: 22px;
  }

  .writing-prompt {
    font-size: 23px;
  }

  .progress-panel {
    margin-top: 27px;
    padding: 22px;
    flex-wrap: wrap;
  }

  .progress-stats {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
  }

  .progress-stats .text-button {
    margin: 0;
  }

  .progress-panel h2 {
    font-size: 25px;
  }

  .writing-rules,#dictionary {
    grid-template-columns: 1fr;
  }

  .reference summary strong {
    font-size: 14px;
  }

  footer {
    padding: 23px 22px;
    flex-wrap: wrap;
  }

  footer>span:nth-child(2) {
    order: 3;
    width: 100%;
  }

}

@media(max-width:420px) {
  main {
    margin: 0 16px;
  }

  .site-header {
    padding: 18px 16px;
  }

  .brand {
    font-size: 19px;
  }

  .brand div>span {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .brand-mark {
    height: 40px;
    width: 36px;
    font-size: 24px;
  }

  .local-badge {
    max-width: 90px;
    line-height: 1.6;
    gap: 6px;
  }

  .local-badge>span {
    flex-shrink: 0;
  }

  .intro h1 {
    font-size: 28px;
  }

  .intro .eyebrow {
    max-width: 190px;
  }

  .material-counts {
    min-width: 86px;
  }

  .material-counts div>span {
    max-width: 85px;
    display: block;
    line-height: 1.6;
  }

  .mode-nav button {
    font-size: 13px;
    gap: 6px;
    padding: 12px 9px;
  }

  .tab-number {
    font-size: 8px;
  }

  .settings {
    padding: 15px;
    gap: 0 10px;
  }

  .settings select {
    font-size: 11px;
  }

  .writing-card {
    padding: 18px;
  }

  .writing-prompt {
    font-size: 21px;
  }

  .rating-bar {
    gap: 9px;
  }

  .rating-bar .button {
    font-size: 12px;
    padding: 12px 8px;
  }

  .card-word, .card-side-pl .card-word {
    font-size: 30px;
  }

  .feedback {
    padding: 16px;
  }

  .progress-panel {
    padding: 19px;
  }

  .keyboard-help {
    font-size: 9px;
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition: none!important;
    scroll-behavior: auto!important;
  }

}
