
:root { --muted:#59685f; --line:#dde3d9; }
.notebook-site-header { position:static;background:var(--paper);color:var(--ink);border-bottom:1px solid var(--line); }
.site-header-inner { max-width:1280px;padding:0 24px;margin:auto; }
.site-brand-row { display:flex;align-items:center;gap:17px;min-height:76px; }
.site-brand { display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;min-width:0; }
.site-brand-mark { display:grid;place-items:center;width:36px;height:36px;flex:none;border:1.6px solid #243b46;background:white; }
.site-brand-mark img { display:block; }
.site-brand-copy { display:grid; }
.site-brand-copy strong { font-size:16px;letter-spacing:.03em; }
.site-brand-copy small { color:var(--muted);font-size:12px; }
.site-section { border-left:1px solid var(--line);padding-left:17px;color:var(--green);font-size:21px;font-weight:700;text-decoration:none; }
.site-header-toggle { display:flex;gap:6px;align-items:center;margin-left:auto;padding:6px 9px;font-size:13px;border:0;background:transparent;white-space:nowrap; }
.site-header-toggle svg { width:14px;height:14px; }
.site-header-content { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 16px; }
.site-global-nav,.site-topic-nav { display:flex;gap:22px;align-items:center;flex-wrap:wrap; }
.site-global-nav a,.site-topic-nav a { text-decoration:none;font-size:14px; }
.site-global-nav a { color:var(--ink);font-weight:650; }
.site-global-nav a[aria-current] { color:var(--green);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px; }
.site-topic-nav { gap:8px; }
.site-topic-nav a { padding:3px 10px;background:var(--bg);border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:13px; }
.site-topic-nav a[aria-current] { color:var(--green);background:var(--soft); }
.site-global-nav a:hover,.site-topic-nav a:hover { color:var(--green);text-decoration:underline; }
.notebook-site-header[data-expanded=false] .site-brand-row { min-height:52px; }
.notebook-site-header[data-expanded=false] .site-brand-copy small { display:none; }
.notebook-site-header[data-expanded=false] .site-brand-mark { width:29px;height:29px; }
.notebook-site-header[data-expanded=false] .site-header-toggle svg { transform:rotate(180deg); }
body { font-size:16px; }
[hidden] { display:none!important; }
a { color:var(--green); text-underline-offset:3px; }
svg { width:1.05em;height:1.05em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle; }
button:disabled { opacity:.45;cursor:default; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.top .brand { color:var(--ink);font-size:15px; }
.brand span { font-size:12px;font-weight:400;color:var(--muted); }
.hero-actions { justify-content:flex-end; }
.hero p,.top>a,.reading,.example .cn,.filters select,.sidecount,.booktop,.demo { font-size:14px; }
.featured-study { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin-top:32px;padding-top:22px;border-top:1px solid var(--line); }
.featured-study h2 { margin:0;font-size:21px; }
.featured-study-list { margin:8px 0 0; }
.featured-study-list > div { padding:12px 0;border-bottom:1px solid var(--line); }
.featured-study-list dt { font-weight:700; }
.featured-study-list [lang=ja] { font-family:"Yu Gothic","Noto Sans JP",sans-serif;font-size:18px; }
.featured-study-list small,.featured-study-list dd { color:var(--muted);font-size:14px; }
.featured-study-list dd { margin:0; }
.featured-study-list dd[lang=ja] { margin-top:4px;color:var(--ink); }
.featured-study p { margin:11px 0 0; }
.eyebrow { font-size:12px; }
.progress-summary { display:grid;gap:3px;justify-items:end; }
.progress { font-size:13px; }
.progress-counts { display:flex;gap:11px;color:var(--muted);font-size:12px; }
.progress-counts span { display:flex;gap:4px;align-items:center; }
.progress-counts b { font-weight:500; }
.track { display:flex; }
.track i { flex:none; }
#bar-learning { background:#b87a31; }
.tabs button[aria-pressed=true] { color:var(--green);border-bottom-color:var(--green); }
.tabs button { font-size:16px; }
.workspace { grid-template-columns:minmax(255px,25%) minmax(0,1fr); }
.sidebar { position:sticky;top:18px; }
.entries { max-height:calc(100dvh - 235px);min-height:185px; }
.directory-pages { display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 12px;border-top:1px solid var(--line);font-size:13px;color:var(--muted); }
.directory-pages button { padding:5px 8px;font-size:13px; }
.favorite-filter { display:flex;gap:7px;align-items:center;font-size:14px;margin-top:9px;cursor:pointer; }
input[type=checkbox] { width:15px;height:15px;accent-color:var(--green); }
.directory-item { display:grid;grid-template-columns:minmax(0,1fr) auto;text-align:left;gap:4px;align-items:center;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 14px;background:var(--paper);border-left:3px solid transparent; }
.directory-item[aria-current=true] { background:var(--soft);border-left-color:var(--green); }
.directory-item:hover { background:var(--bg); }
.directory-title { display:block;font-size:17px;font-weight:650;overflow-wrap:anywhere; }
.directory-snippet { display:block;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px; }
.directory-meta { text-align:right; }
.directory-meta .status-name { display:block;color:var(--muted);font-size:12px;margin-top:4px;white-space:nowrap; }
.directory-meta[data-state=learning] .status-name { color:#a36822; }
.directory-meta[data-state=known] .status-name { color:var(--green); }
.status-dot { display:inline-block;width:6px;height:6px;border-radius:50%;background:#7b827b; }
[data-state=learning]>.status-dot { background:#b67b2c; }
[data-state=known]>.status-dot { background:#39714b; }
.empty-directory { color:var(--muted);padding:15px;font-size:14px; }
.mode-control select { border:1px solid var(--line);border-radius:6px;padding:5px 8px;background:var(--paper);font-size:14px;max-width:100%; }
.booktop { min-height:59px; }
.booktop .mode-control { margin-left:auto; }
.entry-actions { display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap; }
.entry-actions button { padding:5px 9px;font-size:14px; }
.entry-actions [aria-pressed=true] { background:var(--orange);color:#8c5e23;border-color:#eddfc7; }
.entry-heading { display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap; }
.heading { display:flex;gap:10px; }
.heading h2 { font-size:36px;line-height:1.6;overflow-wrap:anywhere; }
.heading .prompt-title { font-size:26px; }
.heading .level { align-self:center; }
.heading h2 rt { font-size:.4em; }
.entry-reading { margin-top:3px; }
.meaning { margin-bottom:6px; }
.supplement-meaning { font-size:15px;color:var(--muted);margin:0 0 16px; }
.subline { margin:19px 0 24px; }
.section p { margin-block:0; }
.section h3 { font-size:14px;letter-spacing:.04em; }
.formula p+p,.note p+p { margin-top:8px; }
.example-header { display:flex;justify-content:space-between;gap:8px;align-items:start; }
.example-header .jp { flex:1; }
.example-header button { flex:none;margin-top:4px; }
.example .cn { color:#46564c; }
.target { color:var(--green);font-weight:750;border-bottom:2px solid #b6c8b5; }
.blank { display:inline-block;min-width:2.6em;text-align:center;border-bottom:2px solid var(--green); }
.section .exercise-label { margin-bottom:3px;color:var(--muted);font-size:13px;font-weight:650; }
mark { background:#f8e2a2;color:inherit; }
.view-feedback { color:var(--muted);font-size:14px; }
.audio-toolbar { display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap;margin:15px 0 20px; }
.audio-toolbar button,.audio-toolbar select { font-size:14px;padding:5px 9px; }
.audio-toolbar select { border:1px solid var(--line);border-radius:6px;background:var(--paper); }
.audio-feedback { margin-right:auto;font-size:13px;color:var(--muted); }
[data-speaking=true] { outline:2px solid #9fbba7;outline-offset:4px;border-radius:4px; }
.reveal { display:flex;align-items:center;justify-content:center;padding:12px 15px; }
.reveal #answer-countdown { display:inline-block;min-width:1ch;font-variant-numeric:tabular-nums; }
.example-playback-recovery { margin:-8px 0 18px;text-align:center; }
.example-playback-recovery p { margin:0 0 7px;color:var(--muted);font-size:14px; }
.example-playback-recovery button { color:var(--green);font-size:14px; }
.personal-header { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.save-status { color:var(--muted);font-size:12px; }
.personal { font-size:16px;background-color:#fbfaf3; }
.note-hit { overflow-wrap:anywhere; }
.article-link,.references { font-size:14px; }
.references { display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap; }
.bottom .statusbuttons .selected { background:var(--soft);color:var(--green);border-color:#a8c1b0; }
.bottom .statusbuttons [data-state-value=learning].selected { background:var(--orange);color:#926124;border-color:#e8c897; }
.statusbuttons button { font-size:14px;padding:8px 10px; }
.handwriting-tools { display:flex;gap:6px;justify-content:flex-end;margin-bottom:8px; }
.handwriting-tools button { font-size:14px; }
#writingTitle { font-size:15px;font-weight:500; }
.notice { position:fixed;bottom:15px;right:15px;z-index:20;max-width:min(440px,90vw);padding:9px 14px;background:var(--soft);color:var(--green);border:1px solid var(--line);border-radius:7px; }
.feedback { font-size:14px;color:var(--green);margin-bottom:0; }
.feedback:empty { margin:0; }
.dark { --muted:#bdc9bf; }
.dark .example .cn { color:#d1dcd2; }
.dark .personal { background-color:#29322e; }
.dark mark { background:#635425; }
.dark .level { color:#d4e2ef;background:#344550; }
.dark .level.N3,.dark .level.N4 { color:#d9e3bf;background:#394535; }
.dark .entry-actions [aria-pressed=true] { color:#f2d5a6; }
.large .page { font-size:18px; }
.large .jp { font-size:23px; }
.large .heading h2 { font-size:43px; }
.large .meaning { font-size:24px; }
.large .example .cn,.large .formula,.large .personal { font-size:18px; }
@media(max-width:760px) {
  .site-header-inner { padding-inline:16px; }
  .site-brand-row { gap:10px;min-height:74px; }
  .site-brand-copy strong { font-size:15px; }
  .site-brand-copy small { font-size:11px; }
  .site-brand-mark { width:31px;height:31px; }
  .site-section { display:none; }
  .site-header-toggle { padding-inline:3px;font-size:12px;gap:3px; }
  .site-header-content { display:grid;gap:14px;padding-bottom:15px; }
  .site-global-nav { justify-content:space-between;gap:12px; }
  .site-topic-nav { gap:6px; }
  .site-topic-nav a { padding:3px 9px; }
  .wrap { padding-bottom:calc(92px + env(safe-area-inset-bottom)); }
  .wrap.notebook-main { padding-bottom:0; }
  .featured-study { grid-template-columns:1fr;gap:24px; }
  html body footer.nb-footer.notebook-footer { padding-bottom:calc(100px + env(safe-area-inset-bottom,0px)); }
  .hero { gap:14px; }
  .hero-actions { width:100%;justify-content:flex-end; }
  .toolbar { align-items:flex-start; }
  .progress-counts { gap:7px;font-size:11px;flex-wrap:wrap;justify-content:flex-end; }
  .tabs { gap:12px; }
  .progress-summary { padding-top:10px; }
  .progress { font-size:12px; }
  .track { width:44px; }
  .sidebar { position:static; }
  #catalog-content { display:none; }
  #catalog[data-open=true] #catalog-content { display:block; }
  .entries { max-height:275px; }
  .mobile-list { font-size:14px; }
  .page { padding:20px 17px; }
  .entry-heading { align-items:flex-start; }
  .entry-actions { margin-left:auto; }
  .heading h2 { font-size:29px; }
  .entry-heading .heading { max-width:100%; }
  .jp { font-size:20px; }
  .example-header { gap:6px; }
  .example-header button span { display:none; }
  .entry-actions button { min-height:38px; }
  .bottom.page-nav { position:fixed;left:0;right:0;bottom:0;z-index:10;flex-wrap:nowrap;background:var(--paper);padding:9px 12px calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--line); }
  .statusbuttons { display:none; }
  .state-control { display:flex;position:relative;align-items:center; }
  .state-control .status-dot { position:absolute;left:9px;pointer-events:none; }
  .state-control select { width:112px;font-size:14px;padding:9px 6px 9px 22px;border:1px solid var(--line);border-radius:6px;background:var(--paper); }
  .navbuttons { display:contents; }
  #previous { order:-1; }
  .page-nav button { padding:9px 12px;font-size:14px; }
  .notice { bottom:calc(68px + env(safe-area-inset-bottom)); }
  .book { overflow:visible; }
  .search { font-size:16px; }
}
