:root{--bg:#f8f4ee;--surface:#fffdf9;--surface2:#fff7ec;--ink:#28251f;--muted:#81776b;--line:#e5dbcc;--accent:#e87541;--accent-strong:#c65c2e;--yellow:#f4cd73;--focus:rgba(232,117,65,.24);--shadow:0 14px 38px rgba(78,58,35,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 system-ui,-apple-system,"Microsoft JhengHei","Noto Sans TC",sans-serif}
button,select,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}button:disabled,select:disabled{cursor:not-allowed;opacity:.52}
.masthead{background:radial-gradient(circle at 85% 15%,rgba(244,205,115,.45),transparent 29%),linear-gradient(110deg,#fff6ea,#fffdf9);border-bottom:1px solid var(--line)}.mast-inner{max-width:1460px;margin:auto;padding:23px 30px;display:flex;align-items:center;gap:18px}.brand-mark{width:62px;height:62px;flex:none;display:grid;place-items:center;background:var(--accent);color:white;font-size:34px;font-weight:900;border-radius:19px;transform:rotate(-6deg);box-shadow:0 8px 18px rgba(232,117,65,.2)}.brand-copy{flex:1;min-width:0}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:#a56038}.brand-copy h1{font-size:clamp(22px,2.6vw,32px);line-height:1.3;letter-spacing:-.035em;margin:2px 0}.brand-copy h1 span{color:var(--accent-strong)}.brand-copy p{color:#655b50;margin:3px 0 0;font-size:12px}.version{flex:none;border:1px solid #eadac8;background:#fffaf4;border-radius:13px;padding:8px 13px;color:#756858;font-size:11px;text-align:center}.version b{font-size:12px;color:#342a20}.version small{display:block;font-size:10px;color:#948677}
.app-shell{max-width:1460px;margin:0 auto;padding:22px 30px 40px;display:grid;grid-template-columns:minmax(290px,330px) minmax(0,1fr);align-items:start;gap:19px}.settings,.workspace-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px}.settings{padding:19px 19px 18px}.workspace{min-width:0;display:grid;gap:17px}.workspace-card{padding:19px 22px 18px}.panel-head{display:flex;gap:10px;align-items:center;margin:0 0 13px}.panel-head.compact{margin-bottom:3px}.panel-label{display:inline-grid;place-items:center;flex:none;min-width:31px;height:31px;border-radius:10px;background:#ffe4cc;color:#b9562c;font-weight:900;font-size:12px}.panel-head h2{font-size:17px;letter-spacing:-.015em;margin:0}.setting-block{border-top:1px solid var(--line);padding:16px 0 15px}.setting-block>label,.setting-block>.field-label{display:block;font-weight:800;margin-bottom:6px;font-size:12px}.mini-label{font-size:10px;color:#a06740;background:#fff0e0;border-radius:7px;padding:3px 7px;font-weight:700;margin-left:4px}select,textarea,input[type=text]{background:white;color:var(--ink);border:1px solid #dcd0bf;border-radius:10px;width:100%;padding:9px 11px;min-width:0}select{min-height:42px;line-height:1.4}.select-help{color:var(--muted);font-size:11px;margin-top:7px}.field-label{margin-top:16px}.segmented{display:flex;background:#f3ede4;border:1px solid #e6dacc;border-radius:12px;padding:4px;gap:3px}.batch-btn{flex:1;min-width:0;padding:8px 4px;border:0;border-radius:9px;font-size:12px;font-weight:800;color:#70675c;background:none;line-height:1.4}.batch-btn small{display:block;font-size:10px;font-weight:500}.batch-btn.active{background:var(--surface);box-shadow:0 2px 7px rgba(64,42,22,.11);color:#b75021}.tip{font-size:10.5px;color:var(--muted);line-height:1.6;margin:9px 0 0}.sublabel{margin-top:12px!important;font-weight:700!important;color:#595146;font-size:11px!important}.settings textarea{resize:vertical;min-height:74px;font-size:12px;line-height:1.7}.font-description{background:var(--surface2);border:1px solid #f1e4d3;border-radius:10px;padding:9px 10px;font-size:11px;color:#736151;line-height:1.6;margin:9px 0 0;min-height:52px}.field-2col{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field-2col select{font-size:12px;padding:8px 6px}.color-field{display:flex;align-items:center;gap:7px;border:1px solid #dcd0bf;border-radius:10px;height:42px;padding:5px 8px;background:white}.color-field input{flex:none;width:31px;height:29px;background:none;border:0;padding:0;cursor:pointer}.color-field span{color:#554d43;font-size:11px;font-variant-numeric:tabular-nums}.privacy-note{font-size:11px;color:#8b7863;line-height:1.7;background:#f8f3ec;border-radius:11px;padding:11px 12px}
.workspace-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}.muted{color:var(--muted);font-size:11px;margin:0 0 0 41px}.ghost-button{border:1px solid var(--line);background:#fff9f1;color:#8f5c35;font-weight:700;font-size:11px;padding:9px 12px;border-radius:10px;white-space:nowrap}.ghost-button:hover{background:#fff0e0}.line-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.line-item{border:1px solid #e8e0d5;border-radius:11px;padding:9px 9px 6px;background:#fffdf9;min-width:0;transition:border-color .15s,background .15s}.line-item:focus-within{border-color:#efa57f;background:#fff9f1}.line-item-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.line-number{font-size:11px;color:#ba754c;font-weight:900;font-variant-numeric:tabular-nums}.line-item textarea{display:block;resize:vertical;font-size:13px;min-height:49px;padding:4px 3px;background:transparent;border:0;outline:0;line-height:1.65;border-radius:0;width:100%;color:#2d2b26}.line-item textarea:focus-visible{outline:none}.line-item .empty-note{font-size:9px;color:#aa9782}.editor-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:#8b7d6e;margin-top:10px}.editor-foot #lineCount{font-weight:800;color:#805a3e}.result-title-row{margin-bottom:13px}.action-row{display:flex;gap:8px}.action-button{border:1px solid transparent;border-radius:11px;font-size:12px;font-weight:800;padding:11px 15px;white-space:nowrap}.action-button.secondary{color:#7f5438;background:#f7ecdf;border-color:#e9d8c7}.action-button.primary{background:var(--accent);color:white;min-width:118px}.action-button.primary:hover{background:var(--accent-strong)}#promptOutput{width:100%;display:block;min-height:270px;max-height:520px;resize:vertical;background:#faf7f2;border:1px solid #e5dacf;border-radius:12px;padding:16px;color:#403c35;font:12.5px/1.8 Consolas,"Microsoft JhengHei",monospace}.output-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:10.5px;color:#948575;margin-top:9px}.bottom-note{font-size:11px;color:var(--muted);margin:0 5px;line-height:1.7}
@media(max-width:1100px){.app-shell{grid-template-columns:minmax(275px,310px) minmax(0,1fr);padding:18px;gap:13px}.line-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mast-inner{padding:18px}}
@media(max-width:760px){.mast-inner{padding:16px 13px;gap:11px;align-items:flex-start}.brand-mark{width:45px;height:45px;font-size:25px;border-radius:14px}.brand-copy h1{font-size:22px}.brand-copy p{font-size:11px}.version{display:none}.app-shell{display:block;padding:11px 10px 25px}.settings,.workspace-card{border-radius:16px}.settings{padding:16px}.workspace{margin-top:13px;gap:13px}.workspace-card{padding:14px 12px}.line-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.line-item{padding:7px 7px 5px}.line-item textarea{font-size:12px}.workspace-card-head{align-items:flex-start}.action-row{width:100%}.action-button{flex:1}#promptOutput{min-height:310px}.muted{font-size:10px}}
@media(min-width:761px){.settings{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;scrollbar-width:thin}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
