:root{--bg:#f6f7fb;--card:#fff;--ink:#18202a;--muted:#687385;--line:#e3e7ee;--brand:#2563eb;--brand-dark:#1d4ed8;--ok:#15803d;--warn:#b45309;--danger:#b91c1c}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font-family:Noto Sans,Noto Sans Vietnamese,Segoe UI,Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{max-width:1180px;margin:0 auto;padding:24px}.topbar{justify-content:space-between;align-items:center;margin-bottom:28px;display:flex}.brand{font-size:22px;font-weight:800}.badge{color:var(--brand);background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:6px 10px;font-size:13px}.hero{text-align:center;max-width:760px;margin:54px auto 28px}.hero h1{margin:0 0 14px;font-size:clamp(32px,5vw,52px);line-height:1.05}.hero p{color:var(--muted);font-size:18px;line-height:1.6}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 34px #0000000d}.upload{text-align:center;border:2px dashed #b7c4d8;max-width:760px;margin:0 auto;padding:36px}.upload input{display:none}.primary,.secondary,.success,.dangerBtn{border:0;border-radius:10px;padding:11px 16px;font-weight:700}.primary{background:var(--brand);color:#fff}.primary:hover{background:var(--brand-dark)}.primary:disabled{opacity:.55;cursor:not-allowed}.secondary{color:var(--ink);background:#eef2f7}.success{color:#166534;background:#dcfce7}.dangerBtn{color:#991b1b;background:#fee2e2}.muted{color:var(--muted)}.error{color:var(--danger);background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin:16px 0;padding:12px 14px}.settings{max-width:760px;margin:24px auto;padding:28px}.settings h2{margin-top:0}.row{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.field{flex:1;min-width:220px}.field label{margin-bottom:7px;font-weight:700;display:block}.field select{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;padding:11px}.reviewGrid{grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:20px;display:grid}.preview{max-height:calc(100vh - 130px);padding:22px;position:sticky;top:20px;overflow:auto}.preview p{margin:0 0 13px;line-height:1.75}.issuePanel{gap:14px;display:grid}.issueCard{padding:18px}.issueHead{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.category{text-transform:uppercase;color:var(--brand);background:#eff6ff;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:800}.quote{background:#fff7ed;border-left:3px solid #f97316;border-radius:6px;margin:10px 0;padding:10px 12px}.replacement{resize:vertical;color:#14532d;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;width:100%;min-height:66px;padding:10px}.issueActions{gap:8px;margin-top:12px;display:flex}.statusAccepted{background:#f0fdf4;border-color:#86efac}.statusIgnored{opacity:.58}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;display:flex}.summary{flex-wrap:wrap;gap:12px;display:flex}.summary span{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;font-size:13px}.spinner{border:3px solid #dbeafe;border-top-color:var(--brand);border-radius:50%;width:26px;height:26px;margin:0 auto 12px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:900px){.reviewGrid{grid-template-columns:1fr}.preview{max-height:360px;position:static}}.textInput{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;padding:11px}.small{font-size:13px}.notice{color:#854d0e;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;margin:0 0 16px;padding:11px 13px}.progressBox{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;margin-top:16px;padding:14px}.progressBox p{margin:9px 0 0}.progressTrack{background:#dbeafe;border-radius:999px;width:100%;height:10px;overflow:hidden}.progressFill{background:var(--brand);border-radius:999px;height:100%;transition:width .25s}.qualityNote{color:#3730a3;background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;margin:16px 0 20px;padding:13px 14px;line-height:1.55}.successNotice{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;margin:0 0 16px;padding:11px 13px}.progressBox b{color:#1e40af}.eyebrow{letter-spacing:.1em;color:#64748b;font-size:11px;font-weight:800;line-height:1.2;display:block}.progressTopline{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:14px;display:flex}.progressTopline h3{margin:5px 0 0;font-size:19px}.progressPercent{color:var(--brand);font-size:30px;font-weight:850;line-height:1}.timeGrid{grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px;display:grid}.timeCard{background:#ffffffc2;border:1px solid #dbeafe;border-radius:12px;padding:12px 13px}.timeCard span{color:var(--muted);margin-bottom:5px;font-size:12px;display:block}.timeCard strong{color:#1e3a8a;font-size:20px}.progressDetails{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.progressDetails span{color:#334155;background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:6px 9px;font-size:12px}.reviewToolbar{align-items:flex-start}.summaryPending{color:#9a3412;background:#fff7ed!important;border-color:#fed7aa!important}.summaryAccepted{color:#166534;background:#f0fdf4!important;border-color:#bbf7d0!important}.reviewFilters{justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:16px;padding:15px 16px;display:flex}.filterGroup{min-width:0}.filterLabel{color:#64748b;margin-bottom:7px;font-size:12px;font-weight:800;display:block}.filterChips{flex-wrap:wrap;gap:7px;display:flex}.filterChip{border:1px solid var(--line);color:#475569;background:#fff;border-radius:999px;padding:8px 11px;font-size:13px;font-weight:700}.filterChip:hover{background:#f8fafc}.filterChip.active{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.categoryFilterGroup{min-width:210px}.categoryFilterGroup select{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;padding:9px 10px}.reviewWorkspace{grid-template-columns:minmax(260px,330px) minmax(0,1fr);align-items:start;gap:16px;display:grid}.issueListCard{position:sticky;top:16px;overflow:hidden}.issueListHeader{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-end;gap:12px;padding:16px;display:flex}.issueListHeader strong{margin-top:4px;display:block}.issueList{max-height:calc(100vh - 220px);padding:8px;overflow-y:auto}.issueListItem{text-align:left;width:100%;color:var(--ink);background:0 0;border:1px solid #0000;border-radius:12px;margin-bottom:5px;padding:11px;display:block}.issueListItem:hover{background:#f8fafc}.issueListItem.selected{background:#eff6ff;border-color:#bfdbfe}.issueListTop{justify-content:space-between;align-items:center;gap:8px;display:flex}.issueListQuote{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:8px 0 7px;font-weight:700;line-height:1.4;display:-webkit-box;overflow:hidden}.issueListMeta{color:#94a3b8;gap:9px;font-size:11px;display:flex}.statusDot{background:#f59e0b;border-radius:999px;flex:none;width:9px;height:9px}.status-accepted,.status-edited{background:#22c55e}.status-ignored{background:#94a3b8}.status-conflict{background:#ef4444}.reviewFocus{padding:22px}.focusHeader{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;display:flex}.focusHeader h2{margin:5px 0 0;font-size:25px}.focusBadges{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.severity,.confidence,.reviewStatus{white-space:nowrap;border-radius:999px;align-items:center;padding:6px 9px;font-size:12px;font-weight:750;display:inline-flex}.severity-low{color:#475569;background:#f1f5f9}.severity-medium{color:#9a3412;background:#fff7ed}.severity-high{color:#b91c1c;background:#fef2f2}.confidence{color:#4338ca;background:#eef2ff}.reviewStatus{color:#64748b;border:1px solid var(--line);background:#f8fafc}.reviewStatus-accepted,.reviewStatus-edited{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.reviewStatus-ignored{color:#64748b;background:#f1f5f9}.sectionLabel{color:#64748b;margin-bottom:8px;font-size:12px;font-weight:850}.contextCard{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;margin-top:18px;padding:15px 16px}.contextCard p{margin:0;line-height:1.75}.contextCard mark{color:#713f12;background:#fde68a;border-radius:3px;padding:1px 2px}.comparisonGrid{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:stretch;gap:10px;margin-top:16px;display:grid}.comparisonArrow{color:#94a3b8;place-items:center;font-size:22px;display:grid}.comparisonBox{border-radius:12px;min-width:0;padding:14px}.originalBox{background:#fff7ed;border:1px solid #fed7aa}.suggestionBox{background:#f0fdf4;border:1px solid #bbf7d0}.comparisonText{overflow-wrap:anywhere;font-weight:700;line-height:1.6}.focusReplacement{background:0 0;border:0;min-height:92px;padding:0;font-weight:700;line-height:1.55}.focusReplacement:focus{outline-offset:5px;outline:2px solid #86efac}.warningText{color:#854d0e;font-weight:600}.reasonBox{background:#eef2ff;border:1px solid #c7d2fe;border-radius:12px;margin-top:16px;padding:14px 15px}.reasonBox p{margin:0;line-height:1.6}.reasonBox p+p{margin-top:7px}.focusActions{border-top:1px solid var(--line);justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;display:flex}.navButtons,.decisionButtons{flex-wrap:wrap;gap:8px;display:flex}.focusActions button:disabled{opacity:.45;cursor:not-allowed}.acceptBtn{padding-left:18px;padding-right:18px}.ignoreBtn{color:#64748b}.category{text-transform:none}.cat-spelling,.cat-punctuation,.cat-grammar{color:#b91c1c;background:#fef2f2}.cat-wording,.cat-redundancy,.cat-clarity{color:#9a3412;background:#fff7ed}.cat-term_consistency,.cat-content_consistency{color:#1d4ed8;background:#eff6ff}.cat-possible_conflict{color:#7e22ce;background:#faf5ff}.emptyState,.emptyFilterState{text-align:center;padding:34px}.emptyIcon{color:#166534;background:#dcfce7;border-radius:50%;place-items:center;width:52px;height:52px;margin:0 auto 12px;font-size:25px;font-weight:900;display:grid}@media (max-width:900px){.timeGrid{grid-template-columns:1fr}.reviewFilters{flex-direction:column;align-items:stretch}.categoryFilterGroup{min-width:0}.reviewWorkspace{grid-template-columns:1fr}.issueListCard{position:static}.issueList{max-height:300px}.focusHeader{flex-direction:column}.focusBadges{justify-content:flex-start}.comparisonGrid{grid-template-columns:1fr}.comparisonArrow{transform:rotate(90deg)}.focusActions{flex-direction:column}.decisionButtons{order:-1}}@media (max-width:560px){.shell{padding:16px}.timeCard strong{font-size:18px}.reviewFocus{padding:16px}.focusActions button{flex:1}.navButtons,.decisionButtons{width:100%}}.usageDashboard{max-width:920px;margin:0 auto 22px}.quotaCard{background:linear-gradient(135deg,#eff6ff,#fff);border-color:#bfdbfe;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;display:flex}.quotaCard>div:first-child{min-width:0}.quotaCard strong{color:#1e3a8a;margin-top:5px;font-size:24px;display:block}.quotaCard>div:first-child>span:last-child{color:var(--muted);margin-top:5px;font-size:13px;display:block}.quotaCard.quotaExhausted{background:linear-gradient(135deg,#fef2f2,#fff);border-color:#fecaca}.quotaCard.quotaExhausted strong{color:#991b1b}.countdownBox{text-align:right;background:#fff;border:1px solid #dbeafe;border-radius:12px;flex:none;min-width:190px;padding:12px 15px}.countdownBox span{color:var(--muted);font-size:12px;display:block}.countdownBox strong{font-variant-numeric:tabular-nums;margin-top:4px;font-size:22px}.statsGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px;display:grid}.statCard{box-shadow:none;padding:15px}.statCard span{color:#64748b;font-size:12px;font-weight:750;display:block}.statCard strong{color:#0f172a;margin:5px 0 2px;font-size:29px;display:block}.statCard small{color:#94a3b8}.usageError{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin-top:10px;padding:10px 12px;font-size:13px}.privacyNote{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;max-width:650px;margin:14px auto 18px;padding:11px 13px;font-size:13px;line-height:1.55}.disabledLabel{opacity:.55;pointer-events:none;cursor:not-allowed}.settingsQuota{flex-wrap:wrap;gap:8px;margin:-8px 0 18px;display:flex}.settingsQuota span{color:#334155;background:#f8fbff;border:1px solid #dbeafe;border-radius:999px;padding:7px 10px;font-size:12px}.warningEditorHint{margin-bottom:10px;line-height:1.5}.inlineResetBtn{color:#166534;background:#fffc;border:1px solid #bbf7d0;border-radius:8px;margin-top:9px;padding:6px 9px;font-size:12px;font-weight:750}.exportNotice{border-radius:10px;margin:0 0 16px;padding:11px 13px;line-height:1.55}.exportNoticeOk{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0}.exportNoticeWarn{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa}@media (max-width:760px){.quotaCard{flex-direction:column;align-items:stretch}.countdownBox{text-align:left;min-width:0}.statsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:430px){.statsGrid{grid-template-columns:1fr}}
