:root{font-family:Segoe UI,"Yu Gothic UI",Meiryo,sans-serif;color:#263437;background:#f4f5f2;font-size:14px;--green:#17634d;--line:#dce1dc}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;background:#fff;border:1px solid #ccd5ce;border-radius:5px;color:inherit;padding:7px 11px}button:hover{border-color:var(--green);background:#edf4ef}button:disabled{opacity:.5;cursor:wait}input,select,textarea{border:1px solid #cad3cb;border-radius:4px;padding:8px;background:white;color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7db59e;outline-offset:2px}header{height:82px;padding:15px 25px;display:flex;gap:25px;align-items:center;border-bottom:1px solid var(--line);background:white}.brand{display:flex;gap:12px;align-items:center}.brand strong{font-size:19px}.brand small{display:block;color:#65726b;margin-top:4px}.mark{font-family:Georgia,serif;background:var(--green);color:white;font-size:28px;width:40px;height:44px;border-radius:9px;text-align:center;padding-top:5px}.progress-box{margin-left:auto;min-width:260px;font-size:12px}progress{display:block;width:100%;height:7px;margin-top:9px;accent-color:var(--green)}.workspace{display:grid;grid-template-columns:255px 1fr;height:calc(100vh - 122px)}aside{padding:20px 13px;border-right:1px solid var(--line);overflow:auto;background:#f9faf7}.search-label{font-size:12px;display:block;color:#5e6d63;margin-bottom:8px}#search{width:100%}.filters{display:grid;gap:7px;margin:10px 0 16px}#word-count{font-size:11px;color:#6d7970;margin:8px}#word-list{display:grid;gap:2px}.word-button{display:flex;justify-content:space-between;align-items:center;border:0;background:transparent;text-align:left;min-height:34px}.word-button.active{color:var(--green);background:#e2ede4;font-weight:650}.word-button small{color:#788078;font-size:10px}.word-button.done small{color:var(--green)}main{overflow:auto;padding:27px 34px 60px;max-width:1500px;width:100%;margin:0 auto}.word-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{letter-spacing:1.2px;font-size:10px;color:#687a6c}h1{font-family:Georgia,serif;font-size:43px;margin:7px 0 2px;font-weight:500}.navigation{display:flex;gap:7px}#word-meta{color:#6b776f;font-size:12px}.review-toolbar{display:flex;justify-content:space-between;align-items:center;padding:17px 0;margin:10px 0;border-bottom:1px solid var(--line);gap:12px}.review-toolbar>div{display:flex;gap:7px}#sense-count{font-size:12px;color:#57685e}.sense{position:relative;background:white;border:1px solid var(--line);border-radius:7px;padding:17px 18px;margin-bottom:10px;scroll-margin:14px}.sense.focused{border-color:#397c61;box-shadow:0 0 0 2px #17634d20}.sense-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}.sense-head h3{margin:0;font-size:16px;font-weight:650}.sense-id{font-size:10px;color:#738075}.pill{font-size:10px;padding:3px 6px;background:#edf1eb;border-radius:3px;white-space:nowrap}.pill.kept{background:#d9ecdf;color:#1b6644}.pill.rejected{background:#f7e3df;color:#955143}.pill.hold{background:#f8edce;color:#8c6b25}.pill.merged{background:#e5e4f4;color:#65539a}.sense-columns{display:grid;grid-template-columns:1fr 1.25fr;gap:28px}.definition{font-size:13px;color:#536158;line-height:1.6}.usage{margin-top:8px;font-size:12px;color:#67766c}.example{font-size:16px;font-family:Georgia,serif;line-height:1.5;margin:0 0 6px}.translation{font-size:12px;color:#637166}.sense-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:13px;gap:10px}.sense-bottom .actions{display:flex;gap:5px}.actions button{font-size:11px;padding:5px 8px}.actions button.selected{border-color:var(--green);background:#edf4ef;color:var(--green)}.source-note{font-size:10px;color:#788078}.user-note{white-space:pre-wrap;font-size:12px;border-left:2px solid #cbdcce;padding-left:8px;margin-top:10px}.group{border:1px solid #c8c4dd;border-radius:7px;background:#f0eef7;padding:14px 17px;margin-bottom:12px}.group h3{margin:0 0 8px;font-size:15px}.group p{font-size:12px;margin:7px 0}.group button{font-size:11px}.empty{padding:65px 20px;text-align:center;color:#7b887c;line-height:2}footer{position:fixed;bottom:0;left:0;right:0;height:40px;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 19px;font-size:11px;gap:8px}kbd{font-family:inherit;border:1px solid #d2d9d1;border-radius:3px;font-size:10px;padding:1px 4px;margin:0 2px;color:#6b786c;background:#f7f9f5}dialog{width:min(800px,94vw);max-height:88vh;border:1px solid #bccbc0;border-radius:10px;padding:23px;box-shadow:0 20px 70px #1d392d30}dialog::backdrop{background:#182d244d}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.dialog-heading h2{font-size:19px;margin:0}.dialog-heading button{font-size:20px;padding:0 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label,.form-label{display:block;font-size:12px;color:#52655a}.form-grid input,.form-grid textarea,.form-label input,.form-label textarea{display:block;width:100%;margin-top:5px}.form-grid .full{grid-column:1/-1}textarea{min-height:76px;resize:vertical}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#235a46;color:white}.manager-section{border-top:1px solid var(--line);padding:16px 0}.manager-section:first-child{border-top:0}.manager-section h3{font-size:14px;margin:0 0 10px}.manager-section p{color:#657466;font-size:12px;line-height:1.6}.manager-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.manager-row input[type=number]{width:65px}#job-status{white-space:pre-wrap;font-size:12px;line-height:1.6}#toast{position:fixed;bottom:52px;right:20px;max-width:620px;white-space:pre-wrap;background:#32463b;color:white;padding:14px 18px;border-radius:7px;box-shadow:0 6px 20px #0002;z-index:10}.member-option{display:block;padding:9px;border-bottom:1px solid var(--line)}.member-option input{margin-right:8px}#more{width:100%;margin-top:10px}a{color:var(--green)}@media(max-width:950px){header{padding:12px;gap:12px}.brand small{display:none}.progress-box{min-width:150px}.workspace{grid-template-columns:200px 1fr}main{padding:20px}.sense-columns{grid-template-columns:1fr;gap:12px}.review-toolbar{align-items:flex-start;flex-direction:column}footer{height:auto;min-height:40px;flex-wrap:wrap;padding:7px}.navigation button{font-size:11px}.sense-head{flex-wrap:wrap}}
#toggle-words{display:none}
.conflict-comparison{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto;font-size:12px}
@media(max-width:640px){
  :root{font-size:15px}body{padding-bottom:48px}
  header{height:auto;min-height:82px;flex-wrap:wrap;padding:12px;gap:10px}
  .brand{flex:1;min-width:180px}.brand strong{font-size:17px}.mark{width:32px;height:36px;font-size:23px}
  .progress-box{order:3;flex-basis:100%;margin:0;min-width:0;font-size:12px}
  #manage{font-size:12px;min-height:44px;padding:8px}
  #toggle-words{display:block;margin:10px 12px;width:calc(100% - 24px);min-height:44px;text-align:left}
  .workspace{display:block;height:auto}
  aside{display:none;border-right:0;border-bottom:1px solid var(--line);max-height:50dvh;padding:12px;overflow:auto}
  aside.mobile-open{display:block}
  main{overflow:visible;padding:12px 12px 24px;min-width:0}
  .word-toolbar{align-items:flex-start;flex-wrap:wrap;gap:10px}h1{font-size:36px;overflow-wrap:anywhere}
  #word-meta{overflow-wrap:anywhere}.navigation{width:100%}.navigation button{flex:1;font-size:14px;min-height:44px}
  .review-toolbar{padding:12px 0;margin:6px 0}.review-toolbar>div{flex-wrap:wrap;width:100%}.review-toolbar button{min-height:44px}
  .sense{padding:14px 12px}.sense-head h3{font-size:17px;line-height:1.5}.sense-id{width:100%;overflow-wrap:anywhere}
  .sense-head input[type=checkbox]{width:24px;height:24px;margin:0}
  .sense-columns{gap:10px}.example{font-size:18px;overflow-wrap:anywhere}.definition,.translation,.usage{font-size:14px;line-height:1.65}
  .sense-bottom{display:flex;flex-direction:column;align-items:stretch}.source-note{overflow-wrap:anywhere}
  .sense-bottom .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .word-button{min-height:44px}
  .actions button{min-height:44px;padding:8px 5px;font-size:14px}.actions kbd,.navigation kbd,.review-toolbar kbd{display:none}
  .form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}
  input,select,textarea{font-size:16px}dialog{padding:16px;width:calc(100vw - 20px);max-height:90dvh}
  .member-option{display:flex;gap:8px;align-items:center;min-height:48px;line-height:1.5}.member-option input{width:22px;height:22px;flex-shrink:0}
  .group button,.dialog-actions button,.manager-row button{min-height:44px}
  .manager-row{align-items:stretch}.manager-row input[type=file]{max-width:100%;min-width:0}
  footer{height:38px;min-height:38px;padding:7px 12px;justify-content:flex-end;padding-bottom:max(7px,env(safe-area-inset-bottom))}
  footer>span:first-child{display:none}#toast{left:12px;right:12px;bottom:50px;max-width:none}
}
