:root{--ink:#233632;--muted:#60736e;--bg:#f3f5f3;--panel:#fff;--line:#dbe3df;--accent:#1c654e;--soft:#e7f1eb;--error:#a3352b}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.55 "Avenir Next","PingFang TC",sans-serif}a{color:var(--accent);text-underline-offset:3px}button,input,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:6px;padding:8px 13px;cursor:pointer;text-decoration:none;font-weight:600;font-size:13px;white-space:nowrap}button:hover,.button:hover{border-color:var(--accent);background:var(--soft)}button.primary,.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline:3px solid #4083d7;outline-offset:3px}[hidden]{display:none!important}.shell{width:min(1280px,calc(100% - 48px));margin:auto}.topbar{border-bottom:1px solid var(--line);background:var(--panel)}.topbar .shell{height:58px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-weight:800;font-size:16px;text-decoration:none;letter-spacing:.03em}.nav{display:flex;gap:22px;font-size:13px}.nav a{text-decoration:none;color:var(--muted)}.nav a[aria-current]{color:var(--accent);font-weight:700}h1{font-size:26px;line-height:1.3;margin:0;font-weight:700;letter-spacing:-.015em}h2{font-size:18px;margin:0;line-height:1.4}h3{font-size:17px;line-height:1.45;margin:0}.muted{color:var(--muted)}.page-header{padding:30px 0 22px;display:flex;align-items:center;justify-content:space-between;gap:24px}.page-header p{margin:6px 0 0}.header-meta{text-align:right;font-size:12px;color:var(--muted);flex-shrink:0}.header-meta strong{display:block;color:var(--ink);font-size:14px}.sync-state{display:block;margin-top:4px}.error{color:var(--error)!important}.workspace-summary{display:flex;align-items:center;gap:20px;padding:14px 18px;border:1px solid var(--line);border-radius:8px;background:var(--panel);margin-bottom:18px;color:var(--muted);font-size:13px}.workspace-summary strong{color:var(--ink);margin-right:5px;font-size:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 12px}.project-list{display:grid;gap:14px}.project-card{display:grid;grid-template-columns:116px 1fr auto;gap:24px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.project-cover{display:block;width:116px;height:145px;object-fit:contain;background:#edf1ed;border-radius:4px}.project-info{min-width:0}.project-info h2{font-size:19px}.project-info p{margin:8px 0;color:var(--muted);font-size:13px}.project-info .source-name{overflow-wrap:anywhere}.project-actions{display:flex;flex-direction:column;gap:8px;min-width:136px}.badge{display:inline-block;color:var(--accent);background:var(--soft);border-radius:4px;padding:2px 7px;font-size:11px}.project-source{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.project-source p{margin:5px 0 0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}.project-source strong{font-size:14px}.actions{display:flex;gap:8px;flex-wrap:wrap}.overview{margin:14px 0;border:1px solid var(--line);border-radius:7px;padding:12px 16px;background:var(--panel);font-size:13px;color:var(--muted)}.overview summary{cursor:pointer;color:var(--ink);font-weight:600}.overview ul{padding-left:20px;margin-bottom:0}.overview li{margin:6px 0}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0 12px;scroll-margin-top:18px}.filters{display:flex;gap:6px;flex-wrap:wrap}.filters button{font-size:12px;padding:6px 10px}.filters button.active{background:var(--soft);color:var(--accent);border-color:var(--accent)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-bottom:24px}.direction-card{min-width:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}.card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}.card-index{font-weight:800;font-size:14px}.card-toolbar .badge{margin-left:8px}.revise-button{padding:6px 11px}.card-visual{height:310px;position:relative;background:#e9eee9;padding:10px}.poster-frame{display:block;height:100%;text-decoration:none}.poster-frame img{width:100%;height:100%;object-fit:contain;display:block}.open-image{position:absolute;right:16px;bottom:14px;background:#fffffff0;border:1px solid var(--line);padding:3px 7px;border-radius:4px;font-size:11px}.card-body{padding:15px}.card-body h3{font-size:15px}.next{margin:8px 0 0;font-size:12px;color:var(--muted)}.link-row,.refs{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;align-items:center}.text-link,.ref-link{font-size:11px;border:1px solid var(--line);border-radius:4px;text-decoration:none;padding:4px 7px}.refs>span{font-size:11px;color:var(--muted)}.ref-link{display:flex;align-items:center;gap:5px}.ref-link img{width:22px;height:26px;object-fit:contain}.card-body details{margin-top:12px;font-size:11px;color:var(--muted)}.card-body details p{overflow-wrap:anywhere}.card-body summary{cursor:pointer}.empty-state{padding:32px;text-align:center;border:1px dashed var(--line);border-radius:6px;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:24px;padding:20px 0 32px;font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:24px;max-height:92vh;overflow:auto;width:min(720px,94vw)}dialog::backdrop{background:#132d2690}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.dialog-head h2{font-size:20px}.dialog-head button{padding:5px 10px}.form-field{display:grid;gap:6px;margin:15px 0}.form-field label{font-size:13px;font-weight:600}.form-field input,.form-field textarea{width:100%;border:1px solid #afc0b7;border-radius:5px;padding:10px 12px;background:#fff;color:var(--ink)}.form-field textarea{resize:vertical;min-height:130px;line-height:1.6}.form-field #project-source-text{min-height:290px;font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.dialog-status{margin:8px 0;white-space:pre-wrap;font-size:13px;min-height:20px}.help{color:var(--muted);font-size:12px}.dialog-preview{display:flex;gap:14px;align-items:center}.dialog-preview img{width:80px;height:100px;object-fit:contain;border:1px solid var(--line);background:var(--bg)}.dialog-preview p{margin:0;font-size:13px}.job-list{margin:12px 0 0;display:grid;gap:10px}.job-item{border:1px solid var(--line);border-radius:6px;padding:12px;background:var(--bg)}.job-item p{margin:5px 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.job-item .actions{margin-top:8px}.job-item small{color:var(--muted)}#preview{width:min(1000px,96vw)}#preview-image{display:block;max-width:100%;height:auto;max-height:76vh;margin:auto}.notice{border:1px solid #d8c791;background:#fbf6e8;padding:12px 16px;border-radius:6px;font-size:13px;margin-bottom:16px}.notice p{margin:0}.notice a{margin-left:6px}.source-preview{margin:12px 0 0;padding:12px;background:var(--bg);max-height:200px;overflow:auto;white-space:pre-wrap;font:13px/1.6 "Avenir Next","PingFang TC",sans-serif}.small-title{font-size:14px!important;margin-bottom:8px}
@media(max-width:960px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-card{grid-template-columns:92px 1fr}.project-cover{width:92px;height:115px}.project-actions{grid-column:2;flex-direction:row}.page-header{align-items:start}.header-meta{max-width:200px}.project-info h2{font-size:18px}}
@media(max-width:650px){.shell{width:calc(100% - 28px)}.nav{gap:14px}.page-header{display:block;padding:22px 0 18px}h1{font-size:23px}.header-meta{margin-top:12px;text-align:left;max-width:none}.workspace-summary{gap:14px;flex-wrap:wrap}.project-card{padding:14px;gap:14px}.project-actions{grid-column:1/-1;flex-wrap:wrap}.project-source{display:block;padding:16px}.project-source .actions{margin-top:12px}.toolbar{display:block}.filters{margin-top:10px}.grid{grid-template-columns:1fr}.card-visual{height:330px}.section-head{align-items:start}.section-head .muted{font-size:12px}footer{display:block}footer>*{display:block;margin:6px 0}.dialog-head h2{font-size:18px}dialog{padding:18px}.dialog-actions{flex-wrap:wrap}}
