:root{--ink: #20332f;--muted: #586961;--paper: #f7f7f1;--line: #d7ded6;--accent: #245e49;--warn: #aa381e;--soft: #e8eee7;--white: #fff;--focus: #075dba;font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;font-size:15px;color:var(--ink);background:#e7ebe6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box;letter-spacing:0;scrollbar-color:#849a89 var(--soft)}body{margin:0;min-width:320px}html,body,#app{height:100%}.app-layout{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}h1,h2,h3,p{margin:0}button,select,input{font:inherit}button,select{cursor:pointer}button{border:1px solid #bdc9bf;border-radius:6px;background:var(--white);color:var(--ink);padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;flex-shrink:0}button:hover{background:#edf2eb}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);color:var(--white)}button.primary:hover{background:#194535}button svg{width:18px;height:18px;flex-shrink:0;stroke-width:1.8}select{border:1px solid #bdc9bf;border-radius:5px;padding:10px 14px;background:var(--white);color:var(--ink);min-height:44px;width:100%}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{background:#c6dfc7;color:#122e22}[hidden]{display:none!important}.appbar{flex-shrink:0;background:var(--paper);border-bottom:1px solid var(--line);padding:0 3%;height:78px;display:flex;align-items:center;gap:35px}.brand{font-size:21px;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:12px}.brand svg{width:29px;height:29px;fill:var(--accent);color:var(--paper)}.tabs{display:flex;height:100%;gap:24px}.tab{background:none;border:0;border-radius:0;padding:0 3px;color:var(--muted);position:relative}.tab[aria-selected=true]{color:var(--accent);font-weight:700}.tab[aria-selected=true]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--accent)}.connection-status{margin-left:auto;font-size:12px;white-space:nowrap;color:var(--accent);background:var(--soft);padding:5px 10px;border-radius:4px}.connection-status.offline{color:#704f20;background:#f2ead9}.shell{padding:22px 3% 28px;width:100%;flex:1;min-height:0;display:flex}#preview{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.preview-tools{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.board-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0}.preview-info{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.preview-info strong{font-size:17px}.preview-info span{color:var(--muted);font-size:13px}.tool-buttons{display:flex;gap:8px}.board{container-type:inline-size;position:relative;width:0;height:0;flex-shrink:0;aspect-ratio:16/9;background:var(--paper);border:1px solid #c4d0c5;overflow:hidden;display:flex;flex-direction:column}.board:focus-visible{outline:none}.board-header{height:9%;flex-shrink:0;display:flex;align-items:center;margin:0 2.6%;border-bottom:1px solid var(--line)}.board-header h1{font-size:calc(var(--board-unit, 10px) * 2.05);font-weight:650}.board-content{flex:1;min-height:0;display:grid;grid-template-columns:44% 56%;padding:2.5% 2.6% 1.7%}.story{display:flex;flex-direction:column;padding-right:6%;min-width:0;min-height:0}.ticket-meta{font-size:calc(var(--board-unit, 10px) * 1.25);color:var(--muted);display:flex;gap:calc(var(--board-unit, 10px) * .8);align-items:center;margin-bottom:calc(var(--board-unit, 10px) * 1.1);flex-wrap:wrap;max-height:22%;overflow:hidden;overflow-wrap:anywhere;flex-shrink:0}.ticket-meta .part{background:#e5ebe2;color:#345044;padding:calc(var(--board-unit, 10px) * .28) calc(var(--board-unit, 10px) * .65);border-radius:3px;font-weight:650}.story h2{--text-min: 24px;--text-max: 32px;position:relative;font-size:var(--text-max);line-height:1.3;font-weight:700;margin-bottom:calc(var(--board-unit, 10px) * 1.3);overflow-wrap:anywhere;overflow:hidden;flex-shrink:0}.feedback-user{font-size:calc(var(--board-unit, 10px) * 1.4);line-height:1.6;color:var(--muted);overflow-wrap:anywhere;margin-bottom:calc(var(--board-unit, 10px) * .7);max-height:12%;overflow:hidden;flex-shrink:0}.summary{--text-min: 16px;--text-max: 18px;position:relative;font-size:var(--text-max);line-height:1.75;margin-top:calc(var(--board-unit, 10px) * .8);white-space:pre-wrap;overflow-wrap:anywhere;flex:1;min-height:0;overflow:hidden}.summary-measure{position:absolute;top:0;left:0;width:100%;visibility:hidden;pointer-events:none}.body-pagination-slot{height:calc(var(--board-unit, 10px) * 2);flex-shrink:0}.body-pagination{flex-shrink:0;font-size:calc(var(--board-unit, 10px) * 1.05);color:var(--muted);padding-top:calc(var(--board-unit, 10px) * .4)}.media{display:flex;flex-direction:column;min-height:0;min-width:0;padding-left:3%;border-left:1px solid var(--line)}.media-top{display:flex;align-items:center;justify-content:space-between;font-size:calc(var(--board-unit, 10px) * 1.13);color:var(--muted);padding-bottom:calc(var(--board-unit, 10px) * .8)}.media-top strong{color:var(--ink);font-weight:500}.figure{flex:1;min-height:0;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.figure img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.figure .playback-image{opacity:0;transition:opacity .4s ease-in-out;pointer-events:none}.figure .image-current{opacity:1}.image-loading{width:28px;height:28px;color:var(--muted);animation:image-spin 1s linear infinite}@keyframes image-spin{to{transform:rotate(360deg)}}.no-photo{background:#e8ede5;flex-direction:column;padding:calc(var(--board-unit, 10px) * 3);text-align:center;gap:calc(var(--board-unit, 10px) * 1)}.no-photo>svg{height:calc(var(--board-unit, 10px) * 6);width:calc(var(--board-unit, 10px) * 6);color:#71836e}.no-photo strong{font-size:calc(var(--board-unit, 10px) * 1.9);font-weight:500}.image-retry{margin-top:8px}.caption{display:flex;align-items:center;justify-content:space-between;font-size:calc(var(--board-unit, 10px) * 1.36);min-height:calc(var(--board-unit, 10px) * 3.6);gap:calc(var(--board-unit, 10px) * 1)}.dots{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:calc(var(--board-unit, 10px) * .45);max-width:50%;max-height:calc(var(--board-unit, 10px) * 3);overflow:hidden}.dots span{width:calc(var(--board-unit, 10px) * .55);height:calc(var(--board-unit, 10px) * .55);border-radius:50%;background:#c0ccbd}.dots span.active{background:var(--accent)}.quality-motto{flex-shrink:0;margin:0;padding:calc(var(--board-unit, 10px) * .85) 2.6%;background:var(--accent);text-align:center;font-size:calc(var(--board-unit, 10px) * 2.3);font-weight:800;line-height:1.4;color:var(--white)}.board-footer{height:11.4%;flex-shrink:0;margin:0 2.6%;display:flex;align-items:center;justify-content:space-between;gap:calc(var(--board-unit, 10px) * 2)}.sequence{display:flex;align-items:baseline;gap:calc(var(--board-unit, 10px) * .5);font-size:calc(var(--board-unit, 10px) * 1.25);color:var(--muted);white-space:nowrap}.sequence strong{font-size:calc(var(--board-unit, 10px) * 2.7);font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.next-up{min-width:0;flex:1;font-size:calc(var(--board-unit, 10px) * 1.25);color:var(--muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.next-up b{font-weight:500;color:var(--ink);margin-left:calc(var(--board-unit, 10px) * .65)}.play-state{font-size:calc(var(--board-unit, 10px) * 1.1);color:var(--accent);text-align:right;white-space:nowrap}.progress{position:absolute;bottom:0;height:calc(var(--board-unit, 10px) * .32);background:var(--accent);left:0;transition:width .2s linear}.empty{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:calc(var(--board-unit, 10px) * 4);text-align:center}.empty h2{font-size:calc(var(--board-unit, 10px) * 3)}.admin{background:var(--paper);padding:30px 36px;border:1px solid var(--line);flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow-y:auto}.page-heading{display:flex;flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.page-heading h2{font-size:28px;margin-bottom:8px}.save-state{color:var(--muted);line-height:1.7;font-size:14px}.save-state.dirty{color:#88602c}.settings{display:grid;flex-shrink:0;grid-template-columns:1fr 1fr 1fr;gap:25px;border-block:1px solid var(--line);padding:26px 0;margin-bottom:25px}.field{display:flex;flex-direction:column;gap:9px;min-width:0}.field label,.field>strong{font-weight:650}.field small{color:var(--muted);line-height:1.6}.field .stat{font-size:25px;margin-top:4px;font-variant-numeric:tabular-nums}.table-heading{display:flex;flex-shrink:0;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}.table-heading h3{font-size:19px}.table-heading h3 span{color:var(--muted);font-weight:400}.table-wrap{--row-height: 76px;flex:none;overflow-x:auto}table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px}th{text-align:left;color:var(--muted);font-weight:500;background:#edf0e9;padding:13px 12px}th:first-child{width:40%}th:nth-child(2){width:20%}th:nth-child(3){width:14%}th:nth-child(4){width:12%}th:last-child{width:14%}td{height:var(--row-height);padding:8px 12px;border-bottom:1px solid var(--line);line-height:1.6;overflow-wrap:anywhere}.issue-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}td small{display:block;color:var(--muted);font-size:12px}.issue-cell small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}td button{padding:6px 12px;font-size:13px;white-space:nowrap;min-height:34px}td button svg{width:15px;height:15px}.pill{color:var(--accent);white-space:nowrap}.pill.hidden-item{color:#6c6d65}.table-empty{height:160px;text-align:center;color:var(--muted)}.pagination{display:flex;flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;margin-top:20px}.pagination-idle{visibility:hidden}.pagination span{color:var(--muted);font-size:13px;margin-right:8px}.error-banner{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:16px;color:var(--warn);border:1px solid #d9c3b9;background:#faf0e9;padding:12px 16px;margin-bottom:18px;overflow-wrap:anywhere}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:var(--ink);color:#fff;padding:12px 22px;border-radius:6px;z-index:20;box-shadow:0 5px 20px #172b2226;max-width:90%;font-size:14px}.confirm-dialog{border:1px solid var(--line);border-radius:6px;padding:24px;color:var(--ink);background:var(--paper);width:min(480px,calc(100% - 32px))}.confirm-dialog::backdrop{background:#20332f70}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.dialog-heading h3{font-size:20px}.dialog-heading button{padding:8px;min-height:36px}.confirm-dialog p{line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.tv-mode .appbar,.tv-mode .preview-tools,.tv-mode .board-footer,.tv-mode .progress,.tv-mode .error-banner{display:none}.tv-mode .shell{padding:0;background:#15231d}.tv-mode .board{border:0}.exit-tv{position:fixed;right:14px;top:10px;z-index:10;font-size:12px;opacity:0}.exit-tv:focus-visible,.exit-tv:hover{opacity:1}@container (min-width: 1700px){.story h2{--text-min: 28px;--text-max: 36px}.summary{--text-min: 20px;--text-max: 22px}}@container (min-width: 2400px){.story h2{--text-min: 36px;--text-max: 44px}.summary{--text-min: 26px;--text-max: 30px}}@container (min-width: 3200px){.story h2{--text-min: 48px;--text-max: 60px}.summary{--text-min: 32px;--text-max: 36px}}@media(min-width:1700px){.shell{padding-top:26px}}@media(min-width:2500px){.appbar{height:100px}.brand{font-size:28px}.tab,.preview-info strong{font-size:22px}.preview-info span,.connection-status{font-size:18px}button,select{font-size:20px;min-height:52px}.admin{padding:36px 44px}.page-heading h2{font-size:34px}.field label,.field>strong,.table-heading h3{font-size:23px}.field small,.save-state,.pagination span{font-size:18px}table{font-size:20px}td small,td button{font-size:17px}.table-wrap{--row-height: 90px}}@media(max-height:800px)and (min-width:801px){.appbar{height:62px}.shell{padding-top:14px;padding-bottom:14px}.preview-tools{margin-bottom:12px}.admin{padding:18px 26px}.page-heading{margin-bottom:14px}.page-heading h2{font-size:24px;margin-bottom:4px}.settings{padding:14px 0;margin-bottom:14px}.table-wrap{--row-height: 66px}.pagination{margin-top:12px}.tv-mode .shell{padding:0}}@media(max-width:1100px){.preview-tools{flex-wrap:wrap}}@media(max-width:800px){.appbar{height:auto;min-height:68px;gap:15px;padding:12px 18px 0;flex-wrap:wrap}.brand{font-size:18px}.tabs{height:42px;gap:20px;order:3;flex-basis:100%}.connection-status{font-size:10px}.shell{padding:12px}.preview-tools{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:10px}.preview-info{flex-wrap:wrap;gap:8px}.preview-info span{font-size:12px}.tool-buttons{flex-wrap:wrap}.admin{padding:22px 18px;overflow-y:auto}.page-heading{flex-wrap:wrap}.settings{grid-template-columns:1fr}.table-heading{align-items:flex-start;flex-wrap:wrap}.table-wrap table{min-width:720px}.pagination{flex-wrap:wrap}.board:not(.tv-mode .board){aspect-ratio:auto}.board:not(.tv-mode .board) .board-header{height:36px}.board:not(.tv-mode .board) .board-header h1{font-size:20px}.board:not(.tv-mode .board) .board-content{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,.85fr);padding:10px 12px 4px;gap:10px}.board:not(.tv-mode .board) .story{padding-right:0}.board:not(.tv-mode .board) .ticket-meta{font-size:11px;gap:6px;margin-bottom:4px}.board:not(.tv-mode .board) .story h2{--text-min: 18px;--text-max: 20px;margin-bottom:4px}.board:not(.tv-mode .board) .feedback-user{font-size:12px;margin-bottom:2px}.board:not(.tv-mode .board) .summary{--text-min: 14px;--text-max: 15px;line-height:1.6}.board:not(.tv-mode .board) .body-pagination-slot{height:16px}.board:not(.tv-mode .board) .body-pagination{font-size:10px}.board:not(.tv-mode .board) .media{padding-left:0;border-left:0}.board:not(.tv-mode .board) .media-top{font-size:13px;padding-bottom:8px}.board:not(.tv-mode .board) .no-photo>svg{width:48px;height:48px}.board:not(.tv-mode .board) .no-photo strong{font-size:18px}.board:not(.tv-mode .board) .caption{font-size:13px;min-height:36px}.board:not(.tv-mode .board) .quality-motto{font-size:14px;padding:8px 12px}.board:not(.tv-mode .board) .board-footer{height:44px;gap:10px}.board:not(.tv-mode .board) .sequence,.board:not(.tv-mode .board) .next-up{font-size:12px}.board:not(.tv-mode .board) .sequence strong{font-size:24px}.board:not(.tv-mode .board) .play-state{font-size:10px}}@media(prefers-reduced-motion:reduce){.progress,.figure .playback-image{transition:none}.image-loading{animation:none}}
