:root {
  --bg: #f2f4f1;
  --panel: #ffffff;
  --ink: #181b20;
  --muted: #737882;
  --line: #e4e7e1;
  --sidebar: #111518;
  --sidebar-soft: #1a1f22;
  --violet: #6558e8;
  --violet-soft: #efedff;
  --lime: #d9f65d;
  --green: #2e9b6f;
  --green-soft: #e9f7f0;
  --red: #d95f5f;
  --red-soft: #fff0ed;
  --orange: #d9903f;
  --orange-soft: #fff5e6;
  --blue: #4b86dc;
  --blue-soft: #edf5ff;
  --shadow: 0 12px 40px rgba(23, 29, 26, .06);
  --radius: 16px;
}

body.auth-pending .app-shell,
body.auth-locked .app-shell {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(244, 246, 243, 0.72);
  backdrop-filter: blur(18px);
}

body.auth-pending .login-gate,
body.auth-locked .login-gate {
  display: flex;
}

body.invite-active .login-gate {
  display: none;
}

.login-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(20, 24, 28, 0.16);
}

.login-card .brand-mark {
  margin-bottom: 18px;
}

.login-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.login-copy {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.login-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(105, 88, 246, 0.16);
}

.login-card .primary-button {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

#login-error {
  display: block;
  min-height: 20px;
  margin-top: 14px;
  color: #bf3333;
  font-weight: 800;
}

[data-role-hidden="true"] {
  display: none !important;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
body { margin: 0; min-width: 1180px; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, .nav-item { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 10; display: flex; flex-direction: column; min-height: 0; padding: 24px 16px 18px; overflow: hidden; background: var(--sidebar); color: #d9dddc; border-right: 1px solid #262b2d; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; padding: 0 9px 18px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #121617; background: var(--lime); font-weight: 900; box-shadow: 0 0 0 4px rgba(217, 246, 93, .08); }
.brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: -.3px; }
.brand strong span { color: var(--lime); }
.brand small { display: block; margin-top: 3px; color: #71797a; font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; }
.main-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 7px 4px 12px 0; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.main-nav::-webkit-scrollbar { width: 0; height: 0; }
.main-nav::-webkit-scrollbar-thumb { background: transparent; }
.main-nav::-webkit-scrollbar-track { background: transparent; }
.nav-label { margin: 19px 11px 8px; color: #697071; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-item { width: 100%; height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; margin: 3px 0; color: #92999a; background: transparent; border: 0; border-radius: 10px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; transition: .2s ease; }
.nav-item svg { width: 18px; }
.nav-item span { flex: 1; }
.nav-item b, .nav-item i { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #2b293d; color: #b7b0ff; font-size: 10px; font-style: normal; }
.nav-item i { background: #3c2a25; color: #f1a18e; }
.nav-item:hover { color: #e9eceb; background: rgba(255,255,255,.04); }
.nav-item.active { color: #fff; background: #22282a; box-shadow: inset 3px 0 0 var(--lime); }
.nav-item.active svg { color: var(--lime); }
.sidebar-bottom { flex: 0 0 auto; margin-top: 12px; }
.sync-card { padding: 13px; margin-bottom: 13px; background: var(--sidebar-soft); border: 1px solid #282e30; border-radius: 12px; }
.sync-head { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #5ed19b; box-shadow: 0 0 0 4px rgba(94,209,155,.09); }
.sync-card p { margin: 7px 0 12px; color: #737b7c; font-size: 9px; line-height: 1.5; }
.sync-platforms { display: flex; gap: 6px; }
.sync-platforms span { display: grid; place-items: center; width: 32px; height: 20px; border-radius: 5px; background: #fff; color: #263447; font-size: 9px; font-weight: 800; }
.sync-platforms .kaufland { color: #e1322f; }
.sync-platforms .disabled { opacity: .35; }
.pulse.offline { background: #d99a4a; box-shadow: 0 0 0 4px rgba(217,154,74,.09); }
.profile { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px; color: #fff; background: transparent; border: 0; border-radius: 10px; text-align: left; cursor: pointer; }
.profile:hover { background: rgba(255,255,255,.04); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #343b3d; color: var(--lime); font-size: 11px; font-weight: 800; }
.profile > span:nth-child(2) { flex: 1; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 11px; }
.profile small { margin-top: 3px; color: #71797a; font-size: 9px; }
.profile svg { width: 16px; color: #687071; }

.main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 8; height: 84px; display: flex; align-items: center; gap: 24px; padding: 0 32px; background: rgba(242,244,241,.92); border-bottom: 1px solid rgba(214,218,212,.8); backdrop-filter: blur(16px); }
.page-title { min-width: 250px; }
.page-title p { margin: 0 0 5px; color: var(--muted); font-size: 10px; }
.page-title h1 { margin: 0; font-size: 21px; letter-spacing: -.6px; }
.top-actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.search { width: min(400px, 35vw); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 11px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 10px rgba(20,25,23,.03); }
.search svg, .inner-search svg { width: 17px; color: #8b9198; }
.search input, .inner-search input { flex: 1; min-width: 0; outline: 0; border: 0; background: transparent; font-size: 11px; }
.search kbd { padding: 3px 6px; border: 1px solid #e2e4df; border-bottom-width: 2px; border-radius: 5px; color: #92979b; background: #f7f8f6; font-size: 9px; }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.icon-button:hover { background: #f8f9f7; }
.icon-button svg { width: 18px; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px white; }
.primary-button, .send-button { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 10px; color: #fff; background: var(--violet); font-size: 11px; font-weight: 700; box-shadow: 0 8px 18px rgba(101,88,232,.2); cursor: pointer; transition: .2s; }
.primary-button:hover, .send-button:hover { background: #584bd7; transform: translateY(-1px); }
.primary-button:disabled, .send-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.primary-button svg, .send-button svg { width: 16px; }
.mobile-menu { display: none; }

.view { display: none; padding: 24px 32px 40px; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.attention-bar { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 11px 15px; margin-bottom: 18px; background: #171b1d; color: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.attention-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; color: #161a1b; background: var(--lime); }
.attention-icon svg { width: 20px; }
.attention-bar > div:nth-child(2) { flex: 1; }
.attention-bar strong { font-size: 12px; }
.attention-bar p { margin: 4px 0 0; color: #899092; font-size: 10px; }
.attention-bar button, .text-button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--lime); font-size: 10px; font-weight: 700; cursor: pointer; }
.attention-bar button svg, .text-button svg { width: 14px; }
.dashboard-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.range-tabs { display: flex; gap: 4px; padding: 3px; background: #e8ebe6; border-radius: 10px; }
.range-tabs button { height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: #7c8285; font-size: 10px; font-weight: 600; line-height: 1; cursor: pointer; }
.range-tabs button svg { width: 12px; height: 12px; flex: 0 0 12px; margin: 0; }
.range-tabs button.active { color: #24272b; background: #fff; box-shadow: 0 2px 7px rgba(20,25,23,.08); }
.dashboard-source-tabs { display: flex; gap: 4px; padding: 3px; background: #f1f3ef; border-radius: 10px; }
.dashboard-source-tabs button { height: 31px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: #7c8285; font-size: 10px; font-weight: 700; cursor: pointer; }
.dashboard-source-tabs button.active { color: #24272b; background: #fff; box-shadow: 0 2px 7px rgba(20,25,23,.08); }
.ghost-button, .filter-button { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 700; cursor: pointer; }
.ghost-button:hover, .filter-button:hover { border-color: #cbcfc8; }
.ghost-button svg, .filter-button svg { width: 15px; }

.metric-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 12px; }
.metric-card, .panel, .small-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(24,30,27,.025); }
.metric-card { position: relative; min-height: 154px; padding: 17px 18px; overflow: hidden; }
.metric-top { display: flex; justify-content: space-between; align-items: center; }
.metric-top > span:first-child { color: #757b80; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.metric-change { display: flex; align-items: center; gap: 3px; padding: 4px 7px; border-radius: 12px; font-size: 9px; font-weight: 700; }
.metric-change svg { width: 12px; }
.metric-change.positive { color: var(--green); background: var(--green-soft); }
.metric-change.neutral { color: #666e74; background: #f0f2ef; }
.metric-change.muted { color: #7c8285; background: #f0f2ef; }
.metric-card > strong { display: block; margin-top: 16px; font-size: 25px; letter-spacing: -.8px; }
.metric-card > p { margin: 4px 0 0; color: #858b8f; font-size: 10px; }
.goal-track { height: 7px; margin-top: 17px; border-radius: 5px; background: #eeeef7; overflow: hidden; }
.goal-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), #8c81f2); }
.goal-foot { display: flex; justify-content: space-between; margin-top: 7px; color: #7a8085; font-size: 9px; }
.goal-foot b { color: #464b50; }
.revenue-card { background: linear-gradient(145deg, #fff 55%, #f4f2ff); }
.mini-chart { position: absolute; left: 18px; right: 18px; bottom: 15px; height: 35px; display: flex; align-items: flex-end; gap: 5px; }
.mini-chart i { flex: 1; border-radius: 3px 3px 0 0; background: #d8efe4; }
.mini-chart i:nth-last-child(-n+3) { background: #79c6a3; }
.platform-split { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; gap: 18px; padding-top: 11px; border-top: 1px solid #eff1ed; }
.platform-split span { display: flex; align-items: center; gap: 5px; color: #7d8387; font-size: 9px; }
.platform-split strong { margin-left: 3px; color: #25292d; font-size: 10px; }
.ebay-dot, .kaufland-dot { width: 7px; height: 7px; border-radius: 50%; background: #4b86dc; }
.kaufland-dot { background: #e04a3e; }
.inventory-status { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 13px; color: #747b7f; font-size: 9px; }
.inventory-status i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; }
.inventory-status .ok i { background: var(--green); }
.inventory-status .warn i { background: var(--orange); }

.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; margin-top: 12px; }
.panel { min-width: 0; }
.revenue-panel { min-height: 330px; padding: 19px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; }
.panel-head h2 { margin: 0; font-size: 13px; letter-spacing: -.2px; }
.panel-head p { margin: 4px 0 0; color: #8b9094; font-size: 9px; }
.legend { display: flex; gap: 14px; color: #777d81; font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }
.real-chart { min-height: 250px; display: flex; align-items: flex-end; gap: 8px; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 26px 18px 18px; scrollbar-width: thin; }
.real-chart .table-empty { margin: auto; }
.revenue-bar { min-width: 26px; flex: 1 0 26px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; height: 205px; }
.revenue-bar i { width: min(34px, 80%); min-height: 4px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #8075ef, var(--violet)); }
.revenue-bar i.bar-h-0 { height: 4px; opacity: .45; }
.revenue-bar i.bar-h-1 { height: 10px; }
.revenue-bar i.bar-h-2 { height: 18px; }
.revenue-bar i.bar-h-3 { height: 26px; }
.revenue-bar i.bar-h-4 { height: 34px; }
.revenue-bar i.bar-h-5 { height: 42px; }
.revenue-bar i.bar-h-6 { height: 50px; }
.revenue-bar i.bar-h-7 { height: 58px; }
.revenue-bar i.bar-h-8 { height: 66px; }
.revenue-bar i.bar-h-9 { height: 74px; }
.revenue-bar i.bar-h-10 { height: 82px; }
.revenue-bar i.bar-h-11 { height: 90px; }
.revenue-bar i.bar-h-12 { height: 98px; }
.revenue-bar i.bar-h-13 { height: 106px; }
.revenue-bar i.bar-h-14 { height: 114px; }
.revenue-bar i.bar-h-15 { height: 122px; }
.revenue-bar i.bar-h-16 { height: 130px; }
.revenue-bar i.bar-h-17 { height: 138px; }
.revenue-bar i.bar-h-18 { height: 146px; }
.revenue-bar i.bar-h-19 { height: 154px; }
.revenue-bar i.bar-h-20 { height: 165px; }
.revenue-bar b { max-width: 54px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.revenue-bar small { color: #92979a; font-size: 7px; white-space: nowrap; }
.legend .profit { background: #57ad83; }
.chart-wrap { display: flex; height: 242px; padding-top: 18px; }
.y-axis { width: 38px; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 22px; color: #a0a5a7; font-size: 8px; text-align: right; }
.chart { position: relative; flex: 1; margin-left: 9px; }
.grid-lines { position: absolute; inset: 0 0 22px; display: flex; flex-direction: column; justify-content: space-between; }
.grid-lines i { display: block; border-top: 1px dashed #e9ebe7; }
.chart svg { position: absolute; inset: 0 0 22px; width: 100%; height: calc(100% - 22px); overflow: visible; }
.chart-area { fill: url(#area-fill); stroke: none; }
.revenue-line { fill: none; stroke: var(--violet); stroke-width: 3; vector-effect: non-scaling-stroke; }
.profit-line { fill: none; stroke: #5aad82; stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.point { fill: #fff; stroke: var(--violet); stroke-width: 3; vector-effect: non-scaling-stroke; }
.x-axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; color: #a0a5a7; font-size: 8px; }
.chart-tooltip { position: absolute; top: 44px; right: 10%; z-index: 2; display: flex; flex-direction: column; padding: 8px 10px; color: #fff; background: #202429; border-radius: 8px; box-shadow: 0 8px 22px rgba(20,25,23,.18); }
.chart-tooltip:after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
.chart-tooltip small { color: #91989b; font-size: 7px; }
.chart-tooltip b { margin-top: 2px; font-size: 10px; }
.chart-tooltip span { margin-top: 3px; color: #86d2ad; font-size: 7px; }
.inbox-panel { padding: 19px; }
.text-button { color: var(--violet); padding: 0; }
.inbox-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 17px 0 9px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.inbox-summary div { padding: 10px; background: #fafbf9; }
.inbox-summary strong, .inbox-summary span { display: block; }
.inbox-summary strong { font-size: 16px; }
.inbox-summary strong small { font-size: 8px; }
.inbox-summary span { margin-top: 2px; color: #8b9194; font-size: 8px; }
.ticket-preview-list { display: flex; flex-direction: column; }
.ticket-preview { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 0; border: 0; border-bottom: 1px solid #eef0ec; background: transparent; text-align: left; cursor: pointer; }
.ticket-preview:last-child { border-bottom: 0; }
.ticket-preview:hover .ticket-copy b { color: var(--violet); }
.ticket-preview.urgent:after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.channel { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 7px; font-size: 10px; font-style: normal; font-weight: 900; }
.channel.ebay { color: #2564d8; background: #eef4ff; }
.ticket-list-info-icon { color: #4b42b6 !important; background: #f0eeff !important; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 11px; font-weight: 950; }
.channel.kaufland { color: #d9332f; background: #fff0ef; }
.ticket-copy { flex: 1; min-width: 0; }
.ticket-copy b, .ticket-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-copy b { font-size: 10px; }
.ticket-copy small { margin-top: 4px; color: #969b9e; font-size: 8px; }
.category { padding: 4px 6px; border-radius: 5px; font-size: 7px; font-weight: 700; }
.category.invoice { color: #6c5cdc; background: var(--violet-soft); }
.category.delivery_issue { color: var(--red); background: var(--red-soft); }
.category.warranty { color: #b46e29; background: var(--orange-soft); }
.category.shipping { color: #3976c8; background: var(--blue-soft); }
.category.product { color: var(--green); background: var(--green-soft); }
.category.return { color: var(--red); background: var(--red-soft); }
.category.general { color: #6c7377; background: #eff1ee; }
.activity-panel, .stock-panel { padding: 19px; }
.live-pill { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 700; }
.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(46,155,111,.12); } }
.sale-list { margin-top: 12px; }
.sale-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0eb; }
.sale-row:last-child { border-bottom: 0; }
.product-thumb { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 800; }
.product-thumb.image { overflow: hidden; color: inherit; background: #f2f4f1; }
.product-thumb.image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-cell em { display: block; margin-top: 3px; color: #8d9497; font-size: 7px; font-style: normal; }
.product-thumb.purple { color: #6758d8; background: #efedff; }
.product-thumb.orange { color: #b8702d; background: #fff1e2; }
.product-thumb.blue { color: #3671bf; background: #eaf3ff; }
.product-thumb.green { color: #2e8965; background: #e9f7f0; }
.product-thumb.yellow { color: #9b7a1f; background: #fff8d8; }
.sale-row b, .sale-row small, .sale-row strong { display: block; }
.sale-row b { overflow: hidden; color: #2c3034; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sale-row small { margin-top: 3px; color: #94999c; font-size: 8px; }
.sale-row > span:last-child { text-align: right; }
.sale-row strong { font-size: 10px; }
.sale-row .profit { color: var(--green); }
.stock-alert { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf0eb; }
.stock-alert:last-child { border-bottom: 0; }
.stock-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; }
.stock-icon svg { width: 15px; }
.stock-icon.critical { color: var(--red); background: var(--red-soft); }
.stock-icon.warning { color: var(--orange); background: var(--orange-soft); }
.stock-icon.good { color: var(--green); background: var(--green-soft); }
.stock-alert div { flex: 1; }
.stock-alert b, .stock-alert small { display: block; }
.stock-alert b { font-size: 9px; }
.stock-alert small { margin-top: 4px; color: #969b9e; font-size: 8px; }
.stock-alert button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 8px; font-weight: 700; cursor: pointer; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px; }
.section-heading h2 { margin: 4px 0 5px; font-size: 25px; letter-spacing: -.8px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.eyebrow { color: var(--violet); font-size: 8px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.compact-workspace { padding-top: 18px; }
.ticket-layout { display: grid; grid-template-columns: 190px 330px minmax(430px,1fr); height: calc(100vh - 126px); min-height: 620px; gap: 10px; align-items: stretch; }
.ticket-sidebar { min-height: 0; padding: 13px; overflow: auto; }
.inner-search { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #f7f8f6; border: 1px solid #e7e9e4; border-radius: 9px; }
.ticket-filters { margin-top: 12px; }
.ticket-filters button { width: 100%; height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; border-radius: 8px; color: #686e73; background: transparent; font-size: 9px; cursor: pointer; }
.ticket-filters button span { display: flex; align-items: center; gap: 7px; }
.ticket-filters button b { color: #999ea1; font-size: 8px; }
.ticket-filters button.active { color: #4037a4; background: var(--violet-soft); font-weight: 700; }
.ticket-filters button.active b { color: #5a4fcd; }
.filter-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a3a8aa; }
.filter-dot.red { background: var(--red); }.filter-dot.violet { background: var(--violet); }.filter-dot.orange { background: var(--orange); }.filter-dot.blue { background: var(--blue); }.filter-dot.green { background: var(--green); }
.automation-note { display: flex; gap: 8px; padding: 11px; margin-top: 18px; color: #4c428f; background: #f4f2ff; border: 1px solid #e3dffc; border-radius: 10px; }
.automation-note svg { width: 16px; flex: 0 0 auto; }
.automation-note b { font-size: 9px; }
.automation-note p { margin: 4px 0 0; color: #817aab; font-size: 7px; line-height: 1.5; }
.ticket-list { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.list-toolbar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); }
.list-toolbar strong { font-size: 10px; }
.list-toolbar button { display: flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #777e82; font-size: 8px; cursor: pointer; }
.list-toolbar svg { width: 13px; }
.ticket-range-control { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.ticket-sync-button { display: grid; place-items: center; width: 32px; height: 30px; border: 1px solid #e2e5df; border-radius: 9px; color: #5a6266; background: #fff; cursor: pointer; transition: .18s ease; }
.ticket-sync-button:hover { color: var(--violet); border-color: #c9c3f8; background: #f8f7ff; box-shadow: 0 6px 16px rgba(101,88,232,.1); }
.ticket-sync-button svg { width: 13px; }
.ticket-filter-button { height: 30px; padding: 0 9px; border: 1px solid #e2e5df !important; border-radius: 9px; background: #fff !important; color: #52595c !important; font-weight: 800; transition: .18s ease; }
.ticket-filter-button:hover, .ticket-filter-button.active { color: var(--violet) !important; border-color: #c9c3f8 !important; background: #f8f7ff !important; box-shadow: 0 6px 16px rgba(101,88,232,.1); }
.ticket-filter-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 12; display: none; width: 164px; padding: 7px; border: 1px solid #e4e7e1; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 18px 46px rgba(16,20,22,.16); backdrop-filter: blur(12px); }
.ticket-filter-popover.open { display: grid; gap: 4px; animation: pop .14s ease; }
.ticket-filter-popover button { width: 100%; height: 32px; justify-content: flex-start; gap: 7px; padding: 0 9px; border-radius: 8px; color: #646b6f; background: transparent; font-size: 8px; font-weight: 800; }
.ticket-filter-popover button:hover { color: var(--violet); background: #f6f4ff; }
.ticket-filter-popover button.active { color: #3f37a5; background: var(--violet-soft); }
.ticket-filter-popover svg { width: 12px; }
.ticket-drag-active .ticket-category-drop-target { position: relative; border-color: #d9d3ff; background: #fbfaff; transform: translateX(2px); }
.ticket-drag-active .ticket-category-drop-target:after { content: "Ablegen"; margin-left: auto; padding: 3px 6px; border-radius: 999px; color: #5d50d8; background: #ebe8ff; font-size: 7px; font-weight: 950; letter-spacing: .02em; }
.ticket-drag-active .ticket-category-drop-target.is-same-category { opacity: .48; transform: none; }
.ticket-drag-active .ticket-category-drop-target.is-same-category:after { content: "Aktuell"; color: #8e9497; background: #eef1ed; }
.ticket-category-drop-target.drop-hover { border-color: #8e80ff !important; color: #4c40c8 !important; background: #f1efff !important; box-shadow: 0 10px 24px rgba(99,82,232,.14); transform: translateX(4px) scale(1.01); }
.ticket-category-drop-target.drop-hover:after { content: "Loslassen"; color: #fff; background: var(--violet); }
#ticket-list-items { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.ticket-list-item { width: 100%; display: flex; gap: 9px; padding: 13px 12px; border: 0; border-bottom: 1px solid #edf0eb; background: #fff; text-align: left; cursor: pointer; transition: background .16s ease, box-shadow .16s ease, opacity .16s ease, transform .16s ease; }
.ticket-list-item:hover { background: #fafbf9; }
.ticket-list-item.active { background: #f6f5ff; box-shadow: inset 3px 0 0 var(--violet); }
.ticket-list-item.is-dragging { opacity: .58; background: #f8f7ff; box-shadow: inset 3px 0 0 var(--violet); transform: scale(.99); cursor: grabbing; }
.ticket-main { flex: 1; min-width: 0; }
.ticket-main > span { display: flex; justify-content: space-between; gap: 8px; }
.ticket-main b { overflow: hidden; color: #25292c; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.ticket-main time { color: #a1a6a8; font-size: 7px; white-space: nowrap; }
.ticket-main > strong { display: block; overflow: hidden; margin-top: 4px; color: #71777b; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.ticket-main p { margin: 6px 0 8px; overflow: hidden; color: #92979a; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.ticket-main small { display: flex; align-items: center; gap: 5px; color: #8c9195; font-size: 7px; }
.ticket-list-item.urgent { position: relative; }
.ticket-list-item.urgent:after { content: ""; position: absolute; right: 9px; bottom: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.conversation { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.conversation-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.conversation-head > div { display: flex; align-items: center; min-width: 0; gap: 11px; }
.conversation-head h3 { overflow: hidden; margin: 0; color: #202528; font-size: 15px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.conversation-head p { overflow: hidden; margin: 4px 0 0; color: #8a9093; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.conversation-head .icon-button { width: 30px; height: 30px; }
.ticket-info-button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #dedaf6; border-radius: 10px; color: #5e51d9; background: #f7f6ff; font-size: 14px; font-weight: 950; cursor: pointer; box-shadow: none; }
.ticket-info-button:hover, .ticket-info-button.active { border-color: #bdb6ff; color: #fff; background: var(--violet); box-shadow: 0 8px 18px rgba(99,82,232,.18); }
.ticket-info-button:disabled, .ticket-info-button.muted { border-color: #e5e8e2; color: #9da3a5; background: #f3f5f2; box-shadow: none; cursor: not-allowed; }
.sla { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 8px; font-size: 7px; font-weight: 700; }
.sla.good { color: var(--green); background: var(--green-soft); }
.sla.late { color: var(--red); background: var(--red-soft); }
.sla i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.customer-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 10px; padding: 10px 16px; background: #fafbf9; border-bottom: 1px solid var(--line); }
.customer-context div { min-width: 0; padding: 8px 10px; border: 1px solid #e5e8e2; border-radius: 8px; background: #fff; }
.customer-context small, .customer-context b { display: block; }
.customer-context small { overflow: hidden; color: #999ea1; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.customer-context b { overflow: hidden; margin-top: 4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.customer-context button { display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border: 1px solid #dedaf6; border-radius: 8px; color: var(--violet); background: #fff; font-size: 8px; font-weight: 850; white-space: nowrap; cursor: pointer; }
.customer-context button:disabled { opacity: .45; cursor: not-allowed; }
.customer-context button svg { width: 12px; }
.customer-context-actions { position: relative; display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.customer-context-actions #ticket-lexware-toggle.has-result { border-color: #ffd995; color: #8c5f12; background: #fff6e7; }
.ticket-lexware-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 15; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; width: 360px; padding: 12px; border: 1px solid #e6ddc9; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 18px 46px rgba(20,17,10,.14); backdrop-filter: blur(14px); }
.ticket-lexware-popover[hidden] { display: none; }
.ticket-lexware-popover > div { min-width: 0; }
.ticket-lexware-popover strong, .ticket-lexware-popover small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-lexware-popover strong { color: #343a3d; font-size: 10px; }
.ticket-lexware-popover small { margin-top: 4px; color: #8b7960; font-size: 8px; font-weight: 750; }
.lexware-pill { min-width: 74px; padding: 7px 9px; border-radius: 999px; color: #7f5a16; background: #fff1d7; font-size: 8px; font-weight: 950; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.ticket-lexware-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ticket-lexware-actions .ghost-button { height: 32px; justify-content: center; padding: 0 10px; border-radius: 8px; font-size: 8px; text-decoration: none; white-space: nowrap; }
.ticket-lexware-actions .disabled { opacity: .42; pointer-events: none; }
.ticket-context-panel { display: grid; grid-template-columns: minmax(260px, 1.45fr) minmax(140px, .7fr) minmax(150px, .75fr); gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfcfa 0%, #f7f9f5 100%); }
.ticket-context-panel[hidden] { display: none; }
.ticket-context-panel div { position: relative; min-width: 0; min-height: 0; padding: 10px 12px 10px 14px; border: 1px solid #e1e6de; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 1px 0 rgba(18,22,23,.04); }
.ticket-context-panel div:before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 999px; background: #cfc8ff; }
.ticket-context-panel small, .ticket-context-panel b { display: block; }
.ticket-context-panel small { color: #858c8f; font-size: 7px; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.ticket-context-panel b { overflow: hidden; margin-top: 5px; color: #343a3d; font-size: 10px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.ticket-context-panel div:not(:first-child) b { display: inline-flex; align-items: center; width: max-content; max-width: 100%; min-height: 28px; padding: 5px 9px; border-radius: 999px; color: #343a3d; background: #f4f6f2; white-space: normal; }
.ticket-auto-reply-status { display: flex; align-items: center; gap: 10px; padding: 10px 19px; border-top: 1px solid var(--line); color: #5f696c; background: #fbfcfa; }
.ticket-auto-reply-status > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; color: #6e787b; background: #eef1ed; }
.ticket-auto-reply-status > div { min-width: 0; flex: 1; }
.ticket-auto-reply-status svg { width: 13px; }
.ticket-auto-reply-status strong, .ticket-auto-reply-status small { display: block; }
.ticket-auto-reply-status strong { color: #303639; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.ticket-auto-reply-status small { margin-top: 3px; font-size: 8px; font-weight: 750; line-height: 1.35; }
.ticket-auto-reply-status .ghost-button { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 8px; white-space: nowrap; }
.ticket-auto-reply-status.sent { color: #38664b; background: #f4fbf6; }
.ticket-auto-reply-status.sent > span { color: #2e8f56; background: #dff4e7; }
.ticket-auto-reply-status.skipped { color: #76633a; background: #fffaf0; }
.ticket-auto-reply-status.skipped > span { color: #a67824; background: #fff0cf; }
.ticket-auto-reply-status.failed { color: #93403b; background: #fff5f4; }
.ticket-auto-reply-status.failed > span { color: #bd4a43; background: #ffe2df; }
.messages { flex: 1 1 auto; min-height: 0; padding: 19px; background: #fbfcfa; overflow: auto; overscroll-behavior: contain; }
.message { display: flex; gap: 10px; margin-bottom: 13px; }
.message-avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 8px; background: #e7eae5; color: #565e60; font-size: 8px; font-weight: 800; }
.message small { color: #8e9497; font-size: 7px; }
.message > div { max-width: min(680px, 82%); }
.message p { max-width: 100%; margin: 6px 0 0; padding: 13px 15px; border: 1px solid #e3e6e0; border-radius: 3px 13px 13px 13px; background: #fff; font-size: 9px; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; box-shadow: 0 8px 24px rgba(20,25,23,.04); }
.message.agent { flex-direction: row-reverse; margin: 12px 0 12px auto; }
.message.agent > div { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.message.agent p { color: #4c466d; background: #f3f1ff; border-color: #ddd8fc; border-radius: 13px 3px 13px 13px; text-align: left; }
.message.agent .message-avatar { color: #fff; background: var(--violet); }
.message-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.message-attachment { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; padding: 7px 8px; border: 1px solid #e1e5df; border-radius: 8px; color: #3f4a50; background: #fff; font-size: 8px; font-weight: 800; text-decoration: none; }
.message-attachment svg { width: 12px; height: 12px; color: var(--violet); }
.message-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-attachment.image { display: grid; gap: 5px; width: 118px; padding: 6px; }
.message-attachment.image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #f2f4f1; }
.message-date-separator { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 16px; color: #8d9397; font-size: 8px; font-weight: 700; }
.message-date-separator:before, .message-date-separator:after { content: ""; flex: 1; height: 1px; background: #e7eae5; }
.conversation-empty { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8e9497; text-align: center; }
.conversation-empty svg { width: 32px; height: 32px; padding: 8px; margin-bottom: 9px; border-radius: 10px; color: var(--violet); background: var(--violet-soft); }
.conversation-empty b { color: #4f5559; font-size: 10px; }
.conversation-empty p { margin: 5px 0 0; font-size: 8px; }
.ai-suggestion { max-width: 480px; padding: 13px; margin: 19px 0 0 35px; border: 1px solid #dcd7fc; border-radius: 12px; background: #f8f7ff; }
.ai-head { display: flex; justify-content: space-between; align-items: center; }
.ai-head span { display: flex; align-items: center; gap: 5px; color: #584cc4; font-size: 8px; font-weight: 800; }
.ai-head svg { width: 13px; }
.ai-head small { color: #9992c2; font-size: 6px; }
.ai-suggestion > p { margin: 10px 0 12px; color: #4f4b68; font-size: 8px; line-height: 1.6; }
.ai-draft-instruction { width: 100%; min-height: 54px; margin: 0 0 10px; padding: 8px; resize: vertical; border: 1px solid #dfdafb; border-radius: 9px; background: #fff; color: #403a60; font-size: 8px; line-height: 1.45; outline: 0; }
.ai-draft-instruction:focus { border-color: #aaa1f1; box-shadow: 0 0 0 3px rgba(101,88,232,.08); }
.ai-suggestion > div:last-child { display: flex; gap: 6px; }
.accept-ai { height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 0; border-radius: 7px; color: #fff; background: var(--violet); font-size: 8px; font-weight: 700; cursor: pointer; }
.accept-ai svg { width: 12px; }
.ai-suggestion .ghost-button { height: 30px; background: transparent; font-size: 8px; }
.composer { flex: 0 0 auto; padding: 11px 14px 13px; border-top: 1px solid var(--line); background: #fff; }
.composer-tools { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.composer-tools button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #70767a; font-size: 7px; cursor: pointer; }
.composer-tools button:disabled { opacity: .4; cursor: not-allowed; }
.composer-tools span { flex: 1; }
.composer-tools small { color: #989da0; font-size: 7px; }
.composer textarea { width: 100%; min-height: 70px; padding: 9px; resize: none; outline: 0; border: 1px solid var(--line); border-radius: 9px; font-size: 9px; line-height: 1.5; }
.composer textarea:focus { border-color: #a9a1f1; box-shadow: 0 0 0 3px rgba(101,88,232,.08); }
.composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.composer-footer span { display: flex; align-items: center; gap: 4px; color: #909598; font-size: 7px; }
.composer-footer svg { width: 12px; }
.send-button { height: 32px; padding: 0 11px; font-size: 8px; }

.inventory-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 12px; }
.small-stat { padding: 15px; }
.small-stat span, .small-stat small { display: block; }
.small-stat span { color: #7c8286; font-size: 9px; }
.small-stat strong { display: block; margin: 8px 0 3px; font-size: 20px; }
.small-stat small { color: #949a9d; font-size: 8px; }
.small-stat.alert { background: #fffafa; border-color: #f1d8d3; }
.small-stat.alert strong, .danger { color: var(--red) !important; }
.positive { color: var(--green) !important; }
.inventory-table-panel { overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 13px; border-bottom: 1px solid var(--line); }
.table-toolbar .inner-search { width: 290px; }
.table-toolbar > div { display: flex; gap: 7px; }
.inventory-filter-controls label { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: #7c8386; background: #fff; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.inventory-filter-controls select { min-width: 105px; padding: 0; border: 0; outline: 0; color: #4c5356; background: transparent; font: inherit; font-size: 8px; font-weight: 800; text-transform: none; cursor: pointer; }
.inventory-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 7px 13px; border-bottom: 1px solid var(--line); background: #fafbf9; }
.inventory-bulk-toolbar label, .inventory-bulk-toolbar > div { display: flex; align-items: center; gap: 9px; }
.inventory-bulk-toolbar label { color: #4e5659; font-size: 8px; font-weight: 850; cursor: pointer; }
.inventory-bulk-toolbar input, .inventory-row-check { width: 15px; height: 15px; accent-color: var(--violet); cursor: pointer; }
.inventory-bulk-toolbar > div > span { color: #888f92; font-size: 8px; font-weight: 750; }
.inventory-bulk-toolbar .ghost-button { min-height: 32px; font-size: 8px; }
.inventory-bulk-toolbar .ghost-button:disabled { opacity: .45; cursor: not-allowed; }
.inventory-row-check { flex: 0 0 auto; margin: 0 1px 0 0; }
.inventory-reset-warning { padding: 13px 14px; border: 1px solid #f0caca; border-radius: 14px; background: #fff8f7; }
.inventory-reset-warning strong, .inventory-reset-warning small { display: block; }
.inventory-reset-warning strong { color: #8f312b; font-size: 10px; }
.inventory-reset-warning small { margin-top: 5px; color: #7d5550; font-size: 8px; font-weight: 750; line-height: 1.5; }
.data-table { min-width: 1180px; }
.table-row { display: grid; grid-template-columns: minmax(240px, 2.2fr) 1fr .7fr .75fr .75fr .8fr .9fr 1fr 32px; align-items: center; gap: 11px; min-height: 66px; padding: 8px 15px; border-bottom: 1px solid #edf0eb; color: #555c60; font-size: 9px; }
.table-row:last-child { border-bottom: 0; }
.table-head { min-height: 39px; color: #8f9598; background: #fafbf9; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.critical-row { background: linear-gradient(90deg, #fff9f8 0, #fff 35%); }
.inventory-archived-row { background: #f8f9f7; opacity: .8; }
.inventory-archived-row .product-cell:after { content: "Archiv"; flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #6e7578; background: #e8ebe7; font-size: 6px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.product-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.product-cell > span { min-width: 0; }
.product-cell b, .product-cell small, .table-row > span > b, .table-row > span > small { display: block; }
.product-cell b { overflow: hidden; color: #292d31; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.product-cell small, .table-row > span > small { margin-top: 3px; color: #959a9d; font-size: 7px; }
.serial-rule-chip { display: inline-flex; width: max-content; margin-top: 5px; padding: 3px 6px; border: 1px solid #dfe3df; border-radius: 6px; color: #6f777a; background: #fff; font: inherit; font-size: 6.5px; font-weight: 850; letter-spacing: 0; cursor: pointer; }
.serial-rule-chip.active { border-color: #a9ddca; color: #187b5c; background: #eefaf5; }
.status { display: inline-block; padding: 4px 6px; border-radius: 6px; font-size: 7px; font-weight: 700; }
.status.good { color: var(--green); background: var(--green-soft); }
.status.warning { color: var(--orange); background: var(--orange-soft); }
.status.danger { color: var(--red); background: var(--red-soft); }
.channel-stack { display: flex; }
.channel-stack .channel { width: 22px; height: 22px; margin-left: -3px; border: 2px solid #fff; font-size: 8px; }
.channel-stack { align-items: center; gap: 4px; }
.listing-state { font-size: 7px; font-style: normal; font-weight: 700; }
.listing-state.good { color: var(--green); }
.listing-state.warning { color: var(--orange); }
.listing-state.danger { color: var(--red); }
.row-action { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.row-action:hover { background: #f0f2ef; }
.row-action svg { width: 15px; }
.set-action { width: auto; min-width: 44px; padding: 0 10px; border: 1px solid #ece9ff; color: var(--purple); background: #f8f6ff; font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

.sales-workspace-tabs { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #eef1ed; }
.sales-workspace-tabs button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 7px; color: #767d7f; background: transparent; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.sales-workspace-tabs button:hover { color: #252a2c; }
.sales-workspace-tabs button.active { color: #202527; background: #fff; box-shadow: 0 1px 4px rgba(25,31,29,.1); }
.sales-workspace-tabs svg { width: 15px; height: 15px; }
.sales-kpis { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sales-kpis div { padding: 15px 18px; border-right: 1px solid var(--line); }
.sales-kpis div:last-child { border-right: 0; }
.sales-kpis span, .sales-kpis small, .sales-kpis strong { display: block; }
.sales-kpis span { color: #83898c; font-size: 8px; text-transform: uppercase; }
.sales-kpis strong { margin: 8px 0 3px; font-size: 18px; }
.sales-kpis small { color: #92979a; font-size: 8px; }
.order-board { min-height: 520px; display: grid; grid-template-columns: repeat(4,1fr); padding: 12px; gap: 10px; background: #eaede8; }
.board-column { padding: 9px; border: 1px solid #e0e4dd; border-radius: 11px; background: #f5f7f4; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 3px 12px; color: #656c70; font-size: 9px; font-weight: 700; }
.board-head span { display: flex; align-items: center; gap: 6px; }
.board-head b { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 10px; background: #e5e8e2; font-size: 8px; }
.order-card { padding: 12px; margin-bottom: 8px; border: 1px solid #e0e3dd; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgba(20,25,23,.03); }
.order-card.needs-sku { border-color: #efd7bb; box-shadow: inset 3px 0 0 #e8a153, 0 3px 10px rgba(20,25,23,.03); }
.order-card > b, .order-card > span { display: block; }
.order-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card-meta small { overflow: hidden; color: #92979a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.order-card-meta span { flex: 0 0 auto; padding: 3px 5px; border-radius: 5px; color: #a46123; background: #fff1df; font-size: 6px; font-weight: 800; }
.order-card > b { margin-top: 8px; font-size: 9px; line-height: 1.4; }
.order-card > span { margin-top: 5px; color: #777d81; font-size: 8px; }
.order-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 9px; border-top: 1px solid #eff1ed; }
.order-card footer strong { font-size: 9px; }
.order-card footer time { color: #999ea1; font-size: 7px; }
.order-card footer button { padding: 5px 7px; border: 0; border-radius: 6px; color: #fff; background: var(--violet); font-size: 7px; cursor: pointer; }
.order-card.muted { opacity: .68; }
.board-overflow-note { padding: 9px; border: 1px dashed #d9ddd6; border-radius: 8px; color: #7e8588; background: rgba(255,255,255,.55); font-size: 7px; font-weight: 700; text-align: center; }

.workflow-strip { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 12px; }
.workflow-step { flex: 1; display: flex; align-items: center; gap: 10px; }
.workflow-step > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #687073; background: #eef0ed; font-size: 9px; font-weight: 900; }
.workflow-step.active > span { color: #252b20; background: var(--lime); }
.workflow-step b, .workflow-step small { display: block; }
.workflow-step b { font-size: 9px; }
.workflow-step small { margin-top: 3px; color: #92989a; font-size: 7px; }
.workflow-arrow { color: #b1b6b4; }
.workflow-arrow svg { width: 15px; }
.shipping-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.shipping-queue { min-height: 520px; padding: 18px; }
.warning-queue { background: #fffcf8; }
.queue-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 900; }
.queue-count.warning { color: var(--orange); background: var(--orange-soft); }
.shipping-order { padding: 14px; margin-top: 9px; border: 1px solid #e2e5df; border-radius: 11px; background: #fff; }
.shipping-order.needs-mapping { border-color: #efd7bb; box-shadow: inset 3px 0 0 #e8a153; }
.shipping-order-head, .shipping-order footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shipping-order-head { color: #949a9d; font-size: 7px; }
.shipping-order h3 { margin: 9px 0 5px; font-size: 10px; line-height: 1.4; }
.shipping-order p { margin: 0; color: #7d8487; font-size: 8px; }
.shipping-order footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0eb; }
.shipping-order footer strong { font-size: 9px; }
.shipping-order footer span { padding: 4px 7px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 7px; font-weight: 800; }
.shipping-order.needs-mapping footer span { color: var(--orange); background: var(--orange-soft); }
.shipping-open-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 9px; border: 0; border-radius: 8px; color: #282d30; background: #f2f4f0; font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.shipping-open-button:hover { background: #e9ece6; }
.shipping-open-button svg { width: 12px; height: 12px; color: var(--violet); }
.returns-state-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 12px; }
#returns-view .section-heading .heading-actions .ghost-button,
#returns-view .section-heading .heading-actions .primary-button { height: 48px; align-items: center; padding: 0 18px; }
#returns-view .section-heading .heading-actions svg { flex: 0 0 auto; }
.returns-state-grid .small-stat { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.returns-panel { min-height: 500px; padding: 19px; }
.empty-operation { display: grid; place-items: center; min-height: 360px; color: #858c8f; text-align: center; }
.empty-operation > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--violet); background: var(--violet-soft); }
.empty-operation svg { width: 22px; }
.empty-operation b { margin-top: -90px; color: #303538; font-size: 12px; }
.empty-operation p { max-width: 350px; margin-top: -145px; font-size: 8px; line-height: 1.55; }
.return-case { display: grid; grid-template-columns: 105px minmax(0,1fr) 70px 125px 145px 105px 116px auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf0eb; }
.return-case b, .return-case small { display: block; }
.return-case b { font-size: 9px; }
.return-case small { margin-top: 4px; color: #969b9e; font-size: 7px; }
.return-status { padding: 5px 7px; border-radius: 7px; color: var(--orange); background: var(--orange-soft); font-size: 7px; font-weight: 800; text-align: center; }
.return-label-cell { display: grid; gap: 3px; min-width: 0; }
.return-label-cell a { color: var(--violet); font-size: 8px; font-weight: 900; text-decoration: none; }
.return-label-cell span { color: #8b9295; font-size: 8px; font-weight: 850; }
.return-case select, .return-case input[type="text"] { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8px; font-weight: 750; }
.return-workflow-fields, .return-refund-fields { display: grid; gap: 5px; min-width: 0; }
.return-refund-fields input { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8px; font-weight: 750; }
.return-case .ghost-button { height: 34px; font-size: 8px; }
.return-stock-toggle { display: inline-flex; align-items: center; gap: 6px; color: #858c8f; font-size: 7px; font-weight: 800; }
.readonly-hint { justify-self: end; grid-column: span 4; color: #969b9e; font-size: 8px; }
.return-label-tool { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: 18px; }
.inline-search-row { display: flex; gap: 10px; margin-top: 8px; }
.inline-search-row input { flex: 1; }
.return-label-candidates { display: grid; gap: 9px; max-height: 500px; overflow: auto; padding: 10px 2px 2px; }
.return-label-empty { display: grid; place-items: center; min-height: 160px; border: 1px dashed #dfe4dd; border-radius: 12px; color: #8a9194; background: #fafbf8; font-size: 10px; font-weight: 800; text-align: center; }
.return-label-empty.error { color: var(--red); background: var(--red-soft); border-color: #f0c7c3; }
.return-label-candidate { display: grid; gap: 5px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.return-label-candidate:hover, .return-label-candidate.selected { border-color: #c9bdff; box-shadow: 0 12px 30px rgba(100,82,240,.12); transform: translateY(-1px); }
.return-label-candidate strong { color: var(--ink); font-size: 13px; }
.return-label-candidate span { color: #6f767a; font-size: 9px; font-weight: 850; }
.return-label-candidate b { color: #252a2d; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.return-label-candidate small { color: #8b9295; font-size: 8px; line-height: 1.45; }
.return-label-config { display: grid; align-content: start; gap: 12px; padding: 18px; border: 1px solid #e2dfd4; border-radius: 14px; background: #fffdf7; }
.return-label-config h3 { margin: -4px 0 0; color: var(--ink); font-size: 17px; }
.return-label-config p { margin: 0; color: #7b8386; font-size: 10px; line-height: 1.5; }
.return-label-create { width: 100%; justify-content: center; margin-top: 4px; }
.return-label-result { display: grid; gap: 7px; min-height: 82px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #737b7f; font-size: 9px; font-weight: 800; }
.return-label-result strong { color: var(--ink); font-size: 12px; }
.return-label-result span { line-height: 1.45; }
.return-label-result .ghost-button { display: inline-flex; justify-content: center; width: fit-content; margin-top: 2px; text-decoration: none; }
.mapping-panel, .bounty-panel, .bounty-import-panel, .asset-panel, .shipments-panel { margin-top: 12px; padding: 18px; }
.listing-mapping-list, .bounty-list, .bounty-import-list, .shipment-list { display: grid; gap: 9px; }
.mapping-summary { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.mapping-summary span { padding: 7px 10px; border-radius: 999px; background: #f2f3ef; color: #7f8588; font-size: 8px; font-weight: 850; }
.mapping-summary b { color: var(--ink); }
.mapping-subhead { margin: 8px 0 1px; color: #858c8f; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.listing-offer-card { border: 1px solid #e1e6df; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 12px 32px rgba(18,24,20,.045); }
.listing-offer-card.needs-attention { border-color: #e6e9e4; background: #fff; }
.listing-offer-summary { display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 16px; cursor: pointer; list-style: none; }
.listing-offer-summary::-webkit-details-marker { display: none; }
.listing-offer-title span { display: block; color: #858c8f; font-size: 7px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.listing-offer-title b { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; line-height: 1.25; }
.listing-offer-title small { display: block; margin-top: 5px; color: #7e8689; font-size: 9px; font-weight: 750; }
.listing-offer-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.listing-offer-badges em { padding: 7px 9px; border-radius: 999px; color: var(--purple); background: #f0edff; font-size: 7px; font-style: normal; font-weight: 950; white-space: nowrap; }
.listing-offer-badges em.warning { color: #9a6a19; background: #fff3df; }
.listing-offer-badges em.ready { color: var(--green); background: var(--green-soft); }
.listing-offer-toggle { min-width: 74px; padding: 8px 10px; border: 1px solid #e5e9e4; border-radius: 999px; color: #858c8f; background: #fbfcfa; font-size: 8px; font-weight: 900; text-align: center; white-space: nowrap; }
.listing-offer-card[open] .listing-offer-toggle { color: var(--purple); }
.listing-offer-card[open] .listing-variant-list { border-top: 1px solid #edf0eb; }
.offer-base-setup { display: grid; gap: 10px; padding: 14px; border: 1px solid #e6e9e4; border-radius: 18px; background: linear-gradient(180deg,#fff,#fbfcfa); }
.offer-base-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offer-base-head span { display: block; margin-bottom: 4px; color: #858c8f; font-size: 7px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.offer-base-head b { display: block; color: var(--ink); font-size: 11px; line-height: 1.25; }
.offer-base-head small { display: block; max-width: 820px; margin-top: 4px; color: #858c8f; font-size: 8px; font-weight: 800; line-height: 1.45; }
.offer-base-current { display: grid; gap: 6px; padding: 10px; border: 1px solid #edf0eb; border-radius: 14px; background: #fff; }
.offer-base-current > div { display: flex; flex-wrap: wrap; gap: 7px; }
.offer-base-label { color: #858c8f; font-size: 7px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.offer-base-empty { color: #8d9497; font-size: 8px; font-weight: 850; }
.offer-base-form { display: grid; grid-template-columns: minmax(280px,1fr) 76px auto; gap: 8px; align-items: end; }
.offer-base-form input[type="number"] { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 9px; font-weight: 850; }
.listing-variant-group { display: grid; gap: 10px; padding: 12px; border: 1px solid #e6e9e4; border-radius: 18px; background: #fbfcfa; }
.listing-variant-group-head { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 2px 2px 10px; border-bottom: 1px solid var(--line); }
.listing-variant-group-head span { display: block; color: #858c8f; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.listing-variant-group-head b { display: block; margin-top: 3px; color: var(--ink); font-size: 10px; line-height: 1.25; }
.listing-variant-group-head small { display: block; margin-top: 3px; color: #8d9497; font-size: 8px; }
.listing-variant-group-head em { padding: 6px 8px; border-radius: 999px; color: var(--purple); background: #f0edff; font-size: 7px; font-style: normal; font-weight: 900; white-space: nowrap; }
.listing-variant-list { display: grid; gap: 10px; }
.listing-offer-card .listing-variant-list { padding: 14px; background: #fafbf8; }
.listing-variant-list .listing-map-card { box-shadow: none; }
.listing-variant-row { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 14px; border: 1px solid #e4e9e1; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(18,24,20,.028); }
.listing-variant-row + .listing-variant-row { margin-top: 8px; }
.listing-variant-row.needs-work { border-color: #eee8ff; background: #fff; }
.listing-variant-main { min-width: 0; }
.listing-variant-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.listing-variant-title b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; line-height: 1.25; }
.listing-variant-main small { display: block; margin-top: 5px; color: #7f878a; font-size: 8px; font-weight: 800; }
.listing-status { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; font-size: 7px; font-weight: 950; white-space: nowrap; }
.listing-status.warning { color: #9a6a19; background: #fff3df; }
.listing-status.ready { color: var(--green); background: var(--green-soft); }
.listing-status.muted { color: #7c8285; background: #f0f2ef; }
.listing-variant-row.is-offline { opacity: .64; }
.listing-link-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px,.78fr) minmax(0,1.22fr); gap: 10px; align-items: stretch; }
.listing-current-product { padding: 12px; border: 1px solid #edf0eb; border-radius: 12px; background: #fbfcfa; }
.listing-current-product.is-empty { background: #fffaf2; border-color: #f4e8d2; }
.listing-current-product span { display: block; color: #858c8f; font-size: 7px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.listing-current-product b { display: block; margin-top: 4px; color: var(--ink); font-size: 9px; }
.listing-current-product small { display: block; margin-top: 3px; color: #858c8f; font-size: 7px; font-weight: 800; }
.listing-link-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.listing-link-controls select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 800; }
.listing-map-card { display: grid; grid-template-columns: 38px minmax(0,1fr) 280px auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.listing-map-card.connected { grid-template-columns: 38px minmax(0,1fr) minmax(220px,.75fr) 250px auto; background: #fbfcfa; }
.listing-map-card.has-recipe,
.listing-map-card.connected.has-recipe { grid-template-columns: 38px minmax(0,1fr) minmax(220px,.75fr) 230px auto; }
.listing-map-card b, .listing-map-card small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-map-card b { font-size: 9px; }
.listing-map-card small { margin-top: 4px; color: #8d9497; font-size: 7px; }
.listing-map-card select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8px; }
.listing-map-card .readonly-hint.inline { grid-column: auto; justify-self: stretch; color: #858c8f; font-size: 8px; }
.sku-recipe { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px; border: 1px solid #e9ece7; border-radius: 14px; background: #fbfcfa; }
.sku-recipe.is-compact { grid-column: 1 / -1; gap: 10px; padding: 12px; border-radius: 14px; }
.sku-recipe.is-muted { background: #f7f7f4; border-color: var(--line); color: #7f8588; }
.sku-recipe.is-auto { border-color: #dcefe5; background: #fbfffd; }
.listing-map-card .sku-recipe b,
.listing-map-card .sku-recipe small { display: block; white-space: normal; overflow: visible; text-overflow: clip; }
.sku-recipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sku-recipe-head span { display: block; margin-bottom: 4px; color: #858c8f; font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sku-recipe-head b { color: var(--ink); font-size: 10px; line-height: 1.25; }
.sku-recipe-head em { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; color: #9a6a19; background: #fff3df; font-size: 7px; font-style: normal; font-weight: 900; white-space: nowrap; }
.sku-recipe-head em.is-ready { color: var(--green); background: var(--green-soft); }
.sku-recipe-compact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sku-recipe-compact-head span { display: block; margin-bottom: 3px; color: #858c8f; font-size: 7px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.sku-recipe-compact-head b { color: var(--ink); font-size: 11px; line-height: 1.25; }
.sku-recipe-compact-head small { display: block; margin-top: 4px; color: #7f878a; font-size: 8px; font-weight: 800; }
.sku-recipe-compact-head em { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; color: #9a6a19; background: #fff3df; font-size: 7px; font-style: normal; font-weight: 950; white-space: nowrap; }
.sku-recipe-compact-head em.is-ready { color: var(--green); background: var(--green-soft); }
.sku-recipe-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sku-recipe-flow.compact { gap: 7px; }
.sku-recipe-flow > div { padding: 10px; border: 1px solid #edf0eb; border-radius: 12px; background: #fff; }
.sku-recipe-flow.compact > div { padding: 9px; }
.sku-recipe-flow span { display: block; margin-bottom: 4px; color: #8d9497; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sku-recipe-flow b { color: var(--ink); font-size: 10px; }
.sku-recipe-flow small { display: block; margin-top: 4px; color: #7f878a; font-size: 8px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.sku-recipe-tip { padding: 10px 12px; border: 1px dashed #dfe4dc; border-radius: 12px; background: #fff; color: #687174; font-size: 9px; font-weight: 800; }
.sku-component-list { display: flex; flex-wrap: wrap; gap: 7px; }
.sku-recipe-empty { padding: 10px; border: 1px dashed #dfe4dc; border-radius: 12px; color: #858c8f; background: #fff; font-size: 8px; font-weight: 800; }
.sku-component-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #dfe4dc; border-radius: 999px; background: #fff; color: var(--ink); font-size: 8px; font-weight: 900; }
.sku-component-pill strong { padding: 3px 6px; border-radius: 999px; color: #161b1d; background: var(--lime); font-size: 7px; }
.sku-component-pill span { display: grid; gap: 1px; color: var(--ink); line-height: 1.2; }
.sku-component-pill small { color: #8d9497; font-size: 7px; font-weight: 800; }
.sku-component-pill button { border: 0; background: transparent; color: #b54040; font-size: 13px; font-weight: 900; cursor: pointer; }
.sku-component-form { display: grid; grid-template-columns: minmax(0,1fr) 80px auto; gap: 8px; align-items: end; }
.sku-component-form.compact { grid-template-columns: minmax(260px,1fr) 70px auto; }
.sku-component-form input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8px; }
.sku-product-picker { position: relative; display: grid; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #e2e6df; border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.sku-picker-field { display: grid; gap: 5px; }
.sku-picker-field span { color: #858c8f; font-size: 7px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.sku-picker-field input { height: 34px; padding: 0 10px; border-radius: 10px; font-size: 9px; font-weight: 800; }
.sku-picker-field input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,82,232,.1); outline: 0; }
.sku-picker-selected { min-height: 28px; display: flex; align-items: center; padding: 7px 9px; border: 1px dashed #dfe4dc; border-radius: 10px; color: #8d9497; background: #fbfcfa; font-size: 8px; font-weight: 850; }
.sku-picker-selected.is-filled { border-style: solid; color: var(--ink); background: #f5f7f3; }
.sku-picker-results { display: none; gap: 6px; max-height: 218px; overflow: auto; padding-right: 2px; }
.sku-product-picker.is-open .sku-picker-results { display: grid; }
.sku-picker-option { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 8px; width: 100%; padding: 7px; border: 1px solid #eef0ec; border-radius: 12px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.sku-picker-option:hover { border-color: #ded8ff; background: #fbfaff; transform: translateY(-1px); }
.sku-picker-option.is-selected { border-color: var(--purple); background: #f3f0ff; box-shadow: 0 0 0 3px rgba(99,82,232,.08); }
.sku-picker-option.is-hidden { display: none; }
.sku-picker-option b { display: block; min-width: 0; overflow: hidden; color: var(--ink); font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.sku-picker-option small { display: block; min-width: 0; margin-top: 2px; overflow: hidden; color: #8d9497; font-size: 7px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sku-picker-empty { padding: 9px; border: 1px dashed #ded8ff; border-radius: 10px; color: #8d9497; background: #fff; font-size: 8px; font-weight: 850; }
.bounty-card { display: grid; grid-template-columns: 38px minmax(0,1fr) 70px 90px 120px auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.bounty-card b, .bounty-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bounty-card b { font-size: 9px; }
.bounty-card small { margin-top: 4px; color: #8d9497; font-size: 7px; }
.bounty-card strong { color: var(--green); font-size: 9px; }
.bounty-card select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8px; font-weight: 800; }
.bounty-card .ghost-button { height: 34px; font-size: 8px; }
.bounty-flow-hint { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 0 0 12px; }
.bounty-flow-hint span { min-width: 0; padding: 10px 11px; border: 1px solid #e6e9e4; border-radius: 12px; color: #687174; background: #fbfcfa; font-size: 8px; font-weight: 800; line-height: 1.35; }
.bounty-flow-hint b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 9px; }
.bounty-import-card { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #ded8ff; border-radius: 12px; background: #fbfaff; }
.bounty-import-card span { display: inline-block; margin-bottom: 5px; color: var(--violet); font-size: 7px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.bounty-import-card b, .bounty-import-card small, .bounty-import-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bounty-import-card b { font-size: 10px; }
.bounty-import-card small { color: #7f8588; font-size: 8px; }
.bounty-import-card em { margin-top: 5px; color: #4c565b; font-size: 8px; font-style: normal; font-weight: 850; }
.bounty-import-card .ghost-button { height: 34px; font-size: 8px; }
.shipment-card { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(170px,.75fr) minmax(135px,.55fr) minmax(190px,.8fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.shipment-card b, .shipment-card strong, .shipment-card small, .shipment-card span { display: block; }
.shipment-card b, .shipment-card strong { margin-top: 5px; font-size: 9px; }
.shipment-card small { margin-top: 4px; overflow: hidden; color: #8d9497; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.shipment-card > div > span:not(.shipment-status) { color: #8a9093; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.shipment-status { width: max-content; padding: 4px 7px; border-radius: 7px; font-size: 7px; font-weight: 900; }
.shipment-status.ready { color: var(--green); background: var(--green-soft); }
.shipment-status.waiting { color: #98742a; background: #fff2c9; }
.shipment-status.warning { color: var(--orange); background: var(--orange-soft); }
.shipment-actions { display: flex; gap: 7px; justify-content: flex-end; }
.shipment-actions .ghost-button { height: 34px; font-size: 8px; text-decoration: none; }
.shipment-actions .disabled { opacity: .4; pointer-events: none; }
.shipment-cost-editor { display: grid; grid-template-columns: auto 58px auto; align-items: center; gap: 5px; width: max-content; margin-top: 7px; }
.shipment-cost-editor > span { color: #8a9093 !important; font-size: 6.5px !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.shipment-cost-editor input { width: 58px; min-width: 0; height: 25px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 7.5px; font-weight: 800; }
.shipment-cost-editor button { height: 25px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; color: #555d60; background: #fff; font: inherit; font-size: 6.5px; font-weight: 850; cursor: pointer; }
.shipment-cost-editor button:disabled { opacity: .5; cursor: wait; }
.danger-button, .danger-action { color: #b54040 !important; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.asset-entry-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1fr auto; gap: 10px; align-items: end; }
.asset-entry-grid label { display: grid; gap: 6px; color: #858c8f; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.asset-entry-grid input, .asset-entry-grid select { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 9px; font-weight: 750; outline: 0; }
.asset-entry-grid input:focus, .asset-entry-grid select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,82,232,.1); }
.asset-entry-grid .primary-button { height: 42px; white-space: nowrap; }
.analytics-placeholder { display: grid; place-items: center; min-height: 520px; text-align: center; }
.analytics-placeholder > svg { width: 48px; height: 48px; padding: 11px; border-radius: 13px; color: var(--violet); background: var(--violet-soft); }
.analytics-placeholder h3 { margin: -120px 0 0; font-size: 17px; }
.analytics-placeholder p { max-width: 480px; margin: -175px 0 0; color: var(--muted); font-size: 10px; }
.analytics-placeholder button { margin-top: -215px; }

.receiving-layout { display: grid; grid-template-columns: minmax(330px,.8fr) minmax(520px,1.45fr); gap: 12px; }
.expected-deliveries-panel { padding: 19px; margin-bottom: 12px; }
.expected-delivery-head-actions { display: flex; align-items: center; gap: 9px; }
.expected-deliveries-list { display: grid; gap: 10px; margin-top: 15px; }
.expected-delivery { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.expected-delivery.pending { border-color: #ddd7ff; }
.expected-delivery.ignored { opacity: .62; }
.expected-delivery-compact { display: grid; grid-template-columns: minmax(190px,.8fr) minmax(460px,3fr) auto; align-items: center; gap: 24px; min-height: 150px; padding: 20px 24px; list-style: none; }
.expected-delivery-compact::-webkit-details-marker { display: none; }
.expected-delivery-compact-meta { min-width: 0; }
.expected-delivery-compact-meta h3 { overflow: hidden; margin: 6px 0 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.expected-delivery-compact-meta p { overflow: hidden; margin: 6px 0 0; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.expected-delivery-compact-meta .shipment-status { margin-top: 9px; }
.expected-flow-track { --purchase-progress: 0%; }
.expected-delivery-compact-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.expected-decision { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.expected-decision svg { width: 17px; height: 17px; stroke-width: 2.5; }
.expected-decision.reject { color: #b54040; }
.expected-decision.accept { color: #fff; border-color: var(--violet); background: var(--violet); }
.expected-decision:disabled { opacity: .28; cursor: not-allowed; }
.expected-delivery-details { min-width: 92px; justify-content: center; }
.expected-delivery-details svg { width: 13px; height: 13px; transition: transform .18s ease; }
.expected-delivery.expanded .expected-delivery-details svg { transform: rotate(90deg); }
.expected-delivery-body { display: none; border-top: 1px solid var(--line); background: #fff; }
.expected-delivery.expanded .expected-delivery-body { display: block; }
.expected-delivery-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px; }
.expected-delivery-summary h3 { margin: 5px 0 0; font-size: 13px; letter-spacing: 0; }
.expected-delivery-summary p { max-width: 760px; margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expected-delivery-supplier { color: var(--violet); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.expected-delivery-meta { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.expected-delivery-meta small { color: var(--muted); font-size: 8px; }
.expected-delivery-items { border-top: 1px solid var(--line); }
.expected-delivery-item { display: grid; grid-template-columns: minmax(190px,1fr) minmax(210px,.8fr) 74px 92px 72px; align-items: center; gap: 10px; min-height: 62px; padding: 10px 16px; border-bottom: 1px solid #edf0eb; }
.expected-delivery-item:last-child { border-bottom: 0; }
.expected-item-copy { min-width: 0; }
.expected-item-copy b, .expected-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expected-item-copy b { font-size: 10px; }
.expected-item-copy small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.expected-delivery-item select, .expected-delivery-item input, .expected-delivery-add select, .expected-delivery-add input { width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; font: inherit; font-size: 9px; font-weight: 700; }
.expected-quantity, .expected-cost, .expected-tax { display: grid; gap: 3px; color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.expected-item-quantity { justify-self: end; font-size: 10px; font-weight: 800; }
.expected-delivery-empty { padding: 15px 16px; color: var(--muted); font-size: 9px; }
.expected-delivery-add { display: grid; grid-template-columns: minmax(220px,1fr) 74px 100px 100px auto; gap: 8px; padding: 12px 16px; border-top: 1px dashed var(--line); background: #fafbf9; }
.expected-delivery-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbf9; }
.expected-delivery-actions button { min-width: 142px; }
.inbox-settings textarea { min-height: 62px; resize: vertical; }
.inbox-settings .smtp-test-row > span { flex: 1; color: var(--muted); font-size: 8px; line-height: 1.4; }
.scan-station, .receipt-panel, .movement-panel { padding: 19px; }
.scan-hero { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.scan-hero > span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; color: #171b1d; background: var(--lime); }
.scan-hero > span svg { width: 20px; }
.scan-hero > div { flex: 1; }
.scan-hero h3 { margin: 0; font-size: 12px; }
.scan-hero p { margin: 4px 0 0; color: #8b9194; font-size: 8px; }
.scan-hero > i { font-style: normal; }
.scan-input { display: block; margin-top: 18px; }
.scan-input > span { display: block; margin-bottom: 7px; color: #737a7e; font-size: 8px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.scan-input > div { height: 54px; display: flex; align-items: center; gap: 9px; padding: 0 7px 0 14px; border: 2px solid #cfc9ff; border-radius: 12px; background: #fbfaff; box-shadow: 0 0 0 4px rgba(101,88,232,.05); }
.scan-input svg { width: 21px; color: var(--violet); }
.scan-input input { flex: 1; min-width: 0; outline: 0; border: 0; background: transparent; font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.scan-input button { height: 38px; padding: 0 12px; border: 0; border-radius: 8px; color: #fff; background: var(--violet); font-size: 9px; font-weight: 700; cursor: pointer; }
.scan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.scan-options label { color: #777e82; font-size: 8px; font-weight: 700; }
.scan-options input { width: 100%; height: 37px; margin-top: 6px; padding: 0 10px; outline: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 9px; }
.last-scan { display: flex; align-items: center; gap: 10px; min-height: 59px; padding: 11px; margin-top: 14px; border: 1px solid #e3e8e1; border-radius: 10px; background: #fafbf9; transition: .25s; }
.last-scan.flash { border-color: #8dd0ae; background: #effaf4; transform: scale(1.01); }
.last-scan b, .last-scan small { display: block; }
.last-scan b { font-size: 9px; }
.last-scan small { margin-top: 4px; color: #8c9295; font-size: 8px; }
.scanner-tip { padding: 11px; margin-top: 13px; border-radius: 9px; color: #5c6071; background: #f3f4f8; }
.scanner-tip b { font-size: 8px; }
.scanner-tip p { margin: 4px 0 0; font-size: 7px; line-height: 1.5; }
.receipt-total { color: #858b8e; font-size: 8px; }
.receipt-total strong { color: var(--ink); font-size: 18px; }
.receipt-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.receipt-row { display: grid; grid-template-columns: minmax(200px,1.7fr) 1fr .55fr .8fr; align-items: center; gap: 10px; min-height: 57px; padding: 8px 12px; border-bottom: 1px solid #edf0eb; font-size: 8px; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row > span:first-child b, .receipt-row > span:first-child small { display: block; }
.receipt-row > span:first-child b { font-size: 9px; }
.receipt-row > span:first-child small { margin-top: 4px; color: #92979a; font-size: 7px; }
.receipt-row code { font-size: 8px; }
.receipt-row .status { font-style: normal; }
.receipt-match { color: #23845f; }
.receipt-mismatch { color: #c04b43; }

.purchase-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin-bottom: 12px; }
.purchase-workspace { display: block; }
.purchase-list-panel { padding: 20px; }
.purchase-list { display: grid; gap: 12px; margin-top: 16px; }
.purchase-flow-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(460px, 3fr) auto; align-items: center; gap: 24px; min-height: 164px; padding: 22px 24px; border: 1px solid #e7e9e5; border-radius: 22px; background: #fff; box-shadow: 0 7px 22px rgba(25,31,33,.035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.purchase-flow-card:hover { transform: translateY(-1px); border-color: #cfc9ff; box-shadow: 0 13px 32px rgba(74,63,180,.09); }
.purchase-flow-card.cancelled { opacity: .72; }
.purchase-flow-meta { min-width: 0; }
.purchase-flow-source { display: inline-block; margin-bottom: 7px; color: var(--violet); font-size: 7px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.purchase-flow-meta h3 { overflow: hidden; margin: 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-flow-meta p { margin: 7px 0 0; color: #52595d; font-size: 9px; }
.purchase-flow-meta p b { color: var(--ink); }
.purchase-flow-meta small { display: block; margin-top: 7px; color: var(--muted); font-size: 7px; }
.purchase-status { display: inline-block; margin-top: 10px; padding: 5px 7px; border-radius: 6px; color: #565f5b; background: #edf1ee; font-size: 7px; font-style: normal; font-weight: 850; }
.purchase-status.shipped, .purchase-status.receiving { color: #755a18; background: #fff5d9; }
.purchase-status.received, .purchase-status.refunded { color: #18744f; background: #e8f8ef; }
.purchase-status.cancelled { color: #a33e37; background: #fff0ee; }
.purchase-flow-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(86px, 1fr)); align-items: center; min-width: 0; }
.purchase-flow-line { position: absolute; top: 52px; right: 10%; left: 10%; height: 6px; overflow: hidden; background: radial-gradient(circle, #d8dcda 2px, transparent 2.5px) 0 50% / 12px 6px repeat-x; }
.purchase-flow-line i { display: block; width: var(--purchase-progress); height: 100%; background: radial-gradient(circle, var(--violet) 2px, transparent 2.5px) 0 50% / 12px 6px repeat-x; transition: width .35s ease; }
.purchase-flow-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; min-width: 0; color: #b5bab7; text-align: center; }
.purchase-flow-step > b { overflow: hidden; max-width: 100%; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-flow-step > span { position: relative; display: grid; width: 58px; height: 58px; place-items: center; border: 2px solid #e3e6e2; border-radius: 18px; background: #fff; box-shadow: 0 4px 12px rgba(25,31,33,.05); }
.purchase-flow-step > span > svg { width: 29px; height: 29px; stroke-width: 1.55; }
.purchase-flow-step.complete, .purchase-flow-step.current { color: #292f32; }
.purchase-flow-step.complete > span { color: var(--violet); border-color: #dcd7ff; background: #f6f4ff; }
.purchase-flow-step.current > b { color: var(--violet); }
.purchase-flow-step.current > span { color: #fff; border-color: var(--violet); background: var(--violet); box-shadow: 0 9px 22px rgba(101,85,228,.25); }
.purchase-flow-step em { position: absolute; right: -5px; bottom: -5px; display: grid; width: 20px; height: 20px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--violet); }
.purchase-flow-step em svg { width: 11px; height: 11px; stroke-width: 3; }
.purchase-details-button { min-width: 112px; justify-content: center; }
.purchase-details-button svg { width: 13px; height: 13px; }
.modal.purchase-detail-modal { width: min(900px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border-radius: 22px; }
.purchase-detail-modal .modal-head { padding-bottom: 17px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.purchase-detail-panel { min-height: 430px; padding: 20px 0 0; }
.purchase-detail-empty { display: grid; place-items: center; align-content: center; min-height: 450px; color: var(--muted); text-align: center; }
.purchase-detail-empty svg { width: 42px; height: 42px; padding: 10px; border-radius: 10px; color: var(--violet); background: var(--violet-soft); }
.purchase-detail-empty b { margin-top: 12px; color: var(--ink); font-size: 11px; }
.purchase-detail-empty p { margin: 5px 0 0; font-size: 8px; }
.purchase-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.purchase-detail-head h2 { margin: 4px 0; font-size: 20px; }
.purchase-detail-head p { margin: 0; color: var(--muted); font-size: 8px; }
.purchase-detail-head > strong { font-size: 19px; white-space: nowrap; }
.purchase-detail-journey { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; padding: 18px 0 6px; }
.purchase-detail-step { position: relative; min-width: 0; min-height: 132px; padding: 13px 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; text-align: center; }
.purchase-detail-step::after { position: absolute; top: 33px; left: calc(100% + 1px); width: 8px; border-top: 2px dotted #d4d8d5; content: ""; }
.purchase-detail-step:last-child::after { display: none; }
.purchase-detail-step > span { display: grid; width: 38px; height: 38px; margin: 0 auto 8px; place-items: center; border-radius: 11px; color: #a9afac; background: #eef0ed; }
.purchase-detail-step > span svg { width: 21px; height: 21px; }
.purchase-detail-step b, .purchase-detail-step time, .purchase-detail-step small { display: block; }
.purchase-detail-step b { font-size: 8px; }
.purchase-detail-step time { margin-top: 5px; color: #646c70; font-size: 7px; font-weight: 800; }
.purchase-detail-step small { overflow: hidden; margin-top: 5px; color: #949a9c; font-size: 6.5px; line-height: 1.35; text-overflow: ellipsis; }
.purchase-detail-step.reached { border-color: #dcd7ff; background: #f8f7ff; }
.purchase-detail-step.reached > span { color: #fff; background: var(--violet); box-shadow: 0 6px 14px rgba(101,85,228,.2); }
.purchase-detail-step.reached b { color: #4f43c8; }
.purchase-detail-step.reached::after { border-color: #9e92f5; }
.purchase-detail-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 13px 0; }
.purchase-detail-meta div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.purchase-detail-meta span, .purchase-detail-meta b { display: block; }
.purchase-detail-meta span { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.purchase-detail-meta b { margin-top: 5px; font-size: 9px; }
.purchase-delivery-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.purchase-delivery-details section { min-height: 118px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; }
.purchase-delivery-details section > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.purchase-delivery-details section > b, .purchase-delivery-details section > strong { display: block; }
.purchase-delivery-details section > b { font-size: 10px; }
.purchase-delivery-details section > strong { margin-top: 5px; color: #666d70; font-size: 9px; }
.purchase-delivery-details .ghost-button { width: fit-content; height: 34px; margin-top: 12px; padding: 0 12px; font-size: 8px; }
.purchase-delivery-details .ghost-button svg { width: 11px; height: 11px; }
.purchase-delivery-details address { color: #343a3d; font-size: 9px; font-style: normal; font-weight: 700; line-height: 1.55; }
.purchase-detail-unavailable { max-width: 250px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.purchase-status-control { display: flex; align-items: end; gap: 9px; padding: 12px; border-radius: 8px; background: #f5f7f4; }
.purchase-status-control label { flex: 1; color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.purchase-status-control select { width: 100%; height: 40px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 9px; font-weight: 750; }
.purchase-status-control button { height: 40px; white-space: nowrap; }
.purchase-detail-items { margin-top: 13px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.purchase-detail-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.purchase-detail-item:last-child { border-bottom: 0; }
.purchase-detail-item span b, .purchase-detail-item span small { display: block; }
.purchase-detail-item span b { font-size: 9px; }
.purchase-detail-item span small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.purchase-detail-item > strong { font-size: 10px; }
.purchase-timeline { margin-top: 16px; }
.purchase-timeline h3 { margin: 0 0 9px; font-size: 11px; }
.purchase-timeline > div { display: flex; gap: 10px; padding: 7px 2px; }
.purchase-timeline i { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--violet); }
.purchase-timeline b, .purchase-timeline small { display: block; }
.purchase-timeline b { font-size: 8px; }
.purchase-timeline small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.purchase-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
.purchase-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.purchase-address-field { grid-column: 1 / -1; }
.purchase-address-field textarea { min-height: 76px; }
.purchase-form-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 10px; }
.purchase-form-head h3 { margin: 0; font-size: 12px; }
.purchase-form-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.purchase-item-rows { display: grid; gap: 8px; margin-bottom: 14px; }
.purchase-item-row { display: grid; grid-template-columns: minmax(220px,1fr) 76px 110px 82px 38px; align-items: end; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; }
.purchase-item-row label { min-width: 0; }
.purchase-item-row select, .purchase-item-row input { width: 100%; min-width: 0; }
.receipt-product { display: flex !important; align-items: center; gap: 9px; min-width: 0; }
.receipt-product > span { min-width: 0; }
.receipt-head { min-height: 36px; color: #8d9396; background: #fafbf9; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: #888e91; text-align: center; }
.empty-state svg { width: 34px; height: 34px; padding: 8px; margin-bottom: 10px; border-radius: 10px; color: var(--violet); background: var(--violet-soft); }
.empty-state b { color: #454a4e; font-size: 10px; }
.empty-state p { max-width: 330px; margin: 6px 0 0; font-size: 8px; line-height: 1.5; }
.movement-panel { margin-top: 12px; }
.movement-list { margin-top: 12px; }
.movement-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0eb; }
.movement-row:last-child { border-bottom: 0; }
.movement-sign { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 9px; font-weight: 800; }
.movement-sign.plus { color: var(--green); background: var(--green-soft); }
.movement-sign.minus { color: var(--red); background: var(--red-soft); }
.movement-row b, .movement-row small { display: block; }
.movement-row b { font-size: 9px; }
.movement-row small { margin-top: 4px; color: #92979a; font-size: 7px; }
.movement-row > span:last-child { text-align: right; }
.table-empty { padding: 28px; color: #92979a; text-align: center; font-size: 9px; }

.integration-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.integration-card { padding: 20px; }
.integration-brand { width: 52px; height: 34px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 9px; font-size: 15px; font-weight: 900; letter-spacing: -1px; }
.ebay-brand { color: #2866d8; background: #eef4ff; }
.dpd-brand { color: #d42f39; background: #fff0f1; }
.lex-brand { color: #16875d; background: #e9f7f0; }
.integration-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.integration-title h3 { margin: 0; font-size: 13px; }
.integration-title p { margin: 5px 0 0; color: #898f92; font-size: 8px; line-height: 1.45; }
.integration-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 8px; font-size: 7px; font-weight: 800; }
.integration-status.connected { color: var(--green); background: var(--green-soft); }
.integration-status.waiting { color: var(--orange); background: var(--orange-soft); }
.integration-status.later { color: #7e8588; background: #eff1ee; }
.checklist { margin-top: 18px; border-top: 1px solid var(--line); }
.checklist > div { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0eb; }
.checklist > div > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #a9adaf; background: #f0f2ef; }
.checklist > div > span.complete { color: var(--green); background: var(--green-soft); }
.checklist svg { width: 13px; }
.checklist p { margin: 0; }
.checklist b, .checklist small { display: block; }
.checklist b { font-size: 8px; }
.checklist small { margin-top: 3px; color: #93989b; font-size: 7px; }
.integration-details { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px 10px; padding: 12px; margin-top: 14px; border-radius: 9px; background: #f7f8f6; font-size: 7px; }
.integration-details span { color: #888e91; }
.integration-details code { overflow: hidden; color: #4b5054; text-overflow: ellipsis; white-space: nowrap; }
.integration-actions { display: flex; gap: 7px; margin-top: 16px; }
.integration-actions .primary-button, .integration-actions .ghost-button { height: 36px; font-size: 8px; }
.muted-card { min-height: 260px; }
.integration-note { margin: 22px 0 0; padding: 12px; color: #858b8f; background: #f7f8f6; border-radius: 9px; font-size: 8px; line-height: 1.55; }
.unknown-ean { display: flex; align-items: center; gap: 8px; padding: 10px; color: #5c527d; background: var(--violet-soft); border-radius: 9px; font-size: 8px; }
.unknown-ean svg { width: 15px; }
.product-lookup-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 22px; }
.lookup-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #e4e6e1; border-radius: 13px; color: #62696c; background: #f7f8f6; }
.lookup-status b, .lookup-status small { display: block; }
.lookup-status b { color: #252a2c; font-size: 9px; }
.lookup-status small { margin-top: 3px; font-size: 8px; line-height: 1.45; }
.lookup-status.ready { border-color: #c8e9d6; background: #f1fbf5; }
.lookup-status.empty { border-color: #eadbbd; background: #fff9ed; }
.lookup-status.error { border-color: #efc4bc; background: #fff0ed; }
.lookup-spinner { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: #ebeef0; }
.lookup-spinner:before { content: ""; width: 13px; height: 13px; border: 2px solid #c9ceca; border-top-color: var(--violet); border-radius: 50%; animation: spin .9s linear infinite; }
.lookup-status.ready .lookup-spinner:before, .lookup-status.empty .lookup-spinner:before, .lookup-status.error .lookup-spinner:before { width: 11px; height: 11px; border: 0; border-radius: 4px; animation: none; background: currentColor; }
.lookup-candidates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.lookup-card { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid #e1e5df; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: .18s ease; }
.lookup-card:hover { border-color: #c7c1fa; background: #fbfaff; transform: translateY(-1px); }
.lookup-card.selected { border-color: var(--violet); background: #f5f3ff; box-shadow: 0 0 0 3px rgba(101,88,232,.08); }
.lookup-image { width: 74px; height: 74px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #f2f4f1; }
.lookup-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lookup-image svg { width: 24px; color: #9da4a1; }
.lookup-copy { min-width: 0; }
.lookup-copy b, .lookup-copy small, .lookup-copy em { display: block; }
.lookup-copy b { overflow: hidden; color: #252a2d; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lookup-copy small { margin-top: 5px; overflow: hidden; color: #72797c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.lookup-copy em { margin-top: 5px; overflow: hidden; color: #9aa09f; font-size: 6px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.lookup-score { min-width: 28px; padding: 5px 7px; border-radius: 999px; color: #5c55ba; background: #efedff; font-size: 7px; font-weight: 900; text-align: center; }
.toast.error { background: #8d3838; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px; background: rgba(13,17,18,.55); backdrop-filter: blur(4px); }
.modal-backdrop.open { display: grid; animation: fade .18s ease; }
.date-range-backdrop { background: rgba(20,24,25,.42); backdrop-filter: blur(10px) saturate(.8); }
.modal.date-range-modal { width: min(760px, calc(100vw - 32px)); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; box-shadow: 0 30px 90px rgba(10,14,15,.26); }
.date-range-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 19px; border-bottom: 1px solid #eceeea; }
.date-range-head h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.5px; }
.date-range-head p { margin: 6px 0 0; color: #858b8e; font-size: 9px; }
.date-range-selection { display: grid; grid-template-columns: 1fr 28px 1fr auto; align-items: center; gap: 9px; padding: 16px 26px 12px; }
.date-selection { min-width: 0; padding: 11px 13px; border: 1px solid #e1e4de; border-radius: 11px; background: #f7f8f6; text-align: left; cursor: pointer; transition: .18s ease; }
.date-selection:hover { border-color: #c9c4fa; background: #fbfaff; }
.date-selection.active { border-color: #766aeb; background: #f5f3ff; box-shadow: 0 0 0 3px rgba(101,88,232,.08); }
.date-selection small, .date-selection strong { display: block; }
.date-selection small { color: #8b9194; font-size: 7px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.date-selection strong { margin-top: 4px; color: #24282b; font-size: 12px; }
.date-range-arrow { color: #9ba09f; transform: rotate(0deg); }
.date-range-arrow svg { width: 16px; }
.date-range-duration { padding: 7px 9px; border-radius: 8px; color: #5c55ba; background: #f0eeff; font-size: 8px; font-weight: 800; white-space: nowrap; }
.date-preset-row { display: flex; gap: 6px; padding: 0 26px 15px; }
.date-preset-row button { padding: 7px 10px; border: 1px solid #e2e5df; border-radius: 8px; color: #676d70; background: #fff; font-size: 8px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.date-preset-row button:hover { color: var(--violet); border-color: #cac4fa; background: #f8f7ff; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 26px; border-top: 1px solid #eff1ed; border-bottom: 1px solid #eff1ed; background: #fafbf9; }
.calendar-toolbar > span { color: #4a4f52; font-size: 10px; font-weight: 800; }
.calendar-nav { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e1e4de; border-radius: 9px; color: #61676a; background: #fff; cursor: pointer; }
.calendar-nav:hover { color: var(--violet); border-color: #c9c3f8; }
.calendar-nav svg { width: 15px; transform: rotate(180deg); }
.calendar-nav.next svg { transform: none; }
.calendar-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 26px 22px; }
.calendar-month + .calendar-month { padding-left: 24px; border-left: 1px solid #edf0eb; }
.calendar-month h3 { margin: 0 0 13px; font-size: 11px; text-transform: capitalize; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-weekdays span { padding-bottom: 8px; color: #a0a5a7; font-size: 7px; font-weight: 800; text-align: center; }
.calendar-day { position: relative; height: 34px; padding: 0; border: 0; color: #303538; background: transparent; font-size: 9px; font-weight: 650; cursor: pointer; isolation: isolate; }
.calendar-day:before { content: ""; position: absolute; inset: 2px 0; z-index: -2; background: transparent; }
.calendar-day:after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 9px; background: transparent; transition: .15s ease; }
.calendar-day:hover:after { background: #eeecff; }
.calendar-day.outside { color: #c2c6c4; }
.calendar-day.today { color: var(--violet); font-weight: 900; }
.calendar-day.in-range:before { background: #efedff; }
.calendar-day.range-start:before { left: 50%; border-radius: 9px 0 0 9px; }
.calendar-day.range-end:before { right: 50%; border-radius: 0 9px 9px 0; }
.calendar-day.range-start.range-end:before { display: none; }
.calendar-day.range-start, .calendar-day.range-end { color: #fff; }
.calendar-day.range-start:after, .calendar-day.range-end:after { color: #fff; background: var(--violet); box-shadow: 0 5px 13px rgba(101,88,232,.24); }
.date-range-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 26px 20px; border-top: 1px solid #edf0eb; background: #fafbf9; }
.date-range-actions .primary-button, .date-range-actions .ghost-button { height: 38px; }
.modal { width: 430px; padding: 20px; border: 1px solid rgba(255,255,255,.4); border-radius: 17px; background: #fff; box-shadow: 0 30px 80px rgba(10,14,15,.25); }
.wide-modal { width: min(1060px, calc(100vw - 48px)); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-head h2 { margin: 4px 0 0; font-size: 19px; }
.modal-head .icon-button { width: 32px; height: 32px; }
.modal label { display: block; margin-top: 14px; color: #555c60; font-size: 9px; font-weight: 700; }
.modal label > span { float: right; color: var(--violet); }
.modal input[type="range"] { width: 100%; margin-top: 12px; accent-color: var(--violet); }
.modal select, .modal input[type="number"], .modal input[type="text"], .modal input[type="url"], .modal textarea { width: 100%; margin-top: 7px; padding: 9px 10px; outline: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 9px; }
.modal textarea { min-height: 65px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sync-info { display: flex; align-items: center; gap: 8px; padding: 10px; margin-top: 14px; color: #4b745e; background: var(--green-soft); border-radius: 8px; font-size: 8px; }
.sync-info svg { width: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }
.modal-actions .ghost-button, .modal-actions .primary-button { height: 38px; }
#privacy-center-modal.open { display: grid; place-items: start center; overflow-y: auto; padding: 48px 20px; }
.modal.privacy-center-modal { width: min(860px, calc(100vw - 40px)); max-height: calc(100vh - 96px); overflow-y: auto; padding: 28px; border-radius: 22px; }
.privacy-center-modal .modal-head { align-items: center; padding-bottom: 18px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.privacy-center-modal .modal-head h2 { font-size: 24px; letter-spacing: -.3px; }
.privacy-center-modal .modal-head p { max-width: 560px; margin: 8px 0 0; color: #747c80; font-size: 11px; line-height: 1.45; }
.privacy-search-row { display: grid; grid-template-columns: minmax(0,1fr) 130px; gap: 10px; margin: 18px 0 12px; }
.privacy-search-row .inner-search { height: 48px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 15px; border-radius: 12px; background: #f7f8f6; }
.privacy-search-row .inner-search svg { flex: 0 0 17px; width: 17px; height: 17px; }
.privacy-search-row .inner-search input { width: auto; height: 100%; flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 13px; font-weight: 750; line-height: 48px; }
.privacy-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #e7e9e4; border-radius: 14px; background: #fbfcfa; }
.privacy-summary b { color: #202528; font-size: 12px; }
.privacy-summary span { color: #7b8285; font-size: 10px; font-weight: 750; text-align: right; }
.privacy-case-panel { display: grid; gap: 12px; margin-top: 14px; padding: 15px; border: 1px solid #ded8ff; border-radius: 15px; background: #fbfaff; }
.privacy-case-panel[hidden] { display: none; }
.privacy-case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.privacy-case-head div { min-width: 0; }
.privacy-case-head b { display: block; color: #272b2f; font-size: 12px; }
.privacy-case-head span { display: block; margin-top: 4px; color: #7d8290; font-size: 10px; font-weight: 750; }
.privacy-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.privacy-case-panel label { margin: 0; color: #697174; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.privacy-case-panel select, .privacy-case-panel textarea { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid #e0ddf5; border-radius: 10px; background: #fff; color: #252a2d; font: inherit; font-size: 10px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.privacy-case-panel textarea { min-height: 70px; resize: vertical; line-height: 1.45; }
.privacy-case-actions { display: flex; justify-content: flex-end; gap: 8px; }
.privacy-case-actions button { height: 38px; }
.privacy-results { display: grid; gap: 14px; margin-top: 16px; }
.privacy-empty { padding: 26px; border: 1px dashed #dfe3dc; border-radius: 15px; color: #7b8285; background: #fafbf9; font-size: 12px; font-weight: 850; text-align: center; }
.privacy-result-group { display: grid; gap: 9px; }
.privacy-result-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #252a2d; font-size: 13px; }
.privacy-result-group h3 span { display: inline-grid; min-width: 24px; height: 22px; place-items: center; padding: 0 7px; border-radius: 999px; color: var(--violet); background: #efedff; font-size: 9px; }
.privacy-result-group > div { display: grid; gap: 8px; }
.privacy-card { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #e7e9e4; border-radius: 14px; background: #e7e9e4; }
.privacy-card div { min-width: 0; padding: 11px 12px; background: #fff; }
.privacy-card span { display: block; margin-bottom: 5px; color: #969da0; font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.privacy-card b { display: block; overflow-wrap: anywhere; color: #252a2d; font-size: 10px; line-height: 1.35; }
.privacy-guidance { padding: 15px; border: 1px solid #e4def9; border-radius: 15px; background: #faf8ff; }
.privacy-guidance h3 { margin: 0 0 9px; color: var(--violet); font-size: 12px; }
.privacy-guidance p { margin: 6px 0 0; color: #555b60; font-size: 10px; line-height: 1.45; }
.privacy-cleanup { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 15px; border: 1px solid #efc6bf; border-radius: 15px; background: #fff8f6; }
.privacy-cleanup[hidden] { display: none; }
.privacy-cleanup div { min-width: 0; }
.privacy-cleanup b { display: block; color: #8f312b; font-size: 12px; }
.privacy-cleanup span { display: block; margin-top: 5px; color: #7d5550; font-size: 10px; font-weight: 750; line-height: 1.45; }
.privacy-cleanup .ghost-button { flex: 0 0 auto; height: 42px; }
.set-builder-product { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f7f8f6; }
.set-builder-product b { display: block; font-size: 10px; }
.set-builder-product small { display: block; margin-top: 4px; color: #858c8f; font-size: 8px; }
.component-list { display: grid; gap: 9px; margin-top: 14px; }
.component-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.component-row b { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.component-row small { display: block; margin-top: 4px; overflow: hidden; color: #858c8f; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.component-row > strong { color: var(--purple); font-size: 10px; white-space: nowrap; }
.confirm-backdrop { background: rgba(21,24,25,.46); backdrop-filter: blur(9px) saturate(.85); }
.modal.confirm-modal { width: min(460px, calc(100vw - 32px)); padding: 24px; border-radius: 22px; display: grid; gap: 15px; }
.confirm-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #c34040; background: #ffecec; }
.confirm-icon svg { width: 21px; }
.confirm-modal h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.4px; }
.confirm-modal p { margin: 8px 0 0; color: #737b80; font-size: 10px; line-height: 1.55; }
.confirm-subject { min-width: 0; max-width: 100%; overflow: hidden; padding: 13px 14px; border: 1px solid #f0dedb; border-radius: 14px; background: #fff8f7; }
.confirm-subject strong, .confirm-subject small, .confirm-subject em { display: block; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.confirm-subject strong { display: -webkit-box; overflow: hidden; color: #24282b; font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.confirm-subject small { margin-top: 5px; color: #8d6a66; font-size: 8px; font-weight: 800; }
.confirm-subject em { margin-top: 7px; color: #9a403b; font-size: 8px; font-style: normal; font-weight: 900; }
.remove-reason-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.remove-reason-list label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 9px 10px; border: 1px solid #e5e8e2; border-radius: 10px; background: #fbfcfa; color: #3f4548; font-size: 9px; font-weight: 850; cursor: pointer; }
.remove-reason-list label:has(input:checked) { border-color: #d77a6f; color: #9e332f; background: #fff3f0; box-shadow: inset 0 0 0 1px rgba(201,77,77,.12); }
.remove-reason-list input { accent-color: var(--red); }
.shipping-remove-note { color: #697074; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.warning-info { color: #9a6a19; background: #fff3df; }
.hidden { display: none !important; }
.primary-button.danger-primary { background: #c94d4d; box-shadow: 0 12px 26px rgba(201,77,77,.22); }
.primary-button.danger-primary:hover { background: #b94040; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 9px; padding: 12px 15px; color: #fff; background: #1b2420; border-radius: 10px; box-shadow: 0 15px 35px rgba(10,14,12,.2); font-size: 9px; font-weight: 700; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 15px; color: var(--lime); }

.shipping-modal-backdrop { background: rgba(18,22,23,.48); backdrop-filter: blur(9px); }
.modal.shipping-modal { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; border-radius: 24px; }
.shipping-modal .modal-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.shipping-modal .modal-head h2 { font-size: 30px; line-height: 1.1; }
.shipping-modal .modal-head p { margin: 9px 0 0; color: #858c8f; font-size: 13px; }
.shipping-modal-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.danger-ghost { color: #a33d36; border-color: #efc6bf; background: #fff6f4; }
.danger-ghost:hover { border-color: #df9c91; }
.shipping-modal-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.pack-order-summary, .pack-control { min-width: 0; }
.pack-recipient { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f7f8f6; }
.pack-recipient span, .pack-status-card > span { display: block; margin-bottom: 7px; color: #8a9093; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pack-recipient strong, .pack-status-card strong { display: block; font-size: 20px; line-height: 1.2; }
.pack-recipient small, .pack-status-card small { display: block; margin-top: 6px; color: #71797d; font-size: 13px; line-height: 1.35; }
.pack-item-list { display: grid; gap: 12px; margin-top: 14px; }
.pack-item { display: grid; grid-template-columns: 44px 72px minmax(0,1fr) 118px; align-items: center; gap: 14px; min-height: 104px; padding: 16px; border: 2px solid #dfe3dd; border-radius: 14px; background: #fff; transition: .2s ease; }
.pack-item.complete { border-color: #b9ddcc; background: #f3fbf6; }
.pack-item.unmatched { border-color: #efc8be; background: #fff7f4; }
.pack-item.bundle-component { border-color: #ded8ff; background: #fbfaff; }
.pack-item-check { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #a1a7a4; background: #eef0ed; }
.pack-item.complete .pack-item-check { color: #fff; background: var(--green); }
.pack-item-check svg { width: 21px; height: 21px; }
.pack-thumb { width: 72px; height: 72px; border-radius: 12px; }
.pack-item div { min-width: 0; }
.pack-item strong { display: block; overflow: hidden; font-size: 16px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pack-item small { display: block; margin-top: 7px; overflow: hidden; color: #71797d; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pack-item small.pack-serials { color: #4a9970; }
.pack-item small.bundle-hint { color: var(--purple); white-space: normal; }
.bundle-chip { display: inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 999px; color: var(--purple); background: #ebe8ff; font-size: 10px; font-style: normal; font-weight: 900; vertical-align: middle; }
.pack-item > b { justify-self: end; color: #3f474b; font-size: 15px; line-height: 1.35; text-align: right; white-space: normal; }
.pack-item.has-mapping { align-items: start; }
.pack-item.has-mapping .pack-item-check, .pack-item.has-mapping .pack-thumb { margin-top: 6px; }
.pack-item.has-mapping > b { margin-top: 11px; }
.pack-item > .mapping-control { grid-column: 1 / -1; width: 100%; }
.mapping-control { margin-top: 0; padding: 14px; border: 1px solid #efd6c8; border-radius: 12px; background: #fffdf9; }
.mapping-control small { margin: 0 0 10px !important; color: #a06445 !important; font-size: 12px !important; line-height: 1.35 !important; white-space: normal !important; }
.mapping-control > div { display: grid; grid-template-columns: minmax(0,1fr) 92px; gap: 10px; }
.mapping-control select { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid #e6ded4; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 750; }
.mapping-control .ghost-button { min-height: 46px; font-size: 12px; }
.pack-status-card { padding: 20px; border: 2px solid #dfe3dd; border-radius: 15px; background: #fff; }
.pack-status-card.is-waiting { border-color: #d9c78f; background: #fffaf0; }
.pack-status-card.is-ready { border-color: #abd8bd; background: #f1fbf5; }
.pack-status-card.is-blocked { border-color: #e2b1a9; background: #fff4f1; }
.pack-label-actions { display: flex; gap: 10px; margin-top: 18px; }
.pack-label-actions .ghost-button { min-height: 48px; padding: 0 16px; font-size: 13px; text-decoration: none; }
.pack-label-actions .disabled { opacity: .4; pointer-events: none; }
.pack-scan-field { margin-top: 22px !important; }
.pack-scan-field > span { float: none !important; color: #333a3d !important; font-size: 18px !important; font-weight: 900 !important; }
.pack-scan-field > div { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 12px; margin-top: 10px; }
.pack-scan-field input { width: 100%; min-width: 0; min-height: 66px; padding: 0 20px; outline: 0; border: 3px solid #dce0da; border-radius: 14px; font: inherit; font-size: 18px; font-weight: 850; }
.pack-scan-field input:focus { border-color: var(--violet); box-shadow: 0 0 0 5px rgba(99,82,232,.12); }
.pack-scan-field .primary-button { min-height: 66px; justify-content: center; font-size: 18px; }
.pack-feedback { display: flex; align-items: flex-start; gap: 14px; min-height: 82px; margin-top: 14px; padding: 18px; border: 2px solid transparent; border-radius: 14px; color: #4f5659; background: #f0f2ef; font-size: 15px; line-height: 1.45; }
.pack-feedback svg { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 2px; color: var(--violet); }
.pack-feedback div { min-width: 0; }
.pack-feedback strong { display: block; margin-bottom: 4px; color: #252b2e; font-size: 16px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.pack-feedback span { display: block; }
.pack-feedback.success { color: #1d6b49; border-color: #addfc2; background: #eaf7ef; }
.pack-feedback.success svg, .pack-feedback.success strong { color: #15814f; }
.pack-feedback.error { color: #8d2d27; border-color: #d85a4e; background: #fff0ed; box-shadow: 0 14px 34px rgba(154, 45, 38, .16); }
.pack-feedback.error svg, .pack-feedback.error strong { color: #b92f28; }
.shipping-complete { width: 100%; justify-content: center; min-height: 68px; margin-top: 18px; font-size: 18px; }
.shipping-complete:disabled { opacity: 1; color: #f5f6f8; background: #b9b8dc; box-shadow: none; cursor: not-allowed; }
.pack-disclaimer { display: block; margin-top: 12px; color: #878e91; font-size: 12px; line-height: 1.45; text-align: center; }

.segmented-actions { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #e1e5df; border-radius: 13px; background: #f2f4f1; }
.segmented-actions button { height: 31px; padding: 0 12px; border: 0; border-radius: 10px; color: #737a7e; background: transparent; font-size: 8px; font-weight: 850; cursor: pointer; transition: .18s ease; }
.segmented-actions button:hover { color: var(--ink); }
.segmented-actions button.active { color: var(--violet); background: #fff; box-shadow: 0 8px 18px rgba(18,23,22,.08); }
.bounty-filter-row { margin-left: auto; }

.settings-panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--soft-shadow); }
.settings-panel + .settings-panel { margin-top: 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.settings-grid label { display: block; min-width: 0; color: #697074; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.settings-grid input, .settings-grid textarea, .settings-grid select { width: 100%; margin-top: 7px; padding: 12px 13px; outline: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; font-weight: 750; letter-spacing: 0; text-transform: none; transition: .18s ease; }
.settings-grid textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.settings-grid input:focus, .settings-grid textarea:focus, .settings-grid select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,82,232,.1); }
.shipping-template-settings .panel-head { align-items: flex-start; }
.smtp-settings { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.smtp-settings > summary { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 68px; padding: 12px 14px; cursor: pointer; list-style: none; background: #fff; }
.smtp-settings > summary::-webkit-details-marker { display: none; }
.smtp-settings > summary > span:first-child { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--violet); background: #f0efff; }
.smtp-settings > summary svg { width: 18px; height: 18px; }
.smtp-settings > summary b, .smtp-settings > summary small { display: block; }
.smtp-settings > summary b { color: var(--ink); font-size: 10px; }
.smtp-settings > summary small { margin-top: 3px; color: #858c8f; font-size: 8px; font-weight: 700; }
.smtp-summary-status { padding: 7px 10px; border-radius: 999px; color: #8b6729; background: #fff4d9; font-size: 8px; font-weight: 850; white-space: nowrap; }
.smtp-summary-status.connected { color: #127047; background: #e7f8ef; }
.smtp-settings-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.smtp-security-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; padding: 11px 12px; color: #5f676a; background: #f1f3f1; font-size: 8px; font-weight: 700; line-height: 1.5; }
.smtp-security-note svg { flex: 0 0 15px; width: 15px; height: 15px; color: var(--violet); }
.smtp-test-row { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.smtp-test-row label { color: #697074; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.smtp-test-row input { width: 100%; margin-top: 7px; padding: 12px 13px; outline: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.smtp-test-row input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,82,232,.1); }
.smtp-test-row .ghost-button { min-height: 40px; justify-content: center; }
.inbox-account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 12px; }
.inbox-account-toolbar b, .inbox-account-toolbar span { display: block; }
.inbox-account-toolbar b { color: var(--ink); font-size: 11px; }
.inbox-account-toolbar span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.inbox-account-toolbar .ghost-button { flex: 0 0 auto; min-height: 38px; }
.inbox-account-list { display: grid; gap: 10px; }
.inbox-account { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.inbox-account.is-connected { border-color: #b7dfca; }
.inbox-account.has-error { border-color: #efb6b1; }
.inbox-account-head { display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbf9; }
.inbox-provider-mark { display: grid; width: 46px; height: 34px; place-items: center; border: 1px solid #dedfdc; border-radius: 6px; color: #4d5456; background: #fff; font-size: 8px; font-weight: 900; }
.inbox-account-head b, .inbox-account-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-account-head b { color: var(--ink); font-size: 11px; }
.inbox-account-head small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 700; }
.inbox-account-status { padding: 6px 9px; border-radius: 999px; color: #805f24; background: #fff2d5; font-size: 8px; font-weight: 850; white-space: nowrap; }
.is-connected .inbox-account-status { color: #127047; background: #e7f8ef; }
.has-error .inbox-account-status { color: #a33b34; background: #fdebea; }
.inbox-enable { display: inline-flex; align-items: center; gap: 7px; color: #596063; font-size: 9px; font-weight: 800; white-space: nowrap; }
.inbox-enable input { width: 15px; height: 15px; accent-color: var(--violet); }
.inbox-account-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; padding: 13px 14px; }
.inbox-account-grid label { min-width: 0; color: #697074; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.inbox-account-grid input, .inbox-account-grid select, .inbox-account-grid textarea { display: block; width: 100%; min-height: 38px; margin-top: 6px; padding: 9px 10px; outline: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.inbox-account-grid textarea { min-height: 58px; resize: vertical; line-height: 1.45; }
.inbox-account-grid input:focus, .inbox-account-grid select:focus, .inbox-account-grid textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(99,82,232,.1); }
.inbox-field-wide { grid-column: span 2; }
.inbox-account-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 9px 14px; border-top: 1px solid var(--line); background: #fafbf9; }
.inbox-account-footer > span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.inbox-account-actions { display: flex; flex: 0 0 auto; gap: 7px; align-items: center; }
.inbox-account-actions .ghost-button { min-height: 34px; padding: 0 11px; }
.inbox-account-actions .icon-button { width: 34px; height: 34px; }
.inbox-delete { color: #b84942; }
.inbox-delete.confirming { color: #fff; background: #c74740; }
.shipping-template-text { min-height: 210px !important; }
.shipping-template-editor { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f7f8f7; }
.shipping-template-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.shipping-template-toolbar b, .shipping-template-toolbar span { display: block; }
.shipping-template-toolbar b { font-size: 10px; }
.shipping-template-toolbar span { margin-top: 3px; color: #858c8f; font-size: 8px; }
.shipping-template-code { display: block; width: 100%; min-height: 430px; padding: 18px; resize: vertical; outline: 0; border: 0; background: #151817; color: #f1f3f2; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; line-height: 1.65; }
.shipping-template-code:focus { box-shadow: inset 0 0 0 2px var(--violet); }
.shipping-template-preview { min-height: 520px; padding: 18px; background: #e9ecea; }
.shipping-template-preview iframe { display: block; width: 100%; min-height: 485px; border: 0; background: #fff; }
.shipping-variable-hint { margin-top: 14px; }
.shipment-notification-state small { max-width: 280px; }
.shipment-actions { display: grid; grid-template-columns: repeat(2, minmax(132px, 1fr)); gap: 8px; width: 100%; max-width: 300px; }
.shipment-actions .ghost-button { width: 100%; min-width: 0; min-height: 42px; justify-content: center; }
#shipments-view .section-heading .heading-actions .ghost-button { min-height: 44px; justify-content: center; }
.shipping-options-modal { width: min(640px, calc(100vw - 32px)); padding: 26px; }
.shipping-options-modal .modal-head { align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.shipping-options-modal .modal-head h2 { margin-top: 5px; font-size: 23px; letter-spacing: 0; }
.shipping-options-modal .modal-head p { margin: 7px 0 0; color: #858c8f; font-size: 10px; font-weight: 700; }
.manual-label-intro { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 13px; align-items: center; padding: 14px 15px; border-left: 3px solid var(--violet); background: #f6f5ff; }
.manual-label-intro > svg { width: 21px; height: 21px; color: var(--violet); justify-self: center; }
.manual-label-intro strong, .manual-label-intro span { display: block; }
.manual-label-intro strong { color: #282d30; font-size: 11px; }
.manual-label-intro span { margin-top: 4px; color: #666e72; font-size: 9px; font-weight: 650; line-height: 1.5; }
.manual-label-upload { margin-top: 16px; }
.manual-label-upload > input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.manual-label-upload > label { display: flex; align-items: center; gap: 12px; min-height: 62px; margin: 0; padding: 12px 14px; border: 1px dashed #c9cec7; border-radius: 12px; color: #313639; background: #fbfcfa; cursor: pointer; transition: .18s ease; }
.manual-label-upload > label:hover, .manual-label-upload > input:focus + label { border-color: var(--violet); background: #f8f7ff; }
.manual-label-upload > label > svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--violet); transform: rotate(90deg); }
.manual-label-upload > label span { float: none; color: inherit; }
.manual-label-upload strong, .manual-label-upload small { display: block; }
.manual-label-upload strong { font-size: 10px; }
.manual-label-upload small { max-width: 480px; margin-top: 4px; overflow: hidden; color: #858c8f; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.manual-label-status { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 56px; margin-top: 10px; padding: 10px 12px; border: 1px solid #e1e5df; border-radius: 11px; background: #fff; }
.manual-label-status-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #697174; background: #f0f2ef; }
.manual-label-status-icon svg { width: 16px; height: 16px; }
.manual-label-status strong, .manual-label-status small { display: block; }
.manual-label-status strong { color: #2d3235; font-size: 10px; }
.manual-label-status small { margin-top: 4px; color: #7e8588; font-size: 8px; font-weight: 700; line-height: 1.4; }
.manual-label-status .ghost-button { height: 34px; padding: 0 11px; font-size: 8px; }
.manual-label-status.is-success { border-color: #acdcca; background: #f3fbf7; }
.manual-label-status.is-success .manual-label-status-icon { color: #16865d; background: #ddf5ea; }
.manual-label-status.is-warning { border-color: #ead59a; background: #fffaf0; }
.manual-label-status.is-warning .manual-label-status-icon { color: #936c12; background: #fff0c6; }
.manual-label-status.is-error { border-color: #efb3ad; background: #fff6f4; }
.manual-label-status.is-error .manual-label-status-icon { color: #b64137; background: #ffe1dd; }
.manual-label-status.is-loading .manual-label-status-icon svg { animation: spin .8s linear infinite; }
.shipping-options-modal .manual-label-tracking { margin-top: 16px; color: #60676a; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.shipping-options-modal .manual-label-tracking input { height: 50px; margin-top: 7px; padding: 0 14px; border-radius: 11px; font-size: 16px; font-weight: 850; letter-spacing: 1.6px; }
.shipping-options-modal .manual-label-tracking input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,82,232,.1); }
.shipping-options-modal .manual-label-confirm { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 0; color: #4e5558; font-size: 9px; font-weight: 700; line-height: 1.45; cursor: pointer; }
.manual-label-confirm input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.shipping-options-modal .manual-label-confirm span { float: none; color: inherit; }
.manual-label-warning { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid #d44b42; color: #91352f; background: #fff3f1; font-size: 9px; font-weight: 800; line-height: 1.45; }
.manual-label-print-note { margin: 10px 0 0; color: #858c8f; font-size: 8px; font-weight: 700; }
.shipping-options-actions { margin-top: 18px; }
.shipping-options-actions .primary-button { min-width: 190px; justify-content: center; }
.shipping-options-danger { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #ead7d4; }
.shipping-options-danger strong, .shipping-options-danger span { display: block; }
.shipping-options-danger strong { color: #963b34; font-size: 10px; }
.shipping-options-danger span { margin-top: 4px; color: #8a7774; font-size: 8px; font-weight: 700; }
.shipping-options-danger .danger-ghost { flex: 0 0 auto; min-height: 38px; }
.settings-wide { grid-column: 1 / -1; }
.settings-check { display: flex !important; align-items: center; gap: 10px; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; color: var(--ink) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 10px !important; }
.settings-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet); }
.variable-hint { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.variable-hint span { padding: 7px 9px; border: 1px solid #dde5e1; border-radius: 999px; color: #52605a; background: #f6faf7; font-size: 8px; font-weight: 850; }
.settings-token-row { display: flex; gap: 10px; align-items: center; margin-top: 7px; }
.settings-token-row input { flex: 1; min-width: 0; margin-top: 0; }
.settings-token-row button { white-space: nowrap; }
.access-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 16px; }
.access-panel { padding: 20px; }
.access-list { display: grid; gap: 10px; margin-top: 14px; }
.access-row { display: grid; grid-template-columns: minmax(0,1fr) 145px auto auto auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.access-row.is-disabled { opacity: .58; }
.access-row b, .access-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-row b { color: var(--ink); font-size: 10px; }
.access-row small { margin-top: 4px; color: #858c8f; font-size: 8px; }
.access-row select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 9px; font-weight: 800; }
.access-row .ghost-button { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 8px; white-space: nowrap; }
.access-status { color: #687174; font-size: 8px; font-weight: 850; white-space: nowrap; }

@media (max-width: 1260px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  .sidebar { width: 205px; }
  .topbar, .view { padding-left: 22px; padding-right: 22px; }
  .metric-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .metric-grid .metric-card:last-child { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .real-chart { padding-left: 12px; padding-right: 12px; }
  .ticket-layout { grid-template-columns: 165px 290px minmax(410px,1fr); }
  .ticket-lexware-popover { width: min(340px, calc(100vw - 56px)); }
  .ticket-context-panel { grid-template-columns: 1fr 1fr; }
  .ticket-context-panel div:first-child { grid-column: 1 / -1; }
  .purchase-metrics { grid-template-columns: 1fr 1fr; }
  .purchase-workspace { grid-template-columns: 1fr; }
  .purchase-flow-card { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
  .purchase-flow-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 800px) {
  .sales-workspace-tabs { width: 100%; }
  .sales-workspace-tabs button { flex: 1; min-width: 0; padding: 0 10px; }
  body { min-width: 0; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: .25s ease; box-shadow: 15px 0 40px rgba(10,15,15,.2); }
  .sidebar.open { transform: none; }
  .main { width: 100%; }
  .topbar { height: 72px; padding: 0 16px; }
  .mobile-menu { width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .mobile-menu span { height: 1px; background: #303538; }
  .page-title { min-width: 0; flex: 1; }
  .page-title p, .search, .top-actions .icon-button { display: none; }
  .page-title h1 { font-size: 17px; }
  .primary-button span { display: none; }
  .view { padding: 16px; }
  .attention-bar { align-items: flex-start; }
  .attention-bar p { line-height: 1.5; }
  .attention-bar button { display: none; }
  .dashboard-toolbar { overflow: auto; gap: 10px; }
  .range-tabs { flex: 0 0 auto; }
  .dashboard-toolbar > button { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid .metric-card:last-child { display: block; }
  .metric-card { min-height: 145px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .ticket-layout { display: block; min-height: 0; }
  .ticket-sidebar { display: none; }
  .ticket-list { margin-bottom: 12px; }
  .conversation { min-height: 650px; }
  .inventory-metrics, .sales-kpis { grid-template-columns: 1fr 1fr; }
  .inventory-table-panel { overflow-x: auto; }
  .order-board { grid-template-columns: 1fr 1fr; }
  .receiving-layout, .integration-grid, .shipping-grid, .access-grid { grid-template-columns: 1fr; }
  .purchase-metrics { grid-template-columns: 1fr 1fr; }
  .purchase-workspace { grid-template-columns: 1fr; }
  .purchase-list-panel, .purchase-detail-panel { min-height: 0; padding: 15px; }
  .purchase-list-panel { padding: 14px; }
  .purchase-flow-card { display: block; min-height: 0; padding: 18px 14px; border-radius: 16px; }
  .purchase-flow-meta h3 { font-size: 14px; }
  .purchase-flow-track { grid-template-columns: repeat(5, minmax(54px, 1fr)); margin: 22px 0 20px; }
  .purchase-flow-step { gap: 9px; }
  .purchase-flow-step > b { font-size: 6px; }
  .purchase-flow-step > span { width: 44px; height: 44px; border-radius: 13px; }
  .purchase-flow-step > span > svg { width: 23px; height: 23px; }
  .purchase-flow-step em { right: -4px; bottom: -4px; width: 17px; height: 17px; }
  .purchase-flow-line { top: 40px; background-size: 9px 6px; }
  .purchase-flow-line i { background-size: 9px 6px; }
  .purchase-details-button { width: 100%; }
  .modal.purchase-detail-modal { width: 100%; max-height: calc(100vh - 24px); padding: 18px; border-radius: 17px; }
  .purchase-detail-empty { min-height: 240px; }
  .purchase-detail-meta { grid-template-columns: 1fr; }
  .purchase-delivery-details { grid-template-columns: 1fr; }
  .purchase-status-control { align-items: stretch; flex-direction: column; }
  .purchase-status-control button { width: 100%; justify-content: center; }
  .purchase-form-grid { grid-template-columns: 1fr; }
  .purchase-item-row { grid-template-columns: 1fr 1fr; }
  .purchase-item-row label:first-child { grid-column: 1 / -1; }
  .purchase-item-row .icon-button { grid-column: 1 / -1; justify-self: end; }
  .expected-delivery-head-actions, .expected-delivery-summary, .expected-delivery-meta { align-items: stretch; flex-direction: column; }
  .expected-delivery-item { grid-template-columns: 1fr; }
  .expected-delivery-add { grid-template-columns: 1fr 90px; }
  .expected-delivery-add .ghost-button { grid-column: 1 / -1; }
  .expected-delivery-actions { flex-direction: column-reverse; }
  .expected-delivery-actions button { width: 100%; }
  .returns-state-grid { grid-template-columns: 1fr 1fr; }
  .return-case { grid-template-columns: 1fr; align-items: stretch; }
  .wide-modal { width: min(760px, calc(100vw - 32px)); }
  .return-label-tool { grid-template-columns: 1fr; }
  .inline-search-row { flex-direction: column; }
  .readonly-hint { grid-column: auto; justify-self: start; }
  .bounty-flow-hint { grid-template-columns: 1fr 1fr; }
  .bounty-card { grid-template-columns: 38px 1fr; }
  .bounty-card > span, .bounty-card > strong, .bounty-card > select, .bounty-card > button { grid-column: 2; }
  .bounty-import-card { grid-template-columns: 1fr; align-items: stretch; }
  .shipment-card { grid-template-columns: 1fr; align-items: stretch; }
  .shipment-actions { justify-content: stretch; }
  .access-row { grid-template-columns: 1fr; align-items: stretch; }
  .shipment-actions .ghost-button { flex: 1; justify-content: center; }
  .asset-entry-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .smtp-settings > summary { grid-template-columns: 38px minmax(0,1fr); }
  .smtp-summary-status { grid-column: 2; justify-self: start; }
  .smtp-test-row { grid-template-columns: 1fr; }
  .smtp-test-row .ghost-button { width: 100%; }
  .inbox-account-toolbar { align-items: stretch; flex-direction: column; }
  .inbox-account-toolbar .ghost-button { justify-content: center; width: 100%; }
  .inbox-account-head { grid-template-columns: 42px minmax(0,1fr); }
  .inbox-provider-mark { width: 42px; }
  .inbox-account-status, .inbox-enable { grid-column: 2; justify-self: start; }
  .inbox-account-grid { grid-template-columns: 1fr; }
  .inbox-field-wide { grid-column: auto; }
  .inbox-account-footer { align-items: stretch; flex-direction: column; }
  .inbox-account-footer > span { white-space: normal; }
  .inbox-account-actions { display: grid; grid-template-columns: 1fr 1fr 1fr auto; }
  .inbox-account-actions .ghost-button { justify-content: center; }
  .settings-token-row { flex-direction: column; align-items: stretch; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading p { max-width: 430px; }
  .section-heading .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  #privacy-center-modal.open { padding: 14px; }
  .modal.privacy-center-modal { width: 100%; max-height: calc(100vh - 28px); padding: 18px; border-radius: 17px; }
  .privacy-search-row { grid-template-columns: 1fr; }
  .privacy-summary { align-items: flex-start; flex-direction: column; }
  .privacy-summary span { text-align: left; }
  .privacy-case-head, .privacy-case-actions { align-items: stretch; flex-direction: column; }
  .privacy-case-head .ghost-button, .privacy-case-actions button { justify-content: center; width: 100%; }
  .privacy-case-grid { grid-template-columns: 1fr; }
  .privacy-card { grid-template-columns: 1fr; }
  .privacy-cleanup { align-items: stretch; flex-direction: column; }
  .privacy-cleanup .ghost-button { justify-content: center; width: 100%; }
  .date-range-backdrop { padding: 10px; align-items: start; overflow-y: auto; }
  .modal.date-range-modal { width: 100%; margin: 10px 0; border-radius: 17px; }
  .product-lookup-modal { width: 100%; border-radius: 17px; }
  .lookup-candidates { grid-template-columns: 1fr; }
  .modal.shipping-modal { width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; border-radius: 17px; }
  .shipping-options-modal { width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; }
  .manual-label-status { grid-template-columns: 34px minmax(0,1fr); }
  .manual-label-status .ghost-button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .shipping-options-actions, .shipping-options-danger { align-items: stretch; flex-direction: column; }
  .shipping-options-actions button, .shipping-options-danger .danger-ghost { width: 100%; justify-content: center; }
  .shipping-modal-grid { grid-template-columns: 1fr; }
  .shipping-modal .modal-head h2 { font-size: 24px; }
  .bounty-flow-hint { grid-template-columns: 1fr; }
  .pack-item { grid-template-columns: 42px 62px minmax(0,1fr); }
  .pack-item > b { grid-column: 1 / -1; justify-self: stretch; padding: 10px 12px; border-radius: 10px; background: #f2f4f1; text-align: left; }
  .pack-item > .mapping-control { grid-column: 1 / -1; }
  .mapping-control > div { grid-template-columns: 1fr; }
  .pack-scan-field > div { grid-template-columns: 1fr; }
  .pack-scan-field .primary-button { width: 100%; }
  .date-range-head { padding: 18px 18px 15px; }
  .date-range-head p { line-height: 1.5; }
  .date-range-selection { grid-template-columns: 1fr 20px 1fr; padding: 14px 18px 10px; }
  .date-range-duration { grid-column: 1 / -1; justify-self: center; }
  .date-preset-row { padding: 0 18px 13px; overflow-x: auto; }
  .date-preset-row button { flex: 0 0 auto; }
  .calendar-toolbar { padding: 9px 18px; }
  .calendar-pair { grid-template-columns: 1fr; padding: 16px 18px; }
  .calendar-month + .calendar-month { display: none; }
  .date-range-actions { padding: 13px 18px 17px; }
}
