:root{
  color-scheme:light;
  --canvas:#f8f8fb;
  --surface:#fff;
  --ink:#242032;
  --muted:#625b70;
  --soft:#71697e;
  --stroke:#e8e5ef;
  --purple:#6041c9;
  --deep-purple:#4e32ad;
  --lavender:#eee8ff;
  --green:#286542;
  --radius:17px;
  font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  font-size:16px;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);line-height:1.55}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
a{color:inherit;text-decoration:none}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #8567ec;outline-offset:3px}
h1,h2,h3,p{margin:0}
h1:focus{outline:none}
svg{display:block;flex:none}
[hidden]{display:none!important}
.shell,.top-inner{width:min(1160px,calc(100% - 64px));margin-inline:auto}
.topbar{background:var(--surface);border-bottom:1px solid var(--stroke)}
.cloud-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-block:6px;border-bottom:1px solid var(--stroke);color:var(--muted);font-size:14px;min-height:48px}
.cloud-action{color:var(--deep-purple);background:var(--surface);border:1px solid var(--stroke);border-radius:8px;padding:5px 10px;font-size:14px;font-weight:700;white-space:nowrap}
.cloud-action:hover{background:var(--lavender)}
.cloud-action:disabled{opacity:.6}
.top-inner{min-height:74px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
.brand{display:inline-flex;align-items:center;gap:11px;justify-self:start;font-size:18px;font-weight:750;line-height:1.32;white-space:nowrap}
.brand-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--purple);color:white}
.brand small{display:block;color:var(--soft);font-size:11px;letter-spacing:.11em;font-weight:650;margin-top:2px}
nav{display:flex;gap:9px}
nav a{display:flex;align-items:center;gap:7px;padding:10px 14px;border-radius:10px;color:var(--muted);font-size:15px;white-space:nowrap}
nav a:hover{background:#f7f5fd}
nav a[aria-current]{color:var(--deep-purple);background:#f0eaff;font-weight:700}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:11px 17px;min-height:44px;font-weight:700;font-size:15px;line-height:1.35;white-space:nowrap}
.primary{background:var(--purple);color:#fff}
.primary:hover{background:var(--deep-purple)}
.secondary{background:#fff;border-color:#ded9e9;color:var(--ink)}
.secondary:hover{background:#f6f3ff}
.top-add{justify-self:end}
#app{min-height:calc(100vh - 157px);padding-block:33px 22px}
.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.page-heading{margin-bottom:22px}
h1{font-size:clamp(29px,3vw,37px);letter-spacing:-.035em;font-weight:800;line-height:1.2}
.page-heading p{margin-top:7px;color:var(--muted);font-size:15px}
.page-heading time{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:14px;white-space:nowrap}
.overview{display:grid;grid-template-columns:2.05fr 1fr;gap:18px}
.hero{isolation:isolate;position:relative;overflow:hidden;min-height:229px;display:flex;align-items:center;border-radius:var(--radius);background:#e8ddff}
.hero::before{content:"";position:absolute;inset:0 0 0 30%;z-index:-2;background:url(study.webp) right 49% / cover no-repeat}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#e8ddff 39%,#e8ddff00 72%)}
.hero-content{padding:24px 29px;color:#2e1f50}
.hero-label{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:#5635ab}
.hero h2{font-size:clamp(25px,3.1vw,37px);font-weight:850;letter-spacing:-.045em;line-height:1.22;margin:9px 0 8px}
.hero p{font-size:15px;color:#4f3f6a;max-width:19em}
.hero-button{min-height:43px;background:#dff77e;border-color:#d5ec75;color:#282638;margin-top:18px;padding-inline:15px;box-shadow:0 2px 0 #c4d36b}
.hero-button:hover{background:#e9ff98}
.calendar-card,.stat,.collection-body,.practice-card{border:1px solid var(--stroke);background:var(--surface);border-radius:var(--radius)}
.calendar-card{padding:22px 21px;display:flex;flex-direction:column;justify-content:center}
.calendar-head,.today-count{display:flex;align-items:center;justify-content:space-between;gap:10px}
.calendar-head h2{font-size:17px;white-space:nowrap}
.streak{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;background:#fff0e4;color:#914623;border-radius:20px;padding:4px 8px;font-size:13px;font-weight:700}
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-block:17px 18px}
.week-day{display:grid;justify-items:center;gap:6px;font-size:13px;color:var(--muted);line-height:1.35}
.day{width:32px;max-width:100%;aspect-ratio:1;display:grid;place-items:center;border-radius:9px;background:#f6f5fa;color:#686277;font-size:14px}
.day.today{background:#eee8ff;box-shadow:inset 0 0 0 1px #b79ff6;color:var(--deep-purple);font-weight:750}
.day.checked{background:#e6f7df;color:#2f6a45}
.today-count{font-size:14px;color:var(--muted);margin-bottom:6px}
.today-count strong{color:var(--deep-purple);font-size:19px}
.today-count small{font-size:13px;color:var(--soft);font-weight:500}
.bar{height:7px;border-radius:99px;background:#efecf6;overflow:hidden}
.bar span{display:block;height:100%;border-radius:inherit;background:#8663e4;transition:width .25s ease}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:18px 0 29px}
.stat{display:flex;align-items:center;gap:13px;min-height:81px;padding:13px 16px}
.stat-icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 auto;border-radius:11px}
.stat-icon.lavender{background:#efe9ff;color:#6242c2}
.stat-icon.orange{background:#fff0e4;color:#a15332}
.stat-icon.green{background:#e7f6e8;color:#33784f}
.stat-label{color:var(--muted);font-size:14px}
.stat strong{font-size:25px;line-height:1.1;font-weight:820;font-variant-numeric:tabular-nums}
.stat-extra{margin-left:auto;color:#387350;background:#eff8ee;font-size:13px;font-weight:720;border-radius:20px;padding:4px 8px}
.section-heading{margin-bottom:13px}
.section-heading h2{font-size:22px;letter-spacing:-.025em}
.data-actions{display:flex;align-items:center;gap:14px}
.text-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;background:none;border:0;border-radius:6px;padding:4px 3px;color:var(--deep-purple);font-weight:650;font-size:14px;white-space:nowrap}
.text-button:hover,.practice-back:hover{color:#382282;text-decoration:underline;text-underline-offset:3px}
.backup-menu{position:relative}
.backup-menu summary{list-style:none;cursor:pointer}
.backup-menu summary::-webkit-details-marker{display:none}
.backup-options{position:absolute;top:calc(100% + 5px);right:0;z-index:2;min-width:120px;display:grid;padding:5px;background:#fff;border:1px solid var(--stroke);border-radius:10px;box-shadow:0 8px 22px #2f174617}
.backup-options button{background:white;border:0;border-radius:6px;text-align:left;padding:8px 10px;font-size:14px}
.backup-options button:hover{background:var(--lavender)}
.collection-body{overflow:hidden}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 16px;border-bottom:1px solid var(--stroke)}
.toolbar-categories,.filter-tabs,.toolbar-filters{display:flex;align-items:center;gap:7px}
.toolbar-categories{flex-wrap:wrap}
.toolbar-filters{flex-shrink:0}
.star-filter{display:flex;align-items:center;gap:5px;min-height:39px;padding:6px 8px;border:1px solid #e5e1ee;border-radius:8px;background:#fff;color:var(--muted);font-size:14px;font-weight:650;white-space:nowrap}
.star-filter:hover{background:#faf6ff}
.star-filter[aria-pressed=true]{background:#fff3d8;color:#754909;border-color:#edce8b}
.star-filter[aria-pressed=true] svg,.star-button[aria-pressed=true] svg{fill:#f5bb51}
#star-count{font-size:12px;font-variant-numeric:tabular-nums}
.filter-tabs button,.size-choices button{display:flex;justify-content:center;align-items:center;gap:5px;white-space:nowrap;border:1px solid transparent;background:#fff;border-radius:8px;padding:7px 10px;color:var(--muted);font-size:14px;font-weight:650;min-height:39px}
.filter-tabs button:hover,.size-choices button:hover{background:#f7f4fd}
.filter-tabs button[aria-pressed=true],.size-choices button[aria-pressed=true]{background:#f0eaff;color:var(--deep-purple)}
.filter-tabs button span{font-size:12px;color:var(--soft);background:#f2f0f6;border-radius:12px;padding:1px 5px;font-variant-numeric:tabular-nums}
.filter-tabs button[aria-pressed=true] span{color:var(--deep-purple);background:#e4d9ff}
.search-control,.select-control{position:relative;display:flex;align-items:center;border:1px solid #e5e1ee;border-radius:8px;background:#fff;color:var(--muted)}
.search-control{gap:8px;padding-left:10px}
.search-control input,.select-control select{height:39px;border:0;background:transparent;padding:0 9px;border-radius:7px;color:var(--ink);font-size:14px}
.search-control input{width:155px;min-width:0;padding-left:0}
.search-control input::placeholder{color:var(--soft)}
.select-control select{appearance:none;width:100%;padding-right:29px;cursor:pointer}
.select-control svg{position:absolute;right:9px;pointer-events:none}
.entries{padding-inline:16px}
.entry + .entry{border-top:1px solid #eeebf2}
.entry-main{display:grid;grid-template-columns:minmax(0,1fr) 192px 80px 87px auto;align-items:center;min-height:74px;gap:10px}
.entry-controls{display:flex;align-items:center;gap:2px}
.entry-word,.entry-title{min-width:0}
.entry-title{display:flex;align-items:center;gap:8px}
.entry-title h3{font-size:20px;font-weight:780;line-height:1.23;letter-spacing:-.025em;min-width:0}
.word-button{background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;overflow-wrap:anywhere}
.word-button:hover{color:var(--deep-purple)}
.entry-meaning{font-size:14px;line-height:1.35;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.pos{font-size:13px;color:#695692;font-family:ui-monospace,monospace;margin-right:7px}
.entry-source{font-size:13px;color:var(--soft);overflow-wrap:anywhere}
.tag{display:inline-flex;width:max-content;align-items:center;border-radius:6px;font-size:13px;font-weight:700;padding:3px 9px;white-space:nowrap}
.tag.word{background:#eee8ff;color:#5b3bb2}
.tag.mixed{background:#fff0e4;color:#904621}
.tag.phrase{background:#e6f3fa;color:#276179}
.entry-state{display:flex;align-items:center;gap:3px;font-size:14px;color:var(--muted);white-space:nowrap}
.icon-button{display:inline-grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--soft);padding:0}
.icon-button:hover{background:#f0eaff;color:var(--deep-purple)}
.star-button:hover,.star-button[aria-pressed=true]{background:#fff4dd;color:#895905}
.delete-button{color:#8b4149}
.delete-button:hover{background:#fff0ef;color:#862b38;text-decoration:none}
.speak{width:28px;height:28px;color:#6e52ba}
.expand svg{transition:transform .16s ease}
.expand.expanded svg{transform:rotate(180deg)}
.mastered .word-button{text-decoration:line-through;text-decoration-thickness:.08em;color:#666074}
.mastered .entry-state{color:var(--green)}
.entry-detail{background:#faf9fd;border:1px solid #efebf6;border-radius:10px;padding:13px 15px;margin-bottom:11px;overflow-wrap:anywhere}
.entry-detail p + p{margin-top:6px}
.entry-detail p{font-size:15px;color:#4d445d}
.entry-detail p strong{margin-right:3px;color:var(--ink)}
.entry-detail .phonetic{font-family:ui-monospace,monospace;color:var(--deep-purple)}
.entry-detail .common-uses{margin:8px 0 12px;border:1px solid var(--stroke);border-radius:9px;background:white}
.common-uses h4{margin:0;padding:9px 11px 0;font-size:15px;color:var(--deep-purple)}
.common-uses-context{padding:8px 11px 0;color:var(--muted);font-size:14px}
.common-uses-list{display:grid;gap:7px;margin:0;padding:9px 11px 11px}
.common-uses-list>div{display:grid;grid-template-columns:3.3em minmax(0,1fr);align-items:baseline;gap:5px;font-size:15px;overflow-wrap:anywhere}
.common-uses-list .pos{margin:0;font-weight:700}
.common-uses-list dd{margin:0}
.common-uses-list small{display:block;color:var(--muted);font-size:14px}
.quiz-explanation .common-uses-list{border-top:1px solid #e6dbf7;background:#faf7ff;border-radius:0 0 9px 9px}
.root-group{margin:14px 0 10px;padding:16px;background:#f4effd;border:1px solid #e6dbf7;border-radius:12px}
.root-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.root-group-head h4{display:flex;align-items:center;gap:7px;margin:0;color:#493288;font-size:16px}
.root-group-head a{color:var(--deep-purple);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.root-trace,.root-branches{margin:0;padding:0;list-style:none}
.root-trace{display:flex;align-items:stretch;gap:15px}
.root-trace li{display:flex;flex:1;flex-direction:column;justify-content:center;position:relative;gap:3px;min-width:0;padding:10px 11px;background:#fff;border:1px solid #e5dcf0;border-radius:9px;overflow-wrap:anywhere}
.root-trace li+li::before{content:"";position:absolute;width:16px;height:1px;top:50%;left:-17px;background:#b49bdc}
.root-trace .current{border-color:#9d7dcf}
.root-trace strong{color:#34255a;font-size:16px}
.root-trace span,.root-connection{font-size:14px;color:#5a4c6c;white-space:pre-line}
.entry-detail .root-focus{margin:10px 0 0;font-size:14px}
.root-focus strong{color:var(--deep-purple);margin-right:7px}
.root-group h5{margin:14px 0 8px;font-size:14px;color:#4b3a71}
.root-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.root-branches li{display:flex;flex-direction:column;align-items:flex-start;gap:3px;background:#fff;border:1px solid #e7def2;border-radius:9px;padding:10px 11px;min-width:0;overflow-wrap:anywhere}
.root-branch-word{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;color:#34255a;font-size:16px}
.root-branch-meaning{font-size:15px}
.root-add{margin-top:auto;white-space:normal}
.root-saved{color:var(--green);font-size:13px;padding:6px 3px 5px;margin-top:auto}
.root-editor{background:#f7f3fd;border:1px solid #e5dcf0;border-radius:8px}
.root-editor summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:8px 10px;font-size:14px;font-weight:700;color:var(--deep-purple)}
.root-editor summary::-webkit-details-marker{display:none}
.root-editor[open] summary svg{transform:rotate(180deg)}
.root-editor-fields{padding:0 10px 10px;display:grid;gap:8px}
.entry-actions{display:flex;gap:14px;margin-top:6px}
.empty{padding:37px 10px;text-align:center;display:grid;gap:12px;justify-items:center}
.empty h3{font-size:17px}
.footer{display:flex;justify-content:space-between;gap:10px;padding:17px 0 25px;color:var(--soft);font-size:13px}
.practice-wrap{width:min(100%,660px);margin:12px auto 22px}
.practice-heading{text-align:center;margin-bottom:23px}
.practice-glyph{display:grid;place-items:center;margin:0 auto 14px;width:61px;height:61px;border-radius:18px;background:var(--lavender);color:var(--purple)}
.practice-glyph.complete{background:#e9f7de;color:var(--green)}
.practice-heading p{color:var(--muted);margin-top:9px;font-size:16px}
.practice-card{padding:25px;box-shadow:0 5px 16px #2c165a07}
.setup-field + .setup-field{margin-top:19px}
.setup-field>label:first-child,.setup-field>span:not(.select-control){display:block;font-size:15px;font-weight:750;margin-bottom:7px}
.setup-field .select-control{margin:0}
.setup-field select{height:46px;font-size:16px;padding-left:12px}
.size-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.size-choices button{border-color:var(--stroke);min-height:43px;font-size:15px}
.size-choices button[aria-pressed=true]{border-color:#c8b8f1}
.setup-hint,.quiz-hint{color:var(--muted);font-size:14px;margin:15px 0}
.wide{width:100%;min-height:46px}
.practice-back{display:table;margin:14px auto;color:var(--deep-purple);font-size:15px}
.quiz-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:14px;margin-bottom:8px}
.quiz-meta strong{color:var(--deep-purple)}
.quiz-bar{margin-bottom:17px}
.quiz-card h1{margin:13px 0 4px;overflow-wrap:anywhere;letter-spacing:-.025em}
.quiz-tags{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.quiz-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}
.quiz-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:3px}
.quiz-actions .quiz-star{min-height:44px;padding-inline:6px}
.quiz-toolbar .delete-button{padding-inline:7px}
.quiz-prompt{color:var(--muted);display:flex;align-items:center;gap:8px;font-size:15px;margin-bottom:16px}
.options{display:grid;gap:9px}
.option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;text-align:left;gap:10px;min-height:52px;padding:9px 12px;background:white;border:1px solid #e3dfee;border-radius:10px;overflow-wrap:anywhere;font-size:16px}
.option:not(:disabled):hover{border-color:#a98eea;background:#f8f4ff}
.option-key{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#f1edf8;color:#65547e;font-size:13px;font-weight:800}
.option.right{border-color:#9cccab;background:#eef9ef;color:#245b38}
.option.right .option-key{background:#d5efdc;color:#245b38}
.option.wrong{border-color:#ebb5a9;background:#fff2ef;color:#823b30}
.option.wrong .option-key{background:#fae0da;color:#823b30}
.quiz-hint{margin-bottom:0}
.answer-feedback{margin:15px 0 11px;padding:11px 13px;border-radius:9px;font-size:15px;overflow-wrap:anywhere}
.answer-feedback.good{background:#eef8ed;color:#275e3d}
.answer-feedback.retry{background:#fff1e9;color:#793b2e}
.quiz-explanation{margin-bottom:11px;border:1px solid #e6dbf7;border-radius:9px;background:#f4effd}
.quiz-explanation summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 11px;list-style:none;cursor:pointer;color:var(--deep-purple);font-size:15px;font-weight:700}
.quiz-explanation summary::-webkit-details-marker{display:none}
.quiz-explanation summary:focus-visible{border-radius:8px}
.quiz-explanation summary svg:last-child{margin-left:auto}
.quiz-explanation[open] summary svg:last-child{transform:rotate(180deg)}
.quiz-root .root-group{margin:0;padding-top:9px;border:0;border-top:1px solid #e6dbf7;border-radius:0 0 9px 9px}
.confusable-content{padding:8px 11px 11px;overflow-wrap:anywhere}
.quiz-confusables .confusable-content{border-top:1px solid #e6dbf7}
.confusable-main{margin:0 0 7px;font-size:15px}
.phrase-pattern{margin:0 0 8px;font-size:14px;font-weight:650;color:var(--deep-purple)}
.confusable-main strong,.confusable-list strong{color:var(--deep-purple);margin-right:4px}
.confusable-list{display:grid;gap:7px;margin:0}
.confusable-list>div{padding:7px 9px;border:1px solid #e6e0ef;border-radius:7px;background:#faf7ff}
.confusable-list dt{font-size:15px}
.confusable-list dd{margin:3px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.confusable-list .spelling-hint{font-weight:650;color:#513b85}
.option-reference-content{padding:10px 12px 12px;border-top:1px solid #e6dbf7;font-size:14px;overflow-wrap:anywhere}
.option-reference-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.option-reference{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:3px 8px;padding:8px 10px;border:1px solid #e6e0ef;border-radius:8px;background:white}
.option-reference.right{background:#eef8ed;border-color:#cce6cb}
.option-reference.wrong{background:#fff1e9;border-color:#f1cfc2}
.option-reference p,.option-reference-note{color:var(--muted)}
.option-reference p{grid-column:1/-1}
.option-reference-letter{margin-right:8px;font-weight:750;color:var(--deep-purple)}
.option-reference-label{white-space:nowrap;font-weight:650}
.option-reference-note{margin-top:8px}
.recommendation-page{max-width:960px;margin-inline:auto}
.recommendation-intro{padding:26px 28px;border:1px solid #e6daf9;border-radius:var(--radius);background:linear-gradient(110deg,#eee6ff,#faf7ff);margin-bottom:18px}
.recommendation-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.recommendation-level{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;margin-top:14px;color:var(--deep-purple);font-size:15px}
.recommendation-level span{font-size:13px;color:#584970}
.recommendation-intro p{margin-top:8px;color:#584970;font-size:15px}
.recommendation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.recommendation-card{display:grid;gap:11px;padding:17px 19px 18px;background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius)}
.recommendation-meta{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.recommendation-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.recommendation-title h2{font-size:clamp(20px,3vw,25px);line-height:1.15;overflow-wrap:anywhere}
.recommendation-meaning{border-top:1px solid var(--stroke);padding-top:5px;color:var(--deep-purple);font-size:14px}
.recommendation-meaning summary{display:flex;align-items:center;justify-content:space-between;min-height:36px;cursor:pointer;list-style:none;font-weight:650}
.recommendation-meaning summary::-webkit-details-marker{display:none}
.recommendation-meaning[open] summary svg{transform:rotate(180deg)}
.recommendation-meaning p{color:var(--ink);padding-top:4px}
.recommendation-meaning .recommendation-example{color:var(--muted);padding-bottom:4px}
.recommendation-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.recommendation-actions .button{min-height:40px;padding:7px 10px;font-size:14px}
.recommendation-added{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--green);font-weight:700;font-size:14px}
.recommendation-empty{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.type-answer{display:flex;gap:8px}
.type-answer input{min-width:0;flex:1;border:1px solid var(--stroke);border-radius:9px;padding:9px}
.finish-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;text-align:center}
.finish-stats strong{display:block;color:var(--deep-purple);font-size:31px;font-variant-numeric:tabular-nums;line-height:1.25}
.finish-stats span{font-size:14px;color:var(--muted)}
.finish-words{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:20px 0}
.finish-words span{padding:5px 9px;border-radius:7px;background:#edf7ec;color:var(--green);text-decoration:line-through;overflow-wrap:anywhere}
.finish-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
dialog{width:min(calc(100% - 30px),540px);max-height:calc(100% - 32px);padding:0;border:1px solid var(--stroke);border-radius:17px;color:var(--ink);box-shadow:0 15px 70px #20133642}
dialog::backdrop{background:#21193665}
#entry-form{display:flex;flex-direction:column;max-height:inherit}
.dialog-head,.dialog-footer{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.dialog-head{border-bottom:1px solid var(--stroke)}
.dialog-head h2{font-size:21px}
.dialog-content{display:grid;gap:11px;padding:14px 18px;overflow:auto}
.dialog-content label{display:grid;gap:4px;font-size:14px;font-weight:650}
.dialog-content input,.dialog-content textarea{width:100%;border:1px solid #e3dfee;border-radius:8px;padding:7px 9px;font-weight:400}
.dialog-content .select-control{display:flex}
.dialog-content textarea{resize:vertical}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dialog-footer{border-top:1px solid var(--stroke);justify-content:flex-end}
.form-hint{font-size:14px;color:var(--muted)}
.form-error{font-size:14px;color:#a23c36}
.toast{position:fixed;z-index:4;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);padding:10px 16px;border-radius:9px;background:#33274e;color:white;box-shadow:0 5px 24px #23133b36;font-size:14px}
.toast:has(button){display:flex;align-items:center;gap:10px;padding-block:6px;overflow-wrap:anywhere}
.toast button{background:transparent;color:#fff;border:1px solid #ffffff70;border-radius:6px;padding:4px 9px;min-height:34px;white-space:nowrap}
.toast button:hover{background:#ffffff26}
.trash-content{max-height:min(65dvh,520px)}
.trash-list{list-style:none;margin:0;padding:0}
.trash-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;overflow-wrap:anywhere}
.trash-list li+li{border-top:1px solid var(--stroke)}
.trash-list strong,.trash-list span{display:block}
.trash-list span{font-size:14px;color:var(--muted)}
.trash-list .button{flex-shrink:0}
@media(max-width:950px){
  .shell,.top-inner{width:calc(100% - 42px)}
  .overview{grid-template-columns:1.6fr 1fr}
  .calendar-card{padding-inline:14px}
  .entry-main{grid-template-columns:minmax(0,1fr) 156px 66px 77px auto;gap:7px}
  .toolbar{flex-wrap:wrap;gap:8px}
}
@media(max-width:710px){
  .shell,.top-inner{width:calc(100% - 28px)}
  .top-inner{grid-template-columns:1fr auto;gap:7px 12px;padding-top:10px;min-height:auto}
  nav{grid-column:1/-1;grid-row:2;border-top:1px solid #f0edf5;padding:6px 0;margin:2px 0 0}
  nav a{padding:8px 11px}
  .top-add{grid-row:1;grid-column:2;min-height:38px;padding:8px 10px;font-size:14px}
  .brand-icon{width:36px;height:36px}
  .brand{font-size:16px;gap:7px}
  .brand small{font-size:10px}
  #app{padding-block:22px 10px}
  .page-heading{align-items:flex-start;margin-bottom:15px}
  .page-heading time{display:none}
  .overview{grid-template-columns:1fr;gap:10px}
  .hero{min-height:198px}
  .hero-content{padding:17px}
  .calendar-card{padding:15px}
  .week{margin:10px 0}
  .stats{gap:7px;margin:10px 0 21px}
  .stat{min-height:68px;padding:7px;gap:6px}
  .stat-icon{width:33px;height:33px;border-radius:9px}
  .stat-icon svg{width:18px;height:18px}
  .stat-label{font-size:13px}
  .stat strong{font-size:21px}
  .stat-extra,.entry-source{display:none}
  .toolbar{flex-wrap:wrap;gap:8px;padding:10px}
  .toolbar-filters{width:100%}
  .search-control{flex:1}
  .search-control input{width:100%}
  .filter-tabs{max-width:100%;gap:3px}
  .filter-tabs button{padding-inline:7px}
  .section-heading{flex-wrap:wrap;gap:6px 12px}
  .data-actions{gap:8px}
  .entries{padding-inline:10px}
  .entry-main{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 7px;padding:9px 0;min-height:66px}
  .entry-word{grid-column:1/3;grid-row:1}
  .entry-main>.tag{grid-column:1;grid-row:2}
  .entry-state{grid-column:2;grid-row:2}
  .entry-controls{grid-column:3;grid-row:1/3}
  .entry-state{font-size:13px}
  .entry-title h3{font-size:18px}
  .entry-title{gap:3px}
  .entry-controls .icon-button{width:30px;height:38px}
  .tag{font-size:12px;padding-inline:5px}
  .practice-card{padding:16px}
  .root-group{padding:12px}
  .root-trace{flex-direction:column;gap:8px}
  .root-trace li{padding:7px 10px}
  .root-trace li+li::before{left:15px;top:-10px;width:1px;height:9px}
}
@media(max-width:460px){
  nav{gap:4px;justify-content:space-between}
  nav a{padding-inline:7px;gap:5px;font-size:14px}
  .recommendation-grid{grid-template-columns:1fr}
  .recommendation-intro{padding:18px}
  .root-branches{grid-template-columns:1fr}
  .toolbar-filters{display:grid;grid-template-columns:1fr 1fr}
  .toolbar-filters .search-control{grid-column:1/-1}
}
@media(max-width:365px){
  .stat-icon{display:none}
  .hero::before{inset:0 0 0 20%}
  .hero::after{background:linear-gradient(90deg,#e8ddff 43%,#e8ddff44 88%)}
  .data-actions{gap:7px}
  .filter-tabs button{font-size:13px}
  .entry-main{gap:4px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

.root-family-extra{margin-top:12px}
.root-family-extra summary{cursor:pointer;color:var(--deep-purple);font-weight:650}
.root-family-extra .root-trace{margin-top:8px}
