html {
  -webkit-text-size-adjust: 100%;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

:root {
  --bg: #f3f6fb;
  --bg-soft: #e8edf6;
  --surface: rgba(255, 255, 255, .82);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-muted: rgba(238, 243, 251, .9);
  --line: rgba(137, 151, 176, .34);
  --line-strong: rgba(116, 132, 158, .52);
  --text: #111827;
  --text-soft: #536176;
  --text-muted: #738096;
  --accent: #2d68d8;
  --accent-strong: #1f56c0;
  --accent-soft: rgba(45, 104, 216, .14);
  --success: #1e7a3c;
  --success-bg: #e8f7ee;
  --danger: #a52823;
  --danger-bg: #fff0ef;
  --shadow: 0 18px 52px rgba(60, 75, 106, .16);
  --shadow-soft: 0 10px 28px rgba(60, 75, 106, .1);
  --radius: 18px;
  --radius-small: 12px;
  --sidebar-width: 238px;
}

html.theme-dark {
  color-scheme: dark;
  --bg: #070b12;
  --bg-soft: #0d1420;
  --surface: rgba(21, 29, 42, .68);
  --surface-strong: rgba(20, 28, 41, .88);
  --surface-muted: rgba(35, 45, 62, .72);
  --line: rgba(174, 196, 230, .17);
  --line-strong: rgba(177, 201, 240, .28);
  --text: #f5f8fd;
  --text-soft: #b8c3d6;
  --text-muted: #8895ab;
  --accent: #5f96ff;
  --accent-strong: #2f73f4;
  --accent-soft: rgba(95, 150, 255, .18);
  --success: #77e49a;
  --success-bg: rgba(31, 104, 58, .28);
  --danger: #ff9b93;
  --danger-bg: rgba(112, 43, 43, .32);
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, .25);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

html.theme-dark body {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, .16), rgba(7, 11, 18, .86) 44%, #070b12 78%),
    radial-gradient(980px 520px at 66% 3%, rgba(255, 190, 104, .18), transparent 62%),
    radial-gradient(920px 560px at 14% -5%, rgba(77, 143, 255, .22), transparent 62%),
    radial-gradient(820px 480px at 92% 40%, rgba(182, 71, 96, .13), transparent 65%),
    #070b12;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

button {
  -webkit-appearance: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(95, 150, 255, .18);
}

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

.app-frame {
  min-height: 100vh;
}

.auth-frame {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 24px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 40px;
}

.topbar {
  min-height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.nav {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.nav a {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--text-soft);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  font-weight: 650;
  line-height: 1;
  margin-right: 18px;
  min-height: 44px;
}

.nav-home img {
  display: none;
}

.side-nav {
  display: none;
}

html.theme-dark .side-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)),
    rgba(10, 13, 20, .68);
}

.side-brand {
  color: var(--text);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px;
}

.side-brand img {
  border-radius: 12px;
  height: 38px;
  margin-right: 10px;
  width: 38px;
}

.side-brand strong {
  font-size: 18px;
  line-height: 1.15;
}

.side-links {
  margin-top: 22px;
}

.side-links a {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text-soft);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 650;
  margin-bottom: 8px;
  min-height: 45px;
  padding: 10px 12px;
  position: relative;
}

.side-icon {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 24px;
          flex: 0 0 24px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  line-height: 24px;
  margin-right: 12px;
  text-align: center;
  width: 24px;
}

.side-icon svg {
  display: block;
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 23px;
}

.side-icon circle {
  fill: currentColor;
  stroke: none;
}

.side-links a.active,
.side-links a:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--line);
  color: var(--text);
}

html:not(.theme-dark) .side-links a.active,
html:not(.theme-dark) .side-links a:hover {
  background: rgba(45, 104, 216, .1);
}

.side-footer {
  bottom: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  left: 18px;
  position: absolute;
  right: 18px;
}

.side-footer .theme-toggle {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 0;
}

.side-footer .logout-form {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  margin: 0 0 0 8px;
}

.side-footer .icon-button,
.side-footer .theme-toggle {
  -webkit-box-shadow: none;
          box-shadow: none;
}

.icon-button,
.small-button,
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  -webkit-box-shadow: var(--shadow-soft);
          box-shadow: var(--shadow-soft);
  color: var(--text);
}

.icon-button,
.small-button {
  height: 46px;
  width: 46px;
}

.theme-toggle {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 700;
  min-height: 46px;
  padding: 0 14px;
}

.theme-toggle span:first-child {
  font-size: 18px;
  margin-right: 8px;
}

.top-theme-toggle {
  margin-left: auto;
}

.logout-form {
  margin-left: 10px;
}

.bottom-nav {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  bottom: 0;
  -webkit-box-shadow: 0 -16px 42px rgba(0, 0, 0, .18);
          box-shadow: 0 -16px 42px rgba(0, 0, 0, .18);
  display: none;
  left: 10px;
  padding: 8px;
  position: fixed;
  right: 10px;
  z-index: 20;
}

.bottom-nav a {
  border-radius: 14px;
  color: var(--text-muted);
  display: block;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-size: 12px;
  font-weight: 750;
  min-height: 42px;
  padding: 12px 4px 8px;
  text-align: center;
}

.bottom-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

main {
  padding-top: 18px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 12px;
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 20px;
}

.lead {
  color: var(--text-soft);
  font-size: 19px;
  margin: 0;
  max-width: 620px;
}

.muted {
  color: var(--text-soft);
}

.notice,
.error {
  border-radius: 22px;
  margin: 18px 0;
  padding: 14px 16px;
}

.notice {
  background: rgba(44, 101, 180, .18);
  border: 1px solid rgba(96, 154, 240, .36);
  color: var(--text);
}

.notice-success {
  background: var(--success-bg);
  border-color: rgba(92, 210, 124, .42);
  color: var(--success);
}

.notice-error,
.error {
  background: var(--danger-bg);
  border: 1px solid rgba(255, 125, 116, .42);
  color: var(--danger);
}

.hero-section,
.section-band,
.panel,
.question-panel,
.login-panel,
.empty-state,
.preview-section,
.word-card,
.card-detail,
.word-info-panel,
table,
.alphabet-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-box-shadow: var(--shadow-soft);
          box-shadow: var(--shadow-soft);
}

@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .side-nav,
  .bottom-nav,
  .topbar,
  .dashboard-stage,
  .dashboard-lane,
  .mode-tile button,
  .stage-search,
  .stage-stats div,
  .stage-poster,
  .hero-section,
  .section-band,
  .panel,
  .question-panel,
  .login-panel,
  .empty-state,
  .preview-section,
  .word-card,
  .card-detail,
  .word-info-panel,
  table,
  .alphabet-row,
  .theme-toggle,
  .icon-button,
  .small-button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .option-button,
  .mode-button,
  .audio-button,
  .primary-link,
  .secondary-link {
    -webkit-backdrop-filter: saturate(150%) blur(18px);
            backdrop-filter: saturate(150%) blur(18px);
  }
}

.hero-section,
.section-band,
.panel,
.question-panel,
.login-panel,
.empty-state,
.preview-section,
.word-info-panel {
  padding: 28px;
}

.login-panel {
  max-width: 520px;
  width: 100%;
}

.hero-section {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.dashboard-hero {
  min-height: 230px;
}

html.theme-dark .dashboard-hero:before {
  background:
    linear-gradient(100deg, rgba(10, 15, 24, .1), rgba(10, 15, 24, .72)),
    radial-gradient(700px 300px at 25% 0, rgba(96, 153, 255, .18), transparent 60%),
    radial-gradient(580px 360px at 100% 18%, rgba(230, 151, 87, .12), transparent 64%);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.dashboard-hero > * {
  position: relative;
}

.stat-strip,
.stat-grid,
.actions-layout,
.dashboard-card-strip,
.card-grid,
.table-actions,
.card-detail,
.card-navigation,
.card-detail-actions,
.word-info-summary,
.preview-card-header,
.candidate-row,
.practice-header,
.practice-card-prompt,
.answer-row,
.practice-actions,
.filter-form,
.section-heading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.stat-strip,
.stat-grid {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.stat-strip {
  margin-left: 20px;
  min-width: 340px;
}

.stat-strip div,
.stat-grid div {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 0 10px 10px;
  min-width: 106px;
  padding: 17px 18px;
}

.stat-strip strong,
.stat-grid strong {
  display: block;
  font-size: 34px;
  line-height: .98;
}

.stat-strip span,
.stat-grid span {
  color: var(--text-soft);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 10px;
  text-transform: lowercase;
}

.section-band,
.actions-layout,
.table-section,
.stat-grid,
.practice-shell,
.preview-section,
.dictionary-toolbar,
.cards-toolbar {
  margin-top: 20px;
}

.actions-layout {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  margin-left: -20px;
}

.actions-layout > * {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin-left: 20px;
  min-width: 0;
}

.actions-layout > .panel,
.actions-layout > form.panel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.panel h2 {
  margin-bottom: 20px;
}

.panel > .primary-link,
.panel > .secondary-link,
.panel > .primary-button,
.panel > .secondary-button,
.actions-layout > .panel .primary-link,
.actions-layout > form.panel > .primary-button,
.actions-layout > form.panel > .secondary-button {
  -ms-flex-item-align: start;
      align-self: flex-start;
}

.button-list form {
  margin-bottom: 14px;
}

.mode-button,
.primary-button,
.secondary-button,
.danger-button,
.option-button,
.primary-link,
.secondary-link,
.audio-button {
  border-radius: 15px;
  border: 1px solid var(--line);
  display: inline-block;
  font-weight: 750;
  min-height: 54px;
  padding: 15px 19px;
  text-align: center;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.mode-button,
.option-button {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  text-align: left;
  width: 100%;
}

html:not(.theme-dark) .mode-button,
html:not(.theme-dark) .option-button {
  background: rgba(255, 255, 255, .74);
}

.mode-button {
  font-size: 20px;
  min-height: 78px;
  padding: 18px 20px;
}

.mode-button span {
  display: inline-block;
  font-size: 26px;
  margin-right: 12px;
  min-width: 34px;
  text-align: center;
}

.option-button {
  font-size: 18px;
  min-height: 62px;
  padding: 17px 18px;
}

.primary-button,
.primary-link {
  background: linear-gradient(180deg, #6fa2ff, var(--accent-strong));
  border-color: rgba(159, 195, 255, .42);
  color: #06101d;
  -webkit-box-shadow: 0 10px 26px rgba(47, 115, 244, .26);
          box-shadow: 0 10px 26px rgba(47, 115, 244, .26);
}

html:not(.theme-dark) .primary-button,
html:not(.theme-dark) .primary-link {
  color: #fff;
}

.secondary-button,
.secondary-link,
.audio-button {
  background: var(--surface-muted);
  color: var(--text);
}

.danger-button {
  background: var(--danger-bg);
  border-color: rgba(255, 132, 124, .38);
  color: var(--danger);
}

.form-stack label,
.form-stack span {
  display: block;
}

.form-stack label {
  margin-bottom: 18px;
}

.form-stack span,
.filter-form span,
.candidate-translation span {
  color: var(--text-soft);
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  font-size: 17px;
  min-height: 54px;
  padding: 14px 15px;
  width: 100%;
}

html.theme-dark input[type="text"],
html.theme-dark input[type="password"],
html.theme-dark input[type="date"],
html.theme-dark select,
html.theme-dark textarea {
  background: rgba(8, 13, 22, .58);
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: var(--text-muted);
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: var(--text-muted);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="checkbox"] {
  height: 22px;
  width: 22px;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

select {
  -webkit-appearance: menulist;
}

.section-heading {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 24px;
}

.inline-actions a {
  margin-left: 8px;
}

.table-section {
  overflow: hidden;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  table-layout: fixed;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 18px 16px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--text-soft);
  font-weight: 750;
}

td {
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

.stat-grid {
  margin-left: -10px;
}

.stat-grid div {
  min-height: 108px;
  width: 184px;
}

.time-list div {
  border-top: 1px solid var(--line);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 13px 0;
}

.time-list dt {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  color: var(--text-soft);
}

.time-list dd {
  font-weight: 800;
  margin: 0;
}

.filter-form {
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  margin-left: -12px;
}

.filter-form label {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin-left: 12px;
  min-width: 0;
}

.filter-form button,
.filter-form .reset-link {
  margin-left: 12px;
}

.practice-shell {
  max-width: 940px;
}

.practice-header {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 16px;
}

.timer {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-size: 28px;
  font-weight: 850;
  min-width: 82px;
  padding: 12px 15px;
  text-align: center;
}

.timer:before {
  content: "◴ ";
  color: var(--accent);
  font-size: 20px;
}

.timer-warning {
  background: var(--danger-bg);
  color: var(--danger);
}

.question-panel {
  padding: 26px;
}

.practice-card-prompt {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 20px;
}

.practice-card-image {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  height: 176px;
  margin-right: 24px;
  -o-object-fit: cover;
     object-fit: cover;
  width: 176px;
}

.practice-card-copy {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.question-label {
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 750;
  margin: 0 0 8px;
}

.question-text {
  color: var(--text);
  font-size: 44px;
  font-weight: 850;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: anywhere;
}

.answer-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.answer-form input {
  font-size: 21px;
  margin-right: 12px;
  min-height: 60px;
}

.answer-row form,
.practice-actions form {
  margin-right: 14px;
}

.answer-row form {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.answer-row button {
  font-size: 20px;
  min-height: 68px;
  width: 100%;
}

.option-list form {
  margin-bottom: 12px;
}

.practice-actions {
  margin-top: 16px;
}

.practice-actions button {
  min-height: 58px;
}

.practice-mode-test.practice-shell {
  margin-top: 0;
}

.practice-mode-test .question-panel {
  padding: 20px;
}

.practice-mode-test .practice-card-image {
  height: 132px;
  width: 132px;
}

.practice-mode-test .question-text {
  font-size: 34px;
}

.practice-mode-test .option-button {
  min-height: 52px;
  padding-bottom: 12px;
  padding-top: 12px;
}

.practice-shell > .notice {
  margin-bottom: 18px;
}

.audio-button {
  margin-bottom: 18px;
}

.card-audio-button {
  margin-bottom: 10px;
}

.preview-audio-button {
  font-size: 14px;
  margin: 6px 10px 6px 0;
  min-height: 44px;
  padding: 10px 12px;
}

.preview-card {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.preview-card:first-of-type {
  border-top: 0;
}

.preview-card-header,
.candidate-row {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.preview-card-header {
  margin-bottom: 12px;
}

.candidate-row {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 12px;
  padding: 14px;
}

.similar-row {
  background: rgba(255, 255, 255, .05);
}

.candidate-check {
  margin-right: 12px;
  min-width: 190px;
}

.candidate-check input {
  margin-right: 10px;
  vertical-align: middle;
}

.candidate-translation {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.similar-list {
  margin-top: 12px;
}

.error-inline {
  color: var(--danger);
  margin: 0;
}

.reset-link {
  margin-left: 8px;
}

.dictionary-toolbar {
  margin-top: 24px;
}

.alphabet-row {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 12px 14px 8px 10px;
}

.alphabet-row a {
  border-radius: 12px;
  color: var(--text-soft);
  display: inline-block;
  font-weight: 750;
  margin: 0 5px 6px 0;
  min-height: 42px;
  min-width: 42px;
  padding: 9px 8px;
  text-align: center;
}

.alphabet-row .active-letter {
  background: var(--accent);
  color: #07101f;
}

html:not(.theme-dark) .alphabet-row .active-letter {
  color: #fff;
}

.dictionary-meta {
  color: var(--text-soft);
  font-weight: 700;
  margin-top: 12px;
}

.pagination-row {
  margin: 18px 0 0;
}

.pagination-row a,
.pagination-row span {
  margin-right: 8px;
}

.dictionary-word-link {
  font-weight: 800;
}

.table-section th:first-child,
.table-section td:first-child {
  width: 26%;
}

.table-section th:nth-child(2),
.table-section td:nth-child(2) {
  width: 30%;
}

.table-section th:nth-child(3),
.table-section td:nth-child(3),
.table-section th:nth-child(4),
.table-section td:nth-child(4) {
  width: 16%;
}

.table-section th:last-child,
.table-section td:last-child {
  width: 80px;
}

.cards-toolbar .dictionary-meta {
  margin-top: 12px;
}

.dashboard-hero h1 {
  font-size: 48px;
  max-width: 660px;
}

.dashboard-actions > .panel {
  padding: 26px;
}

.dashboard-actions .primary-link {
  margin-top: auto;
}

.dashboard-actions .button-list form {
  margin-bottom: 12px;
}

.dashboard-actions .mode-button {
  min-height: 74px;
}

.dashboard-card-strip {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 2px 0 18px -10px;
}

.mini-card-link {
  color: var(--text);
  display: block;
  margin: 0 0 12px 10px;
  width: 92px;
}

.mini-card-link img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  height: 92px;
  -o-object-fit: cover;
     object-fit: cover;
  width: 92px;
}

.mini-card-link span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stage {
  background:
    linear-gradient(90deg, rgba(11, 16, 26, .92), rgba(11, 16, 26, .66) 47%, rgba(11, 16, 26, .2)),
    radial-gradient(520px 320px at 78% 28%, rgba(255, 208, 126, .28), transparent 63%),
    radial-gradient(620px 360px at 24% 12%, rgba(75, 142, 255, .26), transparent 66%),
    linear-gradient(145deg, #111927, #111620 52%, #0b0f18);
  border: 1px solid rgba(202, 218, 246, .23);
  border-radius: 28px;
  -webkit-box-shadow: 0 34px 96px rgba(0, 0, 0, .42);
          box-shadow: 0 34px 96px rgba(0, 0, 0, .42);
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  padding: 38px;
  position: relative;
}

html:not(.theme-dark) .dashboard-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .72) 46%, rgba(255, 255, 255, .32)),
    radial-gradient(520px 320px at 78% 28%, rgba(255, 198, 91, .28), transparent 63%),
    radial-gradient(620px 360px at 24% 12%, rgba(45, 104, 216, .22), transparent 66%),
    linear-gradient(145deg, #eef4ff, #f9fbff 52%, #e9effa);
  color: var(--text);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}

.dashboard-stage:before,
.dashboard-stage:after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.dashboard-stage:before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 86px);
  bottom: 0;
  left: 0;
  opacity: .34;
  right: 0;
  top: 0;
}

.dashboard-stage:after {
  background: linear-gradient(0deg, rgba(7, 11, 18, .72), transparent 42%);
  bottom: 0;
  height: 44%;
  left: 0;
  right: 0;
}

html:not(.theme-dark) .dashboard-stage:after {
  background: linear-gradient(0deg, rgba(226, 233, 244, .52), transparent 42%);
}

.stage-copy,
.stage-visual {
  position: relative;
  z-index: 1;
}

.stage-copy {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 48%;
          flex: 1 1 48%;
  min-width: 0;
  padding-top: 14px;
}

.stage-kicker {
  color: rgba(227, 237, 255, .76);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

html:not(.theme-dark) .stage-kicker {
  color: var(--accent-strong);
}

.dashboard-stage h1 {
  font-size: 70px;
  line-height: .95;
  margin-bottom: 18px;
  max-width: 720px;
}

.dashboard-stage .lead {
  color: rgba(227, 237, 255, .78);
  font-size: 23px;
  line-height: 1.35;
  max-width: 620px;
}

html:not(.theme-dark) .dashboard-stage .lead {
  color: var(--text-soft);
}

.stage-search {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(231, 240, 255, .2);
  border-radius: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 28px;
  max-width: 560px;
  padding: 8px;
}

html:not(.theme-dark) .stage-search {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(116, 132, 158, .28);
}

.stage-search input {
  background: transparent;
  border: 0;
  color: inherit;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 50px;
}

.stage-search button {
  background: #fff;
  border: 0;
  border-radius: 16px;
  color: #0d1420;
  font-weight: 850;
  min-width: 104px;
  padding: 0 18px;
}

html:not(.theme-dark) .stage-search button {
  background: var(--accent);
  color: #fff;
}

.stage-session {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(231, 240, 255, .2);
  border-radius: 18px;
  display: inline-block;
  margin-top: 18px;
  padding: 12px 14px;
}

.stage-session span,
.stage-session strong {
  display: block;
}

.stage-session span {
  color: rgba(227, 237, 255, .68);
  font-size: 13px;
  font-weight: 750;
}

.stage-session strong {
  font-size: 21px;
  margin: 3px 0 8px;
}

.stage-session a {
  color: #fff;
  font-weight: 850;
}

html:not(.theme-dark) .stage-session,
html:not(.theme-dark) .stage-session a {
  color: var(--text);
}

.stage-visual {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 420px;
          flex: 0 0 420px;
  margin-left: 28px;
  min-height: 336px;
}

.stage-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 0 24px -10px;
}

.stage-stats div {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(232, 241, 255, .18);
  border-radius: 20px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin-left: 10px;
  min-height: 118px;
  padding: 20px 18px;
}

html:not(.theme-dark) .stage-stats div {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(116, 132, 158, .28);
}

.stage-stats strong {
  display: block;
  font-size: 44px;
  line-height: .95;
}

.stage-stats span {
  color: rgba(227, 237, 255, .68);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 11px;
  text-transform: lowercase;
}

html:not(.theme-dark) .stage-stats span {
  color: var(--text-soft);
}

.stage-posters {
  height: 245px;
  position: relative;
}

.stage-poster {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(232, 241, 255, .26);
  border-radius: 24px;
  -webkit-box-shadow: 0 26px 68px rgba(0, 0, 0, .34);
          box-shadow: 0 26px 68px rgba(0, 0, 0, .34);
  overflow: hidden;
  padding: 10px;
  position: absolute;
}

html:not(.theme-dark) .stage-poster {
  background: rgba(255, 255, 255, .88);
  -webkit-box-shadow: 0 22px 48px rgba(64, 80, 112, .18);
          box-shadow: 0 22px 48px rgba(64, 80, 112, .18);
}

.stage-poster img {
  background: #fff;
  border-radius: 18px;
  display: block;
  height: 152px;
  -o-object-fit: cover;
     object-fit: cover;
  width: 152px;
}

.stage-poster span {
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 850;
  margin-top: 10px;
  max-width: 152px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:not(.theme-dark) .stage-poster span {
  color: var(--text);
}

.stage-poster-1 {
  right: 154px;
  top: 8px;
  -webkit-transform: rotate(-4deg);
          transform: rotate(-4deg);
  z-index: 3;
}

.stage-poster-2 {
  right: 8px;
  top: 34px;
  -webkit-transform: rotate(5deg);
          transform: rotate(5deg);
  z-index: 2;
}

.stage-poster-3 {
  right: 244px;
  top: 122px;
  -webkit-transform: rotate(4deg);
          transform: rotate(4deg);
  z-index: 1;
}

.stage-poster-4 {
  right: 74px;
  top: 150px;
  -webkit-transform: rotate(-3deg);
          transform: rotate(-3deg);
  z-index: 4;
}

.stage-poster-empty {
  right: 42px;
  top: 36px;
}

.section-title {
  margin: 30px 0 16px;
}

.section-title h2 {
  font-size: 34px;
  margin-bottom: 6px;
}

.section-title p {
  color: var(--text-soft);
  margin: 0;
}

.mode-showcase {
  margin-top: 12px;
}

.mode-rail {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-left: -14px;
}

.mode-tile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin-left: 14px;
  min-width: 0;
}

.mode-tile button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)),
    rgba(17, 24, 37, .72);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  -webkit-box-shadow: var(--shadow-soft);
          box-shadow: var(--shadow-soft);
  color: var(--text);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  min-height: 224px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  text-align: left;
  width: 100%;
}

html:not(.theme-dark) .mode-tile button {
  background: rgba(255, 255, 255, .78);
}

.mode-tile button:before {
  background: radial-gradient(220px 150px at 18% 0, rgba(95, 150, 255, .26), transparent 68%);
  content: "";
  height: 160px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.mode-tile-test button:before {
  background: radial-gradient(220px 150px at 18% 0, rgba(121, 222, 163, .22), transparent 68%);
}

.mode-tile-danetka button:before {
  background: radial-gradient(220px 150px at 18% 0, rgba(251, 196, 101, .24), transparent 68%);
}

.mode-tile-kamikaze button:before {
  background: radial-gradient(220px 150px at 18% 0, rgba(255, 113, 104, .22), transparent 68%);
}

.mode-icon,
.mode-title,
.mode-description {
  display: block;
  position: relative;
  z-index: 1;
}

.mode-icon {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 56px;
          flex: 0 0 56px;
  font-size: 38px;
  height: 56px;
  line-height: 56px;
  margin-bottom: 18px;
}

.mode-title {
  min-height: 58px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.05;
}

.mode-description {
  color: var(--text-soft);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: auto;
  min-height: 38px;
  padding-top: 12px;
}

.mode-tile button:hover,
.mode-tile button:focus {
  border-color: rgba(159, 195, 255, .52);
  -webkit-box-shadow: 0 22px 62px rgba(38, 90, 190, .26);
          box-shadow: 0 22px 62px rgba(38, 90, 190, .26);
}

.dashboard-studio {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 22px 0 0 -18px;
}

.dashboard-lane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  -webkit-box-shadow: var(--shadow-soft);
          box-shadow: var(--shadow-soft);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin-left: 18px;
  min-height: 250px;
  padding: 28px;
}

.dashboard-lane h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.dashboard-lane .primary-link {
  -ms-flex-item-align: start;
      align-self: flex-start;
  margin-top: auto;
}

html.theme-dark .dashboard-lane,
html.theme-dark .panel,
html.theme-dark .section-band,
html.theme-dark .question-panel,
html.theme-dark .card-detail,
html.theme-dark .word-info-panel,
html.theme-dark .preview-section,
html.theme-dark .empty-state,
html.theme-dark table,
html.theme-dark .alphabet-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    rgba(17, 23, 34, .72);
}

html.theme-dark .word-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)),
    rgba(17, 23, 34, .78);
}

.practice-shell {
  margin-left: auto;
  margin-right: auto;
}

.practice-header h1 {
  font-size: 54px;
}

.question-panel {
  border-radius: 28px;
  -webkit-box-shadow: 0 24px 72px rgba(0, 0, 0, .22);
          box-shadow: 0 24px 72px rgba(0, 0, 0, .22);
}

html:not(.theme-dark) .question-panel {
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}

.practice-card-image {
  -webkit-box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
          box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.option-button,
.mode-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
    rgba(17, 23, 34, .72);
}

.audio-button,
.secondary-button,
.secondary-link {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)),
    var(--surface-muted);
}

.card-detail {
  border-radius: 28px;
}

.card-detail-image,
.card-detail-placeholder {
  border-radius: 22px;
}

.card-image-slide {
  scroll-snap-align: start;
}

.card-image-carousel {
  scroll-snap-type: x mandatory;
}

.word-info-panel h2 {
  font-size: 32px;
}

.word-info-summary div,
.stat-grid div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    var(--surface-muted);
}

.table-section table {
  border-radius: 24px;
}

.dictionary-toolbar,
.cards-toolbar,
.filter-form {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.card-grid {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 24px 0 0 -16px;
}

.word-card {
  color: var(--text);
  margin: 0 0 16px 16px;
  overflow: hidden;
  padding: 14px;
  width: calc(20% - 16px);
}

.word-card-link {
  color: inherit;
  display: block;
}

.word-card-image,
.word-card-placeholder,
.card-detail-image,
.card-detail-placeholder {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: block;
}

.word-card-image,
.word-card-placeholder {
  height: 166px;
  width: 100%;
}

.word-card-image,
.card-detail-image {
  -o-object-fit: cover;
     object-fit: cover;
}

.word-card-placeholder,
.card-detail-placeholder {
  color: var(--text-muted);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}

.word-card-body h2 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
  margin: 15px 0 5px;
  overflow-wrap: anywhere;
}

.word-card-body p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.card-navigation {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 0 22px -12px;
  max-width: 860px;
}

.card-navigation-bottom {
  margin-bottom: 0;
  margin-top: 22px;
}

.card-page-heading {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.card-page-heading h1 {
  font-size: 64px;
  line-height: .96;
  margin-bottom: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.card-nav-link {
  margin: 0 0 12px 12px;
  min-width: 176px;
}

.card-nav-link span {
  color: var(--text-muted);
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.card-nav-link strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-detail {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  color: var(--text);
  margin-top: 0;
  max-width: 900px;
  padding: 30px;
}

.card-detail-art {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-right: 34px;
}

.card-image-carousel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 300px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.card-image-slide {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 300px;
          flex: 0 0 300px;
  margin: 0 10px 0 0;
  position: relative;
}

.card-image-slide:last-child {
  margin-right: 0;
}

.image-delete-form {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 10px;
  -webkit-transition: opacity .15s ease;
  transition: opacity .15s ease;
}

.card-image-slide:hover .image-delete-form,
.card-image-slide:focus-within .image-delete-form {
  opacity: 1;
  pointer-events: auto;
}

.image-delete-form button {
  background: rgba(12, 16, 24, .86);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  height: 44px;
  line-height: 1;
  padding: 0;
  width: 44px;
}

@media (hover: none) {
  .image-delete-form {
    opacity: 1;
    pointer-events: auto;
  }
}

.card-carousel-dots {
  line-height: 1;
  margin-top: 6px;
  text-align: center;
}

.card-carousel-dots span {
  background: var(--line-strong);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin: 0 3px;
  width: 8px;
}

.card-carousel-dots .active-dot {
  background: var(--accent);
}

.card-detail-image,
.card-detail-placeholder {
  height: 300px;
  width: 300px;
}

.card-detail-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-width: 0;
  padding-top: 12px;
}

.card-detail-translation {
  color: var(--text);
  font-size: 42px;
  font-weight: 850;
  line-height: 1.08;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.card-detail-actions {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 18px 0 -10px -10px;
}

.card-detail-actions form {
  margin: 0 0 10px 10px;
}

.card-detail-actions button {
  min-height: 54px;
  white-space: normal;
}

.word-info-panel {
  color: var(--text);
  margin-top: 16px;
  max-width: 900px;
}

.word-info-summary {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 0 6px -12px;
}

.word-info-summary div {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin: 0 0 12px 12px;
  min-height: 94px;
  min-width: 170px;
  padding: 15px 16px;
}

.word-info-summary dt,
.word-info-block h3 {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.word-info-summary dd {
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  margin: 0;
}

.word-info-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.word-info-block + .word-info-block {
  margin-top: 14px;
}

.word-info-block p {
  margin: 6px 0 0;
}

.word-info-meaning {
  margin-top: 10px;
}

.word-info-ru {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.word-info-example {
  color: var(--text-soft);
  font-style: italic;
}

.word-info-example span {
  display: block;
  font-style: normal;
  margin-top: 2px;
}

.word-info-phrases p {
  overflow-wrap: anywhere;
}

.disabled-link {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text-muted);
  display: inline-block;
  min-height: 54px;
  padding: 15px 19px;
}

@media (min-width: 1040px) {
  .side-nav {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
      rgba(8, 10, 16, .56);
    border: 1px solid var(--line);
    border-radius: 26px;
    bottom: 18px;
    -webkit-box-shadow: var(--shadow);
            box-shadow: var(--shadow);
    display: block;
    left: 18px;
    padding: 18px;
    position: fixed;
    top: 18px;
    width: var(--sidebar-width);
    z-index: 10;
  }

  html:not(.theme-dark) .side-nav {
    background: rgba(255, 255, 255, .74);
  }

  .shell {
    margin-left: calc(var(--sidebar-width) + 34px);
    max-width: none;
    padding: 0 30px 46px 10px;
  }

  .topbar {
    background: transparent;
    border: 0;
    -webkit-box-shadow: none;
            box-shadow: none;
    min-height: 48px;
  }

  .app-frame:not(.auth-frame) .topbar {
    display: none;
  }

  .topbar .nav,
  .topbar .top-theme-toggle,
  .topbar .top-logout-form {
    display: none;
  }

  .bottom-nav {
    display: none;
  }

  main {
    padding-top: 18px;
  }

  .dashboard-stage {
    border-left: 0;
    border-radius: 0 0 34px 34px;
    border-right: 0;
    border-top: 0;
    margin: -18px -30px 0 -10px;
    min-height: 520px;
    padding: 58px 66px 56px;
  }

  .dashboard-stage h1 {
    font-size: 68px;
    max-width: 760px;
  }

  .dashboard-stage .lead {
    font-size: 24px;
  }

  .stage-visual {
    -ms-flex-preferred-size: 500px;
        flex-basis: 500px;
    margin-left: 38px;
  }

  .stage-stats {
    margin-top: 16px;
  }

  .stage-posters {
    height: 280px;
  }

  .stage-poster img {
    height: 176px;
    width: 176px;
  }

  .stage-poster span {
    max-width: 176px;
  }

  .stage-poster-1 { right: 190px; top: 8px; }
  .stage-poster-2 { right: 18px; top: 48px; }
  .stage-poster-3 { right: 316px; top: 156px; }
  .stage-poster-4 { right: 112px; top: 182px; }

  .mode-showcase,
  .dashboard-studio {
    max-width: 1180px;
  }
}

@media (min-width: 760px) and (max-width: 1039px) and (orientation: landscape) {
  .side-nav {
    background: rgba(13, 18, 28, .62);
    border: 1px solid var(--line);
    border-radius: 24px;
    bottom: 14px;
    -webkit-box-shadow: var(--shadow);
            box-shadow: var(--shadow);
    display: block;
    left: 14px;
    padding: 12px;
    position: fixed;
    top: 14px;
    width: 82px;
    z-index: 10;
  }

  html:not(.theme-dark) .side-nav {
    background: rgba(255, 255, 255, .78);
  }

  .side-brand {
    display: block;
    padding: 6px;
    text-align: center;
  }

  .side-brand img {
    height: 40px;
    margin: 0;
    width: 40px;
  }

  .side-brand strong,
  .side-links a span:not(.side-icon),
  .theme-toggle span[data-theme-label] {
    font-size: 0;
  }

  .side-links {
    margin-top: 18px;
  }

  .side-links a {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    height: 52px;
    margin-bottom: 8px;
    padding: 0;
  }

  .side-icon {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 52px;
            flex: 0 0 52px;
    height: 52px;
    line-height: 52px;
    margin-right: 0;
    width: 52px;
  }

  .side-icon svg {
    height: 26px;
    width: 26px;
  }

  .side-footer {
    bottom: 12px;
    display: block;
    left: 12px;
    right: 12px;
  }

  .side-footer .logout-form {
    display: none;
  }

  .side-footer .theme-toggle {
    height: 48px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 0;
    padding: 0;
    width: 56px;
  }

  .side-footer .theme-toggle span:first-child {
    margin-right: 0;
  }

  .shell {
    margin-left: 104px;
    max-width: none;
    padding: 18px 18px 28px;
  }

  .topbar .nav,
  .topbar .top-theme-toggle,
  .topbar .top-logout-form,
  .bottom-nav {
    display: none;
  }

  .app-frame:not(.auth-frame) .topbar {
    display: none;
  }

  .dashboard-hero h1 {
    font-size: 38px;
  }

  .dashboard-hero {
    min-height: 190px;
  }

  .stat-strip {
    min-width: 280px;
  }

  .stat-strip div {
    min-width: 82px;
    padding: 13px;
  }

  .stat-strip strong {
    font-size: 28px;
  }

  .dashboard-actions .mode-button {
    min-height: 66px;
  }

  .practice-shell {
    max-width: none;
  }

  .question-panel {
    padding: 20px;
  }

  .practice-card-image {
    height: 150px;
    width: 150px;
  }
}

@media (max-width: 1039px) {
  .nav-home {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 48px;
            flex: 0 0 48px;
    margin-right: 13px;
    padding: 5px 0;
    text-align: center;
    width: 48px;
  }

  .nav-home img {
    border-radius: 10px;
    display: block;
    height: 34px;
    margin: 0 auto;
    width: 34px;
  }

  .nav-home span {
    display: none;
  }
}

@media (max-width: 900px) {
  .actions-layout,
  .hero-section,
  .section-heading,
  .filter-form,
  .preview-card-header,
  .candidate-row,
  .card-detail {
    display: block;
  }

  .shell {
    padding: 16px 16px 34px;
  }

  .topbar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    -webkit-box-shadow: var(--shadow-soft);
            box-shadow: var(--shadow-soft);
    padding: 6px;
    position: sticky;
    top: 10px;
    z-index: 30;
  }

  h1 {
    font-size: 36px;
  }

  .nav a {
    font-size: 15px;
    margin-right: 13px;
  }

  .nav-home {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 48px;
            flex: 0 0 48px;
    margin-right: 11px;
    padding: 5px 0;
    text-align: center;
    width: 48px;
  }

  .nav-home img {
    border-radius: 10px;
    display: block;
    height: 34px;
    margin: 0 auto;
    width: 34px;
  }

  .nav-home span {
    display: none;
  }

  .actions-layout {
    margin-left: 0;
  }

  .actions-layout > * {
    margin: 0 0 16px;
  }

  .hero-section,
  .section-band,
  .panel,
  .question-panel,
  .login-panel,
  .empty-state,
  .preview-section,
  .word-info-panel {
    padding: 22px;
  }

  .stat-strip {
    margin: 18px 0 0 -10px;
    min-width: 0;
  }

  .inline-actions a {
    margin: 8px 8px 0 0;
  }

  .table-section {
    overflow-x: auto;
  }

  table {
    min-width: 760px;
  }

  .filter-form {
    margin-left: 0;
  }

  .filter-form label,
  .filter-form button,
  .filter-form .reset-link {
    display: block;
    margin: 0 0 10px;
    width: 100%;
  }

  .candidate-check {
    display: block;
    margin: 0 0 10px;
  }

  .card-detail-art {
    margin: 0 0 18px;
  }

  .card-image-carousel {
    max-width: 430px;
    width: 100%;
  }

  .card-image-slide {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }

  .card-detail-image,
  .card-detail-placeholder {
    height: 320px;
    max-width: 430px;
    width: 100%;
  }

  .card-detail-actions {
    display: block;
    margin-left: 0;
  }

  .card-detail-actions form {
    margin: 0 0 10px;
  }

  .card-detail-actions button {
    width: 100%;
  }

  .word-info-summary div {
    min-width: 0;
    width: calc(50% - 12px);
  }

  .word-card {
    width: calc(33.333% - 16px);
  }

  .word-card-image,
  .word-card-placeholder {
    height: 178px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .shell {
    padding: 12px 10px 30px;
  }

  main {
    padding-top: 14px;
  }

  .topbar {
    min-height: 48px;
  }

  .nav {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .nav a {
    font-size: 12px;
    margin-right: 7px;
    min-height: 42px;
    padding: 0;
    white-space: nowrap;
  }

  .nav-home {
    -ms-flex-preferred-size: 42px;
        flex-basis: 42px;
    margin-right: 8px;
    min-height: 42px;
    padding: 5px 0;
    width: 42px;
  }

  .nav-home img {
    border-radius: 9px;
    height: 32px;
    width: 32px;
  }

  .top-theme-toggle {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-left: 6px;
    min-height: 42px;
    padding: 0;
    width: 42px;
  }

  .theme-toggle span:first-child {
    margin-right: 0;
  }

  .theme-toggle span[data-theme-label] {
    display: none;
  }

  .logout-form {
    margin-left: 5px;
  }

  .icon-button,
  .small-button {
    height: 42px;
    width: 42px;
  }

  h1 {
    font-size: 34px;
  }

  .dashboard-hero {
    min-height: 0;
  }

  .dashboard-hero h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-section,
  .section-band,
  .panel,
  .question-panel,
  .login-panel,
  .empty-state,
  .preview-section,
  .word-info-panel {
    padding: 18px;
  }

  .stat-strip,
  .stat-grid,
  .answer-row,
  .practice-actions {
    display: block;
    margin-left: 0;
  }

  .stat-strip div,
  .answer-row form,
  .practice-actions form {
    margin-left: 0;
    width: auto;
  }

  .stat-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: -10px;
  }

  .stat-grid div {
    margin-left: 10px;
    min-height: 94px;
    width: calc(50% - 10px);
  }

  .stat-grid strong {
    font-size: 30px;
  }

  .mode-button {
    min-height: 74px;
  }

  .word-card {
    margin-left: 12px;
    padding: 12px;
    width: calc(50% - 12px);
  }

  .card-grid {
    margin-left: -12px;
  }

  .word-card-image,
  .word-card-placeholder {
    height: 145px;
  }

  .word-card-body h2 {
    font-size: 21px;
  }

  .word-card-body p {
    font-size: 15px;
  }

  .card-page-heading h1 {
    font-size: 44px;
  }

  .card-navigation {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    margin-left: -8px;
  }

  .card-nav-link {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 0;
            flex: 1 1 0;
    margin-left: 8px;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .card-nav-link strong {
    font-size: 16px;
  }

  .card-detail-image,
  .card-detail-placeholder {
    height: 300px;
  }

  .card-detail-translation {
    font-size: 34px;
  }

  .word-info-summary {
    display: block;
    margin-left: 0;
  }

  .word-info-summary div {
    margin-left: 0;
    width: auto;
  }

  .practice-header {
    margin-bottom: 10px;
  }

  .practice-header h1 {
    font-size: 30px;
    margin-bottom: 0;
  }

  .timer {
    font-size: 20px;
    min-width: 66px;
    padding: 8px 10px;
  }

  .timer:before {
    font-size: 16px;
  }

  .question-panel {
    padding: 14px;
  }

  .practice-card-prompt {
    margin-bottom: 14px;
  }

  .practice-card-image {
    height: 112px;
    margin-right: 12px;
    width: 112px;
  }

  .question-label {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .question-text {
    font-size: 30px;
  }

  .answer-form {
    display: block;
  }

  .answer-form input {
    margin: 0 0 12px;
  }

  .answer-form button,
  .practice-actions button,
  .audio-button {
    width: 100%;
  }

  .practice-actions {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    -webkit-box-shadow: var(--shadow-soft);
            box-shadow: var(--shadow-soft);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 12px;
    padding: 8px;
  }

  .practice-actions form {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin: 0 8px 0 0;
  }

  .practice-actions form:last-child {
    margin-right: 0;
  }

  .practice-actions button {
    font-size: 15px;
    min-height: 48px;
    padding: 10px 8px;
  }

  .practice-mode-test .practice-card-image {
    height: 84px;
    margin-right: 10px;
    width: 84px;
  }

  .practice-mode-test .question-text {
    font-size: 25px;
  }

  .practice-mode-test .option-list form {
    margin-bottom: 7px;
  }

  .practice-mode-test .option-button {
    font-size: 16px;
    min-height: 46px;
    padding: 8px 12px;
  }

}

@media (max-width: 390px) {
  .shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .nav a {
    font-size: 11px;
    margin-right: 5px;
  }

  .top-theme-toggle,
  .icon-button,
  .small-button {
    height: 40px;
    width: 40px;
  }

  .word-card-image,
  .word-card-placeholder {
    height: 132px;
  }

  .card-page-heading h1 {
    font-size: 38px;
  }

  .practice-header h1 {
    font-size: 27px;
  }

  .timer {
    font-size: 19px;
    min-width: 58px;
  }

  .practice-card-image {
    height: 92px;
    margin-right: 10px;
    width: 92px;
  }

  .practice-mode-test .practice-card-image {
    height: 74px;
    width: 74px;
  }

  .question-text {
    font-size: 27px;
  }

  .practice-mode-test .question-text {
    font-size: 23px;
  }

  .practice-mode-test .option-button {
    min-height: 42px;
    padding-bottom: 7px;
    padding-top: 7px;
  }
}

@media (min-width: 1040px) {
  .dashboard-stage {
    min-height: 470px;
  }

  .dashboard-studio {
    max-width: 1040px;
  }
}

@media (min-width: 760px) and (max-width: 1039px) and (orientation: landscape) {
  .dashboard-stage {
    min-height: 360px;
    padding: 26px;
  }

  .dashboard-stage h1 {
    font-size: 46px;
  }

  .dashboard-stage .lead {
    font-size: 19px;
  }

  .stage-search {
    margin-top: 20px;
  }

  .stage-visual {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 330px;
            flex: 0 0 330px;
    margin-left: 20px;
  }

  .stage-stats div {
    min-height: 92px;
    padding: 14px 12px;
  }

  .stage-stats strong {
    font-size: 31px;
  }

  .stage-stats span {
    font-size: 12px;
  }

  .stage-posters {
    height: 202px;
  }

  .stage-poster img {
    height: 118px;
    width: 118px;
  }

  .stage-poster span {
    font-size: 13px;
    max-width: 118px;
  }

  .stage-poster-1 { right: 118px; top: 4px; }
  .stage-poster-2 { right: 0; top: 24px; }
  .stage-poster-3 { right: 190px; top: 92px; }
  .stage-poster-4 { right: 52px; top: 112px; }

  .mode-rail {
    margin-left: -10px;
  }

  .mode-tile {
    margin-left: 10px;
  }

  .mode-tile button {
    min-height: 150px;
    padding: 17px;
  }

  .mode-icon {
    font-size: 30px;
    height: 38px;
    line-height: 38px;
    margin-bottom: 16px;
  }

  .mode-title {
    font-size: 20px;
  }

  .mode-description {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .dashboard-stage,
  .dashboard-studio {
    display: block;
  }

  .dashboard-stage {
    min-height: 0;
    padding: 28px;
  }

  .dashboard-stage h1 {
    font-size: 50px;
  }

  .dashboard-stage .lead {
    font-size: 20px;
  }

  .stage-copy {
    padding-top: 0;
  }

  .stage-visual {
    margin: 28px 0 0;
    min-height: 244px;
  }

  .stage-stats {
    max-width: 520px;
  }

  .stage-posters {
    height: 205px;
    max-width: 520px;
  }

  .stage-poster img {
    height: 124px;
    width: 124px;
  }

  .stage-poster span {
    max-width: 124px;
  }

  .stage-poster-1 { left: 0; right: auto; top: 8px; }
  .stage-poster-2 { left: 142px; right: auto; top: 20px; }
  .stage-poster-3 { left: 284px; right: auto; top: 12px; }
  .stage-poster-4 { left: 426px; right: auto; top: 24px; }

  .mode-rail {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin: 0 0 -14px -14px;
  }

  .mode-tile {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(50% - 14px);
            flex: 0 0 calc(50% - 14px);
    margin-bottom: 14px;
  }

  .dashboard-lane {
    margin: 0 0 16px;
  }
}

@media (max-width: 620px) {
  .dashboard-stage {
    border-radius: 24px;
    padding: 22px;
  }

  .dashboard-stage h1 {
    font-size: 42px;
  }

  .dashboard-stage .lead {
    font-size: 18px;
  }

  .stage-search {
    display: block;
    margin-top: 20px;
    padding: 8px;
  }

  .stage-search input {
    display: block;
    margin-bottom: 8px;
  }

  .stage-search button {
    min-height: 48px;
    width: 100%;
  }

  .stage-stats {
    margin-left: -8px;
  }

  .stage-stats div {
    margin-left: 8px;
    min-height: 92px;
    padding: 14px 12px;
  }

  .stage-stats strong {
    font-size: 30px;
  }

  .stage-stats span {
    font-size: 11px;
  }

  .stage-visual {
    margin-top: 22px;
    min-height: 184px;
  }

  .stage-posters {
    height: 170px;
    overflow: hidden;
  }

  .stage-poster {
    border-radius: 18px;
    padding: 7px;
  }

  .stage-poster img {
    border-radius: 13px;
    height: 96px;
    width: 96px;
  }

  .stage-poster span {
    font-size: 12px;
    margin-top: 7px;
    max-width: 96px;
  }

  .stage-poster-1 { left: 0; top: 4px; }
  .stage-poster-2 { left: 112px; top: 16px; }
  .stage-poster-3 { left: 224px; top: 6px; }
  .stage-poster-4 { display: none; }

  .section-title {
    margin-top: 24px;
  }

  .section-title h2,
  .dashboard-lane h2 {
    font-size: 30px;
  }

  .mode-rail {
    display: block;
    margin: 0;
  }

  .mode-tile {
    display: block;
    margin: 0 0 12px;
  }

  .mode-tile button {
    min-height: 108px;
    padding: 18px;
  }

  .mode-icon {
    float: left;
    font-size: 30px;
    height: 46px;
    line-height: 46px;
    margin: 0 16px 0 0;
    width: 46px;
  }

  .mode-title {
    font-size: 23px;
    padding-top: 3px;
  }

  .mode-description {
    clear: both;
    font-size: 14px;
    padding-top: 8px;
  }

  .dashboard-studio {
    margin-left: 0;
  }

  .dashboard-lane {
    border-radius: 22px;
    min-height: 0;
    padding: 22px;
  }
}
