:root{
  --cnn:#CC0000;--cnn-dark:#A30000;--cnn-light:#fdecec;--cnn-mid:#CC0000;
  --primary:#CC0000;--primary-dark:#A30000;--primary-mid:#16213e;
  --red:#e24b4a;
  --green:#1D9E75;--green-light:#e6f9f2;
  --amber:#f59e0b;--amber-light:#fff8e1;
  --purple:#7c3aed;--purple-light:#ede9fe;
  --blue:#1a73e8;--blue-light:#e8f0fd;
  --bg:#f5f7fa;--card:#fff;--text:#1a1a1a;--muted:#666;--border:#e0e0e0;
  --radius:14px;--rsm:10px;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
body{font-family:-apple-system,BlinkMacSystemFont,'Sarabun','Segoe UI',sans-serif;background:var(--bg);color:var(--text);font-size:16px;padding-bottom:48px}

/* BRAND HEADER */
.brand-header{background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);padding:14px 16px;display:flex;align-items:center;gap:12px}
.brand-logo{width:42px;height:42px;background:#CC0000;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;color:white;letter-spacing:-.5px;flex-shrink:0}
.brand-name{color:white}
.brand-th{font-size:15px;font-weight:800;line-height:1.2}
.brand-en{font-size:11px;opacity:.7;letter-spacing:.05em}

/* NAV */
.nav{display:flex;background:var(--card);border-bottom:2px solid var(--cnn);position:sticky;top:0;z-index:50;box-shadow:0 2px 8px rgba(204,0,0,.1)}
.nav-btn{flex:1;padding:13px 4px;font-size:12px;font-weight:700;border:none;background:none;cursor:pointer;color:var(--muted);border-bottom:3px solid transparent;font-family:inherit;transition:color .15s}
.nav-btn.active{color:var(--cnn);border-bottom-color:var(--cnn)}

/* SUB NAV (dashboard tabs) */
.subnav{display:flex;gap:6px;background:#f0f0f0;padding:7px 10px;position:sticky;top:47px;z-index:49;border-bottom:1px solid var(--border);overflow-x:auto}
.subnav-btn{flex:1;min-width:max-content;padding:9px 14px;font-size:13px;font-weight:700;border:none;border-radius:20px;background:var(--card);cursor:pointer;color:var(--muted);font-family:inherit;white-space:nowrap;transition:all .15s}
.subnav-btn.active{background:var(--cnn);color:white}

/* MAP */
.map-controls{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.map-controls input,.map-controls select{padding:10px 11px;border:1.5px solid var(--border);border-radius:var(--rsm);font-size:13px;background:var(--card);outline:none;font-family:inherit}
.map-controls input[type=date]{min-width:130px}
.map-controls select{flex:1;min-width:110px;-webkit-appearance:none}
#map-canvas{height:62vh;min-height:340px;border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;z-index:1}
.map-info{font-size:13px;color:var(--muted);margin-bottom:8px;line-height:1.5}
.map-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:var(--muted)}
.map-legend span{display:inline-flex;align-items:center;gap:5px}
.map-legend i{width:11px;height:11px;border-radius:50%;display:inline-block}
.leaflet-div-icon.map-pin-wrap{background:transparent;border:none}
.map-pin{display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4);color:#fff;font-size:11px;font-weight:800}
.map-pop{font-family:inherit;font-size:13px;min-width:170px}
.map-pop b{font-size:14px}
.map-pop .mp-st{display:inline-block;padding:1px 7px;border-radius:10px;font-size:11px;font-weight:700;color:#fff;margin:3px 0}
.map-pop .mp-thumbs{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}
.map-pop .mp-thumbs img{width:46px;height:46px;object-fit:cover;border-radius:6px;cursor:pointer;border:1px solid var(--border)}
.map-pop a{display:inline-block;margin-top:6px;color:var(--cnn);font-weight:700;text-decoration:none;font-size:12px}

.page{display:none;padding-bottom:48px}.page.active{display:block}
.wrap{padding:14px;max-width:520px;margin:0 auto}
.sec{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:18px 0 8px;display:flex;align-items:center;gap:6px}
.sec:first-child{margin-top:0}
.sec::before{content:'';display:inline-block;width:3px;height:12px;background:var(--cnn);border-radius:2px}
.card{background:var(--card);border-radius:var(--radius);padding:14px;border:1px solid var(--border);margin-bottom:10px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.field{margin-bottom:12px}.field:last-child{margin-bottom:0}
.field label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:5px}
.req{color:var(--cnn)}
.field input,.field textarea,.field select{width:100%;padding:13px;border:1.5px solid var(--border);border-radius:var(--rsm);font-size:16px;background:#fafafa;color:var(--text);outline:none;-webkit-appearance:none;font-family:inherit;transition:border-color .15s}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--cnn);background:#fff}
.field textarea{height:60px;resize:none}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* STOP BLOCKS */
.stop-block{background:var(--card);border-radius:var(--radius);border:1px solid var(--border);padding:14px;margin-bottom:10px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.stop-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.stop-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}
.sdot{width:11px;height:11px;border-radius:50%;flex-shrink:0}
.sg{background:var(--green)}.sb{background:var(--blue)}.sr{background:var(--cnn)}
.btn-rm{background:var(--cnn-light);border:none;color:var(--cnn);border-radius:8px;padding:5px 11px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}
.btn-loc{width:100%;padding:12px;border-radius:var(--rsm);border:1.5px solid var(--cnn);background:var(--cnn-light);color:var(--cnn);font-size:14px;font-weight:700;cursor:pointer;margin-bottom:10px;display:flex;align-items:center;justify-content:center;gap:7px;font-family:inherit}
.btn-loc:active{background:#ffd5d5}
.loc-st{font-size:12px;padding:5px 9px;border-radius:7px;display:none;margin-bottom:8px}
.loc-st.show{display:block}
.ls-ok{background:var(--green-light);color:var(--green);font-weight:600}
.ls-load{background:var(--amber-light);color:var(--amber)}
.ls-err{background:var(--cnn-light);color:var(--cnn)}
.stop-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.btn-add{width:100%;padding:12px;border-radius:var(--rsm);border:2px dashed #ddd;background:transparent;color:var(--muted);font-size:14px;font-weight:700;cursor:pointer;margin-bottom:10px;font-family:inherit}
.btn-add:active{background:#f5f5f5}

/* DROP PHOTOS */
.drop-photo-area{border:1.5px dashed #ddd;border-radius:9px;padding:10px;text-align:center;cursor:pointer;background:#fafafa;margin-top:8px;font-size:13px;color:var(--muted)}
.drop-photo-area:active{background:#f0f0f0}
.dp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:7px}
.ph-item{position:relative;aspect-ratio:1;border-radius:9px;overflow:hidden;border:1px solid var(--border)}
.ph-item img{width:100%;height:100%;object-fit:cover}
.ph-rm{position:absolute;top:3px;right:3px;width:22px;height:22px;background:rgba(0,0,0,.6);border:none;border-radius:50%;color:white;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-weight:700}

/* BUTTONS */
.btn-submit{width:100%;padding:16px;border-radius:var(--radius);border:none;background:var(--cnn);color:white;font-size:17px;font-weight:700;cursor:pointer;margin-top:16px;font-family:inherit;transition:background .15s}
.btn-submit:active{background:var(--cnn-dark)}
.btn-submit:disabled{background:#aaa}
.btn-success{background:var(--green)}
.btn-success:active{background:#157a5a}
.btn-danger{background:var(--cnn-dark)}
.btn-info{background:var(--blue)}
.btn-info:active{background:#1257b8}

/* LOOKUP */
.lookup-wrap{padding:20px 14px;max-width:520px;margin:0 auto}
.lookup-card{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid var(--border);box-shadow:0 2px 12px rgba(204,0,0,.08)}
.lookup-icon{font-size:40px;text-align:center;margin-bottom:10px}
.lookup-title{font-size:18px;font-weight:800;text-align:center;margin-bottom:4px}
.lookup-sub{font-size:13px;color:var(--muted);text-align:center;margin-bottom:20px}
.found-card{border-radius:var(--rsm);padding:12px;margin-bottom:12px;display:none}
.found-active{background:var(--cnn-light);border:1.5px solid var(--cnn)}
.found-none{background:#fafafa;border:1px solid var(--border)}
.found-title{font-size:14px;font-weight:700;margin-bottom:4px}
.found-sub{font-size:12px;color:var(--muted)}

/* STEP INDICATOR */
.steps{display:flex;gap:0;border-radius:var(--rsm);overflow:hidden;border:1px solid var(--border);margin-bottom:14px}
.step{flex:1;padding:9px 4px;text-align:center;font-size:11px;font-weight:700;background:var(--card);color:var(--muted);border-right:1px solid var(--border)}
.step:last-child{border-right:none}
.step.done{background:var(--green-light);color:#085041}
.step.active{background:var(--cnn);color:white}

/* SUCCESS */
.success-screen{display:none;text-align:center;padding:56px 24px 40px}
.success-icon{font-size:64px;margin-bottom:14px}
.success-title{font-size:22px;font-weight:800;margin-bottom:7px}
.success-sub{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:28px}
.btn-new{width:100%;padding:15px;border-radius:var(--radius);border:2.5px solid var(--cnn);background:transparent;color:var(--cnn);font-size:16px;font-weight:700;cursor:pointer;font-family:inherit}

/* DASHBOARD */
.dash-wrap{padding:14px;max-width:960px;margin:0 auto}
.conn-bar{display:inline-flex;align-items:center;gap:7px;margin-bottom:10px;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600}
.cb-ok{background:var(--green-light);color:var(--green)}
.cb-warn{background:var(--amber-light);color:var(--amber)}
.cb-dot{width:7px;height:7px;border-radius:50%}

/* FUEL SETTINGS */
.fuel-box{background:var(--card);border-radius:var(--radius);border:1px solid var(--border);padding:14px;margin-bottom:12px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.fuel-box-title{font-size:14px;font-weight:700;margin-bottom:10px;color:var(--text)}
.fuel-row{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.fuel-row:last-child{margin-bottom:0}
.fuel-row label{font-size:13px;color:var(--muted);flex:1;min-width:130px}
.fuel-row input{width:90px;padding:7px 10px;border:1.5px solid var(--border);border-radius:8px;font-size:14px;background:#fafafa;outline:none;font-family:inherit;text-align:right}
.fuel-row input:focus{border-color:var(--cnn)}
.fuel-row span{font-size:13px;color:var(--muted)}

/* SUMMARY */
.summary-box{background:linear-gradient(135deg,var(--cnn-dark) 0%,var(--cnn) 100%);border-radius:var(--radius);padding:14px;margin-bottom:12px;color:white}
.sum-date{font-size:11px;opacity:.6;margin-bottom:6px}
.sum-title{font-size:14px;font-weight:800;margin-bottom:10px}
.sum-date-row{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap;align-items:center}
.sum-date-inp{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);border-radius:7px;padding:5px 9px;font-size:12px;color:white;font-family:inherit;outline:none;flex:1;min-width:120px}
.sum-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:8px}
.sum-box{background:rgba(255,255,255,.15);border-radius:9px;padding:9px;text-align:center}
.sum-n{font-size:18px;font-weight:800}
.sum-l{font-size:10px;opacity:.7;margin-top:2px}
.sum-rows{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.sum-r{background:rgba(255,255,255,.1);border-radius:7px;padding:8px 10px;font-size:12px}
.sum-rl{font-size:10px;opacity:.55;margin-bottom:2px}

/* STATS ROW */
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
@media(max-width:540px){.stats-row{grid-template-columns:repeat(2,1fr)}}
.stat-box{background:var(--card);border-radius:var(--radius);padding:11px;border:1px solid var(--border);box-shadow:0 1px 4px rgba(0,0,0,.04);border-top:3px solid var(--cnn)}
.stat-n{font-size:22px;font-weight:800;line-height:1;color:var(--cnn)}
.stat-l{font-size:11px;color:var(--muted);margin-top:3px}

/* TOOLBAR */
.toolbar{display:flex;gap:7px;margin-bottom:10px;flex-wrap:wrap}
.toolbar input[type="text"]{flex:1;min-width:110px;padding:9px 11px;border:1.5px solid var(--border);border-radius:var(--rsm);font-size:13px;background:var(--card);outline:none;font-family:inherit}
.toolbar input[type="text"]:focus{border-color:var(--cnn)}
.toolbar input[type="date"]{padding:9px 10px;border:1.5px solid var(--border);border-radius:var(--rsm);font-size:13px;background:var(--card);outline:none;min-width:125px;font-family:inherit}
.btn-excel{display:flex;align-items:center;gap:5px;padding:9px 13px;background:#217346;color:white;border:none;border-radius:var(--rsm);font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;font-family:inherit}

/* TRIP CARD */
.trip-card{background:var(--card);border-radius:var(--radius);border:1px solid var(--border);padding:14px;margin-bottom:9px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.trip-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px;flex-wrap:wrap;gap:5px}
.plate-badge{font-size:14px;font-weight:800;background:var(--cnn-dark);color:white;padding:4px 11px;border-radius:7px;letter-spacing:.05em;display:inline-block}
.driver-sm{font-size:12px;color:var(--muted);margin-top:3px}
.time-str{font-size:11px;color:var(--muted);text-align:right}
.trip-actions{display:flex;gap:5px;margin-top:4px;flex-wrap:wrap}
.btn-edit{background:var(--blue-light);border:none;color:var(--blue);border-radius:7px;padding:5px 10px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
.btn-del{background:var(--cnn-light);border:none;color:var(--cnn);border-radius:7px;padding:5px 10px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}

/* TIMELINE */
.km-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;padding:3px 8px;border-radius:20px}
.chip-g{background:var(--green-light);color:#085041}
.chip-b{background:var(--blue-light);color:#0C447C}
.timeline{border-left:2px solid var(--border);margin-left:5px;padding-left:13px;margin-bottom:7px}
.tl-row{position:relative;padding:3px 0 7px}
.tl-dot{position:absolute;left:-19px;top:6px;width:10px;height:10px;border-radius:50%}
.tl-lbl{font-size:11px;font-weight:700;color:var(--muted)}
.tl-place{font-size:13px;font-weight:700}
.tl-goods{font-size:11px;color:var(--blue);background:var(--blue-light);padding:1px 6px;border-radius:9px;display:inline-block;margin-top:2px}
.tl-meta{display:flex;align-items:center;gap:7px;margin-top:3px;flex-wrap:wrap}
.tl-mile{font-size:11px;color:var(--muted)}
.map-btn{font-size:11px;color:var(--cnn);text-decoration:none;font-weight:600;border:1px solid #ffb3b3;border-radius:5px;padding:1px 6px}
.dp-thumb-row{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.dp-thumb{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--border);cursor:pointer}

/* LIVE STATUS */
.live-status{font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;display:inline-block;margin-bottom:6px}
.ls-active{background:var(--cnn-light);color:var(--cnn)}
.ls-done{background:var(--green-light);color:#085041}
.cost-box{background:#fff8e1;border:1px solid #ffc107;border-radius:9px;padding:9px 11px;margin-top:7px;display:flex;flex-wrap:wrap;gap:10px;font-size:12px;align-items:center}
.cost-item{display:flex;flex-direction:column;gap:2px}
.cost-lbl{color:var(--muted)}
.cost-val{font-weight:700;color:#e65100;font-size:14px}
.note-row{font-size:12px;color:var(--muted);padding-top:6px;border-top:1px solid var(--border);margin-top:4px}
.photos-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.proof-img{width:50px;height:50px;object-fit:cover;border-radius:7px;border:1px solid var(--border);cursor:pointer}
.no-data{text-align:center;padding:36px 24px;color:var(--muted);font-size:14px}

/* EDIT MODAL */
.modal-ov{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:100;align-items:flex-end;justify-content:center}
.modal-ov.open{display:flex}
.edit-modal{background:var(--card);border-radius:20px 20px 0 0;padding:18px;width:100%;max-width:520px;max-height:88vh;overflow-y:auto}
.em-title{font-size:16px;font-weight:800;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center}
.btn-close{background:#f0f0f0;border:none;border-radius:50%;width:30px;height:30px;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit}
.em-sec{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:12px 0 8px}
.em-sec:first-child{margin-top:0}
.modal-acts{display:flex;gap:8px;margin-top:14px}
.btn-save{flex:1;padding:12px;border-radius:var(--rsm);border:none;background:var(--cnn);color:white;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
.btn-cancel{flex:1;padding:12px;border-radius:var(--rsm);border:1.5px solid var(--border);background:transparent;color:var(--muted);font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}

/* MANUAL MODAL */
.manual-modal-ov{display:none;position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:300;align-items:flex-end;justify-content:center}
.manual-modal-ov.open{display:flex}
.manual-modal{background:var(--bg);border-radius:20px 20px 0 0;width:100%;max-width:520px;max-height:92vh;overflow-y:auto;padding-bottom:32px}
.manual-header{background:linear-gradient(135deg,#1a1a2e,#16213e);padding:16px 18px;display:flex;align-items:center;justify-content:space-between;border-radius:20px 20px 0 0;position:sticky;top:0;z-index:10}
.manual-header-left{display:flex;align-items:center;gap:10px;color:white}
.manual-header-icon{font-size:22px}
.manual-header-title{font-size:16px;font-weight:800}
.manual-header-sub{font-size:11px;opacity:.7;margin-top:1px}
.btn-close-manual{background:rgba(255,255,255,.15);border:none;border-radius:50%;width:32px;height:32px;font-size:16px;cursor:pointer;color:white;display:flex;align-items:center;justify-content:center;font-weight:700}
.manual-body{padding:14px}
.m-illus{background:#fdf8f8;border-radius:10px;padding:12px;margin-bottom:12px;border:1px solid #f2e3e3}
.m-step{background:var(--card);border-radius:var(--radius);border:1px solid var(--border);margin-bottom:12px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.m-step-hdr{display:flex;align-items:center;gap:12px;padding:14px 14px 10px}
.m-step-num{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;color:white;flex-shrink:0}
.m-step-title{font-size:16px;font-weight:800;line-height:1.35}
.m-step-sub{font-size:13px;color:var(--muted);margin-top:3px}
.m-step-body{padding:0 14px 16px}
.m-row{display:flex;align-items:flex-start;gap:11px;margin-bottom:12px}
.m-row:last-child{margin-bottom:0}
.m-icon{font-size:20px;width:30px;text-align:center;flex-shrink:0;margin-top:1px}
.m-text{font-size:15.5px;line-height:1.65;color:var(--text)}
.m-text strong{color:var(--primary);font-weight:800}
.m-tip{background:var(--amber-light);border-left:4px solid var(--amber);border-radius:0 8px 8px 0;padding:11px 13px;margin-top:12px;font-size:14.5px;color:#5a4000;line-height:1.65}
.m-warn{background:var(--cnn-light);border-left:4px solid var(--cnn);border-radius:0 8px 8px 0;padding:11px 13px;margin-top:12px;font-size:14.5px;color:#7a0000;line-height:1.65}
.m-ok{background:var(--green-light);border-left:4px solid var(--green);border-radius:0 8px 8px 0;padding:11px 13px;margin-top:12px;font-size:14.5px;color:#085041;line-height:1.65}
.m-summary{background:linear-gradient(135deg,#1a1a2e,#16213e);border-radius:var(--radius);padding:16px;margin-bottom:12px;color:white}
.m-sum-title{font-size:16px;font-weight:800;margin-bottom:14px;text-align:center}
.m-sum-row{display:flex;align-items:center;gap:11px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.12);font-size:14.5px;line-height:1.45}
.m-sum-row:last-child{border-bottom:none}
.m-sum-n{width:28px;height:28px;border-radius:50%;background:var(--cnn);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex-shrink:0}
/* MANUAL BUTTON */
.btn-manual{width:100%;padding:13px;border-radius:var(--rsm);border:1.5px solid var(--cnn);background:transparent;color:var(--cnn);font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}
.btn-manual:active{background:var(--cnn-light)}

/* RECENT PLATES */
.recent-plates{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px;justify-content:center}
.rp-chip{padding:9px 16px;border-radius:20px;border:1.5px solid var(--border);background:#fafafa;color:var(--text);font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
.rp-chip.master{border-color:var(--cnn);background:var(--cnn-light);color:var(--cnn-dark)}

/* COST GRID + MANAGE */
.cost-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.collapse-hd{cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.mng-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--border);font-size:13px}
.mng-row:last-child{border-bottom:none}
.mng-del{background:var(--cnn-light);border:none;color:var(--cnn);border-radius:7px;padding:6px 11px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;flex-shrink:0}
.mng-add{width:100%;padding:11px;border-radius:var(--rsm);border:none;background:var(--cnn);color:white;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;margin-top:4px}
.trash-toggle{padding:9px 13px;border-radius:var(--rsm);border:1.5px solid var(--border);font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;background:var(--card);color:var(--muted);white-space:nowrap}
.trash-toggle.active{background:#444;color:white;border-color:#444}
.btn-restore{background:var(--green-light);border:none;color:var(--green);border-radius:7px;padding:6px 12px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}

/* IMG MODAL */
.img-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:200;align-items:center;justify-content:center}
.img-modal.open{display:flex}
.img-modal img{max-width:95vw;max-height:90vh;border-radius:10px}
.img-close{position:fixed;top:14px;right:14px;background:white;border:none;border-radius:50%;width:34px;height:34px;font-size:17px;font-weight:800;cursor:pointer;z-index:201;font-family:inherit}
