@keyframes osmFade{from{opacity:0}to{opacity:1}}@keyframes osmModal{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:none}}
.osm-catalog-actions{display:flex;gap:12px}.osm-status-filter{padding:4px;border-radius:28px;display:flex;background:#e9e6e3}.osm-status-filter button{padding:0 18px!important;background:transparent!important;color:#7d7874!important}.osm-status-filter button.active{background:#fff!important;color:#171411!important;box-shadow:0 3px 12px #0001}.osm-no-products{padding:50px;text-align:center;color:#999}
.osm-product-card{opacity:0;transform:translateY(18px) scale(.985);transition:opacity .42s ease,transform .55s cubic-bezier(.22,1,.36,1),box-shadow .35s ease}.osm-product-card.is-visible{opacity:1;transform:none}.osm-product-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px #17141112}.osm-product-image img{transition:transform .7s cubic-bezier(.22,1,.36,1)}.osm-product-card:hover .osm-product-image img{transform:translateY(-3px) scale(1.055)}
.osm-card-actions{margin-top:10px;display:grid;grid-template-columns:1fr 50px;gap:8px}.osm-edit,.osm-restore{height:50px;border:0;border-radius:25px;background:#171411;color:#fff;font-size:16px;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.osm-edit:hover,.osm-restore:hover{transform:translateY(-2px);box-shadow:0 8px 20px #17141126}.osm-delete{width:50px;height:50px;border:0;border-radius:50%;background:#fff0f0;color:#e22929;font-size:21px;cursor:pointer;transition:transform .2s ease,background .2s ease}.osm-delete:hover{transform:translateY(-2px) scale(1.04);background:#ffe3e3}
.osm-editor-backdrop{animation:osmFade .22s ease both}.osm-editor{animation:osmModal .35s cubic-bezier(.22,1,.36,1) both}.osm-photo-drop.has-image span,.osm-photo-drop.has-image b{opacity:0}.osm-view.active{animation:osmFade .25s ease both}.osm-sidebar nav button,.osm-header-actions a,.osm-refresh,.osm-product-toolbar button{transition:transform .22s cubic-bezier(.22,1,.36,1),box-shadow .22s ease}.osm-header-actions a:hover,.osm-refresh:hover,.osm-product-toolbar>button:hover{transform:translateY(-2px);box-shadow:0 8px 18px #17141118}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}.osm-product-card{opacity:1;transform:none}}
@media(max-width:760px){.osm-product-toolbar{align-items:stretch;gap:10px}.osm-catalog-actions{display:grid;grid-template-columns:1fr auto}.osm-status-filter button{padding:0 10px!important}.osm-product-toolbar>label{width:100%}}

/* Compact five-card catalogue, matching the Oreliya manager reference. */
.osm-product-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.osm-product-card{padding:9px;border-radius:22px}
.osm-product-image{height:auto;aspect-ratio:4/5;border-radius:17px}
.osm-product-info{padding:12px 5px 0}
.osm-product-title{align-items:flex-start;gap:6px}
.osm-product-title h3{font-size:14px}
.osm-product-title b{font-size:12px}
.osm-product-info>p{margin:9px 0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.osm-size-row{gap:5px;min-height:32px;flex-wrap:wrap}
.osm-size-row span{width:30px;height:30px;font-size:10px}
.osm-size-row small{font-size:11px}
.osm-card-actions{grid-template-columns:minmax(0,1fr) 42px;gap:7px}
.osm-edit,.osm-restore{height:42px;font-size:14px}
.osm-delete{position:relative;width:42px;height:42px;font-size:0}
.osm-delete::before{content:"";position:absolute;left:50%;top:50%;width:10px;height:13px;border:2px solid currentColor;border-top:0;border-radius:1px;transform:translate(-50%,-38%)}
.osm-delete::after{content:"";position:absolute;left:50%;top:12px;width:15px;height:2px;border-radius:2px;background:currentColor;box-shadow:0 -3px 0 -1px currentColor;transform:translateX(-50%)}

@media(max-width:760px){
  .osm-product-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .osm-product-card{padding:7px;border-radius:18px}
  .osm-product-image{border-radius:14px}
  .osm-product-info{padding:9px 3px 0}
  .osm-product-title{display:block}
  .osm-product-title h3{font-size:12px}
  .osm-product-title b{display:block;margin-top:4px;font-size:11px}
  .osm-product-info>p{margin:7px 0;font-size:10px}
  .osm-size-row{gap:3px;min-height:25px}
  .osm-size-row span{width:24px;height:24px;font-size:8px}
  .osm-size-row small{width:100%;font-size:9px}
  .osm-card-actions{grid-template-columns:minmax(0,1fr) 34px;gap:5px;margin-top:7px}
  .osm-edit,.osm-restore{height:34px;font-size:11px}
  .osm-delete{width:34px;height:34px}
  .osm-delete::after{top:9px}
}

/* Smaller product editor with a draggable photo strip. */
.osm-editor{width:min(1040px,94vw);max-height:92vh;border-radius:28px}
.osm-editor-head{padding:22px 26px 10px}
.osm-editor-head h2{font-size:24px}
.osm-editor-head>button{width:42px;height:42px;font-size:25px}
.osm-editor-body{padding:8px 26px 14px;grid-template-columns:390px 1fr;gap:22px}
.osm-photo-drop{height:350px;border-radius:22px}
.osm-upload{height:48px;margin-top:12px}
.osm-fields{gap:12px}
.osm-fields input,.osm-fields select{height:48px}
.osm-fields fieldset{padding:15px 18px;border-radius:22px}
.osm-colours label{height:40px}
.osm-size-buttons span{width:42px;height:42px}
.osm-stock-grid{margin-top:8px}
.osm-editor-actions{padding:8px 26px 18px}
.osm-editor-actions button{height:48px}
.osm-photo-thumbs{display:flex;gap:8px;min-height:0;margin-top:10px;overflow-x:auto;padding:2px 1px 5px}
.osm-photo-thumb{position:relative;flex:0 0 68px;height:78px;border:2px solid #fff;border-radius:12px;overflow:hidden;background:#eee;cursor:grab;box-shadow:0 2px 8px #0001}
.osm-photo-thumb.dragging{opacity:.45}
.osm-photo-thumb img{width:100%;height:100%;object-fit:cover}
.osm-photo-thumb b{position:absolute;left:4px;bottom:4px;padding:3px 5px;border-radius:8px;background:#171411;color:#fff;font-size:8px}
.osm-photo-thumb:first-child{border-color:#171411}
.osm-photo-thumb:first-child b{background:#fff;color:#171411}
.osm-photo-thumb button{position:absolute;right:3px;top:3px;width:20px;height:20px;border:0;border-radius:50%;background:#fff;color:#d62d2d;cursor:pointer;line-height:18px}
@media(max-width:760px){.osm-editor{width:100%;max-height:100vh}.osm-editor-body{padding:8px 16px;grid-template-columns:1fr}.osm-photo-drop{height:260px}.osm-photo-thumbs{padding-bottom:8px}.osm-editor-actions{padding:8px 16px 14px}}
.osm-card-actions{align-items:center}
/* 1.3.3 — customer-preview visual language */
:root{--osm-ink:#171412;--osm-warm:#f5f0ec;--osm-glass:rgba(255,255,255,.72);--osm-line:rgba(255,255,255,.7);--osm-ease:cubic-bezier(.22,1,.36,1)}
body{background:linear-gradient(145deg,#faf8f6,#eee7e2);color:var(--osm-ink)}
.osm-sidebar{background:linear-gradient(160deg,#111,#292725)!important;border-right:1px solid rgba(255,255,255,.12)}
.osm-sidebar button,.osm-brand,.osm-account{transition:transform .22s var(--osm-ease),background .22s ease,color .22s ease}
.osm-sidebar nav button:hover{transform:translateX(4px);background:rgba(255,255,255,.12)}
.osm-main>header{background:var(--osm-glass);border:1px solid var(--osm-line);border-radius:999px;backdrop-filter:blur(24px) saturate(155%);box-shadow:0 18px 55px rgba(34,25,21,.13);padding:14px 22px!important;margin:16px 18px 4px;position:sticky;top:12px;z-index:20}
.osm-main>header::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.42),transparent 38%,rgba(255,255,255,.12))}
.osm-stats article,.osm-product-card,.osm-activity,.osm-attention,.osm-editor{border:1px solid rgba(17,17,17,.07);box-shadow:0 18px 55px rgba(34,25,21,.1);transition:transform .3s var(--osm-ease),box-shadow .3s ease}
.osm-stats article:hover,.osm-product-card:hover{transform:translateY(-5px);box-shadow:0 24px 65px rgba(34,25,21,.16)}
.osm-product-image,.osm-photo-drop{border-radius:22px!important;overflow:hidden}.osm-product-image img{transition:transform .7s var(--osm-ease)}.osm-product-card:hover .osm-product-image img{transform:scale(1.035)}
.osm-status-filter{grid-template-columns:repeat(3,minmax(0,1fr))!important;border:1px solid rgba(17,17,17,.12);border-radius:999px;background:rgba(255,255,255,.45);padding:4px}.osm-status-filter button{border-radius:999px!important;transition:transform .22s var(--osm-ease),background .22s ease,color .22s ease}.osm-status-filter button:hover{transform:translateY(-2px)}
.osm-primary,.osm-catalog-actions>[data-go],.osm-upload{border-radius:999px!important;transition:transform .22s var(--osm-ease),box-shadow .22s ease!important}.osm-primary:hover,.osm-catalog-actions>[data-go]:hover,.osm-upload:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(17,17,17,.18)}
.osm-fields input,.osm-fields select,.osm-product-toolbar input{border-radius:15px!important;background:rgba(255,255,255,.88)!important;border:1px solid rgba(17,17,17,.1)!important;transition:border-color .2s ease,box-shadow .2s ease,transform .2s var(--osm-ease)}
.osm-fields input:focus,.osm-fields select:focus,.osm-product-toolbar input:focus{border-color:rgba(17,17,17,.35)!important;box-shadow:0 0 0 4px rgba(17,17,17,.06);outline:0}
.osm-editor-backdrop{background:rgba(35,25,20,.58)!important;backdrop-filter:blur(12px)}
@keyframes osmPreviewReveal{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
.osm-view.active{animation:osmPreviewReveal .38s var(--osm-ease)}
@media(max-width:720px){.osm-main>header{margin:10px 10px 2px;border-radius:28px}.osm-product-image,.osm-photo-drop{border-radius:18px!important}.osm-status-filter button{padding-inline:9px!important}}

/* 1.3.3 editor fixes */
.osm-editor-backdrop{z-index:1000!important}
.osm-editor-head{position:sticky;top:0;z-index:12;background:rgba(249,248,247,.94);backdrop-filter:blur(18px);border-radius:28px 28px 0 0}
.osm-editor-head>button{display:grid!important;place-items:center;flex:0 0 auto;box-shadow:0 8px 22px rgba(0,0,0,.1)}
.osm-photo-drop{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}
[hidden]{display:none!important}
.osm-show-colors{height:40px;padding:0 15px;border:1px solid rgba(17,17,17,.14);border-radius:999px;background:#fff;font-weight:700;cursor:pointer;transition:transform .2s var(--osm-ease),background .2s ease}.osm-show-colors:hover{transform:translateY(-2px);background:#f0ece8}
.osm-main>header{height:76px!important;padding:8px 20px!important;margin-top:10px!important}.osm-main>header h1{font-size:32px!important}.osm-main>header .osm-kicker{margin-bottom:5px;font-size:10px}.osm-header-actions a,.osm-refresh{height:44px!important}.osm-refresh{width:44px!important}
@media(max-width:760px){.osm-editor-head{padding:16px 18px 10px;border-radius:0}.osm-editor-head h2{font-size:22px}.osm-editor-head>button{width:40px;height:40px}.osm-main>header{height:68px!important;margin:8px 4px 4px!important;padding:7px 14px!important;border-radius:24px!important}.osm-main>header h1{font-size:25px!important}.osm-header-actions a,.osm-refresh{height:40px!important}.osm-refresh{width:40px!important}.osm-photo-drop{height:min(52vh,360px)!important}}

/* 2.2 — crisp white manager theme and clear interaction feedback. */
:root{--ink:#000;--osm-ink:#000;--osm-warm:#fff;--osm-glass:#fff;--osm-line:#e8e8e8}
html,body{background:#fff!important;color:#000}
.osm-auth{background:#fff!important}.osm-auth-card{background:#fff!important;border:1px solid #e7e7e7!important}
.osm-sidebar{background:#000!important;border:0!important}.osm-sidebar nav button.active{background:#fff!important;color:#000!important}.osm-sidebar nav button.active i{color:#000!important}.osm-sidebar nav button:hover{background:#202020}.osm-account{border-color:#292929}.osm-brand-mark img{filter:brightness(0) invert(1)}
.osm-main>header{margin:10px 0 12px!important;background:#fff!important;border:1px solid #e8e8e8!important;box-shadow:0 12px 35px rgba(0,0,0,.08)}
.osm-stats article,.osm-product-card,.osm-activity,.osm-editor,.osm-table-wrap{background:#fff!important;border:1px solid #e9e9e9!important;box-shadow:0 12px 35px rgba(0,0,0,.07)}
.osm-attention{background:#000!important}.osm-product-toolbar label,.osm-status-filter,.osm-fields fieldset,.osm-fields input,.osm-fields select,.osm-fields textarea,.osm-photo-drop{background:#fff!important}
.osm-fields textarea{width:100%;min-height:112px;padding:15px 18px;border:1px solid rgba(17,17,17,.1);border-radius:15px;resize:vertical;font:inherit;line-height:1.5;outline:0}.osm-fields textarea:focus{border-color:#555;box-shadow:0 0 0 4px rgba(0,0,0,.06)}
.osm-main>header h1{font-size:28px!important}.osm-section-head h2{font-size:30px!important}
@keyframes osmClickPop{0%{transform:scale(1)}45%{transform:scale(.92)}75%{transform:scale(1.045);box-shadow:0 0 0 8px rgba(0,0,0,.08)}100%{transform:scale(1)}}
.osm-click-pop{animation:osmClickPop .4s var(--osm-ease)!important}.osm-main button:active,.oms-modal button:active,.osm-auth button:active{transform:scale(.94)!important}
.osm-auth button:disabled,.osm-primary:disabled{position:relative;opacity:.75}.osm-auth button:disabled::before,.osm-primary:disabled::before{content:"";width:14px;height:14px;margin-right:8px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:oms-spin .7s linear infinite}
@media(max-width:760px){.osm-product-toolbar{display:grid!important;grid-template-columns:1fr;gap:10px}.osm-product-toolbar>label{width:100%!important;height:48px}.osm-catalog-actions{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(108px,auto);gap:8px}.osm-status-filter{min-width:0}.osm-status-filter button{padding:0 8px!important;font-size:12px}.osm-catalog-actions>[data-go]{min-height:48px;padding:0 14px!important;white-space:nowrap}.osm-main>header{margin:8px 0 10px!important}.osm-main>header h1{font-size:22px!important}.osm-section-head h2{font-size:26px!important}}
.osm-editor,.osm-editor-head{background:#fff!important}.osm-editor-actions{background:linear-gradient(transparent,#fff 20%)!important}.osm-status-filter{background:#f2f2f2!important}.osm-status-filter button.active{background:#fff!important}.osm-product-info>p,.osm-muted,.osm-account small{color:#666!important}
.osm-logo{display:inline-block;width:158px;line-height:0}.osm-logo img{display:block;width:100%;height:auto;object-fit:contain}.osm-auth .osm-kicker{margin-top:34px}
@media(max-width:760px){.osm-logo{width:142px}.osm-auth .osm-kicker{margin-top:30px}}
.osm-mini-orders>div{grid-template-columns:80px minmax(120px,1fr) auto auto;align-items:center}
.osm-mini-orders>[data-dashboard-order]{cursor:pointer;border-radius:14px;padding-left:10px;padding-right:10px;transition:background .18s ease,transform .18s ease}
.osm-mini-orders>[data-dashboard-order]:hover,.osm-mini-orders>[data-dashboard-order]:focus-visible{background:#f5f5f5;transform:translateX(3px);outline:none}
.osm-mini-stage{justify-self:start;padding:7px 11px;border-radius:999px;background:#eef1f5;color:#334155;font-size:12px;font-style:normal;font-weight:700;white-space:nowrap}
.osm-mini-stage[data-stage="waiting"]{background:#fff0d9;color:#a55200}
.osm-mini-stage[data-stage="confirmed"]{background:#e3efff;color:#165ca9}
.osm-mini-stage[data-stage="packing"]{background:#eee4ff;color:#6936b8}
.osm-mini-stage[data-stage="packed"],.osm-mini-stage[data-stage="ready"]{background:#fff0ad;color:#725500}
.osm-mini-stage[data-stage="cancelled"]{background:#ffe2e5;color:#b4232f}
.osm-mini-stage[data-stage="completed"],.osm-mini-stage[data-stage="delivered"]{background:#dff5e9;color:#147347}
.osm-mini-stage[data-stage="no-response"]{background:#f2f2f2;color:#575757}
.osm-refresh.is-loading{animation:osm-live-spin .8s linear infinite}
@keyframes osm-live-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.osm-mini-orders>div{grid-template-columns:72px minmax(0,1fr) auto;grid-template-areas:"number customer total" ". stage stage";column-gap:8px;row-gap:10px;align-items:center}.osm-mini-orders>div>b{grid-area:number}.osm-mini-orders>div>span{grid-area:customer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.osm-mini-stage{grid-area:stage;justify-self:start}.osm-mini-orders>div>strong{grid-area:total;align-self:center;justify-self:end;white-space:nowrap}}
.osm-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.osm-stats article{min-width:0;overflow:hidden}
.osm-stats strong{max-width:100%;white-space:nowrap;line-height:1.05}
.osm-stats .red{background:#ffe5e8;color:#b4232f}
@media(max-width:1200px){.osm-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.osm-stats{grid-template-columns:1fr 1fr}.osm-stats article:first-child{grid-column:1/-1}}

/* Analytics and private product costing */
.osm-cost-breakdown{border:1px solid #e7e7e7!important;background:#fafafa!important}.osm-cost-breakdown legend{display:flex;align-items:center;gap:10px}.osm-cost-breakdown legend small{font-weight:500;color:#8b8b8b}.osm-cost-breakdown>p{margin:2px 0 16px;color:#797979;font-size:12px;line-height:1.5}.osm-cost-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.osm-cost-grid label{display:grid;gap:7px;font-size:12px}.osm-unit-cost{margin-top:14px;padding:14px 16px;border-radius:18px;background:#fff;display:flex;justify-content:space-between;align-items:center;color:#777}.osm-unit-cost strong{color:#111;font-size:18px}
.osm-analytics-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}.osm-analytics-head h2{font-size:38px}.osm-analytics-head p:not(.osm-kicker){margin:8px 0 0;color:#888}.osm-analytics-head label{display:grid;gap:8px;color:#777;font-size:12px}.osm-analytics-head select{min-width:170px;border:1px solid #e3e3e3;border-radius:18px;background:#fff;padding:12px 15px}.osm-analytics-loading{min-height:300px;display:grid;place-items:center;border:1px solid #e8e8e8;border-radius:28px;background:#fff;color:#888}.osm-analytics-warning{margin-bottom:16px;padding:17px 20px;border:1px solid #ffd9a6;border-radius:20px;background:#fff6e9;color:#815018}.osm-analytics-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.osm-analytics-cards article{min-width:0;padding:23px;border:1px solid #e8e8e8;border-radius:26px;background:#fff}.osm-analytics-cards article.profit{background:#111;color:#fff}.osm-analytics-cards span,.osm-analytics-cards small{display:block;color:#888}.osm-analytics-cards strong{display:block;margin:12px 0 5px;font-size:clamp(21px,2.1vw,32px);white-space:nowrap;letter-spacing:-.04em}.osm-analytics-cards .profit span,.osm-analytics-cards .profit small{color:#aaa}.osm-analytics-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px}.osm-analytics-grid>section{min-width:0;padding:25px;border:1px solid #e8e8e8;border-radius:28px;background:#fff}.osm-analytics-title span{color:#999;font-size:12px}.osm-analytics-title h3{margin:5px 0 20px;font-size:21px}.osm-sales-chart{height:250px;display:flex;align-items:stretch;gap:4px;overflow-x:auto;padding-top:12px}.osm-chart-day{min-width:12px;flex:1;display:flex;flex-direction:column;align-items:center}.osm-chart-bars{height:205px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px;border-bottom:1px solid #eee}.osm-chart-bars i,.osm-chart-bars b{width:min(7px,40%);min-height:2px;border-radius:6px 6px 0 0;background:#111}.osm-chart-bars b{background:#69ad79}.osm-chart-day small{margin-top:7px;color:#aaa;font-size:8px;writing-mode:vertical-rl}.osm-analytics-list{margin:0}.osm-analytics-list div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #eee}.osm-analytics-list dt{color:#777}.osm-analytics-list dd{margin:0;font-weight:700}.osm-product-performance>div{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eee}.osm-product-performance em{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#f3f3f3;font-style:normal}.osm-product-performance span b,.osm-product-performance span small,.osm-product-performance>div>strong small{display:block}.osm-product-performance span small,.osm-product-performance>div>strong small{margin-top:4px;color:#999;font-weight:400;font-size:11px}.osm-product-performance>div>strong{text-align:right}.osm-customer-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.osm-customer-split article{padding:25px;border-radius:22px;background:#f5f5f5}.osm-customer-split strong,.osm-customer-split span{display:block}.osm-customer-split strong{font-size:36px}.osm-customer-split span{margin-top:6px;color:#777}.osm-analytics-note,.osm-analytics-empty{color:#888;font-size:12px;line-height:1.6}
@media(max-width:1100px){.osm-analytics-cards{grid-template-columns:1fr 1fr}.osm-analytics-grid{grid-template-columns:1fr}}
@media(max-width:760px){.osm-sidebar nav{grid-template-columns:repeat(4,1fr)}.osm-analytics-head{align-items:stretch;flex-direction:column}.osm-analytics-head h2{font-size:30px}.osm-analytics-head select{width:100%}.osm-analytics-cards{grid-template-columns:1fr 1fr}.osm-analytics-cards article{padding:18px}.osm-analytics-cards strong{font-size:20px}.osm-analytics-grid>section{padding:19px}.osm-cost-grid{grid-template-columns:1fr}.osm-sales-chart{height:225px}.osm-chart-bars{height:180px}}
.osm-themes-head{margin-bottom:22px}.osm-themes-head h2{margin:0;font-size:38px}.osm-themes-head>p:last-child{color:#8d8884}.osm-theme-form{padding:24px;border-radius:30px;background:#fff}.osm-theme-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.osm-theme-cards>label{position:relative;min-height:200px;padding:24px;border:2px solid #eee9e5;border-radius:24px;cursor:pointer;overflow:hidden;transition:.2s ease}.osm-theme-cards>label:has(input:checked){border-color:#171412;box-shadow:0 12px 35px #17141218;transform:translateY(-2px)}.osm-theme-cards input{position:absolute;opacity:0}.osm-theme-cards i,.osm-theme-cards b,.osm-theme-cards small{display:block}.osm-theme-cards i{margin-bottom:25px;font-size:50px;font-style:normal}.osm-theme-cards b{font-size:21px}.osm-theme-cards small{margin-top:7px;color:#918b87}.osm-theme-cards .check{display:none;position:absolute;right:15px;top:15px;width:28px;height:28px;border-radius:50%;background:#171412;color:#fff;text-align:center;line-height:28px;font-weight:700}.osm-theme-cards label:has(input:checked) .check{display:block}.osm-theme-cards .christmas{background:linear-gradient(145deg,#fff 55%,#eaf8ee)}.osm-theme-cards .new-year{background:linear-gradient(145deg,#fff 55%,#fff1cd)}.osm-theme-settings{margin-top:18px;padding:22px;border-radius:22px;background:#f7f6f5}.osm-theme-settings>label,.osm-theme-settings>div label{display:grid;gap:8px;font-size:13px;font-weight:700}.osm-theme-settings input[type=text],.osm-theme-settings input:not([type]) ,.osm-theme-settings input[type=date]{height:50px;border:1px solid #e3dfdc;border-radius:16px;padding:0 16px;background:#fff}.osm-theme-settings>div{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.osm-theme-settings .animation{display:flex;align-items:center;margin-top:18px}.osm-theme-settings .animation input{width:20px;height:20px}.osm-theme-settings>p{margin:12px 0 0;color:#99918d;font-size:12px}.osm-theme-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.osm-theme-actions button{height:50px;padding:0 22px;border:1px solid #d8d3cf;border-radius:25px;background:#fff;cursor:pointer;font-weight:700}.osm-theme-actions .primary{border-color:#171412;background:#171412;color:#fff}.osm-theme-actions [data-disable-theme]{color:#bd2929}.osm-theme-message{min-height:22px;margin:14px 4px 0;color:#188657;font-weight:700}.osm-theme-message.error{color:#bd2929}@media(max-width:760px){.osm-sidebar nav{grid-template-columns:repeat(3,1fr)}.osm-theme-form{padding:14px;border-radius:22px}.osm-theme-cards{grid-template-columns:1fr}.osm-theme-cards>label{min-height:150px}.osm-theme-settings>div{grid-template-columns:1fr}.osm-theme-actions{display:grid}.osm-theme-actions .primary{grid-row:1}.osm-themes-head h2{font-size:30px}}
.osm-period-controls{display:flex;gap:10px;align-items:end}.osm-period-controls label{display:grid;gap:7px;color:#777;font-size:12px}.osm-period-controls select,.osm-period-controls input{height:45px;min-width:145px;border:1px solid #e3e3e3;border-radius:16px;background:#fff;padding:0 14px;color:#111}.osm-period-controls [hidden]{display:none!important}.osm-analytics-period-label{margin-bottom:12px;color:#777;font-size:13px;font-weight:700}.osm-chart-legend{display:flex;gap:16px;margin:-10px 0 8px;color:#777;font-size:11px}.osm-chart-legend span{display:flex;align-items:center;gap:6px}.osm-chart-legend i{width:9px;height:9px;border-radius:3px;background:#111}.osm-chart-legend span+span i{background:#e14a4a}.osm-chart-bars b{background:#e14a4a}.osm-expense-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.osm-expense-form label{display:grid;gap:7px;color:#666;font-size:12px}.osm-expense-form input,.osm-expense-form select{width:100%;height:46px;border:1px solid #e2e2e2;border-radius:15px;background:#fafafa;padding:0 13px;color:#111}.osm-expense-form button{grid-column:1/-1;height:48px;border:0;border-radius:24px;background:#111;color:#fff;font-weight:700}.osm-expense-form p{grid-column:1/-1;min-height:18px;margin:0;color:#777;font-size:12px}.osm-expense-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #eee}.osm-expense-list span b,.osm-expense-list span small{display:block}.osm-expense-list span small{margin-top:4px;color:#999;font-size:11px}.osm-expense-list>div>strong{white-space:nowrap}.osm-expense-list button{width:32px;height:32px;border:0;border-radius:50%;background:#ffe9e9;color:#bd2222;font-size:18px}.osm-product-performance>div:has(>span:last-child){grid-template-columns:32px minmax(0,1fr)}
@media(max-width:760px){.osm-period-controls{width:100%;display:grid;grid-template-columns:1fr 1fr}.osm-period-controls select,.osm-period-controls input{width:100%;min-width:0}.osm-expense-form{grid-template-columns:1fr}.osm-expense-form button,.osm-expense-form p{grid-column:auto}.osm-analytics-cards{grid-template-columns:1fr}.osm-expense-list>div{grid-template-columns:minmax(0,1fr) auto 32px}}
.osm-expense-form{display:block}.osm-expense-date{display:grid!important;grid-template-columns:minmax(0,220px);gap:7px;margin-bottom:16px}.osm-expense-rows{display:grid;gap:10px}.osm-expense-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(130px,.65fr) minmax(180px,1fr) 38px;gap:9px;align-items:end;padding:12px;border:1px solid #e9e9e9;border-radius:19px;background:#fafafa}.osm-expense-row label{display:grid;gap:6px;color:#666;font-size:11px}.osm-expense-row input,.osm-expense-row select,.osm-expense-date input{height:44px;border:1px solid #dedede;border-radius:14px;background:#fff;padding:0 12px;color:#111}.osm-expense-row [data-remove-cost]{grid-column:auto;width:38px;height:44px;border:0;border-radius:14px;background:#ffe8e8;color:#b42020;font-size:20px}.osm-expense-form .osm-add-cost{width:auto;grid-column:auto;margin-top:12px;padding:0 18px;background:#f1f1f1;color:#111;border:1px solid #e2e2e2}.osm-expense-total{margin-top:16px;padding:18px 20px;border-radius:19px;background:#f3f3f3;display:flex;align-items:center;justify-content:space-between}.osm-expense-total span{color:#777}.osm-expense-total strong{font-size:24px;letter-spacing:-.03em}.osm-expense-form .osm-save-expenses{width:100%;grid-column:auto;margin-top:12px}.osm-expense-form>[data-expense-message]{grid-column:auto;margin-top:8px}
@media(max-width:900px){.osm-expense-row{grid-template-columns:1fr 1fr}.osm-expense-row label:nth-child(3){grid-column:1/-1}.osm-expense-row [data-remove-cost]{grid-column:2;justify-self:end}}
@media(max-width:520px){.osm-expense-row{grid-template-columns:1fr}.osm-expense-row label:nth-child(3){grid-column:auto}.osm-expense-row [data-remove-cost]{grid-column:auto;justify-self:end}.osm-expense-date{grid-template-columns:1fr}.osm-expense-total strong{font-size:20px}}
.osm-cost-entry{display:grid;grid-template-columns:minmax(135px,.75fr) minmax(120px,.55fr) minmax(180px,1fr) 92px;gap:9px;align-items:end;padding:14px;border:1px solid #e7e7e7;border-radius:20px;background:#fafafa}.osm-cost-entry label{display:grid;gap:6px;color:#666;font-size:11px}.osm-cost-entry input,.osm-cost-entry select{width:100%;height:44px;border:1px solid #ddd;border-radius:14px;background:#fff;padding:0 12px;color:#111}.osm-cost-entry button{height:44px!important;border:0!important;border-radius:14px!important;background:#111!important;color:#fff!important;font-weight:700}.osm-pending-costs{margin-top:13px;border:1px solid #e8e8e8;border-radius:19px;overflow:hidden}.osm-pending-costs>p{margin:0;padding:18px;color:#999;text-align:center;font-size:12px}.osm-pending-costs>div{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid #eee}.osm-pending-costs>div:last-child{border-bottom:0}.osm-pending-costs span b,.osm-pending-costs span small{display:block}.osm-pending-costs span small{margin-top:3px;color:#999;font-size:11px}.osm-pending-costs>div>strong{white-space:nowrap}.osm-pending-costs button{width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:#ffe8e8!important;color:#b42020!important;font-size:18px}.osm-save-expenses:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){.osm-cost-entry{grid-template-columns:1fr 1fr}.osm-cost-entry label:nth-child(3){grid-column:1/-1}.osm-cost-entry button{grid-column:1/-1}}
@media(max-width:520px){.osm-cost-entry{grid-template-columns:1fr}.osm-cost-entry label:nth-child(3),.osm-cost-entry button{grid-column:auto}}
/* Unified white Oreliya controls */
.osm-main select,.oms-modal select{appearance:none;-webkit-appearance:none;border:1px solid #dedede!important;border-radius:16px!important;background-color:#fff!important;background-image:linear-gradient(45deg,transparent 50%,#111 50%),linear-gradient(135deg,#111 50%,transparent 50%)!important;background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;padding-right:38px!important;color:#111!important;box-shadow:0 5px 18px rgba(0,0,0,.035);outline:none}.osm-main select:focus,.oms-modal select:focus,.osm-main input[type=date]:focus,.osm-main input[type=month]:focus{border-color:#999!important;box-shadow:0 0 0 3px rgba(0,0,0,.06)}.osm-main select option,.oms-modal select option{background:#fff;color:#111}.osm-main input[type=date],.osm-main input[type=month],.osm-period-controls input{color-scheme:light;background-color:#fff!important;border:1px solid #dedede!important;border-radius:16px!important;color:#111!important;box-shadow:0 5px 18px rgba(0,0,0,.035)}.osm-period-controls{flex-wrap:wrap;justify-content:flex-end}.osm-period-controls label{min-width:145px}
@media(max-width:760px){.osm-period-controls{grid-template-columns:1fr 1fr;justify-content:stretch}.osm-period-controls label{min-width:0}}
.osm-expense-record{margin-bottom:10px;border:1px solid #e8e8e8;border-radius:18px;background:#fafafa;overflow:hidden}.osm-expense-record summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:16px;cursor:pointer}.osm-expense-record summary::-webkit-details-marker{display:none}.osm-expense-record summary span b,.osm-expense-record summary span small{display:block}.osm-expense-record summary span small{margin-top:3px;color:#999;font-size:11px}.osm-expense-record summary em{padding:7px 11px;border-radius:14px;background:#fff;color:#555;font-size:11px;font-style:normal}.osm-expense-record-body{padding:0 14px 14px}.osm-expense-record-body>div{display:grid;grid-template-columns:minmax(0,1fr) auto 60px 66px;gap:8px;align-items:center;padding:12px 0;border-top:1px solid #e7e7e7}.osm-expense-record-body span b,.osm-expense-record-body span small{display:block}.osm-expense-record-body span small{margin-top:3px;color:#999;font-size:11px}.osm-expense-record-body button{height:34px;border:0;border-radius:12px;background:#fff;color:#111;font-size:11px;font-weight:700}.osm-expense-record-body [data-delete-expense]{background:#ffe9e9;color:#b52222}.osm-expense-record-body .osm-delete-expense-record{width:100%;margin-top:10px;background:#e32920;color:#fff}.osm-expense-editor{width:min(520px,calc(100% - 24px));border:0;border-radius:28px;padding:0;background:#fff;box-shadow:0 30px 90px #0004}.osm-expense-editor::backdrop{background:#0007;backdrop-filter:blur(7px)}.osm-expense-editor form>header{height:auto;padding:24px 25px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee}.osm-expense-editor h3{margin:0;font-size:25px}.osm-expense-editor header button{width:42px;height:42px;border:1px solid #ddd;border-radius:50%;background:#fff;font-size:20px}.osm-expense-editor form>div{padding:20px 25px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.osm-expense-editor label{display:grid;gap:7px;color:#666;font-size:12px}.osm-expense-editor input,.osm-expense-editor select{width:100%;height:48px;border:1px solid #ddd;border-radius:15px;background:#fff;padding:0 13px;color:#111}.osm-expense-editor [data-edit-expense-message]{grid-column:1/-1;min-height:18px;margin:0;color:#b52222;font-size:12px}.osm-expense-editor footer{padding:0 25px 24px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.osm-expense-editor footer button{height:48px;border:1px solid #ddd;border-radius:24px;background:#fff;font-weight:700}.osm-expense-editor footer button[type=submit]{border-color:#111;background:#111;color:#fff}
@media(max-width:600px){.osm-expense-record summary{grid-template-columns:minmax(0,1fr) auto}.osm-expense-record summary em{grid-column:1/-1;width:max-content}.osm-expense-record-body>div{grid-template-columns:minmax(0,1fr) auto}.osm-expense-record-body>div>button{grid-row:2}.osm-expense-editor form>div{grid-template-columns:1fr}.osm-expense-editor [data-edit-expense-message]{grid-column:auto}}
.osm-period-controls select[data-enhanced="1"]{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}.osm-custom-select{position:relative;min-width:185px;z-index:30}.osm-custom-select-trigger{width:100%;height:45px;padding:0 16px 0 18px;border:1px solid #dedede;border-radius:17px;background:#fff;color:#111;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 5px 18px rgba(0,0,0,.035);font:500 14px inherit;text-align:left}.osm-custom-select-trigger i{width:8px;height:8px;border-right:1.7px solid #111;border-bottom:1.7px solid #111;transform:rotate(45deg) translateY(-2px);transition:transform .2s ease}.osm-custom-select.open .osm-custom-select-trigger{border-color:#aaa;box-shadow:0 0 0 3px rgba(0,0,0,.055)}.osm-custom-select.open .osm-custom-select-trigger i{transform:rotate(225deg) translate(-2px,-2px)}.osm-custom-select-menu{position:absolute;top:calc(100% + 8px);left:0;width:100%;padding:7px;border:1px solid #e2e2e2;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 18px 55px rgba(0,0,0,.16);backdrop-filter:blur(20px);opacity:0;visibility:hidden;transform:translateY(-7px) scale(.98);transform-origin:top;transition:opacity .18s ease,transform .18s ease,visibility .18s;overflow:hidden}.osm-custom-select.open .osm-custom-select-menu{opacity:1;visibility:visible;transform:translateY(0) scale(1)}.osm-custom-select-menu button{width:100%;min-height:40px;padding:9px 12px;border:0;border-radius:12px;background:transparent;color:#333;display:block;text-align:left;font-size:13px;transition:background .15s,color .15s,transform .15s}.osm-custom-select-menu button:hover,.osm-custom-select-menu button:focus-visible{background:#f1f1f1;outline:none;transform:translateX(2px)}.osm-custom-select-menu button.active{background:#111;color:#fff}.osm-custom-select-menu button.active:hover{background:#111}
@media(max-width:760px){.osm-custom-select{min-width:0;width:100%}}
.osm-custom-select-trigger{font-family:inherit;font-size:14px;font-weight:500}

/* Product cards: contained titles, aligned actions and supplied delete artwork. */
.osm-product-card{display:flex;flex-direction:column;overflow:hidden}
.osm-product-info{display:flex;flex:1;min-width:0;flex-direction:column}
.osm-product-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;min-width:0;min-height:38px}
.osm-product-title h3{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.osm-product-title>b{display:block!important;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.osm-product-title .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.osm-card-actions{width:100%;margin-top:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center!important;gap:8px!important}
.osm-card-actions .osm-edit,.osm-card-actions .osm-restore{width:100%;margin:0!important}
.osm-card-actions .osm-delete{position:relative!important;align-self:center!important;width:42px!important;height:42px!important;margin:0!important;display:grid!important;place-items:center!important}
.osm-card-actions .osm-delete::before{content:""!important;position:absolute!important;left:50%!important;top:50%!important;width:21px!important;height:23px!important;border:0!important;border-radius:0!important;background-image:url("delete-icon-final.png")!important;background-position:50% 50%!important;background-size:contain!important;background-repeat:no-repeat!important;transform:translate(-50%,-50%)!important;transform-origin:50% 50%!important;mix-blend-mode:multiply}
.osm-card-actions .osm-delete::after{display:none!important;content:none!important}
@media(max-width:760px){.osm-product-title{grid-template-columns:minmax(0,1fr) auto!important;min-height:34px}.osm-product-title>b{max-width:96px}.osm-card-actions{grid-template-columns:minmax(0,1fr) 38px!important}.osm-card-actions .osm-delete{width:38px!important;height:38px!important}.osm-card-actions .osm-delete::before{width:18px!important;height:20px!important}}

/* Analytics bars and compact three-value hover card. */
.osm-chart-day{position:relative;min-width:18px;outline:none}
.osm-chart-bars{gap:3px}
.osm-chart-bars>i,.osm-chart-bars>b{width:min(11px,44%);border-radius:7px 7px 2px 2px;transition:width .2s ease,filter .2s ease,transform .2s ease}
.osm-chart-day:hover .osm-chart-bars>i,.osm-chart-day:hover .osm-chart-bars>b,.osm-chart-day:focus-visible .osm-chart-bars>i,.osm-chart-day:focus-visible .osm-chart-bars>b{filter:brightness(.82);transform:scaleX(1.06);transform-origin:bottom}
.osm-chart-tooltip{position:absolute;z-index:12;left:50%;bottom:104px;width:190px;padding:13px 14px;border:1px solid rgba(255,255,255,.14);border-radius:25px;background:rgba(17,17,17,.96);color:#fff;box-shadow:0 18px 45px rgba(0,0,0,.24);backdrop-filter:blur(14px);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,8px) scale(.96);transition:opacity .16s ease,transform .2s cubic-bezier(.22,1,.36,1),visibility .16s}
.osm-chart-tooltip::after{content:"";position:absolute;left:calc(50% - 7px);bottom:-6px;width:11px;height:11px;background:#111;transform:translateX(-50%) rotate(45deg)}
.osm-chart-tooltip>strong{display:block;margin-bottom:9px;color:#c8c8c8;font-size:10px;font-weight:600;letter-spacing:.06em}
.osm-chart-tooltip>span{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:7px;padding:4px 0;font-size:11px;color:#ddd;white-space:nowrap}
.osm-chart-tooltip>span>i{width:7px;height:7px;border-radius:50%;background:#fff}
.osm-chart-tooltip>span.expenses>i{background:#ef5555}
.osm-chart-tooltip>span.profit>i{background:#69ad79}

/* v2.4 — private unit-cost editor and product-level profit intelligence. */
.osm-product-costs{grid-column:1/-1;padding:18px!important;border:1px solid #e5e5e5!important;border-radius:22px!important;background:#fafafa}.osm-product-costs legend{padding:0 8px;font-weight:700}.osm-product-costs legend small{margin-left:6px;color:#999;font-weight:400}.osm-product-costs>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.osm-product-costs label{display:grid;gap:6px;color:#666;font-size:11px}.osm-product-costs input{height:44px;border:1px solid #ddd;border-radius:14px;background:#fff;padding:0 12px}.osm-product-costs>p{margin:13px 0 0;padding:13px 15px;border-radius:15px;background:#111;color:#aaa}.osm-product-costs>p strong{color:#fff}.osm-visible select{height:44px;border:1px solid #ddd;border-radius:14px;background:#fff;padding:0 12px;color:#111}
.osm-product-profit{margin-top:18px;padding:26px;border:1px solid #e5e5e5;border-radius:30px;background:#fff}.osm-product-profit-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.osm-product-profit-head>div>span{color:#999;font-size:11px;letter-spacing:.22em}.osm-product-profit-head h3{margin:5px 0;font-size:28px}.osm-product-profit-head p{margin:0;color:#888}.osm-product-profit-tools{display:grid;gap:10px;justify-items:end}.osm-product-profit-tools>label{height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid #e3e3e3;border-radius:16px}.osm-product-profit-tools input{width:190px;border:0;outline:0;background:transparent}.osm-product-profit-tools>div{display:flex;gap:5px;padding:5px;border:1px solid #e6e6e6;border-radius:999px;background:#fafafa}.osm-product-profit-tools button{padding:8px 13px;border:0;border-radius:999px;background:transparent;color:#777}.osm-product-profit-tools button.active{background:#171412;color:#fff}.osm-product-profit-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0 14px}.osm-product-profit-summary article{padding:18px;border:1px solid #e8e8e8;border-radius:20px}.osm-product-profit-summary span,.osm-product-profit-summary strong{display:block}.osm-product-profit-summary span{color:#888;font-size:12px}.osm-product-profit-summary strong{margin-top:8px;font-size:24px}.osm-product-profit-summary .dark{background:#171412;color:#fff}.osm-product-profit-summary .dark span{color:#aaa}.osm-profit-table{overflow-x:auto;border:1px solid #e8e8e8;border-radius:22px}.osm-profit-table-head,.osm-profit-row>summary{min-width:850px;display:grid;grid-template-columns:minmax(250px,1.5fr) repeat(5,minmax(90px,.62fr));align-items:center;gap:10px}.osm-profit-table-head{padding:12px 16px;background:#f6f6f6;color:#888;font-size:11px}.osm-profit-row{border-top:1px solid #eee}.osm-profit-row:first-child{border-top:0}.osm-profit-row>summary{padding:13px 16px;cursor:pointer;list-style:none}.osm-profit-row>summary::-webkit-details-marker{display:none}.osm-profit-row>summary:hover{background:#fafafa}.osm-profit-row .product{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:11px;align-items:center}.osm-profit-row .product img{grid-row:1/3;width:48px;height:58px;border-radius:12px;object-fit:cover;background:#eee}.osm-profit-row .product b,.osm-profit-row .product small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.osm-profit-row .product small,.osm-profit-row>summary>strong small{display:block;margin-top:4px;color:#999;font-size:10px;font-weight:400}.osm-profit-row>summary>strong{font-size:13px}.osm-profit-row>summary>strong.negative{color:#c32f2f}.osm-profit-breakdown{display:grid;grid-template-columns:repeat(6,minmax(105px,1fr));gap:8px;padding:13px 16px 16px;background:#fafafa}.osm-profit-breakdown span{padding:11px;border-radius:13px;background:#fff;color:#888;font-size:10px}.osm-profit-breakdown b{display:block;margin-top:5px;color:#111;font-size:12px}.osm-product-cost-note{margin:14px 3px 0;color:#999;font-size:11px;line-height:1.55}
@media(max-width:900px){.osm-product-costs>div{grid-template-columns:1fr 1fr}.osm-product-profit-head{align-items:stretch;flex-direction:column}.osm-product-profit-tools{justify-items:stretch}.osm-product-profit-tools>label input{width:100%}.osm-product-profit-summary{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.osm-product-costs>div,.osm-product-profit-summary{grid-template-columns:1fr}.osm-product-profit{padding:17px;border-radius:24px}.osm-product-profit-tools>div{display:grid;grid-template-columns:1fr 1fr;border-radius:18px}.osm-product-profit-tools button{border-radius:14px}.osm-product-profit-head h3{font-size:24px}}
.osm-order-extras{margin-top:18px;padding:26px;border:1px solid #e5e5e5;border-radius:30px;background:#fff}.osm-order-extras-head span{color:#999;font-size:11px;letter-spacing:.22em}.osm-order-extras-head h3{margin:5px 0;font-size:28px}.osm-order-extras-head p{margin:0;color:#888}.osm-money-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0 14px}.osm-money-flow article{padding:18px;border:1px solid #e8e8e8;border-radius:20px}.osm-money-flow span,.osm-money-flow strong,.osm-money-flow small{display:block}.osm-money-flow span,.osm-money-flow small{color:#888}.osm-money-flow span{font-size:12px}.osm-money-flow strong{margin:8px 0 4px;font-size:21px;letter-spacing:-.03em}.osm-money-flow small{font-size:10px}.osm-money-flow .cost{background:#f7f4f1}.osm-money-flow .net{grid-column:span 2;background:#171412;color:#fff}.osm-money-flow .net span,.osm-money-flow .net small{color:#aaa}.osm-order-money-list{border:1px solid #e7e7e7;border-radius:19px;overflow:hidden}.osm-order-money-list>summary{padding:15px 18px;cursor:pointer;font-weight:700;list-style:none}.osm-order-money-list>summary::-webkit-details-marker{display:none}.osm-order-money-list>summary:after{content:'＋';float:right}.osm-order-money-list[open]>summary:after{content:'−'}.osm-order-money-list>div{overflow-x:auto;border-top:1px solid #eee}.osm-order-money-list .head,.osm-order-money-list p{min-width:650px;display:grid;grid-template-columns:minmax(150px,1fr) repeat(4,minmax(90px,.65fr));gap:12px;align-items:center;margin:0;padding:11px 18px}.osm-order-money-list .head{background:#f7f7f7;color:#888;font-size:10px}.osm-order-money-list p{border-top:1px solid #eee}.osm-order-money-list p:first-of-type{border-top:0}.osm-order-money-list p span b,.osm-order-money-list p span small{display:block}.osm-order-money-list p span small{margin-top:3px;color:#999;font-size:10px}.osm-order-money-list p strong{font-size:12px}.osm-order-money-list p.empty{display:block;color:#999}
@media(max-width:900px){.osm-money-flow{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.osm-order-extras{padding:17px;border-radius:24px}.osm-order-extras-head h3{font-size:24px}.osm-money-flow{grid-template-columns:1fr}.osm-money-flow .net{grid-column:auto}}
.osm-chart-tooltip>span>b{color:#fff;font-size:11px}
.osm-chart-day:hover .osm-chart-tooltip,.osm-chart-day:focus-visible .osm-chart-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}
.osm-chart-day:first-child .osm-chart-tooltip{left:0;transform:translate(0,8px) scale(.96)}
.osm-chart-day:first-child .osm-chart-tooltip::after{left:9px}
.osm-chart-day:first-child:hover .osm-chart-tooltip,.osm-chart-day:first-child:focus-visible .osm-chart-tooltip{transform:translate(0,0) scale(1)}
.osm-chart-day:last-child .osm-chart-tooltip{right:0;left:auto;transform:translate(0,8px) scale(.96)}
.osm-chart-day:last-child .osm-chart-tooltip::after{right:9px;left:auto}
.osm-chart-day:last-child:hover .osm-chart-tooltip,.osm-chart-day:last-child:focus-visible .osm-chart-tooltip{transform:translate(0,0) scale(1)}
.osm-inventory-head{display:flex;justify-content:space-between;gap:24px;margin:12px 0 28px}.osm-inventory-head h2{margin:0 0 8px;font-size:clamp(34px,4vw,58px);letter-spacing:-3px}.osm-inventory-head>div>p:last-child{margin:0;color:#8f8b88;font-size:17px}.osm-inventory-tabs{display:flex;gap:8px;width:max-content;max-width:100%;padding:6px;margin-bottom:20px;border:1px solid #e3e0dd;border-radius:999px;background:#fff;box-shadow:0 12px 32px #30251e0c}.osm-inventory-tabs button{padding:13px 22px;border:0;border-radius:999px;background:transparent;color:#696461;font-weight:700;cursor:pointer}.osm-inventory-tabs button.active{background:#171411;color:#fff}.osm-inventory-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.osm-inventory-summary article{min-height:154px;padding:25px;border:1px solid #e2dfdc;border-radius:28px;background:#fff}.osm-inventory-summary span,.osm-inventory-summary small{display:block;color:#918c88}.osm-inventory-summary strong{display:block;margin:17px 0 9px;font-size:clamp(24px,2.35vw,38px);letter-spacing:-1.6px}.osm-inventory-summary small{line-height:1.45}.osm-inventory-summary .dark{background:#151413;color:#fff}.osm-inventory-summary .dark span,.osm-inventory-summary .dark small{color:#aaa5a1}.osm-inventory-status{display:flex;align-items:center;gap:12px;padding:15px 18px;margin-bottom:12px;border:1px solid #e4e1de;border-radius:22px;background:#fff}.osm-inventory-status>span{padding-right:16px;border-right:1px solid #ebe8e6;color:#77716d}.osm-inventory-status>span b{color:#171411}.osm-inventory-status label{display:flex;align-items:center;gap:8px;min-width:220px;margin-left:auto;padding:10px 15px;border:1px solid #ddd9d6;border-radius:999px}.osm-inventory-status input{width:100%;border:0;outline:0;background:transparent}.osm-inventory-table{margin-top:0}.osm-inventory-row[hidden]{display:none}.osm-inventory-row summary{grid-template-columns:minmax(280px,2fr) repeat(5,minmax(100px,1fr))}.osm-inventory-row .product{display:grid;grid-template-columns:54px 1fr;column-gap:13px;align-items:center}.osm-inventory-row .product img{grid-row:1/3;width:54px;height:62px;border-radius:13px;object-fit:cover}.osm-inventory-row .product b,.osm-inventory-row .product small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.osm-inventory-row summary>strong small{display:block;margin-top:4px;color:#96918d;font-size:11px;font-weight:500}
@media(max-width:980px){.osm-inventory-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.osm-inventory-status{flex-wrap:wrap}.osm-inventory-status label{width:100%;margin-left:0}.osm-inventory-row summary{min-width:980px}.osm-inventory-table{overflow-x:auto}.osm-inventory-tabs{overflow-x:auto}.osm-inventory-tabs button{white-space:nowrap}}
@media(max-width:600px){.osm-inventory-head h2{font-size:38px}.osm-inventory-summary{grid-template-columns:1fr}.osm-inventory-summary article{min-height:130px}.osm-inventory-tabs{width:100%}.osm-inventory-tabs button{flex:1;padding:11px 14px}.osm-inventory-status>span{width:calc(50% - 6px);padding:0;border:0;font-size:13px}}
.osm-inventory-sale-tabs{display:flex;align-items:center;gap:5px;padding:5px;border:1px solid #e2dedb;border-radius:999px;background:#f2efed;box-shadow:inset 0 1px 1px #fff}.osm-inventory-sale-tabs button{min-width:158px;padding:12px 19px;border:0;border-radius:999px;background:transparent;color:#77716d;font-weight:700;cursor:pointer;transition:background .25s ease,color .25s ease,box-shadow .25s ease,transform .2s ease}.osm-inventory-sale-tabs button b{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 7px;margin-right:6px;border-radius:999px;background:#fff;color:#171411;font-size:12px}.osm-inventory-sale-tabs button.active{background:#171411;color:#fff;box-shadow:0 8px 18px #17141120}.osm-inventory-sale-tabs button.active b{background:#fff;color:#171411}.osm-inventory-sale-tabs button:active{transform:scale(.98)}
@media(max-width:600px){.osm-inventory-sale-tabs{width:100%}.osm-inventory-sale-tabs button{flex:1;min-width:0;padding:11px 8px;font-size:13px}.osm-inventory-status{padding:10px}.osm-inventory-status label{min-width:0}}
.osm-inventory-table .osm-profit-table-head,.osm-inventory-row summary{grid-template-columns:minmax(280px,2fr) repeat(6,minmax(100px,1fr))}
.osm-inventory-table:not(:has(.osm-stock-row)) .osm-profit-table-head,.osm-inventory-table:not(:has(.osm-stock-row)) .osm-inventory-row summary{grid-template-columns:minmax(320px,2fr) repeat(4,minmax(130px,1fr))}.osm-sold-cost small{white-space:normal;line-height:1.35}
@media(max-width:980px){.osm-inventory-table .osm-profit-table-head,.osm-inventory-row summary{min-width:1100px}}
@media(max-width:980px){.osm-inventory-table:not(:has(.osm-stock-row)) .osm-profit-table-head,.osm-inventory-table:not(:has(.osm-stock-row)) .osm-inventory-row summary{min-width:850px}}
.osm-product-card:not([data-product-status="trash"]) .osm-card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px!important}.osm-product-card:not([data-product-status="trash"]) .osm-card-actions>button{min-width:0;margin:0}.osm-restock{height:42px;border:1px solid #d9d4d0;border-radius:25px;background:#fff;color:#171411;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.osm-restock:hover{transform:translateY(-2px);box-shadow:0 8px 20px #17141116}.osm-restock-dialog{width:min(760px,calc(100% - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:32px;background:#f7f5f3;color:#171411;box-shadow:0 30px 100px #17141155}.osm-restock-dialog::backdrop{background:#17141199;backdrop-filter:blur(8px)}.osm-restock-dialog form{padding:30px}.osm-restock-dialog header{display:flex;justify-content:space-between;gap:20px;margin-bottom:22px}.osm-restock-dialog h3{margin:0;font-size:34px;letter-spacing:-1.5px}.osm-restock-dialog header p:last-child{margin:6px 0 0;color:#8c8783}.osm-restock-dialog header>button{width:44px;height:44px;border:1px solid #ddd7d3;border-radius:50%;background:#fff;font-size:24px;cursor:pointer}.osm-restock-dialog section{padding:20px;margin-bottom:14px;border:1px solid #e0dcd8;border-radius:24px;background:#fff}.osm-restock-dialog h4{margin:0 0 6px;font-size:18px}.osm-restock-dialog section>p{margin:0 0 16px;color:#8a8581;line-height:1.5}.osm-restock-sizes,.osm-restock-costs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.osm-restock-dialog label{display:grid;gap:7px;color:#716c68;font-size:13px;font-weight:700}.osm-restock-sizes label span{display:flex;justify-content:space-between}.osm-restock-sizes small{color:#aaa4a0;font-weight:500}.osm-restock-dialog input{width:100%;padding:12px 14px;border:1px solid #ddd8d4;border-radius:14px;background:#fbfaf9;outline:0}.osm-restock-dialog input:focus{border-color:#171411;box-shadow:0 0 0 3px #1714110d}.osm-restock-total{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:16px;border-top:1px solid #ebe7e4}.osm-restock-total strong{font-size:22px}.osm-restock-note{padding:13px 15px;border-radius:16px;background:#eeeae7;color:#716b67;font-size:13px;line-height:1.5}.osm-restock-dialog [data-restock-message]{min-height:20px;color:#8a5d16}.osm-restock-dialog footer{display:flex;justify-content:flex-end;gap:10px}.osm-restock-dialog footer button{padding:13px 20px;border:1px solid #dad5d1;border-radius:999px;background:#fff;font-weight:700;cursor:pointer}.osm-restock-dialog footer button[type="submit"]{border-color:#171411;background:#171411;color:#fff}.osm-restock-dialog footer button:disabled{opacity:.55}
@media(max-width:700px){.osm-product-card:not([data-product-status="trash"]) .osm-card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px!important}.osm-product-card:not([data-product-status="trash"]) .osm-edit,.osm-product-card:not([data-product-status="trash"]) .osm-restock{height:38px;font-size:12px}.osm-restock-dialog form{padding:20px}.osm-restock-dialog h3{font-size:27px}.osm-restock-sizes,.osm-restock-costs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep all product actions inside narrow cards. */
.osm-product-card:not([data-product-status="trash"]) .osm-card-actions{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.12fr) 38px!important;
  gap:6px!important;
  width:100%;
}
.osm-product-card:not([data-product-status="trash"]) .osm-card-actions .osm-edit,
.osm-product-card:not([data-product-status="trash"]) .osm-card-actions .osm-restock{
  width:100%;
  min-width:0;
  padding:0 7px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.osm-product-card:not([data-product-status="trash"]) .osm-card-actions .osm-delete{
  width:38px!important;
  height:38px!important;
}
@media(max-width:420px){
  .osm-product-card:not([data-product-status="trash"]) .osm-card-actions{
    grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr) 36px!important;
    gap:5px!important;
  }
  .osm-product-card:not([data-product-status="trash"]) .osm-card-actions .osm-edit,
  .osm-product-card:not([data-product-status="trash"]) .osm-card-actions .osm-restock{
    font-size:12px;
    padding:0 5px;
  }
  .osm-product-card:not([data-product-status="trash"]) .osm-card-actions .osm-delete{
    width:36px!important;
    height:36px!important;
  }
}
.osm-inventory-table:has(.osm-stock-row) .osm-profit-table-head span:nth-child(3),.osm-inventory-table:has(.osm-stock-row) .osm-profit-table-head span:nth-child(6),.osm-inventory-table:has(.osm-stock-row) .osm-profit-table-head span:nth-child(7){display:none}.osm-inventory-table:has(.osm-stock-row) .osm-profit-table-head,.osm-stock-row summary{grid-template-columns:minmax(320px,2fr) repeat(3,minmax(140px,1fr))}.osm-stock-row summary>strong{text-align:left}
@media(max-width:980px){.osm-inventory-table:has(.osm-stock-row) .osm-profit-table-head,.osm-stock-row summary{min-width:760px}}
.osm-restock-history{padding:22px 24px 26px;border-top:1px solid #e8e4e1;background:#f3f0ee}.osm-restock-history-head span{color:#aaa39e;font-size:10px;font-weight:800;letter-spacing:2px}.osm-restock-history-head h4{margin:4px 0 14px;font-size:20px}.osm-restock-history>p{margin:0;padding:16px;border:1px dashed #d8d2ce;border-radius:16px;background:#fff;color:#99918c}.osm-restock-history article{display:grid;grid-template-columns:minmax(170px,1fr) minmax(260px,2fr) minmax(130px,.8fr);align-items:center;gap:18px;padding:15px 17px;margin-top:9px;border:1px solid #e1dcd8;border-radius:18px;background:#fff}.osm-restock-history article>div:first-child b,.osm-restock-history article>div:first-child small,.osm-restock-history article>strong small{display:block}.osm-restock-history article small{margin-top:4px;color:#9a938e;font-weight:500}.osm-restock-history article>strong{text-align:right}.osm-restock-history-sizes{display:flex;flex-wrap:wrap;gap:7px}.osm-restock-history-sizes span{padding:7px 10px;border-radius:999px;background:#eeeae7;color:#655f5b;font-size:12px}.osm-restock-history-sizes span b{color:#171411}.osm-stock-row[open] summary{background:#fff}
@media(max-width:720px){.osm-restock-history{padding:17px}.osm-restock-history article{grid-template-columns:1fr}.osm-restock-history article>strong{text-align:left}.osm-restock-history-sizes{order:3}}
.osm-restock-history-head p{margin:0 0 16px;color:#8f8883;font-size:13px}.osm-restock-history article.osm-restock-batch{display:block;padding:0;overflow:hidden}.osm-restock-batch-main{display:grid;grid-template-columns:42px minmax(170px,1fr) minmax(150px,.8fr) minmax(220px,1.25fr) minmax(125px,.55fr) minmax(150px,.65fr) auto;align-items:center;gap:16px;padding:16px 18px}.osm-restock-batch-number{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#171411;color:#fff;font-size:12px;font-weight:800}.osm-restock-batch-main>span b,.osm-restock-batch-main>span small,.osm-restock-batch-main>strong small{display:block}.osm-restock-batch-main>span small,.osm-restock-batch-main>strong small{margin-top:4px;color:#9a938e;font-weight:500}.osm-batch-unit-cost{text-align:right}.osm-batch-unit-cost b{font-size:14px}.osm-restock-batch-main>strong{text-align:right}.osm-restock-batch-costs{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:1px;border-top:1px solid #ece8e5;background:#ece8e5}.osm-restock-batch-costs span{padding:11px 13px;background:#faf9f8;color:#9a938e;font-size:11px}.osm-restock-batch-costs b{display:block;margin-top:3px;color:#211e1b;font-size:12px}.osm-stock-row>.osm-profit-breakdown:before{content:'CURRENT STOCK · ALL BATCHES';display:block;grid-column:1/-1;color:#aaa39e;font-size:10px;font-weight:800;letter-spacing:1.5px}.osm-restock-delete-action button{border:0;border-radius:999px;background:#fff0f0;color:#d71920;font-weight:800;padding:9px 13px;cursor:pointer}.osm-restock-delete-action button:hover{background:#d71920;color:#fff}.osm-restock-delete-action button:disabled{opacity:.55;cursor:wait}
@media(max-width:980px){.osm-restock-batch-main{grid-template-columns:42px 1fr 1fr}.osm-restock-batch-main .osm-restock-history-sizes{grid-column:2/-1}.osm-batch-unit-cost,.osm-restock-batch-main>strong{text-align:left}.osm-restock-delete-action{grid-column:3;justify-self:end}.osm-restock-batch-costs{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.osm-restock-batch-main{grid-template-columns:38px 1fr}.osm-restock-batch-main>span:nth-child(3),.osm-restock-batch-main .osm-restock-history-sizes,.osm-batch-unit-cost,.osm-restock-batch-main>strong,.osm-restock-delete-action{grid-column:2}.osm-restock-delete-action{justify-self:start}.osm-restock-batch-costs{grid-template-columns:repeat(2,1fr)}}
.osm-theme-settings>label:first-child{display:none}
.osm-size-chart-upload{margin-top:16px;padding:18px;border:1px solid #e6e1dd;border-radius:22px;background:#fff}.osm-size-chart-upload>div:first-child span,.osm-size-chart-upload>div:first-child b,.osm-size-chart-upload>div:first-child small{display:block}.osm-size-chart-upload>div:first-child span{color:#aaa29d;font-size:10px;font-weight:800;letter-spacing:1.8px}.osm-size-chart-upload>div:first-child b{margin-top:4px;font-size:15px}.osm-size-chart-upload>div:first-child small{margin-top:4px;color:#9e9894;font-size:11px}.osm-size-chart-upload>label{height:44px;margin-top:13px;border-radius:22px;display:grid;place-items:center;background:#171412;color:#fff;font-size:13px;font-weight:700;cursor:pointer}.osm-size-chart-upload>label input{display:none}.osm-size-chart-preview{margin-top:12px;padding:9px;border-radius:16px;display:flex;align-items:center;gap:11px;background:#f3f1ef}.osm-size-chart-preview[hidden]{display:none}.osm-size-chart-preview img{width:54px;height:54px;border-radius:12px;object-fit:cover;background:#ddd}.osm-size-chart-preview span{color:#625c58;font-size:12px;font-weight:700}
