:root {
  --floa-bg: #101217;
  --floa-panel: #1a1d25;
  --floa-line: #30343e;
  --floa-text: #f5f4ef;
  --floa-muted: #adb2c1;
  --floa-blue: #8c9fff;
  --floa-space: 24px;
  --floa-radius: 18px;
  --accent: #8c9fff;
}
* {
  box-sizing: border-box;
}
body.floa {
  margin: 0;
  background: var(--floa-bg);
  color: var(--floa-text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--floa-blue);
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.floa-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 4vw;
  border-bottom: 1px solid var(--floa-line);
  background: var(--floa-bg);
  position: relative;
  z-index: 40;
}
.floa-brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.floa-brand span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--floa-muted);
  align-self: flex-end;
  margin-bottom: 8px;
}
.floa-nav {
  display: flex;
  gap: 25px;
  margin: auto;
}
.floa-nav a {
  color: var(--floa-muted);
  font-size: 14px;
}
.floa-nav a[aria-current="page"] {
  color: var(--floa-text);
}
.floa-nav small {
  font-size: 9px;
  text-transform: uppercase;
  border: 1px solid var(--floa-line);
  padding: 3px;
}
.floa-account,
.floa-signin,
.floa-switcher {
  font-size: 13px;
}
.floa-signin {
  padding: 8px 16px;
  border: 1px solid var(--floa-line);
  border-radius: 30px;
}
.floa-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.floa-switcher summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 36px;
}
.floa-switcher nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--floa-panel);
  border: 1px solid var(--floa-line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 15px 40px #0008;
}
.floa-switcher a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
}
.floa-switcher a:hover {
  background: #30343e;
}
.floa-switcher small {
  color: var(--floa-muted);
}
.floa-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: #fff;
  color: #000;
  z-index: 100;
}
.floa-skip:focus {
  top: 12px;
}
.floa-main {
  max-width: 1240px;
  margin: auto;
  padding: 0 40px 80px;
}
.floa-hero {
  padding: 100px 0 90px;
  position: relative;
  border-bottom: 1px solid var(--floa-line);
  margin-bottom: 55px;
}
.floa-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent);
}
.floa h1 {
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -4px;
  margin: 25px 0;
}
.floa h1 span {
  color: var(--accent);
}
.floa-hero p,
.floa-heading p {
  color: var(--floa-muted);
  font-size: 18px;
  max-width: 580px;
}
.floa-button {
  display: inline-flex;
  gap: 55px;
  background: #a5b4ff;
  color: #121625;
  border-radius: 30px;
  padding: 13px 25px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 14px;
}
.floa-caption {
  display: block;
  margin-top: 15px;
  color: var(--floa-muted);
  font-size: 12px;
}
.floa-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.floa-section-title h2 {
  font-size: 32px;
  margin: 6px 0;
  font-weight: 500;
  letter-spacing: -1px;
}
.floa-section-title p {
  font-size: 13px;
  color: var(--floa-muted);
}
.floa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.floa-card {
  padding: 24px;
  border: 1px solid var(--floa-line);
  border-radius: var(--floa-radius);
  background: var(--floa-panel);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.floa-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.floa-card-top,
.floa-card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.floa-number {
  font-size: 11px;
  color: var(--floa-muted);
}
.floa-badge {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--floa-line);
  border-radius: 20px;
  padding: 5px 10px;
  color: var(--accent);
}
.floa-card-art {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 80px;
  color: var(--accent);
  font-family: Georgia, serif;
}
.floa-card h3 {
  font-size: 23px;
  font-weight: 500;
  margin: 8px 0;
}
.floa-card h3 span {
  font-size: 20px;
  color: var(--accent);
}
.floa-card p {
  font-size: 13px;
  color: var(--floa-muted);
  margin-bottom: 5px;
}
.accent-ochre {
  --accent: #eac386;
}
.accent-coral {
  --accent: #efaa95;
}
.accent-green {
  --accent: #98c7a3;
}
.accent-blue {
  --accent: #9caeff;
}
.accent-violet {
  --accent: #c0a5eb;
}
.accent-rose {
  --accent: #e6a4b9;
}
.floa-future {
  margin-top: 65px;
}
.floa-future h2 {
  font-weight: 500;
}
.floa-future p {
  color: var(--floa-muted);
  font-size: 14px;
}
.floa-future > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.floa-future a {
  border: 1px solid var(--floa-line);
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 14px;
}
.floa-heading {
  padding: 70px 0 40px;
}
.floa-state {
  padding: 25px;
  border: 1px solid var(--floa-line);
  border-radius: 12px;
  margin: 25px 0;
  color: var(--floa-muted);
}
.floa-state strong {
  color: var(--floa-text);
}
.floa-state p {
  font-size: 14px;
  margin-bottom: 0;
}
.floa-state a {
  color: var(--floa-blue);
}
.floa-sample {
  background: var(--accent);
  color: #202329;
  padding: 65px;
  border-radius: 18px;
  max-width: 850px;
  margin: 10px auto 50px;
}
.floa-sample .floa-eyebrow {
  color: inherit;
}
.floa-sample h2 {
  font-size: 48px;
  line-height: 1.15;
  max-width: 600px;
  font-weight: 500;
  letter-spacing: -2px;
}
.floa-sample p {
  max-width: 500px;
}
.floa-sample small {
  display: block;
  border-top: 1px solid #20232944;
  padding-top: 20px;
  margin-top: 50px;
}
.sample-words {
  text-align: center;
}
.sample-words h2,
.sample-words p {
  margin-left: auto;
  margin-right: auto;
}
.sample-nature {
  border-radius: 120px 18px 18px;
}
.sample-travel {
  min-height: 420px;
  border-left: 60px solid #20232944;
}
.sample-ideas h2 {
  font-family: Georgia, serif;
  font-style: italic;
}
.sample-watch {
  background: #22232e;
  color: #f4ebef;
  min-height: 400px;
  text-align: center;
}
.sample-watch h2,
.sample-watch p {
  margin-left: auto;
  margin-right: auto;
}
.floa-play {
  font-size: 75px;
  display: block;
  color: var(--accent);
}
.floa-preview-mix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.floa-preview-mix article {
  background: #eac386;
  color: #232127;
  border-radius: 18px;
  padding: 45px;
  min-height: 280px;
}
.floa-preview-mix article + article {
  background: #efaa95;
}
.floa-preview-mix span {
  font-size: 11px;
}
.floa-preview-mix h2 {
  font-size: 36px;
  line-height: 1.1;
}
.floa-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 0 4vw;
  padding: 30px 0;
  border-top: 1px solid var(--floa-line);
  font-size: 12px;
  color: var(--floa-muted);
}
.floa-notice {
  margin: 10px 4vw;
  color: var(--floa-muted);
}
.floa-settings {
  max-width: 680px;
}
.floa-settings label {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}
.floa-settings input:not([type="checkbox"]),
.floa-settings select {
  max-width: 280px;
  width: 55%;
  border: 1px solid var(--floa-line);
  background: var(--floa-panel);
  color: var(--floa-text);
  padding: 10px;
  border-radius: 8px;
}
.floa-settings fieldset {
  border: 1px solid var(--floa-line);
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
}
.floa-settings button,
.floa-header button {
  background: var(--floa-panel);
  color: var(--floa-text);
  border: 1px solid var(--floa-line);
  padding: 10px 15px;
  border-radius: 20px;
}
.floa-saved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.floa-saved-grid img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #202329;
}
.floa-art .topbar {
  position: relative;
  inset: auto;
  transform: none !important;
}
.floa-art .layout {
  padding-top: 30px;
}
.floa-art .left {
  top: 180px;
}
.floa-art .page-topbar {
  position: relative;
  top: auto;
}
.floa-art .floa-header .floa-nav {
  margin: auto;
}
.floa-art .floa-footer {
  margin-top: 40px;
}
.floa-art .floa-header {
  line-height: 1.6;
}
.floa-art .floa-header button {
  font-size: 12px;
}
.floa-sample-states summary {
  cursor: pointer;
  color: var(--floa-muted);
}
@media (max-width: 900px) {
  .floa-header {
    gap: 15px;
    flex-wrap: wrap;
  }
  .floa-nav {
    order: 5;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--floa-line);
    padding-top: 12px;
  }
  .floa-brand {
    margin-right: auto;
  }
  .floa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .floa-section-title p {
    display: none;
  }
  .floa-art .left {
    top: 220px;
  }
}
@media (max-width: 580px) {
  .floa-header {
    padding: 14px 20px;
    gap: 12px;
  }
  .floa-brand {
    font-size: 29px;
  }
  .floa-brand span {
    display: none;
  }
  .floa-account {
    display: none;
  }
  .floa-main {
    padding: 0 22px 50px;
  }
  .floa-hero {
    padding: 65px 0 50px;
  }
  .floa h1 {
    letter-spacing: -2px;
  }
  .floa-hero p {
    font-size: 16px;
  }
  .floa-grid,
  .floa-preview-mix,
  .floa-saved-grid {
    grid-template-columns: 1fr;
  }
  .floa-card-art {
    height: 120px;
  }
  .floa-card {
    padding: 22px;
  }
  .floa-heading {
    padding-top: 45px;
  }
  .floa-sample {
    padding: 30px;
    border-radius: 18px;
  }
  .floa-sample h2 {
    font-size: 35px;
  }
  .sample-travel {
    border-left-width: 20px;
  }
  .floa-footer {
    flex-wrap: wrap;
  }
  .floa-settings label {
    flex-wrap: wrap;
  }
  .floa-art .layout {
    padding-top: 15px;
  }
  .floa-art .topbar {
    height: auto;
    min-height: 76px;
  }
  .floa-art .left {
    top: auto;
  }
  .floa-settings input:not([type="checkbox"]),
  .floa-settings select {
    width: 100%;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.floa-art {
  --acid: #eac386;
  --orange: #eac386;
}
@media (max-width: 580px) {
  .floa-art .floa-footer {
    padding-bottom: 100px;
  }
}

.floa-document {
  padding-top: 40px;
  overflow-wrap: anywhere;
}
.floa-document h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1px;
}
.floa-document a {
  text-decoration: underline;
}
.floa-document pre {
  overflow-x: auto;
}
.floa-document table {
  display: block;
  overflow-x: auto;
}

/* Concise shared platform shell */
.floa-header {
  min-height: 72px;
  gap: 18px;
  padding-block: 14px;
}
.floa-brand {
  font-size: 29px;
  letter-spacing: -1.8px;
}
.floa-nav {
  margin: 0;
  gap: 18px;
}
.floa-nav a,
.floa-switcher summary,
.floa-user-menu summary {
  white-space: nowrap;
}
.floa-session {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.floa-user-menu {
  position: relative;
  font-size: 13px;
}
.floa-user-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border: 1px solid var(--floa-line);
  border-radius: 30px;
}
.floa-user-menu summary::-webkit-details-marker {
  display: none;
}
.floa-user-menu > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--floa-line);
  border-radius: 12px;
  background: var(--floa-panel);
  box-shadow: 0 15px 40px #0008;
}
.floa-user-menu a,
.floa-user-menu button {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--floa-text);
  text-align: left;
  font-size: 13px;
}
.floa-user-menu a:hover,
.floa-user-menu button:hover {
  background: #30343e;
}
@media (max-width: 900px) {
  .floa-session {
    margin-left: 0;
  }
}
@media (max-width: 580px) {
  .floa-nav {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }
  .floa-session {
    margin-left: auto;
  }
}

/* Art pages inherit the same left-aligned platform navigation as every other destination. */
.floa-art .floa-header .floa-nav {
  margin: 0;
}

/* Stream pages keep their own identity; shared destinations live in More. */
.floa-stream-header {
  min-height: 72px;
  flex-wrap: nowrap;
  gap: 12px;
}
.floa-stream-header .floa-brand {
  align-items: baseline;
  margin-right: auto;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: -.8px;
}
.floa-stream-name { font-size: 28px; font-weight: 650; }
.floa-stream-header .floa-brand .floa-stream-signature {
  display: inline;
  align-self: auto;
  margin: 0;
  color: #9298a6;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.6px;
}
.floa-stream-header .floa-session { margin-left: 0; }
.floa-stream-header .floa-switcher > summary {
  min-height: 44px;
  padding: 10px 8px;
  color: var(--floa-muted);
  list-style: none;
}
.floa-stream-header .floa-switcher > summary::-webkit-details-marker { display: none; }
.floa-stream-header .floa-switcher nav {
  max-height: min(640px, calc(100dvh - 90px));
  overflow-y: auto;
}
.floa-menu-label {
  display: block;
  padding: 12px 10px 4px;
  margin-top: 4px;
  border-top: 1px solid var(--floa-line);
  color: var(--floa-muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.floa-stream-footer { justify-content: center; color: var(--floa-muted); font-size: 13px; }
.floa-stream-footer small { margin-left: 6px; opacity: .7; }
@media (max-width: 580px) {
  .floa-stream-header { padding: 10px 14px; gap: 8px; }
  .floa-stream-name { font-size: 26px; }
  .floa-stream-header-long .floa-stream-name { font-size: 18px; }
  .floa-stream-header .floa-signin { padding-inline: 12px; }
}

.words-main { max-width: 760px; margin: 0 auto; padding: 72px 28px; }
.words-review-link a, .words-review a { color: var(--accent); }
.words-review { display: grid; gap: 16px; border: 1px solid var(--floa-line); border-radius: var(--floa-radius); background: var(--floa-panel); padding: 24px; }
.words-review > label, .words-review article > label { display: grid; gap: 7px; color: var(--floa-muted); font-size: 13px; }
.words-review select, .words-review input, .words-review textarea { border: 1px solid var(--floa-line); border-radius: 8px; background: var(--floa-bg); color: var(--floa-text); padding: 9px; font: inherit; }
.words-review textarea { min-height: 76px; resize: vertical; }
.words-review > button, .words-review article > button { width: fit-content; background: var(--accent); color: #222; border: 0; border-radius: 24px; padding: 11px 16px; font-weight: 700; }
.words-review article { display: grid; gap: 15px; border-top: 1px solid var(--floa-line); padding-top: 22px; }
.words-review article h2, .words-review article p { margin: 0; }
.words-review article fieldset { border: 1px solid var(--floa-line); border-radius: 10px; padding: 12px; }
#words-review-categories { display: flex; flex-wrap: wrap; gap: 10px; }
#words-review-categories label { display: flex; gap: 6px; align-items: center; }
.words-review-drift { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--floa-muted); }
.words-heading { margin-bottom: 34px; }
.words-heading h1 { margin: 10px 0; font-size: clamp(42px, 7vw, 72px); letter-spacing: -3px; line-height: 1; }
.words-heading h1 span { color: var(--accent); }
.words-heading p { color: var(--floa-muted); max-width: 600px; }
.words-setup, .words-card, .words-summary { border: 1px solid var(--floa-line); border-radius: var(--floa-radius); background: var(--floa-panel); padding: 24px; margin: 20px 0; }
.words-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.words-setup > label, .words-setup fieldset { display: grid; gap: 7px; color: var(--floa-muted); font-size: 13px; }
.words-setup select, .words-setup input[type="number"] { border: 1px solid var(--floa-line); border-radius: 8px; background: var(--floa-bg); color: var(--floa-text); padding: 9px; }
.words-setup fieldset { grid-column: 1 / -1; border: 1px solid var(--floa-line); border-radius: 10px; padding: 12px; }
#words-categories { display: flex; flex-wrap: wrap; gap: 10px; }
#words-categories label, .words-check { display: flex !important; align-items: center; gap: 7px; }
.words-setup > button, .words-card button { background: var(--accent); color: #222; border: 0; border-radius: 24px; padding: 11px 16px; font-weight: 700; }
.words-setup > button { grid-column: 1 / -1; }
.words-summary { display: flex; justify-content: space-between; color: var(--floa-muted); font-size: 13px; }
.words-card { text-align: center; padding: clamp(28px, 8vw, 70px); }
.words-kind { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 20px; padding: 4px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.words-word { font-size: clamp(44px, 10vw, 84px); margin: 22px 0 0; line-height: 1.05; overflow-wrap: anywhere; }
.words-pos, .words-definition, .words-secondary { color: var(--floa-muted); }
.words-translation { color: var(--accent); font-size: clamp(28px, 6vw, 48px); margin: 25px 0 0; }
.words-card blockquote { border-left: 3px solid var(--accent); text-align: left; padding-left: 14px; color: var(--floa-muted); }
.words-card blockquote footer { margin-top: 6px; }
.words-card a { color: var(--accent); font-size: 13px; }
.words-ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 12px; }
.words-ratings button:nth-child(1) { background: #e7958b; }.words-ratings button:nth-child(2) { background: #e8c883; }.words-ratings button:nth-child(3) { background: #a8d0a1; }.words-ratings button:nth-child(4) { background: #94c7d9; }
.words-secondary { display: flex; justify-content: center; gap: 14px; margin-top: 25px; }.words-secondary button { background: transparent; color: var(--floa-muted); border: 1px solid var(--floa-line); font-size: 12px; }
.words-card button span { opacity: .7; font-size: 11px; margin-left: 4px; }.words-shortcuts { color: var(--floa-muted); font-size: 12px; margin: 20px 0 0; }
@media (max-width: 580px) { .words-main { padding: 45px 20px; }.words-setup { grid-template-columns: 1fr; }.words-ratings { grid-template-columns: repeat(2, 1fr); }.words-summary { gap: 8px; flex-direction: column; } }

/* Words: deliberate pacing and readable context. */
.words-muted, .words-help { color: var(--floa-muted); }
.words-help { font-size: 12px; line-height: 1.6; margin: 4px 0; }
.words-wide { grid-column: 1 / -1; }
.words-card-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
#words-topics { color: var(--floa-muted); font-size: 13px; }
.words-cue { color: var(--floa-muted); font-size: 17px; line-height: 1.5; }
.words-card { scroll-margin-top: 24px; }
.words-card button:disabled, .words-setup button:disabled { cursor: default; opacity: .55; }
.words-card[aria-busy="true"] button:disabled { cursor: wait; }
.words-ratings button[aria-pressed="true"] { outline: 3px solid var(--floa-text); outline-offset: 3px; opacity: 1; }
#words-rating-result { font-size: 14px; line-height: 1.6; }
#words-message { border-left: 3px solid var(--accent); padding: 12px 16px; }
#words-report, .words-history { text-align: left; margin-top: 28px; border-top: 1px solid var(--floa-line); padding-top: 18px; }
#words-report summary, .words-history summary { cursor: pointer; color: var(--floa-muted); font-size: 14px; }
#words-report label { display: grid; gap: 8px; margin: 16px 0; }
#words-report textarea { width: 100%; min-height: 90px; box-sizing: border-box; border: 1px solid var(--floa-line); border-radius: 8px; background: var(--floa-bg); color: var(--floa-text); font: inherit; padding: 12px; }
.words-history ol { list-style: none; padding: 0; }
.words-history li { border-bottom: 1px solid var(--floa-line); padding: 18px 0; }
.words-history li p { color: var(--floa-muted); line-height: 1.6; font-size: 14px; }
.words-secondary { flex-wrap: wrap; }
.words-reports { border-bottom: 1px solid var(--floa-line); padding-bottom: 14px; }

/* Words daily practice and personal vocabulary. */
.words-home, .words-finish, .words-library { border: 1px solid var(--floa-line); border-radius: var(--floa-radius); background: var(--floa-panel); padding: 28px; margin: 24px 0; }
.words-home-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.words-home h2, .words-finish h2, .words-library h2 { margin: 8px 0; font-size: clamp(24px, 4vw, 34px); letter-spacing: -1px; }
.words-home p, .words-finish p, .words-library p { color: var(--floa-muted); line-height: 1.6; }
.words-home button, .words-finish button, .words-library button { border: 1px solid var(--floa-line); border-radius: 24px; padding: 12px 18px; background: var(--floa-bg); color: var(--floa-text); font: inherit; cursor: pointer; min-height: 44px; }
.words-home .words-primary, .words-finish-actions button:first-child { background: var(--accent); color: #222; border-color: var(--accent); font-weight: 700; }
.words-primary { width: 100%; margin-top: 22px; }
.words-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--floa-line); border-bottom: 1px solid var(--floa-line); }
.words-stats div { display: grid; gap: 6px; }
.words-stats strong { font-size: 26px; color: var(--floa-text); }
.words-stats span { color: var(--floa-muted); font-size: 12px; }
.words-session-options, .words-library-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
.words-session-options label, .words-library-filters label { display: grid; flex: 1; min-width: 180px; gap: 8px; font-size: 13px; color: var(--floa-muted); }
.words-session-options select, .words-library-filters input, .words-library-filters select { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--floa-line); border-radius: 10px; padding: 12px; background: var(--floa-bg); color: var(--floa-text); font: inherit; min-height: 44px; }
.words-settings { margin: 20px 0; }
.words-settings > summary { cursor: pointer; color: var(--floa-muted); padding: 12px 0; }
.words-ratings small { display: block; font-weight: 400; font-size: 11px; line-height: 1.5; margin-top: 6px; }
.words-ratings button { min-height: 66px; }
.words-secondary button { min-height: 44px; }
.words-finish-actions, .words-library-pages { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.words-library ol { padding: 0; list-style: none; }
.words-library li { border-bottom: 1px solid var(--floa-line); padding: 20px 0; }
.words-library li h3 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.words-library { scroll-margin-top: 24px; }
.words-main button:disabled { opacity: .55; cursor: default; }
.words-main :is(button, select, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 580px) { .words-home, .words-finish, .words-library { padding: 20px; }.words-home-header { align-items: start; flex-direction: column; gap: 12px; }.words-stats { gap: 8px; }.words-stats strong { font-size: 22px; }.words-session-options, .words-library-filters { flex-direction: column; align-items: stretch; }.words-session-options label, .words-library-filters label { min-width: 0; }.words-finish-actions { flex-direction: column; }.words-word { font-size: clamp(36px, 10vw, 64px); }.words-card { padding: 28px 20px; } }

.words-card .words-listen { background: transparent; border: 1px solid var(--floa-line); color: var(--floa-muted); font-size: 13px; min-height: 44px; margin-bottom: 8px; }

.words-advanced { grid-column: 1 / -1; }
.words-advanced > summary { cursor: pointer; padding: 10px 0; color: var(--floa-muted); font-size: 13px; }
.words-advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.words-advanced-grid > label { display: grid; gap: 7px; color: var(--floa-muted); font-size: 13px; }
@media (max-width: 580px) { .words-advanced-grid { grid-template-columns: 1fr; } }
