:root{--bg:#f4f5f5;--surface:#fff;--text:#1c2529;--text-muted:#4f5b60;--border:#d7dcde;--accent:#0f766e;--accent-hover:#0b5e57;--accent-soft:#e6f2f0;--error:#b42318;--error-soft:#fdf0ef;--warning-soft:#fdf6e3;--radius:8px;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}.page{flex-direction:column;gap:16px;width:100%;max-width:680px;margin:0 auto;padding:48px 16px 64px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px}h1{margin:0 0 8px;font-size:1.5rem;line-height:1.25}.card-header{justify-content:space-between;align-items:start;gap:12px;display:flex}.card-header h1{margin-bottom:0}h2{margin:0;font-size:1.05rem;line-height:1.3}.lede{color:var(--text-muted);margin:0 0 20px}.field{flex-direction:column;gap:6px;margin-bottom:16px;display:flex}.field label{font-size:.9rem;font-weight:600}.field input,.field select{border:1px solid var(--border);background:var(--surface);width:100%;min-height:40px;color:var(--text);font:inherit;border-radius:6px;padding:8px 10px}.field input[aria-invalid=true]{border-color:var(--error)}.field-error,.progress-error{color:var(--error);margin:0;font-size:.875rem}.progress-error{background:var(--error-soft);border-radius:6px;margin-top:16px;padding:8px 12px}.button{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font:inherit;border-radius:6px;min-height:40px;padding:8px 18px;font-weight:600}.button-primary{background:var(--accent);border-color:var(--accent);color:#fff}.button-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.button-block{width:100%}.button-small{min-height:34px;padding:4px 12px;font-size:.875rem}.button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.progress-panel{border-top:1px solid var(--border);margin-top:24px;padding-top:20px}.progress-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.status{background:var(--accent-soft);color:var(--text);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700}.status-running{background:#e0ecf7}.status-completed{background:#e2f2e4}.status-partial{background:var(--warning-soft)}.status-failed{background:var(--error-soft);color:var(--error)}.progress-pages{justify-content:space-between;margin-bottom:6px;font-size:.9rem;display:flex}.progress-bar{background:#e8ebec;border-radius:999px;height:8px;overflow:hidden}.progress-bar-fill{background:var(--accent);height:100%}.counters{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:18px 0 0;display:grid}.counter{background:var(--bg);border-radius:6px;padding:10px 12px}.counter dt{color:var(--text-muted);font-size:.8rem}.counter dd{margin:2px 0 0;font-size:1.25rem;font-weight:700}.current-item{margin-top:18px}.current-item h3{margin:0 0 8px;font-size:.95rem}.current-details{margin:0}.current-details div{gap:8px;display:flex}.current-details dt{color:var(--text-muted);font-weight:600}.current-details dd{overflow-wrap:anywhere;margin:0}.catalog-updated{color:var(--text-muted);margin:0 0 12px;font-size:.85rem}.comic-list,.chapter-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.comic-item,.chapter-item{background:var(--surface);border:1px solid var(--border);color:var(--text);cursor:pointer;font:inherit;text-align:left;border-radius:6px;align-items:center;gap:12px;width:100%;padding:8px 10px;display:flex}.comic-item-selected,.chapter-item-selected{border-color:var(--accent);background:var(--accent-soft)}.comic-cover{object-fit:cover;border-radius:4px;flex:none;width:48px;height:64px}.comic-item-text{flex-direction:column;min-width:0;display:flex}.comic-item-title{overflow-wrap:anywhere;font-weight:600}.comic-item-slug,.chapter-info{color:var(--text-muted);overflow-wrap:anywhere;font-size:.85rem}.comic-detail{border-top:1px solid var(--border);margin-top:20px;padding-top:16px}.comic-detail h3{margin:0 0 12px;font-size:1.15rem}.comic-detail h4{margin:20px 0 10px;font-size:1rem}.comic-detail-cover{border-radius:6px;width:100%;max-width:220px;height:auto;margin-bottom:14px;display:block}.comic-meta{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px 16px;margin:0 0 12px;display:grid}.comic-meta div{gap:6px;display:flex}.comic-meta dt{color:var(--text-muted);font-weight:600}.comic-meta dd{overflow-wrap:anywhere;margin:0}.comic-synopsis{overflow-wrap:anywhere;margin:0 0 8px}.chapter-item{justify-content:space-between}.chapter-item:disabled{cursor:not-allowed;opacity:.6}.chapter-images{flex-direction:column;gap:12px;display:flex}.chapter-images img{border:1px solid var(--border);border-radius:6px;width:100%;height:auto;display:block}.chapter-view{border-top:1px solid var(--border);margin-top:20px;padding-top:16px}.reader-image-missing{background:var(--error-soft);border:1px dashed var(--error);color:var(--error);text-align:center;border-radius:6px;margin:0;padding:16px 12px}@media (width<=560px){.page{padding-top:24px}.card{padding:20px}.counters{grid-template-columns:repeat(2,1fr)}}
