@charset "UTF-8";
.topbar-actions{display:flex;align-items:center;gap:8px}.topbar-actions>.study-mode-toggle{display:none}.study-mode-toggle{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--line);border-radius:15px;background:#fff;white-space:nowrap}.study-mode-toggle button{min-height:38px;min-width:76px;padding:7px 13px;border-radius:11px;font-size:13px;font-weight:750;color:var(--muted)}.study-mode-toggle button.active{background:var(--green);color:#fff}.study-mode-toggle .mode-short{display:none}.phrase-markers{display:flex;gap:8px;margin-top:9px}.phrase-marker{min-width:42px;min-height:40px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-weight:700;color:var(--green)}.phrase-marker:disabled{opacity:.4;cursor:default}.phrase-card .word-heading{font-size:clamp(30px,5vw,52px);overflow-wrap:anywhere}.phrase-card .word-definition{font-weight:500}.phrase-mode{--green:#76252d;--green-dark:#561920;--lime:#f8d8d8;--soft:#fbefef;--line:#ecd6d6;--muted:#806c70}.phrase-mode .hero-art .mini-card.back{background:#dca8ac}.phrase-mode .mini-dots i{background:#d7909b}.phrase-mode .hero-review-history rect{fill:#c98088}.phrase-mode .hero-review-history rect.today{fill:#ffd2d7}.phrase-mode .hero .button{background:#ffe2e3;color:#57171f}.phrase-mode .hero .button:hover{background:#ffeff0}.phrase-mode .bottom-nav{background:#fffafaef}.phrase-mode .mode.active{border-color:#a96069;background:#fff0f1;box-shadow:inset 0 0 0 1px #a96069}.phrase-mode .home-library-summary,.phrase-mode .example{border-color:#edd0d3}.phrase-mode .hero-art .mini-card{color:#76252d}.phrase-mode .topbar-add{white-space:nowrap}
.phrase-meanings{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.phrase-card .meaning-add{margin-top:16px}.phrase-card .meaning-add:disabled{opacity:.45;cursor:default}
@media(max-width:760px){.topbar .topbar-left{display:none}.topbar-actions>.study-mode-toggle{display:inline-flex}.topbar-actions{gap:6px;margin-left:auto}.topbar .study-mode-toggle{padding:2px;border-radius:11px}.study-mode-toggle .mode-long{display:none}.study-mode-toggle .mode-short{display:inline}.topbar .study-mode-toggle button{min-width:27px;min-height:38px;padding:6px 8px;border-radius:8px;font-size:13px}.topbar .topbar-add{padding:8px 10px;min-height:44px}.topbar .mobile-settings{width:44px;min-width:44px}.topbar{gap:6px}}
@media(max-width:400px){.topbar .brand{gap:6px}.topbar .brand img{width:29px;height:29px}.topbar .brand-name{font-size:12px}.topbar .study-mode-toggle button{min-width:25px;padding:5px 6px}.topbar .topbar-add{font-size:10px;padding:7px 7px;gap:4px}.topbar .topbar-add .icon{width:14px;height:14px}.topbar .mobile-settings{width:39px;min-width:39px}.stage{padding-left:14px;padding-right:14px}}
@media(max-width:400px){.topbar .button.topbar-add{font-size:10px;padding:7px;gap:4px;min-height:42px}.topbar .button.topbar-add .icon{width:14px;height:14px}.topbar .icon-button.mobile-settings{width:39px;min-width:39px}}
@media(max-width:350px){.topbar .brand-name{font-size:11px}.topbar .brand img{width:26px;height:26px}.topbar .study-mode-toggle button{min-width:23px;padding:5px}.topbar .button.topbar-add{font-size:9px;padding:6px}.topbar .icon-button.mobile-settings{width:36px;min-width:36px}}
.library-more{display:flex;margin:20px auto 0;min-width:190px}.nav-back{justify-content:center}.bottom-nav .nav-back{background:var(--soft);color:var(--green)}
.modal-body .add-limit-notice{margin-top:20px;margin-bottom:12px;font-size:13px;line-height:1.8}.add-limit-notice strong{font-weight:750}#add-form [data-rate-blocked="1"]{cursor:not-allowed}
:root{--paper:#f7f8f2;--white:#fff;--ink:#203b31;--muted:#64776d;--green:#24563f;--green-dark:#173f2d;--lime:#dcebad;--soft:#edf2e6;--line:#dfe5d9;--orange:#ad6138;--orange-soft:#fbefe3;--red:#ab413a;--shadow:0 12px 42px #29453308;--radius:24px;font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN","Meiryo",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green)}button{color:inherit}button,select,input{min-height:46px}button{border:0;background:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #96af52;outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,4.8vw,40px);line-height:1.5;letter-spacing:-.055em;font-weight:750}h2{font-size:21px;letter-spacing:-.035em}h3{font-size:17px;line-height:1.5}p{line-height:1.9}small,.small{font-size:12px;line-height:1.7}.muted{color:var(--muted)}.english{font-family:Georgia,"Times New Roman",serif}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.15em;color:var(--muted);text-transform:uppercase}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:16px}.gap8{gap:8px}.space-top{margin-top:24px}.full{width:100%}.grow{flex:1;min-width:0}.center{text-align:center}.hidden{display:none!important}.icon{width:21px;height:21px;flex:none;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.icon.small{width:17px;height:17px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 22px;border-radius:15px;font-size:14px;font-weight:700;line-height:1.5;text-decoration:none;background:var(--green);color:#fff;min-height:50px;transition:background .15s,transform .15s}.button:hover{background:var(--green-dark)}.button:active{transform:translateY(1px)}.button.secondary{color:var(--green);background:var(--soft);border:1px solid var(--line)}.button.secondary:hover{background:#e4ecd9}.button.quiet{color:var(--green);background:transparent;border:1px solid var(--line)}.button.danger{background:#a63f37;color:#fff}.text-button{font-size:13px;font-weight:700;color:var(--green);padding:8px 4px;display:inline-flex;align-items:center;gap:6px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:46px;border-radius:50%;border:1px solid var(--line);background:#fff}.icon-button:hover{background:var(--soft)}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:650;border-radius:7px;padding:5px 9px;background:var(--soft);color:var(--green);line-height:1.4}.badge.orange{background:var(--orange-soft);color:var(--orange)}.badge.outline{border:1px solid var(--line);background:transparent}.panel{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px}.divider{height:1px;background:var(--line);margin:22px 0}.notice{padding:14px 17px;border-radius:14px;background:var(--orange-soft);color:#875132;font-size:13px;line-height:1.8}.notice a{color:inherit}.error{color:var(--red);font-size:13px;line-height:1.8}.empty{padding:42px 22px;text-align:center;border:1px dashed #cbd6c1;border-radius:22px;background:#ffffff70}.empty .icon{width:35px;height:35px;margin-bottom:14px}.empty p{margin:12px auto 20px;max-width:420px;color:var(--muted);font-size:14px}.meter{display:flex;gap:4px}.meter i{display:block;width:15px;height:5px;border-radius:3px;background:#e5eade}.meter i.on{background:#729451}.meter i:nth-child(4).on,.meter i:nth-child(5).on{background:var(--green)}.skip{position:fixed;left:8px;top:-100px;z-index:100;background:#fff;padding:12px}.skip:focus{top:8px}
.shell{max-width:1240px;margin:auto;display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100dvh}.sidebar{padding:38px 26px;position:sticky;top:0;height:100dvh;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:10px}.brand img{width:40px;height:40px}.brand-name{font-size:17px;font-weight:750;letter-spacing:-.06em}.brand-sub{font-size:9px;color:var(--muted);letter-spacing:.12em;margin-top:2px}.side-nav{margin-top:52px;display:grid;gap:9px}.nav-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--muted);font-size:14px;padding:14px 17px;border-radius:13px;font-weight:650}.nav-link.active{background:var(--green);color:#fff}.nav-link:not(.active):hover{background:var(--soft)}.sidebar-footer{margin-top:auto;padding-top:30px}.sidebar-note{font-size:11px;line-height:2;color:var(--muted);padding:0 12px 22px}.profile-button{width:100%;text-align:left;display:flex;align-items:center;gap:9px;padding:10px;border-top:1px solid var(--line);padding-top:20px}.avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#e6eccf;font-size:13px}.stage{min-width:0;padding:30px 50px 60px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:38px;min-height:48px}.topbar-left{font-size:12px;color:var(--muted);display:flex;gap:9px;align-items:center}.topbar .mobile-brand{display:none}.topbar .button{font-size:12px;min-height:43px;padding:10px 16px}.content{max-width:820px;margin:auto;animation:appear .2s ease}.page-heading{margin-bottom:26px}.page-heading .eyebrow{margin-bottom:8px}.page-heading p{margin-top:9px;color:var(--muted);font-size:14px}.bottom-nav{display:none}.boot{min-height:100dvh;display:grid;place-content:center;text-align:center;gap:18px;color:var(--muted)}.brand-mark{background:var(--green);color:var(--lime);border-radius:22px;width:65px;height:65px;display:grid;place-items:center;font:italic 45px Georgia;margin:auto}.loading{padding:70px 20px;text-align:center;color:var(--muted)}.spinner{width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite;display:inline-block;margin:0 10px -6px 0}
.hero{background:var(--green);color:#fff;padding:32px;border-radius:26px;overflow:hidden;position:relative}.hero .eyebrow{color:#d0deb5}.hero .hero-review-heading{font-size:28px;line-height:1.6;letter-spacing:-.06em;margin:13px 0 7px}.hero p{font-size:13px;color:#dbe6da;max-width:350px}.hero .button{margin-top:24px;background:var(--lime);color:var(--green-dark);padding:14px 24px}.hero .button:hover{background:#e6f3c5}.hero-art{position:absolute;right:32px;top:32px;width:170px;height:170px;opacity:.95;pointer-events:none}.hero-art .orbit{position:absolute;width:146px;height:146px;border:1px solid #caddb338;border-radius:50%;top:9px;right:6px}.hero-art .mini-card{position:absolute;background:#fcfdf3;color:var(--ink);width:102px;height:133px;border-radius:13px;right:10px;top:22px;transform:rotate(13deg);padding:20px 14px;box-shadow:0 6px 12px #102a2420}.hero-art .mini-card.back{background:#a4bc8b;transform:rotate(-12deg);right:32px;top:15px}.mini-card b{font:italic 22px Georgia}.mini-line{height:3px;background:#c4d2b7;width:54px;margin-top:15px;border-radius:3px}.mini-line.short{width:32px;margin-top:8px}.mini-dots{display:flex;gap:5px;margin-top:21px}.mini-dots i{width:7px;height:7px;border-radius:50%;background:#b6cd85}.spark{position:absolute;font:32px Georgia;color:var(--lime);left:0;bottom:0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:17px 0 30px}.stat{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px}.stat-value{font-size:26px;font-weight:650;letter-spacing:-.04em}.stat-value span{font-size:11px;margin-left:6px;font-weight:400;color:var(--muted)}.stat-label{font-size:11px;color:var(--muted);margin-top:5px}.theme-panel{background:#eef2e5;border:1px solid #dce4d0;border-radius:21px;padding:23px}.theme-icon{color:var(--green);width:36px;height:36px;background:#e0e9cd;display:grid;place-items:center;border-radius:12px}.theme-panel p{font-size:12px;color:var(--muted);margin:8px 0 16px}.inline-input{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #d5decb;border-radius:13px;padding:5px 6px 5px 13px}.inline-input:focus-within{outline:2px solid #93ac73}.inline-input input{border:0;background:transparent;min-width:0;flex:1;padding:6px;font-size:13px;outline:none;min-height:42px}.inline-input .button{border-radius:10px;min-height:40px;padding:8px 13px;white-space:nowrap;font-size:12px}.word-list{background:#fff;border-radius:20px;border:1px solid var(--line);overflow:hidden}.word-row{width:100%;text-decoration:none;color:inherit;display:flex;align-items:center;gap:14px;padding:19px 23px;text-align:left;border-bottom:1px solid #edf0e8}.word-row:last-child{border-bottom:0}.word-row:hover{background:#fafbf7}.word-row .word{font:24px Georgia;letter-spacing:-.02em}.word-row .meaning{color:var(--muted);font-size:12px;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:260px}.word-row .right{text-align:right;display:grid;justify-items:end;gap:9px}.word-row .arrow{color:#94a08e;width:15px}.word-symbol{width:42px;height:46px;background:var(--soft);border-radius:13px;display:grid;place-items:center;flex:none;color:var(--green)}.word-symbol.warm{background:var(--orange-soft);color:var(--orange)}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:17px}.search-field{position:relative;flex:1;min-width:150px}.search-field .icon{position:absolute;left:15px;top:15px;color:var(--muted);width:18px}.search-field input{padding-left:43px}.chips{display:flex;gap:8px;overflow-x:auto;padding:3px 1px 12px;scrollbar-width:none}.chip{white-space:nowrap;min-height:38px;border:1px solid var(--line);border-radius:30px;padding:7px 15px;font-size:12px;background:#fff;color:var(--muted)}.chip.active{background:var(--green);border-color:var(--green);color:#fff}.count-label{font-size:12px;color:var(--muted);margin:7px 0 15px}.back{margin:-8px 0 14px;color:var(--muted);font-size:12px;display:inline-flex;gap:6px;align-items:center;text-decoration:none;min-height:35px}.word-heading{margin:8px 0 5px;font:56px/1.25 Georgia;letter-spacing:-.04em;color:var(--green-dark)}.ipa{font-family:system-ui,sans-serif;font-size:15px;color:var(--muted);margin-right:8px}.word-definition{font-size:19px;font-weight:650;margin:19px 0 5px}.core{background:#f1f4e8;border-radius:16px;padding:17px 19px;margin-top:23px;display:flex;gap:12px;align-items:flex-start}.core .icon{color:#69854e;margin-top:4px}.core b{font-size:11px;letter-spacing:.03em}.core p{font-size:13px;margin-top:5px;color:#536749}.forms{display:flex;gap:6px;flex-wrap:wrap;margin-top:19px}.form-tab{border:1px solid var(--line);padding:9px 15px;border-radius:12px;display:grid;gap:3px;min-width:85px;text-align:left;background:#fff}.form-tab small{font-size:10px;color:var(--muted)}.form-tab b{font:18px Georgia}.form-tab.active{border-color:#8aa67a;background:var(--soft)}.progress-line{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:9px;margin-top:19px}.audio-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:16px}.audio-controls button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:11px;border:1px solid #dfe6d9;min-height:43px;padding:9px 13px;background:#fff;font-size:12px;color:var(--green);font-weight:650}.audio-controls button.play{background:var(--soft);border-color:var(--soft)}.audio-controls button.is-playing,.audio-controls button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.audio-controls .icon{width:16px;height:16px}.audio-wait{font-size:11px;color:var(--muted);margin-top:14px}.example{padding:23px 25px;margin-bottom:13px;border:1px solid var(--line);border-radius:20px;background:#fff}.example-top{display:flex;align-items:center;gap:10px;margin-bottom:14px}.example-number{font:italic 14px Georgia;color:#8a9d77}.example-purpose{font-size:11px;color:var(--muted)}.sentence{font:23px/1.55 Georgia;letter-spacing:-.015em}.sentence mark{color:var(--green);background:linear-gradient(transparent 62%,#e1ecbb 0);font-weight:bold;padding:0 1px}.translation{font-size:13px;line-height:1.9;margin-top:12px}.example details{margin-top:13px;border-top:1px solid #edf0e7;padding-top:10px}.example summary{font-size:12px;cursor:pointer;color:var(--muted);min-height:30px;line-height:30px}.example details p{font-size:12px;color:#576b4e;background:#f5f7ee;padding:12px 14px;border-radius:10px;line-height:1.9;margin:7px 0 2px}.example-tools{display:flex;align-items:center;justify-content:space-between;gap:6px}.example-tools .audio-controls{margin-top:12px}.example-tools .text-button{font-size:11px;margin-top:12px;white-space:nowrap}.note-area{width:100%;min-height:95px;background:#fff}.detail-footer{display:flex;justify-content:space-between;margin-top:22px;flex-wrap:wrap;gap:9px}.star.active{color:#ae6b32;background:var(--orange-soft)}
label{font-size:13px;font-weight:650;display:block;margin-bottom:8px}input,textarea,select{border:1px solid #d6dfcd;background:#fff;color:var(--ink);border-radius:12px;padding:12px 14px;width:100%;line-height:1.6}input::placeholder,textarea::placeholder{color:#8d9789}textarea{resize:vertical}select{cursor:pointer}input[type=checkbox]{width:19px;min-height:19px;accent-color:var(--green)}.field{margin-bottom:20px}.field:last-child{margin-bottom:0}.field .help{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .field{margin-bottom:0}.check-label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:400;line-height:1.8}.segmented{display:flex;background:var(--soft);border-radius:12px;padding:4px;gap:3px}.segmented button{flex:1;border-radius:9px;min-height:42px;font-size:12px}.segmented button.active{background:#fff;box-shadow:0 2px 6px #1d362710;font-weight:700}.review-modes{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px;text-align:left;min-height:86px}.mode b{font-size:13px;display:block;margin:7px 0 3px}.mode small{font-size:10px;color:var(--muted)}.mode.active{border-color:#739061;background:#f0f5e4;box-shadow:inset 0 0 0 1px #739061}.mode .icon{height:19px;width:19px;color:var(--green)}.review-start{margin-top:23px}.theme-selected{padding:16px;background:#eff4e6;border-radius:14px;margin-bottom:20px}.quiz-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;font-size:12px;color:var(--muted)}progress{width:100%;height:5px;appearance:none;border:0;border-radius:5px;overflow:hidden;background:var(--line);display:block}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:#819f54;border-radius:5px}progress::-moz-progress-bar{background:#819f54}.quiz-card{padding:36px 30px;background:#fff;border:1px solid var(--line);border-radius:24px;margin-top:25px}.quiz-prompt{font:30px/1.6 Georgia;text-align:center;margin:28px 0}.quiz-prompt.japanese{font:600 20px/1.8 inherit}.quiz-card .audio-controls{justify-content:center}.quiz-options{display:grid;gap:10px;margin-top:26px}.quiz-option{border:1px solid var(--line);border-radius:14px;text-align:left;display:flex;align-items:center;gap:14px;padding:15px 18px;background:#fff;font-size:14px;min-height:59px}.quiz-option span{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:7px;width:26px;height:26px;display:grid;place-items:center;flex:none}.quiz-option:hover{background:var(--soft);border-color:#a9bc94}.hint-box{background:var(--soft);padding:17px;border-radius:14px;margin-top:16px;font-size:13px}.hint-box p+p{margin-top:8px;color:var(--muted);font-size:12px}.feedback{background:#eaf2de;border:1px solid #d3e2bd;border-radius:18px;padding:22px;margin-top:18px}.feedback.wrong{background:var(--orange-soft);border-color:#efdcc9}.feedback-title{display:flex;align-items:center;gap:8px;font-weight:700}.feedback .answer{font-size:20px;margin:12px 0 6px}.feedback p{font-size:13px}.result-circle{width:116px;height:116px;border:8px solid #e1ebcf;border-top-color:var(--green);border-right-color:var(--green);border-radius:50%;display:grid;place-content:center;margin:0 auto 22px}.result-circle b{font-size:35px;letter-spacing:-.06em}.result-circle small{font-size:10px;color:var(--muted)}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:25px 0}.result-grid div{background:var(--soft);padding:17px 8px;border-radius:14px}.result-grid b{display:block;font-size:23px;margin-bottom:4px}.result-grid small{font-size:10px}.budget-total{font-size:32px;margin:17px 0 8px;font-weight:650}.budget-total span{font-size:13px;color:var(--muted);font-weight:400}.definition-list{display:grid;grid-template-columns:1fr auto;gap:13px;font-size:12px;margin-top:20px}.definition-list dd{margin:0}.settings-list{display:grid;gap:20px}.settings-list .panel h2{font-size:18px;margin-bottom:22px}.admin-table{width:100%;border-collapse:collapse;font-size:11px}.admin-table th,.admin-table td{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line)}.table-scroll{overflow:auto}.admin-item{border-bottom:1px solid var(--line);padding:17px 0;font-size:12px}.admin-item p{font-size:12px}.admin-item .button{font-size:11px;padding:8px 12px;min-height:37px}.admin-item .row{flex-wrap:wrap}
dialog{max-width:480px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:24px;padding:0;color:var(--ink);background:var(--paper);box-shadow:0 24px 100px #152c3830;max-height:calc(100dvh - 50px)}dialog::backdrop{background:#19332966;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 25px 10px}.modal-body{padding:12px 25px 27px}.modal-body p{font-size:13px;color:var(--muted);margin-bottom:18px}.modal-body .button{margin-top:4px}.modal-body .error{margin-top:12px}.modal-body .big-input{font:30px Georgia;letter-spacing:-.02em;padding:17px}.success-icon{height:65px;width:65px;border-radius:50%;background:#e0ebcb;margin:0 auto 20px;display:grid;place-items:center;color:var(--green)}.success-icon .icon{width:30px;height:30px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#203e32;color:#fff;border-radius:13px;padding:13px 20px;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 32px);box-shadow:0 5px 25px #193a3025;line-height:1.7}#toast.show{opacity:1;transform:translate(-50%,0)}.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr}.auth-story{background:#eaf0de;padding:60px max(40px,9vw);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-story .brand{position:absolute;top:40px;left:50px}.auth-story h1{font-size:clamp(34px,4.2vw,55px);line-height:1.6;letter-spacing:-.075em;margin:22px 0}.auth-story p{font-size:14px;color:var(--muted);max-width:340px}.story-card{margin-top:38px;padding:24px 28px;border:1px solid #d0dcc2;background:#ffffffbd;border-radius:22px;max-width:360px;transform:rotate(-3deg);box-shadow:0 15px 30px #29453308}.story-card .english{font-size:29px;margin:8px 0}.story-card small{font-size:11px;color:var(--muted)}.auth-form{display:grid;place-content:center;padding:50px 35px}.auth-inner{max-width:360px;width:100%;min-width:290px}.auth-inner h2{font-size:26px;margin-bottom:10px}.auth-inner>p{font-size:13px;color:var(--muted);margin-bottom:27px}.auth-links{display:flex;justify-content:space-between;gap:9px;margin-top:15px}.auth-demo{border-top:1px solid var(--line);padding-top:20px;margin-top:23px}.auth-logo-mobile{display:none}.status-dot{width:6px;height:6px;background:#94b168;border-radius:50%;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1100px){.home-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;align-items:start}.home-bottom .section-title{margin-top:0}.home-bottom .theme-panel{margin-top:0}.home-bottom .word-row{padding:18px}.home-bottom .word-symbol{display:none}.home-bottom .word-row .meaning{max-width:170px}}
@media(max-width:1050px){.shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:30px 17px}.brand-name{font-size:15px}.stage{padding:27px 32px 50px}.hero-art{right:20px;width:145px;transform:scale(.87);transform-origin:right top}.hero .hero-review-heading{font-size:25px}.hero p{max-width:290px}}
@media(max-width:760px){.shell{display:block}.sidebar{display:none}.stage{padding:17px 20px calc(110px + env(safe-area-inset-bottom))}.topbar{margin-bottom:30px}.topbar .topbar-left{display:none}.topbar .mobile-brand{display:flex}.brand img{width:34px;height:34px}.brand-name{font-size:15px}.brand-sub{font-size:8px}.topbar .button{min-height:40px;padding:9px 12px;font-size:11px;border-radius:12px}.topbar .button .icon{width:16px;height:16px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;align-items:center;justify-content:space-around;padding:9px 22px calc(9px + env(safe-area-inset-bottom));background:#fcfdf9f5;backdrop-filter:blur(15px);border-top:1px solid var(--line)}.bottom-nav .nav-link{display:grid;justify-items:center;gap:4px;min-width:84px;min-height:53px;font-size:10px;padding:6px 16px;border-radius:15px}.bottom-nav .nav-link.active{background:var(--soft);color:var(--green)}.bottom-nav .icon{width:22px;height:22px}.page-heading{margin-bottom:22px}h1{font-size:30px}.page-heading p{font-size:12px;margin-top:7px}.eyebrow{font-size:10px}.hero{padding:25px;border-radius:23px}.hero .hero-review-heading{font-size:25px;max-width:200px;margin-top:12px}.hero p{font-size:11px;max-width:205px}.hero-art{right:10px;top:26px;transform:scale(.74);width:140px}.hero .button{margin-top:22px;font-size:13px;padding:13px 19px}.stats-grid{gap:8px;margin-top:13px;margin-bottom:28px}.stat{padding:16px 13px;border-radius:15px}.stat-value{font-size:25px}.stat-value span{font-size:10px;margin-left:3px}.stat-label{font-size:10px}.section-title h2{font-size:18px}.panel{padding:22px;border-radius:21px}.theme-panel{padding:20px;margin-top:25px}.word-row{padding:18px 17px;gap:11px}.word-row .word{font-size:23px}.word-row .meaning{font-size:11px;max-width:170px}.word-symbol{width:37px;height:41px;border-radius:11px}.word-symbol .icon{width:18px}.word-row .arrow{display:none}.word-row .badge{font-size:10px;padding:4px 7px}.word-row .right{gap:8px}.theme-panel h3{font-size:16px}.word-heading{font-size:48px}.word-definition{font-size:18px}.core{padding:15px;margin-top:20px}.core p{font-size:12px}.example{padding:20px}.sentence{font-size:22px}.example-tools{align-items:flex-start;flex-wrap:wrap}.audio-controls{gap:6px}.audio-controls button{padding:9px 10px;font-size:11px}.audio-controls .icon{width:15px;height:15px}.example-tools .text-button{margin-top:7px;min-height:33px}.form-tab{flex:1;padding:10px 12px;min-width:70px}.form-tab b{font-size:17px}.form-tab small{font-size:9px}.core .icon{width:18px;height:18px}.quiz-card{padding:26px 21px}.quiz-prompt{font-size:27px;overflow-wrap:anywhere}.quiz-option{font-size:13px}.quiz-top{font-size:11px}.quiz-top .text-button{font-size:11px}.review-modes{gap:8px}.mode{padding:13px}.mode b{font-size:12px}.mode small{font-size:10px}.form-grid{gap:12px}.form-grid label{font-size:11px}.form-grid select{font-size:12px;padding:12px 10px}.result-grid small{font-size:9px}#toast{bottom:90px;font-size:12px}.auth-layout{display:block}.auth-story{display:none}.auth-form{min-height:100dvh;padding:30px 24px 55px}.auth-inner{min-width:0;max-width:380px}.auth-logo-mobile{display:flex;margin-bottom:44px}.auth-inner h2{font-size:27px}.auth-inner>p{font-size:12px}.toolbar{gap:9px}.toolbar select{width:100px;font-size:12px}.toolbar .search-field input{font-size:12px}.detail-footer .button{font-size:12px;padding:12px 15px}.modal-head{padding:19px 20px 9px}.modal-body{padding:10px 20px 24px}.modal-head h2{font-size:20px}dialog{max-height:calc(100dvh - 30px)}.hero .eyebrow{font-size:9px}}
@media(max-width:370px){.stage{padding-left:15px;padding-right:15px}.hero{padding:22px}.hero-art{right:-2px;transform:scale(.62)}.hero .hero-review-heading{font-size:23px}.hero p{max-width:190px}.brand-name{font-size:14px}.topbar .button{padding:8px}.word-symbol{display:none}.word-row .meaning{max-width:170px}.form-grid{grid-template-columns:1fr}.example{padding:18px}.sentence{font-size:20px}.audio-controls button{padding:8px}.stat{padding:14px 10px}}
.account-change{border-top:1px solid var(--line);padding-top:15px}.account-change summary{cursor:pointer;color:var(--green);font-size:13px;font-weight:700;min-height:44px;display:flex;align-items:center}
.example-add{margin-top:12px}
.quiz-prompt.japanese{font-family:inherit;font-size:20px;font-weight:600;line-height:1.8}
@media(min-width:761px){.mobile-settings{display:none}}
@media(max-width:760px){input,textarea,select,.inline-input input,.toolbar .search-field input,.toolbar select,.form-grid select{font-size:16px}.chip,.text-button,.audio-controls button,.topbar .button{min-height:44px}.progress-line{flex-wrap:wrap}.quiz-prompt.japanese{font-family:inherit;font-size:20px;font-weight:600;line-height:1.8}}
@media(max-width:370px){.brand-name{font-size:12px}.brand-sub{font-size:7px}.brand img{width:30px;height:30px}.brand{gap:7px}.topbar{gap:5px}.topbar .button{font-size:10px;padding:8px}.topbar .row{gap:5px}.topbar .icon-button{width:44px}.section-title h2{font-size:16px}.inline-input{flex-wrap:wrap}.inline-input input{width:calc(100% - 80px)}.review-modes{grid-template-columns:1fr}}
.word-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.word-title .word{overflow-wrap:anywhere}.saved-flag{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#875132;white-space:nowrap}.saved-flag .icon{width:14px;height:14px;fill:#f6e4cd}.grade-meta,.mastery{display:inline-flex;align-items:baseline;gap:7px;white-space:nowrap;font-size:11px;color:var(--muted)}.grade-meta b,.mastery b{font-weight:600;color:var(--ink)}.word-row .right{flex-shrink:0}.example-top{flex-wrap:wrap}.example-top .mastery{margin-left:auto}.hero{min-height:185px}.hero .hero-review-heading{margin-top:0}.audio-player{min-width:0}.audio-controls{gap:6px}.audio-controls button{min-height:44px}.audio-controls button[aria-pressed=true]{background:#fff;color:var(--green);border-color:#dfe6d9}.audio-controls button.is-selected{background:#eef3e6;border-color:#759b60;box-shadow:inset 0 0 0 1px #759b60}.audio-controls button[data-action=repeat-audio][aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.audio-controls button.audio-stop{width:44px;padding:10px;flex:none}.audio-controls button.audio-stop:disabled{cursor:default;opacity:.35}.repeat-state{font-size:9px;letter-spacing:.02em}.audio-status{display:block;font-size:10px;color:var(--muted);margin-top:6px}.audio-status:empty{display:none}
@media(max-width:760px){.audio-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.55fr) 44px}.audio-controls button{padding:9px 4px;gap:3px;white-space:nowrap}.audio-controls button[data-action=repeat-audio] .icon{display:none}.example-tools .audio-player{width:100%}.word-title{gap:6px}.grade-meta,.mastery{font-size:10px;gap:5px}}
@media(max-width:370px){.word-row{padding:16px 13px;gap:9px}.word-title .word{font-size:22px}.word-row .right{gap:9px}.grade-meta{display:grid;gap:2px;justify-items:end}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.example-explanation{margin-top:10px}

.word-senses{display:flex;flex-wrap:wrap;gap:5px 20px;align-items:baseline}.word-sense{display:inline-flex;gap:7px;align-items:baseline}.word-sense small{font-size:11px;font-weight:500;color:var(--muted)}
.word-row .meaning{max-width:390px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.meaning-add{display:inline-flex;align-items:center;gap:5px;margin-top:5px;font-size:12px}@media(max-width:760px){.word-row .meaning{max-width:190px}}

.audio-controls{display:flex;align-items:flex-start;gap:14px;flex-wrap:nowrap;margin-top:17px}.audio-control{display:grid;justify-items:center;gap:5px;min-width:52px;color:var(--muted);font-size:10px;line-height:1.3}.audio-controls button.audio-toggle{display:grid;place-items:center;width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;border:1px solid #dce5d5;background:#fff;color:var(--green);box-shadow:0 2px 6px #1d36270b;transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s,opacity .18s}.audio-controls button.audio-toggle:hover:not(:disabled){border-color:#89a879;box-shadow:0 4px 11px #1d362719;transform:translateY(-1px)}.audio-controls button.audio-toggle:focus-visible{outline:3px solid #a9c58a;outline-offset:3px}.audio-controls button.audio-toggle .icon{display:block;width:19px;height:19px}.audio-controls button.audio-toggle[data-action=play][aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 4px 12px #1d36272b}.audio-controls button.audio-repeat[aria-pressed=true]{background:#e8f1df;border-color:#86a66e;color:var(--green-dark)}.audio-controls button.audio-toggle:disabled{opacity:.35;cursor:default;box-shadow:none;transform:none}.audio-speed-mark{font-size:13px;font-weight:750;letter-spacing:-.04em}.audio-status{display:block;font-size:10px;color:var(--muted);margin-top:5px;min-height:0}.audio-status:empty{display:none}

.audio-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.admin-side-nav{margin-top:32px;min-height:0;overflow-y:auto;padding-right:4px}
.admin-side-nav .nav-link{padding:10px 12px;min-height:43px;font-size:12px;gap:10px}
.admin-side-nav .icon{width:18px;height:18px}
.admin-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-menu-link{display:flex;align-items:center;gap:13px;padding:19px;border:1px solid var(--line);border-radius:18px;background:var(--white);box-shadow:var(--shadow);color:var(--ink);text-decoration:none;min-height:92px}
.admin-menu-link:hover{border-color:#a9bc94;background:#fafff5}
.admin-menu-link>.icon:first-child{color:var(--green);width:22px;height:22px}
.admin-menu-link>.icon:last-child{color:var(--muted);width:16px;height:16px}
.admin-menu-link span{min-width:0;flex:1}
.admin-menu-link b{display:block;font-size:14px;line-height:1.4}
.admin-menu-link small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}
.settings-list[hidden],.settings-list>[hidden]{display:none!important}
.admin-back{margin:0 0 16px}
.admin-section-title{font-size:25px;line-height:1.4;margin-bottom:22px}
.admin-detail-panel .row>.admin-section-title{margin-bottom:0}
@media(max-width:760px){.admin-menu{grid-template-columns:1fr;gap:10px}.admin-menu-link{min-height:76px;padding:15px 17px}.admin-detail-panel .form-grid{grid-template-columns:1fr}.admin-section-title{font-size:22px}}
.verb-forms{margin-top:22px}.verb-forms-title{font-size:11px;font-weight:700;color:var(--muted);margin:0 0 8px}.verb-forms .forms{margin-top:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.verb-forms .form-tab{min-width:0;width:100%;padding:11px 12px;min-height:64px;transition:background .15s,border-color .15s}.verb-forms .form-tab:hover{border-color:#8aa67a}.verb-forms .form-tab.active{box-shadow:inset 0 0 0 1px #8aa67a}.verb-forms .form-tab b{overflow-wrap:anywhere}.verb-forms .form-tab small{white-space:nowrap}
.verb-inflections{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.verb-inflection{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--paper)}.verb-inflections small{font-size:11px;color:var(--muted)}.verb-inflections b{font-size:14px;font-weight:600;color:var(--ink)}
@media(max-width:400px){.verb-forms .form-tab{padding:9px 8px}.verb-forms .form-tab b{font-size:16px}.verb-forms .form-tab small{font-size:9px}}
.card-actions{display:grid;gap:11px;margin-top:25px;padding:15px;border:1px solid var(--line);border-radius:20px;background:#f8faf5}.card-actions>.button{width:100%;min-height:50px;justify-content:center;font-size:14px}.card-actions-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card-action-button{min-width:0;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--green-dark);font-size:13px;font-weight:650;white-space:nowrap}.card-action-button:hover{background:var(--soft);border-color:#a8b99b}.card-action-button .icon{width:16px;height:16px;flex:none}.card-manage-list{display:grid;gap:9px}.card-manage-item{width:100%;min-height:67px;display:flex;align-items:center;gap:13px;padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--green-dark);text-align:left}.card-manage-item:hover{background:#f8faf5}.card-manage-item>span{flex:1;min-width:0}.card-manage-item b{font-size:13px}.card-manage-item small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}.card-manage-item>.icon{width:19px;height:19px;flex:none}.card-manage-item>.icon:last-child{width:14px;height:14px;color:var(--muted)}.card-manage-item.danger{color:#a63f37}.card-manage-item:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:360px){.card-actions{padding:11px}.card-action-button{gap:5px;padding:8px 6px;font-size:12px}}
.admin-job-reason{margin-top:9px;color:var(--ink);line-height:1.6;overflow-wrap:anywhere}
.admin-jobs-search{margin:18px 0 6px}
.word-kind{display:inline-flex;align-items:center;max-width:100%;padding:4px 8px;border:1px solid #dce5d3;border-radius:7px;background:#f5f8f0;color:#365a47;font-size:10px;line-height:1.2;font-weight:600;white-space:nowrap}
.word-extra-status{display:inline-flex;margin-top:8px;padding:4px 9px;border-radius:999px;background:#f1f4e8;color:var(--green-dark);font-size:11px;font-weight:700;line-height:1.5}
.extra-job-notice{margin:15px 0 10px;padding:14px 17px;border:1px solid #dce5d3;border-radius:15px;background:#f5f8f0;color:var(--green-dark)}
.extra-job-notice b{font-size:13px}.extra-job-notice p{margin-top:3px;font-size:12px;line-height:1.7}
.extra-job-notice.needs-attention{border-color:#ead6c3;background:var(--orange-soft);color:#875132}

.example-explanation .translation{font-size:16px;font-weight:600;line-height:1.8;color:var(--ink)}
.example-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}
.example-tools .audio-player{width:auto;min-width:0}
.example-delete-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-top:12px;min-height:44px;padding:7px 9px;border-radius:9px;color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap}
.example-delete-button .icon{width:15px;height:15px}.example-delete-button:hover,.example-delete-button:focus-visible{background:#fdf0ed;color:#a63f37}
#extra-form>button[type=submit]{margin-top:14px}
@media(max-width:760px){.example-tools .audio-controls{gap:8px}.example-tools .audio-control{min-width:0}.example-tools .audio-controls button.audio-toggle{width:clamp(42px,12vw,52px);height:clamp(42px,12vw,52px);min-height:42px}.example-delete-button{padding:7px 5px;min-width:44px}}
@media(max-width:760px){.example-explanation .translation{font-size:17px}}

.quiz-card .quiz-word-kind{display:table;margin:-14px auto 14px;padding:5px 13px;border-radius:999px;background:var(--soft);color:var(--green-dark);font-size:14px;font-weight:700;line-height:1.5}
.quiz-card .hint-box.center>p:first-child{font-size:20px;font-weight:700;line-height:1.7;color:var(--ink)}
@media(max-width:760px){.quiz-card .quiz-word-kind{font-size:15px}.quiz-card .hint-box.center>p:first-child{font-size:22px}}

.badge.outline.verb-kind,.word-kind.verb-kind{border-color:#e9c4be;background:#fdf0ed;color:#a63f37}
#main:focus{outline:none}
.word-kinds,.card-labels{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
.word-panel .badge.grade-badge{background:#fff}
.review-result{padding:38px 28px}
.result-summary{font-size:27px;font-weight:700;line-height:1.5;color:var(--green-dark);margin:4px 0 32px}
.result-bar{height:10px;max-width:340px;margin:-11px auto 30px;border-radius:999px;background:#e4eadc;overflow:hidden}
.result-bar span{display:block;height:100%;border-radius:inherit;background:var(--green)}
@media(max-width:760px){.review-result{padding:34px 22px}.result-summary{font-size:24px}}
.hero .hero-review-line{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.hero .hero-review-date{font-size:13px;font-weight:750;line-height:1.4;letter-spacing:0;white-space:nowrap;color:#dbe6da}.hero .hero-review-label{display:block;font-size:15px;font-weight:600;line-height:1.4;letter-spacing:0;color:#dbe6da}
.hero .hero-review-count{display:block;font-size:39px;line-height:1.25;letter-spacing:-.04em;margin-top:3px}
.hero .hero-review-count small{font-size:18px;font-weight:600;margin-left:5px;letter-spacing:0}
.home-library-summary{background:#fff;border:1px solid var(--line);border-radius:17px;padding:19px 23px;margin:17px 0 30px}
.home-library-title{font-size:12px;font-weight:650;color:var(--muted);margin-bottom:9px}
.home-library-counts{display:flex;align-items:baseline;gap:20px}
.home-library-counts>div{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.home-library-counts strong{font-size:29px;line-height:1.2;color:var(--green-dark);letter-spacing:-.04em}
.home-library-counts span{font-size:12px;color:var(--muted)}
.home-library-counts .home-library-learned{border-left:1px solid var(--line);padding-left:20px}
@media(max-width:760px){.hero .hero-review-count{font-size:34px}.home-library-summary{padding:17px 18px;margin:13px 0 28px}.home-library-counts{gap:13px}.home-library-counts .home-library-learned{padding-left:13px}.home-library-counts strong{font-size:26px}.home-library-counts span{font-size:11px}}
@media(max-width:370px){.home-library-counts{gap:9px}.home-library-counts .home-library-learned{padding-left:9px}.home-library-counts strong{font-size:23px}.home-library-counts span{font-size:10px}}
.growth-highlights{text-align:left;max-width:420px;margin:0 auto 27px}
.growth-highlights-title{font-size:12px;font-weight:700;color:var(--green-dark);margin:0 0 9px}
.growth-item{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:13px;background:var(--soft)}
.growth-item+.growth-item{margin-top:8px}
.growth-item b{min-width:45px;white-space:nowrap;font-size:20px;line-height:1.25;color:var(--green-dark)}
.growth-item span{font-size:13px;line-height:1.6}
@media(max-width:760px){.growth-item{padding:12px 13px}.growth-item span{font-size:12px}}
.admin-cleanup{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:18px}
.admin-cleanup .field{max-width:420px;margin:14px 0 0}
.admin-cleanup .button{min-height:42px}
.api-status{display:flex;align-items:center;gap:14px;padding:18px 20px;border:1px solid #cbdcc4;border-radius:16px;background:#edf5e9;color:var(--green-dark)}
.api-status-dot{width:12px;height:12px;border-radius:50%;background:#548b53;box-shadow:0 0 0 5px #dbead3;flex:none}
.api-status b{display:block;font-size:17px;line-height:1.4}
.api-status p{font-size:12px;line-height:1.6;margin-top:3px}
.api-status-paused,.api-status-limit{background:var(--orange-soft);border-color:#eed9c4;color:#875132}
.api-status-paused .api-status-dot,.api-status-limit .api-status-dot{background:#bd7949;box-shadow:0 0 0 5px #f5e2ce}
.api-status-setup{background:#f8eded;border-color:#edcecb;color:#923f39}
.api-status-setup .api-status-dot{background:#b34d43;box-shadow:0 0 0 5px #efd8d4}
.api-activity{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0 26px}
.api-activity>div{display:flex;align-items:baseline;justify-content:center;gap:7px;min-width:0;padding:14px 8px;border:1px solid var(--line);border-radius:13px;background:#fafbf8}
.api-activity b{font-size:23px;line-height:1.2;color:var(--green-dark)}
.api-activity span{font-size:12px;color:var(--muted);white-space:nowrap}
.api-budget-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;margin-bottom:16px}
.api-budget-title h3{font-size:17px}
.api-budget-list{display:grid;gap:13px}
.api-budget-meter{border:1px solid var(--line);border-radius:15px;background:#fff;padding:15px 17px}
.api-budget-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px}
.api-budget-heading b{font-size:14px}.api-budget-heading span{font-weight:700;color:var(--green-dark)}
.api-budget-track{display:block;width:100%;height:12px;margin:12px 0 9px;border-radius:99px;background:#e8ede4;overflow:hidden}
.api-budget-spent{fill:#4d805c}.api-budget-reserved{fill:#dca569}
.api-budget-detail{font-size:12px;color:var(--muted);line-height:1.6}
.api-budget-detail span{padding:0 3px;color:#9aac9d}
.api-budget-help{margin-top:13px;line-height:1.7}
.api-budget-settings,.api-budget-history{border-top:1px solid var(--line);margin-top:23px;padding-top:15px}
.api-budget-history{margin-top:15px}
.api-budget-settings summary,.api-budget-history summary{cursor:pointer;color:var(--green-dark);font-size:13px;font-weight:700;line-height:1.5;padding:8px 0}
.api-budget-settings summary:hover,.api-budget-history summary:hover{color:var(--green)}
.api-history-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:14px 0 8px}
.api-history-legend span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650}
.api-history-key{display:inline-block;width:11px;height:11px;border-radius:3px}
.api-history-key-global{background:#315e47}.api-history-key-text{background:#d49b58}.api-history-key-speech{background:#648ab2}
.api-history-note{line-height:1.7;margin-bottom:10px}
.api-history-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:13px;background:#fff;padding:8px 6px 2px}
.api-history-chart{display:block;max-width:none}
.api-history-grid{stroke:#e3e9df;stroke-width:1}
.api-history-tick,.api-history-month{fill:var(--muted);font-size:11px;font-family:inherit}
.api-history-bar.api-history-0{fill:#315e47}.api-history-bar.api-history-1{fill:#d49b58}.api-history-bar.api-history-2{fill:#648ab2}
.api-history-held{opacity:.42}
.topbar{max-width:820px;margin-left:auto;margin-right:auto}
.hero-review-history{position:absolute;left:32px;top:55px;width:min(204px,calc(100% - 140px));height:64px;pointer-events:none;z-index:0}
.hero-review-history rect{fill:#91b69d;opacity:.66}
.hero-review-history rect.today{fill:#d0e2a8;opacity:.95}
.hero-review-history rect.empty{opacity:.22}
.hero-review-history rect.today.empty{opacity:.5}
.hero .hero-review-heading,.hero>.button,.hero>p{position:relative;z-index:2}
.hero-art{z-index:1}
@media(max-width:760px){.hero-review-history{left:25px;top:52px;width:min(190px,calc(100% - 140px));height:54px}}
@media(max-width:370px){.hero-review-history{left:22px;top:50px;width:calc(100% - 135px);height:52px}}
@media(max-width:760px){.api-status{padding:16px}.api-activity{gap:6px}.api-activity>div{display:grid;justify-items:center;gap:2px;padding:11px 4px}.api-activity b{font-size:21px}.api-activity span{font-size:11px}.api-budget-meter{padding:13px}.api-budget-heading{font-size:12px}.api-budget-detail{font-size:11px}}
.admin-users-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:17px 0 7px;font-size:12px}
.admin-users-toolbar label{font-weight:700;white-space:nowrap}.admin-users-toolbar select{width:auto;min-width:165px;margin:0;padding:9px 30px 9px 10px;font-size:12px}.admin-users-toolbar #admin-users-count{margin-left:auto}
.admin-user-row{padding:12px 0;border-bottom:1px solid var(--line)}
.admin-user-main{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px}
.admin-user-identity{min-width:0}.admin-user-identity b{font-size:13px}.admin-user-identity small,.admin-user-cost small{display:block;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-user-identity small{margin-top:2px}
.admin-user-disabled{margin-left:6px;color:#a64d42;font-size:10px;font-weight:700}.admin-user-cost{text-align:right;white-space:nowrap}.admin-user-cost b{display:block;color:var(--green-dark);font-size:13px}
.admin-user-settings{padding:7px 10px!important;min-height:36px!important;font-size:11px!important}.admin-user-meter{display:block;width:100%;height:7px;margin-top:8px;border-radius:99px;background:#e8ede4;overflow:hidden}.admin-user-meter-spent{fill:#4d805c}.admin-user-meter-reserved{fill:#dca569}.admin-user-reserved{font-size:10px;color:var(--muted);text-align:right;margin-top:3px}
.admin-users-more{display:block;margin:16px auto 0}.admin-users-more[hidden]{display:none}
@media(max-width:500px){.admin-users-toolbar select{font-size:16px}.admin-user-main{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}.admin-user-identity{grid-row:1 / 3}.admin-user-cost{grid-column:2;grid-row:1}.admin-user-settings{grid-column:2;grid-row:2;justify-self:end}.admin-user-cost b{font-size:12px}.admin-user-cost small{font-size:10px}}
.library-count-row{margin:5px 0 11px;flex-wrap:wrap}.library-count-row .count-label{margin:0}.library-count-row .text-button{flex:none}
.search-field input{padding-right:52px}.search-field .search-clear{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px;display:grid;place-items:center;border-radius:10px;color:var(--muted)}.search-field .search-clear:hover{background:var(--soft);color:var(--green)}.search-field .search-clear[hidden]{display:none}.search-field .search-clear .icon{position:static;width:17px;height:17px}
@media(max-width:760px){.quiz-prompt.quiz-example-prompt.is-multiline{text-align:left}}
.quiz-target{margin-top:14px;padding-top:12px;border-top:1px solid #d9e4cf}
.quiz-card .quiz-target-word{font-size:20px;font-weight:400;line-height:1.5;color:var(--green-dark)}
.quiz-target-pos-list{display:inline-flex;gap:4px;margin-left:9px;vertical-align:middle;white-space:nowrap}
.quiz-target-pos{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #b7c4b0;border-radius:3px;background:#fff;color:var(--green-dark);font-size:13px;font-weight:650;line-height:1}
.quiz-target-pos.verb-kind{border-color:#e9c4be;background:#fdf0ed;color:#a63f37}
.quiz-card .quiz-target-meaning{font-size:17px;font-weight:400;line-height:1.6;color:var(--ink);margin-top:4px}
@media(max-width:760px){.quiz-card .quiz-target{text-align:left}.quiz-card .quiz-target-word{font-size:22px}.quiz-card .quiz-target-meaning{font-size:18px}}
@media(min-width:761px){.quiz-mobile-break{display:none}}
@media(max-width:760px){.quiz-card .quiz-example-answer{text-align:left}}
.pronunciation-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.pronunciation-row .ipa{min-width:0;margin-right:0;overflow-wrap:anywhere}
.button.focus-review-button{flex:none;min-height:44px;padding:9px 15px;border-radius:13px;font-size:13px;white-space:nowrap}
.phrase-mode .phrase-card .focus-review-button:hover{background:#f4d5d8;border-color:#dca8ac;color:var(--green-dark)}
.phrase-mode .phrase-card .focus-review-button:focus-visible{outline-color:#a96069}
.phrase-focus-row{display:flex;justify-content:flex-end;margin-top:8px}
.detailed-explanation-slot{margin-top:14px;padding-top:10px;border-top:1px solid #e0e8d9;text-align:left}
.detailed-explanation-action{display:inline-flex;align-items:center;gap:5px;min-height:40px;font-size:13px;font-weight:650;color:var(--green-dark)}
.detailed-explanation-action .icon{width:16px;height:16px}
.detailed-explanation-status{font-size:13px;line-height:1.7;color:var(--muted)}
.detailed-explanation{margin-top:7px;padding:14px 16px;border-radius:12px;background:#f2f6ec;text-align:left}
.detailed-explanation p{font-size:15px;line-height:1.85;color:var(--ink);font-weight:400;overflow-wrap:anywhere}
.quiz-card .detailed-explanation-slot{margin-top:16px}
@media(max-width:760px){
  .topbar{justify-content:flex-start}
  .topbar .mobile-brand{flex:0 0 auto}
  .topbar-actions{flex:1;min-width:0;margin-left:6px;justify-content:space-between;gap:4px}
  .topbar-actions>.study-mode-toggle,.topbar-actions>.topbar-add{flex:0 0 auto}
  .topbar .icon-button.mobile-settings{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;max-height:44px;aspect-ratio:1;padding:0;border-radius:50%}
}
@media(max-width:400px){
  .topbar .icon-button.mobile-settings{flex-basis:40px;width:40px;min-width:40px;height:40px;min-height:40px;max-height:40px}
}
.quick-review-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.quick-review-settings-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.quick-review-settings-card h3{font-size:15px;margin-bottom:16px;color:var(--green-dark)}
.quick-review-settings-card .field+.field{margin-top:16px}
.quick-review-fixed-mode{display:flex;align-items:center;min-height:46px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:13px}
.phrase-review-modes{grid-template-columns:minmax(0,1fr)}
.phrase-review-modes .mode{width:100%}
.phrase-mode #review-count:focus{border-color:#a96069;outline:3px solid #a96069;outline-offset:4px}
@media(max-width:760px){
  .topbar-actions{justify-content:flex-start;gap:7px}
  .topbar-actions>.topbar-add{margin-left:auto}
  .topbar-actions>.study-mode-toggle+.mobile-settings{margin-left:auto}
  .quick-review-settings-grid{grid-template-columns:minmax(0,1fr)}
}
#modal.phrase-modal{--green:#76252d;--green-dark:#561920;--soft:#fbefef;--line:#ecd6d6;--muted:#806c70;--paper:#fffafa;--ink:#321d1f;border-color:var(--line)}
#modal.phrase-modal::backdrop{background:#4f192b66}
#modal.phrase-modal input{border-color:#d9b8bc}
#modal.phrase-modal button:focus-visible,#modal.phrase-modal input:focus-visible{outline-color:#a96069}
#modal.phrase-modal .add-limit-notice{background:#fff1f0;color:#8b3b43}
.phrase-mode .detailed-explanation{background:#fbefef}
.phrase-mode .quiz-card .button.secondary:hover{background:#f4d5d8;border-color:#dca8ac;color:var(--green-dark)}
.phrase-mode .quiz-card .button.secondary:focus-visible{outline-color:#a96069}
.phrase-mode progress::-webkit-progress-value{background:#a96069}
.phrase-mode progress::-moz-progress-bar{background:#a96069}
.phrase-mode .audio-controls button.audio-toggle{border-color:var(--line);box-shadow:0 2px 6px #4f192b0b}
.phrase-mode .audio-controls button.audio-toggle:hover:not(:disabled){border-color:#a96069;box-shadow:0 4px 11px #4f192b19}
.phrase-mode .audio-controls button.audio-toggle:focus-visible{outline-color:#c98088}
.phrase-mode .audio-controls button.is-selected{background:var(--soft);border-color:#a96069;box-shadow:inset 0 0 0 1px #a96069}
.phrase-mode .audio-controls button.audio-toggle[data-action=play][aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 4px 12px #4f192b2b}
.phrase-mode .audio-controls button.audio-repeat[aria-pressed=true]{background:#f8d8d8;border-color:#a96069;color:var(--green-dark)}
.audio-slow{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.audio-speed-picker{--speed-accent:#24583f;--speed-line:#dce5d5;position:fixed;top:0;left:0;z-index:1000;display:grid;width:92px;padding:6px;border:1px solid var(--speed-line);border-radius:18px;background:#fff;box-shadow:0 8px 28px #1d36272b;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.audio-speed-picker.phrase-speed-picker{--speed-accent:#76252d;--speed-line:#ecd6d6;box-shadow:0 8px 28px #4f192b2b}
.audio-speed-picker .audio-speed-option{display:grid;place-items:center;width:100%;height:48px;min-height:48px;padding:0;border:0;border-radius:12px;background:#fff;color:var(--speed-accent);font-size:15px;font-weight:750;line-height:1;touch-action:none}
.audio-speed-picker .audio-speed-option[aria-selected=true]{background:var(--speed-accent);color:#fff}
.audio-speed-picker .audio-speed-option:focus-visible{outline:2px solid var(--speed-accent);outline-offset:-2px}
.modal-body .add-limit-notice.is-available{padding:0;background:none;color:var(--muted)}
.admin-users .registration-settings{margin:0 0 20px}
