:root {
  color-scheme:dark;
  --ink:#eceef3;
  --muted:#aeb2bd;
  --line:#393c45;
  --bg:#191b1f;
  --accent:#a69dff;
  --dark:#1b1c20;
  --paper:#25272d;
  --red:#f09b93;
  --radius:12px;
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
  font-size:14px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink)
}
[hidden] {
  display:none!important
}
button,input,select {
  font:inherit
}
button,a,input,select {
  touch-action:manipulation
}
button {
  cursor:pointer;
  color:inherit
}
a {
  color:inherit;
  text-decoration:none
}
button {
  border:0
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:36px;
  letter-spacing:-1.3px;
  font-weight:650
}
h2 {
  font-size:24px;
  letter-spacing:-.6px
}
p {
  line-height:1.6
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #a69dff;
  outline-offset:3px
}
input:focus,select:focus {
  outline:2px solid #a69dff;
  outline-offset:1px
}
input,select {
  border:1px solid var(--line);
  background:#25272d;
  border-radius:7px;
  padding:11px 12px;
  color:var(--ink);
  min-width:0
}
input:disabled {
  background:#202228;
  color:var(--muted)
}
label {
  display:block;
  margin-bottom:7px;
  font-weight:550
}
button:disabled {
  cursor:not-allowed;
  opacity:.55
}
.muted,.field-hint {
  color:var(--muted)
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.9px;
  font-weight:650;
  color:var(--muted);
  margin-bottom:12px
}
.primary,.secondary {
  border-radius:7px;
  padding:12px 17px;
  font-weight:600;
  white-space:nowrap
}
.primary {
  background:#6659d8;
  color:#f8f7ff
}
.primary:hover {
  background:#796ced
}
.secondary {
  background:#25272d;
  border:1px solid var(--line)
}
.text-button {
  padding:0;
  background:transparent;
  font-weight:600;
  text-align:left;
  color:var(--ink)
}
.text-button:hover {
  text-decoration:underline
}
.icon-button {
  background:transparent;
  font-size:24px;
  padding:4px 7px;
  color:inherit
}
.brand {
  display:flex;
  align-items:center;
  gap:13px;
  letter-spacing:1.6px;
  font-weight:700;
  font-size:13px;
  line-height:1.3
}
.brand-logo { display:block; width:180px; max-width:100%; height:44px; object-fit:cover; object-position:center; }
.login-art .brand-logo { width:300px; height:72px; }
.workspace {
  display:grid;
  grid-template-columns:228px minmax(0,1fr);
  min-height:100vh
}
.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  padding:35px 22px 22px;
  background:var(--dark);
  color:#e4e6ec
}
.sidebar .brand {
  margin:0 9px 55px
}
.nav-label {
  font-size:9px;
  letter-spacing:1.4px;
  color:#999eab;
  margin:0 12px 13px
}
.sidebar nav {
  display:grid;
  gap:7px
}
.sidebar nav a {
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:7px;
  color:#b7bbc7;
  font-size:13px
}
.sidebar nav a.active {
  background:#35313f;
  color:#e0daff
}
.sidebar nav a:hover {
  background:#2c2d35
}
.sidebar nav a>span {
  font-size:21px;
  width:20px;
  text-align:center
}
.sidebar nav b {
  margin-left:auto;
  background:#45414f;
  border-radius:4px;
  padding:2px 6px;
  font-size:10px
}
.sidebar-note {
  border:1px solid #373a42;
  border-radius:9px;
  padding:14px;
  margin-top:auto;
  font-size:12px
}
.sidebar-note strong {
  font-size:12px;
  font-weight:500
}
.sidebar-note p {
  font-size:11px;
  color:#bbc2d0;
  margin-top:8px;
  line-height:1.65
}
.dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#a69dff;
  margin-right:7px;
  vertical-align:middle
}
.owner {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid #373a42;
  margin-top:25px;
  padding-top:22px;
  font-size:12px
}
.avatar {
  background:#353741;
  color:#d3ccf4;
  border-radius:50%;
  display:grid;
  place-items:center;
  width:33px;
  height:33px
}
.owner strong {
  font-weight:550
}
.owner small {
  display:block;
  font-size:10px;
  color:#a7acb8;
  margin-top:4px
}
.owner button {
  margin-left:auto;
  color:#b7bcc8;
  font-size:19px
}
main {
  max-width:1700px;
  width:100%;
  padding:36px 42px 20px
}
.page-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:25px
}
.page-header h1 {
  margin-bottom:8px
}
.page-header .muted {
  font-size:13px
}
.mode-banner {
  background:#272930;
  border:1px solid #3b3d47;
  border-radius:8px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:28px;
  font-size:12px
}
.mode-banner p {
  color:#b0b5c1;
  font-size:12px
}
.pill {
  font-size:9px;
  letter-spacing:.8px;
  background:#38333f;
  padding:6px 8px;
  white-space:nowrap;
  border-radius:4px;
  font-weight:650;
  color:#d0c7ee
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.3fr);
  gap:14px;
  margin-bottom:30px
}
.stats article {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:19px 20px;
  background:#25272d;
  display:flex;
  flex-direction:column;
  min-height:139px
}
.stats article>span {
  color:#abb0bc;
  font-size:11px
}
.stats strong {
  font-size:31px;
  font-weight:600;
  letter-spacing:-1px;
  line-height:1.5;
  margin-top:7px
}
.stats small {
  font-size:10px;
  color:#9ca1ae;
  margin-top:auto
}
.price-stat {
  background:#2a2933!important
}
.price-stat button {
  font-size:15px;
  margin-top:18px
}
.percentages {
  font-size:10px;
  color:#b6b1ca;
  margin-top:auto;
  padding-top:14px
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:17px;
  gap:12px
}
.tabs {
  display:flex;
  gap:22px
}
.tabs button {
  background:transparent;
  padding:10px 0;
  color:#a2a7b5;
  border-bottom:2px solid transparent;
  font-weight:600;
  white-space:nowrap
}
.tabs button.active {
  color:var(--ink);
  border-color:#a69dff
}
.tabs span {
  background:#34363f;
  padding:2px 6px;
  border-radius:4px;
  font-size:10px;
  margin-left:5px
}
.compact-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted);
  margin:0;
  font-weight:400
}
.compact-label select {
  font-size:11px;
  padding:8px;
  background:transparent
}
.filter-bar {
  display:flex;
  gap:10px;
  margin-bottom:16px
}
.search-field {
  display:flex;
  flex:1;
  align-items:center;
  background:#25272d;
  border:1px solid var(--line);
  border-radius:7px;
  margin:0;
  min-width:120px
}
.search-field span {
  font-size:23px;
  color:#9ba2b2;
  padding-left:13px
}
.search-field input {
  width:100%;
  border:0;
  background:transparent;
  padding:11px 12px;
  font-size:12px
}
.filter-bar select {
  font-size:11px;
  max-width:170px
}
.result-label {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#a2a8b5;
  gap:15px;
  margin:18px 0 12px
}
.rule-group {
  border:1px solid var(--line);
  border-radius:10px;
  background:#25272d;
  margin-bottom:12px;
  overflow:hidden
}
.rule-group summary {
  display:flex;
  align-items:center;
  padding:16px 18px;
  gap:14px;
  cursor:pointer;
  list-style:none
}
.rule-group summary::-webkit-details-marker {
  display:none
}
.rule-group summary:after {
  content:'＋';
  margin-left:auto;
  color:#b3aadb;
  font-size:18px
}
.rule-group[open] summary:after {
  content:'−'
}
.item-image {
  width:75px;
  height:51px;
  object-fit:contain;
  flex-shrink:0;
  background:#202228;
  border-radius:6px
}
.item-name {
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere
}
.item-meta {
  color:#a6acb9;
  font-size:10px;
  margin-top:5px
}
.group-count {
  font-size:10px;
  padding:5px 8px;
  border-radius:4px;
  background:#30333b;
  color:#b4bac8;
  margin-left:auto;
  white-space:nowrap
}
.group-body {
  border-top:1px solid var(--line);
  padding:0 18px 10px
}
.rule-table {
  width:100%;
  border-collapse:collapse;
  font-size:11px
}
.rule-table th {
  text-align:left;
  font-size:9px;
  font-weight:500;
  letter-spacing:.4px;
  color:#a9afbc;
  padding:13px 8px;
  border-bottom:1px solid #363941
}
.rule-table td {
  padding:16px 8px;
  border-bottom:1px solid #363941;
  vertical-align:top
}
.rule-table tr:last-child td {
  border-bottom:0
}
.rule-table td small {
  display:block;
  color:#b2b7c3;
  font-size:10px;
  margin-top:5px;
  line-height:1.5;
  max-width:210px;
  overflow-wrap:anywhere
}
.rule-table td:first-child {
  min-width:80px
}
.rule-table td:last-child {
  width:110px
}
.table-surface {
  border:1px solid var(--line);
  border-radius:9px;
  background:#25272d;
  padding:0 13px;
  overflow:auto
}
.rule-title {
  margin-bottom:8px;
  font-size:12px;
  font-weight:600
}
.badge {
  font-size:9px;
  padding:4px 7px;
  border-radius:4px;
  display:inline-block;
  white-space:nowrap
}
.badge.simulation,.badge.monitoring {
  background:#293831;
  color:#a6d6ba
}
.badge.disabled,.badge.archived {
  background:#32343c;
  color:#b5bac6
}
.badge.paused {
  background:#403526;
  color:#efc58f
}
.price-number {
  font-size:14px;
  font-weight:600;
  white-space:nowrap
}
.row-actions {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}
.row-actions button {
  font-size:10px;
  background:#33363f;
  padding:6px 8px;
  border-radius:4px;
  color:#c6cad5
}
.row-actions button:hover {
  background:#434652
}
.selection-bar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:10px 12px; margin:0 0 10px; border:1px solid var(--line); border-radius:7px; background:#24262c; font-size:11px }
.selection-bar .checkbox-label { margin:0; font-size:11px; gap:7px }
.selection-bar input,.compact-rule-table input[type=checkbox],summary .group-select { accent-color:#8e80dc; width:16px; height:16px; flex:none; margin:0; cursor:pointer }
.selection-bar .text-button { font-size:11px }
.bulk-actions { display:flex; flex-wrap:wrap; gap:6px }
.bulk-actions button { background:#34313f; color:#d5cee8; padding:7px 10px; border-radius:4px; font-size:11px }
.group-expansion { display:flex; gap:10px; margin-left:auto }
.rule-list-summary { display:flex; flex-wrap:wrap; gap:6px 14px; margin-left:auto; color:#b9b3ce; min-width:0 }
.rule-list-summary>span { overflow-wrap:anywhere }
.price-summary-missing { color:#d9ba86 }
.selection-bar .group-expansion { margin-left:0 }
#bulk-error { width:100%; margin:0 }
#bulk-error:empty { display:none }
.skin-rule-group,.wear-rule-group,.compact-table-surface { border:1px solid #3b3e48; border-radius:6px; background:#22252d; margin-bottom:6px }
.skin-rule-group>summary,.wear-rule-group>summary { display:flex; align-items:center; gap:12px; padding:11px 12px; cursor:pointer; list-style:none; min-height:42px; font-size:12px }
.skin-rule-group>summary::-webkit-details-marker,.wear-rule-group>summary::-webkit-details-marker { display:none }
.skin-rule-group>summary strong,.wear-rule-group>summary strong { min-width:0; overflow-wrap:anywhere; font-weight:550 }
.skin-rule-group>summary { border-left:3px solid #7970cc; background:#262733; border-radius:5px }
.wear-rule-group>summary { border-left:3px solid #398a7f; background:#263b3c; border-radius:5px }
.group-arrow { color:#a197eb; width:10px; flex:none; transition:transform .15s }
details[open]>summary>.group-arrow { transform:rotate(90deg) }
.compact-group-count { font-size:10px; color:#b6a8f1; background:#303149; border:1px solid #4b436e; padding:2px 6px; border-radius:4px; flex:none }
.skin-group-body { padding:5px 0 0 14px }
.skin-group-body>.wear-rule-group { border-radius:0 0 5px 5px; border-right:0; margin-bottom:5px }
.compact-group-body { border-top:1px solid #414650; overflow-x:auto }
.compact-group-body .loading { padding:15px }
.compact-group-body .pager { margin:0; padding:8px }
.compact-rule-table { border-collapse:collapse; width:100%; font-size:11px }
.compact-rule-table th { padding:7px 8px; text-align:left; color:#9ca4b6; font-size:9px; font-weight:500; white-space:nowrap }
.compact-rule-table td { padding:7px 8px; border-top:1px solid #383c47; vertical-align:middle; height:45px }
.compact-rule-table td:first-child,.compact-rule-table th:first-child { width:30px }
.compact-rule-table .rule-title { font-size:11px; max-width:220px }
.compact-rule-table .rule-title small { display:block; font-size:10px; color:#9fa7b9; margin-top:3px }
.compact-price { display:flex; align-items:center; flex-wrap:wrap; gap:7px; position:relative }
.compact-price .row-price-control { display:flex; align-items:center; flex-wrap:wrap; gap:4px; min-width:0; max-width:none; margin:0 }
.compact-price .row-price-control select { width:98px; font-size:11px; min-height:29px; height:29px; padding:3px 20px 3px 6px }
.compact-price .row-manual-price { flex-wrap:nowrap; align-items:center; gap:4px; margin:0 }
.compact-price .row-manual-price input { width:76px; min-height:29px; height:29px; padding:5px 6px; font-size:11px; margin:0 }
.compact-price .row-manual-price button { padding:5px 6px; height:29px; font-size:11px }
.compact-price .row-price-control>.error:empty { display:none }
.compact-price .row-price-control>.error { flex-basis:100%; font-size:10px; max-width:170px }
.compact-allowed { color:#d9d2ef; font-variant-numeric:tabular-nums; white-space:nowrap }
.compact-price-detail>summary { color:#a89cdd; font-size:13px; cursor:pointer; list-style:none }
.compact-price-detail>summary::-webkit-details-marker { display:none }
.compact-price-info { position:absolute; z-index:5; width:240px; max-width:calc(100vw - 70px); top:calc(100% + 8px); left:0; padding:12px; background:#292b33; border:1px solid #565061; box-shadow:0 8px 24px #0006; border-radius:6px; font-size:11px; line-height:1.5 }
.compact-price-info small { display:block; color:#b2bac9; margin-top:6px }
.compact-price-detail[open] { flex-basis:100% }
.compact-price-detail[open] .compact-price-info { position:static; margin-top:6px }
.compact-float,.compact-patterns { display:block; max-width:145px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums }
.compact-patterns { max-width:125px; color:#acb3c2 }
.compact-quantity { font-variant-numeric:tabular-nums; white-space:nowrap }
.compact-row-actions { display:flex; gap:5px; white-space:nowrap }
.compact-row-actions button { width:27px; height:27px; padding:3px; border-radius:50%; border:1px solid #64588a; background:#323044; color:#cbbaf2; font-size:16px }
.price-update { position:relative; display:inline-flex; white-space:normal }
.compact-row-actions .price-update-trigger { border-radius:6px; font-size:17px; cursor:help }
.price-update-tooltip { display:none; position:fixed; inset:auto; margin:0; z-index:20; width:max-content; max-width:min(270px,calc(100vw - 50px)); padding:9px 11px; border:1px solid #766b9b; border-radius:7px; background:#282633; color:#eee8ff; box-shadow:0 4px 18px #0006; font-size:11px; line-height:1.5; pointer-events:none }
.price-update-tooltip strong,.price-update-tooltip time,.price-update-tooltip>span { display:block }
.price-update-tooltip strong { font-weight:500; color:#c8bcf4 }
.price-update-tooltip:popover-open { display:block }
.rule-switch { display:flex; align-items:center; gap:7px; padding:0; background:transparent; color:#a8aebd; font-size:10px; white-space:nowrap }
.switch-track { width:29px; height:16px; border-radius:20px; background:#525764; position:relative; flex:none }
.switch-track:after { content:''; position:absolute; width:12px; height:12px; border-radius:50%; background:#e4e7ed; top:2px; left:2px }
.rule-switch[aria-pressed=true] { color:#78cfb1 }
.rule-switch[aria-pressed=true] .switch-track { background:#258c73 }
.rule-switch[aria-pressed=true] .switch-track:after { left:15px }
.rule-switch.paused { color:#d6b36d }
@media(max-width:760px) {
  .selection-bar { gap:9px; padding:10px; align-items:center }
  .rule-list-summary { flex-basis:100%; margin-left:0; gap:5px }
  .group-expansion { margin-left:0; width:100% }
  .bulk-actions { width:100% }
  .skin-rule-group>summary,.wear-rule-group>summary { padding:10px 8px; gap:8px; flex-wrap:wrap; font-size:11px }
  .compact-group-count { font-size:9px; margin-left:35px }
  .skin-group-body { padding-left:8px }
  .compact-group-body { overflow:visible }
  .compact-rule-table,.compact-rule-table tbody { display:block }
  .compact-rule-table thead { display:none }
  .compact-rule-table tr { display:grid; grid-template-columns:18px minmax(0,1fr) minmax(0,1fr); gap:8px; border-top:1px solid #414650; padding:10px 8px }
  .compact-rule-table td { display:block; padding:0; border:0; height:auto; min-width:0; font-size:11px }
  .compact-rule-table td[data-label="Select"] { grid-column:1; grid-row:1 / 6; width:auto }
  .compact-rule-table td[data-label="Item"],.compact-rule-table td[data-label="Price, USD"],.compact-rule-table td[data-label="Actions"] { grid-column:2 / 4 }
  .compact-rule-table td[data-label="Float From — To"],.compact-rule-table td[data-label="Bought / left"] { grid-column:2 }
  .compact-rule-table td[data-label="Patterns"],.compact-rule-table td[data-label="State"] { grid-column:3 }
  .compact-rule-table td[data-label="Bought / left"]:before { content:'Bought / left: '; font-size:9px; color:#8f99af }
  .compact-price { gap:5px; flex-wrap:wrap }
  .compact-price .row-price-control select { width:98px }
  .compact-price-info { left:-24px }
  .compact-row-actions button { width:28px; height:28px }
}
.empty-state {
  padding:65px 24px;
  border:1px dashed #424550;
  border-radius:12px;
  text-align:center;
  background:#22242b
}
.empty-icon {
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:12px;
  background:#33303f;
  color:#b6a9e8;
  font-size:26px;
  margin:0 auto 18px
}
.empty-state h3 {
  font-size:19px;
  font-weight:550;
  margin-bottom:10px
}
.empty-state p {
  max-width:440px;
  margin:0 auto;
  color:#b1b7c4;
  font-size:12px
}
.empty-state button {
  margin-top:24px
}
.pager {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:23px 0;
  font-size:11px;
  color:var(--muted)
}
.pager button {
  border:1px solid var(--line);
  background:#25272d;
  border-radius:6px;
  padding:7px 12px
}
.catalogue-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px
}
.catalogue-card {
  padding:17px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#25272d;
  display:flex;
  flex-direction:column;
  align-items:stretch
}
.catalogue-card img {
  width:100%;
  height:125px;
  object-fit:contain;
  background:#202228;
  border-radius:6px;
  margin-bottom:17px
}
.catalogue-card .item-name {
  font-size:12px
}
.catalogue-card .item-meta {
  margin:7px 0 17px
}
.catalogue-card button {
  margin-top:auto;
  font-size:11px;
  padding:9px
}
.info-card {
  background:#2c2d36;
  border:1px solid #40414d;
  border-radius:8px;
  padding:16px;
  margin-bottom:20px;
  font-size:12px;
  color:#c5c8d5
}
.info-card p {
  margin-top:5px;
  font-size:12px
}
.service-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.service-card {
  min-width:0;
  background:#25272d;
  border:1px solid var(--line);
  border-radius:10px;
  padding:23px
}
.service-card h3 {
  font-size:15px;
  margin-bottom:14px
}
.service-card p {
  font-size:12px;
  color:var(--muted);
  margin-top:10px
}
.service-card dl {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  font-size:11px;
  margin-bottom:0
}
.service-card dt {
  color:var(--muted)
}
.service-card dd {
  margin:0;
  text-align:right;
  overflow-wrap:anywhere
}
.history-row {
  padding:20px 18px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:10px;
  font-size:12px
}
.history-row time {
  float:right;
  color:var(--muted);
  font-size:10px
}
.history-row p {
  color:#b5bbc9;
  font-size:11px;
  margin-top:8px
}
.page-footer {
  margin-top:45px;
  border-top:1px solid var(--line);
  padding:17px 0 0;
  display:flex;
  justify-content:space-between;
  color:#9fa6b5;
  font-size:9px;
  letter-spacing:.7px
}
.login-screen {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr
}
.login-art {
  background:var(--dark);
  color:#e8eaf1;
  padding:48px 65px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background-image:radial-gradient(ellipse at 5% 110%,#3e354e 0,transparent 65%)
}
.login-art h1 {
  font-size:49px;
  line-height:1.2;
  font-weight:500;
  margin:20px 0 24px;
  letter-spacing:-1.8px
}
.login-art p {
  color:#b8bbca
}
.login-art .eyebrow {
  color:#bdb0e8;
  font-size:10px
}
.login-art small {
  color:#a8abbd;
  font-size:11px;
  letter-spacing:1px
}
.login-form-wrap {
  display:grid;
  place-items:center;
  padding:35px
}
.login-form {
  max-width:345px;
  width:100%
}
.login-form h2 {
  margin:15px 0
}
.login-form>.muted {
  font-size:12px;
  margin:0 0 33px
}
.login-form input {
  width:100%;
  padding:14px
}
.login-form .primary {
  width:100%;
  display:flex;
  justify-content:space-between;
  margin-top:15px
}
.login-form small {
  display:block;
  text-align:center;
  font-size:10px;
  color:#aeb3c1;
  margin-top:28px
}
.error {
  color:var(--red);
  font-size:12px;
  line-height:1.5;
  margin-top:12px
}
.error:empty {
  display:none
}
.notice {
  background:#3c2b2e;
  padding:14px;
  border-radius:7px;
  margin-bottom:18px
}
.toast {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  z-index:5;
  background:#3d3659;
  color:#f0edf8;
  padding:13px 21px;
  border-radius:8px;
  box-shadow:0 4px 25px #0002;
  font-size:12px;
  max-width:90vw
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
dialog {
  border:1px solid var(--line);
  border-radius:14px;
  max-width:640px;
  width:calc(100% - 28px);
  max-height:calc(100dvh - 40px);
  padding:27px 30px;
  background:#25272d;
  color:var(--ink);
  box-shadow:0 30px 100px #00000055
}
dialog::backdrop {
  background:#101116aa;
  backdrop-filter:blur(3px)
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:23px
}
.dialog-heading .eyebrow {
  margin-bottom:7px
}
.dialog-heading .icon-button {
  font-size:29px;
  color:#b7bcc9
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:9px;
  padding-top:22px;
  border-top:1px solid var(--line);
  margin-top:24px
}
.rule-view-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px }
button.danger-button { border:1px solid #c46575; background:#40272d; color:#ffdbe1 }
button.danger-button:hover:not(:disabled) { background:#653440; border-color:#e88698 }
#archive-clear-count { font-weight:600; line-height:1.6 }
dialog input:not([type=checkbox]),dialog select {
  width:100%;
  margin-bottom:6px
}
dialog label {
  font-size:12px;
  margin-top:14px
}
fieldset {
  padding:0;
  border:0;
  margin:0;
  min-width:0
}
.optional {
  font-size:10px;
  color:#b0b6c5;
  font-weight:400;
  margin-left:6px
}
.form-section {
  margin-top:23px;
  padding-top:22px;
  border-top:1px solid #383b46
}
.section-label {
  font-size:9px;
  font-weight:650;
  letter-spacing:1.6px;
  color:#b1a7d0;
  margin-bottom:9px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px
}
.field-hint {
  font-size:10px;
  margin-top:6px;
  line-height:1.7
}
.checkbox-label {
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:400;
  line-height:1.6
}
.checkbox-label input {
  accent-color:#a69dff;
  width:16px;
  height:16px
}
.selected-item {
  display:flex;
  gap:16px;
  align-items:center;
  background:#302e3b;
  padding:14px;
  border-radius:9px
}
.selected-item img {
  width:85px;
  height:61px;
  object-fit:contain
}
.selected-item .item-name {
  font-size:13px
}
#change-item {
  font-size:10px;
  margin-top:11px
}
.picker-filters {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin:8px 0
}
.picker-filters select {
  font-size:10px
}
.picker-results {
  max-height:230px;
  overflow:auto;
  background:#22242a;
  border-radius:6px
}
.picker-results button {
  display:flex;
  align-items:center;
  width:100%;
  gap:12px;
  padding:11px;
  text-align:left;
  border-bottom:1px solid #363842;
  background:transparent
}
.picker-results button:hover {
  background:#34323f
}
.picker-results img {
  height:36px;
  width:55px;
  object-fit:contain
}
.picker-results .item-name {
  font-size:11px
}
.picker-results p {
  padding:14px;
  color:var(--muted);
  font-size:11px
}
.loading {
  padding:30px;
  color:var(--muted);
  text-align:center;
  font-size:12px
}
#automatic-hint {
  margin:12px 0 0;
  font-size:11px
}
#quantity-current {
  margin-bottom:10px
}
dialog::backdrop {
  backdrop-filter:none
}
.mobile-only {
  display:none
}
.rule-builder {
  padding:26px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#22242a;
  margin-bottom:20px
}
.builder-grid {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  column-gap:18px;
  row-gap:22px;
  align-items:end
}
.builder-grid>div { min-width:0 }
.builder-grid label,.builder-label {
  display:block;
  margin-bottom:10px;
  font-size:12px;
  font-weight:550;
  color:#c3c7d1
}
.builder-grid input {
  width:100%;
  height:48px;
  background:#1c1e24;
  border-color:#40434d;
  border-radius:6px;
  font-size:13px
}
.builder-grid input::placeholder { color:#9299aa }
.builder-grid input[readonly] { color:#aeb5c6; background:#24262d }
.builder-skin { grid-column:span 6 }
.builder-add { grid-column:span 3; min-height:48px; padding:12px 8px; font-size:12px; white-space:normal }
.builder-add.secondary { background:#2c293b; border-color:#625780; color:#d4cafa }
.builder-add.secondary:hover { background:#373147 }
.split-add { display:flex; position:relative; padding:0; gap:0 }
.split-add>button:first-child { flex:1; min-width:0; border-radius:6px 0 0 6px; white-space:normal; font-size:12px; padding:9px }
.split-add>button { min-height:48px }
.split-add .preset-toggle { width:34px; flex:none; padding:8px; border-left:1px solid #ffffff25; border-radius:0 6px 6px 0 }
.split-add .secondary { background:#2c293b; border-color:#625780; color:#d4cafa }
.preset-menu { position:absolute; top:calc(100% + 8px); right:0; width:310px; max-width:calc(100vw - 40px); max-height:400px; overflow:auto; padding:12px; z-index:4; background:#25272f; border:1px solid #515562; border-radius:9px; box-shadow:0 12px 30px #0007 }
.preset-menu-heading,.preset-range-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; font-size:12px }
.preset-menu-item { display:flex; border:1px solid #414550; border-radius:6px; margin:8px 0; background:#202229 }
.preset-menu .preset-apply { flex:1; min-width:0; padding:12px; text-align:left; background:transparent; color:var(--text); border:0; white-space:normal }
.preset-apply strong,.preset-apply small { display:block; overflow-wrap:anywhere }
.preset-apply small { margin-top:6px; color:var(--muted); font-size:11px }
.preset-menu .preset-edit,.preset-menu .preset-delete { flex:none; width:36px; align-self:center }
.preset-menu .preset-delete { color:var(--red) }
.preset-new { width:100%; margin-top:10px; font-size:12px }
.preset-menu p { font-size:12px; line-height:1.6 }
.row-price-control { margin-bottom:12px; min-width:120px; max-width:210px }
.row-price-control select { width:100%; min-height:34px; padding:6px 28px 6px 8px; font-size:12px }
.row-manual-price { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px }
.row-manual-price input { width:100%; min-height:34px; padding:7px 8px; font-size:12px }
.row-manual-price button { padding:7px 10px; font-size:11px; background:#3b3457; color:#eee8ff }
#float-preset-dialog { width:650px; max-width:calc(100vw - 32px) }
#float-preset-dialog .wear-buttons { margin:20px 0; flex-wrap:wrap }
#float-preset-dialog .wear-buttons button { min-width:60px }
.preset-range-heading span { color:var(--muted); font-size:11px }
.preset-column-labels { display:grid; grid-template-columns:1fr 1fr; gap:30px; padding:0 34px 7px; font-size:11px; color:var(--muted) }
.preset-range-row { display:grid; grid-template-columns:18px minmax(0,1fr) 12px minmax(0,1fr) 24px; gap:9px; align-items:center; margin-bottom:8px; font-size:11px }
.preset-range-row input { min-width:0; width:100%; height:38px; padding:8px; font-size:13px }
.preset-range-row .icon-button { width:24px; padding:0 }
#preset-add-range { width:100%; margin-top:12px; border-style:dashed }
.builder-pattern { grid-column:span 3 }
.builder-from,.builder-to { grid-column:span 2 }
.builder-wears { grid-column:span 5 }
.builder-price { grid-column:span 4 }
.wear-buttons { display:flex; gap:8px }
.wear-buttons button {
  min-width:0;
  flex:1;
  height:48px;
  background:#2b2e36;
  color:#bdc3d1;
  border:1px solid #444753;
  border-radius:6px;
  font-size:12px;
  font-weight:600
}
.wear-buttons button[aria-pressed=true] { background:#38314f; color:#eee7ff; border-color:#a394e8; box-shadow:0 0 0 1px #a394e833 }
.wear-buttons button:hover:not(:disabled) { border-color:#a69dff }
.rule-builder .field-hint { margin-top:18px; font-size:11px }
.skin-combobox { position:relative }
.skin-combobox input { padding-left:38px; padding-right:24px }
.search-icon { position:absolute; left:14px; top:12px; font-size:20px; color:#959cb0; pointer-events:none }
.skin-options {
  position:absolute;
  top:calc(100% + 7px);
  left:0;
  right:0;
  max-height:330px;
  overflow:auto;
  z-index:3;
  background:#272a32;
  border:1px solid #535766;
  border-radius:8px;
  box-shadow:0 12px 32px #0005
}
.skin-options button { display:flex; align-items:center; width:100%; padding:12px; gap:12px; text-align:left; background:transparent; border-bottom:1px solid #393c48 }
.skin-options button:hover,.skin-options button[aria-selected=true] { background:#393449 }
.skin-options img { width:55px; height:38px; object-fit:contain; flex-shrink:0 }
.skin-options p { padding:13px; font-size:11px; color:var(--muted) }
.stats { margin-bottom:22px; gap:12px }
.stats article { min-height:92px; padding:14px 16px }
.stats strong { font-size:24px; line-height:1.2; margin:6px 0 }
.stats small { display:none }
.price-stat button { font-size:13px; margin-top:9px }
.percentages { padding-top:9px }
.tabs button.active { color:#e0d6ff }
.tabs { gap:20px }
.section-heading { flex-wrap:wrap }
.tabs { flex-wrap:wrap }
@media(max-width:1280px) and (min-width:761px) {
  .builder-skin { grid-column:span 12 }
  .builder-add { grid-column:span 6 }
  .builder-pattern,.builder-from,.builder-to { grid-column:span 4 }
  .builder-wears { grid-column:span 8 }
  .builder-price { grid-column:span 4; grid-row:4 }
}
@media(max-width:760px) {
  .rule-builder { padding:18px; margin-bottom:16px }
  .builder-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px }
  .builder-skin,.builder-pattern,.builder-wears,.builder-price { grid-column:span 2 }
  .builder-add,.builder-from,.builder-to { grid-column:span 1 }
  .builder-grid label,.builder-label { font-size:11px }
  .builder-grid input { font-size:12px }
  .builder-add { font-size:11px; padding:0; line-height:1.5; align-self:stretch }
  .split-add>button:first-child { font-size:11px; padding:9px 6px }
  .wear-buttons { gap:6px }
  .wear-buttons button { font-size:11px; height:44px }
  .skin-options .item-name { font-size:11px }
  .skin-options img { width:38px }
  .stats article { min-height:82px; padding:12px }
  .tabs { gap:15px }
  .tabs button { font-size:12px }
  .tabs span { margin-left:3px; font-size:9px; padding:2px 4px }
}
@media(max-width:760px) {
  .mobile-only {
    display:block;
    position:absolute;
    right:18px;
    top:15px;
    color:#bcc1ce
  }
  .sidebar {
    position:relative
  }
  .sidebar .brand {
    max-width:200px
  }
}
@media(max-width:420px) {
  .sidebar nav {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .sidebar nav a {
    font-size:11px!important
  }
  .page-header .primary {
    white-space:normal;
    min-width:100px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .picker-filters {
    grid-template-columns:1fr
  }
  .group-count {
    white-space:normal;
    text-align:right
  }
  .rule-group summary:after {
    display:none
  }
  .catalogue-grid {
    grid-template-columns:1fr 1fr
  }
}
@media(min-width:1550px) {
  main {
    padding:42px 58px
  }
  .catalogue-grid {
    grid-template-columns:repeat(5,minmax(0,1fr))
  }
}
@media(max-width:1150px) {
  .workspace {
    grid-template-columns:200px minmax(0,1fr)
  }
  main {
    padding:30px 26px
  }
  .sidebar {
    padding-left:16px;
    padding-right:16px
  }
  .stats {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .catalogue-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .filter-bar {
    flex-wrap:wrap
  }
  .search-field {
    flex-basis:100%
  }
  .filter-bar select {
    flex:1;
    max-width:none
  }
  .rule-table th,.rule-table td {
    padding-left:5px;
    padding-right:5px
  }
  .login-art {
    padding:40px
  }
  .login-art h1 {
    font-size:38px
  }
}
@media(max-width:760px) {
  .workspace {
    display:block
  }
  .sidebar {
    position:static;
    top:auto;
    height:auto;
    padding:16px 18px 9px
  }
  .sidebar .brand {
    margin:0 0 16px
  }
  .sidebar .brand-logo { width:190px; height:44px; }
  .login-art .brand-logo { width:220px; height:54px; }
  .nav-label,.sidebar-note,.owner {
    display:none
  }
  .sidebar nav {
    display:flex;
    justify-content:space-between;
    gap:4px
  }
  .sidebar nav a {
    padding:10px 7px;
    font-size:10px;
    gap:5px
  }
  .sidebar nav a>span {
    font-size:17px;
    width:16px
  }
  .sidebar nav b {
    display:none
  }
  main {
    padding:25px 18px 18px
  }
  .page-header {
    align-items:flex-start
  }
  .page-header h1 {
    font-size:28px
  }
  .page-header .primary {
    padding:10px 12px;
    font-size:11px;
    margin-top:14px
  }
  .eyebrow {
    font-size:8px
  }
  .mode-banner {
    display:block;
    padding:11px 13px;
    margin-bottom:22px
  }
  .mode-banner p {
    margin-top:8px;
    font-size:10px
  }
  .stats {
    gap:9px;
    margin-bottom:21px
  }
  .stats article {
    padding:12px;
    min-height:82px
  }
  .stats strong {
    font-size:24px
  }
  .stats article>span,.stats small {
    font-size:9px
  }
  .price-stat button {
    font-size:12px
  }
  .percentages {
    font-size:9px
  }
  .section-heading {
    align-items:center
  }
  .tabs {
    gap:15px
  }
  .tabs button {
    font-size:12px
  }
  .compact-label {
    font-size:0;
    gap:0
  }
  .compact-label select {
    font-size:10px;
    max-width:145px
  }
  .filter-bar {
    gap:7px
  }
  .filter-bar select {
    font-size:10px;
    padding:9px 5px;
    min-width:0
  }
  .result-label {
    font-size:9px
  }
  .rule-group summary {
    padding:13px;
    gap:10px
  }
  .item-image {
    width:58px;
    height:43px
  }
  .item-name {
    font-size:11px
  }
  .group-count {
    font-size:9px;
    padding:4px
  }
  .group-body {
    padding:0 12px 8px
  }
  .rule-table thead {
    display:none
  }
  .rule-table,.rule-table tbody,.rule-table tr,.rule-table td {
    display:block
  }
  .rule-table tr {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    padding:17px 0;
    border-bottom:1px solid var(--line)
  }
  .rule-table tr:last-child {
    border-bottom:0
  }
  .rule-table td {
    border:0;
    padding:0;
    min-width:0!important
  }
  .rule-table td:before {
    content:attr(data-label);
    display:block;
    color:#afb6c5;
    font-size:9px;
    margin-bottom:5px
  }
  .rule-table td:last-child {
    width:auto;
    grid-column:1/-1
  }
  .rule-table td small {
    max-width:none
  }
  .rule-table td[data-label="Item"] {
    grid-column:1/-1
  }
  .row-actions {
    gap:7px
  }
  .row-actions button {
    padding:8px 10px
  }
  .catalogue-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .catalogue-card {
    padding:12px
  }
  .catalogue-card img {
    height:93px;
    margin-bottom:12px
  }
  .catalogue-card .item-name {
    font-size:10px
  }
  .catalogue-card .item-meta {
    font-size:9px
  }
  .service-grid {
    grid-template-columns:1fr
  }
  .history-row time {
    float:none;
    display:block;
    margin-bottom:8px
  }
  .page-footer {
    font-size:8px;
    gap:15px
  }
  .login-screen {
    display:block
  }
  .login-art {
    padding:26px 28px;
    min-height:240px
  }
  .login-art h1 {
    font-size:29px;
    margin:15px 0
  }
  .login-art .eyebrow {
    font-size:8px;
    margin-top:22px
  }
  .login-art>div>p:not(.eyebrow),.login-art>small {
    display:none
  }
  .login-form-wrap {
    padding:40px 30px
  }
  .login-form h2 {
    font-size:22px
  }
  dialog {
    padding:22px 20px;
    max-height:calc(100dvh - 20px)
  }
  .dialog-heading h2 {
    font-size:21px
  }
  .dialog-actions {
    position:sticky;
    bottom:-22px;
    background:#25272d;
    padding-bottom:10px
  }
  .form-grid {
    gap:10px
  }
  .empty-state {
    padding:40px 18px
  }
}
[hidden] { display: none !important; }
.price-subtabs, .builder-subtabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; }
.builder-subtabs { margin: 22px 0 0; }
.subtab { border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; background: var(--paper); color: var(--muted); font-size: 13px; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.subtab.active { border-color: var(--accent); color: var(--ink); background: #a999ec22; }
.subtab-count { display: inline-block; margin-left: 10px; padding: 1px 5px; border-radius: 4px; background: #a999ec20; color: #c4b6f5; }
.subtab-pair { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.subtab-pair.active { border-color: var(--accent); background: #a999ec22; }
.subtab-pair .subtab { border: 0; border-radius: 7px 0 0 7px; min-width: 0; background: transparent; }
.subtab-settings { flex: 0 0 42px; width: 42px; min-height: 42px; border: 0; border-left: 1px solid var(--line); border-radius: 0 7px 7px 0; background: transparent; color: var(--accent); font-size: 20px; }
.subtab-settings:hover { background: #a999ec25; }
.subtab-settings:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.subtab-delete-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.subtab-delete-actions p { flex: 1 1 180px; margin: 0; }
.subtab-delete-actions button { padding: 10px 14px; border-radius: 8px; }
.new-subtab { padding: 10px 16px; }
#stat-percentages { overflow-wrap: anywhere; }
.builder-subtabs .compact-label { flex-wrap: wrap; }
@media (max-width: 600px) { .builder-subtabs { align-items: stretch; flex-direction: column; } .builder-subtabs .compact-label { display: grid; grid-template-columns: 1fr; } .builder-subtabs select { width: 100%; } }
.buy-id-layout { max-width: 680px; margin: 20px auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.buy-id-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; min-width: 0; }
.buy-id-card h2 { margin: 0; font-size: 20px; }
.buy-id-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.buy-id-heading p { font-size: 12px; margin: 5px 0 0; }
.buy-id-icon { width: 46px; height: 46px; display: grid; place-items: center; background: #a999ec18; color: var(--accent); border-radius: 12px; font-size: 27px; }
.buy-id-card label { display: block; margin: 22px 0 10px; }
.buy-id-card input { width: 100%; }
.telegram-settings-form { display:grid; gap:10px; min-width:0; }
.telegram-settings-form input { width:100%; min-width:0; }
.telegram-settings-form label { margin-top:8px; font-weight:600; }
.telegram-settings-form .field-hint { margin:0 0 8px; }
.telegram-settings-form button { margin-top:8px; }
.marketplace-telegram-settings { margin-top:24px; padding-top:18px; border-top:1px solid var(--line); min-width:0; }
.marketplace-telegram-settings h4 { margin:0 0 12px; font-size:14px; }
.marketplace-telegram-settings button { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.buy-id-actions { display: grid; gap: 11px; margin-top: 24px; }
.buy-id-actions button { min-height: 48px; }
.buy-id-subscribe { color: #b4a0f3; border-color: #625084; }
.buy-id-check { color: #8cc9d5; border-color: #37646c; }
.buy-id-mode { background: #a999ec12; border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.6; }
.buy-id-mode small { display: block; color: var(--muted); margin-top: 5px; }
.buy-id-list-heading, .buy-id-request-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.buy-id-request { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.buy-id-request:last-child { border-bottom: 0; }
.buy-id-request small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.buy-id-request-state { margin: 9px 0 5px; color: #b9aceb; }
.buy-id-cancel { color: #eb9ba8; }
.buy-id-item-name { margin: 8px 0; }
.buy-id-outcome { border-left: 3px solid var(--accent); background: #a999ec0c; padding: 12px; margin-top: 18px; font-size: 13px; line-height: 1.5; }
.buy-id-outcome p { margin: 6px 0; }
.buy-id-outcome small { color: var(--muted); }
.autobuy-reduction-badge { color: #c7afff; flex-basis: 100%; font-size: 11px; }
#autobuy-reduction-dialog { width: min(520px, calc(100vw - 32px)); }
#autobuy-reduction-item, #autobuy-reduction-conditions { overflow-wrap: anywhere; }
.autobuy-reduction-price-preview { display: grid; gap: 8px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #a999ec0c; overflow-wrap: anywhere; }
#autobuy-reduction-price-current { color: var(--muted); font-size: 12px; }
#autobuy-reduction-price-new { color: #c7afff; font-size: 19px; }
.autobuy-reduction-price-preview .field-hint { margin: 0; }
@media (max-width: 1000px) { .buy-id-layout { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }
@media (max-width: 600px) { .buy-id-card { padding: 20px 16px; } .buy-id-layout { gap: 18px; margin-top: 10px; } .buy-id-list-heading h2 { font-size: 18px; } }

.session-loading {
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:12px;
  padding:24px;
  color:var(--muted);
  text-align:center;
}
.session-loading p { margin:0; }
.addons-heading, .addons-form-actions, .addon-card, .addon-card-title, .addon-card-actions { display:flex; align-items:center; gap:12px; }
.addons-heading { justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; }
.addons-heading h2 { margin:0 0 6px; font-size:18px; }
.addons-heading p { margin:0; font-size:12px; }
.addons-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.addons-fields label { display:grid; gap:8px; font-size:12px; color:var(--muted); }
.addons-fields input, .addons-fields select { width:100%; min-width:0; }
.addons-form-actions { margin-top:18px; flex-wrap:wrap; }
.addons-form-actions .field-hint { flex:1; min-width:180px; }
.addon-card { justify-content:space-between; padding:18px 20px; margin:12px 0; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.addon-card-content { min-width:0; overflow-wrap:anywhere; }
.addon-card-title { flex-wrap:wrap; }
.addon-card p { font-size:13px; margin:10px 0 8px; }
.addon-card small { font-size:11px; }
.addon-card-actions { flex-shrink:0; flex-wrap:wrap; }
.addons-archive-heading { font-size:18px; margin:24px 0 12px; }
@media (max-width:900px) { .addons-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .addon-card { align-items:flex-start; flex-direction:column; } }
@media (max-width:480px) { .addons-fields { grid-template-columns:minmax(0,1fr); } .addons-builder { padding:18px 16px; } .addon-card { padding:16px; } .addons-form-actions button { flex:1; } }

.sales-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0 20px; }
.sales-metric { min-width:0; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--paper); display:flex; flex-direction:column; gap:8px; }
.sales-metric span,.sales-metric small { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.sales-metric strong { font-size:23px; overflow-wrap:anywhere; }
.sales-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0; }
.sales-toolbar .search-field { flex:1; min-width:180px; }
.sales-toolbar .search-field input { width:100%; }
.sales-toolbar .checkbox-label { font-size:12px; margin:0; }
.sales-toolbar select { max-width:100%; }
.sales-table-wrap { max-width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:10px; margin:16px 0; }
.sales-table { border-collapse:collapse; width:100%; font-size:12px; }
.sales-table th { text-align:left; font-weight:500; color:var(--muted); background:var(--paper); }
.sales-table th,.sales-table td { padding:14px 16px; border-bottom:1px solid var(--line); vertical-align:middle; }
.sales-table tr:last-child td { border-bottom:0; }
.sales-table td small { display:block; color:var(--muted); margin-top:6px; font-size:11px; }
.sales-table a { color:var(--ink); text-decoration:none; }
.sales-table a:hover { text-decoration:underline; }
.sales-item-name { display:flex; align-items:center; gap:12px; min-width:230px; }
.sales-thumb { width:56px; height:44px; object-fit:contain; flex-shrink:0; }
.sales-float { font-variant-numeric:tabular-nums; white-space:nowrap; }
.sales-chart { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:14px; margin:16px 0; }
.sales-chart svg { width:100%; display:block; min-height:180px; }
.sales-gridline { stroke:var(--line); stroke-width:1; }
.sales-axis { fill:var(--muted); font-size:12px; }
.sales-dot-actual { fill:#9297a6; opacity:.7; }
.sales-dot-normalized { fill:#86d5ad; opacity:.85; }
.sales-float-filter { display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; margin:20px 0; }
.sales-float-filter label { display:grid; gap:8px; font-size:12px; color:var(--muted); margin:0; }
.sales-float-filter input { width:175px; max-width:100%; height:42px; }
.sales-float-filter button { height:42px; margin:0; }
.sales-attachment-button { background:transparent; padding:0; font-size:inherit; border-bottom:1px dotted var(--muted); white-space:nowrap; }
.sales-attachment-tip { position:fixed; z-index:1000; width:420px; max-width:calc(100% - 16px); max-height:calc(100vh - 16px); overflow-y:auto; background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:16px; box-shadow:0 12px 36px #0008; font-size:12px; }
.sales-attachment-total { margin:0 0 8px; }
.sales-attachment-total:not(:first-child) { margin-top:16px; }
.sales-attachment-line { margin:6px 0; overflow-wrap:anywhere; }
.sales-attachment-line small { display:block; margin-left:12px; color:var(--muted); font-size:10px; }
.sales-median-row { background:#294036; }
#sales-explanation h2 { font-size:19px; overflow-wrap:anywhere; }
#sales-database-view details { margin-top:16px; }
#sales-database-view summary { cursor:pointer; }
@media (max-width:1100px) { .sales-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) {
 .sales-summary { gap:8px; } .sales-metric { padding:13px; } .sales-metric strong { font-size:19px; }
 .sales-toolbar { gap:9px; } .sales-toolbar .search-field { flex-basis:100%; }
 .sales-table th,.sales-table td { padding:12px; }
 .sales-float-filter label { flex:1 1 calc(50% - 7px); min-width:0; } .sales-float-filter input { width:100%; }
 .sales-float-filter button { flex:1; }
 .sales-chart { padding:6px; } .sales-chart .field-hint { padding:6px; }
}
