:root{--bg: #f6f4f1;--card: #fff;--text: #2b2724;--muted: #7a726b;--border: #ddd6ce;--primary: #7a5c3e;--primary-hover: #654b31;--danger: #b3261e;--ok: #2e7d32;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}h1{font-size:1.5rem;margin:0}h2{font-size:1.1rem;margin:0 0 1rem}input,textarea,select,button{font:inherit;color:inherit}input,textarea,select{width:100%;padding:.45rem .6rem;border:1px solid var(--border);border-radius:6px;background:#fff}textarea{resize:vertical;line-height:1.4}input:focus,textarea:focus,select:focus{outline:2px solid var(--primary);outline-offset:-1px}button{padding:.45rem .9rem;border:1px solid var(--border);border-radius:6px;background:#fff;cursor:pointer;white-space:nowrap}button:hover{border-color:var(--primary)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--primary);border-color:var(--primary);color:#fff}button.primary:hover{background:var(--primary-hover)}button.danger{color:var(--danger)}button.danger:hover{border-color:var(--danger)}button.icon{padding:.1rem .4rem;line-height:1.2}label{display:block;margin-bottom:.9rem;font-weight:500}label>input,label>textarea{margin-top:.3rem;font-weight:400}.muted{color:var(--muted)}.small{font-size:.85rem}.hint{color:var(--muted);font-size:.85rem;margin:.4rem 0 0}.req{color:var(--danger)}.error{background:#fdecea;color:var(--danger);border:1px solid #f5c2bf;padding:.6rem .8rem;border-radius:6px;margin:.8rem 0}.error.inline{margin:0;padding:.3rem .6rem}.ok{color:var(--ok);font-weight:500}.card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:1.25rem;margin-bottom:1.25rem}.layout{min-height:100vh}.topbar{display:flex;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.topbar button{margin-left:auto}main{max-width:1100px;margin:0 auto;padding:1.5rem}.login{max-width:360px;margin:12vh auto}.login h1{margin-bottom:1rem}.login button{width:100%;margin-top:.4rem}.list-head{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.list-head .toolbar{margin-left:auto}.toolbar{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.filters{margin-bottom:1rem}.filters select{width:auto}.filters input{width:260px}table.list{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}table.list th,table.list td{padding:.6rem .75rem;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}table.list th{background:#faf8f6;font-weight:600;font-size:.85rem;color:var(--muted)}table.list tr:last-child td{border-bottom:0}.thumb{width:56px;height:42px;object-fit:contain;background:#f2efeb;border-radius:4px;display:block}.actions{text-align:right;white-space:nowrap}.actions button+button{margin-left:.4rem}.photo-row{display:flex;gap:1.25rem;align-items:flex-start;flex-wrap:wrap}.photo{width:200px;height:150px;object-fit:contain;background:#f2efeb;border:1px solid var(--border);border-radius:6px}.photo.empty{display:flex;align-items:center;justify-content:center;color:var(--muted)}.photo-row input[type=file]{border:0;padding:0}.table-editor{border:1px solid var(--border);border-radius:6px;padding:.75rem 1rem 1rem;margin:0 0 1.25rem}.table-editor legend{font-weight:600;padding:0 .4rem}.table-scroll{overflow-x:auto;margin-bottom:.6rem}.table-editor table{border-collapse:collapse;width:100%}.table-editor th{padding:0 0 .25rem;text-align:center;font-weight:400}.table-editor td{padding:2px;vertical-align:top;min-width:140px}.table-editor td.row-tools,.table-editor th.row-tools{min-width:0;width:1%;white-space:nowrap}.table-editor td.row-tools button{margin-right:2px}.table-editor textarea{min-height:2.1rem;padding:.3rem .45rem;font-size:.9rem}.table-editor tr.header-row textarea{font-weight:600;background:#faf8f6}.savebar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:1rem;padding:.75rem 1rem;background:#fffffff2;border:1px solid var(--border);border-radius:8px}.extra-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem;margin-bottom:.9rem}.extra-item{position:relative;border:1px solid var(--border);border-radius:6px;background:#f2efeb;overflow:hidden}.extra-item.is-new{border-color:var(--primary)}.extra-item img{display:block;width:100%;height:105px;object-fit:contain}.extra-item .badge{position:absolute;top:4px;left:4px;background:var(--primary);color:#fff;font-size:.7rem;padding:.05rem .4rem;border-radius:4px}.extra-tools{display:flex;justify-content:center;gap:4px;padding:4px;background:#fff;border-top:1px solid var(--border)}.dropzone{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.9rem;border:1px dashed var(--border);border-radius:6px;background:#faf8f6}.dropzone.over{border-color:var(--primary);background:#f3ece4}.video-preview{position:relative;max-width:640px;aspect-ratio:16 / 9;margin-top:.75rem;border-radius:6px;overflow:hidden;background:#000}.video-preview iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0}
