.study-root {
  width: min(100%, 1080px);
  margin: 0 auto 32px;
  color: var(--ink);
}
.study-root .study-heading { margin: 8px 0 22px; }
.study-root h2 { font: 700 clamp(25px, 3vw, 37px)/1.25 var(--serif); }
.study-root h3 { font-size: 18px; line-height: 1.45; }
.study-heading p, .study-help, .study-caption, .study-translation { color: var(--soft); }
.study-heading p { margin-top: 7px; }
.study-caption { font-size: 13px; line-height: 1.6; }
.study-help { font-size: 15px; line-height: 1.7; }
.study-panel {
  padding: clamp(17px, 3vw, 30px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 2px 8px #4b463009;
}
.study-home-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(265px, .86fr); gap: 18px; }
.study-metrics { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 21px 0; }
.study-metric { display: flex; flex-direction: column; gap: 1px; }
.study-metric strong { color: var(--red-dark); font: 700 36px/1.22 var(--serif); font-variant-numeric: tabular-nums; }
.study-metric span { color: var(--soft); font-size: 13px; }
.study-btn { min-height: 40px; padding: 8px 15px; border: 1px solid #cfc3af; border-radius: 7px; color: var(--ink); background: #fffdf8; font-weight: 620; line-height: 1.4; }
.study-btn:not(:disabled):hover { border-color: var(--red); background: #faf0e6; color: var(--red-dark); }
.study-btn.primary,.study-btn.study-play { border-color: var(--red-dark); background: var(--red-dark); color: white; }
.study-btn.primary:not(:disabled):hover,.study-btn.study-play:not(:disabled):hover { background: #6f281f; color: white; }
.study-btn.subtle { min-height: 34px; padding: 5px 6px; border-color: transparent; background: transparent; color: var(--red-dark); font-size: 13px; }
.study-daily > .study-btn { margin-top: 17px; }
.study-settings-fields, .study-filters { display:flex;align-items:end;flex-wrap:wrap;gap:12px; }
.study-settings-fields { margin: 16px 0 11px; }
.study-field { display:grid; gap:5px; color: var(--soft); font-size: 13px; }
.study-root :is(input:not([type=checkbox]):not([type=file]),select) {
  max-width:100%; min-width:0; min-height:40px; padding:7px 10px;
  font: inherit; font-size: 15px; color:var(--ink); border:1px solid #cabfa9; border-radius:6px; background:#fffcf4;
}
.study-root input[type=number] { width: 108px; }
.study-root input:focus-visible,.study-root select:focus-visible,.study-root summary:focus-visible { outline:2px solid var(--red);outline-offset:2px; }
.study-toggle { display:flex;align-items:center;gap:6px;font-size:13px;color:var(--soft); }
.study-toggle input { accent-color:var(--red-dark); }
.study-toolbar,.study-book-tools,.study-bartabs,.study-entry-title,.study-meta { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.study-toolbar,.study-bartabs { margin: 6px 0 16px; }
.study-practice { max-width: 740px; margin: 0 auto; display: grid; gap: 15px; justify-items: start; }
.study-practice .study-meta,.study-practice .study-progress,.study-practice .study-options,.study-practice .study-hints,.study-practice .study-example,.study-practice .study-explain { width: 100%; }
.study-meta span { color: var(--soft); font-weight: 650; }
.study-meta span:first-child { color: var(--red-dark); }
.study-root .study-progress { height:5px;accent-color:var(--red-dark); }
.study-instruction { margin-top:5px; }
.study-root .study-prompt-word { font: 650 clamp(31px,5vw,47px)/1.45 var(--japanese); color:var(--ink); word-break:break-word; }
.study-kana { display:flex;flex-wrap:wrap;gap:9px; }
.study-kana input { width:min(290px,100%); }
.study-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.study-options .option { padding:12px 15px; text-align:left; min-height:46px; }
.study-options .option[lang=ja] { font: 600 20px/1.45 var(--japanese); }
.study-root .study-sentence { padding: 7px 0; font: 500 clamp(17px, 2.1vw, 22px)/2.15 var(--japanese); overflow-wrap:anywhere; }
.study-root .study-sentence rt { color:#978d7d;font-size:.44em;font-weight:400; }
.study-root .study-sentence mark { background:#f6e3d7;color:#8a3928;border-radius:3px;padding:1px 2px; }
.study-gap { display:inline-block;min-width:3.4em;border-bottom:2px solid var(--red-dark);line-height:1; }
.study-hints { border-top:1px solid var(--rule); padding-top:9px; }
.study-hint-figure { margin:0; }
.study-hint-figure figcaption { margin-bottom:4px; }
.study-picture { max-width:360px; border-radius:8px;overflow:hidden;background:#f9f4e8; }
.study-picture svg { display:block;width:100%;height:auto; }
.study-clue { margin-top:8px; font: 600 16px/1.7 var(--japanese); }
.study-controls,.study-answer-head,.study-audio { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.study-answer-head { gap:8px 14px; }
.study-pron { font: 500 15px/1.65 var(--japanese);color:var(--soft); }
.study-answer-meaning { font-size:19px;font-weight:650; }
.study-example,.study-explain { border-top:1px solid var(--rule);padding-top:11px; }
.study-explain summary { cursor:pointer;font-size:14px;font-weight:600;color:var(--red-dark); }
.study-explain .motion-scene { margin-top:11px;max-width:450px; }
.study-explain .study-caption {margin-top:7px;}
.study-sense {padding:12px 0 5px;}
.study-sense + .study-sense {margin-top:6px;border-top:1px solid var(--rule);}
.study-sense-title {font-size:14px;color:var(--red-dark);}
.study-verdict { padding: 3px 9px; border-radius:5px;background:#e8eedc;color:#405b38; font-weight:700; }
.study-verdict.wrong { background:var(--red-pale);color:var(--red-dark); }
.study-verdict.aided { background:#f1e9d4;color:#69562e; }
.study-bartabs { justify-content:flex-start; gap:20px; }
.study-bartabs strong {font-size:17px;}
.study-filters { padding-bottom:14px; border-bottom:1px solid var(--rule); }
.study-book-tools { justify-content:flex-start; flex-wrap:wrap; margin:15px 0; }
.study-entry { padding:14px 0; border-top:1px solid var(--rule); }
.study-entry-title { justify-content:flex-start;flex-wrap:wrap;gap:5px 14px; }
.study-entry-title strong {font:650 21px/1.45 var(--japanese);}
.study-entry-title button {margin-left:auto;}
.study-entry-detail {margin-top:4px; color:var(--soft);font-size:13px;overflow-wrap:anywhere;}
.study-state {display:inline-block;margin-left:8px;color:var(--olive);}
.study-empty,.study-notice {padding:14px;background:#f5efdf;border-radius:6px;color:var(--soft);}
.study-notice,.study-backup {margin:15px 0;}
.study-backup .study-help {margin:6px 0 12px;}
.study-import {border-left:3px solid var(--red-dark);padding:10px 13px;margin-top:13px;background:#fbf2e7;}
.study-import h4 {margin:0 0 4px;}
.study-import .study-controls {margin-top:10px;}
@media(max-width:720px) {
  .study-home-grid {grid-template-columns:minmax(0,1fr);}
  .study-panel {border-radius:11px;}
  .study-filters > label:first-child {flex-basis:100%;}
}
@media(max-width:420px) {
  .study-options {grid-template-columns:minmax(0,1fr);}
  .study-toolbar {gap:5px;}
  .study-kana {display:grid; width:100%;}
  .study-kana input {width:100%;}
}
.study-context { border-left:2px solid #c9bea6; padding-left:10px; color:var(--soft); font-size:14px; }
