:root{color:#202b30;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--ink:#202b30;--muted:#73807e;--line:#e3e9e6;--green:#146f5a;--green-dark:#0d5d4b;--mint:#e8f4ee;--paper:#fff;--amber:#8b5a0d;--amber-bg:#fff4df;background:#f6f8f7;font-family:DM Sans,Noto Sans JP,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #79bba8}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.04em;color:var(--ink);margin-bottom:12px;font-size:clamp(1.8rem,4vw,2.45rem);line-height:1.2}h2{letter-spacing:-.02em;margin-bottom:8px;font-size:1.16rem}h3{font-size:1rem}p{line-height:1.75}#root,.app-shell{min-height:100vh}.topbar{border-bottom:1px solid var(--line);z-index:5;background:#fff;align-items:center;gap:12px;height:76px;padding:0 max(24px,50vw - 625px);display:flex;position:sticky;top:0}.brand-mark{background:var(--green);color:#fff;border-radius:12px;place-items:center;width:38px;height:38px;font-weight:700;display:grid}.topbar strong,.topbar small{display:block}.topbar strong{font-size:1rem}.topbar small{color:var(--muted);margin-top:1px;font-size:.72rem}.local-status{color:var(--green);background:var(--mint);border-radius:99px;margin-left:auto;padding:7px 11px;font-size:.77rem}.layout{grid-template-columns:210px minmax(0,1fr);max-width:1250px;min-height:calc(100vh - 76px);margin:0 auto;display:grid}.sidebar{border-right:1px solid var(--line);flex-direction:column;gap:5px;padding:30px 16px 32px 0;display:flex}.nav-item{text-align:left;color:#62706e;background:0 0;border:0;border-radius:10px;align-items:center;gap:12px;padding:12px 14px;font-size:.9rem;display:flex}.nav-item>span{text-align:center;width:23px;font-size:1.2rem}.nav-item.active{color:var(--green-dark);background:#eaf4ef;font-weight:700}.nav-item b{color:#fff;background:#e9a747;border-radius:12px;margin-left:auto;padding:1px 6px;font-size:.7rem}.main-content{min-width:0;padding:48px clamp(22px,5vw,68px) 100px}.page{max-width:830px;margin:0 auto}.eyebrow{color:#66847a;letter-spacing:.14em;margin-bottom:12px;font-size:.68rem;font-weight:700;display:block}.lede{color:#687673;max-width:660px;margin-bottom:28px}.hero-card{background:#eaf4ee;border-radius:18px;justify-content:space-between;align-items:center;gap:24px;margin:30px 0 22px;padding:28px 32px;display:flex}.hero-card h2{margin:6px 0;font-size:1.35rem}.hero-card p{color:#64726f;margin:0}.primary,.secondary,.file-button{border:0;border-radius:10px;min-height:46px;padding:12px 17px;font-size:.88rem;font-weight:700}.primary{background:var(--green);color:#fff;box-shadow:0 5px 12px #146f5a20}.primary:hover{background:var(--green-dark)}.primary:disabled{opacity:.5;cursor:not-allowed}.primary span{padding-left:10px}.secondary,.file-button{color:#31564d;background:#edf3f0;border:1px solid #dce7e2}.secondary:hover,.file-button:hover{background:#e3eee9}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 38px;display:grid}.stat-card{border:1px solid var(--line);background:#fff;border-radius:13px;padding:18px 19px}.stat-card>span{color:var(--muted);margin-bottom:10px;font-size:.76rem;display:block}.stat-card strong{font-size:1.8rem;line-height:1}.stat-card small{color:var(--muted);margin-left:5px;font-size:.8rem}.section-heading{justify-content:space-between;align-items:center;margin:34px 0 14px;display:flex}.section-heading h2{margin:0}.text-button{color:var(--green);background:0 0;border:0;padding:8px;font-size:.84rem;font-weight:700}.question-list{flex-direction:column;gap:9px;display:flex}.question-row{text-align:left;border:1px solid var(--line);width:100%;color:inherit;background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;transition:all .15s;display:flex}.question-row:hover{border-color:#a5c9bb;transform:translateY(-1px)}.question-row strong{font-size:.93rem;line-height:1.5}.row-kicker,.question-meta{color:var(--muted);font-size:.72rem}.row-kicker{margin-bottom:4px}.question-meta{margin-top:7px}.row-end{color:#7f938c;align-items:center;gap:13px;display:flex}.badge,.count-pill{white-space:nowrap;border-radius:99px;padding:5px 9px;font-size:.67rem;font-weight:700;display:inline-block}.badge.warn{color:var(--amber);background:var(--amber-bg)}.badge.neutral{color:#61716d;background:#eef2f0}.count-pill{color:var(--green);background:var(--mint)}.empty-state{text-align:center;color:var(--muted);border:1px dashed #d0d9d5;border-radius:14px;padding:40px}.empty-state span{width:38px;height:38px;color:var(--green);background:var(--mint);border-radius:50%;place-items:center;margin-bottom:12px;display:inline-grid}.panel,.draft-card,.result-card{border:1px solid var(--line);background:#fff;border-radius:15px;margin:20px 0;padding:23px}.field-label{margin-bottom:10px;font-size:.82rem;font-weight:700;display:block}.paste-area{resize:vertical;width:100%;min-height:195px;color:var(--ink);background:#fbfcfb;border:1px solid #dbe3df;border-radius:10px;padding:13px;line-height:1.65}.row-actions{gap:10px;margin:12px 0 18px;display:flex}.file-button{cursor:pointer;align-items:center;display:inline-flex}.file-button input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.subject-label{color:#5c6a67;align-items:center;gap:12px;display:flex}.subject-label input{border:1px solid var(--line);color:var(--ink);border-radius:8px;width:130px;padding:8px 10px}.error-text{color:#aa3f39;font-size:.83rem}.draft-list{flex-direction:column;gap:12px;display:flex}.draft-card{margin:0;padding:20px}.draft-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.draft-header h3{margin:0 0 12px}.stem-preview{color:#596662;max-height:120px;font-size:.84rem;line-height:1.7;overflow:auto}.draft-meta{color:var(--muted);border-bottom:1px solid var(--line);padding:8px 0;font-size:.72rem}.item-preview{border-bottom:1px solid #eef1ef;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;display:flex}.item-preview>div{gap:10px;font-size:.78rem;line-height:1.6;display:flex}.item-preview b{white-space:nowrap}.tiny-button{color:#80570f;white-space:nowrap;background:#fff9ee;border:1px solid #e6cb96;border-radius:8px;padding:7px 9px;font-size:.68rem}.tiny-button:disabled{opacity:.5}.draft-card details{color:#596662;margin-top:12px;font-size:.78rem}.draft-card summary{cursor:pointer;font-weight:700}.source-preview{white-space:pre-wrap;background:#f6f8f7;max-height:220px;padding:12px;font-family:inherit;font-size:.72rem;overflow:auto}.source-explanation{white-space:pre-wrap;max-height:400px;font-size:.76rem;overflow:auto}.sticky-action{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:13px;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;padding:12px 15px;font-size:.75rem;display:flex;position:sticky;bottom:12px;box-shadow:0 7px 25px #182f2520}.filter-row{color:var(--muted);justify-content:space-between;align-items:center;margin:22px 0 15px;font-size:.78rem;display:flex}.filter-row label{align-items:center;gap:10px;display:flex}.filter-row select{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:8px;padding:9px 11px}.practice-title{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.back-button{color:var(--green);background:0 0;border:0;padding:8px 0;font-weight:700}.stem-block{white-space:pre-wrap;border:1px solid var(--line);background:#fff;border-radius:12px;margin:20px 0;padding:19px;line-height:1.85}.answer-group{border:0;margin:28px 0;padding:0}.answer-group legend{margin-bottom:14px;font-weight:700}.answer-group legend small{color:var(--muted);margin-left:6px;font-size:.72rem;font-weight:400}.choice-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.choice-card{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:65px;display:flex}.choice-card input{opacity:0;position:absolute}.choice-card b{font-size:1rem}.choice-card span{color:var(--muted);font-size:.58rem}.choice-card.selected{border-color:var(--green);color:var(--green-dark);box-shadow:0 0 0 1px var(--green) inset;background:#edf6f1}.answer-item{border-bottom:1px solid var(--line);padding:15px 0}.answer-item p{margin-bottom:12px;font-size:.85rem;line-height:1.75}.answer-item p b{margin-right:5px}.answer-item em{background:var(--amber-bg);color:var(--amber);border-radius:8px;margin-right:7px;padding:3px 7px;font-size:.65rem;font-style:normal}.segmented{gap:7px;display:flex}.segmented button{border:1px solid var(--line);color:#61706b;background:#fff;border-radius:8px;padding:8px 12px;font-size:.76rem}.segmented button.seg-active{background:var(--mint);color:#165f4d;border-color:#9dc8b6;font-weight:700}.full{width:100%;margin-top:14px}.result-card h2{margin:7px 0;font-size:1.45rem}.result-card h3{margin:22px 0 7px}.result-card p{font-size:.86rem}.supplement{white-space:pre-wrap;color:#596662;background:#f7faf8;border-left:3px solid #d3e8dd;max-height:500px;margin:10px 0;padding:13px 15px;font-size:.78rem;overflow:auto}.audit-info{background:#fff7e8;border:1px solid #f2dfb8;border-radius:12px;margin:22px 0;padding:17px 19px}.audit-info b{color:#80570f}.audit-info p{color:#766b57;margin:7px 0 0;font-size:.8rem}.audit-row,.history-row{border:1px solid var(--line);background:#fff;border-radius:11px;justify-content:space-between;align-items:center;gap:15px;margin:8px 0;padding:15px 16px;display:flex}.audit-row strong,.audit-row span{display:block}.audit-row strong{font-size:.84rem}.audit-row span{color:var(--muted);margin-top:4px;font-size:.7rem}.audit-row .secondary{min-height:38px;padding:8px 11px;font-size:.73rem}.history-row{font-size:.78rem}.history-row time{color:var(--muted);font-size:.69rem}.good{color:var(--green)}.bad{color:#a94a40}.notice{color:#285947;background:#e9f5ef;border-radius:10px;justify-content:space-between;align-items:center;max-width:830px;margin:0 auto 20px;padding:10px 14px;font-size:.79rem;display:flex}.notice button{color:inherit;background:0 0;border:0;font-size:1.15rem}.mobile-nav{display:none}@media (width<=850px){.layout{min-height:calc(100vh - 64px);display:block}.topbar{height:64px;padding:0 18px}.sidebar{display:none}.main-content{padding:31px 19px 105px}.mobile-nav{z-index:10;border-top:1px solid var(--line);padding:7px 4px calc(7px + env(safe-area-inset-bottom));background:#fff;justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.mobile-nav button{color:#82908c;background:0 0;border:0;flex-direction:column;align-items:center;gap:2px;min-width:54px;min-height:48px;font-size:.6rem;display:flex}.mobile-nav button span{font-size:1.15rem}.mobile-nav button.mobile-active{color:var(--green);font-weight:700}.hero-card{flex-direction:column;align-items:flex-start;padding:22px 18px}.hero-card .primary{width:100%}.stat-grid{gap:7px}.stat-card{padding:14px 11px}.stat-card>span{font-size:.67rem}.question-row{gap:8px;padding:15px 13px}.row-end .badge{white-space:normal;text-align:center}.draft-card{padding:15px}.item-preview{flex-direction:column}.sticky-action{flex-direction:column;align-items:stretch;bottom:60px}.sticky-action .primary{width:100%}.choice-grid{gap:5px}.choice-card{min-height:58px}.answer-item p{font-size:.82rem}.history-row{flex-wrap:wrap;align-items:flex-start}.history-row time{width:100%}}@media (width<=430px){.main-content{padding-inline:14px}.filter-row{flex-direction:column;align-items:flex-start;gap:10px}.filter-row label{justify-content:space-between;width:100%}.filter-row select{max-width:65%}.stat-card{padding:12px 8px}.stat-card>span{min-height:28px}.stat-card strong{font-size:1.25rem}.stat-card small{font-size:.65rem}.row-actions{flex-wrap:wrap}.row-actions>*{flex:1;justify-content:center}.answer-group legend small{margin:4px 0;display:block}.segmented{grid-template-columns:repeat(3,1fr);display:grid}.segmented button{padding:9px 4px}}.question-row{padding:0;display:block;overflow:hidden}.question-open{color:inherit;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;width:100%;padding:17px 19px;display:flex}.amendment-editor{grid-template-columns:1.1fr 1.5fr 1fr 1.4fr;gap:7px;padding:0 17px 13px;display:grid}.amendment-editor label{color:var(--muted);align-items:center;gap:6px;font-size:.68rem;display:flex}.amendment-editor input,.amendment-editor select{border:1px solid var(--line);color:#5c6a67;background:#fff;border-radius:7px;width:100%;min-width:0;padding:7px;font-size:.67rem}.amendment-editor label select{width:auto}.question-open .row-kicker,.question-open .question-meta{display:block}@media (width<=850px){.amendment-editor{grid-template-columns:1fr 1fr}.amendment-editor label{grid-column:span 2}.amendment-editor input{font-size:.7rem}.question-open{padding:14px}}.audit-filters{grid-template-columns:1fr 1fr 1.4fr 1fr 1fr;align-items:center;gap:8px;display:grid}.audit-filters label{color:var(--muted);align-items:center;gap:5px;font-size:.68rem;display:flex}.audit-filters select,.audit-filters input{border:1px solid var(--line);color:#53625e;background:#fff;border-radius:7px;width:100%;min-width:0;padding:8px;font-size:.69rem}@media (width<=850px){.audit-filters{grid-template-columns:1fr 1fr}.audit-filters input:last-child{grid-column:span 2}}.setting-input{border:1px solid var(--line);width:100%;max-width:440px;color:var(--ink);background:#fff;border-radius:8px;margin-top:7px;padding:10px 12px;display:block}.sync-message{background:var(--mint);color:var(--green-dark);border-radius:8px;margin:14px 0 0;padding:11px 13px;font-size:.78rem}.subject-label select{border:1px solid var(--line);color:#5c6a67;background:#fff;border-radius:8px;padding:8px 10px}.panel p{color:#65726f;font-size:.83rem}.panel h2{margin-bottom:12px}@media (width<=430px){.mobile-nav button{min-width:46px}.subject-label{flex-wrap:wrap}.subject-label select{width:100%}}
