:root{font-family:Segoe UI,Arial,sans-serif;color:#4e392f;background:#f3ede2}*{box-sizing:border-box}body{margin:0;color:#4e392f;background:radial-gradient(circle at top right,rgba(255,255,255,.28),transparent 30%),linear-gradient(180deg,#f3ede2,#efe6d8)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.app-shell{min-height:100vh}.main-area{min-width:0}.topbar{display:flex;align-items:center;gap:1rem;padding:clamp(.9rem,1.8vw,1.15rem) clamp(1rem,2.6vw,2rem);color:#fff;background:linear-gradient(180deg,#744635,#5d3528)}.topbar-brand{display:flex;align-items:center;gap:1rem;min-width:0}.topbar-logo-wrap{width:74px;height:74px;display:grid;place-items:center;flex:0 0 74px;border-radius:999px;background:#fffbf6eb;box-shadow:0 2px 12px #0000001a}.topbar-logo{max-width:64px;max-height:64px;width:auto;height:auto;object-fit:contain;display:block}.topbar-copy{min-width:0}.topbar-title{font-size:1.9rem;font-weight:800;line-height:1.08}.topbar-subtitle{color:#f6e7def2;font-size:.92rem;line-height:1.45;margin-top:.22rem;max-width:920px}.content-wrap{padding:clamp(1rem,2vw,1.5rem) clamp(1rem,2.6vw,2rem) clamp(1.2rem,2.6vw,2rem)}.toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;flex-wrap:wrap;margin-bottom:1.2rem}.summary-chips{display:flex;flex-wrap:wrap;gap:.75rem}.summary-chip{display:flex;align-items:baseline;gap:.45rem;min-width:0;padding:.75rem .95rem;border-radius:999px;background:#ffffffad;border:1px solid rgba(109,77,58,.1)}.summary-chip strong{color:#643d32;font-size:1.02rem}.summary-chip span{color:#643d32b8;font-size:.84rem}.toolbar-right{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.search-input{width:min(280px,100%);max-width:100%;border-radius:999px;border:1px solid rgba(109,77,58,.12);background:#ffffffd1;padding:.85rem 1rem;color:#4e392f;outline:none}.primary-button,.ghost-button,.mini-button{border-radius:999px;padding:.85rem 1.2rem;font-weight:700;border:1px solid rgba(109,77,58,.12)}.primary-button{background:linear-gradient(180deg,#744635,#5d3528);color:#fff;display:inline-flex;align-items:center;justify-content:center}.ghost-button,.mini-button{background:#ffffffe0;color:#6b4a3e}.button-content{display:inline-flex;align-items:center;justify-content:center;gap:.55rem}.button-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}.content-grid{display:grid;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:clamp(1rem,2vw,1.6rem)}.left-column,.right-column{display:grid;gap:1.2rem}.panel{border-radius:18px;padding:1.15rem;background:#ffffff7a;border:1px solid rgba(109,77,58,.1);box-shadow:0 2px 16px #4d302309}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.panel-header h2{margin:0;font-size:1.2rem;color:#643d32}.dropzone{border-radius:16px;border:1px dashed rgba(109,77,58,.2);background:#ffffffa3;padding:1rem;text-align:center}.dropzone.drag-active{background:#f4e9e1e6;border-color:#6d4d3a52}.dropzone-title{color:#643d32;font-weight:800;margin-bottom:.2rem}.dropzone-sub{color:#643d32ad;margin-bottom:.85rem;font-size:.92rem}.preset-grid.rigid{display:grid;gap:.75rem}.preset-button.rigid{width:100%;text-align:left;border-radius:14px;padding:.95rem 1rem;border:1px solid rgba(109,77,58,.1);background:#ffffffad}.preset-button.rigid.selected{background:linear-gradient(180deg,#744a3924,#744a3914);border-color:#744a3947}.preset-title{color:#643d32;font-weight:800}.preset-sub{margin-top:.25rem;color:#643d32b8;font-size:.84rem;line-height:1.35}.rules-list{display:grid;gap:.6rem;color:#643d32d6;font-size:.94rem}.panel-actions{display:flex;gap:.55rem;flex-wrap:wrap}.blank-preview{min-height:clamp(320px,42vh,420px);border:1px dashed rgba(109,77,58,.14);background:#ffffff9e;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:clamp(1.25rem,3vw,2rem)}.blank-preview-icon{width:84px;height:84px;display:grid;place-items:center;border-radius:999px;background:#744a391a;color:#744a39;font-size:2rem;margin-bottom:1rem}.blank-preview-title{color:#643d32;font-size:1.8rem;font-weight:800}.blank-preview-subtitle{color:#643d32ad;margin-top:.7rem}.preview-meta{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.85rem;color:#643d32cc;font-size:.92rem}.preview-frame{border-radius:16px;border:1px solid rgba(109,77,58,.1);background:#ffffffbd;padding:.8rem}.preview-image{display:block;width:100%;max-height:min(64vh,640px);object-fit:contain;border-radius:12px}.empty-queue{border-radius:14px;border:1px dashed rgba(109,77,58,.14);background:#ffffff9e;padding:1.2rem;color:#643d32ad}.file-table{overflow:hidden;border-radius:14px;border:1px solid rgba(109,77,58,.1);background:#ffffffbd}.file-table-head,.file-row{display:grid;grid-template-columns:minmax(0,1.6fr) .75fr .9fr;gap:.75rem;padding:.9rem 1rem}.file-table-head{background:#744a390f;border-bottom:1px solid rgba(109,77,58,.1);color:#643d329e;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.file-row{width:100%;border:none;border-bottom:1px solid rgba(109,77,58,.08);background:transparent;text-align:left;color:#643d32cc}.file-row:last-child{border-bottom:none}.file-row.selected{background:#744a3914}.file-name{color:#643d32;font-weight:800;margin-bottom:.15rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-note{color:#643d328f;font-size:.78rem}@media (max-width: 1280px){.content-grid{grid-template-columns:minmax(300px,360px) minmax(0,1fr)}.toolbar{align-items:stretch}.toolbar-right{width:100%;justify-content:flex-start}}@media (max-width: 1024px){.content-grid{grid-template-columns:1fr}.right-column,.left-column{gap:1rem}}@media (max-width: 900px){.topbar{padding:1rem}.topbar-brand{align-items:flex-start}.topbar-logo-wrap{width:66px;height:66px;flex-basis:66px}.topbar-logo{max-width:57px;max-height:57px}.topbar-title{font-size:1.55rem}.toolbar{flex-direction:column;align-items:stretch}.toolbar-right,.search-input{width:100%}}@media (max-width: 640px){.content-wrap{padding:.9rem}.topbar-brand{gap:.75rem}.topbar-title{font-size:1.4rem}.summary-chips{gap:.5rem}.summary-chip{width:100%;justify-content:space-between}.panel-actions{width:100%}.panel-actions .mini-button{flex:1 1 100%}.file-table-head,.file-row{grid-template-columns:1fr}}
