/* ==========================================================================
   Admin — layered on top of shop.css (shares tokens, buttons, cards, share sheet)
   ========================================================================== */
body.admin { background: #F3F1EC; }
.admin .main { min-height: 100vh; padding-bottom: 96px; }
.content { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }

/* Sidebar (desktop) */
.side { display: none; }
@media (min-width: 960px) {
    .side {
        position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 50;
        display: flex; flex-direction: column; gap: 22px; padding: 22px 16px;
        background: var(--ink); color: #fff;
    }
    .side .brand__name { color: #fff; font-size: 17px; }
    .side .brand__mark { background: var(--brand-on-dark); color: var(--brand-on-dark-ink); box-shadow: none; }
    .admin .main { margin-left: 256px; padding-bottom: 40px; }
    .mtop, .bnav { display: none !important; }
    .content { padding: 32px 36px; }
}
.side__nav { display: grid; gap: 4px; }
.side__nav a, .side__foot a, .side__foot button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 14px; border-radius: 12px; border: 0; background: none;
    color: rgba(255, 255, 255, .7); font-size: 14.5px; font-weight: 500; text-align: left;
    transition: background .15s, color .15s;
}
.side__nav a:hover, .side__foot a:hover, .side__foot button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side__nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--brand-on-dark); }
.side__foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }
/* Many links: the list scrolls on its own; logo, Add button and profile / Log out stay in place */
.side > .side__brand, .side > .side__cta, .side > .side__foot { flex-shrink: 0; }
.side__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 2px 8px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; align-content: start; }
.side__nav::-webkit-scrollbar { width: 6px; }
.side__nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 999px; }
.side__nav::-webkit-scrollbar-track { background: transparent; }
.side__foot { margin-top: 0; }
@media (min-width: 960px) and (max-height: 760px) { .side { gap: 14px; padding-top: 16px; padding-bottom: 14px; } .side__nav a { padding-top: 9px; padding-bottom: 9px; } }

/* Mobile top + bottom nav */
.mtop {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px;
    background: var(--ink); color: #fff;
}
.mtop .brand__name { color: #fff; }
.mtop .brand__mark { width: 34px; height: 34px; font-size: 18px; background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.mtop .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.mtop form { margin: 0; }
.bnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
}
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.bnav a.is-active { color: var(--ink); }
.bnav a.is-active .icon { color: var(--ink); }
.bnav__add {
    justify-self: center; width: 56px; height: 56px; margin-top: -26px; border-radius: 18px;
    display: grid !important; place-items: center;
    background: var(--brand); color: var(--brand-ink) !important;
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 80%, transparent);
}
@media (min-width: 960px) { .hide-desktop { display: none !important; } }
@media (max-width: 959px) { .hide-mobile { display: none !important; } }

/* Page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; margin-top: 4px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--dark:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn--danger:hover { background: #FDECEC; color: var(--danger); border-color: #F5C2C2; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert--ok { background: #E8F8EE; color: #116B37; }
.alert--err { background: #FDECEC; color: #9B2C2C; display: block; }
.alert--warn { background: color-mix(in srgb, var(--brand) 18%, #fff); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand) 50%, #fff); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
@media (min-width: 720px) { .panel { padding: 22px 24px; } }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel__head h2, .panel__title { font-size: 18px; font-weight: 700; }
.panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel__title .icon { color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, var(--brand) 22%, #fff); white-space: nowrap; }
.tag--muted { background: #EFECE6; color: var(--muted); }
.tag--wa { background: #E3F7EA; color: var(--wa-deep); }

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 599px) { .kpi:not(.kpi--dark) { padding: 14px 12px; } .kpi:not(.kpi--dark) span { font-size: 11.5px; align-items: flex-start; } .kpi:not(.kpi--dark) strong { font-size: 24px; } }
@media (min-width: 900px) { .kpis { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.kpi span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi strong { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi--dark { grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
@media (min-width: 900px) { .kpi--dark { grid-column: auto; } }
.kpi--dark::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 120px; height: 18px; transform: rotate(-30deg); background: repeating-linear-gradient(-45deg, var(--brand-on-dark) 0 10px, transparent 10px 20px); opacity: .9; }
.kpi--dark span, .kpi--dark small { color: rgba(255, 255, 255, .6); }
.kpi--dark strong { color: var(--brand-on-dark); font-size: 44px; }

.share-hero {
    display: grid; gap: 16px; align-items: center; margin-bottom: 16px;
    padding: 20px; border-radius: var(--radius);
    background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden;
}
@media (min-width: 720px) { .share-hero { grid-template-columns: 1fr auto; padding: 24px 28px; } }
.share-hero h2 { font-size: 22px; font-weight: 800; }
.share-hero p { margin: 6px 0 10px; opacity: .8; font-size: 14px; }
.share-hero__url { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .1); font-size: 13px; }
.share-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-hero .btn--brand { background: var(--brand-ink); color: var(--brand); } /* always contrasts with the brand panel */

.cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row__thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: #F1EEE7; flex-shrink: 0; }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--brand-on-dark); font-family: var(--display); font-weight: 800; flex-shrink: 0; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__main strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__main small { color: var(--muted); font-size: 12.5px; }
.empty--sm { padding: 24px; border: 0; }

/* Product list */
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters__search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.filters__search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: transparent; }
.filters select, .field select { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; }
.filters select { width: 40%; max-width: 220px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.tabs a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tabs a.is-active { background: var(--ink); color: #fff; }

.plist { display: grid; gap: 10px; }
.pitem {
    display: grid; grid-template-columns: 76px 1fr; gap: 12px 14px;
    padding: 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    transition: opacity .2s, background .2s;
}
.pitem.is-hidden { background: #FAF9F6; }
.pitem.is-hidden .pitem__thumb, .pitem.is-hidden .pitem__main { opacity: .5; }
.pitem__thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #F1EEE7; display: grid; place-items: center; color: #C9C3B6; }
.pitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pitem__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pitem__name { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.pitem__meta .is-struck { text-decoration: line-through; opacity: .7; }
.pitem__stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pitem__stats span { display: inline-flex; align-items: center; gap: 4px; }
.pitem__toggles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.pitem__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.pitem__actions .btn { flex: 1; }
.pitem__actions form { margin: 0; }
@media (min-width: 1100px) {
    .pitem { grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; }
    .pitem__thumb { width: 64px; height: 64px; }
    .pitem__toggles { grid-column: auto; grid-template-columns: repeat(4, auto); border: 0; padding: 0; gap: 14px; }
    .pitem__actions { grid-column: auto; }
    .pitem__actions .btn { flex: none; }
    .switch__label { font-size: 12.5px; }
}

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #D8D3C9; flex-shrink: 0; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .switch__ui { background: var(--wa); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch input:disabled + .switch__ui { opacity: .5; }
.switch__label { font-size: 13px; font-weight: 600; }
.switch--row { display: flex; padding: 12px 0; border-top: 1px solid var(--line); }
.switch--row:first-child { border-top: 0; padding-top: 0; }
.switch--row .switch__label { display: flex; flex-direction: column; }
.switch--row small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; flex: 1; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; max-width: none; font: inherit; font-size: 15px; color: var(--ink);
    padding: 0 14px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #FCFBF9;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.field-row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.field-row > .field { flex: 1 1 200px; }
.field--short { flex: 0 0 120px !important; }
.field--prefix { flex-direction: row; align-items: center; gap: 0; position: relative; }
.field--prefix .icon { position: absolute; left: 14px; color: var(--muted); }
.field--prefix input { padding-left: 42px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.hint code, .field code { background: #EFECE6; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* Product form */
.pform { display: grid; gap: 0 24px; }
@media (min-width: 1000px) {
    .pform { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
    .pform__side { position: sticky; top: 24px; }
    .savebar:not(.savebar--always) { display: none; }
}
.pform__side { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 999px) { .pform__side { display: none; } }
.preview-card { padding: 16px; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #ECE8E0 0 1px, transparent 1px 12px), #F3F1EC; border: 1px solid var(--line); }
.preview-card .pcard { max-width: 240px; margin: 0 auto; transition: opacity .2s; }
.preview-card .pcard:hover { transform: none; }
.preview-card__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.drop {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; max-height: 360px; width: 100%;
    border-radius: 16px; border: 2px dashed #D3CDC1; background: #FAF8F4; overflow: hidden; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.drop:hover { border-color: var(--ink); background: #fff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.drop__hint { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 16px; pointer-events: none; }
.drop__hint strong { color: var(--ink); }
.drop__hint small { font-size: 12.5px; }
.drop__change { position: absolute; bottom: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; display: none; pointer-events: none; }
.drop.has-image { border-style: solid; border-color: var(--line); }
.drop.has-image .drop__hint { display: none; }
.drop.has-image .drop__change { display: block; }

.gallery-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-edit:empty { display: none; }
.gallery-edit__item, .gallery-edit__add { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.gallery-edit__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-edit__item input { position: absolute; opacity: 0; }
.gallery-edit__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 22, 26, .75); color: #fff; cursor: pointer; }
.gallery-edit__item:has(input:checked) img { opacity: .3; filter: grayscale(1); }
.gallery-edit__item:has(input:checked) .gallery-edit__x { background: var(--danger); }
.gallery-edit__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed #D3CDC1; color: var(--muted); cursor: pointer; font-size: 11px; }
.gallery-edit__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gallery-edit--new .gallery-edit__item { outline: 2px solid var(--wa); outline-offset: -2px; }

.toggles { display: grid; }

.savebar {
    position: sticky; bottom: 72px; z-index: 20; margin: 0 -16px; padding: 12px 16px;
    background: linear-gradient(transparent, #F3F1EC 30%);
}
@media (min-width: 960px) { .savebar { bottom: 0; margin: 0; padding: 16px 0; } }
.savebar--always { display: flex; justify-content: flex-end; }
@media (max-width: 959px) { .savebar--always .btn { width: 100%; } }

/* Settings */
.settings { max-width: 760px; }
.logo-field { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.logo-field__box { position: relative; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: #FAF8F4; border: 2px dashed #D3CDC1; cursor: pointer; flex-shrink: 0; }
.logo-field__box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-field__box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-field__box .brand__mark { width: 60px; height: 60px; font-size: 30px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { position: relative; cursor: pointer; }
.swatch input[type="radio"] { position: absolute; opacity: 0; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatch:hover span { transform: scale(1.08); }
.swatch--custom input { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.swatch--custom input::-webkit-color-swatch-wrapper { padding: 6px; }
.swatch--custom input::-webkit-color-swatch { border: 2px solid #fff; border-radius: 50%; }

/* Categories */
.cat-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; }
.cat-row .btn { margin-bottom: 14px; }
.field--icon { flex: 0 0 auto; }

/* Category icon picker */
.ipick { position: relative; }
.ipick__btn { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 10px 0 6px; border-radius: 12px; border: 1px solid var(--line); background: #FCFBF9; cursor: pointer; list-style: none; }
.ipick__btn::-webkit-details-marker { display: none; }
.ipick__btn:hover, .ipick[open] .ipick__btn { border-color: var(--ink); background: #fff; }
.ipick__current { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 20%, #fff); color: var(--ink); }
.ipick__chev { color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.ipick[open] .ipick__chev { transform: rotate(-90deg); }
.ipick__panel {
    position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
    width: min(440px, calc(100vw - 48px)); max-height: 360px; overflow-y: auto;
    padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.ipick__group { display: block; margin: 8px 4px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ipick__group:first-child { margin-top: 0; }
.ipick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px; }
.ipick__opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; cursor: pointer; text-align: center; }
.ipick__opt input { position: absolute; opacity: 0; }
.ipick__opt small { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.ipick__glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #F5F3EE; color: var(--ink-3); transition: background .15s, color .15s; }
.ipick__opt:hover .ipick__glyph { background: #ECE8E0; color: var(--ink); }
.ipick__opt:has(input:checked) .ipick__glyph { background: var(--ink); color: var(--brand-on-dark); }
.ipick__opt:has(input:checked) small { color: var(--ink); font-weight: 600; }
.ipick__opt:has(input:focus-visible) { outline: 2px solid var(--ink); }
.field--order { flex: 0 0 84px; }
.cat-row--edit { align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: nowrap; }
.cat-row--edit:first-child { border-top: 0; }
.cat-row--edit .field { margin: 0; }
@media (max-width: 600px) {
    .cat-row--edit { flex-wrap: wrap; gap: 8px; }
    .cat-row--edit .field:nth-child(2) { flex: 1 1 calc(100% - 82px); }
    .cat-row--edit .field--order { flex: 0 0 72px; }
}
.cat-row--edit .tag { flex-shrink: 0; }

/* Login */
body.login { display: grid; min-height: 100vh; background: var(--paper); }
@media (min-width: 900px) { body.login { grid-template-columns: 1.1fr 1fr; } }
.login__art {
    position: relative; display: none; overflow: hidden; color: #fff;
    background:
        radial-gradient(500px 300px at 80% 10%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%),
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--ink);
}
@media (min-width: 900px) { .login__art { display: flex; align-items: flex-end; padding: 56px; } }
.login__pitch h1 { font-size: 64px; font-weight: 800; letter-spacing: -.045em; margin: 14px 0 12px; line-height: .95; }
.login__pitch p { max-width: 420px; color: rgba(255, 255, 255, .7); font-size: 17px; margin: 0; }
.tape--vertical { position: absolute; top: -40px; right: 80px; width: 64px; height: 140%; padding: 0; transform: rotate(14deg); background: repeating-linear-gradient(-45deg, var(--brand) 0 22px, var(--ink) 22px 44px); }
.tape--vertical::before, .tape--vertical::after { display: none; }
.login__panel { display: grid; place-items: center; padding: 32px 20px; }
.login__form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; }
.login__form h2 { font-size: 30px; font-weight: 800; margin-top: 14px; }
.login__form > p { margin: 0 0 18px; }
.login__form .check { margin: 2px 0 16px; }
.login__form .link { align-self: center; margin-top: 14px; }
.login__form .brand { margin-bottom: 4px; }
.login__help { margin-top: 16px; text-align: center; }
.login .brand__mark, .platform { --brand: #F5A524; --brand-ink: #14161A; }
body.login { --brand: #F5A524; --brand-ink: #14161A; }

/* ==========================================================================
   Multi-shop additions
   ========================================================================== */
.mb { margin-bottom: 12px !important; }
.mt { margin-top: 12px !important; }
.center { text-align: center; }
.subhead { font-size: 14px; font-weight: 700; margin: 20px 0 10px; font-family: var(--body); letter-spacing: 0; }

/* Platform admin acting inside a shop */
.acting {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 8px 16px; background: var(--brand); color: var(--brand-ink); font-size: 13px;
}
.acting span { display: inline-flex; align-items: center; gap: 8px; }
.acting form { margin: 0; }
.acting button { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
@media (min-width: 960px) { .is-acting .acting { margin-left: 256px; } }

/* Sidebar identity & me */
.side__brand { align-items: center; }
.side__shop { display: flex; flex-direction: column; min-width: 0; }
.side__shop small { font-size: 11.5px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__brand .logo:not(.logo--clear) { box-shadow: none; }
.side__brand .logo--clear { --max: 120px; }
.side__me { display: flex !important; align-items: center; gap: 10px !important; }
.side__me span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side__me strong { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__me small { font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.side__me.is-active { background: rgba(255, 255, 255, .1); }
.mtop .logo { --h: 36px; --pad: 4px; --r: 10px; --max: 120px; box-shadow: none; }
.mtop__me { display: block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }

.avatar { display: block; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--initials { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-family: var(--display); font-weight: 800; }

/* Setup checklist */
.setup__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.setup__head h2 { font-size: 19px; }
.setup__head p { margin: 4px 0 0; }
.setup__ring {
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
    background: radial-gradient(closest-side, #fff 76%, transparent 78% 100%), conic-gradient(var(--wa) calc(var(--p) * 1%), #ECE8E0 0);
    font-family: var(--display); font-weight: 800; font-size: 15px;
}
.setup__list { display: grid; gap: 8px; }
@media (min-width: 720px) { .setup__list { grid-template-columns: repeat(2, 1fr); } }
.setup__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #FAF9F6; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.setup__item .icon:last-child { margin-left: auto; color: var(--muted); }
.setup__item:hover { border-color: var(--ink); }
.setup__item.is-done { color: var(--muted); text-decoration: line-through; background: transparent; }
.setup__check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D3CDC1; flex-shrink: 0; }
.is-done .setup__check { background: var(--wa); border-color: var(--wa); color: #fff; }

/* Settings tabs */
.stabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; scrollbar-width: none; }
.stabs::-webkit-scrollbar { display: none; }
.stabs__btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 14px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.stabs__btn:hover { color: var(--ink); }
.stabs__btn.is-active { background: var(--ink); color: #fff; }

.shopform { display: grid; gap: 0 24px; }
@media (min-width: 1100px) { .shopform { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .shopform__side { position: sticky; top: 24px; } }
.shopform__side { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
@media (max-width: 1099px) { .shopform__side { order: -1; max-width: 340px; width: 100%; margin: 0 auto 16px; } }

/* Visual choice cards (hero style / fonts) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice input { position: absolute; opacity: 0; }
.choice:hover { border-color: #C9C3B6; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice__label { display: flex; flex-direction: column; padding: 0 4px 4px; }
.choice__label strong { font-size: 13.5px; }
.choice__label small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.choice__art { position: relative; display: block; height: 72px; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; }
.choice__art i { position: absolute; left: 10px; height: 7px; border-radius: 4px; background: currentColor; }
.choice__art i:first-child { top: 20px; width: 55%; height: 11px; }
.choice__art i:last-child { top: 38px; width: 35%; opacity: .6; }
.choice__art--midnight { color: #fff; background: radial-gradient(80px 50px at 85% 0%, color-mix(in srgb, var(--brand) 60%, transparent), transparent), #14161A; }
.choice__art--light { color: #14161A; background: radial-gradient(80px 50px at 85% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent), #F7F5F0; border: 1px solid var(--line); }
.choice__art--brand { color: var(--brand-ink); background: var(--brand); }
.choice__art--photo { color: #fff; background-color: #4A4F57; background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55)), repeating-linear-gradient(45deg, #5A6069 0 12px, #4A4F57 12px 24px); }
.choice--font { align-items: center; text-align: center; }
.choice__sample { display: block; font-size: 40px; font-weight: 800; line-height: 1.3; padding-top: 6px; }

.tone-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tone { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 2px solid var(--line); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tone input { position: absolute; opacity: 0; }
.tone:has(input:checked) { border-color: var(--ink); }
.tone__chip { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.cover-field { margin-top: 14px; padding: 12px; border-radius: 14px; background: #FAF9F6; border: 1px dashed var(--line); transition: border-color .2s, background .2s; }
.cover-field.is-wanted { border-color: var(--ink); border-style: solid; background: #fff; }
.cover-field__box { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 5; min-height: 140px; border: 2px dashed #D3CDC1; border-radius: 10px; overflow: hidden; background: #EFECE6; cursor: pointer; margin-bottom: 8px; }
.cover-field__box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cover-field__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-field__hint { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.cover-field__hint strong { color: var(--ink); font-size: 15px; }
.cover-field__change { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; }
.cover-field__status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.cover-field__status .icon { color: var(--wa-deep); }
.cover-field__box:hover { outline: 2px solid var(--ink); outline-offset: 2px; }
.cover-field .check { margin-left: 8px; font-size: 13px; }

/* Mini storefront preview */
.mini { border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--body); }
.mini .hero { margin: 0; padding: 12px 14px 16px; }
.mini .hero { position: relative; overflow: hidden; }
.mini.hero-photo .hero { background: #3A3E46; isolation: isolate; }
.mini.hero-photo .hero::before { /* same layers as the storefront, blur scaled to the small preview */
    content: ""; position: absolute; z-index: -2; inset: calc(var(--hero-blur, 0px) * -1);
    background: var(--hero-photo, none) center / cover no-repeat; filter: blur(calc(var(--hero-blur, 0px) / 2.5));
}
.mini.hero-photo .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--hero-tint, #0C0D10) min(100%, calc(var(--hero-tint-alpha, 60%) + 10%)), transparent),
        color-mix(in srgb, var(--hero-tint, #0C0D10) var(--hero-tint-alpha, 60%), transparent) 55%,
        color-mix(in srgb, var(--hero-tint, #0C0D10) min(100%, calc(var(--hero-tint-alpha, 60%) + 20%)), transparent));
}
.mini.hero-photo .mini__title { text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }

/* Background picture effects */
.logo-up .fx { margin-top: 12px; }
.fx { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .fx { grid-template-columns: 1fr 1fr; } .fx__wide { grid-column: 1 / -1; } }
.fx__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #EFECE6; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }
.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; accent-color: var(--ink); }
.range output { min-width: 44px; text-align: right; font-weight: 700; font-size: 13px; }
.cover-field__box img.is-fx { filter: blur(calc(var(--hero-blur, 0px) / 2)); }
.cover-field__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--hero-tint, #0C0D10) min(100%, calc(var(--hero-tint-alpha, 60%) + 18%)), transparent), color-mix(in srgb, var(--hero-tint, #0C0D10) max(0%, calc(var(--hero-tint-alpha, 60%) - 30%)), transparent)); }
.cover-field__sample { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 4vw, 32px); letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); pointer-events: none; }
.mini__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mini__logo.brand__mark { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.mini__logo.logo { --h: 28px; --pad: 3px; --r: 8px; --max: 110px; box-shadow: none; }

/* Logo upload with dark + light previews */
.logo-up__drop { position: relative; display: block; border-radius: 14px; border: 2px dashed #D3CDC1; background: #FAF8F4; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.logo-up__drop:hover { border-color: var(--ink); }
.logo-up__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.logo-up__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.logo-up__empty strong { color: var(--ink); font-size: 15px; }
.has-logo .logo-up__drop { border-style: solid; border-color: var(--line); }
.logo-up__stage { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 170px; }
@media (max-width: 600px) { .logo-up__stage { grid-template-columns: 1fr; } }
.logo-up__bg { display: grid; place-items: center; padding: 24px 16px; }
.logo-up__bg--dark { background: radial-gradient(220px 120px at 85% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent), #14161A; }
.logo-up__bg--dark .logo:not(.logo--clear) { box-shadow: 0 0 0 6px rgba(255, 255, 255, .1), 0 18px 40px -12px rgba(0, 0, 0, .6); }
.logo-up__bg--light { background: #F7F5F0; }
.logo-up__frame { --max: 100%; }
[data-style="clear"] .logo-up__frame { background: transparent; box-shadow: none !important; padding: 0; min-width: 0; }
.mini__wa { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wa); color: #fff; }
.mini__title { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; line-height: 1; }
.mini__tag { display: block; margin-top: 6px; font-size: 11px; color: var(--hero-muted); }
.mini__search { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 4px 4px 4px 10px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; }
.mini__search i { font-style: normal; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.mini.hero-brand .mini__search i { background: var(--ink); color: #fff; }
.mini__tape { height: 12px; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--brand) 6px 12px); }
.mini__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.mini__card { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mini__img { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #EFECE6, #E2DDD3); }
.mini__card b { height: 6px; width: 70%; border-radius: 3px; background: #D9D4CA; }
.mini__card em { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 12px; }
.mini__card em small { font-size: 8px; color: var(--muted); }
.mini__btn { padding: 3px; border-radius: 999px; background: var(--wa); color: #fff; font-size: 9px; font-weight: 700; text-align: center; }

/* Team */
@media (min-width: 900px) { .cols--team { grid-template-columns: 1.4fr 1fr; } }
.member { border-top: 1px solid var(--line); }
.member:first-of-type { border-top: 0; }
.member summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.member summary::-webkit-details-marker { display: none; }
.member__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member__main strong { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.member__main em { font-style: normal; }
.member__main small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member__chev { color: var(--muted); transition: transform .2s; }
.member[open] .member__chev { transform: rotate(90deg); }
.member.is-off summary { opacity: .6; }
.member__body { padding: 0 0 14px 54px; }
@media (max-width: 600px) { .member__body { padding-left: 0; } .member summary .tag { display: none; } }
.member__actions { display: flex; gap: 8px; margin-top: 12px; }
.btn--danger-text { color: var(--danger); }
.btn--danger { background: var(--danger); color: #fff; }
.tag--danger { background: #FDECEC; color: #9B2C2C; }
.tag--live { background: #E3F7EA; color: var(--wa-deep); }
.panel--danger { border-color: #F5C2C2; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.profile-head__name { font-family: var(--display); font-size: 22px; }
.profile-head p { margin: 2px 0 0; }
.avatar-field { position: relative; cursor: pointer; flex-shrink: 0; }
.avatar-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.avatar-field__edit { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; border: 3px solid #fff; }

/* Platform: shop cards */
.shop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shop-card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s; }
.shop-card:hover { box-shadow: var(--shadow); }
.shop-card.is-suspended { opacity: .7; }
.shop-card__band { position: relative; height: 72px; background-size: cover; background-position: center; display: flex; justify-content: flex-end; align-items: flex-start; padding: 10px; }
.shop-card__band--midnight { background: radial-gradient(160px 70px at 85% 0%, color-mix(in srgb, var(--c) 60%, transparent), transparent), #14161A; }
.shop-card__band--light { background: radial-gradient(160px 70px at 85% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent), #F7F5F0; border-bottom: 1px solid var(--line); }
.shop-card__band--brand { background: repeating-linear-gradient(-45deg, rgba(0,0,0,.07) 0 10px, transparent 10px 20px), var(--c); }
.shop-card__band--photo { background-color: #3A3E46; }
.shop-card__body { padding: 0 18px 14px; flex: 1; }
.shop-card__logo { margin-top: -28px; position: relative; box-shadow: 0 0 0 3px #fff, var(--shadow) !important; }
.shop-card__logo.logo--clear { background: #fff; padding: 7px; }
.shop-card__logo.brand__mark { background: var(--c); color: var(--ci); }
.shop-card h3 { font-size: 18px; margin-top: 10px; }
.shop-card__url { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.shop-card__url:hover { color: var(--ink); }
.shop-card__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.shop-card__stats strong { color: var(--ink); font-weight: 700; }
.shop-card__actions { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #FAF9F6; }
.shop-card__actions form { margin: 0; }
.shop-card__actions form:first-child { flex: 1; }
.shop-card__actions form:first-child .btn { width: 100%; }

.slug-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #FCFBF9; overflow: hidden; }
.slug-input em { font-style: normal; padding: 0 4px 0 14px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.field .slug-input input { border: 0; padding-left: 0; background: transparent; box-shadow: none; }
.row__main a:hover strong { text-decoration: underline; }

/* Brand-coloured controls placed on the dark sidebar use the variant that stays visible there */
.side .btn--brand { background: var(--brand-on-dark); color: var(--brand-on-dark-ink); }
.side .avatar--initials, .mtop .avatar--initials { background: var(--brand-on-dark); color: var(--brand-on-dark-ink); }

/* Product photos: camera or device */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.photo-actions .btn { width: 100%; cursor: pointer; }
.gallery-edit__new { display: contents; }
.gallery-edit__item.is-new { outline: 2px solid var(--wa); outline-offset: -2px; }
.gallery-edit__item.is-new .gallery-edit__x { border: 0; font-size: 16px; line-height: 1; }
.gallery-edit__add--cam { border-color: var(--ink); color: var(--ink); }
.subhead small { font-weight: 400; }
/* A computer has no camera to open from a web form — only show "Take photo" on phones/tablets */
@media (hover: hover) and (pointer: fine) {
    .photo-actions { grid-template-columns: 1fr; }
    .photo-actions__cam, .gallery-edit__add--cam { display: none !important; }
}

/* Orders */
.side__badge, .bnav__ico em, .tabs__n { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wa); color: #fff; font-size: 11.5px; font-weight: 700; }
.side__badge { margin-left: auto; }
.tabs__n { margin-left: 4px; height: 18px; min-width: 18px; background: rgba(0, 0, 0, .12); color: inherit; }
.tabs a.is-active .tabs__n { background: rgba(255, 255, 255, .25); }
.bnav__ico { position: relative; display: inline-flex; }
.bnav__ico em { position: absolute; top: -6px; right: -12px; height: 18px; min-width: 18px; font-size: 10.5px; }
.olist { display: grid; gap: 8px; }
.orow { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 4px solid #D6D0C4; transition: border-color .15s, box-shadow .15s; }
.orow:hover { box-shadow: var(--shadow); }
.orow--new { border-left-color: var(--wa); }
.orow--confirmed { border-left-color: #2563EB; }
.orow--delivered { border-left-color: #14161A; }
.orow--cancelled { opacity: .65; }
.orow__ref { font-family: var(--display); font-weight: 800; font-size: 17px; }
.orow__main { display: flex; flex-direction: column; min-width: 0; }
.orow__main small, .orow__meta small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow__meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.orow .ostatus { grid-column: 3; justify-self: end; }
@media (max-width: 640px) { .orow { grid-template-columns: auto 1fr; } .orow__meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; } .orow .ostatus { grid-column: 2; grid-row: 1; } }
.ostatus { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; font-family: var(--body); letter-spacing: 0; vertical-align: middle; }
.ostatus--new { background: #E3F7EA; color: var(--wa-deep); }
.ostatus--confirmed { background: #E5EEFF; color: #1D4ED8; }
.ostatus--delivered { background: #EAEAEA; color: #14161A; }
.ostatus--cancelled { background: #FDECEC; color: #9B2C2C; }
.page-head h1 .ostatus { height: 28px; font-size: 13px; margin-left: 8px; }
@media (min-width: 900px) { .cols--order { grid-template-columns: 1.5fr 1fr; } }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.otable td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.otable td small { color: var(--muted); }
.otable .num { text-align: right; padding-left: 12px; white-space: nowrap; }
.otable tfoot td { border-bottom: 0; padding-top: 14px; font-weight: 600; }
.otable tfoot strong { font-family: var(--display); font-size: 20px; }
.odl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.odl dt { color: var(--muted); }
.odl dd { margin: 0; font-weight: 600; }
.ostatus-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ostatus-pick label { position: relative; cursor: pointer; }
.ostatus-pick input { position: absolute; opacity: 0; }
.ostatus-pick .ostatus { height: 34px; padding: 0 14px; opacity: .45; }
.ostatus-pick input:checked + .ostatus { opacity: 1; box-shadow: 0 0 0 2px currentColor; }
@media print { .side, .mtop, .bnav, .acting, .page-head .btn, form.panel, .btn { display: none !important; } .admin .main { margin: 0 !important; } }

/* Phone menu (all sections: categories, QR codes, team…) */
.mmenu { position: relative; }
.mmenu summary { list-style: none; cursor: pointer; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 250px; padding: 8px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; gap: 2px;
    max-height: calc(100vh - 175px); max-height: calc(100dvh - 175px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }   /* long menu on a small phone: scroll inside it */
.mmenu__panel a, .mmenu__panel button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 500; text-align: left; color: var(--ink); }
.mmenu__panel a:hover, .mmenu__panel button:hover, .mmenu__panel a.is-active { background: var(--paper); }
.mmenu__panel .icon { color: var(--muted); }
.mmenu__panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.mmenu__panel form { margin: 0; }

/* Proformas */
.page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ostatus--q-draft { background: #EFECE6; color: #50545C; }
.ostatus--q-sent { background: #E5EEFF; color: #1D4ED8; }
.ostatus--q-accepted { background: #E3F7EA; color: var(--wa-deep); }
.ostatus--q-declined { background: #FDECEC; color: #9B2C2C; }
.orow--q-draft { border-left-color: #C9C3B6; }
.orow--q-sent { border-left-color: #2563EB; }
.orow--q-accepted { border-left-color: var(--wa); }
.orow--q-declined { opacity: .65; }
.text-danger { color: var(--danger); }
.doc-panel { display: grid; gap: 12px; }
.doc-status .ostatus { border: 0; cursor: pointer; opacity: .5; }
.doc-status .ostatus.is-current { opacity: 1; box-shadow: 0 0 0 2px currentColor; }
.qadd { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qadd__search { flex: 1 1 260px; }
.qlines-wrap { overflow-x: auto; margin: 0 -4px; }
.qlines { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.qlines th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 4px 8px; }
.qlines td { padding: 4px; vertical-align: middle; }
.qlines .r { text-align: right; }
.qlines input { width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #FCFBF9; font: inherit; font-size: 14px; }
.qlines input:focus { outline: 0; border-color: var(--ink); background: #fff; }
.qline__unit { width: 100px !important; }
.qline__num { width: 90px !important; text-align: right; }
.qline__price { width: 120px !important; }
.qline__amt { font-weight: 700; white-space: nowrap; min-width: 110px; }
.qtotals { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .qtotals { grid-template-columns: 200px 1fr 280px; align-items: start; } }
.qtotals .field { margin: 0; }
.qtotals__vat { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.qtotals__sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; font-size: 14px; }
.qtotals__sum dt { color: var(--muted); }
.qtotals__sum dd { margin: 0; text-align: right; font-weight: 600; }
.qtotals__sum .qtotals__grand { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 20px; }

/* Bulk prices & import */
.otable tr.is-same td { color: var(--muted); }
.otable tr.is-error td { background: #FFF7F7; }
.diff-up { color: #B45309; font-weight: 700; }
.diff-down { color: var(--wa-deep); font-weight: 700; }
.steps-list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.hint-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-3); }
.import-form { display: grid; gap: 12px; }
.import-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border-radius: 14px; border: 2px dashed #D3CDC1; background: #FAF8F4; text-align: center; cursor: pointer; color: var(--muted); }
.import-drop:hover { border-color: var(--ink); }
.import-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.import-drop strong { color: var(--ink); }
.import-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-color: var(--wa); }

/* Plan & billing */
.bill-status { display: grid; gap: 18px; border-left: 4px solid var(--wa); }
@media (min-width: 900px) { .bill-status { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.bill-status--trial { border-left-color: #2563EB; }
.bill-status--grace { border-left-color: #D97706; }
.bill-status--expired { border-left-color: var(--danger); }
.bill-status h2 { font-size: 26px; margin: 8px 0 4px; }
.bill-status p { margin: 0; }
.bill-badge--trial { background: #E5EEFF; color: #1D4ED8; }
.bill-badge--active { background: #E3F7EA; color: var(--wa-deep); }
.bill-badge--grace { background: #FEF3C7; color: #92400E; }
.bill-badge--expired { background: #FDECEC; color: #9B2C2C; }
.bill-usage { display: grid; gap: 12px; }
.bill-usage__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #EFECE6; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--wa); }
.bar i.is-full { background: var(--danger); }
.bill-h { font-size: 20px; margin: 22px 0 12px; }
.plans { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); }
.plan.is-current { border-color: var(--ink); }
.plan.is-suggested { border-color: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .15); }
.plan__flag { position: absolute; top: -12px; left: 18px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.plan h3 { font-size: 22px; }
.plan p { margin: 0; }
.plan__price { font-family: var(--display); font-size: 30px; font-weight: 800; margin: 6px 0; }
.plan__price small { font-size: 14px; color: var(--muted); }
.plan__price span { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: center; }
.plan li .icon { color: var(--wa-deep); }
.plan li.is-off { color: var(--muted); text-decoration: line-through; }
.plan li.is-off .icon { color: #C9C3B6; }
.pay-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .pay-grid { grid-template-columns: 1fr 1.2fr; } }
.pay-grid h3 { font-size: 16px; margin-bottom: 10px; }
.pay-how { display: grid; gap: 10px; align-content: start; }
.pay-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #FFFBEA; border: 1px solid #F4E3A3; }
.pay-box span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pay-box strong { font-family: var(--display); font-size: 22px; letter-spacing: .01em; }
.pay-box__bank { font-size: 16px !important; font-family: var(--body) !important; }
.pay-box small { font-size: 12.5px; color: var(--muted); }
.pay-amount { margin: 0 0 12px; font-size: 15px; }
.pay-amount strong { font-family: var(--display); font-size: 22px; }
.pay-status--pending { background: #FEF3C7; color: #92400E; }
.pay-status--approved { background: #E3F7EA; color: var(--wa-deep); }
.pay-status--rejected { background: #FDECEC; color: #9B2C2C; }
.sub-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; font-size: 14px; }
.sub-banner--trial { background: #E5EEFF; color: #1E3A8A; }
.sub-banner--grace, .sub-banner--soon { background: #FEF3C7; color: #78350F; }
.sub-banner--expired { background: #FDECEC; color: #7F1D1D; }
.nav-lock { margin-left: auto; color: rgba(255, 255, 255, .4); }

/* Platform: plans & payments */
.plan-edit-list { display: grid; gap: 12px; }
.plan-edit--new { border-style: dashed; }
.plan-edit .panel__title { flex-wrap: wrap; }
.plan-edit .panel__title small { font-family: var(--body); font-size: 13px; font-weight: 500; }
.plan-edit__opts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.plan-edit__actions { display: flex; gap: 8px; }
.pay-row { grid-template-columns: 1fr auto; border-left-color: #D97706; }
.pay-row .orow__main small { white-space: normal; }
.pay-row__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px dashed var(--line); }
.pay-row__actions form { margin: 0; display: flex; gap: 6px; align-items: center; }
.pay-row__end { display: inline-flex; align-items: center; gap: 8px; }
.pay-invoice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
/* Platform → Locations */
.loc-add { display: flex; align-items: flex-end; gap: 10px; }
.loc-add .field { flex: 1; margin: 0; }
.loc-list { margin-top: 14px; }
.loc-row { grid-template-columns: 1fr auto; }
.loc-row__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.loc-row__form input[type=text] { font: inherit; font-weight: 600; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; width: 200px; }
.loc-row form { margin: 0; }
.pay-row__end form { margin: 0; }
.icon-btn--danger { color: #B42318; }
/* Shops list: move a shop to another plan */
.plan-move { padding: 10px 18px 12px; border-top: 1px solid var(--line); background: #FAF9F6; }
.plan-move > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-move[open] > summary { color: var(--ink); margin-bottom: 10px; }
.plan-move__form { display: grid; gap: 8px; }
.plan-move__form .field { margin: 0; }
.plan-move__form .btn { justify-self: start; }
.pay-row__reject input { height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-size: 13px; width: 200px; }
.pay-row > .ostatus { grid-column: 2; justify-self: end; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.record-pay { margin-top: 16px; }
.pay-row__note { grid-column: 1 / -1; }
.pay-edit { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 8px; }
.pay-edit > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pay-edit[open] > summary { color: var(--ink); margin-bottom: 10px; }
.pay-edit__form { display: grid; gap: 8px; }
.pay-edit__delete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pay-edit__delete .check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* Platform → Settings: the catalog's brand */
.pbrand { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pbrand { grid-template-columns: 220px 1fr; } }
.pbrand__logo { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 16px; border-radius: 16px; background: var(--paper); text-align: center; }
.pbrand__frame { display: grid; place-items: center; min-height: 96px; width: 100%; }
.pbrand__frame .brand__mark { width: 72px; height: 72px; font-size: 34px; border-radius: 20px; }
.pbrand__fields { display: grid; gap: 10px; align-content: start; }
.pbrand__fields .field { margin: 0; }
.pbrand__color { display: flex; gap: 8px; align-items: center; }
.pbrand__color input[type=color] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; }
.pbrand__color input[type=text] { flex: 1; text-transform: uppercase; }
.pbrand__preview { display: grid; gap: 4px; }
.pbrand__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #14161A; color: #fff; }
.pbrand__bar strong { font-family: var(--display); font-size: 16px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbrand__bar em { font-style: normal; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--b); color: #14161A; }
.pbrand__bar .brand__mark { color: var(--b); box-shadow: inset 0 -3px 0 var(--b); }

/* Product form: same name already in the shop */
.dupe { margin: -4px 0 14px; padding: 12px 14px; border-radius: 14px; background: #FFF7E6; border: 1px solid #F4D9A4; display: grid; gap: 10px; }
.dupe__msg { margin: 0; font-size: 13.5px; color: #6B4A00; }
.dupe__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dupe__chips .chip { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid #E6C98A; border-radius: 999px; padding: 6px 12px; }
.dupe__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dupe__list li { display: flex; align-items: center; gap: 10px; }
.dupe__img { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: #fff; }
.dupe__img img { width: 100%; height: 100%; object-fit: cover; }
.dupe__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dupe__txt strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dupe__txt small { color: var(--muted); font-size: 12px; }

/* Product video in the product form */
.video-edit { display: grid; gap: 8px; margin-bottom: 12px; }
.video-edit video { width: 100%; max-height: 320px; border-radius: 14px; background: #000; }
.video-edit .check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.video-edit--new { margin: 12px 0 0; }
.drop video { display: none; }
.drop.is-video video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.drop.is-video #imagePreview, .drop.is-video .drop__hint { visibility: hidden; }
.drop.is-video { border-style: solid; border-color: var(--line); }
.photo-actions:has(.photo-actions__video) { grid-template-columns: repeat(3, 1fr); }
@media (hover: hover) and (pointer: fine) { .photo-actions:has(.photo-actions__video) { grid-template-columns: 1fr 1fr; } }
.video-edit--new .link { justify-self: start; background: none; border: 0; padding: 0; cursor: pointer; color: var(--danger, #B42318); font: inherit; font-size: 14px; }

/* Platform team: roles & permissions */
.role-card { display: grid; gap: 14px; }
.role-card__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.role-card__head .field { flex: 1 1 220px; margin: 0; }
.role-card__count { color: var(--muted); font-size: 13px; padding-bottom: 10px; }
.role-card__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.perm-groups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.perm-group { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0; display: grid; gap: 4px; align-content: start; }
.perm-group legend { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 4px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 10px; cursor: pointer; }
.perm:hover { background: var(--paper); }
.perm input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; }
.perm strong { display: block; font-size: 14px; }
.perm small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.team-row { grid-template-columns: 1fr auto; }
.team-row .orow__main small { white-space: normal; }
.team-row .orow__meta { display: grid; justify-items: end; gap: 4px; }
.team-row .check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.shop-card__by { margin-left: auto; font-size: 12px; }
.record-pay summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; }
.record-pay summary::-webkit-details-marker { display: none; }
.record-pay__form { margin-top: 16px; }
.shop-card__band { flex-wrap: wrap; gap: 6px; align-content: flex-start; }

/* Insights */
.insights__week { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.wk { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #FAF9F6; }
.wk span { font-size: 13px; color: var(--muted); }
.wk strong { font-family: var(--display); font-size: 28px; }
.wk small { font-size: 12.5px; font-weight: 600; }
.insights__charts { display: grid; gap: 18px; }
@media (min-width: 900px) { .insights__charts { grid-template-columns: 1fr 1fr; } }
.chart { margin: 0; }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.chart__head strong { font-family: var(--display); font-size: 18px; color: var(--ink); }
.chart__plot { position: relative; }
.chart__plot svg { display: block; width: 100%; height: 120px; overflow: visible; }
.chart__grid { stroke: #ECE8E0; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart__base { stroke: #D6D0C4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__hit { fill: transparent; }
.chart__col:hover .chart__hit, .chart__col.is-on .chart__hit { fill: rgba(20, 22, 26, .05); }
.chart__max { position: absolute; top: -2px; left: 0; font-size: 11px; color: var(--muted); background: #fff; padding-right: 4px; }
.chart__axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.chart__tip { position: absolute; top: 4px; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 5; }
.chart__table { margin-top: 8px; font-size: 12.5px; }
.chart__table summary { cursor: pointer; color: var(--muted); }
.chart__table table { margin-top: 6px; max-height: 240px; display: block; overflow-y: auto; }
@media (min-width: 1000px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }
.term { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.term:first-of-type { border-top: 0; }
.term em { font-style: normal; font-weight: 700; color: var(--muted); }

/* Platform settings */
.pset { display: grid; gap: 0 24px; }
@media (min-width: 1100px) { .pset { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .pset__side { position: sticky; top: 24px; } }
.pset__side { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1099px) { .pset__side { order: 2; } }
.pset__preview { margin: 0; }
.pset__preview-title { font-size: 16px; margin-bottom: 10px; }

/* Business type picker */
.btypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .btypes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .btypes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.btype { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; font-size: 13.5px; font-weight: 600; line-height: 1.25; transition: border-color .15s; }
.btype input { position: absolute; opacity: 0; }
.btype:hover { border-color: #C9C3B6; }
.btype:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.btype:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.btype__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #F5F3EE; flex-shrink: 0; }
.btype:has(input:checked) .btype__icon { background: var(--ink); color: var(--brand-on-dark, #fff); }

/* Stock */
.slist { display: grid; gap: 8px; }
.sitem { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--wa); }
@media (min-width: 1000px) { .sitem { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.sitem.is-low { border-left-color: #D97706; }
.sitem.is-out { border-left-color: var(--danger); }
.sitem__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sitem__info > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sitem__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sitem__name:hover { text-decoration: underline; }
.sitem__qty { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sitem__qty strong { font-family: var(--display); font-size: 24px; line-height: 1; }
.sitem.is-low .sitem__qty strong { color: #B45309; }
.sitem.is-out .sitem__qty strong { color: var(--danger); }
.sitem__qty small { font-size: 12px; color: var(--muted); }
.sitem__form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sitem__form select, .sitem__form input { height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #FCFBF9; font: inherit; font-size: 13.5px; }
.sitem__form input[name="qty"] { width: 80px; }
.sitem__note { width: 150px; }
.stock-input { width: 110px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; text-align: right; }
.stock-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 10px 14px; border-radius: 12px; background: #E3F7EA; }
.stock-now strong { font-family: var(--display); font-size: 22px; }
.stock-now.is-low { background: #FEF3C7; }
.pitem__stock { font-weight: 700; }
.pitem__stock.is-low { color: #B45309; }
.pitem__stock.is-out { color: var(--danger); }
.side__badge--warn { background: #D97706; }
.stock-alert { text-decoration: none; }
.otable th + th, .otable td + td { padding-left: 14px; }

/* Customers & credit */
.add-customer summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; }
.add-customer summary::-webkit-details-marker { display: none; }
.add-customer form { margin-top: 14px; }
.crow { grid-template-columns: auto 1fr auto; }
.crow.is-owing { border-left-color: #D97706; }
.crow.is-overdue { border-left-color: var(--danger); }
.crow__avatar { width: 40px; height: 40px; font-size: 15px; }
.cbal { display: grid; gap: 6px; justify-items: start; border-left: 5px solid var(--wa); }
.cbal.is-owing { border-left-color: #D97706; }
.cbal.is-overdue { border-left-color: var(--danger); }
.cbal__label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cbal__amount { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1; }
.cbal.is-overdue .cbal__amount { color: var(--danger); }
.cbal__due { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.centry-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: #EFECE6; }
.centry-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.centry-tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
a.term { color: inherit; }
a.term:hover span { text-decoration: underline; }
.side__badge--danger { background: var(--danger); }

/* ── Sales register & reports ─────────────────────────── */
.btn--lg { height: 54px; font-size: 16px; }
.period-tabs { align-items: center; }
.period-date { margin-left: auto; flex-shrink: 0; }
.period-date input { height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13.5px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 170px; align-items: end; }
.bars__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; color: inherit; }
.bars__col span { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--ink) 14%, #fff); transition: background .15s; }
.bars__col:hover span { background: color-mix(in srgb, var(--ink) 30%, #fff); }
.bars__col.is-active span { background: var(--brand); }
.bars__col em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.bars__col small { font-size: 12px; color: var(--muted); font-weight: 600; }
.mbar { position: relative; display: flex; justify-content: space-between; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: #F6F4F0; overflow: hidden; font-size: 14px; }
.mbar span, .mbar em { position: relative; z-index: 1; }
.mbar em { font-style: normal; font-weight: 700; }
.mbar__fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--wa) 22%, #fff); }
.mbar__fill--momo { background: #FFE58A; }
.mbar__fill--airtel { background: #FBC4C4; }
.mbar__fill--bank { background: #C9DAFB; }
.mbar__fill--credit { background: #F5D0C2; }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11.5px; }
.srow--cash { border-left-color: var(--wa); }
.srow--momo { border-left-color: #F2C200; }
.srow--airtel { border-left-color: #E11D2E; }
.srow--bank { border-left-color: #2563EB; }
.srow--credit { border-left-color: var(--danger); }
.void-tag { display: inline-block; vertical-align: middle; padding: 3px 10px; border-radius: 999px; background: #FDECEC; color: #9B2C2C; font-family: var(--body, inherit); font-size: 13px; font-weight: 700; }

.pos { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .pos { grid-template-columns: 1.2fr 1fr; } .pos__cart { position: sticky; top: 16px; } }
.pos__pick .filters__search { margin-bottom: 12px; }
.pos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; margin-bottom: 12px; padding: 2px; }
.pos__prod { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; transition: border-color .15s, transform .1s; }
.pos__prod:hover { border-color: var(--ink); }
.pos__prod:active { transform: scale(.97); }
.pos__prod strong { font-size: 14px; line-height: 1.25; }
.pos__prod span { font-size: 13px; font-weight: 600; }
.pos__prod small { font-size: 11.5px; color: var(--muted); }
.pos__prod.is-out { opacity: .55; }
.pos__prod.is-out small { color: var(--danger); }
.pos__lines { display: grid; gap: 8px; margin-bottom: 12px; }
.pos__empty { padding: 18px 0; text-align: center; }
.pos__line { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name name rm" "qty price total"; gap: 6px 8px; align-items: center; padding: 10px; border-radius: 12px; background: #F8F6F2; }
.pos__name { grid-area: name; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14.5px; min-width: 0; padding: 2px 0; }
.pos__name:not([readonly]) { border-bottom: 1px dashed var(--line); }
.pos__name:focus { outline: 0; }
.pos__rm { grid-area: rm; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.pos__rm:hover { background: #FDECEC; color: var(--danger); }
.pos__qty { grid-area: qty; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.pos__qty button { width: 34px; height: 36px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.pos__qty input { width: 52px; height: 36px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.pos__price { grid-area: price; display: flex; align-items: center; gap: 4px; }
.pos__price input { width: 96px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); font: inherit; text-align: right; }
.pos__price small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pos__lt { grid-area: total; text-align: right; font-size: 14.5px; }
.pos__qty input::-webkit-inner-spin-button, .pos__price input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pos__sum { padding-top: 6px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.pos__disc input { width: 120px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); text-align: right; font: inherit; }
.pos__total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; margin-top: 6px; border-radius: 12px; background: var(--ink); color: #fff; }
.pos__total strong { font-family: var(--display); font-size: 28px; letter-spacing: -.02em; }
.paychips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; }
.paychips legend, .pos__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.paychip input { position: absolute; opacity: 0; pointer-events: none; }
.paychip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.paychip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.paychip--credit input:checked + span { background: var(--danger); border-color: var(--danger); }
.paychip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pos__customer { display: grid; gap: 6px; margin-bottom: 12px; }
.pos__customer input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; }
.pos__owes { color: var(--danger); font-weight: 600; }
.receipt__head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px dashed var(--line); text-align: center; }
.receipt__head strong { font-family: var(--display); font-size: 20px; }
.receipt__head small { color: var(--muted); }
.receipt__thanks { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
@media print { .no-print { display: none !important; } .receipt { border: 0; max-width: 80mm; margin: 0 auto; padding: 0; } .cols--order { display: block; } }
.today-sales > span:first-child { display: flex; align-items: center; gap: 10px; }
.today-sales__btns { display: flex; gap: 6px; flex-shrink: 0; }
.pos__line.needs-price .pos__price input { border-color: var(--danger); background: #FDECEC; }
.pos__line.needs-price .pos__price::after { content: "Price?"; font-size: 11px; font-weight: 700; color: var(--danger); }
.pos__jump { display: none; }
@media (max-width: 899px) {
    .pos__grid { grid-template-columns: repeat(2, 1fr); max-height: 52vh; }
    .pos__prod { padding: 10px; }
    .pos__prod strong { font-size: 13.5px; }
    .pos__jump:not([hidden]) { position: sticky; bottom: 84px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
    .pos__jump b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 4px; border-radius: 999px; background: var(--brand); color: var(--brand-ink, #14161A); font-size: 12px; }
}

/* ── Profit & expenses ─────────────────────────── */
.margin-hint { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 14px; border-radius: 12px; min-height: 44px; align-self: end; margin-bottom: 14px; }
.margin-hint:empty { display: none; }
.margin-hint span { font-size: 12px; font-weight: 600; color: var(--muted); }
.margin-hint strong { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.margin-hint small { font-size: 12px; }
.margin-hint.is-good { background: #E8F8EE; color: #116B37; }
.margin-hint.is-thin { background: #FFF6DB; color: #7A5A00; }
.margin-hint.is-loss { background: #FDECEC; color: #9B2C2C; }
.month-nav { align-items: center; gap: 8px; }
.month-nav strong { font-size: 15px; min-width: 120px; text-align: center; }
.flip { transform: scaleX(-1); }
.pl { padding: 0; overflow: hidden; }
.pl__head { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--ink); color: #fff; }
.pl__head span { font-size: 13px; font-weight: 600; opacity: .7; }
.pl__head strong { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #7BE3A1; }
.pl.is-loss .pl__head strong { color: #FF8A8A; }
.pl__rows { padding: 10px 22px 14px; }
.pl__row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14.5px; }
.pl__row em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl__row small { margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.pl__row--minus { color: var(--muted); }
.pl__row--sub { border-top: 1px solid var(--line); font-weight: 600; }
.pl__row--total { border-top: 2px solid var(--ink); font-weight: 800; font-size: 16px; }
.pl__warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFF6DB; color: #7A5A00; font-size: 13px; }
.pl > .pl__warn { margin: 0 22px 18px; }
.panel > .pl__warn { margin-top: 12px; }
.bars__pair { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100%; }
.bars--pl .bars__col span.bars__pair { background: none; max-width: none; border-radius: 0; }
.bars__pair i { display: block; width: 40%; max-width: 20px; border-radius: 5px 5px 2px 2px; }
.bars__rev, .legend .bars__rev { background: color-mix(in srgb, var(--ink) 18%, #fff); }
.bars__net, .legend .bars__net { background: #22A55B; }
.bars__net.is-neg { background: var(--danger); }
.bars__col.is-active .bars__rev { background: color-mix(in srgb, var(--ink) 40%, #fff); }
.legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.costs { display: grid; gap: 6px; margin-bottom: 14px; }
.costs__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.costs__row span { display: flex; flex-direction: column; min-width: 0; }
.costs__row small { font-size: 12px; color: var(--muted); }
.costs__row input { width: 130px; flex-shrink: 0; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; text-align: right; }
.expcats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.expcat input { position: absolute; opacity: 0; pointer-events: none; }
.expcat span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.expcat input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.expcat input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.explist { margin-top: 12px; }
.explist .term span:first-child { min-width: 0; }
.explist .term .icon { vertical-align: -2px; color: var(--muted); }
.explist__amt { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.explist__amt .icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.explist__amt .icon-btn:hover { background: #FDECEC; color: var(--danger); }
.kpi__profit { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #E8F8EE; color: #116B37; font-size: 12.5px; font-weight: 700; }
.kpi__profit.text-danger { background: #FDECEC; color: var(--danger); }

/* ── Day closing ─────────────────────────── */
.count { padding: 12px 0; border-top: 1px solid var(--line); }
.count:first-of-type { border-top: 0; }
.count--quiet { opacity: .75; }
.count__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.count__head b { color: var(--ink); }
.count__row { display: flex; align-items: center; gap: 10px; }
.count__row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 17px; font-weight: 700; }
.count__diff { flex-shrink: 0; min-width: 96px; text-align: right; font-size: 13.5px; font-weight: 700; }
.count__diff.is-ok { color: #116B37; }
.count__diff.is-short { color: var(--danger); }
.count__diff.is-over { color: #2563EB; }
.denoms { margin-bottom: 8px; }
.denoms summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.denoms__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; margin: 8px 0; }
@media (min-width: 600px) { .denoms__grid { grid-template-columns: repeat(4, 1fr); } }
.denom { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n i" "t t"; gap: 2px 8px; align-items: center; padding: 8px; border-radius: 10px; background: #F8F6F2; }
.denom span { grid-area: n; font-weight: 800; font-size: 13px; }
.denom input { grid-area: i; width: 100%; min-width: 0; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; text-align: right; }
.denom em { grid-area: t; font-style: normal; font-size: 11.5px; color: var(--muted); text-align: right; }
.close-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.close-total strong { font-family: var(--display); font-size: 20px; }
.close-total.is-ok, .close-verdict--balanced { background: #E8F8EE; color: #116B37; }
.close-total.is-short, .close-verdict--short { background: #FDECEC; color: #9B2C2C; }
.close-total.is-over, .close-verdict--over { background: #E6EEFD; color: #1E4FB8; }
.float-left { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.float-left span { font-size: 13px; font-weight: 600; }
.float-left strong { height: 44px; display: flex; align-items: center; font-size: 17px; }
.term--sub { padding-left: 14px; font-size: 13px; color: var(--muted); }
.term--total { border-top: 2px solid var(--ink); font-weight: 800; }
.term--total em { color: var(--ink); }
.close-short { margin-left: auto; font-size: 13px; font-weight: 700; }
.close-row--balanced { border-left-color: #22A55B; }
.close-row--short { border-left-color: var(--danger); }
.close-row--over { border-left-color: #2563EB; }
.close-status--balanced { color: #116B37; }
.close-status--short { color: var(--danger); }
.close-status--over { color: #2563EB; }
.close-verdict { display: flex; flex-direction: column; gap: 4px; border: 0; }
.close-verdict span { font-size: 13.5px; font-weight: 600; }
.close-verdict strong { font-family: var(--display); font-size: 32px; letter-spacing: -.02em; line-height: 1.1; }
.close-verdict p { margin: 4px 0 0; font-size: 14px; }

/* ── Suppliers & purchases ─────────────────────────── */
a.kpi--link { color: inherit; transition: box-shadow .15s; }
a.kpi--link:hover { box-shadow: var(--shadow); }
.pos__customer select { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; }
#purchase .pos__customer { margin-bottom: 16px; }
#purchase #newSupplier { margin: 0; }
.paid-row { margin-top: 14px; }
.paid-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; }
.paid-quick small { margin-left: 4px; font-weight: 600; }
.reorder__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.reorder__btns { display: flex; gap: 6px; }
.reorder__list { display: grid; }
.reorder__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.reorder__name { display: flex; flex-direction: column; min-width: 0; }
.reorder__name small { font-size: 12.5px; color: var(--muted); }
.reorder__qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.reorder__qty input { width: 84px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-weight: 700; text-align: right; }
.reorder__qty small { font-size: 12px; color: var(--muted); min-width: 30px; }
.reorder__assign select { height: 38px; max-width: 180px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13.5px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
#purchase .check { margin-bottom: 14px; }
/* Basket rows: quantity keeps its size, the price box flexes */
.pos__line { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name rm" "qty price total"; }
.pos__qty { flex-shrink: 0; min-width: 120px; }
.pos__price { min-width: 0; }
.pos__price input { width: 100%; min-width: 64px; max-width: 120px; }
.pos__line .pos__rm { justify-self: end; }
.pos__line { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "name name total rm" "qty price price price"; }
.pos__price input { max-width: 140px; }
.share-alt { display: block; margin: 10px 0 6px; text-align: center; }

/* ── Bulk sales entry ─────────────────────────── */
.bulk__top { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; }
.bulk__top .field { flex: 0 0 200px; }
.bulk__tips { flex: 1 1 260px; margin-bottom: 16px; }
.bulk__tips kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; }
.bulk__wrap { overflow-x: auto; margin: 0 -18px 12px; padding: 0 18px; }
.bulk__table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
.bulk__table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 4px 8px; white-space: nowrap; }
.bulk__table th small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.bulk__table td { padding: 3px 4px; vertical-align: top; }
.bulk__table input, .bulk__table select { width: 100%; height: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #FCFBF9; font: inherit; font-size: 14px; }
.bulk__table input:focus, .bulk__table select:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.bulk__table td:nth-child(2) { width: 30%; }
.bulk__table td:nth-child(5) { width: 110px; }
.bulk__table td:nth-child(6) { width: 18%; }
.bulk__num { text-align: right; width: 100px; }
.bulk__num input { text-align: right; }
.bulk__n { width: 30px; color: var(--muted); font-size: 12px; text-align: center; padding-top: 14px !important; }
.bulk__total { padding-top: 13px !important; font-weight: 700; white-space: nowrap; color: var(--muted); }
tr.is-filled .bulk__total { color: var(--ink); }
.bulk__hint { display: block; min-height: 0; font-size: 11.5px; color: var(--muted); padding: 2px 4px 0; }
.bulk__hint:empty { display: none; }
.bulk__hint.is-new { color: #B45309; }
tr.has-error td:first-child { color: var(--danger); font-weight: 800; }
tr.has-error .bulk__table input.is-required, .bulk__table input.is-required { border-color: var(--danger); background: #FDECEC; }
.bulk__rm { width: 30px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; border-radius: 8px; }
.bulk__rm:hover { background: #FDECEC; color: var(--danger); }
.bulk__foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px -18px -18px; padding: 14px 18px; background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 899px) { .bulk__foot { bottom: 72px; } }
.bulk__sum { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.bulk__sum strong { font-family: var(--display); font-size: 20px; color: var(--ink); }
.bulk__sum em { font-style: normal; font-weight: 700; color: var(--danger); }

/* Report PDF share button while the file is being prepared */
.btn.is-busy { opacity: .6; cursor: progress; }
