@charset "UTF-8";
:root{color-scheme:light;--paper:#f6f7f2;--white:#fff;--ink:#193c37;--muted:#65766e;--green:#17685d;--light:#e9f1e8;--line:#dce4db;--amber:#865517;--red:#a64235;--shadow:0 6px 28px #173f2c06;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;font-size:15px;line-height:1.7;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d3943f;outline-offset:3px}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:.02em;line-height:1.4;margin-bottom:10px}h2{font-size:21px;line-height:1.5;margin-bottom:12px}h3{font-size:17px;margin-bottom:8px}small,.muted{color:var(--muted)}small{font-size:12px}p{margin-bottom:14px}svg{display:block}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:white;padding:12px}.skip-link:focus{top:10px}.topbar{height:91px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1320px;padding:0 48px;margin:auto}.brand{display:flex;align-items:center;gap:13px;color:var(--ink);text-decoration:none;font-size:21px;font-weight:700;letter-spacing:.08em;line-height:1.4}.brand small{display:block;font-size:9px;letter-spacing:.18em;margin-top:5px;font-weight:600}.brand-icon{display:grid;place-items:center;width:42px;height:47px;border-radius:10px 10px 16px 10px;color:#f6f4dd;background:var(--green);font-size:28px;font-family:serif;font-weight:500;transform:rotate(-4deg)}.local-badge{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.status-dot{width:7px;height:7px;border-radius:50%;background:#62946a}.app-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:52px;max-width:1216px;margin:38px auto 30px;padding:0 28px}.sidebar{padding-top:8px}.nav-caption,.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:700;color:var(--muted);margin-bottom:20px}.nav-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:10px;text-decoration:none;color:var(--muted);font-weight:600;margin-bottom:7px;font-size:14px;min-height:48px}.nav-item.active{background:#e5eee4;color:var(--green)}.nav-item:hover{background:#edf1e9}.nav-icon{font-size:20px;width:24px;text-align:center}.sidebar-note{margin-top:76px;padding:0 16px}.sidebar-note>span{font-size:33px;color:#7d9974}.sidebar-note p{font-family:serif;font-size:19px;line-height:1.8;margin:10px 0}.sidebar-note small{line-height:1.8}main{min-width:0;outline:none}.page-heading{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:28px}.page-heading p{margin:0}.date-label{font-size:12px;color:var(--muted);white-space:nowrap}.hero{background:var(--green);border-radius:18px;padding:30px 34px;color:white;display:flex;justify-content:space-between;align-items:center;gap:25px;overflow:hidden;position:relative;min-height:248px}.hero .eyebrow{color:#b3d7ba;margin-bottom:13px}.hero h2{font-size:26px;margin-bottom:6px}.hero p{color:#d6e7de;font-size:13px;max-width:380px}.hero .button{background:#eef2d8;color:#164c41;border-color:#eef2d8;margin-top:8px;min-width:210px;justify-content:space-between}.hero-art{width:165px;min-width:125px;align-self:center;transform:rotate(-8deg);opacity:.96}.hero-art .paper{fill:#edf2d9;stroke:#d9e5cb;stroke-width:1}.hero-art .ink{stroke:#679073;stroke-width:3;stroke-linecap:round}.hero-art text{font-family:Georgia,serif;fill:#17685d}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:22px 0 30px;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:20px 8px}.stat{padding:0 22px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:30px;font-weight:650;line-height:1.4;letter-spacing:-.02em}.stat-value small{font-size:12px;margin-left:7px;font-weight:400}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.section-heading h2{font-size:17px;margin:0}.section-heading small{font-size:11px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.quick-card{border:1px solid var(--line);border-radius:13px;padding:22px;background:white;box-shadow:var(--shadow);text-align:left;color:var(--ink);display:flex;align-items:center;gap:17px;min-height:117px}.quick-icon{background:#f6efe1;color:#956c36;width:43px;height:43px;display:grid;place-items:center;border-radius:12px;font-size:23px;flex-shrink:0}.quick-card:nth-child(2) .quick-icon{background:#eef1eb;color:var(--green)}.quick-card strong{font-size:16px;display:block}.quick-card small{display:block;font-size:11px;margin-top:3px}.arrow{margin-left:auto;font-size:20px;color:#8a9e8e}.notice{padding:15px 18px;border:1px solid #dfdfcb;border-radius:10px;background:#f6f3e7;color:#675a34;font-size:12px;margin:18px 0}.notice strong{font-weight:650}.notice.error{background:#fff0ec;border-color:#efc4bb;color:#8f3628}.notice.success{background:#edf5ed;border-color:#c5dbc9;color:#2e663a}.notice p:last-child{margin:0}.tip{display:flex;gap:12px;margin-top:22px;color:var(--muted);font-size:12px;line-height:1.9}.tip>span{font-size:18px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:20px;box-shadow:var(--shadow)}.card>p:last-child{margin-bottom:0}.card-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:11px 21px;border:1px solid transparent;border-radius:9px;text-decoration:none;font-weight:600;font-size:14px}.button.primary{color:white;background:var(--green)}.button.primary:hover{background:#11564c}.button.secondary{border-color:var(--line);background:white;color:var(--ink)}.button.danger{background:#fff0ec;border-color:#edc9c1;color:var(--red)}.button.wide{width:100%}.button.small{padding:8px 14px;font-size:12px;min-height:44px}.text-button{border:0;background:transparent;color:var(--green);padding:10px 6px;min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:3px}.button-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.button-row.end{justify-content:flex-end}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin-bottom:16px}.field small{font-weight:400}.field input,.field select,.field textarea,.filter-input{width:100%;min-height:48px;border:1px solid #cbd6cc;background:#fff;border-radius:8px;padding:10px 12px;color:var(--ink);font-size:16px;min-width:0}.field textarea{resize:vertical;min-height:92px;font-weight:400}.field.full{grid-column:1/-1}.form-grid .field{margin-bottom:0}.segmented{display:flex;gap:7px;flex-wrap:wrap}.segmented label{flex:1;min-width:95px;position:relative}.segmented input{position:absolute;opacity:0;pointer-events:none}.segmented span{display:block;text-align:center;padding:12px 8px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:white;cursor:pointer}.segmented input:checked+span{background:var(--light);border-color:var(--green);color:var(--green);font-weight:700}.segmented input:focus-visible+span{outline:3px solid #d3943f}.field-legend{font-size:13px;font-weight:600;margin-bottom:8px}.field-group{border:0;padding:0;margin:0 0 22px}.count-summary{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.count-summary strong{font-size:28px}.count-summary .button{margin-left:auto;min-width:160px}.progress-line{height:5px;background:#dfe8dd;border-radius:10px;overflow:hidden;margin:18px 0 28px}.progress-line span{display:block;height:100%;background:var(--green)}.study-topline{display:flex;align-items:center;justify-content:space-between;font-size:13px}.study-card{min-height:310px;text-align:center;padding:36px 28px;display:flex;flex-direction:column;align-items:center}.word-number{font-size:12px;color:var(--muted);letter-spacing:.1em}.study-word{font-size:clamp(31px,6vw,48px);font-weight:600;line-height:1.4;overflow-wrap:anywhere;margin:30px 0 17px;font-family:Georgia,"Times New Roman",serif}.pronounce{border:1px solid var(--line);background:#f6f8f2;border-radius:30px;font-size:12px;min-height:44px;padding:7px 18px;color:var(--green)}.answer{width:100%;text-align:left;border-top:1px solid var(--line);margin-top:28px;padding-top:26px;white-space:pre-wrap;overflow-wrap:anywhere}.answer .meaning{font-size:23px;margin:6px 0 20px;line-height:1.6}.answer .pos{font-size:12px;color:var(--muted)}.answer .example{font-size:17px;line-height:1.7}.answer .translation{color:var(--muted);font-size:14px;margin-top:9px}.rating-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rating-buttons button{display:flex;flex-direction:column;padding:15px 6px;gap:4px;line-height:1.6}.rating-buttons small{font-weight:400;color:inherit}.rating-known{background:#e4efe1;border:1px solid #c2d6be;color:#2b6234}.rating-unsure{background:#f6efdc;border:1px solid #e6d5a6;color:#805e19}.rating-forgot{background:#f7e9e2;border:1px solid #e3c8ba;color:#954e33}.study-note{text-align:center;color:var(--muted);font-size:12px;margin:20px 0}.pill{display:inline-block;background:#edf2e9;color:#466d43;border-radius:5px;padding:3px 8px;font-size:11px;white-space:nowrap}.pill.weak{background:#f6eddb;color:#835c22}.pill.unlearned{color:#5e706a;background:#eff2ef}.word-list{list-style:none;padding:0;margin:0}.word-item{padding:19px 0;border-bottom:1px solid var(--line)}.word-item:first-child{padding-top:0}.word-item:last-child{border-bottom:0;padding-bottom:0}.word-row{display:flex;align-items:flex-start;gap:14px}.word-row .word-number{padding-top:4px;min-width:35px}.word-main{flex:1;min-width:0}.word-main strong{font-size:19px;font-weight:600;overflow-wrap:anywhere}.word-meaning{color:var(--muted);font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:3px}.word-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:9px}.word-plan{font-size:11px;color:var(--muted);margin-top:8px}.word-actions{display:flex;gap:9px;align-items:center;margin-left:49px;margin-top:6px}.word-actions button{font-size:12px;min-height:44px}.filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:16px}.filters .field{margin:0}.range-filter{display:flex;gap:10px;align-items:center}.range-filter input{max-width:110px}.empty{text-align:center;padding:42px 20px}.empty .empty-icon{font-size:35px;color:#8b9e7a;margin-bottom:15px}.empty h2{font-size:19px}.empty p{font-size:13px;color:var(--muted)}.file-zone{border:1px dashed #a4bba5;background:#f8faf4;padding:24px;border-radius:10px;text-align:center}.file-zone input{display:block;max-width:100%;font-size:13px;margin:15px auto 0;min-height:44px}.file-zone p{font-size:12px;color:var(--muted);margin-bottom:0}.import-row{padding:18px 0;border-bottom:1px solid var(--line)}.import-row .field{margin:10px 0 0;max-width:350px}.import-row:last-child{border:0}.row-errors{color:var(--red);font-size:12px;white-space:pre-wrap}.row-warnings{color:var(--amber);font-size:12px;white-space:pre-wrap}.comparison{font-size:12px;margin-top:10px;overflow-wrap:anywhere}.comparison table{width:100%;border-collapse:collapse}.comparison th,.comparison td{border:1px solid var(--line);padding:7px;text-align:left;vertical-align:top;white-space:pre-wrap}.comparison th{width:21%}.import-pagination,.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:26px 0}.metric{padding:20px 8px;text-align:center;border-radius:10px;background:#f0f4e9}.metric strong{display:block;font-size:32px}.metric small{font-size:11px}.metric:nth-child(2){background:#f6f0e2}.metric:nth-child(3){background:#f7eae3}.result-check{width:60px;height:60px;border-radius:50%;background:#e4efdf;color:var(--green);display:grid;place-items:center;font-size:30px;margin:12px auto 22px}.result-title{text-align:center}.details-list{font-size:13px;color:var(--muted);padding-left:20px}.details-list li{margin-bottom:10px}details>summary{cursor:pointer;min-height:44px;font-size:13px;display:list-item;padding:10px 0;color:var(--green)}.statusbar{max-width:1216px;margin:20px auto 0;padding:16px 28px 26px 270px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:10px;color:var(--muted)}#connection-status{margin-left:auto}.mobile-nav{display:none}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:14px 22px;max-width:calc(100vw - 32px);width:max-content;background:#244e44;color:white;border-radius:10px;box-shadow:0 6px 20px #0002;z-index:20;font-size:13px}.toast.error{background:#8e3e2e}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:calc(100% - 32px);max-width:470px;color:var(--ink)}dialog::backdrop{background:#173e375e;backdrop-filter:blur(2px)}dialog p{font-size:14px;white-space:pre-line}dialog .eyebrow{font-size:10px}.loading-card{padding:40px;text-align:center}.safe-explanation{font-size:12px;color:var(--muted)}.save-status{font-size:12px;color:var(--muted)}[hidden]{display:none!important}
.study-progress{display:block;appearance:none;width:100%;height:5px;border:none;border-radius:10px;overflow:hidden;background:#dfe8dd;margin:18px 0 28px}.study-progress::-webkit-progress-bar{background:#dfe8dd}.study-progress::-webkit-progress-value{background:var(--green)}.study-progress::-moz-progress-bar{background:var(--green)}
@media(min-width:1280px){.app-layout{grid-template-columns:190px minmax(0,860px)}}
@media(max-width:900px){.topbar{padding:0 28px}.app-layout{grid-template-columns:150px minmax(0,1fr);gap:25px}.sidebar-note{padding:0 10px}.nav-item{padding:13px 10px;font-size:13px}.hero{padding:28px}.hero-art{width:110px;min-width:80px}.statusbar{padding-left:203px}.quick-card{padding:18px 14px;gap:10px}.quick-icon{width:35px;height:40px}.filters{grid-template-columns:1fr 1fr}.filters>.field:first-child{grid-column:1/-1}}
@media(max-width:680px){:root{font-size:15px}.topbar{height:77px;padding:0 22px}.brand{font-size:18px;gap:10px}.brand-icon{width:35px;height:40px;font-size:25px}.brand small{font-size:8px;letter-spacing:.13em}.local-badge{font-size:10px;gap:5px}.app-layout{display:block;padding:0 20px;margin:27px auto 16px}.sidebar{display:none}h1{font-size:25px}.page-heading{margin-bottom:22px;align-items:start}.page-heading p{font-size:12px}.date-label{display:none}.hero{padding:25px 23px;min-height:248px;gap:8px;border-radius:15px}.hero h2{font-size:23px}.hero p{font-size:12px;max-width:225px}.hero .button{min-width:190px;font-size:13px}.hero-art{width:96px;min-width:70px;position:absolute;right:-17px;top:48px;opacity:.4;pointer-events:none}.hero>div{z-index:1}.stats{padding:18px 0;margin:16px 0 26px}.stat{padding:0 14px}.stat-label{font-size:10px}.stat-value{font-size:26px}.stat-value small{font-size:10px;margin-left:4px}.section-heading small{font-size:10px}.quick-grid{gap:10px}.quick-card{padding:18px 13px;display:block;position:relative;min-height:143px}.quick-icon{width:34px;height:34px;font-size:20px;border-radius:9px;margin-bottom:10px}.quick-card strong{font-size:14px}.quick-card small{font-size:10px}.quick-card .arrow{position:absolute;right:13px;top:21px}.notice{padding:14px;font-size:11px}.tip{font-size:11px}.card{padding:21px 18px;border-radius:12px}.form-grid{gap:15px}.field{font-size:12px}.form-grid .field.full{grid-column:1/-1}.count-summary{gap:10px}.count-summary strong{font-size:26px}.count-summary .button{min-width:125px}.study-card{min-height:300px;padding:30px 20px}.study-word{margin:27px 0 17px}.rating-buttons{gap:7px}.rating-buttons button{font-size:12px;min-height:80px}.rating-buttons small{font-size:10px}.answer .meaning{font-size:21px}.answer .example{font-size:16px}.word-row{gap:9px}.word-row .word-number{min-width:30px}.word-actions{margin-left:39px}.word-main strong{font-size:18px}.statusbar{padding:0 20px 110px;margin:8px auto 0;gap:5px;line-height:1.6;font-size:9px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:8px 8px max(9px,env(safe-area-inset-bottom));background:#fcfdf9f5;backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:10;justify-content:space-around}.mobile-nav .nav-item{display:flex;flex-direction:column;gap:0;flex:1;font-size:9px;padding:4px;margin:0;border-radius:8px;min-height:51px}.mobile-nav .nav-icon{font-size:21px;line-height:1.4}.mobile-nav .nav-item.active{background:transparent;color:var(--green)}.toast{bottom:95px;font-size:12px}.metric-row{gap:8px}.metric{padding:16px 3px}.metric strong{font-size:27px}.metric small{font-size:10px}.button-row .button{flex-grow:1}.card-title{align-items:flex-start}.comparison{overflow-x:auto}.comparison table{min-width:310px}}
@media(prefers-reduced-motion:no-preference){.button,.quick-card{transition:background .15s,transform .15s}.quick-card:hover{transform:translateY(-2px)}}
