.bsk-sql-app {
  --bsk-bg: #f2f7fb;
  --bsk-card: #ffffff;
  --bsk-ink: #15231d;
  --bsk-muted: #66746f;
  --bsk-line: #d9e2df;
  --bsk-primary: #0d8a6a;
  --bsk-primary-dark: #096149;
  --bsk-soft: #e9f8f0;
  --bsk-warm: #ffe27a;
  --bsk-coral: #ff7c73;
  --bsk-blue: #e8f6ff;
  --bsk-lilac: #f0edff;
  --bsk-danger: #a33636;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top, 0px)) 10px calc(112px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
  color: var(--bsk-ink);
  font-family: inherit;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, #fbfefd 0%, var(--bsk-bg) 40%, #f8fbfd 100%);
}

.bsk-sql-app * {
  box-sizing: border-box;
}

.bsk-sql-app.is-auth-gate {
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

.bsk-sql-app.is-auth-gate .bsk-sql-header,
.bsk-sql-app.is-auth-gate .bsk-sql-nav {
  display: none;
}

.bsk-sql-login-screen {
  min-height: calc(100dvh - max(10px, env(safe-area-inset-top, 0px)) - max(18px, env(safe-area-inset-bottom, 0px)));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 0;
}

.bsk-sql-login-hero {
  display: grid;
  align-content: start;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(207, 231, 221, 0.94);
  border-radius: 8px;
  min-height: 520px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,248,244,0.96));
  box-shadow: 0 18px 40px rgba(28, 58, 46, 0.14);
}

.bsk-sql-login-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 16px 0 10px;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.bsk-sql-login-hero p {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
  color: var(--bsk-muted);
  font-size: 15px;
  line-height: 1.5;
}

.bsk-sql-login-image {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(11, 62, 45, 0.18);
}

.bsk-sql-login-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsk-sql-login-actions {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(217, 226, 223, 0.96);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 30px rgba(27, 53, 43, 0.12);
  backdrop-filter: blur(18px);
}

.bsk-sql-google-slot {
  min-height: 52px;
  display: grid;
  place-items: center;
}

.bsk-sql-google-slot > div,
.bsk-sql-google-slot iframe {
  max-width: 100% !important;
}

.bsk-sql-google-button,
.bsk-sql-guest-button {
  min-height: 52px;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bsk-sql-google-button {
  border: 1px solid rgba(217, 226, 223, 0.96);
  background: #fff;
  color: #17231e;
}

.bsk-sql-google-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.bsk-sql-google-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f3f7f5;
  color: #0d8a6a;
  font-weight: 900;
}

.bsk-sql-guest-button {
  border: 0;
  background: linear-gradient(180deg, #128464, #0a674d);
  color: #fff;
}

.bsk-sql-login-actions .bsk-sql-muted {
  margin: 0;
  text-align: center;
  font-size: 12px;
}

.bsk-sql-auth-setup {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--bsk-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bsk-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.bsk-sql-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: -2px 0 8px;
  padding: 5px 0;
  background: linear-gradient(180deg, rgba(248, 251, 250, 0.96), rgba(248, 251, 250, 0.72));
  backdrop-filter: blur(14px);
}

.bsk-sql-header h1,
.bsk-sql-header .bsk-sql-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.bsk-sql-header span,
.bsk-sql-kicker,
.bsk-sql-muted {
  color: var(--bsk-muted);
  font-size: 13px;
}

.bsk-sql-card {
  background: var(--bsk-card);
  border: 1px solid var(--bsk-line);
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(37, 64, 86, 0.08);
  overflow: hidden;
}

.bsk-sql-card h2,
.bsk-sql-card h3 {
  margin: 4px 0 8px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

.bsk-sql-card h2 {
  font-size: 21px;
}

.bsk-sql-card h3 {
  font-size: 18px;
}

.bsk-sql-kicker {
  display: block;
  margin-bottom: 4px;
  text-transform: none;
  font-weight: 800;
}

.bsk-sql-big {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.bsk-sql-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.bsk-sql-actions {
  display: grid;
  gap: 8px;
}

.bsk-sql-button,
.bsk-sql-link-button,
.bsk-sql-choice,
.bsk-sql-course,
.bsk-sql-nav button,
.bsk-sql-stop {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bsk-sql-button {
  width: 100%;
  background: linear-gradient(180deg, #12a77e, var(--bsk-primary));
  color: #fff;
  padding: 13px 14px;
  box-shadow: 0 8px 18px rgba(13, 138, 106, 0.2);
}

.bsk-sql-button:hover {
  background: var(--bsk-primary-dark);
}

.bsk-sql-button.secondary,
.bsk-sql-link-button {
  background: #f2faf6;
  color: var(--bsk-primary-dark);
  box-shadow: none;
}

.bsk-sql-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-decoration: none;
}

.bsk-sql-header-action {
  min-height: 38px;
  padding: 8px 10px;
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff7dc;
  border: 1px solid #f3df91;
}

.bsk-sql-hero-card {
  position: relative;
  color: #173028;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0 8px, rgba(255, 255, 255, 0) 8px 18px),
    linear-gradient(135deg, #fff4c7 0%, #e9fbef 52%, #e8f6ff 100%);
  border-color: #cfe7dd;
  box-shadow: 0 16px 30px rgba(37, 64, 86, 0.14);
}

.bsk-sql-hero-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 16px;
  width: 112px;
  height: 34px;
  background: rgba(255, 124, 115, 0.18);
  border: 1px solid rgba(255, 124, 115, 0.24);
  transform: rotate(18deg);
  pointer-events: none;
}

.bsk-sql-hero-card h2 {
  margin-top: 6px;
  font-size: 28px;
}

.bsk-sql-hero-card p,
.bsk-sql-hero-card .bsk-sql-kicker {
  color: #415a50;
}

.bsk-sql-hero-top,
.bsk-sql-current-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bsk-sql-course-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 56%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #0c674d;
  border: 1px solid rgba(13, 138, 106, 0.16);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsk-sql-main-cta {
  position: relative;
  z-index: 1;
  min-height: 54px;
  margin-top: 4px;
  background: linear-gradient(180deg, #ffe982, #ffd15f);
  color: #172118;
  box-shadow: 0 10px 20px rgba(178, 124, 28, 0.18);
}

.bsk-sql-hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.bsk-sql-hero-actions .bsk-sql-button,
.bsk-sql-hero-actions .bsk-sql-link-button {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.74);
  color: #0b6049;
  border: 1px solid rgba(13, 138, 106, 0.18);
  box-shadow: 0 7px 14px rgba(37, 64, 86, 0.08);
}

.bsk-sql-metric-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bsk-sql-metric-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.bsk-sql-metric-card .bsk-sql-muted {
  margin: 5px 0 0;
}

.bsk-sql-growth-card {
  padding: 14px;
}

.bsk-sql-growth-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bsk-sql-growth-top h3 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.12;
}

.bsk-sql-growth-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f4faf6;
  border: 1px solid #dce9df;
  color: var(--bsk-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.bsk-sql-growth-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  height: 120px;
  padding: 11px 8px 5px;
  border: 1px solid var(--bsk-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f3f8f4 100%);
}

.bsk-sql-growth-bar {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.bsk-sql-growth-bar span {
  display: block;
  width: 100%;
  min-height: 5px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #10a66f 0%, #0b7e57 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bsk-sql-growth-bar:not(.is-today) span {
  background: linear-gradient(180deg, #8fd8ad 0%, #54b782 100%);
}

.bsk-sql-growth-bar span[style*="height:0"] {
  min-height: 5px;
  background: #dfe8df;
  box-shadow: none;
}

.bsk-sql-growth-bar small {
  min-height: 15px;
  color: var(--bsk-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.bsk-sql-growth-bar em {
  color: var(--bsk-muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.bsk-sql-growth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.bsk-sql-growth-stats div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--bsk-line);
  border-radius: 8px;
  background: #ffffff;
}

.bsk-sql-growth-stats span {
  display: block;
  color: var(--bsk-muted);
  font-size: 11px;
  font-weight: 800;
}

.bsk-sql-growth-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.bsk-sql-vocab-card {
  background: #fff9df;
  border-color: #eee2b5;
}

.bsk-sql-level-card {
  background: var(--bsk-blue);
  border-color: #dbe7f4;
}

.bsk-sql-rec-card {
  background: #effbf5;
}

.bsk-sql-small-link {
  min-height: 34px;
  margin-top: 8px;
  padding: 7px 8px;
  font-size: 13px;
}

.bsk-sql-current-course {
  padding: 12px 13px;
  background: var(--bsk-lilac);
  border-color: #ddd7ff;
}

.bsk-sql-current-course strong {
  display: block;
  font-size: 17px;
}

.bsk-sql-page-card {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0 7px, rgba(255, 255, 255, 0) 7px 18px),
    linear-gradient(135deg, #fff9df 0%, #eefbff 100%);
  border-color: #d8e7e4;
}

.bsk-sql-page-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: 12px;
  width: 118px;
  height: 26px;
  background: rgba(255, 124, 115, 0.13);
  border: 1px solid rgba(255, 124, 115, 0.18);
  transform: rotate(-16deg);
  pointer-events: none;
}

.bsk-sql-page-card > * {
  position: relative;
  z-index: 1;
}

.bsk-sql-learn-card {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 7px, rgba(255, 255, 255, 0) 7px 18px),
    linear-gradient(135deg, #effbf5 0%, #f2f0ff 100%);
}

.bsk-sql-my-card,
.bsk-sql-result-card {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 7px, rgba(255, 255, 255, 0) 7px 18px),
    linear-gradient(135deg, #eef9ff 0%, #fff9df 100%);
}

.bsk-sql-settings-card {
  background: #fffdf8;
  border-color: #eee5c4;
}

.bsk-sql-status-card,
.bsk-sql-summary-card,
.bsk-sql-level-intro-card,
.bsk-sql-sets-card {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0 7px, rgba(255, 255, 255, 0) 7px 18px),
    linear-gradient(135deg, #fff9df 0%, #effbf5 100%);
}

.bsk-sql-mode-grid,
.bsk-sql-course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.bsk-sql-course,
.bsk-sql-mode {
  text-align: left;
  background: #fff;
  border: 1px solid var(--bsk-line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--bsk-ink);
  box-shadow: 0 8px 18px rgba(22, 40, 32, 0.05);
}

.bsk-sql-mode:nth-child(3n + 1),
.bsk-sql-course:nth-child(3n + 1) {
  background: #fff9df;
  border-color: #efe2a9;
}

.bsk-sql-mode:nth-child(3n + 2),
.bsk-sql-course:nth-child(3n + 2) {
  background: #eef9ff;
  border-color: #d6e9f6;
}

.bsk-sql-mode:nth-child(3n),
.bsk-sql-course:nth-child(3n) {
  background: #f2f0ff;
  border-color: #ddd8ff;
}

.bsk-sql-course strong,
.bsk-sql-mode strong {
  display: block;
  font-size: 16px;
}

.bsk-sql-course span,
.bsk-sql-mode span {
  display: block;
  margin-top: 4px;
  color: var(--bsk-muted);
  font-size: 13px;
}

.bsk-sql-course.is-selected {
  border-color: var(--bsk-primary);
  background: #edf8f2;
  box-shadow: inset 0 0 0 1px rgba(15, 122, 86, 0.16);
}

.bsk-sql-stat-list {
  display: grid;
  gap: 8px;
}

.bsk-sql-stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(216, 226, 223, 0.86);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.7);
}

.bsk-sql-stat-list div:last-child {
  border-bottom: 1px solid rgba(216, 226, 223, 0.86);
  padding-bottom: 9px;
}

.bsk-sql-lesson-packs {
  background: linear-gradient(135deg, #fffdf3 0%, #f2fbf7 100%);
}

.bsk-sql-pack-list {
  display: grid;
  gap: 8px;
}

.bsk-sql-pack-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
  border: 1px solid rgba(216, 226, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px;
}

.bsk-sql-pack-card button {
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--bsk-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.bsk-sql-pack-card span,
.bsk-sql-pack-card small {
  display: block;
  color: var(--bsk-muted);
  font-size: 12px;
}

.bsk-sql-pack-card strong {
  display: block;
  margin: 3px 0;
  font-size: 15px;
  line-height: 1.18;
}

.bsk-sql-pack-read,
.bsk-sql-set-read {
  align-self: center;
  justify-self: end;
  color: var(--bsk-primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bsk-sql-stat-list strong {
  text-align: right;
}

.bsk-sql-word {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 900;
  margin: 8px 0 6px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.bsk-sql-study-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  border-color: #e7dfc3;
}

.bsk-sql-study-card .bsk-sql-word {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff9df, #ffffff);
  border: 1px solid #efe2a9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.bsk-sql-word-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.bsk-sql-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4fbf7;
  color: #355146;
  border: 1px solid #d9e9e0;
  font-size: 12px;
  font-weight: 800;
}

.bsk-sql-choice-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.bsk-sql-choice {
  text-align: left;
  padding: 13px 14px;
  background: #fffdf7;
  border: 1px solid var(--bsk-line);
  color: var(--bsk-ink);
  box-shadow: 0 7px 16px rgba(22, 40, 32, 0.05);
}

.bsk-sql-choice:nth-child(4n + 1) {
  background: #fffdf7;
}

.bsk-sql-choice:nth-child(4n + 2) {
  background: #f5fbff;
}

.bsk-sql-choice:nth-child(4n + 3) {
  background: #f8f6ff;
}

.bsk-sql-choice:nth-child(4n) {
  background: #f5fcf8;
}

.bsk-sql-choice.is-correct {
  border-color: #159464;
  background: #e8fbf1;
  color: #0f5f45;
}

.bsk-sql-choice.is-wrong {
  border-color: #c94c4c;
  background: #fff0f0;
  color: #8a2929;
}

.bsk-sql-feedback {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f1fbf6;
  border: 1px solid #d6e9df;
}

.bsk-sql-feedback.wrong {
  background: #fff1f1;
  border-color: #f1cdcd;
}

.bsk-sql-feedback strong {
  display: block;
  margin-bottom: 4px;
}

.bsk-sql-example {
  margin-top: 10px;
  color: var(--bsk-muted);
}

.bsk-sql-example p {
  margin: 4px 0;
}

.bsk-sql-panel[hidden],
.bsk-sql-modal[hidden],
.bsk-sql-view[hidden] {
  display: none !important;
}

.bsk-sql-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(12, 28, 20, 0.42);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  backdrop-filter: blur(6px);
}

.bsk-sql-modal-panel {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  max-height: min(720px, 86vh);
  overflow: auto;
  background:
    linear-gradient(180deg, #fff9df 0%, #ffffff 24%);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 -18px 44px rgba(14, 26, 20, 0.24);
}

.bsk-sql-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  background: rgba(250, 252, 251, 0.96);
  border-top: 1px solid var(--bsk-line);
  box-shadow: 0 -10px 28px rgba(16, 37, 28, 0.12);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(12px);
}

.bsk-sql-stop {
  display: none;
  width: fit-content;
  max-width: 560px;
  min-height: 34px;
  margin: 0 auto 7px;
  padding: 7px 13px;
  background: #f6f4ee;
  color: #5f6b65;
  border: 1px solid #e3ded2;
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}

.bsk-sql-nav.is-studying .bsk-sql-stop {
  display: block;
}

.bsk-sql-nav-inner {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 4px;
  border: 1px solid #dce5e1;
  border-radius: 8px;
  background: #fffdf8;
}

.bsk-sql-nav button:not(.bsk-sql-stop) {
  background: transparent;
  color: #61736a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 7px;
}

.bsk-sql-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.bsk-sql-nav span {
  font-size: 12px;
  line-height: 1;
}

.bsk-sql-nav button.is-active {
  background: linear-gradient(180deg, #fff5cb, #eaf8f0);
  color: var(--bsk-primary-dark);
  box-shadow: inset 0 0 0 1px rgba(13, 138, 106, 0.18), 0 5px 12px rgba(37, 64, 86, 0.08);
}

body.bsk-sql-app-active {
  background: #f2f7fb;
  min-height: 100dvh;
  margin: 0 !important;
}

body.bsk-sql-app-active .bsk-site-header,
body.bsk-sql-app-active .bsk-site-footer,
body.bsk-sql-app-active #wp-skip-link,
body.bsk-sql-app-active .wp-block-post-title,
body.bsk-sql-app-active .entry-title,
body.bsk-sql-app-active #wp--skip-link--target > h1:first-child {
  display: none !important;
}

body.bsk-sql-app-active .wp-site-blocks,
body.bsk-sql-app-active #wp--skip-link--target {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100dvh;
}

body.bsk-sql-app-active .has-global-padding,
body.bsk-sql-app-active .wp-block-group.alignfull {
  padding: 0 !important;
}

body.bsk-sql-app-active .entry-content,
body.bsk-sql-app-active .wp-block-post-content {
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

.bsk-sql-study-card {
  min-height: calc(100dvh - 170px);
  display: flex;
  flex-direction: column;
}

.bsk-sql-study-card .bsk-sql-choice-list {
  margin-top: auto;
}

.bsk-sql-listen-button {
  width: auto;
  min-height: 40px;
  justify-self: start;
  padding: 9px 13px;
}

@media (max-width: 520px) {
  .bsk-sql-app {
    max-width: none;
    padding-left: 6px;
    padding-right: 6px;
  }
  .bsk-sql-grid:not(.bsk-sql-metric-grid) {
    grid-template-columns: 1fr;
  }
  .bsk-sql-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bsk-sql-card {
    padding: 12px;
    margin-bottom: 8px;
  }
  .bsk-sql-header h1,
  .bsk-sql-header .bsk-sql-title {
    font-size: 20px;
  }
  .bsk-sql-header span,
  .bsk-sql-kicker,
  .bsk-sql-muted {
    font-size: 12px;
  }
  .bsk-sql-hero-card h2 {
    font-size: 25px;
  }
  .bsk-sql-hero-actions {
    grid-template-columns: 1fr 1fr;
  }
  .bsk-sql-metric-card {
    min-height: 104px;
  }
  .bsk-sql-metric-card strong {
    font-size: 15px;
  }
  .bsk-sql-word {
    font-size: 38px;
  }
  .bsk-sql-stat-list div {
    display: block;
  }
  .bsk-sql-stat-list strong {
    display: block;
    text-align: left;
    margin-top: 3px;
  }
  .bsk-sql-nav {
    padding-left: 8px;
    padding-right: 8px;
  }
  .bsk-sql-nav button:not(.bsk-sql-stop) {
    min-height: 50px;
  }
  .bsk-sql-nav span {
    font-size: 11px;
  }
}

/* Focused mobile learning theme: calm, app-like, and consistent across screens. */
.bsk-sql-app {
  --bsk-bg: #f6f8f4;
  --bsk-card: #ffffff;
  --bsk-ink: #17231d;
  --bsk-muted: #68736d;
  --bsk-line: #e2e8e1;
  --bsk-primary: #10a66f;
  --bsk-primary-dark: #08764f;
  --bsk-soft: #eef8f2;
  --bsk-warm: #ffd95a;
  --bsk-danger: #a33d3d;
  padding: max(8px, env(safe-area-inset-top, 0px)) 10px calc(110px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #fbfcf9 0%, #f6f8f4 100%);
}

.bsk-sql-app p {
  font-size: 15px;
  line-height: 1.45;
}

.bsk-sql-header {
  min-height: 50px;
  margin: 0 0 10px;
  padding: 4px 2px 6px;
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(226, 232, 225, 0.72);
}

.bsk-sql-header h1,
.bsk-sql-header .bsk-sql-title {
  font-size: 20px;
  line-height: 1.08;
}

.bsk-sql-header span,
.bsk-sql-kicker,
.bsk-sql-muted {
  color: var(--bsk-muted);
}

.bsk-sql-header-action {
  min-height: 36px;
  max-width: 88px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--bsk-line);
  color: var(--bsk-primary-dark);
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(28, 45, 36, 0.06);
}

.bsk-sql-card {
  background: var(--bsk-card);
  border-color: var(--bsk-line);
  box-shadow: 0 8px 20px rgba(28, 45, 36, 0.07);
}

.bsk-sql-card h2 {
  font-size: 22px;
}

.bsk-sql-button,
.bsk-sql-link-button,
.bsk-sql-choice,
.bsk-sql-course,
.bsk-sql-nav button,
.bsk-sql-stop {
  font-size: 15px;
}

.bsk-sql-button {
  background: var(--bsk-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 166, 111, 0.2);
}

.bsk-sql-button:hover {
  background: var(--bsk-primary-dark);
}

.bsk-sql-button.secondary,
.bsk-sql-link-button {
  background: #f4faf6;
  color: var(--bsk-primary-dark);
  border: 1px solid #dce9df;
}

.bsk-sql-hero-card,
.bsk-sql-page-card,
.bsk-sql-learn-card,
.bsk-sql-my-card,
.bsk-sql-result-card,
.bsk-sql-status-card,
.bsk-sql-summary-card,
.bsk-sql-level-intro-card,
.bsk-sql-sets-card {
  background: #ffffff;
  border-color: var(--bsk-line);
}

.bsk-sql-hero-card::after,
.bsk-sql-page-card::after {
  display: none;
}

.bsk-sql-hero-card {
  padding-top: 16px;
  box-shadow: 0 12px 26px rgba(28, 45, 36, 0.09);
}

.bsk-sql-hero-card h2 {
  font-size: 27px;
}

.bsk-sql-hero-card p {
  color: #3f5149;
  font-size: 17px;
}

.bsk-sql-course-pill,
.bsk-sql-chip {
  border-radius: 8px;
  background: var(--bsk-soft);
  border-color: #d9eadf;
  color: var(--bsk-primary-dark);
}

.bsk-sql-main-cta {
  min-height: 56px;
  background: var(--bsk-warm);
  color: #1c241d;
  font-size: 18px;
  box-shadow: 0 9px 18px rgba(161, 121, 22, 0.18);
}

.bsk-sql-hero-actions .bsk-sql-button,
.bsk-sql-hero-actions .bsk-sql-link-button {
  background: #f7fbf8;
  border-color: #dce9df;
  color: var(--bsk-primary-dark);
  box-shadow: none;
}

.bsk-sql-vocab-card,
.bsk-sql-level-card,
.bsk-sql-rec-card,
.bsk-sql-current-course,
.bsk-sql-settings-card {
  background: #ffffff;
  border-color: var(--bsk-line);
}

.bsk-sql-vocab-card {
  border-top: 3px solid var(--bsk-warm);
}

.bsk-sql-level-card,
.bsk-sql-rec-card,
.bsk-sql-current-course,
.bsk-sql-settings-card {
  border-top: 3px solid #cfe9d8;
}

.bsk-sql-mode,
.bsk-sql-course {
  background: #ffffff !important;
  border-color: var(--bsk-line) !important;
  box-shadow: 0 6px 16px rgba(28, 45, 36, 0.06);
}

.bsk-sql-mode {
  border-left: 4px solid #cfe9d8 !important;
}

.bsk-sql-course.is-selected,
.bsk-sql-mode:active {
  background: #f1f9f4 !important;
  border-color: #9bd5b3 !important;
}

.bsk-sql-stat-list div {
  background: #ffffff;
  border-color: var(--bsk-line);
}

.bsk-sql-study-card {
  background: #ffffff;
  border-color: var(--bsk-line);
}

.bsk-sql-study-card .bsk-sql-word {
  background: #f7fbf8;
  border-color: #dce9df;
  box-shadow: none;
}

.bsk-sql-choice,
.bsk-sql-choice:nth-child(4n + 1),
.bsk-sql-choice:nth-child(4n + 2),
.bsk-sql-choice:nth-child(4n + 3),
.bsk-sql-choice:nth-child(4n) {
  background: #ffffff;
  border-color: var(--bsk-line);
}

.bsk-sql-choice.is-correct {
  border-color: #16a56f;
  background: #eefaf3;
  color: #08764f;
}

.bsk-sql-choice.is-wrong {
  border-color: #c95a5a;
  background: #fff4f4;
  color: #8d2d2d;
}

.bsk-sql-feedback {
  background: #f2faf5;
  border-color: #d8eadf;
}

.bsk-sql-feedback.wrong {
  background: #fff5f5;
  border-color: #f0d4d4;
}

.bsk-sql-modal-panel {
  background: #ffffff;
}

.bsk-sql-nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 22px rgba(28, 45, 36, 0.1);
}

.bsk-sql-nav-inner {
  background: #ffffff;
  border-color: var(--bsk-line);
}

.bsk-sql-nav button:not(.bsk-sql-stop) {
  color: #68736d;
}

.bsk-sql-nav button.is-active {
  background: #eef8f2;
  color: var(--bsk-primary-dark);
  box-shadow: inset 0 0 0 1px #cae8d4;
}

.bsk-sql-stop {
  background: #f6f4ee;
  color: #5f6b65;
  border: 1px solid #e3ded2;
  box-shadow: none;
}

body.bsk-sql-app-active {
  background: #f6f8f4;
}

@media (max-width: 520px) {
  .bsk-sql-app {
    padding-left: 8px;
    padding-right: 8px;
  }

  .bsk-sql-header h1,
  .bsk-sql-header .bsk-sql-title {
    font-size: 19px;
  }

  .bsk-sql-card h2 {
    font-size: 21px;
  }

  .bsk-sql-hero-card h2 {
    font-size: 26px;
  }

  .bsk-sql-hero-card p {
    font-size: 16px;
  }

  .bsk-sql-header-action {
    max-width: 82px;
  }
}

/* Photo-led mobile app direction based on the supplied BSKorean mockups. */
.bsk-sql-app {
  --bsk-bg: #fbfaf6;
  --bsk-ink: #13231d;
  --bsk-muted: #66726c;
  --bsk-line: #e7e2d8;
  --bsk-primary: #0c6f49;
  --bsk-primary-dark: #07583a;
  --bsk-orange: #ff7a1a;
  --bsk-cream: #fffdf8;
  max-width: 430px;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  background: #fbfaf6;
}

.bsk-sql-app.is-studying {
  padding-bottom: calc(182px + env(safe-area-inset-bottom, 0px));
}

.bsk-sql-app.is-studying .bsk-sql-study-card .bsk-sql-choice-list {
  margin-top: 12px;
}

.bsk-sql-app.is-studying .bsk-sql-header {
  padding-top: 8px;
  padding-bottom: 5px;
}

.bsk-sql-app.is-studying .bsk-sql-header h1,
.bsk-sql-app.is-studying .bsk-sql-header .bsk-sql-title {
  display: none;
}

.bsk-sql-card {
  border-color: var(--bsk-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 35, 28, 0.08);
}

.bsk-sql-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -2px -2px 8px;
  padding: 7px 2px;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(12px);
}

.bsk-sql-header span,
.bsk-sql-brand {
  display: inline-block;
  color: var(--bsk-primary);
  font-weight: 900;
  letter-spacing: 0;
}

.bsk-sql-header h1,
.bsk-sql-header .bsk-sql-title {
  margin-top: 1px;
  color: #69746e;
  font-size: 12px;
  font-weight: 700;
}

.bsk-sql-header-action {
  border-color: transparent;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(35, 35, 28, 0.08);
}

.bsk-sql-home-hero {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  padding: 17px 16px 13px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.9) 44%, rgba(255, 253, 248, 0.08) 78%),
    #ffffff;
}

.bsk-sql-home-hero-copy {
  position: relative;
  z-index: 2;
  width: 59%;
  min-height: 126px;
}

.bsk-sql-home-hero h2 {
  margin: 12px 0 7px;
  color: #14231d;
  font-size: 32px;
  line-height: 1.08;
}

.bsk-sql-home-hero h2 span {
  color: var(--bsk-primary);
}

.bsk-sql-home-hero p {
  margin: 0;
  color: #5b6861;
  font-size: 14px;
  line-height: 1.48;
}

.bsk-sql-home-hero-photo {
  position: absolute;
  inset: 0 0 auto auto;
  width: 58%;
  height: 212px;
  overflow: hidden;
}

.bsk-sql-home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bsk-sql-course-panel {
  position: relative;
  z-index: 3;
  margin-top: 7px;
  padding: 11px;
  color: #ffffff;
  background: linear-gradient(145deg, #0b6c45, #064327);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(6, 67, 39, 0.22);
}

.bsk-sql-course-panel-head,
.bsk-sql-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bsk-sql-course-panel span,
.bsk-sql-course-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.bsk-sql-course-panel strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 18px;
}

.bsk-sql-course-panel p {
  margin: 7px 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.bsk-sql-course-panel button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.bsk-sql-course-progress {
  height: 7px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.bsk-sql-course-progress span {
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
}

.bsk-sql-today-card {
  padding: 12px;
}

.bsk-sql-card-row h2 {
  margin: 0;
  color: var(--bsk-ink);
  font-size: 18px;
}

.bsk-sql-streak {
  color: var(--bsk-muted);
  font-size: 12px;
  font-weight: 800;
}

.bsk-sql-today-box {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #ece6da;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #fffaf0);
}

.bsk-sql-today-box strong {
  display: block;
  color: #13231d;
  font-size: 34px;
  line-height: 1;
}

.bsk-sql-today-box span,
.bsk-sql-today-box small {
  display: block;
  color: #425049;
  font-weight: 800;
}

.bsk-sql-today-box small {
  margin-top: 2px;
  color: var(--bsk-muted);
  font-size: 12px;
  font-weight: 600;
}

.bsk-sql-today-visual {
  position: relative;
  height: 62px;
}

.bsk-sql-today-visual span {
  position: absolute;
  left: 4px;
  right: 24px;
  bottom: 29px;
  height: 20px;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #ff8a20 0 12px, #ffffff 12px 20px);
  box-shadow: inset 0 0 0 2px rgba(35, 35, 28, 0.08);
}

.bsk-sql-today-visual i,
.bsk-sql-today-visual b {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 40px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #ff9d34, #f06c15);
}

.bsk-sql-today-visual i {
  right: 4px;
}

.bsk-sql-today-visual b {
  right: 42px;
  transform: scale(0.72);
  opacity: 0.75;
}

.bsk-sql-main-cta {
  min-height: 54px;
  border: 0;
  background: linear-gradient(180deg, #ff8c28, #ff7418);
  color: #ffffff;
  font-size: 17px;
  box-shadow: 0 10px 20px rgba(255, 122, 26, 0.24);
}

.bsk-sql-main-cta:hover {
  background: linear-gradient(180deg, #f77a16, #e9620b);
}

.bsk-sql-hero-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bsk-sql-hero-actions .bsk-sql-button,
.bsk-sql-hero-actions .bsk-sql-link-button {
  min-height: 54px;
  background: #ffffff;
  border-color: #ebe4d8;
  color: #173028;
  font-size: 13px;
}

.bsk-sql-learn-card {
  min-height: 120px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbf7 100%);
}

.bsk-sql-learn-card h2 {
  margin: 10px 0 4px;
  font-size: 28px;
}

.bsk-sql-learn-card p {
  color: var(--bsk-muted);
  font-size: 15px;
}

.bsk-sql-course-list {
  gap: 10px;
}

.bsk-sql-course-row {
  display: grid;
  grid-template-columns: 64px 1fr 26px;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 10px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #ebe4d8;
  border-radius: 8px;
  color: var(--bsk-ink);
  box-shadow: 0 8px 18px rgba(35, 35, 28, 0.06);
}

.bsk-sql-course-row.is-selected {
  border-color: var(--bsk-primary);
  box-shadow: 0 0 0 1px rgba(12, 111, 73, 0.16), 0 10px 22px rgba(35, 35, 28, 0.07);
}

.bsk-sql-course-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f1ea;
}

.bsk-sql-course-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsk-sql-course-copy strong {
  display: block;
  margin: 0;
  color: #13231d;
  font-size: 17px;
  line-height: 1.2;
}

.bsk-sql-course-copy small {
  display: block;
  margin-top: 4px;
  color: var(--bsk-muted);
  font-size: 12px;
  line-height: 1.28;
}

.bsk-sql-course-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #879088;
  font-size: 20px;
  font-weight: 900;
}

.bsk-sql-selected-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bsk-primary);
}

.bsk-sql-selected-dot::after {
  content: "";
  display: block;
  width: 7px;
  height: 11px;
  margin: 3px 0 0 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bsk-sql-image-mode {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  border-left: 0 !important;
}

.bsk-sql-mode-img {
  grid-row: span 2;
  width: 86px;
  height: 74px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f1ea;
}

.bsk-sql-mode-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsk-sql-mode.bsk-sql-image-mode strong,
.bsk-sql-mode.bsk-sql-image-mode span:not(.bsk-sql-mode-img) {
  grid-column: 2;
}

.bsk-sql-my-profile {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
}

.bsk-sql-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #d8eee1 0 15px, transparent 16px),
    radial-gradient(circle at 50% 106%, #d8eee1 0 32px, transparent 33px),
    linear-gradient(145deg, #0f6f49, #06472c);
}

.bsk-sql-my-profile h2 {
  margin: 2px 0 4px;
  font-size: 21px;
}

.bsk-sql-my-profile p {
  margin: 0;
  color: var(--bsk-muted);
  font-size: 13px;
}

.bsk-sql-guest-chip {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff0d8;
  color: #8b551e;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.bsk-sql-my-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 18px 10px;
  color: #ffffff;
  background: linear-gradient(145deg, #0c6f49, #064327);
}

.bsk-sql-my-scoreboard div {
  min-width: 0;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.bsk-sql-my-scoreboard div:last-child {
  border-right: 0;
}

.bsk-sql-my-scoreboard span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.bsk-sql-my-scoreboard strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 20px;
}

.bsk-sql-course-status .bsk-sql-card-row span {
  color: var(--bsk-primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.bsk-sql-stat-list span {
  color: var(--bsk-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
}

.bsk-sql-stat-list strong {
  color: var(--bsk-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
}

.bsk-sql-vocab-card,
.bsk-sql-level-card,
.bsk-sql-rec-card,
.bsk-sql-current-course,
.bsk-sql-settings-card {
  border-top: 0;
}

.bsk-sql-growth-card {
  margin-top: 0;
}

.bsk-sql-nav {
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), rgba(251, 250, 246, 0.98) 18%);
}

.bsk-sql-nav-inner {
  max-width: 430px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 20px rgba(35, 35, 28, 0.08);
}

.bsk-sql-nav button.is-active {
  background: #f4faf6;
  color: var(--bsk-primary);
}

@media (max-width: 380px) {
  .bsk-sql-home-hero {
    min-height: 312px;
    padding: 15px 13px 12px;
  }

  .bsk-sql-home-hero h2 {
    font-size: 29px;
  }

  .bsk-sql-home-hero-photo {
    width: 55%;
    height: 204px;
  }

  .bsk-sql-course-row {
    grid-template-columns: 56px 1fr 24px;
  }

  .bsk-sql-course-thumb {
    width: 56px;
    height: 56px;
  }

  .bsk-sql-my-profile {
    grid-template-columns: 56px 1fr;
  }

  .bsk-sql-guest-chip {
    grid-column: 2;
    justify-self: start;
  }
}

/* Keep the session exit control available without making it feel like the main action. */
.bsk-sql-nav.is-studying .bsk-sql-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 32px;
  margin: 0 auto 6px;
  padding: 6px 12px;
  border: 1px solid #e4ded2;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: #69746e;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}

.bsk-sql-nav.is-studying .bsk-sql-stop:hover,
.bsk-sql-nav.is-studying .bsk-sql-stop:focus-visible {
  color: var(--bsk-primary-dark);
  background: #f2faf6;
  border-color: #d4e6da;
}

/* Practice and level-test screens use the same photo-led mobile style. */
.bsk-sql-practice-screen,
.bsk-sql-level-screen {
  min-height: calc(100dvh - 156px);
  padding: 10px;
  gap: 12px;
  background: #ffffff;
}

.bsk-sql-practice-compact {
  min-height: auto;
  padding: 10px;
  gap: 9px;
}

.bsk-sql-level-compact {
  min-height: auto;
  padding: 10px;
  gap: 8px;
}

.bsk-sql-study-visual {
  position: relative;
  height: clamp(104px, 26vw, 142px);
  margin: -2px -2px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eef3ee;
}

.bsk-sql-study-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(13, 55, 36, 0.18));
  pointer-events: none;
}

.bsk-sql-study-visual img,
.bsk-sql-level-start-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bsk-sql-study-visual-level img {
  object-position: center;
}

.bsk-sql-study-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  margin-top: 2px;
  color: var(--bsk-muted);
  font-size: 12px;
  font-weight: 800;
}

.bsk-sql-study-topline span,
.bsk-sql-study-topline strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsk-sql-study-topline strong {
  color: var(--bsk-ink);
}

.bsk-sql-study-progressbar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e2d7;
}

.bsk-sql-study-progressbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c6f49, #4da36b);
}

.bsk-sql-study-heading {
  margin: 8px 0 0;
  color: var(--bsk-ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.bsk-sql-word-panel {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--bsk-line);
  border-radius: 8px;
  background: #fbfaf6;
}

.bsk-sql-word-panel .bsk-sql-kicker {
  margin: 0;
}

.bsk-sql-study-card .bsk-sql-word-panel .bsk-sql-word {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--bsk-ink);
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.05;
  word-break: keep-all;
}

.bsk-sql-study-question {
  margin: 0;
  color: var(--bsk-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.bsk-sql-practice-screen .bsk-sql-listen-button,
.bsk-sql-level-screen .bsk-sql-listen-button {
  justify-self: start;
  width: auto;
  min-width: 108px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
}

.bsk-sql-practice-compact .bsk-sql-listen-button {
  min-height: 38px;
  padding: 0 14px;
}

.bsk-sql-level-compact .bsk-sql-listen-button {
  min-height: 38px;
  padding: 0 14px;
}

.bsk-sql-practice-screen .bsk-sql-choice-list,
.bsk-sql-level-screen .bsk-sql-choice-list {
  margin-top: 0 !important;
  gap: 9px;
}

.bsk-sql-practice-compact .bsk-sql-choice-list {
  gap: 7px;
}

.bsk-sql-level-compact .bsk-sql-choice-list {
  gap: 7px;
}

.bsk-sql-practice-screen .bsk-sql-choice,
.bsk-sql-level-screen .bsk-sql-choice {
  min-height: 54px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #ffffff;
  border-color: var(--bsk-line);
  color: var(--bsk-ink);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 7px 16px rgba(35, 35, 28, 0.05);
}

.bsk-sql-practice-compact .bsk-sql-choice {
  min-height: 47px;
  padding: 10px 12px;
  font-size: 14px;
}

.bsk-sql-level-compact .bsk-sql-choice {
  min-height: 40px;
  padding: 7px 10px;
  font-size: 13px;
}

.bsk-sql-practice-compact .bsk-sql-word-panel {
  gap: 6px;
  padding: 11px 12px;
}

.bsk-sql-level-compact .bsk-sql-word-panel {
  gap: 5px;
  padding: 8px 10px;
}

.bsk-sql-study-card.bsk-sql-practice-compact .bsk-sql-word-panel .bsk-sql-word {
  font-size: clamp(32px, 10.5vw, 48px);
  line-height: 1;
}

.bsk-sql-study-card.bsk-sql-level-compact .bsk-sql-word-panel .bsk-sql-word {
  font-size: clamp(27px, 8vw, 38px);
  line-height: 1;
}

.bsk-sql-practice-compact .bsk-sql-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.bsk-sql-level-compact .bsk-sql-study-question,
.bsk-sql-level-compact .bsk-sql-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.bsk-sql-practice-compact .bsk-sql-word-meta {
  gap: 5px;
}

.bsk-sql-practice-compact .bsk-sql-chip {
  padding: 4px 7px;
  font-size: 11px;
}

.bsk-sql-level-compact .bsk-sql-level-notice {
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.2;
}

.bsk-sql-practice-screen .bsk-sql-choice.is-correct,
.bsk-sql-level-screen .bsk-sql-choice.is-correct {
  color: #ffffff;
  background: var(--bsk-primary);
  border-color: var(--bsk-primary);
}

.bsk-sql-practice-screen .bsk-sql-choice.is-wrong,
.bsk-sql-level-screen .bsk-sql-choice.is-wrong {
  color: #7c2d12;
  background: #fff0e5;
  border-color: #ffc08b;
}

.bsk-sql-practice-screen .bsk-sql-feedback,
.bsk-sql-level-screen .bsk-sql-feedback {
  margin-top: 0;
  border-radius: 8px;
  border: 1px solid #d8ebde;
  background: #f4faf6;
}

.bsk-sql-practice-screen .bsk-sql-feedback.wrong,
.bsk-sql-level-screen .bsk-sql-feedback.wrong {
  border-color: #ffe0bd;
  background: #fff9f2;
}

.bsk-sql-level-notice {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #7a4b12;
  background: #fff3df;
  font-size: 13px;
  line-height: 1.35;
}

.bsk-sql-level-start-card {
  padding: 10px;
  background: #ffffff;
}

.bsk-sql-level-start-card h2 {
  margin-top: 12px;
  font-size: 28px;
}

.bsk-sql-level-start-card p {
  margin: 7px 0;
  line-height: 1.45;
}

.bsk-sql-level-start-visual {
  height: clamp(180px, 58vw, 270px);
  overflow: hidden;
  border-radius: 8px;
  background: #eef3ee;
}

.bsk-sql-level-start-card .bsk-sql-actions {
  margin-top: 14px;
}

@media (max-width: 380px) {
  .bsk-sql-practice-screen,
  .bsk-sql-level-screen {
    padding: 9px;
    gap: 10px;
  }

  .bsk-sql-practice-compact {
    gap: 8px;
  }

  .bsk-sql-level-compact {
    gap: 7px;
  }

  .bsk-sql-study-visual {
    height: 102px;
  }

  .bsk-sql-study-card .bsk-sql-word-panel .bsk-sql-word {
    font-size: 30px;
  }

  .bsk-sql-practice-screen .bsk-sql-choice,
  .bsk-sql-level-screen .bsk-sql-choice {
    min-height: 50px;
    padding: 11px 12px;
  }

  .bsk-sql-practice-compact .bsk-sql-choice {
    min-height: 44px;
    padding: 9px 11px;
  }

  .bsk-sql-level-compact .bsk-sql-choice {
    min-height: 39px;
    padding: 7px 10px;
  }
}

/* 20260531 cockpit UX: login CTA visibility, first-action home, and no-scroll study. */
html.bsk-sql-study-lock,
body.bsk-sql-study-lock {
  width: 100%;
  height: 100dvh !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior: none;
}

.bsk-sql-login-screen {
  justify-content: start;
  gap: 10px;
}

.bsk-sql-login-hero {
  min-height: min(44dvh, 330px);
  padding: 18px 18px 14px;
}

.bsk-sql-login-hero h2 {
  max-width: 330px;
  margin: 10px 0 8px;
  font-size: clamp(27px, 8vw, 34px);
}

.bsk-sql-login-hero p {
  max-width: 340px;
}

.bsk-sql-login-actions {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 3;
}

.bsk-sql-primary-today {
  border-color: #cbe9d7;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
}

.bsk-sql-primary-today .bsk-sql-card-row {
  align-items: start;
}

.bsk-sql-primary-today h2 {
  margin: 2px 0 0;
}

.bsk-sql-app.is-studying {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  padding: max(6px, env(safe-area-inset-top, 0px)) 8px max(6px, env(safe-area-inset-bottom, 0px));
  overflow: hidden !important;
}

[data-bsk-sql-app].is-studying {
  overflow: hidden !important;
}

.bsk-sql-app.is-studying .bsk-sql-header {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bsk-sql-app.is-studying main,
.bsk-sql-app.is-studying .bsk-sql-view:not([hidden]) {
  height: calc(100dvh - max(18px, env(safe-area-inset-top, 0px)) - max(18px, env(safe-area-inset-bottom, 0px)));
  overflow: hidden;
}

.bsk-sql-app.is-studying .bsk-sql-view:not([hidden]) {
  display: flex;
  align-items: stretch;
}

.bsk-sql-nav.is-studying {
  inset: auto 0 auto 0;
  top: max(6px, env(safe-area-inset-top, 0px));
  bottom: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.bsk-sql-nav.is-studying .bsk-sql-nav-inner {
  display: none;
}

.bsk-sql-nav.is-studying .bsk-sql-stop {
  position: fixed;
  top: max(6px, env(safe-area-inset-top, 0px));
  right: calc(50vw - min(280px, 50vw) + 10px);
  z-index: 100000;
  min-height: 30px;
  margin: 0;
  padding: 5px 10px;
  pointer-events: auto;
}

.bsk-sql-practice-screen,
.bsk-sql-level-screen {
  width: 100%;
}

.bsk-sql-app.is-studying .bsk-sql-study-card {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, auto) minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
}

.bsk-sql-app.is-studying .bsk-sql-study-heading,
.bsk-sql-app.is-studying .bsk-sql-level-notice {
  display: none;
}

.bsk-sql-app.is-studying .bsk-sql-study-topline {
  min-height: 24px;
  padding-right: 88px;
  font-size: 11px;
}

.bsk-sql-app.is-studying .bsk-sql-study-progressbar {
  height: 6px;
}

.bsk-sql-app.is-studying .bsk-sql-word-panel {
  gap: 5px;
  padding: 8px 10px;
  min-height: 0;
}

.bsk-sql-app.is-studying .bsk-sql-word-panel .bsk-sql-kicker {
  font-size: 10px;
}

.bsk-sql-app.is-studying .bsk-sql-study-card .bsk-sql-word-panel .bsk-sql-word {
  font-size: clamp(28px, 10vw, 43px);
  line-height: 1;
}

.bsk-sql-app.is-studying .bsk-sql-muted,
.bsk-sql-app.is-studying .bsk-sql-study-question {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

.bsk-sql-app.is-studying .bsk-sql-word-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
}

.bsk-sql-app.is-studying .bsk-sql-chip {
  max-width: 34%;
  min-height: 22px;
  padding: 3px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.bsk-sql-app.is-studying .bsk-sql-reason-chip {
  max-width: 42%;
  color: #0b5f45;
  background: #e5f6ec;
  border-color: #c7e7d4;
}

.bsk-sql-app.is-studying .bsk-sql-listen-button {
  min-height: 34px;
  min-width: 94px;
  padding: 0 12px;
  font-size: 12px;
}

.bsk-sql-app.is-studying .bsk-sql-choice-list {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(38px, 1fr));
  gap: 6px;
  overflow: hidden;
}

.bsk-sql-app.is-studying .bsk-sql-choice {
  min-height: 38px;
  padding: 7px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(12px, 3.7vw, 14px);
  line-height: 1.18;
}

.bsk-sql-app.is-studying .bsk-sql-feedback {
  min-height: 0;
  max-height: 150px;
  padding: 8px;
  overflow: hidden;
}

.bsk-sql-feedback-cockpit {
  display: grid;
  gap: 6px;
}

.bsk-sql-feedback-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.bsk-sql-feedback-main span,
.bsk-sql-feedback-main b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsk-sql-review-badge {
  justify-self: start;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf8f0;
  color: #0b5f45;
  font-size: 11px;
  font-weight: 850;
}

.bsk-sql-level-badge {
  background: #fff3dc;
  color: #7a4b12;
}

.bsk-sql-feedback-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 6px;
  align-items: stretch;
}

.bsk-sql-feedback-actions .bsk-sql-button {
  min-height: 38px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.1;
}

.bsk-sql-next-action {
  font-weight: 900;
}

.bsk-sql-example-panel {
  grid-column: 1 / -1;
  max-height: 82px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e1e7df;
  border-radius: 8px;
  background: #ffffff;
}

.bsk-sql-example-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.bsk-sql-example-panel p {
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.25;
}

.bsk-sql-language-picker {
  display: grid;
  align-items: start;
  gap: 10px;
  position: relative;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: #ffffff;
}

.bsk-sql-language-picker > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bsk-sql-language-picker > div:first-child span {
  color: #5d7067;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bsk-sql-language-picker strong {
  color: #17251f;
  font-size: 15px;
  line-height: 1.2;
}

.bsk-sql-language-menu {
  position: relative;
  width: 100%;
  min-width: 0;
}

.bsk-sql-language-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d7e6dc;
  border-radius: 8px;
  background: #f5faf7;
  color: #17251f;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  cursor: pointer;
}

.bsk-sql-language-toggle span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsk-sql-language-toggle b {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
}

.bsk-sql-language-picker.is-open .bsk-sql-language-toggle,
.bsk-sql-language-toggle:focus-visible {
  border-color: #2f8b57;
  box-shadow: 0 0 0 2px rgba(47, 139, 87, .16);
  outline: 0;
}

.bsk-sql-language-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border: 1px solid #d7e6dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(23, 37, 31, .16);
}

.bsk-sql-language-options[hidden] {
  display: none;
}

.bsk-sql-language-options button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #254337;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.bsk-sql-language-options button.is-active {
  background: #17251f;
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(23, 37, 31, .16);
}

.bsk-sql-language-options button:focus-visible {
  outline: 2px solid #2f8b57;
  outline-offset: 2px;
}

.bsk-sql-guest-save {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #d6e8dd;
  border-radius: 8px;
  background: #f4faf6;
  color: #45524d;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 380px) {
  .bsk-sql-language-picker {
    gap: 9px;
  }

  .bsk-sql-language-options button {
    padding: 0 8px;
  }

  .bsk-sql-login-hero {
    min-height: min(42dvh, 300px);
    padding: 16px 16px 12px;
  }

  .bsk-sql-login-hero h2 {
    font-size: 27px;
  }

  .bsk-sql-app.is-studying .bsk-sql-study-card {
    gap: 5px;
    padding: 7px;
  }

  .bsk-sql-app.is-studying .bsk-sql-word-panel {
    padding: 7px 9px;
  }

  .bsk-sql-app.is-studying .bsk-sql-choice-list {
    gap: 5px;
  }

  .bsk-sql-feedback-actions {
    gap: 5px;
  }
}
