:root{--ink:#183f36;--paper:#f6f4ec;--line:#dddcd0;--orange:#a85434}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button,a.button{cursor:pointer;background:var(--ink);color:white;border:1px solid var(--ink);border-radius:8px;padding:10px 15px;text-decoration:none;display:inline-block;line-height:1.4}button.secondary,a.secondary{background:white;color:var(--ink);border-color:var(--line)}button.danger{background:#fff1eb;color:#903c26;border-color:#e6c4b8}button:disabled{opacity:.5;cursor:wait}input,select,textarea{border:1px solid #bfcac4;border-radius:7px;padding:11px;background:white;max-width:100%;color:var(--ink)}input[type=checkbox]{width:20px;height:20px;accent-color:var(--ink)}label{display:block;margin:14px 0 6px}textarea{width:100%;min-height:100px;line-height:1.65}h1{font-size:34px;letter-spacing:-1px;margin:12px 0}h2{font-size:22px}h3{font-size:18px;line-height:1.5;margin:10px 0}p{line-height:1.75}small,.muted{color:#667b70;line-height:1.6}.shell{max-width:1400px;margin:auto;padding:28px 36px}.top{display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{letter-spacing:2px;font-family:serif;font-size:23px}.top-actions,.actions,.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.nav{display:flex;gap:9px;margin:26px 0;flex-wrap:wrap}.nav button{background:transparent;color:var(--ink);border-color:var(--line)}.nav button.active{background:var(--ink);color:white}.hero{background:#e8eddf;border:1px solid #d5dec9;border-radius:16px;padding:26px;margin-bottom:24px}.hero h1{margin-top:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;overflow:hidden}.card .preview{display:block;width:100%;height:285px;object-fit:contain;background:#f7f5ed;border-radius:7px;cursor:zoom-in}.card .copy{font-size:14px;line-height:1.7;max-height:100px;overflow:auto;color:#415b4d}.card .actions{margin-top:14px}.card .actions button,.card .actions a{padding:8px 10px;font-size:13px}.meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#728270}.badge{background:#e8efdf;padding:4px 9px;border-radius:20px;font-size:12px}.badge.warn{background:#fff0db;color:#945713}.empty{padding:50px 20px;border:1px dashed #b7c5b8;text-align:center;border-radius:12px;color:#63766c;background:#ffffff60}.filters{margin-bottom:20px}.filters input{flex:1;min-width:170px}.panel{padding:22px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:20px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}td,th{text-align:left;padding:12px;border-bottom:1px solid var(--line)}th{background:#eef2e8}.login{max-width:430px;margin:10vh auto;padding:30px;background:white;border:1px solid var(--line);border-radius:18px}.login input{width:100%}.login button{width:100%;margin-top:22px}.login .brand{margin-bottom:30px}.error{color:#a14430;min-height:22px}.selection{position:sticky;bottom:12px;background:#173f36;color:white;padding:15px 20px;border-radius:12px;box-shadow:0 8px 30px #14382930;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:20px;z-index:3}.selection button{background:#edf3dc;color:#163c33}.pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin:25px}dialog{border:1px solid var(--line);border-radius:15px;max-width:650px;width:calc(100% - 28px);max-height:92vh;overflow:auto;padding:25px;color:var(--ink)}dialog::backdrop{background:#142c2670}dialog img{width:100%;height:auto}dialog .actions{margin-top:20px}dialog input:not([type=checkbox]){width:100%}#toast{position:fixed;top:15px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:#183f36;color:white;z-index:99;display:none;max-width:90%}.notice{background:#fff0dd;color:#855521;padding:12px 18px;border-radius:8px;margin-bottom:18px}.count{font-size:42px;font-family:serif}.split{display:flex;justify-content:space-between;align-items:center;gap:15px}.checkline{display:flex;gap:10px;align-items:center}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f4ed;padding:16px;border-radius:8px}a{color:#965437}.section-title{margin-top:32px}.cancelled{opacity:.65}.mobile-hint{font-size:13px;color:#718074}.progress{display:flex;gap:12px;flex-wrap:wrap}.progress span{padding:8px 12px;background:#eff4e8;border-radius:6px}
@media(max-width:1000px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shell{padding:24px}}@media(max-width:600px){.shell{padding:18px 12px}.top{align-items:flex-start}.brand{font-size:18px}.top-actions{justify-content:flex-end}.top-actions button{font-size:12px;padding:7px}h1{font-size:27px}.hero{padding:20px}.grid{grid-template-columns:1fr}.nav{gap:6px;margin:20px 0}.nav button{padding:9px 12px}.card .preview{height:360px}.card{padding:14px}.login{margin:8vh 14px}.selection{align-items:flex-start;font-size:13px}.filters>*{flex:1}.panel{padding:15px}.split{align-items:flex-start}.top .muted{font-size:12px}dialog{padding:19px}}

@media(max-width:600px){.top{flex-direction:column;gap:12px}.top-actions{width:100%}.top-actions>span{margin-right:auto}.brand{white-space:nowrap;font-size:20px}}
.selection{position:fixed;left:24px;right:24px;bottom:18px;max-width:1328px;margin:0 auto;z-index:10}.selection>span{max-width:35%;overflow-wrap:anywhere}.selection small{display:block;color:#d9e6d4;max-height:40px;overflow:auto}.has-selection .shell{padding-bottom:180px}.page-selection,.task-tools{margin:16px 0}.matrix-cell{display:block;width:100%;min-width:80px;padding:9px;background:#f3f6ee;border:1px solid #dbe3d5;color:#183f36;text-align:center}.matrix-cell strong{font-size:17px}.matrix-cell small{color:#9c5638}.matrix-cell span{display:block;font-size:12px;color:#637665;margin-top:5px}.matrix-cell:hover{background:#dde9d0}.matrix-cell:disabled{background:transparent;opacity:.4}.filter-path{font-size:14px}@media(max-width:600px){.selection{left:8px;right:8px;bottom:8px;padding:12px;display:block}.selection>span{max-width:100%;display:block;margin-bottom:9px}.selection .actions{gap:6px}.selection button{padding:8px;font-size:12px}.has-selection .shell{padding-bottom:240px}.selection small{max-height:23px}}
