/* Operations run inside the existing gallery shell; all styles are locally scoped. */
.ops-module{--ops-surface:var(--white);--ops-line:var(--line);--ops-muted:var(--muted);--ops-accent:var(--gold);color:var(--ink);min-width:0}
.ops-module .page{display:none}
.ops-module[data-active="home"] #home,.ops-module[data-active="drafts"] #drafts,.ops-module[data-active="work"] #work,.ops-module[data-active="crm"] #crm,.ops-module[data-active="inventory"] #inventory,.ops-module[data-active="labels"] #labels{display:block}
.ops-module .ops-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.ops-module .ops-head h3{font-size:21px;margin:0 0 5px;color:var(--ink)}
.ops-module .ops-head p,.ops-module .panel p{color:var(--muted);line-height:1.9}
.ops-module .ops-notice{padding:15px 18px;margin-bottom:18px;background:var(--gold3);border:1px solid var(--gold);border-radius:13px;color:var(--ink);line-height:1.9}
.ops-module #message:not(:empty){padding:14px 18px;margin-bottom:14px;background:var(--gold3);border:1px solid var(--line);border-radius:12px;color:var(--ink)}
.ops-module .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.ops-module .stat,.ops-module .panel{padding:22px;background:var(--white);border:1px solid var(--line);border-radius:17px;margin-bottom:16px;box-shadow:var(--shadow)}
.ops-module .stat small{color:var(--muted);display:block;margin-bottom:13px}
.ops-module .stat strong{font-size:27px;color:var(--gold)}
.ops-module .panel h2{font-size:17px;margin:0 0 15px}
.ops-module .split{display:grid;grid-template-columns:minmax(250px,365px) minmax(0,1fr);gap:16px;align-items:start}
.ops-module .split .wide{min-width:0}
.ops-module .actions,.ops-module .line{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.ops-module .actions{justify-content:flex-start}
.ops-module label{display:block;color:var(--ink);margin-bottom:15px;font-size:13px}
.ops-module input,.ops-module select,.ops-module textarea{display:block;width:100%;background:var(--cream);color:var(--ink);border:1px solid var(--line);padding:12px 13px;border-radius:10px;margin-top:7px;outline:none}
.ops-module textarea{resize:vertical}
.ops-module button:not(.btn){background:var(--gold);color:var(--dark);font-weight:750;border:0;border-radius:10px;padding:11px 15px;cursor:pointer}
.ops-module button.secondary{background:var(--gold3);border:1px solid var(--line);color:var(--ink)}
.ops-module button.small{font-size:12px;padding:9px 12px}
.ops-module button:disabled{opacity:.55;cursor:wait}
.ops-module .muted{font-size:12px;color:var(--muted)}
.ops-module .record-list{display:grid;gap:10px;max-height:650px;overflow:auto}
.ops-module .record{border:1px solid var(--line);background:var(--cream);padding:14px;border-radius:13px;overflow-wrap:anywhere}
.ops-module .record-top{display:flex;justify-content:space-between;gap:12px;align-items:center}
.ops-module .record b{font-size:13px}
.ops-module .record p{font-size:12px;margin:9px 0;color:var(--muted)}
.ops-module .record code,.ops-module .label-card code{font-size:11px;color:var(--gold);overflow-wrap:anywhere;direction:ltr;display:inline-block}
.ops-module .record .actions{margin-top:10px}
.ops-module .empty{border:1px dashed var(--line);border-radius:13px;padding:28px;text-align:center;color:var(--muted)}
.ops-module .labels{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:13px;margin-top:18px}
.ops-module .label-card{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:18px;overflow-wrap:anywhere}
.ops-module .label-card strong{display:block;margin:10px 0}
.ops-module .label-card small{color:var(--muted)}
@media(max-width:1150px){.ops-module .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ops-module .split{grid-template-columns:1fr}.ops-module .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-module .stat,.ops-module .panel{padding:17px}}
@media(max-width:420px){.ops-module .stats{grid-template-columns:1fr 1fr}.ops-module .stat strong{font-size:20px}}
