/* Self-hosted Google Fonts (no third-party font requests). */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YK Rare Han';
  src: url('../fonts/yk-rare-han.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#yomikamo-app {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --border: #e9e1d6;
  --text: #1f1a17;
  --muted: #6e655e;
  --brand: #2e2a4a;
  --teal: #2c8c84;
  --coral: #d46a5e;
  --flash-bg: rgba(46, 42, 74, 0.09);
  --flash-ring: rgba(46, 42, 74, 0.18);
  --shadow: 0 16px 36px rgba(17, 14, 12, 0.1);
  --shadow-soft: 0 10px 20px rgba(17, 14, 12, 0.08);
  --surface-soft: rgba(255, 255, 255, 0.86);
  --shadow-card: 0 14px 28px rgba(17, 14, 12, 0.1);
  --shadow-card-soft: 0 10px 18px rgba(17, 14, 12, 0.07);
  --yk-font-glyph-print: 'YK Rare Han', 'Noto Serif JP', 'Hiragino Mincho ProN',
    'Hiragino Mincho Pro', 'Yu Mincho', 'YuMincho', 'MS Mincho', serif;
  --yk-font-glyph-ui: 'Hiragino Sans', 'Yu Gothic', 'YuGothic', 'Meiryo', 'MS Gothic',
    'YK Rare Han', system-ui, sans-serif;
  --yk-font-glyph-rounded: 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'Hiragino Sans',
    'Yu Gothic', 'YuGothic', 'Meiryo', 'YK Rare Han', system-ui, sans-serif;
  --yk-font-weight-glyph-ui: 500;
  --yk-font-weight-glyph-print: 600;
  --yk-font-weight-glyph-rounded: 600;
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --pad-xl: 32px;
  --pad-lg: 22px;
  --pad-md: 16px;
  --pad-sm: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(46, 42, 74, 0.1), transparent 60%),
    radial-gradient(800px 420px at 20% 10%, rgba(44, 140, 132, 0.1), transparent 55%),
    var(--bg);
  min-height: 100vh;
  width: 100% !important;
  max-width: none !important;
  padding: 20px 20px 70px !important;
  box-sizing: border-box;
  margin: 0 !important;
  position: relative;
}

body.yomikamo-static {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --border: #e9e1d6;
  --text: #1f1a17;
  --muted: #6e655e;
  --brand: #2e2a4a;
  --teal: #2c8c84;
  --coral: #d46a5e;
  --shadow: 0 16px 36px rgba(17, 14, 12, 0.1);
  --shadow-soft: 0 10px 20px rgba(17, 14, 12, 0.08);
  --surface-soft: rgba(255, 255, 255, 0.86);
  --shadow-card: 0 14px 28px rgba(17, 14, 12, 0.1);
  --shadow-card-soft: 0 10px 18px rgba(17, 14, 12, 0.07);
  --yk-font-glyph-print: 'YK Rare Han', 'Noto Serif JP', 'Hiragino Mincho ProN',
    'Hiragino Mincho Pro', 'Yu Mincho', 'YuMincho', 'MS Mincho', serif;
  --yk-font-glyph-ui: 'Hiragino Sans', 'Yu Gothic', 'YuGothic', 'Meiryo', 'MS Gothic',
    'YK Rare Han', system-ui, sans-serif;
  --yk-font-glyph-rounded: 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'Hiragino Sans',
    'Yu Gothic', 'YuGothic', 'Meiryo', 'YK Rare Han', system-ui, sans-serif;
  --yk-font-weight-glyph-ui: 500;
  --yk-font-weight-glyph-print: 600;
  --yk-font-weight-glyph-rounded: 600;
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --pad-xl: 32px;
  --pad-lg: 22px;
  --pad-md: 16px;
  --pad-sm: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(46, 42, 74, 0.1), transparent 60%),
    radial-gradient(800px 420px at 20% 10%, rgba(44, 140, 132, 0.1), transparent 55%),
    var(--bg);
  min-height: 100vh;
  width: 100%;
  padding: 20px 20px 70px;
  box-sizing: border-box;
  margin: 0;
}

html.yk-page-loading-active body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(251, 248, 243, 0.72);
  backdrop-filter: blur(8px);
  z-index: 99999;
  pointer-events: auto;
}

html.yk-page-loading-active body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  border-radius: 999px;
  border: 4px solid rgba(46, 42, 74, 0.18);
  border-top-color: rgba(46, 42, 74, 0.92);
  box-shadow: 0 14px 30px rgba(17, 14, 12, 0.12);
  animation: yk-page-loading-spin 900ms linear infinite;
  z-index: 100000;
  pointer-events: auto;
}

@keyframes yk-page-loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.yk-page-loading-active body::after {
    animation: none;
  }
}

.yk-guarantees {
  --yk-ink: #1d1a19;
  --yk-slate: #4b4543;
  --yk-cream: #f7f1e8;
  --yk-paprika: #c4572d;
  --yk-amber: #e5a85f;
  --yk-moss: #5b6b53;
  color: var(--yk-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
}

.yk-guarantees-hero {
  background:
    radial-gradient(140% 90% at 5% 10%, rgba(229, 168, 95, 0.35), transparent 55%),
    linear-gradient(135deg, #fdf7ef 0%, #f4e7d8 55%, #efe0d0 100%);
  border-bottom: 1px solid rgba(41, 36, 34, 0.08);
  padding: 72px 24px 56px;
}

.yk-guarantees-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.yk-guarantees-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--yk-moss);
}

.yk-guarantees-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 18px 0 12px;
  line-height: 1.1;
}

.yk-guarantees-hero p {
  font-size: 18px;
  color: var(--yk-slate);
  max-width: 680px;
}

.yk-guarantees-badges {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yk-guarantees-badges span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91, 107, 83, 0.12);
  color: var(--yk-moss);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.yk-philosophy-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.yk-philosophy-cta .yk-btn {
  text-decoration: none;
}

.yk-guarantees-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
}

.yk-guarantees-section h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 24px;
}

.yk-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.yk-guarantees-grid article {
  background: var(--yk-cream);
  border: 1px solid rgba(34, 29, 26, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 24px rgba(54, 45, 38, 0.08);
}

.yk-guarantees-grid h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.yk-guarantees-grid p {
  color: var(--yk-slate);
  margin: 0 0 8px;
  line-height: 1.5;
}

.yk-guarantees-meta {
  font-size: 13px;
  color: rgba(29, 26, 25, 0.7);
}

.yk-guarantees-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.yk-guarantees-split ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--yk-slate);
}

.yk-guarantees-panel {
  background: #fff7ec;
  border: 1px solid rgba(196, 87, 45, 0.18);
  border-radius: 18px;
  padding: 20px;
  color: var(--yk-ink);
}

.yk-guarantees-panel h3 {
  margin-top: 0;
}

.yk-guarantees-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guarantees;
}

.yk-guarantees-steps li {
  counter-increment: guarantees;
  padding: 14px 18px;
  border-left: 3px solid var(--yk-paprika);
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--yk-slate);
}

.yk-guarantees-steps li::before {
  content: counter(guarantees);
  font-weight: 700;
  color: var(--yk-paprika);
  margin-right: 8px;
}

.yk-guarantees-footnote {
  font-size: 13px;
  color: rgba(29, 26, 25, 0.6);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .yk-guarantees-split {
    grid-template-columns: 1fr;
  }
  .yk-guarantees-hero {
    padding: 56px 20px 48px;
  }
}

.yk-achievements {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.yk-achievements-hero {
  padding: 26px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 220, 170, 0.4), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-soft);
  position: relative;
  overflow: hidden;
}

.yk-achievements-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(44, 140, 132, 0.25), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
}

.yk-achievements-hero h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.yk-achievements-hero p {
  font-size: 16px;
  max-width: 520px;
}

.yk-achievement-group {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-soft);
  overflow: hidden;
}

.yk-achievement-group::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 120px at 0% 0%, var(--group-glow, rgba(44, 140, 132, 0.12)), transparent 60%);
  pointer-events: none;
}

.yk-achievement-group-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.yk-achievement-group-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--group-accent, var(--teal));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  font-size: 16px;
}

.yk-achievement-group h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.yk-achievement-group[data-group="reading-milestones"] {
  --group-accent: #2c8c84;
  --group-glow: rgba(44, 140, 132, 0.18);
}

.yk-achievement-group[data-group="autonomy-milestones"] {
  --group-accent: #d46a5e;
  --group-glow: rgba(212, 106, 94, 0.18);
}

.yk-achievement-group[data-group="memory-milestones"] {
  --group-accent: #2e2a4a;
  --group-glow: rgba(46, 42, 74, 0.18);
}

.yk-achievement-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.yk-achievement-card {
  position: relative;
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 16px;
  padding: 16px 16px 14px 22px;
  background:
    radial-gradient(120px 120px at 10% 0%, var(--group-glow, rgba(44, 140, 132, 0.14)), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.85));
  box-shadow: var(--shadow-card-soft);
  overflow: hidden;
}

.yk-achievement-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--group-accent, var(--teal));
  opacity: 0.75;
}

.yk-achievement-card.is-locked {
  opacity: 0.7;
}

.yk-achievement-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.yk-achievement-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.yk-achievement-meta {
  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 26, 23, 0.04);
}

.yk-achievement-peek {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yk-achievement-peek-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.yk-achievement-peek-count {
  color: var(--muted);
  font-size: 13px;
}

.yk-achievement-peek-next {
  color: var(--muted);
  font-size: 14px;
}

.yk-achievement-peek-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.yk-achievement-toast {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.yk-achievement-toast-header {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

.yk-achievement-toast-intro {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.yk-achievement-toast-item + .yk-achievement-toast-item {
  margin-top: 10px;
}

.yk-achievement-toast-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 26, 23, 0.08);
  box-shadow: 0 6px 14px rgba(17, 14, 12, 0.08);
}

.yk-achievement-embed .yk-achievement-toast-item {
  background: rgba(255, 255, 255, 0.92);
}

.yk-achievement-toast-title {
  font-weight: 600;
}

.yk-achievement-toast-desc {
  font-size: 14px;
  color: var(--muted);
}

.yk-achievement-toast-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.yomikamo-page main,
.yomikamo-page .wp-site-blocks,
.yomikamo-page .wp-block-group,
.yomikamo-page .wp-block-post-content,
.yomikamo-page .entry-content {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  margin: 0 !important;
}

.yomikamo-page .wp-block-post-content > #yomikamo-app {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.yomikamo-page .wp-block-post-title,
.yomikamo-page .entry-title {
  display: none;
}

.yomikamo-page .wp-site-blocks > header,
.yomikamo-page header.wp-block-template-part {
  display: none;
}

.yomikamo-page footer,
.yomikamo-page .wp-site-footer,
.yomikamo-page .wp-block-template-part.wp-block-template-part,
.yomikamo-page .wp-site-blocks > footer,
.yomikamo-page .wp-block-site-footer,
.yomikamo-page .wp-block-site-generator,
.yomikamo-page .wp-site-blocks > .wp-block-group:last-child {
  display: none;
}

body.yomikamo-page,
body.yomikamo-page .wp-site-blocks,
body.yomikamo-page main,
body.yomikamo-page .wp-block-post-content {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(46, 42, 74, 0.1), transparent 60%),
    radial-gradient(800px 420px at 20% 10%, rgba(44, 140, 132, 0.1), transparent 55%),
    #fbf8f3;
}

.yomikamo-page main,
.yomikamo-page .wp-site-blocks {
  margin-top: 0;
  padding-top: 0;
}

.yomikamo-page main {
  margin-top: 0 !important;
}

.yomikamo-page .wp-block-group.alignfull,
.yomikamo-page .wp-block-group.has-global-padding {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.yomikamo-page .is-layout-constrained,
.yomikamo-page .is-layout-flow,
.yomikamo-page .is-layout-flex,
.yomikamo-page .is-layout-grid {
  padding: 0 !important;
  margin: 0 !important;
}

.yomikamo-page .wp-site-blocks,
.yomikamo-page .wp-block-post-content {
  max-width: none;
  width: 100%;
}

.yk-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.yk-dashboard {
  display: grid;
  gap: 18px;
}

.yk-onboarding {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 243, 238, 0.9));
  border: 1px solid rgba(36, 34, 44, 0.08);
}

.yk-onboarding__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.yk-onboarding__kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}

.yk-onboarding__message {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text);
}

.yk-coachmark {
  position: fixed;
  z-index: 60;
  max-width: min(320px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(36, 34, 44, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(26, 22, 33, 0.12);
}

.yk-coachmark__content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  padding-right: 12px;
}

.yk-coachmark__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.yk-coachmark__close:hover {
  color: var(--text);
}

.yk-coachmark__arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(36, 34, 44, 0.12);
  border-top: 1px solid rgba(36, 34, 44, 0.12);
  transform: rotate(45deg);
  left: 20px;
}

.yk-coachmark[data-placement='bottom'] .yk-coachmark__arrow {
  top: -6px;
}

.yk-coachmark[data-placement='top'] .yk-coachmark__arrow {
  bottom: -6px;
  transform: rotate(225deg);
}

.yk-coachmark-target {
  position: relative;
  z-index: 6;
  box-shadow:
    0 0 0 2px rgba(42, 123, 116, 0.35),
    0 0 0 6px rgba(42, 123, 116, 0.15);
}

.yk-onboarding__progress {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(36, 34, 44, 0.1);
}

.yk-onboarding__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.yk-onboarding__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(36, 34, 44, 0.08);
}

.yk-onboarding__list li > div {
  display: grid;
  gap: 4px;
}

.yk-onboarding__list li strong {
  font-size: 14px;
}

.yk-onboarding__list li span {
  font-size: 12px;
  color: var(--muted);
}

.yk-onboarding__list li.is-complete {
  opacity: 0.7;
  text-decoration: line-through;
}

.yk-onboarding__list .yk-btn {
  white-space: nowrap;
}

.yk-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.yk-loading::before {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 4px solid rgba(46, 42, 74, 0.18);
  border-top-color: rgba(46, 42, 74, 0.92);
  box-shadow: 0 14px 30px rgba(17, 14, 12, 0.12);
  animation: yk-loading-spin 900ms linear infinite;
}

@keyframes yk-loading-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .yk-loading::before { animation: none; }
}

.yk-session-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  column-gap: 12px;
  row-gap: 0;
  max-width: none;
}

.yk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.yk-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yk-sync-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.yk-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d5792f;
}

.yk-sync-wrap.is-hidden {
  display: none;
}

.yk-sync-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yk-tooltip--sync {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  text-align: center;
  white-space: normal;
}

.yk-sync-wrap:hover .yk-tooltip--sync,
.yk-sync-wrap:focus-within .yk-tooltip--sync {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.yk-admin-link {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 34, 44, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.yk-admin-link:hover {
  background: var(--surface);
}

.yk-account-menu {
  position: relative;
}

.yk-account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 14px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1;
}

.yk-account-toggle:hover,
.yk-account-menu.is-open .yk-account-toggle {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.yk-account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  min-width: 190px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(17, 14, 12, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.yk-account-menu.is-open .yk-account-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.yk-account-menu-item {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.yk-account-menu-identity {
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin: 0 0 6px;
}

.yk-account-menu-item:hover {
  background: rgba(17, 14, 12, 0.06);
}

.yk-account-menu-item.is-active {
  background: rgba(17, 14, 12, 0.06);
}

.yk-account-menu-item.is-locked {
  opacity: 0.65;
  cursor: not-allowed;
  position: relative;
}

.yk-account-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.yk-account-menu-logout {
  color: var(--muted);
}

.yk-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yk-brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 34px;
  text-decoration: none;
  color: var(--text);
}

.yk-settings-link {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(17, 14, 12, 0.06);
}

.yk-settings-link.is-locked {
  opacity: 0.65;
  cursor: not-allowed;
  position: relative;
}

.yk-tooltip {
  position: absolute;
  max-width: 280px;
  padding: 10px 12px 12px;
  background: #1c1714;
  color: #f8f4ef;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(13, 10, 8, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-sizing: border-box;
  display: inline-block;
}

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

.yk-tooltip--nav {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: #1f1a17;
  color: #ffffff;
  max-width: 280px;
  min-width: 180px;
  text-align: center;
  z-index: 20;
  white-space: normal;
  font-weight: 600;
}

.yk-settings-link.is-locked:hover .yk-tooltip--nav,
.yk-settings-link.is-locked:focus-visible .yk-tooltip--nav {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.yk-account-menu-item.is-locked:hover .yk-tooltip--nav,
.yk-account-menu-item.is-locked:focus-visible .yk-tooltip--nav {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.yk-nav-lock {
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.7;
}

.yk-settings-link.is-active {
  color: var(--text);
  background: var(--surface);
}

.yk-hero {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffd93d 0%, #ff8c42 100%);
  border: none;
  box-shadow: 0 12px 36px rgba(255, 140, 66, 0.28);
  margin-top: 14px;
}

.yk-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.yk-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.yk-hero-mascot {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yk-hero-mascot img {
  width: 76px;
  height: auto;
}

.yk-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
}

.yk-hero-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.yk-hero h2 {
  margin: 0 0 8px;
  font-family: 'Fraunces', serif;
  font-size: 30px;
  letter-spacing: 0.2px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.yk-hero-sub {
  font-size: 15px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.92);
}

.yk-stats-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.yk-pill {
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  min-width: 110px;
}

.yk-pill-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #8c8c8c;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.yk-pill-value {
  font-size: 20px;
  color: #333;
}

.yk-pill-lessons {
  border-left: 4px solid #6b5ce7;
}

.yk-pill-reviews {
  border-left: 4px solid #ff6b9d;
}

.yk-pill-level {
  border-left: 4px solid #4ecdc4;
}

.yk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.yk-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.yk-dashboard-primary {
  align-items: stretch;
}

.yk-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.yk-card-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yk-card-head .yk-card-icon {
  margin-bottom: 0;
}

.yk-card-head-tight {
  margin-bottom: 8px;
}

.yk-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  font-size: 42px;
}

.yk-card-icon img {
  width: 44px;
  height: auto;
}

.yk-srs-stages {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yk-stage-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.yk-stage-count {
  font-size: 17px;
  font-weight: 600;
  color: #5b4fc5;
}

.yk-stage-count.is-zero {
  color: #9a9088;
}

.yk-lessons-upcoming {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.yk-lessons-upcoming-title {
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.yk-study-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yk-study-summary-label {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.yk-study-summary-block {
  display: grid;
  gap: 8px;
}

.yk-study-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.yk-stage-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.yk-stage-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.yk-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.yk-stage-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.yk-srs-summary {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.yk-srs-summary-item {
  flex: 1;
}

.yk-srs-summary-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.yk-srs-summary-value {
  font-size: 21px;
  font-weight: 800;
  color: #333;
}

.yk-card-reviews .yk-cta {
  margin-top: 10px;
}

.yk-review-due-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46, 42, 74, 0.18);
  background: rgba(46, 42, 74, 0.05);
  color: var(--text);
}

.yk-card-reviews .yk-cta-secondary {
  margin-top: 6px;
}

.yk-card-reviews .yk-forecast {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.yk-card-reviews .yk-empty {
  margin-top: 8px;
  font-size: 12px;
}

.yk-streak-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yk-streak-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.yk-streak-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
}

.yk-streak-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.yk-streak-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.yk-streak-day {
  text-align: center;
  font-size: 12px;
  padding: 6px 4px;
  border-radius: 999px;
  box-sizing: border-box;
  background: rgba(46, 42, 74, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.yk-streak-day.is-active {
  background: rgba(46, 140, 132, 0.2);
  color: #1f4f49;
}

.yk-streak-day.is-today {
  border: 1px solid rgba(46, 140, 132, 0.5);
}

.yk-streak-best {
  font-size: 13px;
  color: var(--muted);
}

.yk-streak-best strong {
  color: var(--text);
  font-weight: 800;
}

.yk-total-days-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yk-total-days-count {
  font-size: 42px;
  font-weight: 800;
}

.yk-level-overview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yk-level-overview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.yk-level-overview-meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.yk-level-overview-meta-block strong {
  font-size: 16px;
  font-weight: 800;
}

.yk-level-overview-current {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(46, 140, 132, 0.12);
}

.yk-level-overview-note {
  font-size: 12px;
}

.yk-level-overview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yk-level-overview-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
}

.yk-level-overview-symbol {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text);
  background: rgba(46, 42, 74, 0.08);
}

.yk-level-overview-label {
  font-size: 13px;
  font-weight: 700;
}

.yk-level-overview-count {
  font-size: 12px;
  color: var(--muted);
}

.yk-level-overview-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.yk-level-overview-link:hover {
  text-decoration: underline;
}

.yk-level-overview-footer {
  font-size: 12px;
  color: var(--muted);
}

.yk-stats-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(235, 245, 245, 0.9));
}

.yk-stats-hero-text h2 {
  margin: 0 0 6px;
  font-family: 'Fraunces', serif;
  font-size: 30px;
}

.yk-stats-hero-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  flex: 1;
}

.yk-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.yk-stat-mini {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yk-stat-mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
}

.yk-stat-mini-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.yk-stat-mini-sub {
  font-size: 12px;
  color: var(--muted);
}

.yk-stat-card h3 {
  margin-bottom: 12px;
}

.yk-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-top: 8px;
}

.yk-stat-row strong {
  font-weight: 800;
}

.yk-stat-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.yk-sparkline {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
}

.yk-sparkline-item {
  flex: 1;
  min-width: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.yk-sparkline-bar {
  width: 100%;
  background: linear-gradient(160deg, var(--brand), var(--teal));
  border-radius: 999px 999px 8px 8px;
  opacity: 0.85;
  transition: transform 160ms ease, opacity 160ms ease;
}

.yk-sparkline-item:hover .yk-sparkline-bar {
  opacity: 1;
  transform: translateY(-2px);
}

.yk-sparkline-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  min-height: 11px;
}

.yk-sparkline-minutes .yk-sparkline-bar {
  background: linear-gradient(160deg, #f39c6b, #f0c17b);
}

.yk-settings-grid {
  margin-top: 0;
  gap: 20px;
  align-items: start;
}

.yk-settings-grid .yk-panel {
  min-height: auto;
}

.yk-settings-grid .yk-cta {
  margin-top: 12px;
}

.yk-settings-shell {
  display: grid;
  gap: 18px;
}

.yk-settings-pagehead {
  padding: 4px 4px 0;
}

.yk-settings-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 32px;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.yk-settings-subtitle {
  margin-top: 4px;
  font-size: 14px;
}

.yk-settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.yk-settings-nav {
  position: sticky;
  top: 12px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card-soft);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.yk-settings-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.yk-settings-nav-btn:hover {
  background: rgba(44, 140, 132, 0.08);
  color: var(--text);
}

.yk-settings-nav-btn.is-active {
  background: rgba(44, 140, 132, 0.12);
  color: var(--teal);
}

.yk-settings-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0.75;
}

.yk-settings-nav-btn.is-active .yk-settings-nav-icon {
  opacity: 1;
}

.yk-settings-nav-label {
  font-size: 13.5px;
}

.yk-settings-panel {
  padding: 28px;
  min-height: 520px;
}

.yk-settings-section-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--brand);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.yk-settings-section-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(233, 225, 214, 0.7);
}

.yk-settings-row {
  display: flex;
  position: relative;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(233, 225, 214, 0.55);
}

.yk-settings-row--flash::before {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 6px;
  bottom: 6px;
  border-radius: 16px;
  background: var(--flash-bg);
  box-shadow: 0 0 0 0 var(--flash-ring);
  opacity: 0;
  transform: scale(0.985);
  animation: yk-settings-row-flash 2200ms ease-out 1;
  pointer-events: none;
}

.yk-settings-row--flash > * {
  position: relative;
  z-index: 1;
}

@keyframes yk-settings-row-flash {
  0% {
    opacity: 0;
    transform: scale(0.985);
    box-shadow: 0 0 0 0 var(--flash-ring);
  }
  18% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px var(--flash-ring);
  }
  55% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 6px var(--flash-ring);
  }
  100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--flash-ring);
  }
}

.yk-settings-row:last-of-type {
  border-bottom: none;
}

.yk-settings-row-text {
  min-width: 0;
  cursor: pointer;
}

.yk-settings-row-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.yk-settings-row-desc {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.yk-settings-row-desc-line {
  display: block;
  margin-top: 4px;
}

.yk-settings-row-control {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 160px;
}

.yk-settings-select,
.yk-settings-input {
  font-family: inherit;
  font-weight: 650;
  font-size: 13.5px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.yk-settings-select {
  min-width: 160px;
}

.yk-settings-input {
  min-width: 220px;
}

.yk-settings-select:focus,
.yk-settings-input:focus {
  outline: none;
  border-color: rgba(44, 140, 132, 0.65);
  box-shadow: 0 0 0 2px rgba(44, 140, 132, 0.15);
}

.yk-settings-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.yk-settings-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(46, 42, 74, 0.18);
  background: rgba(212, 207, 200, 0.85);
  position: relative;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.yk-settings-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.yk-settings-switch:checked {
  background: rgba(44, 140, 132, 0.95);
  border-color: rgba(44, 140, 132, 0.6);
}

.yk-settings-switch:checked::after {
  transform: translateX(20px);
}

.yk-settings-switch:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.yk-settings-block {
  padding: 16px 0;
  border-bottom: 1px solid rgba(233, 225, 214, 0.55);
}

.yk-settings-subcontent {
  padding: 8px 0 4px;
  border-bottom: 1px solid rgba(233, 225, 214, 0.55);
}

.yk-typeface {
  margin-top: 12px;
  padding: 0;
  border: 0;
}

.yk-typeface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yk-typeface-card {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(31, 26, 23, 0.1);
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 14px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-card-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position: relative;
}

.yk-typeface-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.yk-typeface-card.is-selected {
  border-color: rgba(44, 140, 132, 0.55);
  box-shadow: 0 0 0 3px rgba(44, 140, 132, 0.12), var(--shadow-card);
}

.yk-typeface-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yk-typeface-head {
  display: grid;
  gap: 2px;
}

.yk-typeface-name {
  font-weight: 850;
  color: var(--text);
  font-size: 14px;
}

.yk-typeface-note {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.yk-typeface-preview {
  border-radius: 14px;
  border: 1px solid rgba(233, 225, 214, 0.85);
  background: rgba(251, 248, 243, 0.75);
  padding: 12px 12px 10px;
}

.yk-typeface-preview-big {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.yk-typeface-preview-line {
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.92;
}

.yk-typeface-card[data-typeface='ui'] .yk-typeface-preview {
  font-family: var(--yk-font-glyph-ui);
  font-weight: var(--yk-font-weight-glyph-ui);
}

.yk-typeface-card[data-typeface='print'] .yk-typeface-preview {
  font-family: var(--yk-font-glyph-print);
  font-weight: var(--yk-font-weight-glyph-print);
}

.yk-typeface-card[data-typeface='rounded'] .yk-typeface-preview {
  font-family: var(--yk-font-glyph-rounded);
  font-weight: var(--yk-font-weight-glyph-rounded);
}

.yk-settings-subsection {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.yk-settings-subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.yk-settings-subsection-title {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .yk-settings-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .yk-settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .yk-settings-nav-btn {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
  }

  .yk-settings-nav-icon {
    display: none;
  }

  .yk-settings-panel {
    padding: 20px 16px;
    min-height: 0;
  }

  .yk-settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .yk-settings-row-control {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
  }

  .yk-settings-select,
  .yk-settings-input {
    width: 100%;
    min-width: 0;
  }

  .yk-typeface-grid {
    grid-template-columns: 1fr;
  }
}

.yk-dashboard .yk-panel {
  padding: 22px;
  min-height: 0;
}

.yk-dashboard .yk-panel h3 {
  font-size: 22px;
}

.yk-dashboard .yk-card {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.yk-dashboard .yk-card-soft {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.yk-dashboard .yk-cta {
  margin-top: 12px;
}

.yk-dashboard .yk-empty {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #7a7068;
}

.yk-dashboard .yk-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yk-dashboard .yk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.yk-panel {
  padding: 18px;
  min-height: 230px;
}

.yk-review-panel {
  width: 100%;
  max-width: 920px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: calc(100vh - 120px);
}

.yk-panel h3 {
  margin: 0 0 10px;
  font-family: 'Fraunces', serif;
  font-size: 26px;
}

.yk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.yk-card-soft {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.yk-subjects-panel {
  padding: 24px;
}

.yk-subjects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 12px;
  z-index: 5;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.yk-subjects-title {
  margin: 0 0 4px;
  font-family: 'Fraunces', serif;
  font-size: 28px;
}

.yk-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yk-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.yk-tab-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.yk-levels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}

.yk-level-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 10px;
}

.yk-level-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yk-level-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(46, 42, 74, 0.08);
  overflow: hidden;
}

.yk-level-progress-bar div {
  height: 100%;
  background: linear-gradient(120deg, var(--brand), var(--teal));
}

.yk-level-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.yk-level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.yk-level-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.yk-level-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.yk-level-card strong {
  font-size: 18px;
  color: var(--text);
}

.yk-level-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.yk-legend {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.yk-level-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.yk-level-locked {
  background: rgba(240, 236, 232, 0.9);
  color: #8a817a;
}

.yk-level-lesson {
  background: rgba(255, 239, 210, 0.9);
  border-color: #f1c86d;
}

.yk-level-review {
  background: rgba(219, 236, 255, 0.9);
  border-color: #7fa6e8;
}

.yk-level-burned {
  background: rgba(219, 247, 229, 0.9);
  border-color: #6fc58f;
}

.yk-level-pill.yk-level-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(46, 140, 132, 0.25);
}

.yk-legend-tooltip {
  position: relative;
  cursor: help;
}

.yk-tooltip--legend {
  right: auto;
  left: 0;
  top: 100%;
  max-width: 360px;
  text-transform: none;
  font-weight: 600;
}

.yk-legend-tooltip:hover .yk-tooltip--legend,
.yk-legend-tooltip:focus-within .yk-tooltip--legend {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.yk-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
}

.yk-subject-section {
  margin-top: 18px;
}

.yk-subject-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}

.yk-subject-section-head h3 {
  margin: 0;
}

.yk-subject-card {
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 14px rgba(17, 14, 12, 0.06);
  text-decoration: none;
  color: inherit;
  display: block;
}

.yk-subject-char {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.yk-subject-image {
  display: inline-block;
  max-width: 100%;
  max-height: 70px;
  height: auto;
  width: auto;
}

.yk-subject-image--hero {
  max-height: 160px;
}

.yk-subject-image--detail {
  max-height: 180px;
}

.yk-subject-card-context {
  border-color: rgba(44, 140, 132, 0.35);
  background: linear-gradient(140deg, rgba(44, 140, 132, 0.08), rgba(255, 255, 255, 0.96));
}

.yk-subject-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  background: rgba(44, 140, 132, 0.12);
  border: 1px solid rgba(44, 140, 132, 0.2);
  margin-bottom: 6px;
}

.yk-subject-char-context {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.yk-subject-status {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.yk-subject-status .yk-legend {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.yk-status-locked {
  background: rgba(240, 236, 232, 0.9);
  color: #8a817a;
}

.yk-status-lesson {
  background: rgba(255, 239, 210, 0.9);
  border-color: #f1c86d;
}

.yk-status-review {
  background: rgba(219, 236, 255, 0.9);
  border-color: #7fa6e8;
}

.yk-status-burned {
  background: rgba(219, 247, 229, 0.9);
  border-color: #6fc58f;
}

.yk-subject-search-panel {
  padding: 24px;
}

.yk-subject-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.yk-subject-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 14px 0 16px;
}

.yk-subject-search-field {
  flex: 1 1 220px;
  min-width: 220px;
}

.yk-subject-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
}

.yk-subject-search-toggle input {
  accent-color: var(--brand);
}

.yk-subject-search-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 12px;
  font-size: 14px;
}

.yk-subject-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.yk-subject-search-result {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 14, 12, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.yk-subject-search-result:hover,
.yk-subject-search-result:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(76, 62, 172, 0.35);
  box-shadow: 0 14px 28px rgba(17, 14, 12, 0.1);
  outline: none;
}

.yk-subject-search-glyph {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 42, 74, 0.06);
  border: 1px solid rgba(46, 42, 74, 0.08);
  font-size: 34px;
  font-weight: 800;
  flex: 0 0 auto;
}

.yk-subject-search-glyph img {
  max-width: 58px;
  max-height: 58px;
  width: auto;
  height: auto;
}

.yk-subject-search-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yk-subject-search-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.yk-subject-search-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  color: var(--muted);
}

.yk-subject-search-primary {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.yk-subject-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yk-detail-hero {
  background: linear-gradient(140deg, rgba(46, 42, 74, 0.95), rgba(44, 140, 132, 0.9));
  color: #fff;
  padding: 28px;
  border-radius: var(--r-xl);
  text-align: center;
  box-shadow: var(--shadow);
}

.yk-detail-hero--english {
  background: linear-gradient(120deg, rgba(46, 42, 74, 0.95), rgba(62, 56, 92, 0.95));
}

.yk-detail-hero--kana {
  background: linear-gradient(120deg, rgba(180, 82, 72, 0.95), rgba(212, 106, 94, 0.95));
}

.yk-detail-hero--dual {
  background-image:
    linear-gradient(225deg, rgba(212, 106, 94, 0) 0 72%, rgba(212, 106, 94, 0.18) 73%, rgba(212, 106, 94, 0.45) 74.5%, rgba(212, 106, 94, 0.18) 76%, rgba(212, 106, 94, 0) 77% 100%),
    linear-gradient(120deg, rgba(46, 42, 74, 0.97), rgba(62, 56, 92, 0.97));
  background-size: 40% 40%, 100% 100%;
  background-position: 150% -4%, center;
  background-repeat: no-repeat;
}

.yk-detail-type {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  opacity: 0.75;
}

.yk-detail-char {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: var(--yk-font-weight-glyph-primary, var(--yk-font-weight-glyph-ui));
  margin: 10px 0;
  font-family: var(--yk-font-glyph-primary, var(--yk-font-glyph-ui));
}

.yk-detail-meaning {
  font-size: 24px;
  font-weight: 700;
}

.yk-meaning-scope-badge,
.yk-direct-from-kanji-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  vertical-align: middle;
  opacity: 0.75;
}

.yk-meaning-scope-badge::after,
.yk-direct-from-kanji-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1f1a16;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 2;
  white-space: normal;
}

.yk-meaning-scope-badge::before,
.yk-direct-from-kanji-badge::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #1f1a16 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 2;
}

.yk-meaning-scope-badge:hover::after,
.yk-meaning-scope-badge:hover::before,
.yk-meaning-scope-badge:focus-visible::after,
.yk-meaning-scope-badge:focus-visible::before {
  opacity: 1;
}

.yk-direct-from-kanji-badge:hover::after,
.yk-direct-from-kanji-badge:hover::before,
.yk-direct-from-kanji-badge:focus-visible::after,
.yk-direct-from-kanji-badge:focus-visible::before {
  opacity: 1;
}

.yk-meaning-scope-badge--app {
  border-color: rgba(76, 62, 172, 0.18);
}

.yk-meaning-scope-badge--standard {
  border-color: rgba(44, 140, 132, 0.14);
}

.yk-direct-from-kanji-badge {
  border-color: rgba(140, 96, 44, 0.14);
}

.yk-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.yk-detail-card--wide {
  grid-column: span 2;
}

.yk-stroke-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.yk-stroke-order-head h3 {
  margin: 0;
}

.yk-stroke-order-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(46, 42, 74, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.yk-stroke-order-placeholder {
  font-size: 13px;
  text-align: center;
  padding: 10px 12px;
}

.yk-stroke-order-svg {
  width: 100%;
  height: 100%;
}

.yk-stroke-order-brush {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.yk-stroke-order-guide {
  fill: none;
  stroke: rgba(31, 26, 23, 0.12);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yk-stroke-order-path {
  fill: none;
  stroke: #1f1a17;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yk-stroke-order-svg--brush .yk-stroke-order-path {
  stroke: transparent;
}

/* In brush mode, keep the guide subtle so it doesn't look like a second,
   thicker outline behind the canvas brush stroke. */
.yk-stroke-order-svg--brush .yk-stroke-order-guide {
  stroke: rgba(31, 26, 23, 0.08);
  stroke-width: 5;
}

@keyframes yk-stroke-order-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .yk-stroke-order-canvas {
    cursor: pointer;
  }

  .yk-stroke-order-canvas:hover {
    border-color: rgba(46, 42, 74, 0.22);
  }

  .yk-stroke-order-head {
    justify-content: flex-start;
  }

  .yk-stroke-order-play {
    display: none;
  }
}

.yk-detail-reading,
.yk-detail-progress {
  font-size: 16px;
  font-weight: 600;
}

.yk-detail-reading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yk-reading-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 16px;
  color: #2a221c;
  box-shadow: 0 8px 16px rgba(17, 14, 12, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.yk-reading-chip + .yk-reading-chip {
  margin-left: 8px;
}

.yk-reading-chip:hover,
.yk-reading-chip:focus-visible {
  border-color: rgba(76, 62, 172, 0.5);
  box-shadow: 0 10px 18px rgba(76, 62, 172, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.yk-reading-chip:focus {
  outline: none;
}

.yk-reading-chip--disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.yk-reading-type {
  position: relative;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 800;
}

.yk-reading-type::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1f1a16;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 2;
  white-space: normal;
}

.yk-reading-type::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #1f1a16 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 2;
}

.yk-reading-chip:hover .yk-reading-type::after,
.yk-reading-chip:focus-visible .yk-reading-type::after,
.yk-reading-chip:hover .yk-reading-type::before,
.yk-reading-chip:focus-visible .yk-reading-type::before {
  opacity: 1;
}

.yk-reading-audio-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(76, 62, 172, 0.12);
  color: #4c3eac;
  font-size: 10px;
  font-weight: 800;
}

.yk-reading-audio-icon::before {
  content: '🔊';
}

.yk-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yk-chip-subject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.yk-detail-notes {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-line;
}

.yk-context-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yk-context-row {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.yk-context-ja {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.yk-context-en {
  font-size: 13px;
  color: var(--muted);
}

.yk-cta {
  margin-top: 18px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.yk-cta-secondary {
  margin-top: 10px;
  flex-wrap: wrap;
}

.yk-forecast {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  color: var(--text);
  display: grid;
  gap: 6px;
}


.yk-info {
  margin-left: 8px;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  line-height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.yk-info--tiny {
  margin-left: 6px;
  width: 14px;
  height: 14px;
  font-size: 10px;
  line-height: 12px;
}

.yk-info--sub,
.yk-info--super {
  top: -4px;
  vertical-align: super;
}

.yk-info[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1f1a16;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 20;
  white-space: normal;
}

.yk-info[data-tooltip]::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #1f1a16 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 20;
}

.yk-info[data-tooltip]:hover::after,
.yk-info[data-tooltip]:hover::before,
.yk-info[data-tooltip]:focus-visible::after,
.yk-info[data-tooltip]:focus-visible::before {
  opacity: 1;
}

.yk-forecast > div {
  position: relative;
}

.yk-tooltip--forecast {
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 280px;
  max-width: 360px;
}

.yk-info:hover + .yk-tooltip--forecast,
.yk-info:focus + .yk-tooltip--forecast {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.yk-forecast-tooltip {
  display: grid;
  gap: 10px;
}

.yk-forecast-tooltip-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
}

.yk-forecast-legend {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.yk-forecast-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yk-forecast-legend-swatch {
  width: 12px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.yk-forecast-legend-swatch--reviews {
  background: linear-gradient(140deg, #7fa6e8, #4c7ad8);
}

.yk-forecast-legend-swatch--minutes {
  background: linear-gradient(140deg, #f39c6b, #f0c17b);
}

.yk-forecast-rows {
  display: grid;
  gap: 8px;
}

.yk-forecast-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
}

.yk-forecast-day {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.yk-forecast-bars {
  display: grid;
  gap: 4px;
}

.yk-forecast-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.yk-forecast-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  transform-origin: left;
  border-radius: 999px;
}

.yk-forecast-bar--reviews::after {
  width: var(--reviews-pct, 0%);
  background: linear-gradient(140deg, #7fa6e8, #4c7ad8);
}

.yk-forecast-bar--minutes::after {
  width: var(--minutes-pct, 0%);
  background: linear-gradient(140deg, #f39c6b, #f0c17b);
}

.yk-forecast-values {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.yk-forecast-values strong {
  color: #fff;
}

.yk-btn {
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.yk-keycap {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(46, 42, 74, 0.3);
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.yk-shortcuts-visible .yk-keycap {
  opacity: 1;
  transform: translateY(0);
}

[data-shortcut-key] {
  position: relative;
}

[data-shortcut-key] .yk-keycap {
  position: absolute;
  top: -10px;
  right: -10px;
}

.yk-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 26px rgba(46, 42, 74, 0.2);
}

.yk-btn-secondary {
  background: rgba(44, 140, 132, 0.12);
  color: var(--teal);
  border: 1px solid rgba(44, 140, 132, 0.22);
}

.yk-btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(46, 42, 74, 0.25);
}

.yk-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.yk-banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(46, 42, 74, 0.06);
  font-weight: 650;
  line-height: 1.45;
}

.yk-banner a {
  color: inherit;
}

.yk-banner--vacation {
  border-color: rgba(212, 106, 94, 0.35);
  background: rgba(212, 106, 94, 0.09);
}

.yk-onboarding-panel {
  margin-top: 14px;
  padding: 22px;
  min-height: 0;
}

.yk-onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.yk-onboarding-step {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 850;
  color: var(--muted);
}

.yk-onboarding-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.yk-onboarding-desc {
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.yk-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.yk-onboarding-foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.yk-onboarding-skip,
.yk-onboarding-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 999px;
}

.yk-onboarding-skip:hover,
.yk-onboarding-close:hover {
  background: rgba(17, 14, 12, 0.06);
  color: var(--text);
}

.yk-message {
  margin-top: 12px;
  font-weight: 600;
}

.yk-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid rgba(44, 140, 132, 0.35);
  box-shadow:
    0 0 0 6px rgba(44, 140, 132, 0.08),
    0 16px 36px rgba(17, 14, 12, 0.2);
  z-index: 1000;
}

.yk-toast--success {
  background: #2c8c84;
  color: #fff;
}

.yk-toast--loading {
  background: #2e2a4a;
  color: #fff;
}

.yk-toast--error {
  background: #d46a5e;
  color: #fff;
}

.yk-review {
  display: none;
}

.yk-review-shell {
  display: grid;
  gap: 16px;
}

.yk-review-card {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}

.yk-review-card-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.yk-review-card > .yk-review-hero {
  border-radius: 0;
}

.yk-review-hero {
  padding: 36px 24px;
  border-radius: 18px;
  color: #fff;
  position: relative;
}

.yk-review-hero--english {
  background: linear-gradient(120deg, rgba(46, 42, 74, 0.95), rgba(62, 56, 92, 0.95));
}

.yk-review-hero--kana {
  background: linear-gradient(120deg, rgba(180, 82, 72, 0.95), rgba(212, 106, 94, 0.95));
}

.yk-review-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.yk-review-hero-stats {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.yk-review-char-big {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: var(--yk-font-weight-glyph-ui);
  text-align: center;
  margin-top: 16px;
  min-height: clamp(96px, 14vw, 156px);
  font-family: var(--yk-font-glyph-ui);
  color: #fff;
}

.yk-review-char-big .yk-context-sentence {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  font-family: var(--yk-font-glyph-ui);
  line-height: 1.6;
}

.yk-context-token {
  position: relative;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
}

.yk-context-gloss-bubble {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -8px);
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  line-height: 1.35;
  z-index: 5;
  min-width: 160px;
  max-width: 260px;
  text-align: left;
  animation: yk-context-bubble-fade 5s ease forwards;
}

.yk-context-gloss-row {
  display: block;
  white-space: nowrap;
}

.yk-context-gloss-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #fff;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

@keyframes yk-context-bubble-fade {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.yk-context-token--target {
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.yk-context-token--locked {
  cursor: default;
  pointer-events: none;
}

.yk-review-hero .yk-context-token--target {
  color: #fff;
}

.yk-context-help {
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.yk-context-gloss {
  margin: 10px auto 0;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.yk-review-prompt {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.yk-review-input-wrap {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.yk-review-input {
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  background: transparent;
}

.yk-review-input:disabled {
  background: transparent;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.yk-review-arrow {
  font-size: 22px;
  color: var(--muted);
  pointer-events: none;
}

.yk-review-input--correct {
  border-color: rgba(44, 140, 132, 0.6);
  background: rgba(219, 247, 229, 0.8);
}

.yk-review-input--incorrect {
  border-color: rgba(212, 106, 94, 0.7);
  background: rgba(255, 224, 222, 0.9);
}

.yk-review-input--near {
  border-color: rgba(241, 200, 109, 0.7);
  background: rgba(255, 233, 199, 0.9);
}

.yk-review-input--warning {
  border-color: rgba(241, 200, 109, 0.7);
  background: rgba(255, 241, 219, 0.9);
}

.yk-review-expected {
  font-size: 15px;
  font-weight: 700;
  color: #2d2a34;
  text-align: center;
}

.yk-review-expected--incorrect {
  color: #b01b10;
}

.yk-review-expected--near {
  color: #6b4a1d;
}

.yk-review-compare {
  margin-top: 10px;
}

.yk-review-compare-row {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.yk-review-compare-loading {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.yk-review-compare-toggle {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.yk-review-compare-toggle:hover {
  color: #2d2a34;
}

.yk-review-compare-row.is-collapsed .yk-review-compare-grid {
  display: none;
}

.yk-review-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  max-width: 920px;
}

.yk-review-compare-card {
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  border: 2px solid transparent;
  background: #fff;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 160px;
  position: relative;
}

.yk-review-compare-card.yk-audio-click {
  cursor: pointer;
}

.yk-review-compare-card--asked {
  border-color: rgba(79, 164, 109, 0.8);
  background: rgba(220, 245, 229, 0.7);
}

.yk-review-compare-card--answer {
  border-color: rgba(212, 106, 94, 0.8);
  background: rgba(255, 228, 226, 0.7);
}

.yk-review-compare-card--diff {
  border: 2px solid rgba(120, 120, 120, 0.3);
  background: #fff;
  padding: 12px;
}

.yk-review-compare-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #2d2a34;
}

.yk-review-compare-card-label--diff {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.yk-review-compare-card-char {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.yk-review-compare-card-meaning {
  font-size: 18px;
  font-weight: 700;
  color: #3a3442;
}

.yk-review-compare-audio-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  opacity: 0.5;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a322c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15 9a4 4 0 0 1 0 6'/%3E%3Cpath d='M19 5a8 8 0 0 1 0 14'/%3E%3C/svg%3E");
}

.yk-review-compare-diff {
  position: relative;
  width: min(100%, 260px);
  height: clamp(120px, 18vw, 180px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.yk-review-compare-diff.is-length-mismatch {
  justify-items: start;
  padding-left: 6px;
}

.yk-review-compare-diff-char {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.6;
}

.yk-review-compare-diff.is-length-mismatch .yk-review-compare-diff-char {
  place-items: center start;
  text-align: left;
}

.yk-review-compare-diff-char--correct {
  color: #2c8c84;
}

.yk-review-compare-diff-char--wrong {
  color: #d46a5e;
  mix-blend-mode: multiply;
}

@media (max-width: 880px) {
  .yk-review-compare-grid {
    grid-template-columns: 1fr;
  }
  .yk-review-compare-card--diff {
    order: -1;
  }
}

.yk-review-toast {
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
}

.yk-review-toast--incorrect {
  background: rgba(212, 106, 94, 0.15);
  color: #7b2c25;
}

.yk-review-toast--near {
  background: rgba(241, 200, 109, 0.2);
  color: #6b4a1d;
}

.yk-review-toast--correct {
  background: rgba(44, 140, 132, 0.15);
  color: #1f4b45;
}

.yk-review-toast--warning {
  background: rgba(241, 200, 109, 0.2);
  color: #6b4a1d;
}

.yk-review-warning {
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px dashed rgba(212, 106, 94, 0.4);
  background: rgba(255, 234, 232, 0.8);
  color: #7b2c25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yk-review-warning-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.yk-review-warning .yk-info {
  margin-left: 0;
}

.yk-tooltip--review-warning {
  top: calc(100% + 6px);
  right: 0;
  width: 640px;
  max-width: calc(100vw - 32px);
}

.yk-review-warning-help:hover .yk-tooltip--review-warning,
.yk-review-warning-help:focus-within .yk-tooltip--review-warning {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.yk-review-warning--warning {
  border-color: rgba(241, 200, 109, 0.5);
  background: rgba(255, 241, 219, 0.9);
  color: #6b4a1d;
}

.yk-review-warning--near {
  border-color: rgba(241, 200, 109, 0.5);
  background: rgba(255, 241, 219, 0.9);
  color: #6b4a1d;
}

@keyframes yk-review-shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
  }
}

.yk-review-input-wrap.is-shaking {
  animation: yk-review-shake 0.4s ease;
}

.yk-review-help {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.yk-review-help-wrap {
  min-height: 32px;
  display: grid;
  gap: 6px;
  align-items: center;
}

.yk-review-help--hint {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.yk-review-help--hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.yk-review-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  align-self: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 14, 12, 0.08);
}

.yk-review-info-toggle-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yk-review-info-toggle-meta-label {
  opacity: 0.7;
}

.yk-review-info-toggle .yk-meaning-scope-badge {
  opacity: 0.85;
}

.yk-review-info-input:not(:checked) + .yk-review-info-toggle + .yk-review-info {
  display: none;
}

.yk-review-info-input:checked + .yk-review-info-toggle {
  background: rgba(44, 140, 132, 0.12);
  border-color: rgba(44, 140, 132, 0.45);
}

.yk-review-complete {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

.yk-review-complete-card {
  max-width: 520px;
  width: 100%;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.yk-review-complete-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.yk-review-complete-subtitle {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.yk-review-complete-meta {
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}

.yk-review-complete-actions {
  margin-top: 16px;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.yk-review-complete-actions .yk-btn {
  font-size: 14px;
  text-decoration: none;
}

.yk-review-complete-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.yk-achievement-embed {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(44, 140, 132, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(44, 140, 132, 0.2);
}

.yk-achievement-embed .yk-achievement-toast-header {
  text-align: left;
  font-size: 15px;
}

.yk-achievement-embed .yk-achievement-toast-intro {
  text-align: left;
}

.yk-achievement-embed .yk-achievement-toast-actions {
  justify-content: center;
}

.yk-review-info {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.yk-review-info--layout3 .yk-review-info-title {
  margin-bottom: 10px;
}

.yk-review-info--layout3 .yk-info-layout3-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.yk-review-info--layout3 .yk-info-layout3-header-left {
  flex: 1;
  min-width: 0;
}

.yk-review-info--layout3 .yk-info-layout3-type-styles {
  margin-bottom: 8px;
}

.yk-review-info--layout3 .yk-info-layout3-meanings {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

.yk-review-info--layout3 .yk-info-layout3-header-right {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
}

.yk-review-info--layout3 .yk-info-layout3-meta-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yk-review-info--layout3 .yk-info-layout3-meta-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.yk-review-info--layout3 .yk-info-layout3-readings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.yk-review-info--layout3 .yk-reading-chip {
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: none;
  background: rgba(46, 42, 74, 0.06);
  border-color: rgba(46, 42, 74, 0.14);
  font-size: 14px;
}

.yk-review-info--layout3 .yk-reading-chip:hover,
.yk-review-info--layout3 .yk-reading-chip:focus-visible {
  transform: none;
  box-shadow: none;
  border-color: rgba(76, 62, 172, 0.5);
}

.yk-review-info--layout3 .yk-reading-type {
  order: 0;
}

.yk-review-info--layout3 .yk-reading-text {
  order: 1;
}

.yk-review-info--layout3 .yk-reading-audio-icon {
  order: 2;
}

.yk-review-info--layout3 .yk-info-layout3-section {
  margin-bottom: 14px;
}

.yk-review-info--layout3 .yk-info-layout3-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--brand);
}

.yk-review-info--layout3 .yk-info-layout3-section-title--reading {
  color: var(--teal);
}

.yk-review-info--layout3 .yk-info-layout3-section-title--meta {
  color: var(--muted);
}

.yk-review-info--layout3 .yk-info-layout3-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.92;
  font-weight: 600;
}

.yk-review-info--layout3 .yk-info-layout3-horizontal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.yk-review-info--layout3 .yk-info-layout3-mini {
  font-size: 13px;
  display: grid;
  gap: 8px;
}

.yk-review-info--layout3 .yk-info-layout3-mini--wide {
  grid-column: 1 / -1;
}

.yk-review-info--layout3 .yk-info-layout3-mini-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 600px) {
  .yk-review-info--layout3 .yk-info-layout3-header {
    flex-direction: column;
  }

  .yk-review-info--layout3 .yk-info-layout3-header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .yk-review-info--layout3 .yk-info-layout3-horizontal {
    grid-template-columns: 1fr;
  }
}

.yk-lesson-info {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.yk-review-info-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.yk-review-context {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
  margin-bottom: 16px;
}

.yk-review-context-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.yk-review-context-grid {
  display: grid;
  gap: 10px;
}

.yk-review-context-row {
  display: grid;
  gap: 6px;
}

.yk-review-context-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.yk-review-info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.yk-review-info-section {
  display: grid;
  gap: 6px;
}

.yk-review-info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.yk-review-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.yk-review-info-empty {
  font-size: 13px;
  color: var(--muted);
}

.yk-review-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yk-review-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.yk-review-chip-synonym {
  gap: 8px;
}

.yk-review-synonyms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yk-synonym-remove {
  border: none;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}

.yk-synonym-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.yk-synonym-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.yk-synonym-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yk-synonym-error {
  color: var(--coral);
}

.yk-review-chip-char {
  font-weight: 700;
}

.yk-review-chip-meaning {
  color: var(--muted);
  font-weight: 500;
}

.yk-review-usage-list {
  display: grid;
  gap: 8px;
}

.yk-review-usage {
  border-radius: 10px;
  background: rgba(46, 42, 74, 0.06);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.yk-review-usage-ja {
  font-size: 14px;
  font-weight: 600;
}

.yk-review-usage-en {
  font-size: 12px;
  color: var(--muted);
}

.yk-audio-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(17, 14, 12, 0.06);
}

.yk-audio-click {
  cursor: pointer;
}

.yk-audio-btn[disabled],
.yk-audio-btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.yk-audio-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a322c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15 9a4 4 0 0 1 0 6'/%3E%3Cpath d='M19 5a8 8 0 0 1 0 14'/%3E%3C/svg%3E");
}

.yk-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  flex-direction: row;
}

.yk-toggle-text {
  display: grid;
  gap: 4px;
  flex: 1;
}

.yk-toggle input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin: 0;
}

.yk-lesson-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
  box-sizing: border-box;
  border-radius: var(--r-xl);
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(44, 140, 132, 0.12), transparent 60%),
    radial-gradient(900px 260px at 100% 100%, rgba(46, 42, 74, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  position: relative;
}

.yk-overlay {
  position: absolute;
  inset: 0;
  background: rgba(251, 248, 243, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.4px;
  border-radius: var(--r-xl);
  z-index: 4;
}

.yk-lesson-card {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.yk-lesson-top {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(251, 248, 243, 0.55);
}

.yk-lesson-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yk-lesson-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin: 0;
}

.yk-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(17, 14, 12, 0.08);
}

.yk-home-link .yk-keycap {
  margin: 0;
}

.yk-session-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

.yk-session-header,
.yk-review-panel,
.yk-lesson-shell {
  grid-row: 1;
}

.yk-session-header {
  grid-column: 1;
  align-items: flex-start;
}

.yk-review-panel,
.yk-lesson-shell {
  grid-column: 2;
  justify-self: center;
}

.yk-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(251, 248, 243, 0.75);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
}

.yk-pill-plain {
  text-transform: none;
  letter-spacing: 0.2px;
}

.yk-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(44, 140, 132, 0.12);
}

.yk-lesson-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px 20px;
}

.yk-lesson-tabs {
  display: inline-flex;
  gap: 8px;
  justify-self: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  grid-column: 1 / -1;
}

.yk-lesson-tab {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.yk-lesson-tab.is-active {
  background: var(--brand);
  color: #fff;
}

.yk-lesson-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  grid-column: 1 / -1;
}

.yk-big-char {
  font-size: 88px;
  line-height: 1;
  margin: 10px 0;
  color: var(--brand);
  letter-spacing: 2px;
  font-family: var(--yk-font-glyph-primary, var(--yk-font-glyph-ui));
  font-weight: var(--yk-font-weight-glyph-primary, var(--yk-font-weight-glyph-ui));
}

.yk-big-char--stroke-order {
  width: clamp(120px, 28vw, 190px);
  font-size: 16px;
  letter-spacing: 0;
  color: inherit;
  font-family: inherit;
}

.yk-stroke-order-panel--lesson {
  position: relative;
  width: 100%;
}

.yk-stroke-order-panel--lesson .yk-stroke-order-canvas {
  border: none;
  background: transparent;
  border-radius: 0;
}

.yk-stroke-order-panel--lesson .yk-stroke-order-play {
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-size: 12px;
  padding: 6px 10px;
}

.yk-stroke-order-panel--lesson .yk-stroke-order-fallback {
  display: none;
}

.yk-stroke-order-lesson-fallback-glyph {
  font-size: 88px;
  line-height: 1;
  color: var(--brand);
  letter-spacing: 2px;
  font-family: var(--yk-font-glyph-primary, var(--yk-font-glyph-ui));
  font-weight: var(--yk-font-weight-glyph-primary, var(--yk-font-weight-glyph-ui));
}

.yk-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.yk-session-wrap,
.yk-subject-detail {
  --yk-font-glyph-primary: var(--yk-font-glyph-ui);
  --yk-font-weight-glyph-primary: var(--yk-font-weight-glyph-ui);
  --yk-font-glyph-secondary: var(--yk-font-glyph-print);
  --yk-font-weight-glyph-secondary: var(--yk-font-weight-glyph-print);
}

html[data-yk-glyph-font="ui"] .yk-session-wrap,
html[data-yk-glyph-font="ui"] .yk-subject-detail {
  --yk-font-glyph-primary: var(--yk-font-glyph-ui);
  --yk-font-weight-glyph-primary: var(--yk-font-weight-glyph-ui);
  --yk-font-glyph-secondary: var(--yk-font-glyph-print);
  --yk-font-weight-glyph-secondary: var(--yk-font-weight-glyph-print);
}

html[data-yk-glyph-font="print"] .yk-session-wrap,
html[data-yk-glyph-font="print"] .yk-subject-detail {
  --yk-font-glyph-primary: var(--yk-font-glyph-print);
  --yk-font-weight-glyph-primary: var(--yk-font-weight-glyph-print);
  --yk-font-glyph-secondary: var(--yk-font-glyph-ui);
  --yk-font-weight-glyph-secondary: var(--yk-font-weight-glyph-ui);
}

html[data-yk-glyph-font="rounded"] .yk-session-wrap,
html[data-yk-glyph-font="rounded"] .yk-subject-detail {
  --yk-font-glyph-primary: var(--yk-font-glyph-rounded);
  --yk-font-weight-glyph-primary: var(--yk-font-weight-glyph-rounded);
  --yk-font-glyph-secondary: var(--yk-font-glyph-print);
  --yk-font-weight-glyph-secondary: var(--yk-font-weight-glyph-print);
}

.yk-glyph--text {
  font-family: var(--yk-font-glyph-primary, var(--yk-font-glyph-ui));
  font-weight: var(--yk-font-weight-glyph-primary, var(--yk-font-weight-glyph-ui));
}

.yk-font-toggle-ui-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.yk-font-toggle-ui-print-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yk-font-toggle-ui-print--with-info {
  padding: 32px;
  margin: -32px;
}

.yk-font-toggle-ui-print.yk-font-toggle-ui-print--active .yk-glyph--text {
  font-family: var(--yk-font-glyph-secondary, var(--yk-font-glyph-print));
  font-weight: var(--yk-font-weight-glyph-secondary, var(--yk-font-weight-glyph-print));
}

.yk-font-toggle-ui-print-info {
  position: absolute;
  top: -8px;
  right: -10px;
  margin-left: 0;
  z-index: 2;
}

.yk-font-toggle-ui-print--with-info .yk-font-toggle-ui-print-info {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .yk-font-toggle-ui-print:hover .yk-glyph--text {
    font-family: var(--yk-font-glyph-secondary, var(--yk-font-glyph-print));
    font-weight: var(--yk-font-weight-glyph-secondary, var(--yk-font-weight-glyph-print));
  }

  .yk-font-toggle-ui-print--with-info .yk-font-toggle-ui-print-info {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px) scale(0.95);
    transition: opacity 0.12s ease, transform 0.12s ease;
  }

  .yk-font-toggle-ui-print--with-info:hover .yk-font-toggle-ui-print-info,
  .yk-font-toggle-ui-print--with-info:focus-within .yk-font-toggle-ui-print-info {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

.yk-glyph--svg .yk-glyph-svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yk-type-style-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.yk-type-style-row--inline {
  align-items: center;
  gap: 12px;
}

.yk-type-style-row--inline .yk-type-style-item {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  gap: 6px;
}

.yk-type-style-row--inline .yk-type-style-sample {
  font-size: 18px;
}

.yk-review-info-section--type-styles {
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 10px;
}

.yk-review-info-section--type-styles .yk-review-info-label {
  margin: 0;
}

.yk-review-info-section--type-styles .yk-review-info-value {
  margin: 0;
}

.yk-type-style-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.yk-type-style-sample {
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0;
}

.yk-type-style-sample--print {
  font-family: var(--yk-font-glyph-print);
  font-weight: var(--yk-font-weight-glyph-print);
}

.yk-type-style-sample--ui {
  font-family: var(--yk-font-glyph-ui);
  font-weight: var(--yk-font-weight-glyph-ui);
}

.yk-type-style-sample--rounded {
  font-family: var(--yk-font-glyph-rounded);
  font-weight: var(--yk-font-weight-glyph-rounded);
}

.yk-type-style-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.yk-glyph--error {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d46a5e;
  text-align: center;
  white-space: normal;
}

.yk-lesson-meaning {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 6px;
}

.yk-subrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.yk-strong {
  font-weight: 700;
}

.yk-kv {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.yk-field {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
}

.yk-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  font-weight: 700;
  color: var(--text);
}

.yk-form-field.yk-toggle {
  flex-direction: row;
  align-items: center;
}

.yk-form-label {
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.yk-form-help {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.yk-form-field input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 16px;
}

.yk-form-field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.yk-settings-card {
  display: grid;
  gap: 6px;
  background:
    linear-gradient(140deg, rgba(46, 42, 74, 0.06), rgba(44, 140, 132, 0.08)),
    var(--surface);
  border-color: rgba(46, 42, 74, 0.2);
}

.yk-setting-group {
  margin-top: 4px;
}

.yk-setting-subgroup {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 4px;
}

.yk-setting-subgroup.is-disabled {
  opacity: 0.55;
}

.yk-setting-sub .yk-form-label {
  text-transform: none;
  letter-spacing: 0.2px;
}

.yk-settings-header {
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
}

.yk-settings-header h3 {
  color: var(--brand);
}

.yk-account-section {
  padding: 10px 0 12px;
  border-top: 1px solid var(--border);
}

.yk-account-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.yk-account-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 6px 14px 12px;
  box-shadow: var(--shadow-card-soft);
}

.yk-account-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.yk-account-section-title {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text);
  opacity: 0.86;
}

.yk-account-section-hint {
  font-size: 13px;
  color: var(--muted);
}

.yk-account-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.yk-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  justify-content: flex-end;
}

.yk-account-section .yk-form-label {
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 12px;
}

.yk-account-logout {
  width: 100%;
  justify-content: center;
  background: rgba(46, 42, 74, 0.05);
  border: 1px solid rgba(46, 42, 74, 0.12);
  border-radius: 999px;
  font-weight: 700;
}

.yk-account-delete {
  width: auto;
  display: inline-flex;
  align-self: flex-start;
  justify-content: center;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 109, 98, 0.4);
  color: #b4443a;
  background: rgba(216, 109, 98, 0.08);
  font-weight: 700;
  text-decoration: none;
}

.yk-account-delete:hover,
.yk-account-delete:focus {
  background: rgba(216, 109, 98, 0.16);
}

.yk-form-field input:focus,
.yk-form-field select:focus {
  outline: none;
  border-color: rgba(44, 140, 132, 0.6);
  box-shadow: 0 0 0 2px rgba(44, 140, 132, 0.15);
}

.yk-field-k {
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 6px;
}

.yk-field-v {
  font-size: 16px;
  font-weight: 750;
}

.yk-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  width: min(320px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.yk-progress-row .yk-muted {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.yk-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(46, 42, 74, 0.1);
  overflow: hidden;
  flex: 1;
  border: 1px solid rgba(46, 42, 74, 0.12);
}

.yk-bar > div {
  height: 100%;
  background: linear-gradient(90deg, rgba(46, 42, 74, 0.85), rgba(44, 140, 132, 0.85));
  border-radius: 999px;
}

.yk-lesson-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.yk-kbd {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.yk-upcoming {
  margin-top: 16px;
  padding: 22px;
  display: grid;
  gap: 12px;
}

.yk-upcoming-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.yk-upcoming-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff3e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yk-upcoming-icon img {
  width: 48px;
  height: auto;
}

.yk-footer {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.yk-footer a {
  color: inherit;
  text-decoration: none;
}

.yk-footer a:hover {
  color: var(--brand);
}

.yk-legal {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.yk-legal h2 {
  margin-top: 0;
}

.yk-legal ul {
  padding-left: 18px;
  margin: 0;
}

.yk-help-diagnostics {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 20, 22, 0.06);
  border: 1px solid rgba(15, 20, 22, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow: auto;
}

#yk-help-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

#yk-help-copy:hover {
  background: var(--surface);
}

.yk-upcoming h3 {
  margin: 0 0 6px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
}

.yk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.yk-chip-label {
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-right: 6px;
}

.yk-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 750;
  color: #3a322c;
  box-shadow: 0 8px 16px rgba(17, 14, 12, 0.05);
}

.yk-dashboard--skeleton .yk-skeleton-chip {
  min-width: 56px;
  height: 28px;
  padding: 0;
  border-color: rgba(0, 0, 0, 0.04);
  background: linear-gradient(90deg, #f2f1ee 0%, #eceae6 45%, #f2f1ee 100%);
  background-size: 200% 100%;
  color: transparent;
  box-shadow: none;
  animation: yk-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes yk-skeleton-shimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.yk-chip-srs {
  font-size: 12px;
  padding: 6px 10px;
}

.yk-srs-chips {
  margin-top: 10px;
}

.yk-debug-panel h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.yk-debug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: flex-start;
}

.yk-debug-grid > div {
  min-width: 0;
}

.yk-debug-grid > .yk-debug-wide {
  grid-column: 1 / -1;
}

.yk-debug-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--text);
  line-height: 1.4;
}

.yk-debug-list li {
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yk-debug-list li strong {
  font-weight: 700;
}

.yk-meanings-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yk-meaning-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  box-shadow: 0 4px 10px rgba(17, 14, 12, 0.04);
}

.yk-meaning-chip--primary {
  border-color: rgba(76, 62, 172, 0.35);
  background: linear-gradient(140deg, rgba(76, 62, 172, 0.06), rgba(255, 255, 255, 0.98));
}

.yk-meaning-chip--match {
  border-color: rgba(44, 140, 132, 0.35);
  background: linear-gradient(140deg, rgba(44, 140, 132, 0.08), rgba(255, 255, 255, 0.98));
}

.yk-meaning-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
}

.yk-meaning-chip--primary .yk-meaning-badge {
  color: #4c3eac;
  background: rgba(76, 62, 172, 0.1);
}

.yk-meaning-chip--match .yk-meaning-badge {
  color: var(--teal);
  background: rgba(44, 140, 132, 0.12);
}

.yk-debug-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.yk-debug-table th,
.yk-debug-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  word-break: break-word;
}

.yk-debug-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.yk-debug-subtle {
  margin-top: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.yk-debug-spark {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.9rem;
}

.yk-ignore-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.yk-ignore-controls input {
  flex: 1 1 auto;
  min-width: 0;
}

.yk-ignore-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.yk-ignore-pill {
  padding-right: 6px;
  gap: 6px;
}

.yk-ignore-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.yk-muted {
  color: var(--muted);
}

.yk-empty {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 850;
  color: #8a817a;
}

@media (max-width: 900px) {
  .yk-detail-card--wide {
    grid-column: auto;
  }

  .yk-hero-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .yk-hero-left {
    flex-direction: column;
  }

  .yk-stats-pills {
    justify-content: center;
  }

  .yk-grid {
    grid-template-columns: 1fr;
  }

  .yk-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .yk-srs-stages {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .yk-srs-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .yk-onboarding__list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .yk-study-summary-grid {
    grid-template-columns: 1fr;
  }

  .yk-lesson-body {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .yk-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yk-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .yk-brand {
    font-size: 28px;
  }

  .yk-settings-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .yk-admin-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ---------------------------
   Theme (Light/Dark/System)
   --------------------------- */

@media (prefers-color-scheme: dark) {
  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app,
  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static {
    --bg: #0f1110;
    --surface: #151917;
    /* Stronger edge separation in dark mode (rounded corners read as rounded). */
    --border: #39403d;
    --text: #f2ede6;
    --muted: #b6ada4;
    --brand: #c8c4ff;
    --teal: #35b5ab;
    --coral: #ef7b6a;
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.3);
    --surface-soft: rgba(21, 25, 23, 0.86);
    --shadow-card: 0 14px 28px rgba(0, 0, 0, 0.42);
    --shadow-card-soft: 0 10px 18px rgba(0, 0, 0, 0.28);
  }

  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app {
    background:
      radial-gradient(1200px 500px at 50% -120px, rgba(200, 196, 255, 0.12), transparent 60%),
      radial-gradient(800px 420px at 20% 10%, rgba(53, 181, 171, 0.12), transparent 55%),
      var(--bg);
  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static {
	    background:
	      radial-gradient(1200px 500px at 50% -120px, rgba(200, 196, 255, 0.12), transparent 60%),
	      radial-gradient(800px 420px at 20% 10%, rgba(53, 181, 171, 0.12), transparent 55%),
	      var(--bg);
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-page,
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-page .wp-site-blocks,
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-page main,
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-page .wp-block-post-content {
	    background:
	      radial-gradient(1200px 500px at 50% -120px, rgba(200, 196, 255, 0.12), transparent 60%),
	      radial-gradient(800px 420px at 20% 10%, rgba(53, 181, 171, 0.12), transparent 55%),
	      #0f1110;
	    color: var(--text);
	  }

		  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-card,
		  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-panel {
		    background: var(--surface);
		    border-color: var(--border);
		  }

		  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-panel {
		    background: transparent;
		    border: none;
		    box-shadow: none;
		  }

		  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-card-soft {
		    background: var(--surface-soft);
		    border-color: var(--border);
		  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app input[type="text"],
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app input[type="email"],
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app input[type="password"],
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app input[type="search"],
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app select,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app textarea {
	    background: var(--surface);
	    color: var(--text);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app input::placeholder,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app textarea::placeholder {
	    color: rgba(242, 237, 230, 0.6);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-settings-link,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-admin-link,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-toggle {
	    background: rgba(255, 255, 255, 0.08);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-toggle:hover,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-account-menu.is-open .yk-account-toggle,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-settings-link:hover,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-settings-link.is-active,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-admin-link:hover {
	    background: rgba(255, 255, 255, 0.12);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-subjects-head {
	    background: rgba(21, 25, 23, 0.9);
	    border-bottom-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-tab,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-card,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-pill,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-chip,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-subject-card,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-subject-search-toggle {
	    background: rgba(21, 25, 23, 0.86);
	    border-color: var(--border);
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-subject-card {
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-subject-card-context {
	    /* Keep a subtle gradient, but anchor it to a dark base. */
	    background-color: rgba(21, 25, 23, 0.92);
	    background-image: linear-gradient(140deg, rgba(53, 181, 171, 0.12), rgba(21, 25, 23, 0.92));
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-subject-status {
	    color: var(--muted);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-pill-label {
	    color: var(--muted);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-pill-value {
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-tab:hover,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-pill:hover,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-chip:hover {
	    background: rgba(21, 25, 23, 0.96);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-chip {
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-chip-label,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-chip {
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-chip-label {
	    opacity: 0.8;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-settings-nav,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-lesson-tabs,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-type-style-item,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-field,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-account-card {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-lesson-tab.is-active {
	    color: #0f1110;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-reading-chip {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    color: var(--text);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-reading-audio-icon {
	    background: rgba(200, 196, 255, 0.14);
	    color: var(--brand);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-context-row {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-forecast {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-info {
	    background: rgba(242, 237, 230, 0.08);
	    border-color: rgba(242, 237, 230, 0.16);
	    color: var(--muted);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-keycap {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: rgba(242, 237, 230, 0.18);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-home-link {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-lesson-shell {
	    background:
	      radial-gradient(900px 260px at 0% 0%, rgba(53, 181, 171, 0.12), transparent 60%),
	      radial-gradient(900px 260px at 100% 100%, rgba(200, 196, 255, 0.12), transparent 55%),
	      rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-lesson-top {
	    background: rgba(15, 17, 16, 0.55);
	    border-bottom-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-pill {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-info {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-info--layout3 .yk-info-layout3-header {
	    border-bottom-color: rgba(242, 237, 230, 0.12);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-overlay {
	    background: rgba(15, 17, 16, 0.82);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-coachmark {
	    background: rgba(21, 25, 23, 0.96);
	    border-color: var(--border);
	    box-shadow: var(--shadow-card);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-coachmark__arrow {
	    background: rgba(21, 25, 23, 0.96);
	    border-left-color: var(--border);
	    border-top-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-complete-card {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-embed {
	    background: linear-gradient(140deg, rgba(53, 181, 171, 0.14), rgba(21, 25, 23, 0.94));
	    border-color: rgba(53, 181, 171, 0.18);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-prompt,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-input-wrap,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-context-gloss {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-prompt {
	    color: var(--muted);
	  }

  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-input {
    color: var(--text);
  }

  /* The review input is visually "inside" the rounded wrapper; keep it transparent so we don't
     render a second inner box from generic dark-mode input theming. */
  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-input-wrap input.yk-review-input {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-input--correct {
	    border-color: rgba(53, 181, 171, 0.55);
	    background: rgba(53, 181, 171, 0.14);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-input--incorrect {
	    border-color: rgba(239, 123, 106, 0.6);
	    background: rgba(239, 123, 106, 0.14);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-input--near,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-input--warning {
	    border-color: rgba(241, 200, 109, 0.6);
	    background: rgba(241, 200, 109, 0.14);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-expected {
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-expected--incorrect {
	    color: var(--coral);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-expected--near {
	    color: #f1c86d;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-toggle {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    color: var(--muted);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-toggle:hover {
	    color: var(--text);
	    background: rgba(21, 25, 23, 0.98);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-card {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: rgba(255, 255, 255, 0.08);
	    color: var(--text);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-card--asked {
	    border-color: rgba(53, 181, 171, 0.45);
	    background: linear-gradient(140deg, rgba(53, 181, 171, 0.18), rgba(21, 25, 23, 0.92));
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-card--answer {
	    border-color: rgba(239, 123, 106, 0.45);
	    background: linear-gradient(140deg, rgba(239, 123, 106, 0.14), rgba(21, 25, 23, 0.92));
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-card--diff {
	    border-color: rgba(242, 237, 230, 0.16);
	    background: rgba(21, 25, 23, 0.92);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-card-label {
	    color: var(--muted);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-card-meaning {
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-audio-icon {
	    filter: invert(1) brightness(1.1);
	    opacity: 0.7;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-compare-diff-char--wrong {
	    mix-blend-mode: normal;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-context-gloss-bubble {
	    background: rgba(21, 25, 23, 0.96);
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-context-gloss-bubble::after {
	    border-top-color: rgba(21, 25, 23, 0.96);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-sync-indicator {
	    background: rgba(242, 237, 230, 0.08);
	    border-color: rgba(242, 237, 230, 0.16);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievements-hero,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-group,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-toast {
	    background: linear-gradient(135deg, rgba(200, 196, 255, 0.12), rgba(21, 25, 23, 0.92));
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-toast-item,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-embed .yk-achievement-toast-item {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: rgba(242, 237, 230, 0.12);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-group {
	    background: rgba(21, 25, 23, 0.9);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-card {
	    border-color: rgba(255, 255, 255, 0.08);
	    background:
	      radial-gradient(120px 120px at 10% 0%, rgba(53, 181, 171, 0.12), transparent 70%),
	      linear-gradient(135deg, rgba(21, 25, 23, 0.98), rgba(21, 25, 23, 0.86));
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-achievement-meta {
	    background: rgba(242, 237, 230, 0.08);
	    color: var(--muted);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-dashboard .yk-card {
	    background: var(--surface);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-dashboard .yk-card-soft {
	    background: var(--surface-soft);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-overview-row {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-overview-symbol {
	    background: rgba(242, 237, 230, 0.08);
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-overview-current {
	    background: rgba(53, 181, 171, 0.18);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-locked,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-status-locked {
	    background: rgba(242, 237, 230, 0.06);
	    color: rgba(242, 237, 230, 0.55);
	    border-color: rgba(242, 237, 230, 0.14);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-lesson,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-status-lesson {
	    background: rgba(241, 200, 109, 0.14);
	    color: #f1c86d;
	    border-color: rgba(241, 200, 109, 0.35);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-review,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-status-review {
	    background: rgba(127, 166, 232, 0.14);
	    color: rgba(200, 196, 255, 0.95);
	    border-color: rgba(127, 166, 232, 0.35);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-level-burned,
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-status-burned {
	    background: rgba(111, 197, 143, 0.14);
	    color: rgba(242, 237, 230, 0.9);
	    border-color: rgba(111, 197, 143, 0.35);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-stats-hero {
	    background: linear-gradient(135deg, rgba(21, 25, 23, 0.96), rgba(15, 17, 16, 0.98));
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-stat-mini {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-stage-item {
	    background: #141816;
	    border: 1px solid rgba(255, 255, 255, 0.06);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-stage-bar {
	    background: rgba(255, 255, 255, 0.1);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-stage-count {
	    color: var(--brand);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-stage-count.is-zero {
	    color: rgba(242, 237, 230, 0.55);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-stage-name {
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-srs-summary-label {
	    color: var(--muted);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-srs-summary-value {
	    color: var(--text);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-typeface-card {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-typeface-preview {
	    border-color: var(--border);
	    background: rgba(15, 17, 16, 0.6);
	  }

	  /* Use our own focus rings in dark mode (native outlines can appear square). */
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn:focus-visible {
	    outline: none;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-outline {
	    border-color: rgba(242, 237, 230, 0.46);
	    background: rgba(242, 237, 230, 0.03);
	    color: var(--text);
	    box-shadow: inset 0 0 0 1px rgba(242, 237, 230, 0.14);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-outline:hover {
	    background: rgba(242, 237, 230, 0.06);
	    border-color: rgba(242, 237, 230, 0.58);
	    box-shadow: inset 0 0 0 1px rgba(242, 237, 230, 0.22);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-outline:focus-visible {
	    background: rgba(242, 237, 230, 0.06);
	    border-color: rgba(242, 237, 230, 0.58);
	    box-shadow:
	      0 0 0 4px var(--flash-ring),
	      inset 0 0 0 1px rgba(242, 237, 230, 0.22);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-due-pill {
	    border-color: rgba(200, 196, 255, 0.42);
	    background: rgba(200, 196, 255, 0.06);
	    color: var(--text);
	    box-shadow: inset 0 0 0 1px rgba(200, 196, 255, 0.16);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-streak-day {
	    background: rgba(242, 237, 230, 0.07);
	    color: rgba(242, 237, 230, 0.72);
	    border: 1px solid rgba(242, 237, 230, 0.14);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-streak-day.is-active {
	    background: rgba(53, 181, 171, 0.28);
	    color: #f2ede6;
	    border-color: rgba(53, 181, 171, 0.5);
	    box-shadow: inset 0 0 0 1px rgba(15, 17, 16, 0.12);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-streak-day.is-today {
	    border-color: rgba(53, 181, 171, 0.5);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-secondary {
	    background: rgba(53, 181, 171, 0.16);
	    border-color: rgba(53, 181, 171, 0.34);
	    color: rgba(242, 237, 230, 0.96);
	    box-shadow: inset 0 0 0 1px rgba(53, 181, 171, 0.16);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-secondary:hover {
	    background: rgba(53, 181, 171, 0.22);
	    border-color: rgba(53, 181, 171, 0.42);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-secondary:focus-visible {
	    background: rgba(53, 181, 171, 0.22);
	    border-color: rgba(53, 181, 171, 0.42);
	    box-shadow:
	      0 0 0 4px var(--flash-ring),
	      inset 0 0 0 1px rgba(53, 181, 171, 0.16);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-primary {
	    background-color: var(--brand);
	    background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.08));
	    color: #0f1110;
	    border: 1px solid rgba(200, 196, 255, 0.55);
	    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-primary:hover {
	    background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.06));
	    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-btn-primary:focus-visible {
	    box-shadow:
	      0 0 0 4px var(--flash-ring),
	      0 18px 34px rgba(0, 0, 0, 0.38),
	      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	  }

	  /* Make the end-of-session CTA read as an actionable primary button. */
	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-complete-actions .yk-btn {
	    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, background-image 0.12s ease;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) #yomikamo-app .yk-review-complete-actions .yk-btn:hover {
	    transform: translateY(-1px);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark).yk-page-loading-active body::before {
	    background: rgba(15, 17, 16, 0.72);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark).yk-page-loading-active body::after {
	    border-color: rgba(200, 196, 255, 0.18);
	    border-top-color: rgba(200, 196, 255, 0.92);
	    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-dashboard--skeleton .yk-skeleton-chip {
	    border-color: rgba(255, 255, 255, 0.06);
	    background: linear-gradient(90deg, #1a1f1d 0%, #141816 45%, #1a1f1d 100%);
	    background-size: 200% 100%;
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-guarantees {
	    --yk-ink: var(--text);
	    --yk-slate: var(--muted);
	    --yk-cream: var(--surface);
	    --yk-paprika: var(--coral);
	    --yk-amber: #f1c86d;
	    --yk-moss: var(--teal);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-guarantees-hero {
	    background:
	      radial-gradient(140% 90% at 5% 10%, rgba(241, 200, 109, 0.14), transparent 55%),
	      linear-gradient(135deg, rgba(21, 25, 23, 0.92) 0%, rgba(15, 17, 16, 0.98) 100%);
	    border-bottom-color: rgba(255, 255, 255, 0.08);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-guarantees-grid article,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-guarantees-panel,
	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-guarantees-steps li {
	    background: rgba(21, 25, 23, 0.92);
	    border-color: var(--border);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) .yk-guarantees-badges span {
	    background: rgba(53, 181, 171, 0.12);
	    color: var(--teal);
	  }

	  /* Static content pages (Terms/Legal/Help/Privacy) are Gutenberg-rendered and can include
	     blocks with light backgrounds. In dark mode, force those blocks back onto our surfaces
	     so paragraphs never end up light-on-light. */
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static .yk-public-content .wp-block-group,
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static .yk-public-content .wp-block-columns,
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static .yk-public-content .wp-block-column,
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static .yk-public-content .wp-block-post-content {
	    color: var(--text);
	    background: transparent;
	  }
	
	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static .yk-public-content {
	    color: var(--text);
	    background: rgba(21, 25, 23, 0.92);
	    border: 1px solid var(--border);
	    border-radius: var(--r-xl);
	    box-shadow: var(--shadow-card-soft);
	  }

	  html:not(.yk-theme-light):not(.yk-theme-dark) body.yomikamo-static .yk-public-content .has-background {
	    background-color: transparent !important;
	  }
}

html.yk-theme-dark #yomikamo-app,
html.yk-theme-dark body.yomikamo-static {
  --bg: #0f1110;
  --surface: #151917;
  /* Stronger edge separation in dark mode (rounded corners read as rounded). */
  --border: #39403d;
  --text: #f2ede6;
  --muted: #b6ada4;
  --brand: #c8c4ff;
  --teal: #35b5ab;
  --coral: #ef7b6a;
  --flash-bg: rgba(200, 196, 255, 0.1);
  --flash-ring: rgba(200, 196, 255, 0.22);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.3);
  --surface-soft: rgba(21, 25, 23, 0.86);
  --shadow-card: 0 14px 28px rgba(0, 0, 0, 0.42);
  --shadow-card-soft: 0 10px 18px rgba(0, 0, 0, 0.28);
}

html.yk-theme-dark #yomikamo-app {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(200, 196, 255, 0.12), transparent 60%),
    radial-gradient(800px 420px at 20% 10%, rgba(53, 181, 171, 0.12), transparent 55%),
    var(--bg);
}

html.yk-theme-dark body.yomikamo-static {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(200, 196, 255, 0.12), transparent 60%),
    radial-gradient(800px 420px at 20% 10%, rgba(53, 181, 171, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
}

html.yk-theme-dark body.yomikamo-page,
html.yk-theme-dark body.yomikamo-page .wp-site-blocks,
html.yk-theme-dark body.yomikamo-page main,
html.yk-theme-dark body.yomikamo-page .wp-block-post-content {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(200, 196, 255, 0.12), transparent 60%),
    radial-gradient(800px 420px at 20% 10%, rgba(53, 181, 171, 0.12), transparent 55%),
    #0f1110;
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-card,
html.yk-theme-dark #yomikamo-app .yk-panel {
  background: var(--surface);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-review-panel {
  background: transparent;
  border: none;
  box-shadow: none;
}

html.yk-theme-dark #yomikamo-app .yk-card-soft {
  background: var(--surface-soft);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app input[type="text"],
html.yk-theme-dark #yomikamo-app input[type="email"],
html.yk-theme-dark #yomikamo-app input[type="password"],
html.yk-theme-dark #yomikamo-app input[type="search"],
html.yk-theme-dark #yomikamo-app select,
html.yk-theme-dark #yomikamo-app textarea {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app input::placeholder,
html.yk-theme-dark #yomikamo-app textarea::placeholder {
  color: rgba(242, 237, 230, 0.6);
}

html.yk-theme-dark .yk-settings-link,
html.yk-theme-dark .yk-admin-link,
html.yk-theme-dark .yk-account-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

html.yk-theme-dark .yk-account-toggle:hover,
html.yk-theme-dark .yk-account-menu.is-open .yk-account-toggle,
html.yk-theme-dark .yk-settings-link:hover,
html.yk-theme-dark .yk-settings-link.is-active,
html.yk-theme-dark .yk-admin-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

html.yk-theme-dark #yomikamo-app .yk-subjects-head {
  background: rgba(21, 25, 23, 0.9);
  border-bottom-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-tab,
html.yk-theme-dark #yomikamo-app .yk-level-card,
html.yk-theme-dark #yomikamo-app .yk-level-pill,
html.yk-theme-dark #yomikamo-app .yk-chip,
html.yk-theme-dark #yomikamo-app .yk-subject-card,
html.yk-theme-dark #yomikamo-app .yk-subject-search-toggle {
  background: rgba(21, 25, 23, 0.86);
  border-color: var(--border);
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-subject-card {
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-subject-card-context {
  background-color: rgba(21, 25, 23, 0.92);
  background-image: linear-gradient(140deg, rgba(53, 181, 171, 0.12), rgba(21, 25, 23, 0.92));
}

html.yk-theme-dark #yomikamo-app .yk-subject-status {
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-pill-label {
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-pill-value {
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-tab:hover,
html.yk-theme-dark #yomikamo-app .yk-level-pill:hover,
html.yk-theme-dark #yomikamo-app .yk-chip:hover {
  background: rgba(21, 25, 23, 0.96);
}

html.yk-theme-dark #yomikamo-app .yk-chip {
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-chip-label,
html.yk-theme-dark #yomikamo-app .yk-chip {
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-chip-label {
  opacity: 0.8;
}

html.yk-theme-dark #yomikamo-app .yk-settings-nav,
html.yk-theme-dark #yomikamo-app .yk-lesson-tabs,
html.yk-theme-dark #yomikamo-app .yk-type-style-item,
html.yk-theme-dark #yomikamo-app .yk-field,
html.yk-theme-dark #yomikamo-app .yk-account-card {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-lesson-tab.is-active {
  color: #0f1110;
}

html.yk-theme-dark #yomikamo-app .yk-reading-chip {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-reading-audio-icon {
  background: rgba(200, 196, 255, 0.14);
  color: var(--brand);
}

html.yk-theme-dark #yomikamo-app .yk-context-row {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-forecast {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-info {
  background: rgba(242, 237, 230, 0.08);
  border-color: rgba(242, 237, 230, 0.16);
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-review-warning .yk-info {
  /* Review warnings use a light surface even in dark mode; keep the tiny `i` readable. */
  background: rgba(15, 17, 16, 0.86);
  border-color: rgba(15, 17, 16, 0.86);
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-keycap {
  background: rgba(21, 25, 23, 0.92);
  border-color: rgba(242, 237, 230, 0.18);
}

html.yk-theme-dark #yomikamo-app .yk-home-link {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-lesson-shell {
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(53, 181, 171, 0.12), transparent 60%),
    radial-gradient(900px 260px at 100% 100%, rgba(200, 196, 255, 0.12), transparent 55%),
    rgba(21, 25, 23, 0.92);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-lesson-top {
  background: rgba(15, 17, 16, 0.55);
  border-bottom-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-pill {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-review-info {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-review-info--layout3 .yk-info-layout3-header {
  border-bottom-color: rgba(242, 237, 230, 0.12);
}

html.yk-theme-dark #yomikamo-app .yk-overlay {
  background: rgba(15, 17, 16, 0.82);
}

html.yk-theme-dark #yomikamo-app .yk-coachmark {
  background: rgba(21, 25, 23, 0.96);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

html.yk-theme-dark #yomikamo-app .yk-coachmark__arrow {
  background: rgba(21, 25, 23, 0.96);
  border-left-color: var(--border);
  border-top-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-review-complete-card {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-achievement-embed {
  background: linear-gradient(140deg, rgba(53, 181, 171, 0.14), rgba(21, 25, 23, 0.94));
  border-color: rgba(53, 181, 171, 0.18);
}

html.yk-theme-dark #yomikamo-app .yk-review-prompt,
html.yk-theme-dark #yomikamo-app .yk-review-input-wrap,
html.yk-theme-dark #yomikamo-app .yk-context-gloss {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-review-prompt {
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-review-input {
  color: var(--text);
}

/* Prevent generic dark-mode `input[type=text]` rules from creating an inner box in the review input. */
html.yk-theme-dark #yomikamo-app .yk-review-input-wrap input.yk-review-input {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html.yk-theme-dark #yomikamo-app .yk-review-input--correct {
  border-color: rgba(53, 181, 171, 0.55);
  background: rgba(53, 181, 171, 0.14);
}

html.yk-theme-dark #yomikamo-app .yk-review-input--incorrect {
  border-color: rgba(239, 123, 106, 0.6);
  background: rgba(239, 123, 106, 0.14);
}

html.yk-theme-dark #yomikamo-app .yk-review-input--near,
html.yk-theme-dark #yomikamo-app .yk-review-input--warning {
  border-color: rgba(241, 200, 109, 0.6);
  background: rgba(241, 200, 109, 0.14);
}

html.yk-theme-dark #yomikamo-app .yk-review-expected {
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-review-expected--incorrect {
  color: var(--coral);
}

html.yk-theme-dark #yomikamo-app .yk-review-expected--near {
  color: #f1c86d;
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-toggle {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-toggle:hover {
  color: var(--text);
  background: rgba(21, 25, 23, 0.98);
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-card {
  background: rgba(21, 25, 23, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-card--asked {
  border-color: rgba(53, 181, 171, 0.45);
  background: linear-gradient(140deg, rgba(53, 181, 171, 0.18), rgba(21, 25, 23, 0.92));
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-card--answer {
  border-color: rgba(239, 123, 106, 0.45);
  background: linear-gradient(140deg, rgba(239, 123, 106, 0.14), rgba(21, 25, 23, 0.92));
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-card--diff {
  border-color: rgba(242, 237, 230, 0.16);
  background: rgba(21, 25, 23, 0.92);
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-card-label {
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-card-meaning {
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-audio-icon {
  filter: invert(1) brightness(1.1);
  opacity: 0.7;
}

html.yk-theme-dark #yomikamo-app .yk-review-compare-diff-char--wrong {
  mix-blend-mode: normal;
}

html.yk-theme-dark #yomikamo-app .yk-context-gloss-bubble {
  background: rgba(21, 25, 23, 0.96);
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-context-gloss-bubble::after {
  border-top-color: rgba(21, 25, 23, 0.96);
}

html.yk-theme-dark .yk-sync-indicator {
  background: rgba(242, 237, 230, 0.08);
  border-color: rgba(242, 237, 230, 0.16);
}

html.yk-theme-dark #yomikamo-app .yk-achievements-hero,
html.yk-theme-dark #yomikamo-app .yk-achievement-group,
html.yk-theme-dark #yomikamo-app .yk-achievement-toast {
  background: linear-gradient(135deg, rgba(200, 196, 255, 0.12), rgba(21, 25, 23, 0.92));
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-achievement-toast-item,
html.yk-theme-dark #yomikamo-app .yk-achievement-embed .yk-achievement-toast-item {
  background: rgba(21, 25, 23, 0.92);
  border-color: rgba(242, 237, 230, 0.12);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-achievement-group {
  background: rgba(21, 25, 23, 0.9);
}

html.yk-theme-dark #yomikamo-app .yk-achievement-card {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120px 120px at 10% 0%, rgba(53, 181, 171, 0.12), transparent 70%),
    linear-gradient(135deg, rgba(21, 25, 23, 0.98), rgba(21, 25, 23, 0.86));
}

html.yk-theme-dark #yomikamo-app .yk-achievement-meta {
  background: rgba(242, 237, 230, 0.08);
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-dashboard .yk-card {
  background: var(--surface);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-dashboard .yk-card-soft {
  background: var(--surface-soft);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark #yomikamo-app .yk-level-overview-row {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-level-overview-symbol {
  background: rgba(242, 237, 230, 0.08);
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-level-overview-current {
  background: rgba(53, 181, 171, 0.18);
}

html.yk-theme-dark #yomikamo-app .yk-level-locked,
html.yk-theme-dark #yomikamo-app .yk-status-locked {
  background: rgba(242, 237, 230, 0.06);
  color: rgba(242, 237, 230, 0.55);
  border-color: rgba(242, 237, 230, 0.14);
}

html.yk-theme-dark #yomikamo-app .yk-level-lesson,
html.yk-theme-dark #yomikamo-app .yk-status-lesson {
  background: rgba(241, 200, 109, 0.14);
  color: #f1c86d;
  border-color: rgba(241, 200, 109, 0.35);
}

html.yk-theme-dark #yomikamo-app .yk-level-review,
html.yk-theme-dark #yomikamo-app .yk-status-review {
  background: rgba(127, 166, 232, 0.14);
  color: rgba(200, 196, 255, 0.95);
  border-color: rgba(127, 166, 232, 0.35);
}

html.yk-theme-dark #yomikamo-app .yk-level-burned,
html.yk-theme-dark #yomikamo-app .yk-status-burned {
  background: rgba(111, 197, 143, 0.14);
  color: rgba(242, 237, 230, 0.9);
  border-color: rgba(111, 197, 143, 0.35);
}

html.yk-theme-dark #yomikamo-app .yk-stats-hero {
  background: linear-gradient(135deg, rgba(21, 25, 23, 0.96), rgba(15, 17, 16, 0.98));
}

html.yk-theme-dark #yomikamo-app .yk-stat-mini {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-stage-item {
  background: #141816;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html.yk-theme-dark #yomikamo-app .yk-stage-bar {
  background: rgba(255, 255, 255, 0.1);
}

html.yk-theme-dark #yomikamo-app .yk-stage-count {
  color: var(--brand);
}

html.yk-theme-dark #yomikamo-app .yk-stage-count.is-zero {
  color: rgba(242, 237, 230, 0.55);
}

html.yk-theme-dark #yomikamo-app .yk-stage-name {
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-srs-summary-label {
  color: var(--muted);
}

html.yk-theme-dark #yomikamo-app .yk-srs-summary-value {
  color: var(--text);
}

html.yk-theme-dark #yomikamo-app .yk-typeface-card {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
}

html.yk-theme-dark #yomikamo-app .yk-typeface-preview {
  border-color: var(--border);
  background: rgba(15, 17, 16, 0.6);
}

/* Use our own focus rings in dark mode (native outlines can appear square). */
html.yk-theme-dark #yomikamo-app .yk-btn:focus-visible {
  outline: none;
}

html.yk-theme-dark #yomikamo-app .yk-btn-outline {
  border-color: rgba(242, 237, 230, 0.46);
  background: rgba(242, 237, 230, 0.03);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(242, 237, 230, 0.14);
}

html.yk-theme-dark #yomikamo-app .yk-btn-outline:hover {
  background: rgba(242, 237, 230, 0.06);
  border-color: rgba(242, 237, 230, 0.58);
  box-shadow: inset 0 0 0 1px rgba(242, 237, 230, 0.22);
}

html.yk-theme-dark #yomikamo-app .yk-btn-outline:focus-visible {
  background: rgba(242, 237, 230, 0.06);
  border-color: rgba(242, 237, 230, 0.58);
  box-shadow:
    0 0 0 4px var(--flash-ring),
    inset 0 0 0 1px rgba(242, 237, 230, 0.22);
}

html.yk-theme-dark #yomikamo-app .yk-review-due-pill {
  border-color: rgba(200, 196, 255, 0.42);
  background: rgba(200, 196, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(200, 196, 255, 0.16);
}

html.yk-theme-dark #yomikamo-app .yk-streak-day {
  background: rgba(242, 237, 230, 0.07);
  color: rgba(242, 237, 230, 0.72);
  border: 1px solid rgba(242, 237, 230, 0.14);
}

html.yk-theme-dark #yomikamo-app .yk-streak-day.is-active {
  background: rgba(53, 181, 171, 0.28);
  color: #f2ede6;
  border-color: rgba(53, 181, 171, 0.5);
  box-shadow: inset 0 0 0 1px rgba(15, 17, 16, 0.12);
}

html.yk-theme-dark #yomikamo-app .yk-streak-day.is-today {
  border-color: rgba(53, 181, 171, 0.5);
}

html.yk-theme-dark #yomikamo-app .yk-btn-secondary {
  background: rgba(53, 181, 171, 0.16);
  border-color: rgba(53, 181, 171, 0.34);
  color: rgba(242, 237, 230, 0.96);
  box-shadow: inset 0 0 0 1px rgba(53, 181, 171, 0.16);
}

html.yk-theme-dark #yomikamo-app .yk-btn-secondary:hover {
  background: rgba(53, 181, 171, 0.22);
  border-color: rgba(53, 181, 171, 0.42);
}

html.yk-theme-dark #yomikamo-app .yk-btn-secondary:focus-visible {
  background: rgba(53, 181, 171, 0.22);
  border-color: rgba(53, 181, 171, 0.42);
  box-shadow:
    0 0 0 4px var(--flash-ring),
    inset 0 0 0 1px rgba(53, 181, 171, 0.16);
}

html.yk-theme-dark #yomikamo-app .yk-btn-primary {
  background-color: var(--brand);
  background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.08));
  color: #0f1110;
  border: 1px solid rgba(200, 196, 255, 0.55);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

html.yk-theme-dark #yomikamo-app .yk-btn-primary:hover {
  background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.06));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

html.yk-theme-dark #yomikamo-app .yk-btn-primary:focus-visible {
  box-shadow:
    0 0 0 4px var(--flash-ring),
    0 18px 34px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Make the end-of-session CTA read as an actionable primary button. */
html.yk-theme-dark #yomikamo-app .yk-review-complete-actions .yk-btn {
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, background-image 0.12s ease;
}

html.yk-theme-dark #yomikamo-app .yk-review-complete-actions .yk-btn:hover {
  transform: translateY(-1px);
}

html.yk-theme-dark.yk-page-loading-active body::before {
  background: rgba(15, 17, 16, 0.72);
}

html.yk-theme-dark.yk-page-loading-active body::after {
  border-color: rgba(200, 196, 255, 0.18);
  border-top-color: rgba(200, 196, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

html.yk-theme-dark .yk-dashboard--skeleton .yk-skeleton-chip {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, #1a1f1d 0%, #141816 45%, #1a1f1d 100%);
  background-size: 200% 100%;
}

html.yk-theme-dark .yk-guarantees {
  --yk-ink: var(--text);
  --yk-slate: var(--muted);
  --yk-cream: var(--surface);
  --yk-paprika: var(--coral);
  --yk-amber: #f1c86d;
  --yk-moss: var(--teal);
}

html.yk-theme-dark .yk-guarantees-hero {
  background:
    radial-gradient(140% 90% at 5% 10%, rgba(241, 200, 109, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(21, 25, 23, 0.92) 0%, rgba(15, 17, 16, 0.98) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.yk-theme-dark .yk-guarantees-grid article,
html.yk-theme-dark .yk-guarantees-panel,
html.yk-theme-dark .yk-guarantees-steps li {
  background: rgba(21, 25, 23, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark .yk-guarantees-badges span {
  background: rgba(53, 181, 171, 0.12);
  color: var(--teal);
}

html.yk-theme-dark body.yomikamo-static .yk-public-content .wp-block-group,
html.yk-theme-dark body.yomikamo-static .yk-public-content .wp-block-columns,
html.yk-theme-dark body.yomikamo-static .yk-public-content .wp-block-column,
html.yk-theme-dark body.yomikamo-static .yk-public-content .wp-block-post-content {
  color: var(--text);
  background: transparent;
}

html.yk-theme-dark body.yomikamo-static .yk-public-content {
  color: var(--text);
  background: rgba(21, 25, 23, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card-soft);
}

html.yk-theme-dark body.yomikamo-static .yk-public-content .has-background {
  background-color: transparent !important;
}
