*{box-sizing:border-box}body{margin:0;background:#f5f7f5;color:#243e38;font-family:Inter,'Segoe UI',sans-serif;font-size:16px}.shell{display:flex;min-height:100vh}aside{width:240px;background:#fff;border-right:1px solid #e4ebe7;padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;margin-bottom:58px}.mark{display:grid;place-items:center;background:#315e50;color:white;border-radius:12px;width:43px;height:43px;font-size:25px}.brand strong{display:block;font-size:22px;letter-spacing:-1px}.brand small{font-size:9px;letter-spacing:1.5px;color:#96a7a0}nav{display:grid;gap:8px}.nav{border:0;text-align:left;background:transparent;padding:15px;border-radius:10px;color:#798d84;font-size:15px;cursor:pointer}.nav.active{background:#e7f1eb;color:#285a49;font-weight:700}.side-note{margin-top:auto;background:#f4f8f4;border-radius:14px;padding:20px;color:#789088;font-size:13px;line-height:1.6}.side-note span{font-size:18px;color:#52766a}.side-note p{margin-bottom:0}main{flex:1;min-width:0;padding:42px 6%;max-width:1550px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}.eyebrow,.card-top,.card-caption{font-size:11px;letter-spacing:1.5px;font-weight:700;color:#9aaea4}h1{font-size:32px;margin:9px 0 5px;letter-spacing:-1px}header p,.intro p,.library-head p{color:#82948b;margin:0}.header-tag{font-size:12px;letter-spacing:1px;color:#638277}.header-tag span{color:#cbd8d0}.intro{background:#dfeee3;border-radius:18px;padding:27px 34px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;min-height:158px}.pill{color:#557a68;font-size:11px;font-weight:700;letter-spacing:1px}.intro h2{font-size:25px;margin:12px 0 7px}.intro-art{font-family:serif;font-size:92px;line-height:1;color:#b6d8bf;transform:rotate(-8deg);margin-right:30px}.intro-art span{font-size:40px}.study-grid{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:20px;margin-top:22px}.card-area,.panel,.table-wrap{background:white;border:1px solid #e6ede8;border-radius:16px;padding:24px}.card-top{display:flex;justify-content:space-between}.flashcard{width:100%;min-height:300px;border:0;background:#fbfcfa;border-radius:12px;margin-top:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#274a3e;cursor:pointer;padding:25px}.flashcard strong{font-size:60px;margin:23px 0 15px;font-family:'Yu Gothic',sans-serif}.answer{font-size:18px;line-height:1.7;color:#58776a}.hint{font-size:13px;color:#a4b5aa;margin-top:20px}.controls{display:flex;gap:10px;margin-top:18px}.controls button{border-radius:9px;padding:13px 18px;font-size:14px;font-weight:600;cursor:pointer}.secondary{background:white;border:1px solid #dbe7de;color:#547465}.primary{background:#315e50;color:white;border:1px solid #315e50;margin-left:auto}.panel{padding:26px}.panel-icon{font-size:28px;color:#6fa384}.panel h3{margin:18px 0 10px;font-size:18px}.panel p{line-height:1.7;color:#84968b;font-size:14px}.divider{border-top:1px solid #ebf0eb;margin:25px 0}.stat strong{display:block;font-size:34px}.stat span{color:#98aaa0;font-size:13px}.text-button{border:0;background:none;padding:15px 0 0;color:#3a725a;display:block;font-size:14px;font-weight:600;cursor:pointer}.panel .footnote{font-size:12px}.library-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.library-head h2{margin:0 0 8px}.library-head input{padding:14px;border:1px solid #dbe7de;border-radius:10px;font-size:15px;width:320px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;letter-spacing:1px;color:#99aaa0}td,th{padding:15px;border-bottom:1px solid #eef2ee}td:first-child{font-size:19px;font-weight:700}footer{margin-top:38px;font-size:10px;letter-spacing:1.4px;color:#a8b8af}footer span{padding:0 6px}@media(max-width:800px){aside{width:auto;padding:18px;flex-direction:row;align-items:center;gap:20px}.shell{display:block}.brand{margin:0}.brand small,.side-note{display:none}nav{display:flex}.nav{padding:10px;font-size:13px}main{padding:26px 18px}.header-tag{display:none}.study-grid{grid-template-columns:1fr}.intro-art{font-size:60px;margin:0}.library-head{display:block}.library-head input{width:100%;margin-top:16px}.flashcard strong{font-size:48px}}

.rating{display:flex;align-items:center;gap:10px;margin-top:16px}.rating button{flex:1;padding:12px;border:1px solid #dce9df;border-radius:9px;background:#f4f8f4;color:#315e50;font-weight:600;cursor:pointer}.rating button:first-child{background:#fff6f1;color:#a8654e;border-color:#f4e1d7}.rating button span{opacity:.7}.rating #level{font-size:13px;color:#789088;text-align:center;min-width:100px}
.workbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:24px 0 8px}.workbar label{display:grid;gap:6px;color:#678276;font-size:13px;font-weight:600}.workbar select{min-width:130px;border:1px solid #d8e5dc;background:#fff;border-radius:8px;padding:11px;font-size:15px;color:#274a3e}.workbar button{padding:12px 16px;border-radius:9px;cursor:pointer;font-size:14px}.instruction{color:#72877b;font-size:14px;line-height:1.6}.matrix-wrap{padding:0;margin-top:15px;max-height:65vh}.matrix{min-width:850px}.matrix th{position:sticky;top:0;background:#f6f9f6;z-index:1}.matrix td,.matrix th{padding:13px 14px}.matrix .jp{min-width:130px}.matrix .yellow{background:#ffeda5;text-align:center;color:#745b19;font-weight:bold}.matrix .selected-column{box-shadow:inset 2px 0 #8aaf98,inset -2px 0 #8aaf98}.matrix .reveal{background:none;border:0;color:#397158;text-align:left;cursor:pointer;font-size:14px;min-width:160px}.matrix .actions{white-space:nowrap}.actions button{border:1px solid #dbe7de;background:white;color:#3c7058;border-radius:7px;padding:8px;margin-right:5px;cursor:pointer}.actions button:first-child{color:#a45f45;border-color:#edd9cf}
.finished{text-align:center;padding:70px 20px;color:#527667}.finished span{font-size:36px;color:#7eaa8a}.finished h2{color:#274a3e}.finished p{color:#82948b;margin-bottom:25px}.finished button{border-radius:9px;padding:14px 20px;cursor:pointer}.rating button{font-size:15px}.controls{justify-content:center}
#schedule-go{display:flex;align-items:end;gap:8px}#schedule-go label{display:grid;gap:6px;font-size:13px;color:#678276}#schedule-number{width:90px;padding:10px;border:1px solid #d8e5dc;border-radius:8px;font-size:15px}#schedule-range{align-self:center;color:#527667;font-size:14px}#schedule .matrix td:nth-child(n+4){min-width:70px;text-align:center}@media(max-width:800px){nav{flex-wrap:wrap}.brand strong{font-size:18px}aside{align-items:flex-start}}
#schedule-scroll{width:100%;max-width:100%;height:min(65vh,720px);overflow:auto;overscroll-behavior:contain;position:relative}#schedule .matrix{width:max-content;table-layout:fixed;border-collapse:separate;border-spacing:0}#schedule .matrix th,#schedule .matrix td{height:44px;min-width:82px;width:82px;max-width:82px;padding:10px 8px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-right:1px solid #e7eee8}#schedule .matrix .fixed-index{position:sticky;left:0;min-width:60px;width:60px;max-width:60px;background:#fff;z-index:2}#schedule .matrix .fixed-word{position:sticky;left:60px;min-width:155px;width:155px;max-width:155px;background:#fff;z-index:2;text-align:left}#schedule .matrix thead th{position:sticky;z-index:3;background:#f2f7f3;color:#526f60}#schedule .matrix #schedule-totals-row th{top:0;background:#ffeda5;color:#745b19}#schedule .matrix #schedule-header-row th{top:44px;background:#f2f7f3}#schedule .matrix thead .fixed-index,#schedule .matrix thead .fixed-word{z-index:5}#schedule .matrix td.yellow{background:#ffeda5}#schedule-scroll:focus{outline:2px solid #8aaf98;outline-offset:2px}
.reminder-button{border:1px solid #c8ded0;background:#edf6ef;color:#315e50;border-radius:8px;padding:9px 12px;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}.reminder-button:hover{background:#dcefe1}.reminder-status{color:#315e50;font-size:14px;line-height:1.6}.reminder-status:empty{display:none}#library .table-wrap{max-height:70vh}
.add-word-card{background:#fff;border:1px solid #e6ede8;border-radius:16px;padding:24px;margin-bottom:28px}.add-word-card h2{margin:0 0 8px;font-size:21px}.add-word-card p{font-size:14px;color:#71877b;line-height:1.6}.add-word-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:20px}.add-word-grid label{display:grid;gap:7px;color:#527166;font-weight:600;font-size:14px}.add-word-grid input{min-width:0;border:1px solid #d8e5dc;border-radius:9px;padding:12px;font:inherit;font-weight:400}.add-word-card button{padding:12px 20px;border-radius:9px;cursor:pointer;font-size:15px}.add-word-card #lookup-status{min-height:22px}@media(max-width:600px){.add-word-grid{grid-template-columns:1fr}}
.edit-word-button{border:1px solid #d8e5dc;background:white;color:#3c7058;border-radius:8px;padding:9px 12px;font-size:14px;font-weight:600;cursor:pointer;margin-left:6px}#cancel-edit{padding:12px 20px;border-radius:9px;cursor:pointer;font-size:15px}
.study-mode{display:flex;align-items:center;gap:12px;margin-top:20px;color:#527166;font-size:14px;font-weight:600}.study-mode select{appearance:none;min-width:210px;padding:12px 36px 12px 14px;border:1px solid #d8e5dc;border-radius:9px;background:#fff;color:#274a3e;font-size:15px;background-image:linear-gradient(45deg,transparent 50%,#527166 50%),linear-gradient(135deg,#527166 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}.reading-form{margin-top:16px}.reading-form label{display:block;font-size:14px;color:#527166;font-weight:600;margin-bottom:8px}.reading-form>div{display:flex;gap:8px;flex-wrap:wrap}.reading-form input{flex:1;min-width:160px;padding:12px;border:1px solid #d8e5dc;border-radius:9px;font-size:16px}.reading-form button{padding:12px 16px;border-radius:9px;cursor:pointer}.reading-form .primary{margin-left:0}.reading-form p{font-size:14px;color:#527166;min-height:20px}.rating button:disabled{opacity:.45;cursor:not-allowed}
.study-result:not(:empty){padding:12px 15px;margin:18px 0 0;background:#eaf4ed;color:#315e50;border-radius:9px;font-size:14px;line-height:1.5}
.rating[hidden]{display:none}
.keyboard-help{margin:14px 0 0;color:#71877b;font-size:14px;line-height:1.5}.continue-card{display:block;margin:16px 0 0 auto;padding:12px 18px;border-radius:9px;cursor:pointer}.continue-card[hidden]{display:none}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6a9d80;outline-offset:2px}
.countdown-track{display:block;width:min(180px,60%);height:6px;background:#e2ede5;border-radius:99px;overflow:hidden;margin-top:12px}.countdown-track[hidden]{display:none}.countdown-fill{display:block;height:100%;width:100%;background:#68a47c;transform-origin:left;border-radius:inherit}.countdown-track.running .countdown-fill{animation:review-countdown 2s linear forwards}@keyframes review-countdown{from{transform:scaleX(1)}to{transform:scaleX(0)}}@media(prefers-reduced-motion:reduce){.countdown-track.running .countdown-fill{animation:none}}
.sync-card{background:#fff;border:1px solid #e0ebe3;border-radius:14px;padding:18px 22px;margin:0 0 22px}.sync-card h2{font-size:18px;margin:0 0 6px}.sync-card p{color:#71877b;font-size:14px;line-height:1.5;margin:7px 0}.sync-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.sync-controls label{font-size:14px;color:#527166}.sync-controls input{flex:1;min-width:190px;padding:10px;border:1px solid #d8e5dc;border-radius:8px;font-size:14px}.sync-controls button{padding:10px 12px;border-radius:8px;cursor:pointer;font-size:14px}.sync-controls button[hidden]{display:none}#sync-status{color:#315e50}
